/* „Vocea mea”: fereastra de înregistrare (buton roșu REC) și cardul de sub alegerea vocii.
   Stiluri proprii, folosite pe aceeași formă în toate generatoarele. */

.mv-dialog,
.mv-card,
.mv-rec {
  --mv-ink: #12291c;
  --mv-soft: #4b6355;
  --mv-faint: #7d9184;
  --mv-green: #12b865;
  --mv-green-deep: #049a4a;
  --mv-green-ink: #1f6c41;
  --mv-line: rgba(31, 108, 65, 0.14);
  --mv-wash: rgba(31, 108, 65, 0.07);
  --mv-red: #e0263f;
  --mv-red-deep: #b5132b;
  --mv-error: #b42234;
  --mv-gradient: linear-gradient(110deg, #1cc76f 0%, #0aa756 52%, #058743 100%);
  --mv-font: var(--font-ui, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
}

.mv-dialog,
.mv-card {
  color: var(--mv-ink);
}

.mv-dialog [hidden],
.mv-card [hidden],
.mv-card[hidden] {
  display: none !important;
}

/* ---------- fereastra ---------- */

.mv-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #edf3ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(15 48 39 / 24%);
  font-family: var(--mv-font);
}

.mv-dialog[open] {
  animation: mv-arrive 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mv-dialog::backdrop {
  background: rgb(27 49 41 / 44%);
  backdrop-filter: blur(6px);
}

@keyframes mv-arrive {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.mv-sheet {
  position: relative;
  padding: 30px 30px 26px;
}

.mv-drag-handle { display: none; }

.mv-record-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.mv-record-mic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #07875a;
  background: #e6f5ee;
}

.mv-record-mic svg,
.mv-record-tip svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mv-record-head .mv-copy { margin: 6px 0 0; }
.mv-record-tip { display: none; }

.mv-view {
  display: grid;
  gap: 16px;
}

.mv-view h2 {
  margin: 0;
  padding-right: 44px;
  font-family: var(--mv-font);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.027em;
  color: var(--mv-ink);
}

.mv-copy {
  margin: -4px 0 0;
  color: var(--mv-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.mv-close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 10px;
  border: 1px solid #eef4f1;
  border-radius: 50%;
  background: #fff;
  color: #192b36;
  box-shadow: 0 4px 12px rgb(30 94 68 / 8%);
  cursor: pointer;
}

.mv-close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.mv-close:disabled {
  opacity: 0.5;
  cursor: progress;
}

.mv-glyph {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(224, 38, 63, 0.1);
}

.mv-glyph .mv-dot {
  width: 18px;
  height: 18px;
}

/* Textul de citit: ca un fragment de carte, ușor de urmărit cu ochii. */
.mv-script {
  margin: 0;
  padding: 20px 22px 14px;
  border: 1px solid #dcebe2;
  border-radius: 18px;
  background: #f5fbf7;
}

.mv-text {
  margin: 0;
  color: var(--mv-ink);
  font-family: var(--mv-font);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.mv-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mv-green-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.mv-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mv-next svg,
.mv-link svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- butonul roșu REC ---------- */

.mv-recorder {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 2px;
}

.mv-rec {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5468 0%, var(--mv-red) 48%, var(--mv-red-deep) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(181, 19, 43, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(90, 0, 14, 0.2);
  transition: transform 0.12s ease, filter 0.2s ease;
}

.mv-rec:hover {
  filter: brightness(1.06);
}

.mv-rec:active {
  transform: scale(0.95);
}

.mv-rec:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mv-rec:focus-visible {
  outline: 3px solid rgba(224, 38, 63, 0.4);
  outline-offset: 4px;
}

.mv-rec-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: border-radius 0.2s ease;
}

.mv-rec-label {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
}

.mv-rec.is-recording .mv-rec-icon {
  border-radius: 3px;
}

/* Inelul roșu care pulsează cât timp microfonul e deschis. */
.mv-rec.is-recording::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(224, 38, 63, 0.5);
  border-radius: 50%;
  animation: mv-ring 1.4s ease-out infinite;
}

@keyframes mv-ring {
  from { opacity: 1; transform: scale(0.94); }
  to { opacity: 0; transform: scale(1.24); }
}

.mv-recorder-body {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.mv-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.mv-status {
  min-width: 0;
  color: var(--mv-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.mv-status.is-blocked {
  color: var(--mv-error);
  font-weight: 500;
  line-height: 1.4;
}

.mv-recorder[data-state="recording"] .mv-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mv-red);
  vertical-align: 1px;
  animation: mv-blink 1s ease-in-out infinite alternate;
}

@keyframes mv-blink {
  to { opacity: 0.25; }
}

.mv-time {
  flex: none;
  color: var(--mv-soft);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.mv-wave,
.mv-clip-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
}

.mv-wave span,
.mv-clip-bars span {
  flex: 1 1 0;
  min-width: 2px;
  height: calc(var(--h, 0.1) * 100%);
  min-height: 3px;
  border-radius: 2px;
}

.mv-wave span {
  background: var(--mv-red);
  opacity: 0.25;
  transition: height 0.09s linear;
}

.mv-recorder[data-state="recording"] .mv-wave span {
  opacity: 0.85;
}

.mv-progress {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 108, 65, 0.12);
}

.mv-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: rgba(224, 38, 63, 0.45);
  transition: width 0.2s linear, background-color 0.3s ease;
}

.mv-recorder.is-enough .mv-progress > span {
  background: var(--mv-gradient);
}

/* Reperul de 15 secunde: de aici înregistrarea poate fi salvată. */
.mv-progress > i {
  position: absolute;
  top: -4px;
  left: 25%;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: var(--mv-faint);
}

.mv-goal {
  justify-self: start;
  margin-left: calc(25% - 18px);
  color: var(--mv-faint);
  font-size: 0.75rem;
}

.mv-review {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--mv-line);
  border-radius: 18px;
}

/* ---------- tipul vocii, acordul, salvarea ---------- */

.mv-field {
  display: grid;
  gap: 8px;
}

.mv-label {
  color: var(--mv-ink);
  font-size: 0.875rem;
  font-weight: 650;
}

.mv-genders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--mv-wash);
}

