/* Grey · redesign layer (2026-11-03, you: "you can redesign the website like this" -- the "Grey site concept" canvas;
   "make sure animations are still there"). Loaded AFTER app.css and changes looks only: every element, id, script and
   animation (fold, morph, ripples, breathe, glides, view transitions, the training card glitch) stays as it is.
   The concept's rules: one quiet ground, near-black ink, ONE red for the main action of a screen, soft cards, fewer lines,
   legal text only as a footer line and on the legal pages. */
:root {
  --wash: #f4f4f5;
  --wash-2: #ececef;
  --rule: #e7e7ea;
  --mute: #5f5f68;          /* (4.5:1+ on white: the old #71717a was 4.8, kept readable) */
  --faint: #8e8e98;
  --red: #c8241f;           /* (white text on it: 5.3:1; the old #e5322d was 4.0) */
  --red-rgb: 200, 36, 31;
  --red-deep: #a81d19;
  --glow: 0 0 0 1px rgba(var(--red-rgb), .18), 0 10px 26px -12px rgba(var(--red-rgb), .55);
  --lift: 0 1px 2px rgba(20, 20, 23, .04), 0 14px 40px -22px rgba(20, 20, 23, .16);
  --radius: 18px;
  --bar-bg: rgba(255, 255, 255, .9);
}
:root[data-scheme="dark"] {
  --paper: #0e0e10;
  --wash: #1b1b20;
  --wash-2: #24242a;
  --rule: #26262c;
  --ink: #ececef;
  --ink-2: #c9c9d1;
  --mute: #a1a1aa;
  --faint: #7c7c86;
  --red: #c8241f;
  --red-rgb: 216, 48, 42;
  --red-deep: #e0423b;
  --red-soft: #3a1615;
  --lift: 0 1px 0 rgba(255, 255, 255, .03), 0 14px 40px -22px rgba(0, 0, 0, .8);
  --bar-bg: rgba(14, 14, 16, .88);
  --fold-bg: #121215;
}

/* ---------- top bar: no hard line, pill navigation, the clone button no longer competes with Synthesize ---------- */
.bar { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--wash); }
.brand { font-weight: 700; font-size: 20px; }
.tabs a { padding: 8px 14px; font-size: 14.5px; }
.tabs a[aria-current="page"] { background: var(--wash); font-weight: 600; }
.clonebtn { background: var(--ink); color: var(--paper); box-shadow: none; }
.clonebtn:hover { background: var(--ink-2); }
.trainpill { border-color: transparent; background: var(--wash); color: var(--mute); }
.trainpill:hover { border-color: transparent; background: var(--wash-2); box-shadow: none; }
.trainpill b { color: var(--ink); }

/* ---------- home: the bar as a soft card, a calmer title ---------- */
.title { font-weight: 600; letter-spacing: -.035em; }
.say { border-radius: 20px; border-color: var(--rule);
  box-shadow: 0 1px 2px rgba(20, 20, 23, .04), 0 18px 48px -24px rgba(20, 20, 23, .18), 0 34px 70px -40px rgba(var(--red-rgb), .35); }
.say:focus-within { border-color: var(--rule-focus);
  box-shadow: 0 1px 2px rgba(20, 20, 23, .05), 0 0 0 4px rgba(var(--red-rgb), .05), 0 30px 80px -34px rgba(var(--red-rgb), .5); }
.say .btn.red { border-radius: 14px; }
.who { border-radius: 999px; }
.termsnote { color: var(--faint); }
.termsnote a { color: inherit; }

/* ---------- studio: borders instead of shadows, quieter selection ---------- */
.panel { border-radius: 20px; border-color: var(--rule); box-shadow: none; }
.panel h2 { letter-spacing: -.02em; }
.panel.voice .voicelist button.v[aria-pressed="true"] { border-color: transparent; background: var(--wash); box-shadow: inset 3px 0 0 transparent; }
.panel.voice .voicelist button.v[aria-pressed="true"] b { color: var(--ink); }
.filters button { border-color: var(--rule); color: var(--mute); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.seg { background: var(--wash); }
.comp-bot { border-top-color: var(--wash); }
.composer:focus-within { box-shadow: 0 26px 60px -36px rgba(var(--red-rgb), .35); }

/* ---------- buttons ---------- */
.btn.red { box-shadow: var(--glow); }
.btn.ghost { border-color: var(--rule); }
.btn.dark { background: var(--ink); color: var(--paper); }

/* ---------- dialogs: bigger, softer, no frame ---------- */
.dlg { border-color: transparent; border-radius: 22px; padding: 26px 26px 22px;
  box-shadow: 0 2px 6px rgba(20, 20, 23, .06), 0 30px 90px -24px rgba(20, 20, 23, .32); }
:root[data-scheme="dark"] .dlg { border-color: var(--rule); background: #16161a; }
.dlg::backdrop { background: rgba(20, 20, 23, .32); backdrop-filter: blur(4px); }

/* ---------- layout (you: "I want the layout too. do all three") ---------- */
/* Clone is a tab now; the old header button stays in the page (the scripts mark it) but isn't shown */
.clonebtn { display: none !important; }

/* Studio = the text + the Delivery | Sound panel beside it; the voice comes from the picker */
.studio.m-speak { grid-template-columns: minmax(0, 1fr) 340px; }
.studio.m-speak > .panel.voice { display: none; }
.studio.m-lib, .studio.cloning { grid-template-columns: minmax(0, 1fr); }
.studio.m-lib > .work, .studio.m-lib > .side, .studio.cloning > .side { display: none; }
#tab-delivery { display: none; }  /* (Delivery lives in the side panel now) */

.panel.side { position: sticky; top: 74px; align-self: start; padding: 14px; gap: 12px; max-height: calc(100svh - 96px); overflow-y: auto; scrollbar-width: thin; }
.sseg { display: grid; grid-template-columns: 1fr 1fr; background: var(--wash); border-radius: 999px; padding: 4px; }
.sseg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--mute); }
.sseg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
#sidePanel .panel.deliv { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; max-height: none; }
#sidePanel .panel.deliv > summary { display: none; }
#sidePanel .deliv > .hint, #sidePanel .deliv > .sliders { margin: 0 4px; }
#sidePanel .sliders.two { grid-template-columns: minmax(0, 1fr); }
#sidePanel:not([data-side="sound"]) .deliv .sound { display: none; }
#sidePanel[data-side="sound"] .deliv > :not(.sound):not(summary) { display: none; }
#sidePanel .deliv .sound { margin: 4px; }
#sidePanel .deliv .sound > h3 { display: none; }
.studio.m-speak .chosen::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }

