/* Parts the prototype did not have: the notice inside the tool (sign in, credits, errors), the account page,
   legal pages and plain heroes. Same tokens as studio.css. */
.notice { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-sm); border: 1px solid var(--tool-line, var(--line));
  background: color-mix(in oklab, var(--ink) 4%, var(--surface)); font-size: var(--t-small); line-height: 1.45; color: var(--ink); }
.notice[hidden] { display: none; }
.notice p { margin: 0; }
.notice .muted, .notice small { color: var(--muted); }
.notice--error { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.notice form, .signin { display: grid; gap: var(--s-2); }
.notice .row, .signin .row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.notice input[type=email], .notice input[name=code], .signin input { flex: 1 1 200px; min-width: 0; height: 48px; padding: 0 var(--s-4); border-radius: var(--r-sm);
  border: 1px solid var(--tool-line, var(--line)); background: var(--surface); color: var(--ink); font: 400 16px/1 var(--font-text); }
.notice .btn, .signin .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tool .files a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.tool .clip__status b { font-weight: 500; color: var(--ink); }
.account { display: grid; gap: var(--s-5); max-width: 640px; margin: var(--s-5) auto 0; text-align: left; }
.signin label { font: 500 var(--t-small)/1.4 var(--font-text); }
.signin__msg { min-height: 1.4em; font-size: var(--t-small); color: var(--muted); margin: 0; }
.signin__msg a { color: var(--ink); }
.account__balance { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface); }
.account__balance span { color: var(--muted); font-size: var(--t-small); }
.account__balance b { font: 500 32px/1 var(--font-display); margin-right: auto; }
.account__h { font-size: 20px; margin: var(--s-3) 0 0; }
.account__note { color: var(--muted); font-size: var(--t-small); margin: 0; }
.account__jobs, .account__ledger { list-style: none; margin: 0; padding: 0; display: grid; }
.account__jobs li, .account__ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.account__jobs a { color: var(--ink); }
.account__jobs small, .account__ledger small { display: block; color: var(--muted); }
.legal { max-width: 720px; margin-inline: auto; }
.legal h2 { font-size: 22px; margin: var(--s-6) 0 var(--s-2); }
.legal p, .legal li { line-height: 1.6; color: color-mix(in oklab, var(--ink) 86%, var(--bg)); }
.legal a { color: var(--ink); }
.notice--plain { padding: 0; border: 0; background: none; }
/* No preset voices yet: the one choice is the recording row under it, so the lone chip is not shown. */
.voices--own-only { display: none; }
.tool__side:has(.voices--own-only) .own { padding-top: var(--s-1); }
/* "3 steps": one row of three, plain text (user 2026-12-01: no mini UI that looks like buttons). */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); } }
.steps3 > li { counter-increment: step; display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.steps3 > li::before { content: counter(step); font: 400 var(--t-label)/1 var(--font-mono); color: var(--muted); }
.steps3 h3 { margin: 0; font-size: 20px; }
.steps3 p { margin: 0; color: color-mix(in oklab, var(--ink) 80%, var(--bg)); line-height: 1.5; }
/* Terms line under the tool (user 2026-12-01: no tick box; using the tool means agreeing). */
.tool__legal { margin: 0; font-size: var(--t-label); line-height: 1.4; color: var(--muted); }
.tool__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Local test mode: no model key, fake results. */
.testmode { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #ffd166; color: #1b0e17; font-size: var(--t-small); line-height: 1.35; padding: var(--s-2) 0; box-shadow: 0 -2px 12px rgb(0 0 0 / .3); }
.testmode[hidden] { display: none; }
/* Translate and Change voice: the finished video with its own player (original / new sound). */
.result__video { width: 100%; max-height: 360px; border-radius: var(--r-sm); background: #000; aspect-ratio: 16 / 9; object-fit: contain; }
.result__video[hidden] { display: none; }
.result.has-video .playrow { display: none; }
@media (max-width: 639px) {
  .result__video { max-height: 220px; }
  /* "Another file" sits at the top of the result, away from the download button under it. */
  .result > [data-act="reset"] { order: -1; align-self: flex-end !important; }
}
.deck__credit { margin: var(--s-2) 0 0; font-size: var(--t-label); color: var(--muted); }
.signin__code input { letter-spacing: .3em; font-family: var(--font-mono); max-width: 12ch; }
.btn--google { background: var(--ink); color: var(--bg); }
/* Seed Audio 1.5 workbench: four tool areas, one shown at a time. */
.wb__panel[hidden] { display: none; }
.wb__more { margin: var(--s-3) 0 0; text-align: right; font-size: var(--t-small); }
.wb__more a { color: var(--ink); }
[data-wb-tabs] .tooltab { cursor: pointer; font-family: inherit; border: 0; background: none; }
[data-wb-tabs] .tooltab[aria-pressed="true"] { background: color-mix(in oklab, var(--ink) 14%, var(--surface)); color: var(--ink); }
.price--api td:nth-child(5) { color: var(--muted); font-size: var(--t-small); }
body:has(.testmode:not([hidden])) { padding-bottom: 72px; }
/* "What you get from one upload": Before and After side by side (one player with a switch on a phone), three extras. */
.sample__pair { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sample__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sample__switch { display: none; } }
@media (max-width: 899px) { .sample__pair[data-view="after"] .sample__side--before, .sample__pair[data-view="before"] .sample__side--after { display: none; } .sample__switch { justify-self: start; } }
.sample__side { margin: 0; display: grid; gap: var(--s-2); min-width: 0; }
.sample__side figcaption { display: flex; gap: var(--s-2); align-items: baseline; font-size: var(--t-small); }
.sample__side figcaption span, .sample__head span, .sample__extra p { color: var(--muted); font-size: var(--t-label); }
.sample__video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: var(--r-sm); }
.sample__also { margin: var(--s-6) 0 var(--s-3); font-size: 20px; }
.sample__extras { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sample__extras { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sample__extra { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-4); border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.sample__head { display: grid; gap: 2px; }
.sample__extra p { margin: 0; }
.sample__audio { width: 100%; }
.sample__text { margin: 0; white-space: pre-wrap; font: 400 var(--t-small)/1.5 var(--font-mono); color: var(--ink); max-height: 9em; overflow: hidden; }
/* Add sound: the two text boxes stay short so the button stays on the first screen of a phone. */
.tool__side .field2.lines textarea { height: 64px; margin-top: 0; }
  .tool__side .field2.lines :is(label, .field2__label) small { color: var(--muted); font-weight: 400; }
@media (max-width: 639px) {
  .tool__side .field2.lines textarea { height: 48px; font-size: 15px; padding: var(--s-2) var(--s-3); }
  .tool[data-tool="add-sound"] .drop { min-height: 0; padding-block: var(--s-4); }
}

/* the test site (env.staging): always says so, at the bottom of every page */
.testmode--site { background: #8fb6ff; }
