/* Voice workbench UI demo. All controls are visual, local and session-only. */

.voice-demo-entry {
  position: relative;
  display: grid;
  width: min(100% - clamp(36px, 8vw, 120px), 1120px);
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: clamp(34px, 6vw, 78px);
  margin: clamp(48px, 6vw, 82px) auto 0;
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: #29243a;
  box-shadow: 0 28px 78px rgba(37, 29, 58, .24);
  color: #fff;
}

.voice-demo-entry::before {
  position: absolute;
  top: -150px;
  right: 8%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(155, 122, 244, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(155, 122, 244, .035), 0 0 0 116px rgba(84, 195, 220, .022);
  content: "";
}

.voice-demo-entry + .report-section { border-top: 0; }
.voice-demo-entry__copy,
.voice-demo-entry__visual { position: relative; z-index: 1; }

.voice-demo-entry__copy > p:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #b8a2f7;
  font: 750 10px/1 var(--mono);
  letter-spacing: .16em;
}

.voice-demo-entry__copy > p:first-child span {
  padding: 6px 8px;
  border: 1px solid rgba(184, 162, 247, .32);
  border-radius: 99px;
  letter-spacing: .04em;
}

.voice-demo-entry__copy h2 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font: 720 clamp(28px, 3.6vw, 46px)/1.08 var(--display);
  letter-spacing: -.045em;
}

.voice-demo-entry__copy > p:nth-of-type(2) {
  max-width: 610px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  line-height: 1.75;
}

.voice-demo-entry__copy > a {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding: 13px 17px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #2d2740;
  font-size: 13px;
  font-weight: 760;
}

.voice-demo-entry__copy > a:hover { background: transparent; color: #fff; }
.voice-demo-entry__visual { display: grid; align-content: center; gap: 20px; min-width: 0; }
.voice-demo-entry__models { display: flex; align-items: center; padding-left: 10px; }

.voice-demo-entry__models i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-left: -10px;
  border: 3px solid #29243a;
  border-radius: 13px;
  background: #8061da;
  color: #fff;
  font: 760 10px/1 var(--mono);
  font-style: normal;
}

