/* dictation-language-modal: модалка выбора языка перевода */
#dictation-language-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 100400;
}

#dictation-language-modal[style*="display: flex"],
#dictation-language-modal[style*="display:flex"] {
  display: flex !important;
}

.dictation-language-modal-content {
  max-width: 380px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: #222;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dictation-language-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 8px 20px;
}

.dictation-language-modal-title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.dictation-language-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.dictation-language-modal-close:hover {
  background-color: #f0f0f0;
  color: #555;
}

.dictation-language-modal-close-icon {
  width: 22px;
  height: 22px;
}

.dictation-language-modal-body {
  padding: 0 12px 16px 12px;
  max-height: 50vh;
  overflow-y: auto;
}

.dictation-language-modal-hint {
  font-size: 13px;
  color: #888;
  margin: 4px 0 12px 12px;
  line-height: 1.4;
}

/* Кнопка языка */
.dictation-language-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  text-align: left;
  font-size: 14px;
  color: #333;
  transition: background 0.15s;
}

.dictation-language-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dictation-language-item-label {
  flex: 1;
  min-width: 0;
}

.dictation-language-item-note {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}
