/* The workbench and the first-version states (design plans/2026-12-02-audiostudioai-studio: studio.css v2 and the
   component spec in its README). Ported from the prototype, on the site's own tokens; prototype class names are kept
   where they do not clash with studio.css (.seg there is the old player switch, so the workbench's is .wseg). */
:root {
  --surface-2: #241420; --surface-3: #2e1a29; --ink-2: #e6dde3; --line-2: rgba(255, 255, 255, .18);
  --ok: #5fd39a; --warn: #ffc65c; --bad: #ff6b6b;
  --t-voice: #ff9a76; --t-fx: #ffc65c; --t-music: #8fb6ff; --t-orig: #b9aeb6; --t-cap: #d7c7ff;
}

/* ---------------------------------------------------------------- shared bits */
.wbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font: 500 15px/1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer; }
.wbtn:hover { background: rgba(255, 255, 255, .05); }
.wbtn--go { background: var(--accent); border-color: var(--accent); color: #0d060b; font-weight: 600; }
.wbtn--go:hover { background: #ff6aa1; }
.wbtn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.wbtn--block { width: 100%; height: 52px; font-size: 17px; }
.wbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wbtn[disabled], .wbtn[aria-busy="true"] { opacity: .55; cursor: progress; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 0; cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wseg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.wseg button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; font: 400 14px/1 var(--font-text); color: var(--muted); white-space: nowrap; cursor: pointer; }
.wseg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 500; }
.wseg--ba button { min-width: 76px; }
.tgl { position: relative; width: 34px; height: 20px; border-radius: 999px; border: 0; background: var(--surface-3); flex: none; padding: 0; cursor: pointer; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s; }
.tgl[aria-pressed="true"] { background: var(--ink); }
.tgl[aria-pressed="true"]::after { transform: translateX(14px); background: var(--bg); }
.play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; }
.play svg { width: 15px; height: 15px; fill: currentColor; }
.wtoast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; z-index: 1100; background: var(--ink); color: var(--bg); font-size: 14px; padding: 10px 16px; border-radius: 999px; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.wtoast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- header: credits, My projects, avatar */
.nav__account { display: inline-flex; align-items: center; gap: 14px; }
.credits { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav__account .credits > * { margin: 0; max-width: none; line-height: 1; } /* assets/system.css has a .credits too and pushes its children 8 px down (12-03: the number sat low) */
.credits b { font-weight: 600; }
.wavatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; text-transform: uppercase; }
/* Below 1024 px the design system folds the header actions into the menu; the design keeps the credits and the avatar
   (or Log in) beside the menu button, so they stay out. */
@media (max-width: 1023px) { .nav:not(.is-open) .nav__actions > .nav__account { display: inline-flex; } }
@media (max-width: 639px) { .nav__account .nav__mine { display: none; } .credits { height: 30px; padding: 0 10px; font-size: 13px; } }

/* ---------------------------------------------------------------- tool states the design adds */
/* no credits / failed / language or speech not usable: the file stays, the side shows one message instead */
.tool[data-alert] .tool__go, .tool[data-alert] .tool__notes, .tool[data-alert] .tool__legal:not(.field2 .tool__legal):not(.vstep .tool__legal) { display: none !important; }
.tool:not([data-alert]) .tool__side > .msg { display: none; }
.tool[data-alert] .tool__side > .msg { order: -1; }
.msg { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); width: 100%; text-align: left; }
.msg a { color: var(--ink); }
.msg b { font-weight: 500; font-size: 16px; color: var(--ink); }
.msg p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.msg small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.msg--warn { border-color: color-mix(in oklab, var(--warn) 45%, var(--line)); }
.msg--bad { border-color: color-mix(in oklab, var(--bad) 45%, var(--line)); }
.msg__row { display: flex; gap: 8px; flex-wrap: wrap; }
.msg form { display: grid; gap: 8px; }
.msg form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.msg input[type=email] { flex: 1 1 200px; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 400 15px/1 var(--font-text); }
.msg .textbtn { justify-self: start; }
/* working: the steps of this tool */
.wsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wsteps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.wsteps li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.wsteps li.is-on { color: var(--ink); }
.wsteps li.is-on::before { border-color: var(--accent); border-top-color: transparent; animation: wspin .8s linear infinite; }
.wsteps li.is-done { color: var(--ink-2); }
.wsteps li.is-done::before { background: var(--ok); border-color: var(--ok); }
@keyframes wspin { to { transform: rotate(360deg); } }
.saved-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* done: the tool card gives way to the project card (the user's own workbench) */
.tool[data-state="done"] { display: block; border: 0; background: none; overflow: visible; }
.tool[data-state="done"] > .tool__stage, .tool[data-state="done"] > .tool__side { display: none !important; }
.tool:not([data-state="done"]) > .proj { display: none; }
.hero--tool:has(.tool[data-state="done"]) .hero__c h1 { font-size: 20px; letter-spacing: -0.01em; color: var(--ink-2); }
.hero--tool:has(.tool[data-state="done"]) .hero__c .hero__lead { display: none; }
.hero--tool:has(.tool[data-state="done"]) .hero-text, .hero--tool:has(.tool[data-state="done"]) { height: auto; min-height: 0; }
@media (max-width: 899px) {
  .hero--tool:has(.tool:is([data-state="done"], [data-state="working"], [data-alert])) .hero__c { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
}

/* ---------------------------------------------------------------- the project card + workbench */
.proj { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg, 20px); background: var(--surface); overflow: hidden; text-align: left; }
.sbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sbar__file { display: flex; flex-direction: column; min-width: 0; margin-right: auto; gap: 2px; }
.sbar__file b { font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar__file span { font-size: 13px; color: var(--muted); }
.sbar__actions { display: flex; gap: 8px; align-items: center; }
.sbar__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.proj__note { margin: 0; padding: 10px 16px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); background: rgba(95, 211, 154, .06); }
.proj__note:empty { display: none; }
.proj__note a, .proj__note button { color: var(--ink); }

.wbk .st__stage[hidden] { display: none !important; }
.wbk .st__stage { display: flex; justify-content: center; padding: 16px 16px 8px; }
.wbk .screen { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: var(--ar, 16 / 9); width: min(100%, calc(340px * var(--ar, 1.78))); }
.wbk .screen video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.screen__none { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.screen__cap { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); max-width: 86%; text-align: center; font-size: clamp(13px, 1.3vw, 18px); line-height: 1.3;
  padding: 3px 10px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; pointer-events: none; }
.screen__cap:empty { display: none; }
.st__bar { display: flex; align-items: center; gap: 12px; padding: 4px 16px 0; flex-wrap: wrap; }
.st__hint { font-size: 13px; color: var(--muted); }
.tl { --left: 220px; position: relative; display: grid; grid-template-columns: var(--left) minmax(0, 1fr); row-gap: 6px; padding: 8px 16px 16px; }
.tl__row { display: contents; }
.tl__left { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; background: var(--surface-2); border-radius: 10px 0 0 10px; min-width: 0; }
.tl__row--head .tl__left { background: transparent; padding-left: 0; height: 44px; }
.tl__name { min-width: 0; line-height: 1.15; }
.tl__name b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl__name small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.tl__ruler { position: relative; height: 44px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tl__ruler span { position: absolute; bottom: 9px; transform: translateX(-50%); }
.tl__ruler span::after { content: ""; position: absolute; left: 50%; top: 100%; height: 8px; width: 1px; background: var(--line-2); }
.tl__ruler span:first-child { transform: translateX(9px); } .tl__ruler span:first-child::after { left: -9px; }
.tl__ruler span:last-child { transform: translateX(-100%); } .tl__ruler span:last-child::after { left: 100%; }
.tl .lane { height: 40px; border-radius: 0 10px 10px 0; background: var(--bg); position: relative; overflow: hidden; }
.tl .lane canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* While a track loads, its lane says so in words (12-04: a flat line read as an empty track). */
.lane__wait { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font: 11px/1.2 var(--font-mono); font-style: normal; color: var(--muted); white-space: nowrap; pointer-events: none; }
.lane.is-ready:not(.is-short) .lane__wait { display: none; }
.lane.is-short .lane__wait { margin-left: 10px; }
.lane.is-slow .lane__wait { color: var(--warn); }
.lane.is-broken .lane__wait { color: #ff8f84; }
/* A track still being made (main result first): striped, with the word, switch locked. */
.tl .lane--prep { display: flex; align-items: center; padding-left: 10px; font: 11px/1 var(--font-mono); color: var(--muted);
  background: repeating-linear-gradient(-45deg, var(--bg) 0 8px, color-mix(in oklab, var(--c) 10%, var(--bg)) 8px 16px); background-size: 200% 100%; animation: prep 1.6s linear infinite; }
@keyframes prep { to { background-position: -45px 0; } }
@media (prefers-reduced-motion: reduce) { .tl .lane--prep { animation: none; } }
.tl__row.is-pending .tgl { cursor: default; opacity: .5; }
.tl__row.is-pending .tl__name small { color: var(--accent); }
.xr__wait { font: 11px/1.3 var(--font-mono); color: var(--accent); white-space: nowrap; }
.xr.is-pending .xr__txt b { color: var(--ink-2); }
.export__foot .export__more { margin: 6px 0 0; color: var(--ink-2); }
.tl .lane--cap .blk { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; padding: 4px 6px; font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in oklab, var(--t-cap) 16%, var(--surface-2)); border: 1px solid color-mix(in oklab, var(--t-cap) 35%, transparent); color: var(--ink-2); }
.tl__row.is-off .lane { opacity: .3; }
.tl__row.is-off .tl__name b { color: var(--muted); }
.tl__hit { position: absolute; top: 8px; bottom: 16px; left: calc(16px + var(--left)); right: 16px; cursor: pointer; z-index: 2; touch-action: none; }
.tl__playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; left: 0; }
.tl__playhead::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--accent); }