.voice-demo-entry__models i:nth-child(2) { background: #42abc5; }
.voice-demo-entry__models i:nth-child(3) { background: #52aa8e; }
.voice-demo-entry__models i:nth-child(4) { background: #b054bc; }
.voice-demo-entry__models i:nth-child(5) { background: #c17b35; }
.voice-demo-entry__models i:nth-child(6) { background: #507fd1; }

.voice-demo-entry__signal {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-block: 1px solid rgba(255, 255, 255, .1);
}

.voice-demo-entry__signal span {
  width: 3px;
  height: var(--entry-bar, 16px);
  border-radius: 99px;
  background: linear-gradient(180deg, #9b7af4, #54c3dc);
}

.voice-demo-entry__signal span:nth-child(1), .voice-demo-entry__signal span:nth-child(9) { --entry-bar: 12px; }
.voice-demo-entry__signal span:nth-child(2), .voice-demo-entry__signal span:nth-child(8) { --entry-bar: 24px; }
.voice-demo-entry__signal span:nth-child(3), .voice-demo-entry__signal span:nth-child(7) { --entry-bar: 38px; }
.voice-demo-entry__signal span:nth-child(4), .voice-demo-entry__signal span:nth-child(6) { --entry-bar: 29px; }
.voice-demo-entry__signal span:nth-child(5) { --entry-bar: 46px; }

.voice-demo-entry__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .46);
  font: 700 9px/1 var(--mono);
  letter-spacing: .13em;
}

.voice-demo-entry__result b { color: #b6e7f1; }

body[data-route="voice-demo"] { background: #f8f7fb; }
body[data-route="voice-demo"] .site-shell { display: block; }
body[data-route="voice-demo"] .site-rail { display: none; }
body[data-route="voice-demo"] #main-content { width: 100%; }

.voice-demo-view {
  --voice-bg: #f8f7fb;
  --voice-panel: #fff;
  --voice-ink: #34333a;
  --voice-muted: #74717d;
  --voice-line: #e4e1e9;
  --voice-line-strong: #d5d0dd;
  --voice-violet: #8a5cf6;
  --voice-violet-soft: #eee8ff;
  --voice-cyan: #44b9d3;
  --voice-mint: #5ac6a4;
  --voice-pink: #ca5adb;
  --voice-amber: #d88b32;
  --voice-blue: #4d8df7;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 4%, rgba(138, 92, 246, .1), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(68, 185, 211, .07), transparent 24rem),
    var(--voice-bg);
  color: var(--voice-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

.voice-demo-view [hidden] { display: none !important; }
.voice-demo-view *, .voice-demo-view *::before, .voice-demo-view *::after { box-sizing: border-box; }
.voice-demo-view button, .voice-demo-view input, .voice-demo-view textarea { font: inherit; }
.voice-demo-view button { color: inherit; cursor: pointer; }
.voice-demo-view button:focus-visible,
.voice-demo-view input:focus-visible,
.voice-demo-view textarea:focus-visible,
.voice-demo-view a:focus-visible { outline: 3px solid rgba(138, 92, 246, .28); outline-offset: 2px; }

.voice-demo-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #24222b;
  background: #302e37;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.voice-demo-topbar a { color: #fff; font-weight: 700; }
.voice-demo-topbar div { display: flex; gap: 10px; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .08em; }
.voice-demo-topbar div span { padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 4px; }

.voice-demo-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 20px;
  border-bottom: 1px solid #dfd9f0;
  background: #f2edff;
  color: #6d647c;
  font-size: 12px;
}

.voice-demo-disclaimer b { color: #7251c8; }
.voice-app-shell { min-height: calc(100vh - 84px); }

.voice-app-header {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--voice-line);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 18px rgba(57, 51, 70, .04);
  backdrop-filter: blur(16px);
}

.voice-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 800;
}

.voice-app-brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--voice-violet), var(--voice-cyan));
  color: #fff;
  font-size: 16px;
}

.voice-app-brand small { color: var(--voice-muted); font-size: 11px; font-weight: 650; }
.voice-app-nav { display: flex; align-items: center; gap: 4px; }

.voice-app-nav button {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--voice-muted);
  font-size: 13px;
  font-weight: 700;
}

.voice-app-nav button:hover,
.voice-app-nav button.is-active { border-color: var(--voice-line); background: #fff; color: var(--voice-ink); }
.voice-app-nav button.is-active { box-shadow: 0 3px 12px rgba(61, 53, 78, .06); }
.voice-app-nav button:last-child { margin-left: 8px; color: #918d99; font-size: 11px; }

.voice-app-main { min-height: calc(100vh - 150px); }
.voice-page { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.voice-stack { display: grid; gap: 20px; }

.voice-home {
  display: grid;
  min-height: calc(100vh - 150px);
  grid-template-columns: minmax(0, 1fr) minmax(500px, 1.15fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
}

.voice-eyebrow {
  margin: 0 0 10px;
  color: var(--voice-violet);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.voice-home-title h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.voice-lede { margin: 16px 0 0; color: var(--voice-muted); font-size: 17px; line-height: 1.65; }
.voice-home-actions { display: grid; gap: 16px; }

.voice-entry-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  min-height: 150px;
  padding: 26px;
  border: 1px solid var(--voice-line);
  border-radius: 10px;
  background: var(--voice-panel);
  text-align: left;
  box-shadow: 0 12px 34px rgba(67, 59, 84, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.voice-entry-card:hover { transform: translateY(-2px); border-color: #bfb4df; box-shadow: 0 18px 42px rgba(67, 59, 84, .09); }
.voice-entry-card strong { align-self: end; font-size: 24px; }
.voice-entry-card > span:last-child { align-self: start; color: var(--voice-muted); font-size: 13px; line-height: 1.65; }

.voice-entry-icon {
  display: grid;
  width: 72px;
  height: 72px;
  grid-row: span 2;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 34px;
  box-shadow: 0 12px 25px rgba(74, 63, 101, .12);
}

.voice-entry-icon--cyan { background: linear-gradient(135deg, #7753ef, var(--voice-cyan)); }
.voice-entry-icon--pink { background: linear-gradient(135deg, var(--voice-violet), var(--voice-pink)); }

.voice-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: start;
  gap: 24px;
}

.voice-workbench-hero { grid-column: 1 / -1; }
.voice-hero-panel,
.voice-section,
.voice-results-panel,
.voice-library-toolbar,
.voice-library-card {
  border: 1px solid var(--voice-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 30px rgba(69, 60, 88, .035);
}

.voice-hero-panel {
  min-height: 178px;
  padding: 34px 40px;
  background:
    linear-gradient(115deg, rgba(138, 92, 246, .1), rgba(255, 255, 255, .9) 62%),
    #fff;
}

.voice-hero-panel h2 {
  margin: 0;
  font-size: clamp(52px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
}

.voice-section { padding: 24px; }
.voice-section h3,
.voice-results-panel h3 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.voice-section h4,
.voice-results-panel h4 { margin: 0; font-size: 18px; line-height: 1.35; }
.voice-hint { margin: 5px 0 0; color: var(--voice-muted); font-size: 13px; line-height: 1.65; }

.voice-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.voice-model-picker-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.voice-model-picker-title > span { color: var(--voice-violet); font-size: 30px; }
.voice-model-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.voice-model-card {
  position: relative;
  display: flex;
  min-height: 176px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 20px 14px;
  border: 1px solid var(--voice-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(66, 58, 84, .035);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.voice-model-card:hover { border-color: #bdb5ca; }
.voice-model-card.is-selected {
  border: 2px solid #aa87ff;
  background: linear-gradient(135deg, #f5f0ff, #eefaff);
  box-shadow: 0 0 0 3px rgba(138, 92, 246, .08), 0 12px 30px rgba(90, 70, 140, .07);
}

.voice-model-icon {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--voice-violet), var(--voice-pink));
  color: #fff;
  font-size: 35px;
  font-weight: 500;
}

.voice-model-card--violet .voice-model-icon { background: linear-gradient(135deg, #6946ee, #945eef); }
.voice-model-card--blue .voice-model-icon { background: linear-gradient(135deg, #5987ef, #43bac9); }
.voice-model-card--mint .voice-model-icon { background: linear-gradient(135deg, #4db698, #65ccb0); }
.voice-model-card--amber .voice-model-icon { background: linear-gradient(135deg, #dd862f, #edae4e); }
.voice-model-card--coral .voice-model-icon { background: linear-gradient(135deg, #d34f7b, #ed8558); }
.voice-model-card strong { font-size: 19px; letter-spacing: -.025em; }
.voice-model-card small { color: var(--voice-muted); font-size: 12px; font-weight: 650; }

.voice-selected-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  border: 4px solid #dff4e7;
  border-radius: 50%;
  background: #57cb74;
}

.voice-model-setting-row,
.voice-mapping-row,
.voice-optimizer-card,
.voice-prompt-row,
.voice-result-card {
  padding: 16px;
  border: 1px solid var(--voice-line);
  border-radius: 8px;
  background: #fff;
}

.voice-model-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.voice-switch-control { display: flex; align-items: center; gap: 10px; color: var(--voice-muted); font-size: 12px; }

.voice-toggle-switch {
  width: 42px;
  height: 24px;
  padding: 2px;
  border: 0;
  border-radius: 99px;
  background: #c9c5cf;
}

.voice-toggle-switch span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .16s ease; }
.voice-toggle-switch.is-active { background: var(--voice-violet); }
.voice-toggle-switch.is-active span { transform: translateX(18px); }

.voice-file-input {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px dashed var(--voice-violet);
  border-radius: 8px;
  background: #faf8ff;
  text-align: left;
}

.voice-file-input span { padding: 6px 10px; border: 1px solid #aaa6b1; border-radius: 3px; background: #fff; }
.voice-file-input b { font-size: 14px; }
.voice-mapping-list { display: grid; gap: 12px; }
.voice-file-name { font-size: 17px; }

.voice-fake-player {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 8px 15px;
  border-radius: 99px;
  background: #f0f1f2;
  color: #17171a;
  font-size: 13px;
}

.voice-fake-player button { padding: 3px; border: 0; background: transparent; font-size: 16px; }
.voice-fake-player i { position: relative; height: 5px; flex: 1; overflow: hidden; border-radius: 99px; background: #c6c7c9; }
.voice-fake-player i b { position: absolute; inset: 0 auto 0 0; width: 7%; border-radius: inherit; background: #626266; }

.voice-input,
.voice-textarea {
  width: 100%;
  border: 1px solid var(--voice-line);
  border-radius: 7px;
  background: #fff;
  color: var(--voice-ink);
}

.voice-input { min-height: 46px; padding: 10px 12px; }
.voice-textarea { min-height: 120px; padding: 13px; resize: vertical; line-height: 1.55; }
.voice-input::placeholder, .voice-textarea::placeholder { color: #9b98a1; }
.voice-field { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
.voice-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.voice-count-field { width: 130px; flex: 0 0 130px; }

.voice-segmented {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--voice-line);
  border-radius: 8px;
  background: #fff;
}

.voice-segmented button { padding: 8px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--voice-muted); white-space: nowrap; }
.voice-segmented button.is-active { background: linear-gradient(135deg, #7956ed, var(--voice-cyan)); color: #fff; }
.voice-script-optimizer-list, .voice-prompt-list { display: grid; gap: 12px; }
.voice-optimizer-card { gap: 14px; }
.voice-optimized-script { min-height: 96px; }
.voice-prompt-row .voice-textarea { min-height: 98px; }

.voice-button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.voice-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #403d48;
  border-radius: 7px;
  background: linear-gradient(135deg, #7451ee, #4cbad2);
  color: #fff !important;
  font-size: 13px;
  font-weight: 750;
}

.voice-btn:hover { filter: brightness(.98); }
.voice-btn--secondary { border-color: var(--voice-line); background: #fff; color: var(--voice-ink) !important; }
.voice-btn--danger { border-color: #f1d7da; background: #fff; color: #c15b66 !important; }

.voice-results-panel {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 24px;
}

.voice-results-header { align-items: center; }
.voice-results-header .voice-btn { flex: 0 0 auto; }
.voice-model-tabs { display: flex; gap: 8px; margin: 18px 0 16px; padding-bottom: 5px; overflow-x: auto; }

.voice-model-tabs button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--voice-line);
  border-radius: 7px;
  background: #fff;
  color: var(--voice-muted);
  font-weight: 700;
}

.voice-model-tabs button.is-active { border-color: #a886fb; background: #f7f3ff; color: var(--voice-ink); }
.voice-model-tabs button span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--voice-violet-soft); color: var(--voice-violet); font-size: 11px; }
.voice-result-list { display: grid; gap: 12px; }
.voice-result-card h4 { overflow-wrap: anywhere; font-size: 16px; }
.voice-ready-pill { padding: 5px 9px; border-radius: 99px; background: #e4f4e9; color: #277847; font-size: 11px; font-weight: 800; }
.voice-result-card .voice-input { margin-top: 2px; }

.voice-library-layout { display: grid; gap: 18px; }
.voice-library-hero { min-height: 180px; padding: 34px 40px; }
.voice-library-hero h2 { margin: 0; font-size: clamp(52px, 6vw, 72px); line-height: 1; letter-spacing: -.055em; }
.voice-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; }
.voice-status-message { margin: 0; padding: 10px 14px; border: 1px solid #b6dec5; border-radius: 7px; background: #eaf8ef; color: #287646; font-size: 12px; }
.voice-library-list { display: grid; gap: 14px; }
.voice-library-card { padding: 16px; }
.voice-library-card.is-selected { border-color: #a887f9; box-shadow: 0 0 0 2px rgba(138, 92, 246, .08); }
.voice-library-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.voice-library-identity .voice-input { width: min(390px, 56vw); }

.voice-check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 0;
  border: 1px solid #aaa6b0;
  border-radius: 3px;
  background: #fff;
  color: #fff !important;
  font-size: 12px;
}

.voice-library-card.is-selected .voice-check { border-color: var(--voice-violet); background: var(--voice-violet); }
.voice-model-pill { padding: 5px 9px; border-radius: 99px; background: var(--voice-violet-soft); color: var(--voice-violet); font-size: 10px; font-weight: 800; }
.voice-placeholder-url { margin: 11px 0 0; overflow-wrap: anywhere; color: #8a8690; font-size: 11px; }

.voice-demo-toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 16px;
  border: 1px solid #40394f;
  border-radius: 8px;
  background: #34313d;
  box-shadow: 0 16px 40px rgba(33, 28, 43, .25);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .16s ease, transform .16s ease;
}

.voice-demo-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .voice-home { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .voice-home-title h2 { max-width: 720px; }
  .voice-workspace { grid-template-columns: 1fr; }
  .voice-results-panel { position: static; max-height: none; }
}

@media (max-width: 760px) {
  .voice-demo-entry { grid-template-columns: 1fr; }
  .voice-demo-topbar { align-items: flex-start; flex-direction: column; padding-block: 10px; }
  .voice-demo-topbar div { flex-wrap: wrap; }
  .voice-demo-disclaimer { align-items: flex-start; }
  .voice-app-header { position: relative; align-items: flex-start; flex-direction: column; padding-block: 14px; }
  .voice-app-nav { width: 100%; overflow-x: auto; }
  .voice-app-nav button { flex: 0 0 auto; }
  .voice-app-nav button:last-child { margin-left: 0; }
  .voice-page { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .voice-home { gap: 30px; padding-top: 34px; }
  .voice-home-title h2 { font-size: 44px; }
  .voice-entry-card { grid-template-columns: 58px 1fr; min-height: 126px; padding: 18px; }
  .voice-entry-icon { width: 58px; height: 58px; }
  .voice-hero-panel, .voice-library-hero { min-height: auto; padding: 26px 22px; }
  .voice-hero-panel h2, .voice-library-hero h2 { font-size: 46px; }
  .voice-section, .voice-results-panel { padding: 18px; }
  .voice-section h3, .voice-results-panel h3 { font-size: 24px; }
  .voice-model-card-grid, .voice-two-col { grid-template-columns: 1fr; }
  .voice-model-card { min-height: 150px; }
  .voice-row-head, .voice-library-toolbar { align-items: stretch; flex-direction: column; }
  .voice-segmented { width: 100%; overflow-x: auto; }
  .voice-segmented button { flex: 1 0 auto; }
  .voice-library-toolbar { display: grid; }
  .voice-library-identity { align-items: flex-start; }
  .voice-library-identity .voice-input { width: 100%; }
  .voice-fake-player { gap: 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-demo-view *, .voice-demo-view *::before, .voice-demo-view *::after { scroll-behavior: auto !important; transition: none !important; }
}