.mv-genders button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mv-soft);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mv-genders button[aria-checked="true"] {
  background: #fff;
  color: var(--mv-ink);
  box-shadow: 0 1px 2px rgba(16, 82, 46, 0.14), 0 6px 14px -8px rgba(16, 82, 46, 0.35);
}

.mv-genders button:focus-visible {
  outline: 2px solid var(--mv-green);
  outline-offset: 2px;
}

.mv-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--mv-soft);
  font-size: 0.875rem;
  line-height: 1.45;
  cursor: pointer;
}

.mv-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--mv-green-deep);
}

.mv-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(214, 45, 66, 0.08);
  color: var(--mv-error);
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.45;
}

.mv-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--mv-gradient);
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 32px -18px rgba(4, 154, 74, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mv-primary:disabled:not(.is-busy) {
  opacity: 0.42;
  cursor: not-allowed;
  filter: saturate(0.6);
  box-shadow: none;
}

.mv-primary.is-busy {
  cursor: progress;
}

.mv-primary:focus-visible,
.mv-secondary:focus-visible,
.mv-button:focus-visible,
.mv-link:focus-visible,
.mv-clip-play:focus-visible {
  outline: 2px solid var(--mv-green);
  outline-offset: 3px;
}

.mv-secondary {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--mv-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mv-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.mv-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.mv-spinner {
  display: none;
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mv-spin 0.9s linear infinite;
}

.mv-primary.is-busy .mv-spinner,
.mv-note .mv-spinner,
.mv-glyph .mv-spinner {
  display: inline-block;
}

.mv-note .mv-spinner,
.mv-glyph .mv-spinner {
  border-color: rgba(18, 184, 101, 0.25);
  border-top-color: var(--mv-green-deep);
}

.mv-glyph .mv-spinner {
  width: 24px;
  height: 24px;
}

.mv-dialog[data-view="wait"] .mv-glyph {
  background: rgba(18, 184, 101, 0.1);
}

@keyframes mv-spin {
  to { transform: rotate(360deg); }
}

/* ---------- player ---------- */

.mv-clip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.mv-clip-play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(31, 108, 65, 0.22);
  border-radius: 50%;
  background: #fff;
  color: var(--mv-ink);
  cursor: pointer;
  box-shadow: 0 6px 14px -10px rgba(16, 82, 46, 0.5);
}

.mv-clip-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mv-clip .mv-i-pause,
.mv-clip.is-playing .mv-i-play {
  display: none;
}

.mv-clip.is-playing .mv-i-pause {
  display: block;
}

.mv-clip-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mv-clip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mv-clip-title {
  overflow: hidden;
  color: var(--mv-ink);
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mv-clip-time {
  flex: none;
  color: var(--mv-soft);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.mv-clip-meta {
  color: var(--mv-faint);
  font-size: 0.8rem;
}

.mv-clip-wave {
  position: relative;
}

.mv-clip-wave .mv-clip-bars {
  height: 32px;
}

.mv-clip-wave .mv-clip-bars span {
  background: rgba(31, 108, 65, 0.2);
}

.mv-clip-wave .mv-clip-played {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc((1 - var(--progress, 0)) * 100%) 0 0);
}

.mv-clip-wave .mv-clip-played span {
  background: var(--mv-green-deep);
}

.mv-clip.is-flat .mv-clip-bars span {
  height: 22%;
}

/* ---------- cardul de sub alegerea vocii ---------- */

.mv-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--mv-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.mv-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.mv-card-copy {
  flex: 1 1 260px;
  margin: 0;
  color: var(--mv-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #35453d;
  border-radius: 999px;
  background: #202825;
  color: #fff;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.mv-button-rec {
  border-color: var(--mv-red-deep);
  background: linear-gradient(180deg, #f0364e, var(--mv-red-deep));
  box-shadow: 0 10px 20px -12px rgba(181, 19, 43, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mv-button-rec:hover {
  filter: brightness(1.05);
}

.mv-dot {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.mv-glyph .mv-dot {
  background: var(--mv-red);
}

.mv-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.mv-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mv-green-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.mv-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mv-link.is-danger {
  color: var(--mv-error);
}

.mv-confirm {
  color: var(--mv-ink);
  font-size: 0.88rem;
}

.mv-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--mv-soft);
  font-size: 0.875rem;
  line-height: 1.45;
}

.mv-error-text {
  margin: 0;
  color: var(--mv-error);
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.45;
}

/* ---------- numele vocii ---------- */

.mv-fields {
  display: grid;
  gap: 16px;
}

.mv-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(31, 108, 65, 0.24);
  border-radius: 12px;
  background: #fff;
  color: var(--mv-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mv-input::placeholder {
  color: var(--mv-faint);
}

.mv-input:focus {
  border-color: var(--mv-green-deep);
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 184, 101, 0.18);
}

.mv-input:disabled {
  opacity: 0.6;
}

@media (min-width: 600px) {
  .mv-dialog .mv-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .mv-dialog .mv-fields .mv-genders button {
    min-height: 38px;
  }
}

/* ---------- lista vocilor din cont ---------- */

.mv-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mv-count {
  color: var(--mv-faint);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.mv-list {
  display: grid;
  gap: 8px;
}

.mv-voice {
  border: 1px solid var(--mv-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.mv-voice.is-selected {
  border-color: rgba(4, 154, 74, 0.55);
  background: #f6fcf8;
  box-shadow: 0 10px 22px -18px rgba(4, 154, 74, 0.8);
}

.mv-voice.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.mv-voice-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
}

.mv-voice-pick {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 12px;
  border: 0;
  border-radius: 13px;
  background: none;
  color: var(--mv-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mv-voice-pick:focus-visible {
  outline: 2px solid var(--mv-green);
  outline-offset: -2px;
}

.mv-radio {
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(31, 108, 65, 0.35);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mv-voice-pick[aria-checked="true"] .mv-radio {
  border-color: var(--mv-green-deep);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--mv-green-deep);
}

.mv-voice-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mv-voice-name {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mv-voice-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  color: var(--mv-faint);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.mv-voice-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mv-soft);
  font-weight: 560;
}

.mv-voice-state::before {
  content: "·";
  color: var(--mv-faint);
}

.mv-voice-state .mv-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-width: 1.5px;
  border-color: rgba(18, 184, 101, 0.25);
  border-top-color: var(--mv-green-deep);
}

.mv-voice-state.is-failed {
  color: var(--mv-error);
}

.mv-clip-mini {
  display: block;
  flex: none;
}

.mv-clip-mini .mv-clip-play {
  width: 36px;
  height: 36px;
  box-shadow: none;
}

.mv-clip-mini .mv-clip-play svg {
  width: 16px;
  height: 16px;
}

.mv-voice-detail {
  display: grid;
  gap: 10px;
  padding: 2px 14px 12px 44px;
}

.mv-voice-detail .mv-clip-play {
  width: 42px;
  height: 42px;
}

.mv-voice-detail .mv-links {
  gap: 2px 16px;
}

.mv-edit {
  gap: 12px;
}

.mv-edit .mv-genders button {
  min-height: 36px;
  font-size: 0.9rem;
}

.mv-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.mv-edit-actions .mv-button {
  min-height: 40px;
}

.mv-edit-actions .mv-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.mv-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 1.5px dashed rgba(31, 108, 65, 0.32);
  border-radius: 14px;
  background: transparent;
  color: var(--mv-green-ink);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.mv-add:hover {
  border-color: rgba(4, 154, 74, 0.55);
  background: var(--mv-wash);
}

.mv-add:focus-visible {
  outline: 2px solid var(--mv-green);
  outline-offset: 2px;
}

.mv-add svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mv-hint {
  margin: 0;
  color: var(--mv-soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ---------- pasul următor blocat cât timp vocea se pregătește ---------- */

.mv-blocked {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f1d7a2;
  border-radius: 12px;
  background: #fff8ea;
  color: #6f4a05;
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.45;
}

.mv-blocked .mv-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-width: 2px;
  border-color: rgba(181, 120, 10, 0.25);
  border-top-color: #b5780a;
}

.is-waiting-voice {
  opacity: 0.55;
  filter: saturate(0.5);
  cursor: not-allowed;
}

/* ---------- „Vocea mea” în grilele de voci din Personalizează și Alege un exemplu ---------- */

.desktop-choice-icon-mine::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.5a3.5 3.5 0 0 0-3.5 3.5v5.5a3.5 3.5 0 0 0 7 0V6A3.5 3.5 0 0 0 12 2.5Zm-7 9a1 1 0 0 1 1 1 6 6 0 0 0 12 0 1 1 0 1 1 2 0 8 8 0 0 1-7 7.94V21h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-1.56A8 8 0 0 1 4 12.5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.5a3.5 3.5 0 0 0-3.5 3.5v5.5a3.5 3.5 0 0 0 7 0V6A3.5 3.5 0 0 0 12 2.5Zm-7 9a1 1 0 0 1 1 1 6 6 0 0 0 12 0 1 1 0 1 1 2 0 8 8 0 0 1-7 7.94V21h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-1.56A8 8 0 0 1 4 12.5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Cinci voci în două coloane: „Fără voce” ocupă tot rândul de jos. */
.desktop-voice-card-grid:has([data-value="vocea_mea"]) [data-value="fara_voce"],
.mobile-voice-chip-row:has(.mobile-voice-option-mine) .mobile-voice-option-none {
  grid-column: 1 / -1;
}

/* Pe telefon, cele trei voci rămân pe un rând, iar „Vocea mea” ocupă rândul de dedesubt. */
body.general-combined-active #wizard-step-sound .mobile-voice-chip-row .mobile-voice-option-mine {
  grid-column: 1 / -1;
}

.gift-voice-grid:has([data-gift-voice="vocea_mea"]) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .gift-voice-grid:has([data-gift-voice="vocea_mea"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gift-voice-grid [data-gift-voice="vocea_mea"] {
    grid-column: 1 / -1;
  }
}

/* ---------- telefon ---------- */

@media (max-width: 860px) {
  html:has(.mv-dialog[open]) { overflow: hidden; }

  .mv-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    margin: 0;
    border: 0;
    border-radius: 22px 22px 0 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .mv-dialog[open] { animation: none; }
  .mv-dialog.is-opening::backdrop { animation: mv-backdrop-in 340ms ease both; }
  .mv-dialog.is-closing::backdrop { animation: mv-backdrop-out 260ms ease both; }
  .mv-dialog.is-closing { pointer-events: none; }

  .mv-sheet {
    padding: 40px 21px max(32px, env(safe-area-inset-bottom));
  }

  .mv-drag-handle {
    position: absolute;
    inset: 0 50px auto;
    display: grid;
    place-items: center;
    height: 32px;
    touch-action: none;
    cursor: grab;
  }

  .mv-drag-handle span {
    width: 37px;
    height: 4px;
    border-radius: 99px;
    background: #cdd3d6;
  }

  .mv-record-head { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; touch-action: none; }
  .mv-record-mic { width: 62px; height: 62px; }
  .mv-record-mic svg { width: 30px; height: 30px; }
  .mv-view .mv-record-head h2 { padding-right: 16px; font-size: max(1.25rem, 20px); line-height: 1.2; }
  .mv-view[data-step="record"] .mv-record-head h2 { max-inline-size: 12ch; }
  .mv-record-head .mv-copy { font-size: max(0.82rem, 12.5px); line-height: 1.4; }
  .mv-dialog.is-dragging { user-select: none; cursor: grabbing; }

  .mv-close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 9px;
  }

  .mv-record-tip {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f0f8f4;
    color: var(--mv-soft);
    font-size: max(0.82rem, 12.5px);
    line-height: 1.45;
  }

  .mv-record-tip svg { flex: 0 0 22px; color: #07875a; }

  .mv-view {
    gap: 14px;
  }

  .mv-view h2 {
    font-size: 1.375rem;
  }

  .mv-text {
    font-size: max(1rem, 16px);
    line-height: 1.45;
    font-weight: 400;
  }

  .mv-script { padding: 13px 15px 10px; border-radius: 16px; }
  .mv-next { min-height: 28px; margin-top: 3px; }

  .mv-rec {
    width: 70px;
    height: 70px;
  }

  .mv-recorder {
    gap: 14px;
  }

  .mv-recorder-body { gap: 7px; }
  .mv-status { font-size: 0.86rem; line-height: 1.3; }
  .mv-time { font-size: 0.8rem; }
  .mv-wave { height: 24px; }
  .mv-goal { font-size: 0.72rem; }

  .mv-card {
    padding: 12px 14px;
  }

  .mv-voice-detail {
    padding: 2px 12px 12px;
  }

  .mv-voice-detail .mv-links {
    gap: 0 14px;
  }

  .mv-card-row .mv-button {
    width: 100%;
  }
}

@keyframes mv-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mv-backdrop-out { to { opacity: 0; } }

/* Comenzile de salvare rămân compacte; pe ecrane joase foaia poate fi derulată. */
@media (max-width: 600px) {
  .mv-review {
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .mv-fields {
    gap: 11px;
  }

  .mv-field {
    gap: 6px;
  }

  .mv-label {
    font-size: 0.82rem;
  }

  .mv-input {
    min-height: 42px;
  }

  .mv-genders button {
    min-height: 36px;
    font-size: 0.9rem;
  }

  .mv-check {
    gap: 9px;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .mv-primary {
    min-height: 48px;
    font-size: 0.97rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv-dialog[open],
  .mv-dialog::backdrop,
  .mv-rec.is-recording::after,
  .mv-recorder[data-state="recording"] .mv-status::before {
    animation: none !important;
  }

  .mv-spinner {
    animation-duration: 1.6s;
  }

  .mv-wave span {
    transition: none;
  }
}
.mv-compact-row { display:flex; align-items:center; gap:8px; min-width:0; }
.mv-compact-row select { flex:1; min-width:0; min-height:40px; padding:6px 8px; border:1px solid #d5e5db; border-radius:8px; background:var(--card,#fff); color:var(--text,#20392d); font:inherit; font-size:16px; }
.mv-compact-manage { min-height:40px; padding:6px 10px; border:1px solid #d5e5db; border-radius:8px; background:transparent; color:var(--accent-strong,#087e4b); font:inherit; font-size:12px; cursor:pointer; }
.mv-compact-empty { flex:1; font-size:12px; }
.mv-card[data-mv-compact="true"] { padding:8px; }
.mv-card[data-mv-compact="true"] .mv-blocked { margin:5px 0 0; padding:0; font-size:11px; line-height:1.3; }