/* ---------------------------------------------------------------- the sample: same component, read-only */
.sample-live { padding-top: var(--s-7, 48px); }
.sample-live .sample__head { margin-bottom: 14px; }
.sample-live .sample__head h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.sample-live .sample__head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.also { margin-top: 18px; }
.also h3 { margin: 0 0 10px; font-size: 16px; font-weight: 500; }
.also__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.af { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px; display: grid; gap: 8px; align-content: start; }
.af b { font-weight: 500; font-size: 15px; }
.af .mono { font: 11.5px/1.4 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.af small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.af audio { width: 100%; height: 36px; }
.af pre { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bg); font: 11.5px/1.45 var(--font-mono); color: var(--ink-2); white-space: pre-wrap; max-height: 132px; overflow: hidden; }
.sample__foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.sample__foot a { color: inherit; }
.see-sample { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); text-align: center; }
.sample__back { margin: 14px 0 0; font-size: 14px; }
.sample__back a { color: var(--ink); }

/* ---------------------------------------------------------------- export drawer (All files) */
.wscrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 900; opacity: 0; pointer-events: none; transition: opacity .2s; }
.export { position: fixed; z-index: 901; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); border-left: 1px solid var(--line-2);
  transform: translateX(102%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; display: flex; flex-direction: column; text-align: left; }
