/* STEAL. One page, one colour world, one centre axis, one 8 px rhythm, one control (the pill).
   The state is html[data-state]; JS hides every [data-show] that does not list the current state.
   Ported from the approved immersive design (v2), extended for taste, create and the library. */

@font-face { font-family: Inter; src: url('/fonts/Inter.woff') format('woff'); font-weight: 100 900; font-display: swap; }

:root {
  --muted: #8C8C8C;
  --tint:  color-mix(in srgb, var(--ink) 10%, transparent);
  --hair:  color-mix(in srgb, var(--ink) 14%, transparent);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s11: 88px;
  --gutter: 24px; --top: 104px; --pill-h: 72px; --pill-bottom: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  caret-color: var(--ink);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11' 1, 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  background: var(--ground); color: var(--ink);
  position: relative; text-align: center;
}
body.app { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: 0; outline: 0; text-align: left; }
input::placeholder, textarea::placeholder { color: var(--muted); }
svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
[hidden], [data-hide] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.top { position: absolute; left: var(--gutter); right: var(--gutter); top: 56px; height: 32px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .16em; }
.brand .mark { width: 28px; height: 28px; }
.signin, .spacebtn { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.spacebtn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the stage: centred on both axes, between the header and the pill ---------- */
.stage { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--top); bottom: calc(var(--pill-bottom) + var(--pill-h) + var(--s3)); display: flex; flex-direction: column; align-items: center; overflow: hidden auto; }
.stage > .col { margin-top: auto; margin-bottom: auto; flex: none; }
.col { display: flex; flex-direction: column; align-items: center; width: 100%; }

