/* COUNT-UP: voice-dialogs; managed only in countup/. */
#voskDownloadConsent {
  width: min(540px, -24px + 100vw);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: auto;
  padding: 22px;
  border: 1px solid rgb(105, 113, 116);
  border-radius: 8px;
  background: rgb(36, 40, 42);
  color: rgb(255, 255, 255);
  font: 16px / 1.6 system-ui, sans-serif;
  text-align: left;
}

#voskDownloadConsent::backdrop {
  background: rgba(0, 0, 0, 0.733);
}

#voskDownloadConsent h2 {
  margin: 0px 0px 14px;
  font-size: 22px;
  line-height: 1.35;
}

#voskDownloadConsent p {
  margin: 0px 0px 14px;
}

#voskDownloadConsent .voskConsentCheck {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

#voskDownloadConsent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: rgb(195, 216, 37);
}

#voskDownloadConsent .voskConsentActions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#voskDownloadConsent button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgb(105, 113, 116);
  border-radius: 4px;
  font: 700 15px / 1.4 system-ui, sans-serif;
  background: rgb(65, 72, 75);
  color: rgb(255, 255, 255);
  cursor: pointer;
}

#voskDownloadConsent #voskDownloadStart {
  flex: 1 1 0%;
  background: rgb(195, 216, 37);
  color: rgb(23, 37, 44);
}

#voskDownloadConsent button:disabled {
  opacity: 0.45;
  cursor: default;
}

.voice-log-dialog {
  box-sizing: border-box;
  width: min(720px, 96vw);
  max-height: 94dvh;
  margin: auto;
  padding: 14px;
  border: 1px solid rgb(119, 119, 119);
  border-radius: 8px;
  background: rgb(25, 27, 29);
  color: rgb(255, 255, 255);
  font-family: Meiryo, sans-serif;
  overflow: auto;
}

.voice-log-dialog::backdrop {
  background: rgba(0, 0, 0, 0.667);
}

.voice-log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.voice-log-heading h2 {
  font-size: 18px;
  margin: 0px;
}

.voice-log-dialog button, .voice-log-dialog input, .voice-log-dialog select {
  font: inherit;
  box-sizing: border-box;
  min-width: 0px;
}

.voice-log-dialog button, .dictionary-file-label {
  padding: 6px 10px;
  border: 1px solid rgb(102, 102, 102);
  border-radius: 4px;
  background: rgb(48, 52, 55);
  color: rgb(255, 255, 255);
  cursor: pointer;
}

#voiceLogClose {
  font-size: 20px;
  line-height: 1;
}

#hybridLog {
  height: min(24dvh, 160px);
  margin: 0px 0px 8px;
  padding: 8px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: rgb(8, 9, 9);
  font: 11px / 1.35 monospace;
}

.voice-log-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.voice-log-fields label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.voice-log-fields input, .voice-log-fields select {
  width: 100%;
  padding: 5px;
  border: 1px solid rgb(119, 119, 119);
  border-radius: 3px;
  background: rgb(255, 255, 255);
  color: rgb(17, 17, 17);
  height: 33px;
}

.voice-log-submit {
  margin-top: 8px;
}

#registerReading {
  display: block;
  width: 100%;
  background: rgb(216, 103, 0);
  border-color: rgb(255, 155, 59);
  min-height: 36px;
}

#dictionaryStatus {
  margin: 6px 0px;
  font-size: 12px;
  min-height: 1.4em;
}

.dictionary-sharing {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.dictionary-management-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

#deleteDictionaryEntry {
  background: rgb(23, 97, 165);
  border-color: rgb(87, 149, 207);
}

#resetDictionary {
  background: rgb(183, 45, 45);
  border-color: rgb(237, 114, 114);
}

.dictionary-manage-dialog {
  width: min(600px, 96vw);
}

#dictionaryEntries {
  max-height: 66dvh;
  overflow: auto;
}

.dictionary-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0px;
  border-bottom: 1px solid rgb(69, 71, 72);
}

.dictionary-entry span {
  min-width: 0px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.dictionary-entry button {
  flex-shrink: 0;
  background: rgb(23, 97, 165);
  border-color: rgb(87, 149, 207);
}

.dictionary-confirm-dialog {
  width: min(440px, 94vw);
  text-align: center;
}

#dictionaryConfirmMessage {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0px 18px;
}

#dictionaryConfirmActions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

#dictionaryConfirmActions[hidden] {
  display: none;
}

#dictionaryConfirmActions button {
  min-width: 90px;
}

.dictionary-file-label {
  position: relative;
}

#importDictionary {
  position: absolute;
  inset: 0px;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}

.dictionary-hint {
  font-size: 11px;
  color: rgb(187, 187, 187);
  margin: 7px 0px 0px;
}