body.is-export .wscrim { opacity: 1; pointer-events: auto; }
body.is-export .export { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.export__head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.export__head h2 { margin: 0; font-size: 20px; font-weight: 500; }
.export__body { flex: 1; overflow-y: auto; padding: 0 20px 20px; display: grid; gap: 14px; align-content: start; }
.export__foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.export__foot p { margin: 0; font-size: 12px; text-align: center; color: var(--muted); }
.xs { display: grid; gap: 6px; }
.xs h3 { margin: 6px 0 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.xr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.xr__txt { min-width: 0; display: grid; gap: 1px; }
.xr__txt b { font-weight: 500; font-size: 14px; }
.xr__txt .mono { font: 11.5px/1.4 var(--font-mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr__txt small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.xr__fmt { color: var(--muted); font: 11px/1.3 var(--font-mono); text-align: right; max-width: 110px; }
.xr__dl { color: var(--ink); border: 1px solid var(--line-2); }
.xr__dl[aria-busy="true"] { opacity: .5; }

/* ---------------------------------------------------------------- login: stays on the page */
.login { position: fixed; inset: 0; z-index: 950; display: none; place-items: center; background: rgba(0, 0, 0, .6); padding: 16px; text-align: left; }
body.is-login .login { display: grid; }
.login__card { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; display: grid; gap: 14px; }
.login__card h2 { margin: 0; font-size: 22px; font-weight: 500; }
.login__card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.login__card input[type=email] { width: 100%; height: 46px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); padding: 0 16px; font: 400 16px/1 var(--font-text); color: var(--ink); }
.login [data-s] { display: grid; gap: 10px; }
.login[data-step="email"] [data-s="code"], .login[data-step="code"] [data-s="email"] { display: none; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code input { height: 50px; text-align: center; font: 500 20px/1 var(--font-mono); border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); width: 100%; color: var(--ink); padding: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.login small a { color: inherit; }
.login__x { position: absolute; top: 12px; right: 12px; }
.login__msg { min-height: 1.2em; color: var(--warn) !important; }
.login__msg:empty { display: none; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--ink-2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }

/* ---------------------------------------------------------------- My projects */
.pj__h { margin: 0; font-size: 34px; font-weight: 400; letter-spacing: -0.02em; }
.pcard { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px; display: grid; gap: 10px; }
.pcard h2 { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.pcard .big { font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.pcard p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.pcard ul li { display: flex; justify-content: space-between; gap: 8px; }
.pj__ledger { list-style: none; margin: 0; padding: 0; display: grid; font-size: 13px; }
.pj__ledger li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.pj__ledger small { display: block; color: var(--muted); }
.pj__signin { max-width: 440px; margin: 0 auto; text-align: left; }

/* ---------------------------------------------------------------- phone portrait */
@media (max-width: 760px) {
  .tool[data-state="done"] { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .tool[data-state="done"] .proj { border-radius: 0; border-left: 0; border-right: 0; }
  .sbar { padding: 12px; gap: 10px; }
  .sbar__file b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sbar__actions :is(.wbtn--go, [data-export]) { display: none; } .sbar__file { flex: 1 1 calc(100% - 130px); } .sbar:not(:has(.wbtn--new)) .sbar__file { flex-basis: 100%; } .sbar__langs { order: 3; } .sbar__actions:not(:has(.wbtn--new)) { display: none; }
  .wbk .st__stage { padding: 0 0 6px; } .wbk .screen { width: 100%; border-radius: 0; }
  .tl { --left: 124px; padding: 6px 12px 14px; row-gap: 5px; }
  .tl__hit { left: calc(12px + var(--left)); right: 12px; bottom: 14px; top: 6px; }
  .tl__left { padding: 0 6px; gap: 6px; }
  .tl__name small { display: none; }
  .tl__name b { font-size: 11.5px; white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tl .tgl { width: 30px; height: 18px; } .tl .tgl::after { width: 12px; height: 12px; } .tl .tgl[aria-pressed="true"]::after { transform: translateX(12px); }
  .tl .time { font-size: 11px; }
  .tl__ruler span { font-size: 0; } .tl__ruler { height: 30px; }
  .tl__ruler span:not(:first-child):not(:last-child) { display: none; }
  .tl .lane--cap .blk { padding: 2px 4px; top: 3px; bottom: 3px; font-size: 10px; line-height: 1.25; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
  .st__bar { padding: 2px 12px 0; }
  .st__hint { display: none; }
  .sample-live .proj { margin-left: calc(-1 * var(--gutter, 16px)); margin-right: calc(-1 * var(--gutter, 16px)); border-radius: 0; border-left: 0; border-right: 0; }
  .also__grid { grid-template-columns: 1fr; }
  .see-sample { display: block; text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 12px; }
  .export { top: auto; left: 0; width: 100%; max-height: 88vh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; transform: translateY(102%); }
  .export__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .login { place-items: end center; padding: 0; }
  .login__card { border-radius: 18px 18px 0 0; padding: 20px 16px 24px; }
}
@media (max-width: 860px) { .pj__h { font-size: 28px; } }
.tool[data-state="working"] .tool__side > :not(.wwork):not(.tool__foot):not(.notice) { display: none !important; }
.tool[data-state="working"] .tool__notes, .tool[data-state="working"] .tool__legal { display: none; }

/* done: the user's project takes the page's top; the template sample below would only compete with it */
body:has(.tool[data-state="done"]) #sample { display: none; }
.hero--tool:has(.tool[data-state="done"]) .hero__c { margin-top: 12px; }
.hero--tool:has(.tool[data-state="done"]) .tool { margin-top: 14px; }
.tool:is([data-state="working"], [data-state="done"], [data-alert]) .see-sample { display: none !important; }

/* phone: the four tools as a 2 × 2 grid with their icons (design review: all four in view) */
@media (max-width: 639px) {
  .tooltabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .tooltab { flex-direction: row; height: 40px; gap: 8px; word-spacing: normal; white-space: nowrap; font-size: 13.5px; }
  .tooltab svg { display: block; }
}

/* My projects uses the full width of the design (list + side column); the old account column was 640 px */
.account:has(> .acc:not([hidden])) { width: 100%; max-width: 820px; }

/* ---------------------------------------------------------------- design review 12-02 (round 1 of the real site) */
/* working: one progress place; the start button is not shown as if it could be pressed */
.tool[data-state="working"] .tool__go { display: none; }
.tool .clip__status { color: var(--ink-2); }
/* the chosen video: its own first frame and length */
.clip__frame { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: var(--ar, 16 / 9); max-height: 220px; margin: 0 auto; width: 100%; }
.clip__frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.clip__frame span { position: absolute; right: 8px; bottom: 8px; font: 12px var(--font-mono); background: rgba(0, 0, 0, .7); color: #fff; padding: 2px 6px; border-radius: 4px; }
.tool.has-frame .clip__body .wavebox, .tool.has-frame [data-ruler] { display: none; }
/* done: what Download video holds; a quiet way to start again; the closing call is for first visits */
.proj__mix { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.st__row { display: flex; align-items: center; gap: 16px; padding: 4px 16px 0; } .st__row .st__bar { padding: 0; flex: none; } @media (min-width: 761px) { .wbk .st__stage[hidden] + .st__row { padding-top: 16px; } } .proj__get { min-width: 0; flex: 1; }
.proj__acts, .st__bar .play--bar, .st__row .st__bar .time { display: none; } @media (min-width: 761px) { .st__row .st__bar:not(:has(.wseg)) { display: none; } }
.proj__warn { margin: 0; padding: 10px 16px; font-size: 14px; line-height: 1.4; color: #1b0e17; background: #ffe6b0; } .proj__warn b { font-weight: 600; }
body:has(.tool[data-state="done"]) .closing__cta { display: none; }
@media (min-width: 761px) {
  .tool[data-state="done"] .wbk .screen { width: min(100%, calc(280px * var(--ar, 1.78))); }
  .tool[data-state="done"] .wbk .st__stage { padding-top: 12px; }
}
@media (max-width: 760px) {
  .sbar__actions .wbtn--new { flex: none; }
  /* the order on a phone: title, picture, quick choices and play, what Download holds and its buttons, tracks */
  .tool[data-state="done"], .tool[data-state="done"] .proj, .pw .proj { overflow: visible; }
  .st__row { display: contents; } .st__row .st__bar { padding: 6px 12px 0; flex-wrap: nowrap; } .st__bar .play--bar { display: grid; width: 44px; height: 44px; } .st__row .st__bar { gap: 10px; } .st__row .st__bar .time { display: grid; min-width: 0; text-align: left; line-height: 1.25; font-size: 12px; font-family: var(--font-mono); color: var(--muted); white-space: nowrap; }
  .wbk:has(.play--bar) .tl__row--head :is(.play, .time) { display: none; } .wbk:has(.play--bar) .tl__row--head .tl__left { height: 30px; }
  .wbk .st__stage[hidden] + .st__row .st__bar { padding-top: 14px; }
  .st__bar .wseg button { height: 36px; padding: 0 12px; } @media (max-width: 359px) { .st__row .st__bar { gap: 6px; } .st__row .st__bar .time { font-size: 10px; } .st__bar .wseg button { padding: 0 7px; font-size: 13px; } }
  .proj__get { position: sticky; bottom: 0; z-index: 6; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); } .pw .proj__get { background: var(--bg); }
  .proj__acts { display: flex; gap: 8px; margin-top: 8px; } .proj__acts .wbtn { height: 48px; padding: 0 14px; } .proj__acts .wbtn--go { flex: 1; }
  .proj .wbk .screen { width: min(100%, calc(42svh * var(--ar, 1.78))); margin: 0 auto; }
  .proj__warn { padding: 8px 12px; }
  body:has(.testmode:not([hidden])) .proj__get { bottom: 56px; }
}
/* Change voice: the voice step */
.vstep { display: grid; gap: 10px; border-radius: 14px; transition: box-shadow .3s; }
.vstep.is-ask { box-shadow: 0 0 0 2px var(--accent); }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.vopt { position: relative; display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); padding-right: 4px; }
.vopt[hidden] { display: none; }
.vopt label { flex: 1; min-width: 0; display: block; cursor: pointer; padding: 8px 10px; }
.vopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vopt label span { display: grid; gap: 1px; }
.vopt b { font-weight: 500; font-size: 14px; }
.vopt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vopt:has(input:checked) { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 10%, var(--bg)); }
.vopt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.vopt .voice__hear { position: static; transform: none; flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.vopt .voice__hear svg { width: 12px; height: 12px; fill: currentColor; }
.vopt .voice__hear[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.vopt--own { grid-column: 1 / -1; }
.vown { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.vchosen { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: color-mix(in oklab, var(--ink) 6%, var(--bg)); font-size: 14px; }
.vchosen[hidden] { display: none; }
.vchosen .aplay { height: 36px; }
/* sample cards: a dark play bar with the length shown before playing */
.aplay { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.aplay button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.aplay button svg { width: 12px; height: 12px; fill: currentColor; }
.aplay__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); position: relative; cursor: pointer; }
.aplay__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ink-2); width: 0; }
.aplay span { font: 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.sample__used { margin: 10px 0 0; display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.sample__used b { font-weight: 500; color: var(--ink); }
@media (max-width: 639px) { .nav__account { gap: 10px; margin-right: 4px; } }
@media (max-width: 639px) { .vopt small { white-space: normal; line-height: 1.25; } }

/* design review round 2 (12-02) */
/* one place for progress: the step list (the stage keeps only the bar) */
.tool[data-state="working"] .clip__status { display: none; }
.wsteps__pct { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
/* phones: the main button stays at the bottom of the screen while its own place is out of view */
@media (max-width: 760px) {
  .tool.is-floating .tool__go { position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; z-index: 60; box-shadow: 0 8px 28px rgb(0 0 0 / .55); }
  .tool.is-floating .tool__foot { padding-top: 52px; }
}
/* touch screens keep :hover after a tap; only real pointers get the hover tint on the tool tabs */
@media (hover: none) { .tooltab:hover { background: transparent; color: var(--muted); } .tooltab[aria-current="page"]:hover { background: color-mix(in oklab, var(--ink) 14%, var(--surface)); color: var(--ink); } }
/* the sample's Before / After line shows on phones too */
@media (max-width: 760px) { .st__hint { display: inline; font-size: 12px; } }
/* local test mode: the yellow strip sits at the bottom too; the floating button goes above it */
@media (max-width: 760px) { body:has(.testmode:not([hidden])) .tool.is-floating .tool__go { bottom: calc(68px + env(safe-area-inset-bottom)); } }

.pj__signin .hero__c { margin-bottom: var(--s-5, 24px); }
.signin__label { display: block; font: 500 var(--t-small, 14px)/1.4 var(--font-text); color: var(--ink-2); margin-bottom: 6px; }
/* Remove music: the original video being saved beside the project (12-02). */
.proj__save { margin: 0; padding: 8px 16px 0; font-size: var(--t-small, 14px); color: var(--ink-2); }
.proj__save.is-bad { color: var(--bad, #ff6b6b); }
.screen.is-loading::after { content: attr(data-wait); padding: 0 16px; text-align: center; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; pointer-events: none; }

/* The site's own list: the language to translate into (12-03). */
.pick { position: relative; }
.pick__btn { appearance: none; width: 100%; height: 48px; padding: 0 44px 0 var(--s-4, 16px); border-radius: var(--r-sm); border: 1px solid var(--tool-line); background: var(--bg); color: var(--ink); font: 400 16px/1 var(--font-text); text-align: left; cursor: pointer; position: relative; }
.pick__btn:hover { border-color: color-mix(in oklab, var(--ink) 40%, transparent); }
.pick__btn[aria-expanded="true"] { border-color: var(--accent); }
.pick__btn::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.pick__btn[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: -2px; }
.pick__btn span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.pick__pop { position: absolute; z-index: 45; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-sm); border: 1px solid var(--line-2, var(--tool-line)); background: var(--surface-2, #241420); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); text-align: left; }
.pick__pop[hidden] { display: none; }
.pick__find { flex: none; height: 48px; margin: 0; padding: 0 var(--s-4, 16px); border: 0; border-bottom: 1px solid var(--tool-line); border-radius: 0; background: transparent; color: var(--ink); font: 400 16px/1 var(--font-text); outline: none; }
.pick__find::placeholder { color: var(--muted); }
.pick__find:focus { box-shadow: inset 0 -2px 0 var(--accent); }
.pick__list { overflow-y: auto; overscroll-behavior: contain; padding: 4px; outline: none; }
.pick__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 8px; font: 400 15px/1.3 var(--font-text); cursor: pointer; }
.pick__opt[hidden] { display: none; }
.pick__opt.is-on { background: color-mix(in oklab, var(--ink) 10%, transparent); }
.pick__opt[aria-selected="true"] { color: var(--accent); }
.pick__opt[aria-selected="true"]::after { content: ""; flex: none; width: 6px; height: 11px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.pick__none { margin: 0; padding: 14px 16px; color: var(--ink-2, var(--muted)); font-size: 15px; }
@media (max-width: 760px), (pointer: coarse) { .pick__opt { min-height: 46px; font-size: 16px; } }

/* Add sound: the lines, one a row (12-03). */
/* The line that is there at first is an example. */
/* Fields in the tools: the focus ring is white, so it never looks like an error or the main button (12-03). */
.tool__side :is(input:not([type=radio]):not([type=checkbox]):not([type=range]), textarea):focus-visible { outline: 2px solid rgb(255 255 255 / .85); outline-offset: 1px; border-radius: var(--r-sm); }
.vstep--fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 var(--s-4, 16px); border: 1px solid var(--tool-line); border-radius: var(--r-sm); background: var(--bg); cursor: pointer; list-style: none; }
.vstep--fold > summary::-webkit-details-marker { display: none; }
.vstep--fold > summary b { font-weight: 400; color: var(--ink-2, var(--muted)); } .vstep--fold > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); flex: none; }
.vstep--fold > summary b { margin-left: auto; } .vstep--fold[open] > summary::after { transform: translateY(2px) rotate(225deg); } .vstep--fold[open] > * + * { margin-top: 10px; }
.vopt--auto { grid-column: 1 / -1; }
/* Add sound: the video stays in view on a wide screen while the boxes are written. */
.tool[data-tool="add-sound"][data-state="ready"] { overflow: clip; }
@media (min-width: 761px) { .tool[data-tool="add-sound"][data-state="ready"] .clip { position: sticky; top: calc(var(--nav, 64px) + 12px); align-self: start; } .tool[data-tool="add-sound"] .clip__frame { max-height: 52vh; } }
@media (max-width: 760px) {
  .tool[data-tool="add-sound"][data-state="ready"] { display: block; overflow: visible; }
}

@media (max-width: 760px) {
  /* the main button at the bottom: a solid strip behind it, so no text shows through around it */
  .tool.is-floating::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(88px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 78%, transparent); z-index: 59; pointer-events: none; }
  body:has(.testmode:not([hidden])) .tool.is-floating::after { height: calc(144px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) { .tool .tool__foot .tool__go:hover { background: var(--action); } }

/* A project being opened (12-03): the workbench's shape, waiting for its files. */
.proj.is-skel :is(button):disabled { opacity: 1; cursor: default; } .proj.is-skel .lane { background: var(--bg); }

/* A replayed run (test site and local): no model was called (12-03). */
.rtag { display: inline-block; justify-self: start; align-self: flex-start; margin: 2px 0 0; padding: 2px 8px; border-radius: 999px; background: #ffd166; color: #1b0e17; font: 500 12px/1.4 var(--font-text); white-space: nowrap; }

/* ---------------------------------------------------------------- My projects: a list and a workspace (12-03) */
.pw { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1440px; margin: 0 auto; padding: calc(var(--nav, 72px) + 20px) var(--gut, 24px) 56px; text-align: left; }
.pw__list { position: sticky; top: calc(var(--nav, 72px) + 20px); height: calc(100vh - var(--nav, 72px) - 40px); display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--r-lg, 20px); background: var(--surface); overflow: hidden; }
.pw__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.pw__head h1 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: 0; line-height: 1.2; } .pw__head h1 span { color: var(--muted); font-weight: 400; font-size: 15px; margin-left: 4px; }
.pl { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; overflow-y: auto; overscroll-behavior: contain; flex: 1; align-content: start; }
.pl__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .pl__row:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); } }
.pl__row[aria-current="true"] { background: color-mix(in oklab, var(--ink) 12%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); }
.pl__row:focus-visible { outline: 2px solid rgb(255 255 255 / .85); outline-offset: -2px; border-radius: 12px; }
.pl__img { position: relative; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-2); }
.pl__img svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; } .pl__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl__txt { min-width: 0; display: grid; gap: 3px; } .pl__txt b { font-weight: 500; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl__meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13px; line-height: 1.25; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pl__txt > .pl__meta:nth-child(2) { display: block; }
.pl__st.is-soon { color: var(--warn); font-weight: 500; } .pl__st.is-bad { color: #ff8f84; } .pl__st.is-busy { color: var(--ink-2); } .pl__st.is-busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; border: 1.5px solid var(--muted); border-top-color: transparent; vertical-align: -1px; animation: wspin .9s linear infinite; }
.pl__rp { color: var(--muted); } .pl__row.is-gone { opacity: .55; }
.pw__keep, .pw__none { margin: 0; padding: 10px 18px 12px; font-size: 13px; color: var(--muted); } .pw__keep { border-top: 1px solid var(--line); } .pw__none { padding-top: 18px; }
.pw__main { min-width: 0; } .pw__back { display: none; }
.pw .wbk .screen { width: min(100%, calc(min(34vh, 340px) * var(--ar, 1.78))); } .pw .wbk .st__stage { padding-top: 10px; } .pw .sbar { padding: 12px 16px; }

/* New: the four tools */
.pnew { position: relative; } .pnew .wbtn { gap: 6px; height: 36px; padding: 0 12px 0 16px; } .pnew .wbtn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pnew__menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: 280px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: 0 16px 40px rgb(0 0 0 / .5); } .pnew__menu[hidden] { display: none; }
.pnew__menu a { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; } .pnew__menu a:is(:hover, :focus-visible) { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.pnew__menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; } .pnew__menu span { display: grid; gap: 1px; } .pnew__menu b { font-weight: 500; font-size: 15px; } .pnew__menu small { color: var(--muted); font-size: 13px; }
.pw__list:has(.pnew__menu:not([hidden])) { overflow: visible; }

/* working, failed, expired, not started */
.pstate { min-height: 420px; display: flex; flex-direction: column; }
.pstate__body { flex: 1; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 40px 24px 56px; text-align: center; }
.pstate__body h2 { margin: 4px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; } .pstate__body p { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.pstate__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pstate__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); } .pstate__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pstate--bad .pstate__icon { color: #ff8f84; } .pstate--bad .pstate__icon svg { width: 32px; height: 32px; stroke-width: 2; stroke-linecap: round; } .pstate__spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: wspin .9s linear infinite; }
.pstate .wsteps { text-align: left; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .pstate__spin { animation-duration: 3s; } }

/* nothing yet */
.pempty { border: 1px solid var(--line-2); border-radius: var(--r-lg, 20px); background: var(--surface); padding: 56px 32px; text-align: center; }
.pempty h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.015em; } .pempty > p { margin: 10px auto 28px; max-width: 48ch; color: var(--ink-2); font-size: 16px; }
.pempty ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 680px; }
.pempty a { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; height: 100%; } .pempty a:is(:hover, :focus-visible) { border-color: var(--ink-2); }
.pempty__i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); margin-bottom: 4px; } .pempty__i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pempty b { font-weight: 500; font-size: 17px; } .pempty a > span:last-child { color: var(--muted); font-size: 14px; }

/* in the project: volume, and the lines under the timeline */
.tl:has(.tl__vol) { --left: 268px; } .tl__left:has(.tl__vol) .tl__name { flex: 1; }
.tl__vol { flex: none; width: 56px; height: 20px; margin: 0; accent-color: #fff; cursor: pointer; } .tl__row.is-off .tl__vol { opacity: .35; } i.tl__vol { visibility: hidden; }
.plines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; padding: 0 16px 16px; } .plines[hidden] { display: none; }
.pcol { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.pcol__head { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); } .pcol__head h3 { margin: 0 auto 0 0; font-size: 14px; font-weight: 500; } .pcol__head small { color: var(--muted); font-weight: 400; font-size: 13px; }
.pcol__dl { color: var(--ink); } .aplay--mini { display: flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; } .aplay--mini span { font: 400 13px/1 var(--font-text) !important; color: var(--ink-2) !important; }
.pcol ol { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow-y: auto; display: grid; gap: 1px; }
.pcol button[data-line] { width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 400 15px/1.4 var(--font-text); text-align: left; cursor: pointer; }
.pcol button[data-line]:disabled { cursor: default; color: inherit; } .pcol button[data-line].is-on { background: color-mix(in oklab, var(--ink) 11%, transparent); } @media (hover: hover) { .pcol button[data-line]:not(:disabled):hover { background: color-mix(in oklab, var(--ink) 6%, transparent); } }
.pcol__t { font: 12px/1.75 var(--font-mono); color: var(--muted); } .pcol b { font-weight: 500; color: var(--muted); margin-right: 4px; }

/* account */
.acc { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; text-align: left; } .acc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc__who { display: flex; align-items: center; gap: 14px; min-width: 0; } .acc__mail { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; } .acc__credits { grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 20px; } .acc__credits > div { display: grid; gap: 10px; justify-items: start; } .acc__credits > ul { gap: 10px; font-size: 14px; }
.pj__ledger li { align-items: center; padding: 10px 0; } .lg__what { min-width: 0; display: grid; gap: 2px; font-size: 15px; } .lg__what > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 400; } .lg__n { flex: none; text-align: right; font-size: 15px; } .lg__n.is-in { color: var(--ok); } .pj__ledger small { font-size: 13px; }
.wavatar[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

@media (max-width: 860px) {
  .pw { display: block; padding: var(--nav, 56px) 0 40px; }
  .pw[data-view="project"] .pw__list, .pw[data-view="list"]:not([data-empty]) .pw__main { display: none; }
  .pw__list { position: static; height: auto; border: 0; border-radius: 0; background: none; overflow: visible; } .pw__head { padding: 16px; position: sticky; top: var(--nav, 56px); z-index: 20; background: var(--bg); } .pw__head h1 { font-size: 22px; }
  .pl { padding: 8px 8px 0; overflow: visible; } .pl__row { grid-template-columns: 88px minmax(0, 1fr); padding: 10px 8px; min-height: 76px; } .pl__img { width: 88px; height: 60px; } .pl__txt b { font-size: 16px; } .pl__meta { font-size: 14px; }
  .pw__back { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 15px; position: sticky; top: var(--nav, 56px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); } .pw__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .pw__main .proj { border: 0; border-radius: 0; background: none; }  .pstate { min-height: calc(100vh - 200px); }
  .pw[data-empty] .pw__main .pempty { border: 0; background: none; padding: 24px 16px; } .pw[data-empty] .pw__back, .pw[data-empty] .pw__none, .pw[data-empty] .pw__keep { display: none; } .pempty ul { grid-template-columns: 1fr; } .pempty a { grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px; } .pempty__i { grid-row: 1 / span 2; margin: 0; align-self: center; }
  .plines { grid-template-columns: 1fr; padding: 0 12px 14px; } .acc__credits { grid-template-columns: 1fr; gap: 18px; } .acc__head { flex-wrap: wrap; } .acc__who { width: 100%; justify-content: space-between; }
  .tl:has(.tl__vol) { --left: 148px; } .tl:has(.tl__vol) .tl__row:not(.tl__row--head) :is(.tl__left, .lane) { height: 48px; }
  .tl__left:has(.tl__vol) { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; align-content: center; } .tl__left:has(.tl__vol) .tgl { grid-row: 1 / span 2; align-self: center; } .tl__left:has(.tl__vol) .tl__name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tl__vol { width: 100%; height: 16px; }
}
/* the workspace page ends with its footer, without the empty screen under it */
body:has(.pw) .footer { min-height: 0; }
/* One pink button on a screen (design review 12-04): New steps back while the middle has its own. */
.pw[data-empty] .pnew { display: none; }
@media (min-width: 861px) { .pw:has(.pw__main .wbtn--go, .pstate--open) .pnew .wbtn--go { background: transparent; border-color: var(--line-2); color: var(--ink); font-weight: 500; } .pw:has(.pw__main .wbtn--go, .pstate--open) .pnew .wbtn--go:hover { background: rgb(255 255 255 / .05); } }
/* Working: the original is there to look at meanwhile. */
.pstate__vid { margin: 0 0 8px; display: grid; gap: 6px; justify-items: center; width: 100%; } .pstate__pic { position: relative; width: min(100%, calc(min(38vh, 320px) * var(--ar, 1.78))); aspect-ratio: var(--ar, 1.78); border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; } .pstate__pic video { width: 100%; height: 100%; object-fit: contain; display: block; } .pstate__pic .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); } .pstate__pic.is-playing .play { opacity: 0; } .pstate__pic.is-playing .play:focus-visible { opacity: 1; } .pstate__vid figcaption { font-size: 13px; color: var(--muted); }

/* Buying credits (12-04 review): pricing buttons, the success page, one focus ring on email boxes */
.pack .btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong, var(--line-2)); }
.pack .btn--outline:hover { border-color: color-mix(in oklab, var(--ink) 45%, transparent); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.acc { width: 100%; }
.acc__pending { margin: -4px 0 0; color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.acc__pending[hidden] { display: none; }
.acc__spin { display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%; border: 2px solid var(--surface-3, var(--line-2)); border-top-color: var(--accent); vertical-align: -1px; animation: wspin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .acc__spin { animation-duration: 3s; } }
:is(.signin, .notice, .login) input:is([type=email], [name=code]):focus-visible { outline: none; border-color: var(--action, var(--accent)); box-shadow: 0 0 0 1px var(--action, var(--accent)); }
@media (max-width: 639px) {
  .acc__mail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .acc__who { flex-wrap: nowrap; }
}
/* Phone pricing: the first pack's Buy button inside a 390×664 screen, also with the "Payment cancelled" line above it. */
@media (max-width: 639px) {
  .hero--price .price__grid { margin-top: 16px; }
  .price__grid [data-notice] { padding: 10px 14px; }
  .hero--price .pack { padding: 16px 20px 20px; gap: 12px; }
}
/* A long email must not widen the account page (12-04: a no-wrap email set the grid column's width, page wider than a phone). */
.acc { grid-template-columns: minmax(0, 1fr); }
.acc__head, .acc__who { min-width: 0; }
.acc__who [data-logout] { flex: none; }
/* Pricing cards (12-04, user: not aligned): the credits always under the price on wider screens, equal heights, the Buy
   buttons on one line at the bottom, one line per item. Phones keep "$10 150 credits" on one line (a card per row). */
.pack__price small { white-space: nowrap; }
@media (min-width: 640px) {
  .price__grid > .pack { align-self: stretch; grid-template-rows: auto 1fr auto; }
  .pack__price small { display: block; margin: 10px 0 0; }
  .pack ul li { white-space: nowrap; }
}
/* Phones: "Paid once, no subscription" is already in the lead right above, and the row would push the first Buy button
   out of a 390×664 screen when "Payment cancelled" shows. */
@media (max-width: 639px) { .pack ul li:nth-child(2) { display: none; } }

/* Model page: on phones the long lead is hidden (the tools come first), but the release date the Description quotes
   shows in one short line (12-04 review). */
.hero__lead--short { display: none; }
@media (max-width: 639px) { .hero__lead--short { display: block; margin-top: 4px; font-size: 15px; } }

/* Translate into: English pinned on top (user 12-04), with a line under it; it is also in its place below. */
.pick__opt--top { border-radius: 8px 8px 0 0; box-shadow: 0 1px 0 var(--line); margin-bottom: 4px; }

/* The picture could not be had: say so, with a way to try again (12-04). */
.screen__retry { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; text-align: center; padding: 16px; }
.screen__retry p { margin: 0; }

/* A replayed project: an example result, not this video's (12-04). */
.proj__replay { margin: 0; padding: 10px 16px; font-size: 14px; line-height: 1.45; color: #1b0e17; background: #ffe6b0; } .proj__replay b { font-weight: 600; }
@media (max-width: 860px) { .proj__replay { padding: 8px 12px; } }

/* Pricing on phones: the lead keeps only what $10 covers (the rest is in the H1 and on every card), so the first pack's
   Buy button stays in a 390×664 screen (12-04 review). */
@media (max-width: 639px) { .hero--price .lead__base { display: none; } }

/* Pricing table: a column per pack (12-04); on phones the four numbers sit two by two. */
.price__note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 899px) { .hero--price .price tr { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .hero--price .price td:nth-child(2) { grid-column: 1 / -1; margin-bottom: 6px; } }

/* ---------- Add sound's form (12-04, plans/2026-12-04-audiostudioai-add-sound-input, prototype proto.css + voice.css) ---------- */
.tool[data-tool="add-sound"] .tool__side { gap: var(--s-4); }
.say { display: grid; gap: var(--s-2); }
.say > label small { color: var(--muted); font-weight: 400; }
.say__box { position: relative; }
.say__box textarea { display: block; width: 100%; min-height: 92px; resize: vertical; border-radius: var(--r-sm); border: 1px solid var(--tool-line);
  background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font-text); padding: var(--s-3); }
.say__box textarea::placeholder { color: color-mix(in oklab, var(--ink) 42%, transparent); font-style: italic; white-space: pre-line; }
.say__count { flex: none; margin-left: auto; font: 400 12px/1.6 var(--font-mono); color: var(--muted); white-space: nowrap; }
.say__meta { margin: 0; display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: baseline; color: var(--ink-2, var(--muted)); font-size: 14px; line-height: 1.4; }
.say.is-over .say__count { color: #ff6a5c; }
.say.is-bad .say__box textarea { border-color: #ff6a5c; box-shadow: inset 0 0 0 1px #ff6a5c; }
.say__err { margin: 0; padding-left: 20px; position: relative; color: #ff6a5c; font-size: 14px; line-height: 1.4; }
.say__err[hidden], [data-hint][hidden] { display: none; }
.say__err::before { content: "!"; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ff6a5c; color: #0d060b; font: 700 11px/14px var(--font-text); text-align: center; }
.say__hint { margin: 0; color: var(--ink-2, var(--muted)); font-size: 14px; line-height: 1.4; }
@keyframes eg-new { from { background: color-mix(in oklab, var(--ink) 16%, var(--bg)); } to { background: var(--bg); } }
.say__box textarea.is-new { animation: eg-new .9s ease-out; }
@media (prefers-reduced-motion: reduce) { .say__box textarea.is-new { animation: none; } }
/* the examples: light dashed pills (they only change the grey text), unlike the voice's starting points, which write */
.eg { display: grid; gap: 8px; }
.eg[hidden], .eg__said[hidden] { display: none; }
.eg__t { font: 400 var(--t-small)/1.4 var(--font-text); color: var(--ink-2, var(--muted)); }
.eg__list { display: flex; flex-wrap: wrap; gap: 4px; }
.eg__chip { appearance: none; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--tool-line); background: none; color: var(--ink);
  font: 500 13px/1 var(--font-text); cursor: pointer; white-space: nowrap; }
.eg__chip:hover { border-color: var(--ink); }
.eg__chip[aria-pressed="true"] { background: color-mix(in oklab, var(--ink) 12%, var(--bg)); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.eg__chip:focus-visible { outline: 2px solid rgb(255 255 255 / .85); outline-offset: 2px; }
.eg__said { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2, var(--muted)); }
.tool[data-tool="add-sound"] [data-eg] .eg__chip { border-style: dashed; color: var(--ink-2, var(--muted)); font-weight: 400; }
.tool[data-tool="add-sound"] [data-eg] .eg__chip[aria-pressed="true"] { border-style: solid; color: var(--ink); background: color-mix(in oklab, var(--ink) 8%, var(--bg)); box-shadow: none; }
/* the voice component: one for every tool that takes a voice */
.vc { display: grid; gap: 10px; }
.vc[hidden], .vc__panel[hidden], .vc__pane[hidden], [data-vc-pane][hidden], .vc__name[hidden], .vc__play[hidden] { display: none; }
.vc__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 0 var(--s-4, 16px);
  border: 1px solid var(--tool-line); border-radius: var(--r-sm); background: var(--bg); }
.vc__row:has(.vc__sum:empty) { grid-template-columns: minmax(0, 1fr) auto; }
.vc__sum { color: var(--ink-2, var(--muted)); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.vc__sum:empty { display: none; }
.vc__change { min-height: 44px; }
.vc__panel, .vc__pane { display: grid; gap: 8px; }
.vc__panel { gap: 10px; }
.vmode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--tool-line); }
.vmode button { appearance: none; border: 0; background: none; color: var(--muted); min-height: 36px; padding: 0 8px; border-radius: 999px; font: 500 14px/1.15 var(--font-text); cursor: pointer; }
.vmode button:hover { color: var(--ink); }
.vmode button[aria-pressed="true"] { background: color-mix(in oklab, var(--ink) 14%, var(--bg)); color: var(--ink); }
.vmode button:focus-visible { outline: 2px solid rgb(255 255 255 / .85); outline-offset: 2px; }
.vc .say__box textarea { min-height: 64px; }
.vc__file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vc__pick { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--tool-line); background: none; color: var(--ink); font: 500 14px/1 var(--font-text); cursor: pointer; }
.vc__pick:hover { border-color: var(--ink); }
.vc__name { font-size: 14px; color: var(--ink-2, var(--muted)); overflow-wrap: anywhere; }
.vc__play { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--tool-line); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.vc__play svg { width: 12px; height: 12px; fill: currentColor; }
/* under the chosen video, when it has sound of its own: it is replaced, and the way to the other tool */
.clip__to { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2, var(--muted)); }
.clip__to[hidden] { display: none; }
.clip__to b { font-weight: 500; color: var(--ink); }
.clip__to a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* what this run gives, right above the button; with something to fix the button says what (outlined) */
.gobar { display: grid; gap: var(--s-3); }
.youget { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2, var(--muted)); }
.youget:empty { display: none; }
.youget b { font-weight: 500; color: var(--ink); }
.tool[data-state="ready"] .tool__go.is-blocked { background: none; color: var(--ink); border: 1.5px solid #ff6a5c; box-shadow: none; }
.tool[data-state="ready"] .tool__go.is-blocked::after { display: none; }
@media (max-width: 760px) {
  .say__box textarea { min-height: 84px; }
  [data-box="words"] .say__box textarea { min-height: 104px; }
  .eg__chip { min-height: 36px; padding: 0 12px; }
  /* starting points for a description, not a list of voices: small chips that wrap (12-04, Text to audio review; both tools) */
  .vc .eg__list { display: flex; flex-wrap: wrap; gap: 6px; }
  .vc .eg__chip { min-height: 36px; font-size: 13px; }
  .vmode button { font-size: 13px; padding: 0 4px; }
  .only-wide { display: none; }
  .tool[data-tool="add-sound"][data-state="ready"] .clip__frame { max-height: 26vh; margin-inline: auto; }
  /* the button and the line above it float together, on a solid bar (no text shows through under it) */
  .tool.is-floating .gobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 6px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--tool-line); }
  .tool.is-floating .gobar .tool__go { position: static; width: 100%; box-shadow: none; }
  .tool.is-floating .gobar .youget { font-size: 13px; line-height: 1.35; }
  .tool.is-floating:has(.gobar)::after { display: none; }
  .tool.is-floating:has(.gobar) .tool__foot { padding-top: 104px; } /* the place the bar left, so the page does not jump */
  body:has(.testmode:not([hidden])) .tool.is-floating .gobar { bottom: 56px; }
}