/* Voices = the library, full width, voices as cards */
.studio.m-lib > .panel.voice { position: static; max-height: none; padding: 22px 24px 26px; }
.studio.m-lib .panel.voice .tabpane { overflow: visible; }
.studio.m-lib .panel.voice .voicelist { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.studio.m-lib .panel.voice .voicelist button.v { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: 14px; }
.studio.m-lib .panel.voice .voicelist button.v > span { white-space: normal; }
.studio.m-lib .panel.voice .voicelist button.v[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }

@media (max-width: 980px) {
  .studio.m-speak { grid-template-columns: minmax(0, 1fr); }
  .panel.side { position: static; max-height: none; }
}

/* phones: six tabs in one row that scrolls sideways (they wrapped into two uneven rows) */
@media (max-width: 760px) {
  .bar > .tabs { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .bar > .tabs a { flex: none; }
}

/* the voice picker (a popover under the voice chip) */
.dlg.vpick { margin: 0; position: fixed; padding: 10px; max-height: min(72vh, 640px); flex-direction: column; gap: 8px; overflow: hidden; }
.dlg.vpick[open] { display: flex; }
.dlg.vpick::backdrop { background: rgba(20, 20, 23, .1); backdrop-filter: none; }
.vpick .vp-body { overflow-y: auto; min-height: 0; padding: 4px; scrollbar-width: thin; }
.vpick .tabpane { display: flex; flex-direction: column; gap: 10px; }
.vpick .filters { gap: 5px; }
.vpick .filters button { padding: 4px 11px; font-size: 13px; }
.vpick .voicelist { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.vpick .voicelist button.v { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
  border-color: transparent; background: transparent; text-align: left; }
.vpick .voicelist button.v > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpick .voicelist button.v:hover, .vpick .voicelist button.v[aria-pressed="true"] { background: var(--wash); border-color: transparent; }
.vpick .vp-foot { display: flex; gap: 16px; align-items: center; padding: 10px 8px 4px; border-top: 1px solid var(--wash); font-size: 14px; }
.vpick .vp-foot span { flex: 1; }
.vpick .vp-foot a { color: var(--ink); text-decoration: none; font-weight: 500; }
.vpick .vp-foot a:hover { color: var(--red); }

/* one quiet footer line under Speak / Voices / Clone / Voice to voice (Technology and About keep their own) */
.sitefoot { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--faint); padding-top: 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
.sitefoot span { flex: 1 1 auto; }
.sitefoot a { color: var(--mute); text-decoration: none; }
.sitefoot a:hover { color: var(--ink); }
body[data-view="tech"] .sitefoot, body[data-view="about"] .sitefoot { display: none; }

/* =====================================================================================================================
   REBUILD to the concept (2026-11-03, you: "rebuild everything to match the concept exactly"). Measurements from the
   "Grey site concept" artboards (Main.dc.html etc.); later sections win over the reskin above.
   ===================================================================================================================== */
:root { --g-card: #ffffff; --g-line: #e4e4e7; --g-soft: #f4f4f5; --g-soft2: #f7f7f8; --g-text2: #5f5f68; --g-text3: #6b6b73; --g-chipbg: #e9e6df; }
:root[data-scheme="dark"] { --g-card: #16161a; --g-line: #2a2a30; --g-soft: #1f1f24; --g-soft2: #16161a; --g-text2: #a1a1aa; --g-text3: #8e8e98; --g-chipbg: #2d2a24; }

/* ---------- header (Main.dc.html: 22px 24px, max 1120, gap 32) ---------- */
.g-bar { max-width: 1120px; margin: 0 auto; width: 100%; padding: 22px 24px; gap: 32px; box-shadow: none; border-bottom: 0;
  background: var(--bar-bg); flex-wrap: wrap; }
.g-bar .brand { gap: 10px; font: 700 19px/1 var(--display); letter-spacing: -.01em; order: 0; }
.g-bar .brand img { width: 30px; height: 30px; }
.g-bar > .tabs { order: 1; margin-left: 0; flex: 1 1 auto; gap: 4px; }
.g-bar > .tabs a { padding: 8px 14px; font-size: 15px; font-weight: 400; color: var(--g-text2); }
.g-bar > .tabs a[aria-current="page"] { background: var(--g-soft); color: var(--ink); font-weight: 500; }
.g-right { order: 2; display: flex; align-items: center; gap: 12px; }
.g-bar .trainpill { margin: 0; height: 32px; padding: 0 12px; gap: 8px; border: 0; background: var(--g-soft); color: var(--g-text2); font-size: 13px; }
.g-bar .trainpill:hover { background: var(--wash-2); box-shadow: none; }
.g-bar .trainpill b { font: 500 13px var(--body); color: var(--g-text2); }
.g-bar .tdot { width: 6px; height: 6px; }
.g-newslink { font-size: 14px; color: var(--g-text2); text-decoration: none; white-space: nowrap; }
.g-newslink:hover { color: var(--ink); }
.g-bar .setbtn { order: 0; margin: 0; width: 40px; height: 40px; color: var(--g-text2); }
.g-bar .setbtn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.g-bar .trainline { display: none; }
@media (max-width: 860px) {
  .g-bar { padding: 14px 16px; gap: 10px 16px; }
  .g-bar > .tabs { order: 3; flex-basis: 100%; }
  .g-right { margin-left: auto; }
  .g-newslink { display: none; }
}

/* ---------- home (Main.dc.html: main max 760, padding 88 24 40, gap 40) ---------- */
#v-synth.synth { display: block; min-height: 0; padding: 0; }
.stage.g-home { width: 100%; max-width: 760px; margin: 0 auto; padding: 88px 24px 40px; display: flex; flex-direction: column; gap: 40px; }
.g-hero { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.g-home .title { margin: 0; font: 600 48px/1.08 var(--display); letter-spacing: -.025em; }
.g-sub { margin: 0; color: var(--g-text2); font-size: 16px; }
.g-composer { position: relative; display: flex; flex-direction: column; border: 1px solid var(--g-line); border-radius: 20px; background: var(--g-card);
  box-shadow: 0 1px 2px rgba(20, 20, 23, .04), 0 8px 32px rgba(20, 20, 23, .05); overflow: hidden; }
:root[data-scheme="dark"] .g-composer { box-shadow: none; }
.g-composer textarea#say { border: 0; outline: none; resize: none; background: transparent; color: var(--ink); font: 400 19px/1.5 var(--body);
  padding: 24px 26px 8px; min-height: 128px; }
.g-composer textarea#say::placeholder { color: var(--g-text3); }
.g-composer .emphview { margin: 12px 18px 0; }
.g-composer.err { border-color: rgba(var(--red-rgb), .55); }
.g-cbar { display: flex; align-items: center; gap: 8px; padding: 12px 14px 14px; flex-wrap: wrap; }
.g-chip.who { display: inline-flex; align-items: center; gap: 8px; height: 40px; max-width: 46%; padding: 0 12px 0 6px; border: 1px solid var(--g-line);
  border-radius: 999px; background: var(--g-card); color: var(--ink); font: 500 15px var(--body); text-decoration: none; cursor: pointer; }
.g-chip.who::before { content: attr(data-ini); flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--g-chipbg);
  display: inline-grid; place-items: center; font-weight: 600; font-size: 12px; }
.g-chip.who::after { content: ""; flex: none; width: 6px; height: 6px; margin: -3px 2px 0 2px; border-right: 2px solid var(--g-text2);
  border-bottom: 2px solid var(--g-text2); transform: rotate(45deg); }
.g-lang { height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--g-text2); font: 400 15px var(--body);
  cursor: pointer; max-width: 160px; appearance: none; -webkit-appearance: none; }
.g-lang:hover { background: var(--g-soft); }
.g-icon { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--g-text2); }
.g-icon:hover { background: var(--g-soft); color: var(--ink); }
.g-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.g-grow { flex: 1 1 auto; }
.g-count { font-size: 13px; color: var(--g-text3); }
.g-count.near { color: var(--red-deep); }
.g-speak { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  background: #c8241f; color: #fff; font: 600 15px var(--body); cursor: pointer; }
.g-speak:hover { background: #b01f1b; }
.g-speak:disabled { opacity: .6; cursor: progress; }
.g-speak svg { width: 16px; height: 16px; fill: currentColor; }
.g-composer .line { left: 20px; right: 20px; bottom: 0; }
.g-home .status.center { margin: -26px 0 0; }
.g-home .status:empty { display: none; }

/* takes (Main.dc.html "Takes": 13px caps head; rows 12px, radius 14; first row tinted) */
.g-takes { display: flex; flex-direction: column; gap: 4px; }
.g-takes-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.g-takes-head h2 { margin: 0; font: 600 13px var(--body); color: var(--g-text3); letter-spacing: .04em; text-transform: uppercase; }
.g-takes-head span { font-size: 13px; color: var(--g-text3); }
.g-takelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.g-take { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.g-take:first-child { background: var(--g-soft2); }
:root[data-scheme="dark"] .g-take:first-child { background: #16161a; }
.g-play { width: 40px; height: 40px; flex: none; border-radius: 999px; border: 1px solid var(--g-line); background: var(--g-card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.g-play svg { width: 14px; height: 14px; fill: currentColor; }
.g-play.on { border-color: #c8241f; color: #c8241f; }
.g-tk { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.g-tk p { margin: 0; font-size: 14px; color: var(--g-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-wave { display: flex; align-items: center; gap: 2px; height: 22px; overflow: hidden; }
.g-wave i { display: block; flex: none; width: 3px; height: 3px; border-radius: 2px; background: #cfcfd4; transition: height .25s ease; }
:root[data-scheme="dark"] .g-wave i { background: #3a3a42; }
.g-wave i.on { background: #c8241f; }
:root[data-scheme="dark"] .g-wave i.on { background: #ff5a52; }
.g-meta { font-size: 13px; color: var(--g-text3); flex: none; }
.g-dl { width: 40px; height: 40px; flex: none; border-radius: 999px; display: grid; place-items: center; color: var(--g-text2); }
.g-dl:hover { background: var(--g-soft); color: var(--ink); }
.g-dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .stage.g-home { padding: 40px 16px 24px; gap: 28px; }
  .g-home .title { font-size: 34px; }
  .g-meta { display: none; }
}

/* ---------- footer: one quiet line ---------- */
.foot { border-top-color: var(--wash); color: var(--faint); font-size: 13px; }
.foot a { color: var(--mute); }

/* footer line (Main.dc.html: max 1120, padding 24, 13px, a hairline above) */
.sitefoot { max-width: 1120px; margin: 0 auto; padding: 24px; gap: 20px; border-top: 1px solid var(--wash); color: var(--g-text3); font-size: 13px; }
.sitefoot a { color: var(--g-text3); }

/* the concept's home is a plain page: no glow behind it (any fold layout either) */
body[data-view="synth"], html[data-fold] body[data-view="synth"] { background: var(--paper); }
.g-bar > .tabs a[aria-current="page"] { background: var(--g-soft); }

/* ---------- Studio (AdvancedStress / AdvancedTiming: main max 1120, padding 48 24; card | 320px panel, gap 24) ---------- */
.wrap.studio.m-speak { max-width: 1120px; padding: 48px 24px 56px; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.g-studio.panel.composer { padding: 0; gap: 0; border: 1px solid var(--g-line); border-radius: 20px; box-shadow: none; background: var(--g-card); }
.g-studio:focus-within { box-shadow: none; border-color: var(--g-line); }
.g-stop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--wash); flex-wrap: wrap; }
.g-modes.modesw { border-radius: 999px; background: #f0f0f2; padding: 3px; gap: 0; }
:root[data-scheme="dark"] .g-modes.modesw { background: #0e0e10; }
.g-modes.modesw button { height: 34px; padding: 0 16px; border-radius: 999px; font: 400 14px var(--body); color: var(--g-text2); }
.g-modes.modesw button[aria-checked="true"], .g-modes.modesw button[data-mode="type"][aria-checked="true"] { color: var(--ink); font-weight: 600; }
.g-modes .ms-glide, .g-modes.modesw[data-mode="type"] .ms-glide { background: var(--g-card); border-radius: 999px; box-shadow: 0 1px 2px rgba(20, 20, 23, .1); }
:root[data-scheme="dark"] .g-modes .ms-glide { background: #2a2a31; box-shadow: none; }
.g-modes .ms-n { margin-left: 4px; }
.g-modes button[aria-checked="true"] .ms-n { background: #c8241f; color: #fff; }
.g-stop .linenote { font-size: 13px; color: var(--g-text3); }
.g-studio textarea#text { padding: 24px 26px 12px; min-height: 220px; font: 400 19px/1.55 var(--body); border: 0; resize: vertical; background: transparent; }
.g-studio .emphview { margin: 20px 18px 8px; }
.g-sbot.comp-bot { display: flex; align-items: center; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--wash); flex-wrap: wrap; }
.g-chip.chosen { display: inline-flex; align-items: center; gap: 8px; height: 40px; max-width: 50%; padding: 0 12px 0 6px; border: 1px solid var(--g-line);
  border-radius: 999px; background: var(--g-card); color: var(--ink); font: 500 15px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-chip.chosen.set { border-color: var(--g-line); }
.g-chip.chosen::before { content: attr(data-ini); flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--g-chipbg);
  display: inline-grid; place-items: center; font-weight: 600; font-size: 12px; }
.studio.m-speak .g-chip.chosen::after { margin-left: 2px; }
.g-sbot .g-speak.vtv-only { display: none; }
.studio[data-mode="vtv"] .g-sbot .g-speak.vtv-only { display: inline-flex; }
.studio[data-mode="vtv"] .g-sbot #speakGo { display: none; }
.g-work > .status { margin: 4px 6px 0; }
.g-work > .status:empty { display: none; }

/* the panel (tabs with an underline; rows of label · pill · slider · ends) */
.g-side.panel.side { padding: 12px 0 0; gap: 0; border: 1px solid var(--g-line); border-radius: 20px; background: var(--g-card); top: 24px; }
.g-tabs.sseg { display: flex; gap: 4px; padding: 0 12px; background: none; border-radius: 0; border-bottom: 1px solid var(--wash); }
.g-tabs.sseg button { height: 38px; padding: 0 14px; border-radius: 0; background: none; box-shadow: none; color: var(--g-text2); font: 400 14px var(--body);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.g-tabs.sseg button[aria-selected="true"] { background: none; box-shadow: none; color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
#sidePanel .sidebody { padding: 4px 18px 18px; }
#sidePanel .panel.deliv { display: block; }
#sidePanel:not([data-side="sound"]) .g-spart { display: none; }
#sidePanel[data-side="sound"] .g-dpart { display: none; }
#sidePanel .deliv .sound, #sidePanel[data-side="sound"] .deliv > .g-spart { display: flex; }
#sidePanel:not([data-side="sound"]) .deliv .sound.g-spart { display: none; }
#sidePanel .sliders, #sidePanel .sliders.two { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
#sidePanel .sl { gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--wash); }
#sidePanel .sl-top label { font: 600 14px var(--body); }
#sidePanel .sl .auto { font: 600 12px var(--body); padding: 2px 8px; border: 0; background: var(--g-soft); color: var(--g-text2); }
#sidePanel .sl .auto[aria-pressed="false"] { background: transparent; color: var(--g-text3); text-decoration: underline; text-underline-offset: 2px; }
#sidePanel .sl .val { margin-left: 0; font: 600 12px var(--body); padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
#sidePanel .sl.off .val { display: none; }
#sidePanel .sl .ends { font-size: 12px; color: var(--g-text3); }
#sidePanel .sl input[type="range"] { accent-color: var(--ink); }
#sidePanel .lockhint:not([hidden]) { margin: 12px 0 0; }
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 4px; }
.g-row > span { display: flex; flex-direction: column; }
.g-row b { font: 600 14px var(--body); }
.g-row small { font-size: 12px; color: var(--g-text3); }
.g-switch.switch { margin: 0; }
.g-switch.switch span { width: 44px; height: 26px; }
.g-switch.switch span::after { width: 20px; height: 20px; }
.g-switch.switch input:checked + span::after { transform: translateX(18px); }
.g-spart { flex-direction: column; gap: 22px; padding-top: 16px; }
.g-models { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.g-models legend { font: 600 14px var(--body); padding: 0 0 8px; }
#gModels { display: flex; flex-direction: column; gap: 8px; }
.g-model { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #ececef; cursor: pointer; }
:root[data-scheme="dark"] .g-model { border-color: var(--g-line); }
.g-model.on { border-color: var(--ink); }
.g-model.off { opacity: .5; cursor: not-allowed; }
.g-model input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; flex: none; }
.g-model span { display: flex; flex-direction: column; }
.g-model b { font: 600 14px var(--body); }
.g-model small { font-size: 12px; color: var(--g-text3); }
.g-qual { display: flex; flex-direction: column; gap: 8px; }
.g-qhead { display: flex; justify-content: space-between; align-items: baseline; }
.g-qhead b { font: 600 14px var(--body); }
.g-qhead small { font-size: 12px; color: var(--g-text3); }
.g-qseg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: #f0f0f2; }
:root[data-scheme="dark"] .g-qseg { background: #0e0e10; }
.g-qseg button { height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--g-text2); font: 400 13px var(--body); cursor: pointer; padding: 0; }
.g-qseg button[aria-pressed="true"] { background: var(--g-card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 20, 23, .1); }
:root[data-scheme="dark"] .g-qseg button[aria-pressed="true"] { background: #2a2a31; }
.g-qseg button.held { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(127, 127, 127, .12) 4px 8px); }
@media (max-width: 980px) { .wrap.studio.m-speak { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 40px; } }
.wrap.studio.m-speak { align-items: start; }
.g-work { align-self: start; }
.g-studio textarea#text { min-height: 200px; height: auto; }

/* Stress / Timing words (AdvancedStress: 28px display words, no how-to line; only the Reset pill stays) */
.g-studio .emphview.tall { font: 500 26px/1.5 var(--display); letter-spacing: -.01em; padding: 28px 22px 12px; margin: 0; row-gap: 18px; }
.g-studio .emph-hint, .g-composer .emph-hint { font-size: 0; display: flex; flex-basis: 100%; justify-content: flex-end; margin-top: 4px; }
.g-studio .emph-reset, .g-composer .emph-reset { font: 400 13px var(--body); height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--g-line);
  background: var(--g-card); color: var(--g-text2); cursor: pointer; }

/* ---------- voice picker (VoicePicker: 520 wide, radius 18, search, tabs, sections, rows with initial / sample / check) ---------- */
:root { --t0: #e9e6df; --t1: #e3e8ee; --t2: #ece3e6; --t3: #e2ebe4; --t4: #efe8dc; --t5: #e6e4ef; }
:root[data-scheme="dark"] { --t0: #2d2a24; --t1: #232a33; --t2: #33262a; --t3: #233027; --t4: #332c22; --t5: #2a2735; }
.dlg.vpick { padding: 0; border: 1px solid var(--g-line); border-radius: 18px; background: var(--g-card); gap: 0;
  box-shadow: 0 2px 6px rgba(20, 20, 23, .06), 0 24px 64px rgba(20, 20, 23, .14); max-height: min(78vh, 680px); }
.vp-top { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.vp-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--g-soft); color: var(--g-text3); }
.vp-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.vp-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; color: var(--ink); }
.vp-tabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.vp-tabs button { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; color: var(--g-text2); font: 400 14px var(--body); cursor: pointer; }
.vp-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.vp-tabs span { flex: 1; }
.vp-tabs select { height: 32px; border: 0; background: transparent; color: var(--g-text2); font: 400 14px var(--body); cursor: pointer; }
.vpick .vp-body { border-top: 1px solid var(--wash); padding: 8px; display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.vp-h { margin: 0; padding: 12px 10px 4px; font: 600 12px var(--body); color: var(--g-text3); letter-spacing: .04em; text-transform: uppercase; }
.vp-h:first-child { padding-top: 8px; }
.vp-row { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 0; border-radius: 12px; }
.vp-row.on { background: var(--g-soft2); }
:root[data-scheme="dark"] .vp-row.on { background: #1f1f24; }
.vp-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; background: transparent; color: var(--ink);
  text-align: left; cursor: pointer; border-radius: 12px; font: inherit; }
.vp-pick:hover { background: var(--g-soft); }
.vp-ini { flex: none; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font: normal 600 13px var(--body); }
.vp-ini.t0 { background: var(--t0); } .vp-ini.t1 { background: var(--t1); } .vp-ini.t2 { background: var(--t2); }
.vp-ini.t3 { background: var(--t3); } .vp-ini.t4 { background: var(--t4); } .vp-ini.t5 { background: var(--t5); }
.vp-pick span { display: flex; flex-direction: column; min-width: 0; }
.vp-pick b { font: 600 15px var(--body); }
.vp-pick small { font-size: 13px; color: var(--g-text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-play { flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--g-line); background: var(--g-card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.vp-play svg { width: 12px; height: 12px; fill: currentColor; }
.vp-play.on { border-color: #c8241f; color: #c8241f; }
.vp-play.busy { opacity: .5; cursor: progress; }
.vp-check { flex: none; width: 18px; height: 18px; fill: none; stroke: #c8241f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vp-empty { margin: 0; padding: 14px 10px; color: var(--g-text2); font-size: 14px; }
.vp-rand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 10px 58px; }
.vp-rand label { font-size: 13px; color: var(--g-text2); width: 84px; flex: none; }
.vp-rand input { flex: 1; accent-color: var(--ink); }
.vp-rand span { font-size: 13px; color: var(--g-text3); width: 104px; text-align: right; flex: none; }
.vpick .vp-foot { padding: 10px 14px; border-top: 1px solid var(--wash); gap: 16px; }

/* ---------- Voices (Voices.dc.html: main max 1120, padding 56 24 64, gap 48) ---------- */
.wrap.studio.m-lib:not(.cloning) { max-width: 1120px; padding: 56px 24px 64px; }
.studio.m-lib:not(.cloning) > .panel.voice { border: 0; padding: 0; background: none; box-shadow: none; }
.studio.m-lib:not(.cloning) .panel.voice .panel-head { display: none; }
.g-voices.tabpane { display: flex; flex-direction: column; gap: 48px; margin: 0; padding: 0; }
.g-voices[hidden] { display: none !important; }
.g-ptitle { display: flex; flex-direction: column; gap: 8px; }
.g-ptitle h1 { margin: 0; font: 600 40px/1.1 var(--display); letter-spacing: -.02em; }
.g-ptitle p { margin: 0; color: var(--g-text2); font-size: 16px; }
.g-make { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g-makecard { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--g-line); border-radius: 18px; background: var(--g-card);
  color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.g-makecard:hover { border-color: var(--rule-hover); }
.g-mk-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--g-soft); color: var(--ink); display: grid; place-items: center; }
.g-mk-ico.red { background: #fdeceb; color: #c8241f; }
:root[data-scheme="dark"] .g-mk-ico.red { background: #3a1615; color: #ff7a72; }
.g-mk-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.g-mk-txt { display: flex; flex-direction: column; gap: 4px; }
.g-mk-txt b { font: 600 17px var(--body); }
.g-mk-txt > span { color: var(--g-text2); font-size: 14px; line-height: 1.5; }
.g-lib, .g-mine { display: flex; flex-direction: column; gap: 20px; }
.g-mine { gap: 12px; }
.g-voices .filters { gap: 8px; }
.g-voices .filters button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--g-line); background: var(--g-card); color: var(--ink); font: 400 14px var(--body); }
.g-voices .filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.studio .g-voices .voicelist, .studio.m-lib .panel.voice .g-voices .voicelist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-voices .voicelist li { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px solid #ececef; border-radius: 16px; min-width: 0; background: var(--g-card); }
:root[data-scheme="dark"] .g-voices .voicelist li { border-color: var(--g-line); }
.g-voices .voicelist li:has(> button.v[aria-pressed="true"]) { border-color: var(--ink); }
.studio .g-voices .voicelist button.v, .studio.m-lib .panel.voice .g-voices .voicelist button.v { flex: 1; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px; align-items: center; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; color: var(--ink); }
.g-voices .voicelist button.v .vp-ini { grid-row: span 2; width: 44px; height: 44px; font-family: var(--display); font-size: 15px; }
.g-voices .voicelist button.v b { font: 600 15px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-voices .voicelist button.v > span { font-size: 13px; color: var(--g-text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-voices .voicelist .vp-play { width: 40px; height: 40px; }
.g-voices .voicelist .x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--g-text2); cursor: pointer; display: grid; place-items: center; }
.g-voices .voicelist .x:hover { background: var(--g-soft); color: var(--ink); }
.g-voices .voicelist .x svg { width: 15px; height: 15px; }
.g-caps { margin: 0; font: 600 13px var(--body); color: var(--g-text3); letter-spacing: .04em; text-transform: uppercase; }
.g-empty { padding: 28px; border: 1px dashed #d9d9de; border-radius: 16px; color: var(--g-text2); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
:root[data-scheme="dark"] .g-empty { border-color: #34343b; }
.g-emptytext { flex: 1 1 320px; }
#mineBox:not([hidden]) + .g-empty { padding: 16px 20px; }
#mineBox:not([hidden]) + .g-empty .g-emptytext { display: none; }
.g-empty .linkbtn { font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 900px) { .studio .g-voices .voicelist, .studio.m-lib .panel.voice .g-voices .voicelist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .g-make { grid-template-columns: minmax(0, 1fr); }
  .studio .g-voices .voicelist, .studio.m-lib .panel.voice .g-voices .voicelist { grid-template-columns: minmax(0, 1fr); }
  .wrap.studio.m-lib:not(.cloning) { padding: 28px 16px 40px; }
  .g-voices.tabpane { gap: 32px; }
}

/* ---------- Design a voice (DesignVoice: back link, 40px title, New character; sliders card 380 | takes 520) ---------- */
.g-design.tabpane { display: flex; flex-direction: column; gap: 32px; margin: 0; padding: 0; overflow: visible; }
.g-design[hidden] { display: none !important; }
.g-dhead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.g-dhead .g-ptitle { flex: 1 1 320px; }
.g-back { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--g-text2); font: 400 14px var(--body); cursor: pointer; }
.g-back:hover { color: var(--ink); }
.g-dactions { display: flex; align-items: center; gap: 14px; }
.g-dactions .link { font-size: 14px; color: var(--g-text2); }
.g-outline { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--g-line);
  background: var(--g-card); color: var(--ink); font: 500 15px var(--body); cursor: pointer; }
.g-outline:hover { border-color: var(--rule-hover); }
.g-outline svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-dbody { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.g-dshape { flex: 1 1 380px; min-width: 0; border: 1px solid var(--g-line); border-radius: 20px; padding: 8px 22px; background: var(--g-card); }
.g-dshape .sliders { display: flex; flex-direction: column; gap: 0; }
.g-dshape .sl { padding: 18px 0; gap: 8px; border-bottom: 1px solid var(--wash); }
.g-dshape .sl:last-child { border-bottom: 0; }
.g-dshape .sl-top label { font: 600 14px var(--body); }
.g-dshape .sl input[type="range"] { accent-color: var(--ink); }
.g-dshape .sl .ends { font-size: 12px; color: var(--g-text3); }
.g-dtakes { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.g-dth { display: flex; justify-content: space-between; align-items: baseline; }
.g-dth .link { font-size: 14px; color: var(--g-text2); }
.g-dtakes .cands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.g-dtakes .cands li { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-card); cursor: pointer; }
.g-dtakes .cands li[aria-selected="true"] { border: 2px solid #c8241f; padding: 15px; }
.g-dot { flex: none; width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--g-text3); }
.cands li[aria-selected="true"] .g-dot { border: 5px solid #c8241f; }
.g-dtakes .cands .g-wave { flex: 1; height: 26px; }
.g-dtakes .cands .nm { font-size: 13px; color: var(--g-text3); flex: none; }
.g-keep { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.g-keep .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; margin: 0; }
.g-keep .field span { font: 600 14px var(--body); }
.g-keep .field input { height: 44px; padding: 0 14px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-card); color: var(--ink); font: inherit; }
.g-note { margin: 0; font-size: 13px; color: var(--g-text3); }

/* ---------- Voice to voice (VoiceToVoice.dc.html: main max 920, padding 56 24 64, gap 32; two cards 18 radius with an
   arrow between; options on #f7f7f8 radius 18, rows label 72 | control | value; Convert bottom right) ---------- */
.wrap.studio[data-mode="vtv"] { max-width: 920px; padding: 56px 24px 64px; grid-template-columns: minmax(0, 1fr); }
.studio[data-mode="vtv"] #sidePanel, .studio[data-mode="vtv"] .g-stop,
.studio[data-mode="vtv"] .g-sbot > :not(#vtvGo) { display: none !important; }
.studio[data-mode="vtv"] .g-studio.panel.composer { border: 0; border-radius: 0; background: none; }
.studio[data-mode="vtv"] .g-sbot.comp-bot { border-top: 0; padding: 0; justify-content: flex-end; margin-top: 32px; }
.studio[data-mode="vtv"] #vtvGo { height: 48px; padding: 0 24px; font-size: 15px; }
.g-vtv.vtv-in { display: flex; flex-direction: column; gap: 32px; }
.g-vtv[hidden] { display: none; }
.g-vrow { display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap; }
.g-vcard { flex: 1 1 320px; min-width: 0; padding: 20px; border: 1px solid var(--g-line); border-radius: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--g-card); }
.g-varrow { display: flex; align-items: center; justify-content: center; width: 40px; color: #b9b9bf; }
.g-varrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-vrec .recorder { gap: 12px; }
.g-vrec .rec { width: 40px; height: 40px; box-shadow: none; }
.g-vrec .rec span { width: 12px; height: 12px; }
.g-vrec .recorder b { font-weight: 500; font-size: 15px; }
.g-vrec #vtvTime { font-size: 13px; color: var(--g-text3); }
.g-vrec .drop { margin-left: auto; font-size: 14px; color: var(--g-text2); cursor: pointer; }
.g-vrec .drop input { display: none; }
.g-vrec.has-clip .recorder { display: none; }
.g-vrec .vtv-clip { border: 0; padding: 0; border-radius: 0; gap: 12px; }
.g-vrec .vtv-clip .g-wave { flex: 1; min-width: 0; height: 32px; }
.g-vrec .vtv-clip .g-wave i { background: #b9b9bf; }
:root[data-scheme="dark"] .g-vrec .vtv-clip .g-wave i { background: #4a4a52; }
.g-vdur { font-size: 13px; color: var(--g-text3); }
.g-vacts { display: flex; gap: 8px; flex-wrap: wrap; }
.g-vacts[hidden] { display: none; }
.g-sm { height: 36px; padding: 0 14px; font: 400 14px var(--body); }
.g-ghost { display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--g-text2); cursor: pointer; }
.g-ghost:hover { color: var(--ink); background: var(--g-soft); }
.g-vto { display: flex; align-items: center; gap: 12px; }
.g-vto .vp-ini { width: 40px; height: 40px; font: normal 600 15px var(--display); color: var(--ink); }
.g-vto > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.g-vto b { font-weight: 600; }
.g-vto small { font-size: 13px; color: var(--g-text3); }
.g-vopts { padding: 20px 22px; border-radius: 18px; background: var(--g-soft2); display: flex; flex-direction: column; gap: 20px; }
.g-vline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.g-vlab { font-weight: 600; width: 72px; }
.g-vseg.g-qseg { display: flex; border-radius: 999px; background: #ececef; }
:root[data-scheme="dark"] .g-vseg.g-qseg { background: #0e0e10; }
.g-vseg button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.g-vseg button[aria-pressed="true"] { font-weight: 500; }
.g-vsmall { font-size: 13px; color: var(--g-text3); }
/* the slider rows: label | track (+ ends, hint) | value; Auto under the value */
.g-vopts .sl { display: grid; grid-template-columns: 72px minmax(0, 1fr) 64px; column-gap: 16px; row-gap: 6px; align-items: center; }
.g-vopts .sl[hidden], .g-vopts .vtv-sing.off { display: none; }
.g-vopts .sl-top { display: contents; }
.g-vopts .sl-top label { grid-column: 1; grid-row: 1; font-size: 15px; }
.g-vopts .sl .trk { grid-column: 2; grid-row: 1; }
.g-vopts .sl .val { grid-column: 3; grid-row: 1; margin: 0; text-align: right; font: 600 15px var(--body); }
.g-vopts .sl .auto { grid-column: 3; grid-row: 2; justify-self: end; font: 600 12px var(--body); padding: 2px 8px; border: 0; border-radius: 999px; background: var(--g-card); color: var(--g-text2); cursor: pointer; }
.g-vopts .sl .auto[aria-pressed="false"] { background: transparent; color: var(--g-text3); text-decoration: underline; text-underline-offset: 2px; }
.g-vopts .vtv-sing .auto { display: none; }
.g-vopts .sl .ends { grid-column: 2; grid-row: 2; font-size: 12px; color: var(--g-text3); }
.g-vopts .phint { grid-column: 2 / 4; grid-row: 3; font-size: 12.5px; color: var(--g-text3); }
.g-vopts .phint:empty { display: none; }
@media (max-width: 720px) {
  .wrap.studio[data-mode="vtv"] { padding: 28px 16px 40px; }
  .g-varrow { width: 100%; height: 8px; transform: rotate(90deg); }
  .g-vopts .sl { grid-template-columns: minmax(0, 1fr) auto; }
  .g-vopts .sl-top label { grid-column: 1; }
  .g-vopts .sl .trk { grid-column: 1 / 3; grid-row: 2; }
  .g-vopts .sl .val { grid-column: 2; }
  .g-vopts .sl .ends { grid-row: 3; grid-column: 1; }
  .g-vopts .sl .auto { grid-row: 3; grid-column: 2; }
  .g-vopts .phint { grid-column: 1 / 3; grid-row: 4; }
}
.g-vrec .drop { border: 0; padding: 0; background: none; min-height: 0; }
.g-vtv > .status:empty { display: none; }
.g-vdur { font-family: var(--body); }

/* ---------- Clone (Clone / CloneConfirm / CloneSaved: main max 680, padding 56 24 64; step pills; the sentence 34 px in
   the middle, an 84 px record button with a soft ring, live red bars, the 5 s .. 1:30 bar, Skip / Done reading) ---------- */
.wrap.studio.cloning { max-width: 728px; padding: 56px 24px 64px; }
.studio.cloning > .panel.voice { border: 0; padding: 0; background: none; box-shadow: none; }
.studio.cloning .panel.voice .panel-head { display: none; }
.studio.cloning .tabpane[data-pane="clone"] { max-width: none; margin: 0; }
.g-steps { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.g-steps li { padding: 6px 12px; border-radius: 999px; background: var(--g-soft); color: var(--g-text2); }
.g-steps li[aria-current="step"] { background: var(--ink); color: var(--paper); font-weight: 500; }
.g-cread.cstage { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.g-cread .script { border: 0; padding: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.g-cread .script-top { justify-content: center; flex-wrap: wrap; }
.g-cread .how { font: 600 13px var(--body); color: var(--g-text3); letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.g-cread .how { background: none; padding: 0; box-shadow: none; border: 0; }
.g-cread .how b { font-weight: 600; color: var(--sc); }  /* (the way to read it keeps its colour) */
.g-cread #scriptLang { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--g-line); background: var(--g-card); font: 400 13px var(--body); color: var(--g-text2); }
.studio.cloning .g-cread .script-text { margin: 0; font: 500 34px/1.25 var(--display); letter-spacing: -.015em; min-height: 0; text-wrap: balance; }
.studio.cloning .g-cread .script-text::before { content: "\201C"; }
.studio.cloning .g-cread .script-text::after { content: "\201D"; }
.g-cread .script.finished .script-text::before, .g-cread .script.finished .script-text::after { content: none; }
.g-cread .how-tip { margin: 0; font-size: 14px; color: var(--g-text2); max-width: 520px; }
.g-cread .how-tip:empty, .g-cread .script-nav { display: none; }
.g-cread .addbanner { text-align: left; }
.g-bigrec.recorder { flex-direction: column; gap: 18px; }
.studio.cloning .g-bigrec .rec { width: 84px; height: 84px; box-shadow: 0 0 0 10px #fdeceb; }
:root[data-scheme="dark"] .studio.cloning .g-bigrec .rec { box-shadow: 0 0 0 10px #3a1716; }
.g-bigrec .rec span { width: 24px; height: 24px; }
.g-bigrec .rec.on span { width: 24px; height: 24px; border-radius: 5px; }
.g-bigrec .rec.on::after { inset: -10px; }
.g-lvl { display: flex; align-items: center; gap: 3px; height: 28px; }
.g-lvl i { display: block; width: 4px; height: 3px; border-radius: 2px; background: var(--red); transition: height .08s linear; }
.g-lvl:not(.on) i { height: 3px !important; opacity: .25 !important; }
.g-recline { font-size: 14px; color: var(--g-text2); }
.g-recline b { font-weight: 500; color: var(--g-text2); }
.g-bigrec:not(:has(.rec.on)) #recTime { display: none; }
.g-cprog { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.g-cprog .meter { height: 4px; border-radius: 999px; background: #f0f0f2; overflow: hidden; }
:root[data-scheme="dark"] .g-cprog .meter { background: #26262c; }
.g-cprog .meter i, .g-cprog .meter i.ok { background: var(--ink); box-shadow: none; border-radius: 999px; }
.g-cprog .meter em { display: none; }
.g-cends { display: flex; justify-content: space-between; font-size: 13px; color: var(--g-text3); }
.g-cprog .hint { margin: 0; font-size: 13px; color: var(--g-text3); }
.g-cacts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.g-cacts .namerow { display: contents; }
.g-cacts .namerow[hidden] { display: none; }
.g-dark { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 15px var(--body); cursor: pointer; }
.g-dark:disabled { opacity: .35; cursor: default; }
.g-cnote { max-width: 460px; }
.g-cmore { width: 100%; text-align: left; border-top: 1px solid var(--wash); }
.g-cmore > summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; cursor: pointer; font-size: 14px; color: var(--g-text2); }
.g-cmore > summary::-webkit-details-marker { display: none; }
.g-cmore > summary b { color: var(--ink); font-weight: 500; margin-left: 6px; }
.g-cmore > summary > span:first-child::before { content: "+"; display: inline-block; width: 16px; color: var(--g-text3); }
.g-cmore[open] > summary > span:first-child::before { content: "\2212"; }
.g-cmorebody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-bottom: 8px; }
.g-cmorebody .coverage { margin: 0; }
.g-cmorebody .drop { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--g-text2); border: 0; padding: 0; background: none; }
.g-cmorebody .drop input { display: none; }
@media (max-width: 640px) { .g-cmorebody { grid-template-columns: minmax(0, 1fr); } .studio.cloning .g-cread .script-text { font-size: 26px; } }
/* step 2 + 3: the confirmation, two choices as cards, the name next to Create voice */
.g-cconfirm.cstage, .g-csaved.cstage { display: flex; flex-direction: column; gap: 28px; }
.g-cconfirm .half > *, .g-csaved .half > * { order: 0; }
.g-cconfirm .confirm { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.studio.cloning .g-cconfirm .confirm .script-text { margin: 0; font: 500 24px/1.35 var(--display); letter-spacing: -.01em; }
.g-crow.recorder { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--g-soft2); gap: 14px; flex-wrap: nowrap; align-items: center; }
.studio.cloning .g-crow .rec { width: 44px; height: 44px; background: var(--g-card); color: var(--red); box-shadow: 0 1px 2px rgba(20, 20, 23, .1); }
.g-crow .rec svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.studio.cloning .g-crow .rec.on { background: var(--red); color: #fff; }
.g-crow > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.g-crow b { font-weight: 600; }
.g-sub { font-size: 13px; color: var(--g-text2); }
.g-crow #consentTime { margin-left: 6px; }
.g-checks { display: flex; flex-direction: column; gap: 10px; }
.g-checks .check { gap: 12px; padding: 14px 16px; border: 1px solid var(--g-line); border-radius: 14px; font-size: 15px; color: var(--ink); }
.g-checks .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.g-checks .o-train > span { display: flex; flex-direction: column; gap: 2px; }
.g-checks .check a { color: inherit; text-decoration: underline; }
.g-checks .check small { font-size: 13px; color: var(--g-text2); }
.g-checks .check .opt { font: 400 12px var(--body); color: var(--g-text3); padding: 1px 8px; border-radius: 999px; background: var(--g-soft); margin-left: 6px; }
.g-cname { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--wash); }
.g-namerow { display: flex; gap: 10px; flex-wrap: wrap; }
.g-namerow input { flex: 1 1 260px; height: 48px; padding: 0 16px; border: 1px solid var(--g-line); border-radius: 12px; font: 400 16px var(--body); color: var(--ink); background: var(--g-card); }
.g-namerow .g-speak { height: 48px; padding: 0 24px; }
.g-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-cname .g-note a, .g-cname .g-note .link { color: var(--g-text2); text-decoration: underline; font: inherit; padding: 0; }
/* the ready page */
.g-shead { display: flex; align-items: center; gap: 18px; }
.g-sini { flex: none; width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; font: 600 24px var(--display); color: var(--ink); }
.g-sini.t0 { background: var(--t0); } .g-sini.t1 { background: var(--t1); } .g-sini.t2 { background: var(--t2); }
.g-sini.t3 { background: var(--t3); } .g-sini.t4 { background: var(--t4); } .g-sini.t5 { background: var(--t5); }
.g-shead > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.g-shead h1 { margin: 0; font: 600 34px/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.g-shead #savedMeta { color: var(--g-text2); }
.g-play.g-big { width: 48px; height: 48px; }
.g-play.g-big svg { width: 16px; height: 16px; }
.g-don.donbox { margin: 0; padding: 18px 20px; border-radius: 16px; background: #fff8e6; border: 1px solid #f1dfae; display: flex; flex-direction: column; gap: 10px; }
:root[data-scheme="dark"] .g-don.donbox { background: #241f12; border-color: #4a3f22; }
.g-don[hidden] { display: none; }
.g-don .coderow { margin: 0; gap: 10px; flex-wrap: wrap; }
.g-don .coderow code { flex: 1 1 260px; font: 500 15px var(--mono); padding: 10px 14px; border-radius: 10px; background: var(--g-card); border: 1px solid #f1dfae; }
:root[data-scheme="dark"] .g-don .coderow code { border-color: #4a3f22; }
.g-don .g-sub { margin: 0; }
.g-don .g-sub a { color: inherit; text-decoration: underline; }
.g-styles { display: flex; flex-direction: column; gap: 12px; }
.g-styles[hidden] { display: none; }
.g-sth { display: flex; justify-content: space-between; align-items: baseline; }
#savedCount { font-size: 13px; color: var(--g-text3); }
.g-sgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.g-style { padding: 12px; border-radius: 12px; border: 1px dashed var(--g-line); display: flex; flex-direction: column; gap: 2px; }
.g-style b { font-weight: 600; font-size: 14px; color: var(--g-text3); }
.g-style small { font-size: 12px; color: var(--g-text3); }
.g-style.has { border-style: solid; border-color: color-mix(in srgb, var(--sc) 30%, var(--g-line)); background: color-mix(in srgb, var(--sc) 7%, var(--g-card)); }
.g-style.has b { color: var(--ink); }
#savedMore { align-self: flex-start; font: 500 14px var(--body); color: var(--ink); text-decoration: underline; padding: 0; }
.g-sact { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--wash); }
.g-sact > span { flex-grow: 1; }
.g-sact .g-speak, .g-sact .g-outline, .g-sact .g-ghost { height: 48px; }
.g-sact .g-speak { padding: 0 24px; }
.g-sact .g-ghost { padding: 0 14px; font: 400 15px var(--body); }
@media (max-width: 640px) { .g-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-shead h1 { font-size: 26px; } .wrap.studio.cloning { padding: 28px 16px 40px; } }
.g-cread .script { width: 100%; }
.g-recline b { display: inline; }
#stConsent .half > *, #stConsent .confirm { order: 0; }  /* (app.css reorders step 2 for the old layout) */
.studio .cstage[hidden] { display: none; }  /* (the flex stages above would otherwise show while hidden) */
.g-csaved .status:empty, .g-cconfirm .status:empty { display: none; }

/* ---------- Takes (Takes.dc.html: rows padding 16, radius 16, gap 8; waiting / speaking rows with a hairline; a done row
   on #f7f7f8 with play, waveform, voice · length, Keep this voice, download; the soft-lock notice amber above the text) */
#takes.g-takelist { gap: 8px; margin-top: 12px; }
#takes .g-take { padding: 16px; border-radius: 16px; border: 1px solid transparent; background: none; align-items: center; flex-wrap: nowrap; }
#takes .g-take.g-done { background: var(--g-soft2); }
:root[data-scheme="dark"] #takes .g-take.g-done { background: #16161a; }
#takes .g-take.g-pend { border-color: #ececef; }
:root[data-scheme="dark"] #takes .g-take.g-pend { border-color: #26262c; }
#takes .g-tk { display: flex; gap: 6px; }
#takes .g-tk p { font-size: 14px; color: var(--g-text2); overflow-wrap: normal; }
#takes .g-tk .meta { font: 400 13px var(--body); color: var(--g-text3); }
#takes .g-tk .g-wave { height: 22px; }
#takes .tk-more { gap: 4px; }
#takes .tk-more:not(:has(details)) { display: none; }
#takes details.info > summary { font-size: 12.5px; color: var(--g-text3); cursor: pointer; }
.g-pdot { width: 40px; height: 40px; flex: none; border-radius: 999px; background: #fdeceb; display: flex; align-items: center; justify-content: center; gap: 3px; }
:root[data-scheme="dark"] .g-pdot { background: #3a1716; }
.g-pdot i { width: 4px; height: 4px; border-radius: 999px; background: #a1a1aa; display: none; }
.g-pdot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--red); animation: gPulse 1.2s ease-in-out infinite; }
.g-pend.wait .g-pdot { background: var(--g-soft); }
.g-pend.wait .g-pdot::before { display: none; }
.g-pend.wait .g-pdot i { display: block; animation: gDots 1.2s ease-in-out infinite; }
.g-pend.wait .g-pdot i:nth-child(2) { animation-delay: .15s; } .g-pend.wait .g-pdot i:nth-child(3) { animation-delay: .3s; }
@keyframes gPulse { 50% { transform: scale(.7); opacity: .6; } }
@keyframes gDots { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.g-ph { display: flex; justify-content: space-between; gap: 12px; }
.g-ph b { font-weight: 500; }
.g-pn { font-size: 13px; color: var(--g-text3); }
.g-psub { font-size: 13px; color: var(--g-text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-pend:not(.wait) .g-psub { display: none; }
.g-pend .stepbar { margin: 2px 0 0; }
.g-pend.wait .stepbar { opacity: .5; }
.g-keepv { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--g-card); color: var(--ink); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; }
.g-keepv svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#takes .savev { flex: none; }
#takes .savev span { display: flex; gap: 6px; align-items: center; }
#takes .savev input { width: 160px; height: 36px; padding: 0 12px; border: 1px solid var(--g-line); border-radius: 999px; font: 400 14px var(--body); }
@media (max-width: 640px) {
  #takes .g-take { flex-wrap: wrap; }
  #takes .g-tk { flex: 1 1 calc(100% - 60px); }
  #takes .savev { margin-left: 54px; }
}
.g-lockbar { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid #f1dfae; background: #fff8e6; flex-wrap: wrap; margin: 0 0 16px; }
:root[data-scheme="dark"] .g-lockbar { background: #241f12; border-color: #4a3f22; }
.g-lockbar > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #8a6400; stroke-width: 1.8; stroke-linecap: round; }
.g-lockbar > span { flex: 1 1 280px; }
.g-lockbar .g-outline { border-color: #e4d29b; }
.g-lockbar .g-dark { height: 36px; padding: 0 14px; font-weight: 400; font-size: 14px; }
.g-lockbar .g-lx { width: 36px; padding: 0; justify-content: center; }
.g-lockbar .g-lx svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* ---------- Dialogs (Settings.dc.html: max 620, radius 22, a soft shadow; title 24; caps headings 12; rows name + note |
   switch 44 x 26, hairlines between) ---------- */
.dlg { border: 0; border-radius: 22px; background: var(--g-card); color: var(--ink);
  box-shadow: 0 2px 6px rgba(20, 20, 23, .05), 0 24px 64px rgba(20, 20, 23, .10); }
.dlg::backdrop { background: rgba(244, 244, 245, .72); backdrop-filter: blur(2px); }
:root[data-scheme="dark"] .dlg::backdrop { background: rgba(9, 9, 11, .72); }
:root[data-scheme="dark"] .dlg { box-shadow: 0 0 0 1px #2a2a30, 0 24px 64px rgba(0, 0, 0, .5); }
.dlg.g-sets { width: min(620px, calc(100vw - 32px)); }
.g-sets .sets-head { padding: 20px 20px 8px 28px; }
.g-sets .sets-head h3 { font: 600 24px var(--display); }
.g-sets .dlg-x { width: 40px; height: 40px; border-radius: 999px; }
.g-sets .sets-body { padding: 4px 28px 28px; }
.g-sets .sets-sec { display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; }
.g-sets .sets-sec h4, .g-sets .sets-sec > h4 { margin: 18px 0 4px; font: 600 12px var(--body); color: var(--g-text3); letter-spacing: .05em; text-transform: uppercase; }
.g-srow { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--g-soft); cursor: pointer; }
.g-srow:last-child { border-bottom: 0; }
div.g-srow { cursor: default; }
.g-stext { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.g-stext b { font-weight: 500; }
.g-stext small { font-size: 13px; color: var(--g-text3); }
.g-sw.switch { margin: 0; flex: none; }
.g-q { width: 20px; height: 20px; margin-left: 6px; padding: 0; border: 1px solid var(--g-text3); border-radius: 50%; background: none; color: var(--g-text2); font: 600 12px/1 inherit; cursor: pointer; vertical-align: 1px; }
.g-q:hover, .g-q[aria-expanded="true"] { background: var(--g-soft); }
.g-stext small.g-qtip { margin-top: 6px; color: var(--g-text2); }
.g-sw.switch span { width: 44px; height: 26px; background: #e4e4e7; }
:root[data-scheme="dark"] .g-sw.switch span { background: #33333a; }
.g-sw.switch span::after { width: 20px; height: 20px; }
.g-sw.switch input:checked + span { background: var(--ink); }
.g-sw.switch input:checked + span::after { transform: translateX(18px); }
.g-sets .g-vseg button { height: 32px; padding: 0 14px; font-size: 14px; }
.g-sets .g-vseg button[aria-pressed="true"] { font-weight: 600; }
.g-srand.sl { padding: 12px 0; gap: 6px; }
.g-srand .sl-top { display: flex; align-items: baseline; gap: 10px; }
.g-srand .sl-top label { font-weight: 500; font-size: 15px; }
.g-srand .sl-top small { font-size: 13px; color: var(--g-text3); margin-right: auto; }
.g-srand .auto { font: 600 12px var(--body); padding: 2px 8px; border: 0; border-radius: 999px; background: var(--g-soft); color: var(--g-text2); cursor: pointer; }
.g-srand .auto[aria-pressed="false"] { background: transparent; color: var(--g-text3); text-decoration: underline; text-underline-offset: 2px; }
.g-srand .val { margin: 0; font: 600 12px var(--body); padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.g-srand .val:empty { display: none; }
.g-srand .ends { font-size: 12px; color: var(--g-text3); }
.g-sets .pvbox, .g-sets .appmodels { margin: 0; padding: 0; border: 0; gap: 8px; }
.g-sets .pvbox .hint, .g-sets .appmodels .hint { margin: 12px 0 8px; font-size: 13px; color: var(--g-text3); }
.g-sets .pvrow { gap: 8px; margin: 0; }
.g-sets .pvrow input { height: 44px; padding: 0 14px; border: 1px solid var(--g-line); border-radius: 12px; font: 400 15px var(--body); }
.g-sets .pvrow .g-dark { padding: 0 18px; }
.g-sbtns { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
.g-sbtns .g-outline { height: 40px; padding: 0 16px; font: 400 14px var(--body); color: var(--ink); text-decoration: none; }
@media (max-width: 520px) { .g-sets .sets-head { padding-left: 20px; } .g-sets .sets-body { padding: 4px 20px 22px; } }

/* ---------- What's new (WhatsNew.dc.html: max 560, radius 22; head: title 22, Mark all as read, close; rows radius 14 --
   a 36 px icon tile, title + New, date, one line that opens to the whole text, a chevron) ---------- */
.dlg.news.g-news { width: min(560px, calc(100vw - 32px)); padding: 0; }
.g-nhead { display: flex; align-items: center; gap: 10px; padding: 20px 16px 8px 24px; }
.g-nhead h3 { margin: 0; flex: 1; font: 600 22px var(--display); letter-spacing: 0; }
.g-mark { height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--g-soft); color: var(--g-text2); font: 400 13px var(--body); cursor: pointer; }
.g-mark[hidden] { display: none; }
.g-news .dlg-x { width: 40px; height: 40px; border-radius: 999px; }
.g-nlist.news-list { margin: 0; padding: 4px 12px 16px; gap: 2px; max-height: min(70vh, 720px); }
.g-nlist .g-ni { display: block; padding: 0; border-radius: 14px; }
.g-nlist .g-ni.is-new { background: none; }
.g-nlist .g-ni.open { background: var(--g-soft2); }
:root[data-scheme="dark"] .g-nlist .g-ni.open { background: #1c1c21; }
.g-nlist .g-ni:not(.open):hover { background: var(--g-soft2); }
.g-ni > button { width: 100%; border: 0; background: none; text-align: left; padding: 14px 12px; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; color: var(--ink); font: inherit; }
.g-nicon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--g-soft); display: grid; place-items: center; overflow: hidden; }
.g-nicon .news-ic { transform: scale(.82); border: 0; background: none; flex: none; }
.g-nt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.g-nh { display: flex; align-items: center; gap: 8px; }
.g-nh b { font: 600 15px var(--body); }
.g-nh .news-new { font: 600 11px/1.5 var(--body); text-transform: none; letter-spacing: 0; }
.g-nt small { font: 400 12px var(--body); color: var(--g-text3); }
.g-np { font-size: 14px; color: var(--g-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ni.open .g-np { white-space: pre-line; color: #3f3f46; padding-top: 6px; }
:root[data-scheme="dark"] .g-ni.open .g-np { color: #c4c4cc; }
.g-nchev { width: 16px; height: 16px; flex: none; margin-top: 10px; fill: none; stroke: var(--g-text3); stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.g-ni.open .g-nchev { transform: rotate(180deg); }
.g-newslink { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.g-newslink.unread::after { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--red); }

/* ---------- the training card (Training.dc.html: 380 wide, radius 18, a hairline + soft shadow; caps kicker, the model 20,
   the bar 8 px red, "% · step" | "done in", Speed / Loss tiles, the loss over the run, a clip to hear) ---------- */
.tpop.g-tpop { width: min(380px, calc(100vw - 24px)); padding: 20px; border-radius: 18px; border: 1px solid var(--g-line); background: var(--g-card);
  box-shadow: 0 2px 6px rgba(20, 20, 23, .06), 0 24px 64px rgba(20, 20, 23, .14); display: flex; flex-direction: column; gap: 14px; }
.g-tpop::before { display: none; }
.g-tpop .tp-x { top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 999px; }
.g-tpop .tp-kicker { font: 600 12px var(--body); letter-spacing: .04em; color: var(--g-text3); }
.g-tpop .tp-name { margin: -12px 0 0; font: 600 20px/1.3 var(--display); }
.g-tpop .tp-cursor { width: 7px; }
.g-tpop .tp-bar { background: #f0f0f2; overflow: hidden; }
:root[data-scheme="dark"] .g-tpop .tp-bar { background: #26262c; }
.g-tpop .tp-bar i { box-shadow: none; }
.g-tpline { display: flex; justify-content: space-between; gap: 12px; margin-top: -8px; font-size: 13px; color: var(--g-text2); }
.g-tpline b { font-weight: 600; color: var(--ink); }
.g-tpop .tp-stats { margin: 0; gap: 8px; }
.g-tpop .tp-stats div { display: block; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--g-soft2); }
:root[data-scheme="dark"] .g-tpop .tp-stats div { background: #1c1c21; }
.g-tpop .tp-stats dt { font: 400 12px var(--body); color: var(--g-text3); }
.g-tpop .tp-stats dd { font: 600 15px var(--body); }
.g-tpgraph { display: flex; flex-direction: column; gap: 6px; }
.g-tpgraph > span { font-size: 12px; color: var(--g-text3); }
.g-tpop .tp-graphbox { height: 80px; margin: 0; }
.g-tpop .tp-live { font: 600 10px var(--body); letter-spacing: .06em; }
.g-tpop .tp-clip { gap: 12px; padding: 10px 12px; border: 1px solid #ececef; border-radius: 12px; }
:root[data-scheme="dark"] .g-tpop .tp-clip { border-color: #2a2a30; }
.g-tpop .tp-clip .g-play { width: 36px; height: 36px; }
.g-tpop .tp-clip p b { font-weight: 500; font-size: 14px; }
.g-tpop .tp-from { font: 400 12px var(--body); text-transform: none; letter-spacing: 0; color: var(--g-text3); }
.g-tpop #tpText { font-size: 12px; color: var(--g-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-tpop .tp-again { width: 36px; height: 36px; border: 0; display: grid; place-items: center; color: var(--g-text2); }
.g-tpop .tp-again svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#trainPill[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
#trainPill[aria-expanded="true"] #trainPct { color: var(--paper); }
.dlg.news .g-nhead h3 { flex: 1 1 auto; margin: 0; }
.g-nlist.news-list { display: flex; flex-direction: column; }
.g-nlist .g-ni { min-width: 0; }

/* ---------- the small dialogs (LegalDialogs.dc.html: 400 wide, radius 22, padding 24, gap 14; title 22; the risks on amber;
   pill buttons at the bottom right: a hairline Cancel / Close, a red action) ---------- */
:is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg)[open] { width: min(420px, calc(100vw - 32px)); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
:is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) h3 { margin: 0; font: 600 22px/1.25 var(--display); letter-spacing: 0; }
:is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) p { margin: 0; color: #3f3f46; }
:root[data-scheme="dark"] :is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) p { color: #c4c4cc; }
:is(#exDlg, #wdDlg, #chkDlg) p.hint, #exDlg .g-note { font-size: 13px; color: var(--g-text3); }
#exDlg .risks { margin: 0; padding: 14px 16px 14px 34px; border-radius: 14px; background: #fff8e6; border: 1px solid #f1dfae; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
:root[data-scheme="dark"] #exDlg .risks { background: #241f12; border-color: #4a3f22; }
:is(#exDlg, #wdDlg, #delDlg) .check { font-size: 14px; color: var(--ink); align-items: center; }
:is(#exDlg, #wdDlg, #delDlg) .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
:is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) .dlg-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 0; }
:is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) .btn { height: 44px; padding: 0 18px; border-radius: 999px; font: 400 15px var(--body); box-shadow: none; }
:is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) .btn.ghost { border: 1px solid var(--g-line); background: var(--g-card); color: var(--ink); }
:is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) .btn.red { border: 0; background: var(--red); color: #fff; font-weight: 600; }
:is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) .btn.red:disabled { background: #d4d4d8; color: var(--g-text2); }
:root[data-scheme="dark"] :is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) .btn.red:disabled { background: #33333a; }
#wdDlg .field { display: flex; flex-direction: column; gap: 6px; }
#wdDlg .field > span { font-size: 13px; color: var(--g-text3); }
#wdDlg .field input { height: 44px; padding: 0 14px; border: 1px solid var(--g-line); border-radius: 12px; font: 400 15px var(--body); background: var(--g-card); color: var(--ink); }
#wdDlg .wdlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#wdDlg .wdlist li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--g-line); }
#chkDlg .chkdrop { padding: 22px; border-radius: 16px; border: 1.5px dashed #d4d4d8; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--g-text2); cursor: pointer; background: none; }
:root[data-scheme="dark"] #chkDlg .chkdrop { border-color: #3a3a42; }
#chkDlg .chkdrop u { color: var(--ink); }
#chkDlg .chkres { padding: 14px 16px; border-radius: 14px; background: var(--g-soft2); display: flex; flex-direction: column; gap: 8px; }
#chkDlg .chkverdict { font-weight: 600; color: var(--ink); }
#chkDlg .chkdrop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- phone (Phone.dc.html, 390 wide: logo + Grey + a menu button; the title left, on two lines; the takes; the box
   docked at the bottom: voice chip, delivery, a round red Speak) ---------- */
.g-menubtn { display: none; }
@media (max-width: 640px) {
  .g-bar { padding: 18px 16px; gap: 10px; flex-wrap: wrap; }
  .g-bar .brand img { width: 28px; height: 28px; }
  .g-bar .brand span { font-size: 18px; }
  .g-menubtn { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
  .g-menubtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .25s; }
  .g-bar.menu-open .g-menubtn svg { transform: rotate(90deg); }
  .g-bar > .tabs, .g-bar > .g-right { display: none; }
  .g-bar.menu-open > .tabs { display: flex; order: 3; flex-basis: 100%; flex-direction: column; gap: 2px; padding: 8px 0 4px; overflow: visible; }
  .g-bar.menu-open > .tabs a { padding: 12px 14px; font-size: 17px; border-radius: 12px; }
  .g-bar.menu-open > .g-right { display: flex; order: 4; flex-basis: 100%; gap: 12px; padding: 8px 0 12px; border-top: 1px solid var(--wash); margin: 0; }
  .g-bar.menu-open .g-newslink { display: inline-flex; }
  .g-bar.menu-open .g-right .setbtn { margin-left: auto; }
  /* home */
  .stage.g-home { padding: 28px 16px 40px; gap: 28px; }
  .g-hero { align-items: flex-start; text-align: left; }
  .g-home .title { font-size: 34px; line-height: 1.1; max-width: 7.2em; }
  .g-hero .g-sub { display: none; }
  body[data-view="synth"] .g-composer textarea#say { font-size: 17px; padding: 16px 16px 4px; min-height: 0; height: 4.6em; }
  .g-composer .g-cbar { padding: 10px; gap: 6px; flex-wrap: nowrap; }
  .g-composer .g-lang, .g-composer .g-count { display: none; }
  .g-composer .g-speak#sayGo { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .g-composer .g-speak#sayGo svg { width: 18px; height: 18px; margin: 0; }
  .g-composer .g-icon { width: 44px; height: 44px; }
  /* the studio's voice chip: the name only */
  .studio .g-sbot #chosen { max-width: 60vw; }
}
@media (max-width: 640px) { .g-home .g-hero .title { text-align: left; align-self: flex-start; } .g-bar.menu-open .trainpill:not([hidden]) { display: inline-flex; } }

/* ================================================================= motion (2026-11-03, you: "revamp animations after that")
   One quiet set for the rebuilt site: things rise into place (8-12 px, 0.3-0.45 s, ease-out), lists arrive in a short
   stagger, waveforms grow from the middle, the nav highlight slides to the page you're on, switches and pills spring a
   little, popups pop from 98 %. Nothing loops except what shows work going on. Reduced motion: all of it off. */
:root { --g-ease: cubic-bezier(.2, .8, .2, 1); --g-spring: cubic-bezier(.3, 1.35, .5, 1); }
@keyframes gRise { from { opacity: 0; transform: translateY(10px); } }
@keyframes gFade { from { opacity: 0; } }
@keyframes gPop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes gBar { from { transform: scaleY(.15); opacity: .4; } }
@keyframes gNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes gGlow { 0% { box-shadow: 0 0 0 0 rgba(200, 36, 31, .35); } 100% { box-shadow: 0 0 0 14px rgba(200, 36, 31, 0); } }

/* pages: each view, and each Studio mode, rises in when it's shown */
main.view:not([hidden]) { animation: gFade .25s ease-out both; }
.g-home > *, .studio.g-swap > *, .studio.g-swap .tabpane:not([hidden]) > *, .g-vtv:not([hidden]) > * { animation: gRise .42s var(--g-ease) both; }
.g-home > :nth-child(2), .studio.g-swap > :nth-child(2) { animation-delay: .06s; }
.g-home > :nth-child(3), .studio.g-swap > :nth-child(3) { animation-delay: .12s; }
.g-home > :nth-child(n+4) { animation-delay: .16s; }
.g-vtv:not([hidden]) > :nth-child(2) { animation-delay: .05s; } .g-vtv:not([hidden]) > :nth-child(3) { animation-delay: .1s; }
.g-hero .title { animation: gRise .55s var(--g-ease) both; }
.g-hero .g-sub { animation: gRise .55s var(--g-ease) .08s both; }

/* the nav: one highlight that slides between the tabs (app.js places .g-navglide) */
.g-bar > .tabs { position: relative; }
.g-navglide { position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: var(--g-soft); pointer-events: none; z-index: 0;
  transition: transform .38s var(--g-spring), width .38s var(--g-spring), opacity .2s; opacity: 0; }
.g-navglide.on { opacity: 1; }
.g-bar > .tabs a { position: relative; z-index: 1; transition: color .2s; }
.g-bar > .tabs.glides a[aria-current="page"] { background: transparent; }

/* buttons: a small press; Speak glows once when a take starts */
.g-speak, .g-dark, .g-outline, .g-keepv, .g-play, .g-chip, .g-makecard, .rec { transition: transform .15s ease, background-color .2s, border-color .2s, box-shadow .2s, opacity .2s; }
:is(.g-speak, .g-dark, .g-outline, .g-keepv, .g-play, .g-chip):active:not(:disabled) { transform: scale(.96); }
.g-composer.busy .g-speak, #speakGo:disabled { animation: gGlow .9s ease-out 1; }

/* switches and segmented controls spring */
.g-sw.switch span::after, .switch span::after { transition: transform .32s var(--g-spring); }
.g-qseg button, .g-vseg button, .g-ltabs a { transition: background-color .22s, color .2s, box-shadow .22s; }
.g-modes .ms-glide { transition: left .38s var(--g-spring), width .38s var(--g-spring); }

/* lists arrive in a short stagger: voice cards, picker rows, takes, styles */
.g-voices .voicelist > *, .vp-body .v, .g-sgrid > .g-style, .g-checks > .check, .g-nlist > .g-ni { animation: gRise .4s var(--g-ease) both; }
.g-voices .voicelist > :nth-child(2), .vp-body .v:nth-child(2), .g-sgrid > :nth-child(2) { animation-delay: .03s; }
.g-voices .voicelist > :nth-child(3), .vp-body .v:nth-child(3), .g-sgrid > :nth-child(3) { animation-delay: .06s; }
.g-voices .voicelist > :nth-child(4), .vp-body .v:nth-child(4), .g-sgrid > :nth-child(4) { animation-delay: .09s; }
.g-voices .voicelist > :nth-child(5), .vp-body .v:nth-child(5), .g-sgrid > :nth-child(5) { animation-delay: .12s; }
.g-voices .voicelist > :nth-child(6), .vp-body .v:nth-child(6), .g-sgrid > :nth-child(6) { animation-delay: .15s; }
.g-voices .voicelist > :nth-child(7), .g-sgrid > :nth-child(7) { animation-delay: .18s; }
.g-voices .voicelist > :nth-child(8), .g-sgrid > :nth-child(8) { animation-delay: .21s; }
.g-voices .voicelist > :nth-child(9), .g-sgrid > :nth-child(9) { animation-delay: .24s; }
.g-voices .voicelist > :nth-child(n+10), .g-sgrid > :nth-child(n+10) { animation-delay: .27s; }
.g-nlist > .g-ni { animation-delay: calc(.08s + var(--i, 0) * .05s); }
.g-checks > .check:nth-child(2) { animation-delay: .06s; }
.g-voices .voicelist button.v, .g-makecard { transition: transform .2s var(--g-ease), border-color .2s, box-shadow .2s; }
.g-voices .voicelist button.v:hover, .g-makecard:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20, 20, 23, .06); }

/* takes: a new row rises in, its waveform grows from the middle bar by bar (--k: the bar's place, set by app.js) */
.g-take, .cands li { animation: gRise .38s var(--g-ease) both; }
.g-wave i { transform-origin: 50% 50%; animation: gBar .45s var(--g-ease) both; animation-delay: calc(var(--k, 0) * 7ms); }
.g-take.g-pend .g-ph b { transition: opacity .2s; }

/* popups: pop from 98 %, the backdrop fades; the picker drops from its button */
.dlg[open]:not(.news) { animation: gPop .24s var(--g-ease) both; }
.dlg[open]::backdrop { animation: gFade .24s ease-out both; }
#vpDlg[open] { animation: gPop .2s var(--g-ease) both; transform-origin: top left; }
.tpop.g-tpop.in { animation: gPop .26s var(--g-ease) both, tpblip .22s steps(1, end) .26s; }
.g-lockbar { animation: gRise .32s var(--g-ease) both; }

/* clone: the step pills fill in; the ready page arrives tile by tile */
.g-steps li { transition: background-color .3s, color .3s; }
.g-shead .g-sini { animation: gPop .5s var(--g-spring) both; }
.g-csaved:not([hidden]) .g-don { animation: gRise .45s var(--g-ease) .1s both; }

/* voice to voice: once there's a clip, the arrow nudges toward the voice */
.g-vrow.ready .g-varrow svg { animation: gNudge 1.6s ease-in-out infinite; color: var(--ink); }

/* the theme: Settings' choice cross-fades (theme.js does the view transition) */

@media (prefers-reduced-motion: reduce) {
  main.view, .g-home > *, .studio.g-swap > *, .studio.g-swap .tabpane > *, .g-vtv > *, .g-hero .title, .g-hero .g-sub,
  .g-voices .voicelist > *, .vp-body .v, .g-sgrid > .g-style, .g-checks > .check, .g-nlist > .g-ni, .g-take, .cands li, .g-wave i,
  .dlg[open], .dlg[open]::backdrop, #vpDlg[open], .tpop.g-tpop.in, .g-lockbar, .g-shead .g-sini, .g-don,
  .g-vrow.ready .g-varrow svg, .g-composer.busy .g-speak, #speakGo:disabled { animation: none !important; }
  .g-navglide, .g-modes .ms-glide, .switch span::after { transition: none !important; }
  :is(.g-speak, .g-dark, .g-outline, .g-keepv, .g-play, .g-chip):active { transform: none; }
  .g-voices .voicelist button.v:hover, .g-makecard:hover { transform: none; }
}

/* ---------- phones, round 2 (you 2026-11-03: "for mobile users, everything is zoomed in quite a bit and some stuff
   breaks"): iPhones zoom the whole page in when a field or menu under 16 px is tapped (and stay zoomed), so every
   field is at least 16 px on touch screens; titles and text a size down on narrow screens ---------- */
@media (pointer: coarse) {
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { font-size: max(16px, 1em) !important; }
}
@media (max-width: 640px) {
  .g-ptitle h1, .g-vhead h1 { font-size: 30px; }
  .g-ptitle p, .g-vhead p { font-size: 15px; }
  .g-ptitle { gap: 6px; }
  .wrap.studio.m-lib:not(.cloning), .wrap.studio[data-mode="vtv"] { padding: 20px 16px 40px; }
  .g-vtv.vtv-in { gap: 20px; }
  .g-studio textarea#text { font-size: 17px; padding: 18px 18px 10px; min-height: 160px; }
  .g-studio .emphview.tall { font-size: 21px; padding: 20px 16px 10px; }
  .g-make { gap: 10px; }
  .g-makecard { padding: 16px; gap: 12px; }
  .g-vcard, .g-vopts { padding: 16px; }
  .g-sbot.comp-bot { gap: 6px; }
  .g-sbot #lang { max-width: 46%; }
  .g-dhead h1 { font-size: 28px; }
  .g-cread.cstage { gap: 26px; }
  .studio.cloning .g-bigrec .rec { width: 72px; height: 72px; }
  .studio.cloning .g-cconfirm .confirm .script-text { font-size: 20px; }
  .g-cacts .g-outline, .g-cacts .g-dark { height: 42px; padding: 0 16px; font-size: 14px; }
  .dlg.g-sets .sets-head h3, .g-nhead h3 { font-size: 20px; }
}
@media (max-width: 480px) { .g-sets .g-srow:has(#themeSeg) { flex-wrap: wrap; gap: 10px; } .g-sets #themeSeg { flex: 1 1 100%; } .g-sets #themeSeg button { flex: 1; } }
/* the footer at the bottom of the screen, not under short pages' content (you 2026-11-03: "the footer is in the middle of
   the screen for phones"): the page is at least as tall as the screen and the shown view takes the spare room */
body:has(> #siteFoot) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> #siteFoot) > main.view:not([hidden]) { flex: 1 0 auto; }
body:has(> #siteFoot) > #siteFoot { width: 100%; margin-top: 0; }

/* the voice picker as a full-screen sheet on phones (openPicker adds .sheet) */
.vp-sheethead { display: none; }
#vpDlg.sheet[open] { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0;
  display: flex; flex-direction: column; padding: 0; transform-origin: 50% 100%; }
#vpDlg.sheet .vp-top { flex: none; padding: 8px 16px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
#vpDlg.sheet .vp-sheethead { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
#vpDlg.sheet .vp-sheethead b { font: 600 20px var(--display); }
#vpDlg.sheet .vp-sheethead .dlg-x { width: 44px; height: 44px; border-radius: 999px; margin-right: -8px; }
#vpDlg.sheet .vp-body { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px; }
#vpDlg.sheet .vp-foot { flex: none; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
#vpDlg.sheet .vp-row { min-height: 56px; }
.vp-empty { padding: 16px 12px; color: var(--g-text3); font-size: 14px; }


/* phones: the home box sits at the bottom of the home content (title, takes, then the box), the footer under it -- in the
   page, never over it (you 2026-11-03: "the footer is above the synthesize box" / "it legally has to be there") */
@media (max-width: 640px) {
  #v-synth:not([hidden]) { display: flex; flex-direction: column; }
  #v-synth > .stage.g-home { flex: 1 0 auto; }
  .stage.g-home > .g-hero { order: 1; }
  .stage.g-home > #homeTakesBox { order: 2; }
  .stage.g-home > .g-composer { order: 3; margin-top: auto; box-shadow: 0 8px 32px rgba(20, 20, 23, .07); }
  .stage.g-home > #sayStatus { order: 4; }
  .stage.g-home > :not(.g-hero):not(#homeTakesBox):not(.g-composer):not(#sayStatus) { order: 5; }
  .stage.g-home { padding-bottom: 16px; }
}

/* phones at 80 % (you 2026-11-05: "scale it to 80% chrome style for phone users"): the whole page drawn at 80 %, laid out in
   the screen's width / 0.8 -- so it is always exactly as wide as the screen and long rows wrap (you: "it doesn't wrap around
   but continue off screen!!!"). Done in CSS on <html>: a zoom in the viewport tag (initial-scale=0.8) made Chrome widen the
   page to width / 0.8 but draw it at 100 %, and its right part ran off the screen. */
/* (you 2026-11-05: "it still does it with Long sentences"): a take's one-line sentence (.g-tk p, nowrap + ellipsis) set the
   take list's minimum width, so with a long sentence the whole Studio column -- composer, Speak, takes -- grew to ~1,200 px
   on a phone. Nothing in the column may be wider than the column; the ellipsis then works. */
section.work > *, .g-takelist, .g-takelist > li, .g-tk { min-width: 0; }

@media (pointer: coarse) and (max-width: 480px) {
  html { zoom: 0.8; }
  .g-tk p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }  /* (phones: the sentence wraps, up to 3 lines) */
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { font-size: max(20px, 1em) !important; }  /* (shown >= 16 px: iPhones don't zoom in on a field) */
}
/* menus on touch screens: their text is >= 16 px there, so their boxes grow to fit it (you 2026-11-03: "the all languages
   text in the menu is cut off in the bottom half") */
@media (pointer: coarse) {
  select { line-height: normal; padding-top: 0; padding-bottom: 0; }
  .vp-tabs select { height: 40px; }
  .g-cread #scriptLang { height: 38px; }
  .g-lang, .g-sbot #lang { min-height: 40px; }
}
.vp-row small.err, .voicelist small.err { color: var(--red); }
/* your voices' cards (you 2026-11-03: "download and x button for voice clones are too close to the play button"): the
   export / record more / delete buttons sit in the row after play, with room between them (app.css placed them on top) */
.g-voices .voicelist .x { position: static; top: auto; right: auto; width: 36px; height: 36px; }
#mineList button.v { padding-right: 0; flex: 1 1 auto; min-width: 0; }
#mineList li { gap: 6px; }
#mineList li > .vp-play { margin-right: 10px; }
#mineList li > .x:not(.ex):hover { color: var(--red); }

/* technology: the stats are buttons, each with a visible "Breakdown" chip; the panel under them (you 2026-11-03) */
.facts .fact { appearance: none; background: none; border: 0; border-radius: 0; margin: 0; font: inherit; color: inherit; text-align: left;
  cursor: pointer; padding: 26px 18px 22px 0; display: grid; gap: 2px; align-content: start; position: relative; transition: background-color .15s; }
.facts .fact + .fact { padding-left: 22px; border-left: 1px solid var(--rule); }
.facts .fact b { font: 700 30px var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts .fact span { color: var(--mute); font-size: 14px; }
.facts .fact .fact-more { justify-self: start; margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 10px;
  border-radius: 999px; background: var(--g-soft); color: var(--red-deep); font: 500 12.5px var(--body); font-style: normal; transition: background-color .15s; }
.facts .fact .fact-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.facts .fact:hover .fact-more { background: var(--red-soft); }
.facts .fact[aria-expanded="true"] .fact-more { background: var(--red); color: #fff; }
.facts .fact[aria-expanded="true"] .fact-more svg { transform: rotate(180deg); }
.facts .fact[aria-expanded="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.facts .fact + .fact[aria-expanded="true"]::after { left: 22px; }
.facts .fact:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.fact-panel { margin-top: 14px; }
.fact-panel:not([hidden]) { display: block; animation: fpIn .22s ease; }
@keyframes fpIn { from { opacity: 0; transform: translateY(-6px); } }
.fp-card { border: 1px solid var(--g-line); border-radius: 16px; background: var(--g-card); padding: 18px 20px 16px; }
.fp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-head h3 { margin: 0; font: 600 18px var(--display); }
.fp-head .dlg-x { width: 36px; height: 36px; border-radius: 999px; flex: none; }
.fp-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.fp-rows li { display: grid; grid-template-columns: minmax(150px, 2fr) 3fr 76px; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--rule); }
.fp-rows li:first-child { border-top: 0; }
.fp-name { display: grid; min-width: 0; }
.fp-name b { font-weight: 600; font-size: 14.5px; }
.fp-name small { color: var(--mute); font-size: 12.5px; line-height: 1.35; }
.fp-name small:empty { display: none; }
.fp-bar { height: 8px; border-radius: 999px; background: var(--g-soft); overflow: hidden; }
.fp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.fp-val { text-align: right; font: 500 14px var(--mono); font-variant-numeric: tabular-nums; }
.fp-note { margin: 10px 0 0; color: var(--mute); font-size: 13px; }
/* the benchmark: older Grey rows folded behind one row */
.bench tr.us-fold td { padding: 4px 0; }
.bench-more { appearance: none; border: 0; background: none; font: 500 13.5px var(--body); color: var(--red-deep); display: inline-flex; align-items: center;
  gap: 6px; padding: 6px 10px 6px 0; cursor: pointer; }
.bench-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.bench-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.bench-more:hover span { text-decoration: underline; text-underline-offset: 3px; }
.bench td small { font-weight: 400; color: var(--mute); font-size: 12px; margin-left: 4px; }
/* section chips: phones only (sticky at the top of the page) */
.tech-jump { display: none; }
#v-tech [id] { scroll-margin-top: calc(var(--hdr, 0px) + var(--jump, 56px) + 16px); }
@media (max-width: 760px) {
  .facts .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .facts .fact:nth-child(3)[aria-expanded="true"]::after { left: 0; }
}
@media (max-width: 640px) {
  .tech-jump { display: flex; position: sticky; top: var(--hdr, 0px); z-index: 9; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 18px;
    padding-top: 10px; padding-bottom: 10px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .tech-jump::-webkit-scrollbar { display: none; }
  .tech-jump button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--g-line); background: var(--g-card);
    color: var(--g-text2); font: 500 14px var(--body); cursor: pointer; }
  .tech-jump button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .page-head + .tech-jump + .facts { margin-top: 18px; }
  /* stats two to a row (was one: four tall rows) */
  .facts { grid-template-columns: 1fr 1fr; }
  .facts .fact, .facts .fact + .fact { padding: 16px 10px 14px 0; border-left: 0; }
  .facts .fact:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .facts .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .facts .fact b { font-size: 24px; }
  .facts .fact span { font-size: 13px; line-height: 1.35; }
  .facts .fact .fact-more { margin-top: 8px; }
  .facts .fact:nth-child(even)[aria-expanded="true"]::after { left: 14px; }
  .fp-card { padding: 14px 14px 12px; border-radius: 14px; }
  .fp-rows li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .fp-bar { grid-column: 1 / -1; grid-row: 2; height: 6px; }
  .fp-val { grid-column: 2; grid-row: 1; }
  /* languages two to a row; the timeline a row you swipe */
  .langs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .langs li { padding: 12px; }
  .timeline { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 72%); overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
  .timeline li { scroll-snap-align: start; }
  .bench td { white-space: nowrap; }
}
@media (max-width: 360px) { .langs { grid-template-columns: 1fr; } }

/* the size chart's Grey picker on phones (you 2026-11-03: "becomes too tall, because of too much text for small phones"):
   one row you swipe, labels without "Grey"; the two small pickers side by side */
@media (max-width: 640px) {
  #sizeChart .sc-controls { gap: 8px; justify-content: flex-start; }
  #sizeChart .sc-seg[aria-label="Which Grey"] { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; overscroll-behavior-x: contain; }
  #sizeChart .sc-seg[aria-label="Which Grey"]::-webkit-scrollbar { display: none; }
  #sizeChart .sc-seg button { white-space: nowrap; flex: none; padding: 6px 11px; }
  #sizeChart .sc-g { display: none; }
}

/* (2026-11-03) the benchmark's footnote: where other models' numbers come from */
.bench-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--mute); max-width: 72ch; }

/* (2026-11-03) the benchmark, easier to read: grouped rows, numbers right-aligned, missing values faded */
.bench th, .bench td { text-align: right; }
.bench th:first-child, .bench td:first-child, .bench tr.grp th, .bench .us-fold td { text-align: left; }
.bench thead th { vertical-align: bottom; }
.bench thead th.grp-h { text-align: center; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.bench thead tr + tr th { padding-top: 6px; }
.bench th i, .bench tr.grp th i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .75; margin-left: 4px; }
.bench thead th.grp-h i { display: block; margin: 2px 0 0; }
.bench tr.grp th { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding: 22px 0 8px; border-bottom: 1px solid var(--rule); }
.bench tr.ref td { color: var(--mute); font-style: italic; }
.bench .na { color: var(--mute); opacity: .55; }
.bench tbody tr:not(.grp):not(.us-fold):hover td { background: var(--wash); }
/* the size chart: Grey's versions joined oldest to newest; the other models' names quieter */
#sizeSvg .sc-trail { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; opacity: .5; transition: d .55s cubic-bezier(.4, 0, .2, 1); }
#sizeSvg .sc-dot:not(.us) text { fill: var(--ink-2); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { #sizeSvg .sc-trail { transition: none; } }
/* the table scrolls in its own box, the footnote stays put; phones: names may wrap so all six columns fit */
.tablebox:has(.bench-scroll) { overflow: visible; }
.bench-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .bench { font-size: 12.5px; }
  .bench th, .bench td { padding-right: 7px; }
  .bench td:first-child { white-space: normal; min-width: 76px; }
  .bench td:first-child small { display: block; margin: 1px 0 0; }
  .bench td:not(:first-child) { white-space: nowrap; }
  .bench thead th.grp-h i { font-size: 10px; }
}

/* the search landing pages, linked from the footer (tools/seo_pages.py, 2026-11-05): a quiet second line */
.sitefoot .seolinks { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; }
.sitefoot .seolinks a { color: var(--g-text2, inherit); opacity: .8; }

/* sliders on touch screens: a vertical swipe scrolls the page instead of moving them (next.js rangeScrollGuard, 2026-11-06) */
@media (pointer: coarse) { input[type="range"] { touch-action: pan-y; } }

/* (you 2026-11-15 "its starting to become unreadable") older Grey versions: small, unnamed until hovered / tapped */
#sizeSvg .sc-dot.old text { opacity: 0; transition: opacity .15s; pointer-events: none; }
#sizeSvg .sc-dot.old:hover text, #sizeSvg .sc-dot.old.on text, #sizeSvg .sc-dot.old:focus-visible text { opacity: 1; }
#sizeSvg .sc-dot.old circle { opacity: .75; filter: none; }
#sizeSvg .sc-dot.old:hover, #sizeSvg .sc-dot.old.on { z-index: 2; }

/* (you 2026-11-15) back to reading from "Confirm it's you" */
.g-backread { display: block; margin: 0 auto 10px 0; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--g-text2); font: inherit; font-size: 13px; cursor: pointer; }
.g-backread:hover, .g-backread:focus-visible { background: var(--g-soft); color: var(--ink); }
.g-steps .g-stepback { all: unset; cursor: pointer; }
.g-steps li:has(.g-stepback):hover { background: var(--ink); color: var(--paper); }
.g-steps .g-stepback:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 999px; }

/* (you 2026-11-15) No words: speech without text */
.g-nwswitch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--g-text2); white-space: nowrap; }
.g-nwsecs { min-width: 0; }
#text.nowords { opacity: .45; }
.studio.m-speak[data-mode="vtv"] .g-studio :is(.g-nwswitch, .g-nwsecs) { display: none; }