.bigmark { display: none; width: 96px; height: 96px; margin-bottom: var(--s3); }
.bigmark svg { width: 100%; height: 100%; overflow: visible; }
.piece { opacity: 0; }
.working .bigmark { display: block; width: 96px; height: 96px; }
.working .piece { opacity: 1; animation: lift 1.6s ease-in-out infinite alternate; }
@keyframes lift { from { transform: translate(10px, -10px); } to { transform: translate(22px, -22px); } }
.line { font-size: 44px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.working .line { font-size: 34px; }
.from { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: var(--s2); }
.sub { font-size: 14px; color: var(--muted); margin-top: var(--s2); max-width: 420px; line-height: 1.4; }

.btn { height: 56px; padding: 0 var(--s3); border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.btn.alt { background: var(--tint); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.round { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; flex: none; }
.round[aria-pressed="true"] { background: var(--ink); }
.round svg { width: 22px; height: 22px; fill: var(--ink); }
.round[aria-pressed="true"] svg { fill: var(--ground); }
.actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--s1); }
.textbtn { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: var(--s1); }

/* ---------- result ---------- */
.numbers { display: flex; flex-direction: column; align-items: center; gap: var(--s1); margin-bottom: var(--s2); }
.n { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.v { font-size: 152px; font-weight: 500; letter-spacing: -.03em; line-height: .8; }
.u { font-size: 13px; font-weight: 400; color: var(--muted); }
.recipe { font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; max-width: 320px; margin-bottom: var(--s2); }

/* ---------- taste ---------- */
.taste .line.big { font-size: 52px; margin-bottom: var(--s2); }
.avg { font-size: 14px; color: var(--muted); margin-bottom: var(--s3); max-width: 420px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); max-width: 640px; margin-bottom: var(--s3); }
.chip { padding: 10px 16px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 600; }
.chip small { font-weight: 500; opacity: .7; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

/* ---------- home: the taste progress meter, one per reel type ---------- */
.home .line { font-size: 44px; margin-bottom: var(--s3); }
.meters { display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: 100%; margin-bottom: var(--s3); }
.meter { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 260px; }
.meter .mn { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.meter .mn small { font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.track { width: 100%; height: 12px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 999px; background: var(--ink); min-width: 12px; }

/* ---------- create: topic, style, voice, make ---------- */
.create .line { font-size: 40px; margin-bottom: var(--s3); }
.create textarea { width: 100%; max-width: 560px; min-height: 160px; resize: none; background: var(--field); border-radius: 28px; padding: var(--s3); font-size: 17px; line-height: 1.45; }
.choices { display: flex; flex-direction: column; gap: var(--s1); width: 100%; max-width: 560px; }
.choice { width: 100%; padding: 16px 24px; border-radius: 28px; background: var(--field); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.choice b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.choice span { font-size: 14px; color: var(--muted); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.choice[aria-pressed="true"] span { color: color-mix(in srgb, var(--ground) 70%, transparent); }
.summary { width: 100%; max-width: 560px; list-style: none; }
.summary li { display: flex; justify-content: space-between; gap: var(--s2); padding: 14px 0; border-top: 1px solid var(--hair); font-size: 16px; text-align: left; }
.summary li:last-child { border-bottom: 1px solid var(--hair); }
.summary li span:first-child { color: var(--muted); }
.summary li span:last-child { font-weight: 600; text-align: right; }
.cstep { display: flex; flex-direction: column; align-items: center; width: 100%; }

/* ---------- done: the video, Share to Instagram, one small row, the song's two numbers ---------- */
.done { gap: var(--s2); }
.d-video { height: 264px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #161616; flex: none; }
.d-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-song { background: var(--field); border-radius: 28px; padding: 12px var(--s3); width: 100%; max-width: 320px; }
.d-song .st { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.d-song .st small { font-weight: 500; color: var(--muted); font-size: 15px; }
.d-song .when { display: flex; justify-content: center; gap: var(--s4); margin-top: 6px; }
.d-song .when div { display: flex; flex-direction: column; align-items: center; }
.d-song .when b { font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.d-song .when span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.d-side { display: flex; flex-direction: column; align-items: center; gap: var(--s1); width: 100%; max-width: 420px; }
.smallrow { display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.smallrow a, .smallrow button { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 8px 6px; white-space: nowrap; }

/* ---------- the pill: the same place in every state ---------- */
.paste { position: absolute; left: 50%; bottom: var(--pill-bottom); width: calc(100% - 2 * var(--gutter)); max-width: 720px; height: var(--pill-h); transform: translateX(-50%); background: var(--field); border-radius: 999px; overflow: hidden; display: flex; align-items: center; padding: 0 var(--s1) 0 var(--s3); z-index: 2; }
.paste .field { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; position: relative; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paste .measuring { color: var(--ink); }
.paste .go { flex: none; width: calc(var(--pill-h) - 16px); height: calc(var(--pill-h) - 16px); border-radius: 50%; background: var(--ink); display: grid; place-items: center; position: relative; }
.paste .go svg { width: 24px; height: 24px; fill: none; stroke: var(--ground); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.paste .progress { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--tint); border-radius: 999px; transition: width .6s ease; }
.paste .piece-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); margin-right: 20px; animation: pulse 1.2s ease-in-out infinite alternate; position: relative; }
.paste.action { cursor: pointer; }
.paste.action .field { font-weight: 600; }
.paste .pastebtn { flex: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--tint); margin-right: var(--s1); position: relative; }
@keyframes pulse { from { transform: scale(.7); opacity: .5; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .working .piece, .paste .piece-dot { animation: none; } .paste .progress { transition: none; } }

.msg { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--pill-bottom) + var(--pill-h) + 4px); font-size: 13px; color: var(--ink); z-index: 2; }
.foot { position: absolute; left: 0; right: 0; bottom: 20px; font-size: 12px; color: var(--muted); }
.foot a { text-decoration: underline; text-underline-offset: 3px; margin: 0 6px; }
.foot .links { display: block; margin-top: 4px; }
@media (max-width: 899px) { .foot .links { display: inline; margin: 0 0 0 4px; } } /* one line on a phone, clear of the pill */

/* ---------- sheets: the full recipe and the library, in the same colour family ---------- */
.overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); z-index: 4; }
.sheet { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 5; background: var(--field); padding: 96px var(--gutter) var(--pill-bottom); display: flex; flex-direction: column; align-items: center; overflow-y: auto; }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--hair); margin-bottom: var(--s4); flex: none; }
.sheet .from { margin-bottom: 0; }
.sheet-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; padding: var(--s2) 0; }
.sheet .k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
.sheet .big { font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin-bottom: var(--s4); }
.picks { list-style: none; width: 100%; margin: calc(-1 * var(--s2)) 0 var(--s4); }
.picks li { display: flex; justify-content: center; align-items: baseline; gap: 8px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.picks li:last-child { border-bottom: 1px solid var(--hair); }
.picks .t { font-weight: 600; } .picks .a { color: var(--muted); } .picks .s { font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 8px; }
.sheet .btn.wide { width: 100%; max-width: 720px; height: var(--pill-h); font-size: 17px; flex: none; }
.sheet .basis { font-size: 13px; color: var(--muted); margin-bottom: var(--s3); }
.sheet pre { white-space: pre-wrap; font: inherit; font-size: 14px; text-align: left; max-width: 640px; line-height: 1.45; }
.close { position: absolute; top: 56px; right: var(--gutter); font-size: 15px; font-weight: 600; z-index: 1; padding: 4px 0; }

/* library */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); margin-bottom: var(--s3); flex: none; }
.tabs button { padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.lib { width: 100%; max-width: 640px; list-style: none; }
.lib li { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 14px 0; border-top: 1px solid var(--hair); text-align: left; font-size: 15px; }
.lib li:last-child { border-bottom: 1px solid var(--hair); }
.lib .t { flex: 1; min-width: 0; }
.lib .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib .t small { color: var(--muted); font-size: 13px; }
.lib select { font-size: 13px; font-weight: 600; background: var(--tint); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.lib .mini { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; flex: none; }
.lib .mini[aria-pressed="true"] { background: var(--ink); }
.lib .mini svg { width: 16px; height: 16px; fill: var(--ink); }
.lib .mini[aria-pressed="true"] svg { fill: var(--field); }
.lib .on { font-weight: 700; }
.addspace { display: flex; gap: var(--s1); width: 100%; max-width: 640px; margin: var(--s2) 0; }
.addspace input { flex: 1; min-width: 0; background: var(--tint); border-radius: 999px; padding: 0 var(--s3); height: 48px; font-size: 15px; }
.addspace .btn { height: 48px; font-size: 14px; }
.statline { font-size: 14px; color: var(--muted); margin-bottom: var(--s2); }
.err { background: var(--tint); border-radius: 20px; padding: 12px 20px; font-size: 14px; margin-top: var(--s2); max-width: 480px; }

/* keys, tabs inside the sheet, small extras */
.sheet-body.start { justify-content: flex-start; align-items: stretch; padding-top: 0; }
.lib.keys li { flex-wrap: nowrap; }
.keys .t { flex: 1 1 120px; }
.keyform { display: flex; gap: var(--s1); flex: 1 1 200px; }
.keyform input { flex: 1; min-width: 0; background: var(--tint); border-radius: 999px; padding: 0 var(--s2); height: 40px; font-size: 14px; }
.btn.sm { height: 40px; padding: 0 var(--s2); font-size: 14px; }
.chipk { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--tint); white-space: nowrap; }
.acct { font-size: 13px; color: var(--muted); margin-top: var(--s2); text-align: center; line-height: 1.6; }
.acct + .acct { margin-top: 0; }
.acct .textbtn { margin: 0 8px; }
.lib li { flex-wrap: wrap; }
.lib .t { flex: 1 1 140px; }
.lib a { text-decoration: none; }
.sheet .tabs { align-self: center; }
.cstep .tabs { margin-bottom: var(--s2); }
.sub button.textbtn, .sub a.textbtn { color: var(--ink); padding: 0; }
.statline { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.home .textbtn { margin-top: var(--s1); }
.lib.acct li { border-bottom: 0; }

/* the sign in with Instagram card (Night): avatar, handle, one line, one white button */
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--ground); display: grid; place-items: center; font-size: 22px; font-weight: 600; }
.name { font-size: 17px; font-weight: 600; margin-top: 16px; }
.hero > .btn { margin-top: 28px; width: 100%; max-width: 420px; }
.hero .small { margin-top: 12px; }
.hero .small .textbtn { color: var(--muted); font-size: 14px; }

/* Instagram link code */
.lib.ig { margin-top: var(--s2); }
.lib li.igcode { flex-wrap: wrap; }
.codechip { flex: 1 0 100%; text-align: center; background: var(--tint); border-radius: 20px; padding: 14px var(--s2); font-size: 28px; font-weight: 700; letter-spacing: .24em; text-indent: .24em; font-variant-numeric: tabular-nums; user-select: all; }

/* ---------- plain pages: pricing, terms, privacy ---------- */
body.doc { text-align: left; overflow: auto; height: auto; min-height: 100%; }
body.doc header { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 0; display: flex; justify-content: space-between; align-items: center; }
body.doc main { max-width: 720px; margin: 0 auto; padding: var(--s5) var(--gutter); }
body.doc h1 { font-size: 44px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin-bottom: var(--s3); }
body.doc h2 { font-size: 20px; margin: var(--s4) 0 var(--s1); letter-spacing: -.015em; }
body.doc p, body.doc li { margin-bottom: var(--s1); line-height: 1.5; }
body.doc ul, body.doc ol { padding-left: 20px; }
body.doc footer { max-width: 720px; margin: 0 auto; padding: var(--s3) var(--gutter) var(--s6); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
body.doc footer a { text-decoration: underline; text-underline-offset: 3px; margin-left: 12px; }
body.doc .plans { display: grid; gap: var(--s2); margin-top: var(--s3); }
body.doc .plan { background: var(--field); border-radius: 28px; padding: var(--s3); }
body.doc .plan.pro { background: var(--ink); color: var(--ground); }

/* ---------- Night, desktop (900 px and up) ---------- */
@media (min-width: 900px) {
  :root { --gutter: 48px; --top: 112px; --pill-h: 60px; --pill-bottom: 64px; }
  .top { top: 24px; height: 56px; }
  .brand { font-size: 16px; } .brand .mark { width: 24px; height: 24px; }
  .signin, .spacebtn { font-size: 15px; }
  .working .bigmark { width: 128px; height: 128px; }
  .line, .home .line { font-size: 48px; } .working .line { font-size: 36px; }
  .home .line { margin-bottom: var(--s3); }
  .sub { font-size: 18px; max-width: 34ch; margin-top: 18px; }
  .from { font-size: 14px; margin-bottom: var(--s3); }
  .numbers { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 640px; gap: 0; justify-items: center; margin-bottom: var(--s4); }
  .n { gap: 8px; }
  .v { font-size: 64px; letter-spacing: -.03em; line-height: 1; }
  .u { font-size: 14px; }
  .recipe { font-size: 22px; max-width: 28ch; margin-bottom: var(--s4); }
  .btn { height: 56px; padding: 0 var(--s4); font-size: 16px; }
  .round { width: 56px; height: 56px; } .round svg { width: 22px; height: 22px; }
  .taste .line.big { font-size: 56px; margin-bottom: var(--s2); }
  .avg { font-size: 16px; margin-bottom: var(--s4); }
  .meters { flex-direction: row; justify-content: center; align-items: flex-start; gap: var(--s6); max-width: 1000px; margin-bottom: var(--s5); }
  .meter { max-width: 220px; } .meter .mn { font-size: 16px; }
  .create .line { font-size: 44px; margin-bottom: var(--s3); }
  .choices { flex-direction: row; max-width: 720px; } .choice { flex: 1; padding: 24px; }
  .create textarea { min-height: 180px; font-size: 17px; }
  .done { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s6); max-width: 1000px; }
  .d-video { height: 420px; }
  .d-song { justify-self: end; width: 320px; max-width: none; } .d-side { justify-self: start; width: 320px; max-width: none; }
  .paste { padding-left: var(--s3); } .paste .field { font-size: 17px; }
  .foot { bottom: 28px; font-size: 14px; }
  .sheet { left: 50%; right: auto; width: 640px; margin-left: -320px; top: 40px; border-radius: 28px 28px 0 0; padding: 24px 56px 56px; }
  .sheet .big { font-size: 26px; }
  .picks li { font-size: 16px; padding: 14px 0; }
  .close { right: 56px; }
}

/* ---------- Night, phone (under 900 px): headline 30, body 15 to 16, the input 54, gutters 24, safe areas respected ---------- */
@media (max-width: 899px) {
  :root { --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
          --gutter: 24px; --top: calc(var(--safe-t) + 64px); --pill-h: 54px; --pill-bottom: calc(var(--safe-b) + 36px); }
  html[data-mock] { --safe-t: 54px; --safe-b: 34px; }  /* the stills draw an iPhone with a status bar and a home bar */
  @supports (height: 100dvh) { body.app { height: 100dvh; } }
  body.app { overflow-x: hidden; }

  .top { top: var(--safe-t); height: 52px; left: calc(var(--gutter) + var(--safe-l)); right: calc(var(--gutter) + var(--safe-r)); }
  .brand { font-size: 15px; } .brand .mark { width: 22px; height: 22px; }
  .signin, .spacebtn { font-size: 15px; color: var(--muted); }
  .stage { left: calc(var(--gutter) + var(--safe-l)); right: calc(var(--gutter) + var(--safe-r)); bottom: calc(var(--pill-bottom) + var(--pill-h) + var(--s2)); }
  .msg { left: calc(var(--gutter) + var(--safe-l)); right: calc(var(--gutter) + var(--safe-r)); font-size: 13px; }
  .foot { bottom: calc(var(--safe-b) + 10px); }

  .working .bigmark { width: 96px; height: 96px; }
  .line, .home .line { font-size: 30px; line-height: 1.15; }
  .home .line { margin-bottom: var(--s2); }
  .working .line { font-size: 26px; }
  .create .line { font-size: 28px; margin-bottom: var(--s2); }
  .taste .line.big { font-size: 32px; margin-bottom: var(--s1); }
  .sub { font-size: 16px; margin-top: 14px; max-width: 32ch; }
  .avg { font-size: 15px; margin-bottom: var(--s2); }
  .btn { height: 54px; padding: 0 var(--s3); font-size: 16px; }
  .round { width: 54px; height: 54px; background: var(--field); } .round svg { width: 20px; height: 20px; }
  .round[aria-pressed="true"] { background: var(--ink); }
  .textbtn { font-size: 14px; }

  .numbers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; max-width: 360px; gap: 4px; margin-bottom: var(--s3); }
  .n { gap: 4px; }
  .v { font-size: 32px; line-height: 1; letter-spacing: -.02em; }
  .u { font-size: 13px; line-height: 1.25; text-align: center; }
  .recipe { font-size: 18px; max-width: 28ch; margin-top: var(--s2); margin-bottom: var(--s3); font-weight: 400; letter-spacing: -.01em; }

  .chip { padding: 8px 14px; font-size: 13px; }
  .meters { gap: 12px; margin-bottom: var(--s2); }
  .meter .mn { font-size: 15px; } .track { height: 8px; }

  .create textarea { min-height: 120px; padding: var(--s2) var(--s3); font-size: 16px; border-radius: 24px; }
  .choice { padding: 14px 20px; border-radius: 24px; } .choice b { font-size: 17px; font-weight: 600; } .choice span { font-size: 14px; }
  .summary li { font-size: 15px; padding: 12px 0; }
  .tabs { margin-bottom: var(--s2); } .cstep .tabs { margin-bottom: var(--s2); }

  .done { gap: 12px; }
  .d-video { height: min(264px, 30vh); border-radius: 24px; }
  .d-song { padding: 10px var(--s3); max-width: 300px; border-radius: 24px; }
  .d-song .st { font-size: 15px; } .d-song .when b { font-size: 24px; font-weight: 500; }

  .paste { width: calc(100% - 2 * var(--gutter) - var(--safe-l) - var(--safe-r)); padding: 0 7px 0 20px; }
  .paste .field { font-size: 16px; }
  .paste .go svg { width: 20px; height: 20px; }
  .paste .pastebtn { font-size: 13px; padding: 6px 12px; }
  .paste .piece-dot { width: 12px; height: 12px; margin-right: 16px; }

  .sheet { padding: calc(var(--safe-t) + 56px) calc(var(--gutter) + var(--safe-r)) calc(var(--safe-b) + 24px) calc(var(--gutter) + var(--safe-l)); }
  .close { top: calc(var(--safe-t) + 18px); right: calc(var(--gutter) + var(--safe-r)); }
  .grab { margin-bottom: var(--s2); }
  .sheet .big { font-size: 22px; margin-bottom: var(--s3); }
  .sheet .btn.wide { height: var(--pill-h); font-size: 16px; }
  .tabs button { padding: 8px 14px; font-size: 13px; }
  .lib li { padding: 12px 0; font-size: 15px; gap: 12px; }
  .lib .mini { width: 32px; height: 32px; }
  .lib select { font-size: 16px; padding: 6px 10px; }
  .btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
  .keyform input, .addspace input { font-size: 16px; }
  .addspace input, .addspace .btn { height: 44px; }
  .codechip { font-size: 24px; padding: 12px var(--s2); }
  .statline { font-size: 14px; }

  body.doc h1 { font-size: 30px; }
  body.doc h2 { font-size: 18px; }
  body.doc { font-size: 15px; }
}

/* ---------- mock chrome, stills only (render.py sets html[data-mock]) ---------- */
.mock-status, .mock-home { display: none; }
html[data-mock] .mock-status { display: flex; justify-content: space-between; align-items: center; position: absolute; left: 34px; right: 28px; top: 14px; height: 24px; font-size: 17px; font-weight: 600; z-index: 9; }
html[data-mock] .mock-icons { fill: currentColor; }
html[data-mock] .mock-home { display: block; position: absolute; left: 50%; bottom: 9px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); z-index: 9; }