/* ---------- Text to audio (12-04, plans/2026-12-04-audiostudioai-text-to-audio, prototype proto.css) ---------- */
.say__how { margin: 0; color: var(--ink-2, var(--muted)); font-size: 15px; line-height: 1.45; }
.say__how b { font-weight: 500; color: var(--ink); }
.say__len { margin-left: auto; font: 400 12px/1.4 var(--font-mono); color: #ff6a5c; }
.say__len[hidden], .say__count[hidden], .fix[hidden] { display: none; }
.vc__from { font-size: 13px; color: var(--muted); }
.vc[data-vc-auto="Auto · picked from your text"] .say__box textarea { min-height: 96px; } /* several speakers: three lines without scrolling */
.tool--text .tool__stage { min-height: 0; align-self: start; }
.tool--text .tool__side { gap: var(--s-4); }
.tool--text .tool__foot { margin-top: var(--s-2); } /* the button follows the voice row, it does not move when the left side grows */
.textcard { flex: 1; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; padding: var(--s-5); border-radius: var(--r-md); background: var(--bg); }
.textcard .say { flex: 1; display: flex; flex-direction: column; }
.textcard .say__box { flex: 1; display: flex; }
.textcard .say__box textarea { flex: 1; min-height: 240px; background: var(--surface); font-size: 17px; line-height: 1.55; }
/* the box already has text: a pressed example shows here, in grey, never written into the box */
.eg__show { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 4px 8px 12px; border-radius: var(--r-sm); background: color-mix(in oklab, var(--ink) 6%, var(--bg)); color: color-mix(in oklab, var(--ink) 62%, transparent); font-size: 15px; line-height: 1.5; font-style: italic; }
.eg__show p { margin: 0; white-space: pre-line; }
.eg__show[hidden] { display: none; }
.eg__x { appearance: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: 400 20px/1 var(--font-text); cursor: pointer; }
.eg__x:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 8%, transparent); }
/* nobody speaks: two ways out, side by side */
.fix { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fix__t { flex-basis: 100%; font-size: 14px; color: var(--ink); }
.fix__n { flex-basis: 100%; font-size: 14px; line-height: 1.4; color: var(--ink-2, var(--muted)); }
.fix .vc__pick { min-height: 44px; }
/* what will be spoken, read back before anything is paid for */
.saidbox { display: grid; gap: var(--s-2); }
.said { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-sm); background: color-mix(in oklab, var(--ink) 6%, var(--bg)); font-size: 14px; line-height: 1.45; color: var(--ink-2, var(--muted)); }
.said b { font-weight: 500; color: var(--ink); }
.said ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.said li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; color: var(--ink); font-size: 15px; }
.said li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--ink); opacity: .7;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="6" y="1.5" width="4" height="8" rx="2"/><path d="M3.5 7.5a4.5 4.5 0 0 0 9 0M8 12v2.5" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="round"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="6" y="1.5" width="4" height="8" rx="2"/><path d="M3.5 7.5a4.5 4.5 0 0 0 9 0M8 12v2.5" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="round"/></svg>') center / contain no-repeat; }
.said li small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.said li.is-eg { color: color-mix(in oklab, var(--ink) 62%, transparent); font-style: italic; }
.said li.is-more { display: block; color: var(--ink-2, var(--muted)); font-size: 14px; padding-left: 24px; }
.said li.is-more::before { display: none; }
.said.is-none { background: none; padding: 0; }
/* while it is made: one column, the bars and where it will be */
.tool--text[data-state="working"] { grid-template-columns: minmax(0, 1fr); }
.tool--text[data-state="working"] .tool__side { display: none; }
.making { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); }
.making .clip__meta { font-family: var(--font-text); font-size: 14px; }
.making__body { flex: 1; display: grid; place-content: center; justify-items: center; gap: var(--s-4); min-height: 260px; text-align: center; }
.making__bars { display: flex; align-items: center; gap: 5px; height: 56px; }
.making__bars i { width: 5px; border-radius: 3px; background: var(--accent, #ff3d81); animation: mk 1.1s ease-in-out infinite; }
.making__bars i:nth-child(3n) { animation-delay: -.2s; } .making__bars i:nth-child(3n+1) { animation-delay: -.5s; } .making__bars i:nth-child(4n) { animation-delay: -.8s; }
@keyframes mk { 0%, 100% { height: 12px; opacity: .5; } 50% { height: 52px; opacity: 1; } }
.making__t { margin: 0; display: grid; gap: 6px; max-width: 44ch; }
.making__t b { font: 500 20px/1.3 var(--font-text); }
.making__t span { color: var(--ink-2, var(--muted)); font-size: 15px; line-height: 1.45; }
.making__t a { color: var(--ink); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .making__bars i { animation: none; height: 28px; } .making__bars i:nth-child(2n) { height: 44px; } .making__bars i:nth-child(3n) { height: 16px; } }
.pcol__note, .proj__again { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.proj__again { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.textcard textarea:focus-visible { outline: 2px solid rgb(255 255 255 / .85); outline-offset: 1px; } /* white, never the main button's pink (12-03 rule) */
.pcol__note { padding: 0 16px 8px; }
.tooltabs--5 .tooltab { padding: 0 14px; }
@media (max-width: 760px) {
  .textcard { padding: 0; background: none; gap: var(--s-3); }
  .textcard .say__box textarea { min-height: 184px; font-size: 16px; }
  /* the examples: one row that scrolls sideways, so the box stays on the first screen */
  .textcard > .eg .eg__list { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .textcard > .eg .eg__list::-webkit-scrollbar { display: none; }
  .textcard > .eg .eg__chip { min-height: 40px; flex: none; }
  .fix .vc__pick { flex: 1 1 100%; }
  .vc { scroll-margin-top: 76px; }
  .making { padding: 0; }
}
/* a phone held upright: five tools in one row, two lines of words each, no icons (the four sat 2 × 2 with icons) */
@media (max-width: 639px) {
  .tooltabs.tooltabs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px; }
  .tooltabs--5 .tooltab { flex-direction: column; height: 48px; gap: 0; padding: 0 2px; font-size: 12px; line-height: 1.15; white-space: normal; word-spacing: normal; text-align: center; text-wrap: balance; }
  .tooltabs--5 .tooltab svg { display: none; }
  .tooltabs--5 .tooltab:not(:last-child) { word-spacing: 100vw; }
}
