/* Afters · dark club look. PC first, still usable on a tablet. */
:root {
  --bg: #090908; --bg2: #121210; --panel: rgba(20, 20, 18, .9); --line: rgba(236, 235, 228, .1); --line2: rgba(236, 235, 228, .22);
  --ink: #ecebe4; --muted: #9a998f; --faint: #66655d;
  --acid: #b066ff; --pink: #b066ff; --violet: #ecebe4; --blue: #8fb8ff; --cyan: #9fd8ff; --green: #c79bff; --amber: #ffb000; --red: #ff4a2e;
  --deckA: #b066ff; --deckB: #9fd8ff;
  --r: 6px;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: radial-gradient(1200px 700px at 50% -10%, #2a0f4a 0%, transparent 60%), radial-gradient(800px 500px at 100% 100%, rgba(159, 216, 255, .08), transparent 60%), var(--bg); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.bh { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 12px 24px; background: rgba(9, 9, 8, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { display: block; font-size: 12px; letter-spacing: .32em; color: var(--muted); font-weight: 700; }
.brand i { display: block; font-style: normal; font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1; background: linear-gradient(90deg, var(--pink), var(--acid) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-dot { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 30%, var(--acid) 70%, transparent 72%); box-shadow: 0 0 22px var(--acid); }
.bnav { display: flex; gap: 6px; flex: 1; }
.bnav a { padding: 8px 12px; border-radius: var(--r); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.bnav a[aria-current="page"] { background: rgba(var(--uv), .18); color: var(--ink); }
.conn { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.conn .led { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.conn.ready .led { background: var(--green); box-shadow: 0 0 10px var(--green); }
.conn.connecting .led { background: var(--amber); }
.conn.missing .led, .conn.busy .led, .conn.denied .led, .conn.unsupported .led { background: var(--red); box-shadow: 0 0 10px var(--red); }

.screen { max-width: 1440px; margin: 0 auto; padding: 22px 24px 60px; }
h1 { font-size: 30px; margin: 0 0 4px; letter-spacing: -.02em; }
h2 { font-size: 20px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.bbtn { border: 1px solid var(--line2); background: rgba(var(--uv), .14); border-radius: var(--r); padding: 10px 16px; font-weight: 650; }
.bbtn:hover { background: rgba(var(--uv), .26); }
.bbtn.primary { border: 0; background: var(--acid); color: #0a0a08; }
.bbtn.sm { padding: 6px 12px; font-size: 13px; border-radius: 4px; }
.bbtn.ghost { background: transparent; }
a.bbtn { color: var(--ink); text-decoration: none; display: inline-block; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .07); color: var(--muted); }
.tag.ok { background: rgba(var(--uv), .15); color: var(--green); }
.tag.warn { background: rgba(255, 176, 0, .15); color: var(--amber); }
.tag.bad { background: rgba(255, 74, 46, .15); color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }

/* menu */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mode { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 18px; min-height: 140px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.mode::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; background: radial-gradient(circle, rgba(var(--uv), .18), transparent 70%); }
.mode b { font-size: 18px; }
.mode:not(:disabled):hover { border-color: var(--line2); }
.mode.star { border-color: rgba(159, 216, 255, .5); }

/* controller test */
.ctl-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.progress { min-width: 260px; }
.progress .bar { height: 8px; border-radius: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 6px; }
.progress .bar i { display: block; height: 100%; background: var(--acid); transition: width .3s; }
.learnbar { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--r); background: rgba(255, 176, 0, .12); border: 1px solid rgba(255, 176, 0, .5); color: var(--amber); font-weight: 650; display: flex; align-items: center; gap: 12px; }
.diagram { width: 100%; height: auto; display: block; background: linear-gradient(180deg, #151513, #0c0c0b); border: 1px solid var(--line); border-radius: var(--r); }
.diagram .c { cursor: pointer; }
.diagram .c .shape { fill: var(--bg2); stroke: #3a3a34; stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.diagram .c.ok .shape { stroke: rgba(var(--uv), .75); }
.diagram .c.hit .shape { fill: #33332d; stroke: #fff; }
.diagram .c.analog .shape { stroke-dasharray: 3 3; opacity: .55; }
.diagram .c.lit .shape { fill: var(--pink); }
.diagram .deckA .c.hit .shape { filter: drop-shadow(0 0 8px var(--deckA)); }
.diagram .deckB .c.hit .shape { filter: drop-shadow(0 0 8px var(--deckB)); }
.diagram .ind { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.diagram .cap { fill: #d9cdf2; }
.diagram text { fill: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.diagram text.big { font-size: 13px; fill: var(--ink); }
.diagram .glight { fill: #241838; stroke: #3a3a34; }
.diagram .glight.on { fill: var(--amber); filter: drop-shadow(0 0 6px var(--amber)); }
.ctl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; margin-top: 16px; align-items: start; }
.log { height: 300px; overflow: auto; font-size: 12.5px; }
.log div { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.log .hx { color: var(--muted); width: 70px; flex: none; }
.log .nm { color: var(--ink); }
.log .unk { color: var(--amber); }
.checklist { max-height: 560px; overflow: auto; }
.checklist .grp { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 12px 0 4px; font-weight: 700; }
.checklist .it { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: var(--r); font-size: 13px; }
.checklist .it:hover { background: rgba(255, 255, 255, .04); }
.checklist .it .st { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); flex: none; display: grid; place-items: center; font-size: 12px; }
.checklist .it.ok .st { border-color: var(--green); background: var(--green); color: #0a0a08; }
.checklist .it.analog .st { border-style: dashed; }
.checklist .it .val { font-size: 12px; color: var(--muted); width: 54px; text-align: right; }
.leds .it { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 13px; }
.keys { columns: 2; font-size: 13px; }
.keys div { break-inside: avoid; padding: 2px 0; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line2); font: 600 12px ui-monospace, Consolas, monospace; text-align: center; }
details.panel > summary { cursor: pointer; font-weight: 700; }
.alert { padding: 14px 16px; border-radius: var(--r); border: 1px solid rgba(255, 74, 46, .5); background: rgba(255, 74, 46, .1); color: var(--ink); margin-bottom: 14px; }

.btoast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .25s; background: var(--bg2); border: 1px solid var(--line2); padding: 10px 16px; border-radius: var(--r); z-index: 50; pointer-events: none; }
.btoast.on { opacity: 1; transform: translateX(-50%); }
/* feature/headphone-ways: a toast with a link (HEADPHONE CUE's "Sound check: 30 seconds.") takes the pointer, in the free slot booth.js places it in */
.btoast.act.on, body.decks-on .btoast.act.on { pointer-events: auto; }
.btoast .toast-act { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* perf/decode-no-stall: another Afters tab has the controller (booth-midi.js TabLock); click to take it here */
.tab-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--bg2); border: 1px solid var(--acid, var(--acid)); color: var(--fg, #eee); padding: 8px 16px; border-radius: var(--r); font-size: 13px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); }
.tab-note[hidden] { display: none; }

@media (max-width: 1000px) { .ctl-grid { grid-template-columns: 1fr; } .bh { flex-wrap: wrap; padding: 10px 16px; } .screen { padding: 16px; } .bnav { order: 3; flex-basis: 100%; overflow-x: auto; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- playing ---------- */
.bbtn.on { background: var(--acid); border-color: transparent; color: #0a0a08; }
.deckB .bbtn.on { background: var(--deckB); border-color: var(--deckB); color: #0a0a08; }
.note { padding: 12px 16px; border-radius: var(--r); background: rgba(236, 235, 228, .04); border: 1px solid var(--line2); margin-bottom: 12px; font-size: 14px; }
.note .bar, .meter { height: 6px; border-radius: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.note .bar i, .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--amber) 80%, var(--red)); }
.startbox { text-align: center; padding: 30px; margin-bottom: 16px; }
.guide { min-height: 22px; text-align: center; font-weight: 700; color: var(--acid); letter-spacing: .02em; margin-bottom: 6px; }
.wfs { display: grid; gap: 6px; margin-bottom: 14px; }
.wf { width: 100%; height: 118px; display: block; border-radius: var(--r); border: 1px solid var(--line); background: #070706; }
.decks3 { display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.deckp { display: grid; gap: 12px; }
.dk { font-size: 12px; font-weight: 800; letter-spacing: .2em; padding: 3px 8px; border-radius: 6px; background: rgba(176, 102, 255, .18); color: var(--pink); }
.deckB .dk { background: rgba(159, 216, 255, .14); color: var(--cyan); }
.ttl { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dstats { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.dstats .big { font-size: 30px; font-weight: 800; color: var(--ink); }
.dbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tbtn { padding: 14px 10px; font-size: 15px; }
.slider { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--pink); }
.deckB input[type=range] { accent-color: var(--cyan); }
.hot { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.hc { aspect-ratio: 1.3; border-radius: var(--r); border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-weight: 700; }
.hc.set { background: var(--acid); color: #0a0a08; border-color: transparent; }
.deckB .hc.set { background: var(--cyan); color: #0a0a08; }
.hc.set.sug { opacity: .55; outline: 1px dashed currentColor; outline-offset: -3px; }   /* [sound/jog-and-spinback] a suggested cue: the deck's colour, lighter (Design may restyle it) */
.row.wrap { flex-wrap: wrap; }
.mixer { display: grid; gap: 10px; }
.mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mcol { display: grid; gap: 6px; justify-items: stretch; }
.kn { display: grid; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.vf { display: grid; justify-items: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
input.vert { writing-mode: vertical-lr; direction: rtl; width: 34px; height: 150px; }
.mcol .meter { height: 70px; width: 8px; justify-self: center; margin: 0; display: flex; align-items: flex-end; }
.mcol .meter i { width: 100%; height: 0; background: linear-gradient(0deg, var(--green), var(--amber) 80%, var(--red)); }
.meter.wide { height: 8px; }
/* fix/echo-timing part 4: the level meters move by transform (their size never changes, so nothing around them is laid
   out again each frame), and the master readout keeps one width as its digits change */
.mcol .meter i { height: 100%; transform: scaleY(0); transform-origin: 50% 100%; }
#lvM { width: 100%; transform: scaleX(0); transform-origin: 0 50%; }
#mdb { display: inline-block; min-width: 8ch; text-align: right; }
.pfl { font-size: 12px; }
.browser { margin-top: 14px; }
.browser input[type=search], .panel input[type=search], .panel select { background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); color: var(--ink); border-radius: var(--r); padding: 8px 10px; font: inherit; }
.panel select option { background: var(--bg2); }
.tracks { max-height: 320px; overflow: auto; margin-top: 8px; }
.tracks.full { max-height: none; }
.trk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); cursor: pointer; font-size: 14px; }
.trk:hover { background: rgba(255, 255, 255, .04); }
.trk.on { background: rgba(var(--uv), .2); outline: 1px solid rgba(var(--uv), .5); }
.trk .tb { width: 64px; text-align: right; } .trk .tk { width: 80px; color: var(--amber); } .trk .tg { width: 100px; color: var(--muted); } .trk .tl { width: 46px; color: var(--muted); }
.trk .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gridpanel { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(980px, calc(100% - 32px)); z-index: 20; display: grid; gap: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); background: var(--bg2); }
.filebtn { cursor: pointer; }
.radio { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.radio.dis { opacity: .55; }
.panel + .panel, .panel + section { margin-top: 14px; }
@media (max-width: 999px) { .decks3 { grid-template-columns: 1fr; } }
.hc { font-size: 13px; padding: 2px; overflow: hidden; }
.hc.small { font-size: 12px; line-height: 1.15; }
.pm { gap: 4px; }
.pm .bbtn { padding: 5px 9px; font-size: 12px; }
.loops { gap: 6px; }
.loops .mono { min-width: 92px; text-align: center; color: var(--green); }
.trk .tmx { width: 150px; display: flex; justify-content: flex-end; }

/* ---------- game ---------- */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); }
.club { width: 100%; height: 96px; display: block; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 12px; background: #05020b; }
.freebar { margin-bottom: 10px; }
.recbar { display: inline-flex; align-items: center; gap: 8px; }
.bbtn.rec { background: var(--red); border-color: transparent; color: #fff; animation: recpulse 1.2s infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 22px rgba(255, 74, 46, .7); } }
.hud { margin-bottom: 12px; display: grid; gap: 10px; border-color: rgba(var(--uv), .35); }
.hud-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hud-top h2 { margin: 2px 0 0; }
.hud-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.step { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; min-height: 56px; }
.step.pop { animation: pop .35s ease-out; }
@keyframes pop { from { transform: translateY(6px); opacity: .3; } }
.hud-sub { color: var(--muted); margin-top: 6px; min-height: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hud-sub .said { color: var(--green); font-weight: 650; }
.hud-sub .said.said-missed { color: var(--amber); }   /* "Missed it: here it comes again." (BoothCoach.saidHtml): Design's hook, apart from .said-hit */
.count { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: var(--r); background: var(--acid); color: #0a0a08; font-size: 24px; font-weight: 900;  }
.warn { color: var(--amber); font-weight: 700; min-height: 20px; }
.lanes-wrap { margin-top: 8px; }
.lanes { width: 100%; height: 190px; display: block; border-radius: var(--r); background: #070706; border: 1px solid var(--line); }
.hud-dia .diagram.mini { border-radius: var(--r); }
.diagram.mini text { display: none; }
.diagram .c.focus .shape { stroke: var(--amber); stroke-width: 6; fill: rgba(255, 176, 0, .35); animation: focuspulse 0.9s infinite; }
@keyframes focuspulse { 50% { fill: rgba(255, 176, 0, .7); } }
.result { margin-top: 16px; display: grid; gap: 14px; border-color: rgba(159, 216, 255, .4); }
.res-head { display: flex; gap: 16px; align-items: center; }
.res-head h2 { margin: 2px 0 0; }
.grade { width: 72px; height: 72px; border-radius: var(--r); display: grid; place-items: center; font-size: 40px; font-weight: 900; background: var(--bg2); }
.grade.gC { background: rgba(255, 176, 0, .15); color: var(--amber); }
.grade.gD { background: rgba(255, 74, 46, .15); color: var(--red); }
.res-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.res-scores > div { background: rgba(255, 255, 255, .04); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.res-scores b { color: var(--ink); font-size: 18px; font-family: var(--mono); }
.sbar { display: block; height: 6px; border-radius: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sbar i { display: block; height: 100%; background: var(--acid); }
.notes { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.notes li { line-height: 1.4; }
.notes.good li { color: var(--green); }
.replay { display: grid; gap: 6px; }
.replaycv { width: 100%; height: 220px; background: #070706; border-radius: var(--r); border: 1px solid var(--line); }
#scrub { width: 100%; }
.mixrow { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mixrow audio { display: block; width: 100%; margin-top: 6px; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { display: grid; gap: 2px; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.stat b { font-size: 28px; font-family: var(--mono); }
.stat i { font-style: normal; font-size: 13px; color: var(--muted); }
.techrow { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.techrow .sbar { width: 160px; }
.spark { width: 100%; height: 80px; display: block; }
.sect { margin: 22px 0 10px; color: var(--muted); font-size: 13px; font-family: var(--mono); letter-spacing: .04em; text-transform: lowercase; }
.setlist { display: grid; gap: 8px; }
.pickn { width: 22px; height: 22px; border-radius: 3px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: rgba(255, 255, 255, .06); }
.trk.on .pickn { background: var(--acid); color: #0a0a08; }
@media (max-width: 999px) { .hud-main { grid-template-columns: 1fr; } .res-scores, .statgrid { grid-template-columns: repeat(2, 1fr); } }
.diagram.mini .c .shape { fill: #1d1d1a; stroke: #3a3a34; }
.diagram.mini .c.focus .shape { stroke: var(--amber); stroke-width: 8; fill: rgba(255, 176, 0, .55); }

/* ---------- Advanced Academy ---------- */
.mode.locked { opacity: .45; }
.mode.locked:hover { border-color: var(--line); box-shadow: none; }
.ac-tools { padding: 14px 16px; margin-bottom: 8px; }
.ac-feed { min-height: 22px; font-size: 14px; margin-top: 6px; }
.ac-feed div:first-child { font-weight: 650; }
.ac-feed div + div { opacity: .6; }
.ac-parts { display: grid; gap: 6px; margin: 12px 0; }
.ac-part { display: grid; grid-template-columns: 1fr 140px 36px; align-items: center; gap: 10px; font-size: 14px; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-table th, .ac-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line); }
.ac-table th { color: var(--muted); font-weight: 600; }
.ac-live { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 10px; border: 1px solid var(--pink); border-radius: var(--r); background: rgba(var(--uv), .1); }
.ac-live[hidden] { display: none; }   /* (Live challenges off: Free mix's screen is patched in place now, so the box stays and must hide) */
.ac-live .ac-left { font-size: 20px; font-weight: 800; color: var(--amber); }
.ac-pads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ac-pad { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.ac-pad.half { border-color: var(--amber); }
.ac-pad.ok { border-color: var(--acid); background: rgba(var(--uv), .08); }
@media (max-width: 700px) { .ac-part { grid-template-columns: 1fr 80px 32px; } .ac-table { font-size: 13px; } }
.hud .step { max-width: 70ch; }
.ac-gear { margin: 10px 0; }
/* results dock over the decks instead of appearing at the bottom of the page (no jump) */
#resultSlot:not(:empty) { position: fixed; z-index: 40; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); max-height: min(62vh, 560px); overflow: auto; overscroll-behavior: contain; border-radius: var(--r); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); animation: resIn .18s ease-out; }
#resultSlot .result { margin-top: 0; }
@keyframes resIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { #resultSlot:not(:empty) { animation: none; } }
/* Next track */
.mode.sel { text-align: left; gap: 4px; }
.mode.sel.right { outline: 2px solid var(--green, var(--acid)); }
.mode.sel.wrong { outline: 2px solid var(--red); }
.mode.sel.dim { opacity: .75; }
.mode.sel .good { color: var(--green, var(--acid)); } .mode.sel .warn { color: var(--amber); }

/* moving in, backup */
.ok-line { color: var(--acid); }
.bad-line { color: var(--red); }

/* the Tracks panel and picker (booth-picker.js) */
body.tp-open { overflow: hidden; }
.tp-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(9, 9, 8, .78); backdrop-filter: blur(6px); overflow: auto; }
.tp { width: min(760px, 100%); background: var(--bg2); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.tp h2 { margin: 0; }
.tp h4 { margin: 14px 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tp-src { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.tp-opt { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; }
.tp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tp-opt.on { background: rgba(var(--uv), .2); border-color: var(--acid); }
.tp-opt.off { opacity: .55; cursor: not-allowed; }
.tp-opt:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tp-slots { display: flex; flex-direction: column; gap: 8px; }
.tp-slot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.tp-slot.on { border-color: var(--acid); }
.tp-deck { font-weight: 800; width: 64px; color: var(--muted); font-size: 13px; }
.tp-pick { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.tp-pick .trk { cursor: default; flex-wrap: wrap; }
.tp-no summary { cursor: pointer; margin-top: 12px; color: var(--muted); }
.tp-go { margin-top: 16px; }
.tp .warn, .lib-detail .warn { color: var(--amber); } .tp .good { color: var(--green); }
.tag.bundled { background: rgba(159, 216, 255, .14); color: var(--cyan); }
.tag.warnt { background: rgba(255, 176, 0, .15); color: var(--amber); }
.tp-pick .row b { white-space: nowrap; }
/* fix/main-red-dec2: a control's name in Recordings' intro never breaks over two lines ("Listen back" split at the line's end: its box ran
   from the next line's start to this one's end, over "● Record this mix": design-check's layout guard, every size) */
.rec-intro b { white-space: nowrap; }
@media (max-width: 600px) { .tp-src { grid-template-columns: 1fr; } .tp-wrap { padding-top: 16px; } .tp-pick .trk .tn { flex-basis: 100%; white-space: normal; } .tp-pick .trk .mono { flex: 1; } .tp-pick .row input[type="search"] { flex-basis: 100%; } }

/* library: analysis confidence, details, sections, drag and drop */
.sure { font-size: 12px; vertical-align: middle; }
.sure.c-sure { color: var(--green); } .sure.c-fairly-sure { color: var(--amber); } .sure.c-unsure { color: var(--red); } .sure.mine { color: var(--cyan); font-size: 12px; }
.trk .tb { width: 78px; } .trk .tk { width: 96px; }
.lib-detail { margin: 2px 0 10px 10px; display: flex; flex-direction: column; gap: 8px; background: rgba(18, 18, 16, .9); }
.lib-detail input[type="number"] { width: 96px; }
.lib-detail .row { gap: 8px; }
.ld-k { display: inline-block; width: 70px; font-size: 13px; }
.secstrip { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 6px 0 4px; background: rgba(255, 255, 255, .05); }
.secstrip i { display: block; height: 100%; }
.sec-intro { background: var(--cyan); } .sec-build { background: var(--amber); } .sec-main { background: var(--muted); } .sec-breakdown { background: var(--amber); } .sec-drop { background: var(--acid); } .sec-outro { background: var(--cyan); }
.secname { padding: 0 6px; border-radius: 6px; color: #0a0a08; font-weight: 700; font-size: 12px; }
body.dropping::after { content: 'Drop audio files to add them to your library'; position: fixed; inset: 12px; z-index: 60; display: flex; align-items: center; justify-content: center; border: 3px dashed var(--cyan); border-radius: var(--r); background: rgba(9, 9, 8, .82); color: var(--ink); font-size: 22px; font-weight: 800; pointer-events: none; }
.credit { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-left: 3px solid var(--acid); background: rgba(236, 235, 228, .03); border-radius: var(--r); margin: 4px 0 8px; }
.credit p { margin: 2px 0; }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.credits .credit { border: 0; background: none; padding: 0; margin: 0; }
/* manual beatmatching: intro and live meter */
.bm-intro { margin-bottom: 14px; }
.bm-intro p { margin: 0 0 8px; }
.bm-drift { width: 100%; max-width: 420px; height: auto; display: block; margin: 4px 0 10px; }
.bm-meter { margin-top: 8px; display: grid; gap: 6px; }
.bm-bpm b { font-size: 1.2em; margin-left: 6px; }
.bm-phase { display: flex; align-items: center; gap: 8px; font-size: .85em; color: var(--muted); }
.bm-track { position: relative; flex: 1; height: 14px; border-radius: 7px; background: #070706; border: 1px solid var(--line); }
.bm-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.35); }
.bm-needle { position: absolute; top: -3px; width: 6px; height: 18px; margin-left: -3px; border-radius: 3px; background: var(--acid); transition: left .08s linear; }
.bm-needle.ok { background: var(--ink); }
.bm-lock { font-weight: 600; }
.bm-lock.on { color: var(--acid); }
/* Load track picker */
.picker-back { position: fixed; inset: 0; background: rgba(9, 9, 8, .7); z-index: 50; }
.picker { position: fixed; z-index: 51; left: 50%; top: 6vh; transform: translateX(-50%); width: min(920px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; }
.pk-filters { gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.pk-filters input[type=number] { width: 64px; }
.pk-list { max-height: 56vh; }
.trk .te { width: 70px; color: var(--pink); letter-spacing: 1px; font-size: 12px; }
@media (max-width: 640px) { .trk .tg, .trk .te, .trk .tl { display: none; } }
/* hip hop: the phrase counter (4-bar phrases, 8-bar sections) */
.hh-phrase { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.hh-phrase i { font-style: normal; font-size: 12px; min-width: 28px; text-align: center; padding: 4px 0; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.hh-phrase i.past { background: rgba(255, 255, 255, .06); }
.hh-phrase i.end { border-right-width: 3px; }
.hh-phrase i.target { outline: 2px solid var(--ink); outline-offset: 1px; color: var(--ink); }
/* the coach: one step at a time, a why, the physical control, glossary terms, Hear it */
.coach-step { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.coach-k { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.coach-ctl { color: var(--ink); }
.coach-why { color: var(--muted); }
.coach-focus { color: var(--amber); }
.coach-nav { gap: 8px; align-items: center; margin-top: 2px; }
.coach-count { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.bbtn.hear { border-color: var(--green); }
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; border-bottom: 2px dotted var(--cyan); cursor: help; }
.term.new { border-bottom-style: solid; border-bottom-color: var(--amber); }
.term.new::after { content: 'new'; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-left: 3px; vertical-align: super; }
.term-tip { position: absolute; z-index: 60; max-width: 290px; padding: 10px 12px; border-radius: var(--r); background: #0a0a08; border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 14px; line-height: 1.4; }
.term-tip b { color: var(--cyan); margin-right: 4px; }
/* "What's this?" (feature/first-mix-moment): one sentence on hover or tap over any control (BoothCoach.whatIs). Hook for Design: .what-tip[data-place=below|above|right|left] */
.what-tip { position: absolute; z-index: 61; max-width: 300px; padding: 7px 10px; border-radius: var(--r); background: #0a0a08; border: 1px solid var(--line2); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); font-size: 13px; line-height: 1.35; color: var(--ink); pointer-events: none; }
.hear-box:not(:empty) { position: fixed; z-index: 45; left: 50%; top: 76px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: var(--r); background: #0a0a08; border: 1px solid var(--green); font-size: 14px; }
.hear-box b { color: var(--green); }
.coach-card { display: grid; gap: 10px; }
/* the progression on every card (feature/first-mix-moment): points, the level bar, New best, Level up. Hooks: .coach-xp(.up), .xp-gain, .xp-level, .xp-up, .xp-bar, .coach-best */
.coach-xp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.coach-xp .xp-gain { font-size: 22px; color: var(--acid); }
.coach-best { color: var(--acid); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.xp-bar { flex: 1 1 140px; height: 6px; background: rgba(236, 235, 228, .08); position: relative; }
.xp-bar i { display: block; height: 100%; background: var(--acid); box-shadow: none; transition: width .8s ease-out; }
.xp-up { font-weight: 800; }
.coach-xp.up .xp-bar i { background: var(--ink); }
.coach-card p { margin: 0; font-size: 15px; }
.coach-good { color: var(--green); }
.coach-fix { color: var(--ink); }
.coach-replay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 32px; }
.coach-replay audio { max-width: 100%; height: 32px; }
.coach-more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.coach-more ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.glossary dt { font-weight: 800; color: var(--cyan); }
.glossary dd { margin: 0; }
@media (max-width: 640px) { .glossary { grid-template-columns: 1fr; } .glossary dd { margin-bottom: 6px; } }
/* Your first mix */
.ft-intro { max-width: 760px; margin: 6vh auto 0; padding: 32px; }
.ft-intro h1 { font-size: 44px; }
.ft-tracks { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.ft-tracks p { margin: 4px 0; }
.ft-why ul { margin: 6px 0; padding-left: 18px; } .ft-why li { margin: 4px 0; }
.ft-why summary { cursor: pointer; color: var(--muted); }
.ft-lead { font-size: 19px; line-height: 1.45; margin: 10px 0 14px; }
.bbtn.big { padding: 14px 28px; font-size: 17px; }
.ft-count { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.ft-beats { display: flex; gap: 6px; }
.ft-beats i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); color: var(--muted); font-weight: 800; }
.ft-beats i.one { border-color: var(--amber); }
.ft-beats i.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ft-beats i.on.one { background: var(--amber); }
.ft-bars { display: flex; gap: 4px; }
.ft-bars span { min-width: 26px; padding: 3px 0; text-align: center; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.ft-bars span.past { background: rgba(255, 255, 255, .06); }
.ft-bars span.now { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 800; }
.ft-bars span.target { outline: 2px solid var(--amber); outline-offset: 1px; }
.ft-win { margin: 14px 0; }
/* the solo go's count-in, the graduation card and Try just the swap (feature/first-mix-moment). Hooks for Design:
   .ft-countin[data-beat] (.wait), .ft-solo (the HUD), .grad-card (.grad-head, .grad-title, .grad-score), .swap-card,
   .swap-hist / .swap-row / .swap-chip (.best, .latest, .gS…), .swap-best, .unlocked (the menu's note), .mode.unlocked-now, .mode.locked */
.ft-countin { display: inline-block; font-size: 64px; font-weight: 900; line-height: 1; color: var(--acid); text-shadow: none; }
.ft-countin.wait { font-size: 26px; color: var(--muted); text-shadow: none; }
.grad-card { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.grad-head { display: grid; gap: 10px; }
.grad-title { font-size: 56px; }
.grad-score .grade { width: 96px; height: 96px; font-size: 56px; }
.grad-score h2 { font-size: 30px; }
.swap-hist { margin-top: 8px; }
.swap-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.swap-chip { display: grid; gap: 2px; min-width: 64px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .04); text-align: center; }
.swap-chip b { font-size: 20px; line-height: 1; }
.swap-chip i { font-style: normal; font-size: 12px; color: var(--muted); }
.swap-chip.best { border-color: var(--acid); box-shadow: none; }
.swap-chip.latest { background: rgba(var(--uv), .12); }
.swap-chip.gD b { color: var(--red); } .swap-chip.gC b { color: var(--amber); } .swap-chip.gS b, .swap-chip.gA b { color: var(--acid); }
.swap-best { color: var(--acid); }
.unlocked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; border-color: var(--acid); background: linear-gradient(90deg, rgba(var(--uv), .16), transparent 60%), var(--panel); }
.mode.unlocked-now { border-color: var(--acid); }
.mode.unlocked-now .tag { position: absolute; top: 12px; right: 12px; }
.ft-big { font-size: 44px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
/* the lights: a glow round the page edges, behind everything (never over text or controls) */
.lights-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.screen { position: relative; z-index: 1; }

/* ===================== Underground: the warehouse look ==============   Late-night warehouse rather than a neon arcade: near-black concrete with a little grain, off-white type
   like a photocopied flyer, one acid accent (electric purple), squarer edges, white-label detail in mono.
   Later rules win, so this block re-skins everything above without touching the layout. */
html, body { font-family: 'Helvetica Neue', Helvetica, Arial, ui-sans-serif, system-ui, sans-serif; }
body {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"),
    radial-gradient(1100px 600px at 50% -15%, #1b1b17 0%, transparent 65%), var(--bg);
}
::selection { background: var(--acid); color: #000; }
a { color: var(--acid); }
:focus-visible { outline: 2px solid var(--acid); }
h1 { font-size: 34px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
h2 { font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
h3 { text-transform: uppercase; letter-spacing: .04em; }
.bh { background: rgba(9, 9, 8, .9); border-bottom: 1px solid var(--line); }
.brand i { background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); letter-spacing: .02em; }
.brand b { color: var(--acid); }
.logo-dot { background: var(--acid); box-shadow: none; border-radius: 2px; width: 18px; height: 18px; }
.bnav a { text-transform: uppercase; font-size: 12px; letter-spacing: .08em; border-radius: 4px; }
.bnav a[aria-current="page"] { background: transparent; color: var(--acid); box-shadow: inset 0 -2px 0 var(--acid); }
.panel, .mode { background: var(--panel); border-color: var(--line); border-radius: var(--r); }
.mode { min-height: 128px; }
.mode b { text-transform: uppercase; letter-spacing: .02em; }
.mode:hover { border-color: var(--line2); }
.mode.star { border-color: rgba(var(--uv), .45); }
.tag { border-radius: 3px; font-family: var(--mono); letter-spacing: .04em; }
.tag.ok { background: rgba(var(--uv), .12); color: var(--acid); }
.eyebrow { color: var(--acid); font-family: var(--mono); letter-spacing: .14em; }
.bbtn { border-radius: 4px; background: rgba(236, 235, 228, .05); border-color: var(--line2); }
.bbtn:hover { background: rgba(236, 235, 228, .1); border-color: var(--ink); }
.bbtn.primary { background: var(--acid); color: #0a0a08; box-shadow: none; border: 0; font-weight: 800; }
.bbtn.primary:hover { background: #c48cff; }
.bbtn.on { background: var(--acid); color: #0a0a08; border-color: var(--acid); }
.hud { border-color: var(--line2); }
.step { font-weight: 800; letter-spacing: -.005em; }
.dk { background: rgba(176, 102, 255, .12); color: var(--acid); border-radius: 3px; font-family: var(--mono); }
.deckB .dk { background: rgba(159, 216, 255, .12); color: var(--cyan); }
.grade { border-radius: 6px; background: #1a1a17; font-family: var(--mono); }
.grade.gS { background: var(--acid); color: #000; box-shadow: none; }
.grade.gA { background: var(--ink); color: #000; }
.grade.gB { background: #2a2a25; color: var(--ink); }
.club { border-radius: var(--r); background: #050505; border-color: var(--line); }
.coach-k { color: var(--faint); font-family: var(--mono); }
.term { border-bottom-color: var(--acid); }
.term-tip, .hear-box:not(:empty) { background: #10100e; border-radius: 6px; }
.term-tip b, .glossary dt { color: var(--acid); }
.ft-beats i.on { background: var(--acid); border-color: var(--acid); color: #000; }
.ft-beats i.one { border-color: var(--ink); }
.ft-beats i.on.one { background: var(--ink); }
.ft-bars span.now { background: var(--acid); border-color: var(--acid); color: #000; }
.ft-bars span.target, .hh-phrase i.target { outline-color: var(--ink); }
.hh-phrase i.now { background: var(--acid); border-color: var(--acid); color: #000; }
.ft-big { text-transform: uppercase; color: var(--acid); }
.ft-intro h1 { font-size: 52px; }
.mono, .count, .coach-count { font-family: var(--mono); }
@media (max-width: 640px) { h1 { font-size: 26px; } .ft-intro h1 { font-size: 36px; } .ft-intro { padding: 20px; } }
.mode::after { background: radial-gradient(circle, rgba(var(--uv), .06), transparent 70%); }
.diagram { background: linear-gradient(180deg, #151513, #0c0c0b); border-radius: 8px; }
.hud-dia .diagram.mini { border-radius: 6px; }
.diagram .c .shape { fill: #1d1d1a; stroke: #3a3a34; }
.diagram .c.hit .shape { fill: #33332d; }
.diagram .cap { fill: #d8d7cf; }
.diagram .glight { fill: #22221e; stroke: #3a3a34; }

/* controller profile calibration (Controller test) */
.calgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; }
.cal { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.cal input[type="range"] { flex: 1; min-width: 100px; }
.cal-k { font-weight: 700; flex-basis: 100%; }
.cal-hint { flex-basis: 100%; font-size: 12px; color: var(--muted); }

/* ===================== Scratch School ===================== */
.sc-bench { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .sc-bench { grid-template-columns: 1fr; } }
.sc-deck { display: grid; gap: 10px; justify-items: center; }
.sc-platter { width: 100%; max-width: 340px; aspect-ratio: 1; touch-action: none; cursor: grab; user-select: none; }
.sc-platter:active { cursor: grabbing; }
.sc-vinyl { fill: #0d0d0c; stroke: var(--line2); stroke-width: 1.5; }
.sc-groove { fill: none; stroke: rgba(236, 235, 228, .07); }
.sc-label { fill: #1c1c19; stroke: var(--line2); }
.sc-sticker { fill: var(--acid); }
.sc-spindle { fill: var(--ink); }
.sc-under { justify-content: center; }
.sc-faderpad { touch-action: none; min-width: 180px; }
.sc-faderpad.on { background: var(--acid); color: #000; border-color: var(--acid); }
.sc-debug { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 13px; }
.sc-debug dt { color: var(--muted); }
.sc-debug dd { margin: 0; }
.sc-cal { margin-bottom: 14px; }
.sc-notewrap { border: 1px solid var(--line); background: #070707; margin: 0 0 10px; }
.sc-notation { display: block; width: 100%; height: clamp(170px, 28vw, 260px); }
.sc-tools { margin-bottom: 12px; align-items: center; }
.sc-sounds { display: grid; gap: 6px; }
.sc-sound { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); }
.sc-sound.on { border-color: var(--acid); }
.sc-practice { display: grid; grid-template-columns: 1fr minmax(220px, 320px); gap: 16px; align-items: center; margin: 10px 0; }
.sc-practice.lh { grid-template-columns: minmax(220px, 320px) 1fr; }
.sc-practice.lh .sc-demo { order: 2; }
@media (max-width: 760px) { .sc-practice, .sc-practice.lh { grid-template-columns: 1fr; } }
.sc-hands { width: 100%; max-width: 460px; display: block; margin: 0 auto; }
.sc-hand { fill: rgba(236, 235, 228, .14); stroke: var(--ink); stroke-width: 1.5; }
.sc-slot { fill: #1c1c19; stroke: var(--line2); }
.sc-knob { fill: var(--ink); }
.sc-cap { fill: var(--muted); font: 600 12px var(--mono); letter-spacing: .08em; }
.sc-count { fill: var(--acid); font-size: 12px; }
.sc-reps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.sc-rep { min-width: 44px; padding: 6px 8px; border: 1px solid var(--line); background: #0b0b0a; color: var(--muted); cursor: pointer; }
.sc-rep[disabled] { cursor: default; }
.sc-rep.now { border-color: var(--ink); color: var(--ink); }
.sc-rep.ok { border-color: var(--acid); color: var(--acid); }
.sc-rep.low { border-color: var(--red); color: var(--red); }
.bpm-pill { font-family: var(--mono); padding: 2px 8px; border: 1px solid var(--line2); text-decoration: none; color: var(--muted); }
.bpm-pill.on { border-color: var(--acid); color: var(--acid); }
.sc-ladder { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.sc-ladder li.locked { color: var(--muted); }
.sc-pass { display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px solid var(--line); color: var(--muted); }
.sc-pass.on { border-color: var(--acid); color: var(--acid); }
.sc-hist { border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.sc-hist th, .sc-hist td { padding: 3px 10px 3px 0; text-align: left; }
.sc-hist tr.ok td { color: var(--acid); }
.sc-h { margin: 22px 0 8px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sc-streak { margin-top: 6px; }
.sc-words { margin: 10px 0; }
.sc-guide p { max-width: 62ch; line-height: 1.55; }
/* the top bar: with every section in the nav, it takes its own row below 1440px instead of pushing the page sideways */
@media (max-width: 1440px) { .bh { flex-wrap: wrap; } .bnav { order: 3; flex-basis: 100%; min-width: 0; overflow-x: auto; } }
.sc-bench.lh { grid-template-columns: 1fr minmax(240px, 360px); }
.sc-bench.lh .sc-deck { order: 2; }
@media (max-width: 760px) { .sc-bench.lh { grid-template-columns: 1fr; } }
/* build badge */
.buildbar { display: flex; justify-content: flex-end; padding: 10px 24px 16px; }
#buildBadge { font-size: 12px; color: var(--faint); letter-spacing: .04em; }
/* Report a problem (fix/tester-ready-2, booth-report.js): small, beside the build badge; the fallback box when the clipboard is refused */
.buildbar { align-items: center; gap: 12px; }
.buildbar .report-btn { font-size: 12px; padding: 2px 8px; min-height: 0; color: var(--muted); }
.buildbar { position: relative; }   /* (the fixed screens below and in underground.css set fixed) */
/* the "Copied." line floats above the bar, so it never moves the button (on a deck screen the bar is an overlay: a line in
   the row pushed the button over the mixer's FX strip, fix/tester-ready-2's self-QA) */
.buildbar .report-say { position: absolute; right: 10px; bottom: 100%; margin-bottom: 4px; white-space: nowrap; font-size: 12px; color: var(--ink); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r); padding: 4px 8px; pointer-events: none; opacity: 1; }
.report-box { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(560px, calc(100vw - 32px)); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px 14px; }
.report-box textarea { width: 100%; box-sizing: border-box; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
/* the Load track picker: tabs, match groups and badges (BoothPro.match), Camelot grid, pairs, mini set */
.pk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.pk-group { margin: 14px 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.pk-row { flex-wrap: wrap; cursor: default; }
.pk-row .te { width: 28px; text-align: center; font-family: var(--mono); color: var(--muted); font-size: 12px; }
.mbs { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; padding-left: 2px; }
.mb { display: inline-block; padding: 1px 7px; border: 1px solid var(--line2); font: 600 12px var(--mono); color: var(--muted); border-radius: 3px; }
.mb.ok { border-color: var(--acid); color: var(--acid); }
.mb.boost { border-color: var(--amber); color: var(--amber); }
.mb.bad { border-color: var(--red); color: var(--red); }
.mb.q { border-color: var(--cyan); color: var(--cyan); }
.pk-cam { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.pk-cell { min-height: 74px; padding: 4px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.pk-cell.k-same { border-color: var(--acid); background: rgba(var(--uv), .08); }
.pk-cell.k-good { border-color: var(--acid); }
.pk-cell.k-boost { border-color: var(--amber); }
.pk-mini { all: unset; cursor: pointer; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-mini:hover, .pk-mini:focus-visible { color: var(--acid); outline: none; text-decoration: underline; }
@media (max-width: 700px) { .pk-cam { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pk-pairs { display: grid; gap: 8px; }
.pk-pair { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); }
.pk-pair .bbtn { align-self: flex-start; }
.pk-set { padding-left: 1.4em; display: grid; gap: 10px; }
.pk-set p { margin: 2px 0 4px; }
.set-sum { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--acid); }
.set-sum h3 { margin: 0 0 4px; }
.set-sum p { margin: 4px 0; }
/* FX extras under the pads (docs/STUDIO_FX.md): amount, more FX, Hear it */
.fxrow { gap: 10px; align-items: center; margin: 6px 0; }
.fxrow .fxamt { flex: 1; min-width: 160px; }
/* impact moments (booth-impact.js): a pop over the waveforms, a shockwave on the incoming deck */
.impact-host { position: relative; }
.impact-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8); z-index: 5; pointer-events: none; text-align: center; animation: impact-pop 1.3s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.impact-pop { padding: 10px 22px 12px; background: rgba(5, 5, 5, .72); border: 1px solid rgba(var(--uv), .35); }
.impact-pop b { display: block; font-weight: 900; font-size: clamp(28px, 6vw, 64px); line-height: 1; text-transform: uppercase; letter-spacing: .06em; color: var(--acid); text-shadow: none; }
.impact-pop span { display: block; margin-top: 6px; font: 700 14px var(--mono); color: var(--ink); text-shadow: 0 1px 0 #000; }
.impact-pop.q6 b { color: var(--amber); text-shadow: none; }
.impact-pop.q3 b { color: var(--ink); text-shadow: 0 2px 0 #000; font-size: clamp(22px, 4vw, 40px); }
.impact-pop.q6 { border-color: rgba(255, 176, 0, .35); } .impact-pop.q3 { border-color: var(--line2); }
.impact-pop.still { animation: impact-fade 1.3s linear forwards; transform: translate(-50%, -50%); }
@keyframes impact-pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
@keyframes impact-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.deckp.impact { animation: impact-glow .9s ease-out; position: relative; }
.deckp.impact::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--acid); pointer-events: none; animation: impact-ring .9s ease-out forwards; }
@keyframes impact-glow { 0% { box-shadow: 0 0 0 0 rgba(176, 102, 255, .7); } 100% { box-shadow: 0 0 0 18px rgba(176, 102, 255, 0); } }
@keyframes impact-ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .impact-pop, .deckp.impact, .deckp.impact::after { animation-duration: .01s; } }

/* ---------- Free mix: Rekordbox-style browser (playlists down the side), jog display, score bar ---------- */
.browser .bwrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }
.bside { display: flex; flex-direction: column; gap: 1px; border-right: 1px solid var(--line); padding-right: 10px; max-height: 440px; overflow: auto; }
.bsi { text-align: left; background: none; border: 0; border-left: 2px solid transparent; color: var(--ink); font: inherit; font-size: 13px; padding: 7px 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.bsi:hover { background: rgba(236, 235, 228, .05); }
.bsi.on { border-left-color: var(--acid); background: rgba(var(--uv), .08); color: var(--acid); }
.bsi .muted { font-family: var(--mono); font-size: 12px; }
.bsh { font-family: var(--mono); font-size: 12px; text-transform: lowercase; letter-spacing: .04em; color: var(--muted); padding: 14px 10px 4px; }
.bmain { min-width: 0; }
.bhead h3 { margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.bhead h3 .small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.nextup { flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(var(--uv), .35); background: rgba(var(--uv), .05); gap: 10px; align-items: center; }
.nextup b { font-weight: 700; } .nextup b .small { font-weight: 400; }
.tag.nexttag { background: var(--acid); color: #0a0a08; font-weight: 800; text-transform: uppercase; margin-right: 6px; }
.tracks.plist { max-height: 380px; }
.trk .tno { width: 24px; text-align: right; color: var(--faint); font-size: 12px; }
.trk.next { background: rgba(var(--uv), .07); outline: 1px solid rgba(var(--uv), .35); }
.trk.loaded .tn { color: var(--ink); font-weight: 700; }
.ondeck { display: inline-block; font: 800 12px var(--mono); padding: 1px 5px; margin-right: 6px; color: #0a0a08; border-radius: 2px; vertical-align: 1px; }
.ondeck.deckA { background: var(--deckA); } .ondeck.deckB { background: var(--deckB); }
.trk.on { background: rgba(236, 235, 228, .08); outline: 1px solid var(--line2); }
@media (max-width: 760px) {
  .browser .bwrap { grid-template-columns: 1fr; }
  .nextup b { flex: 1 1 100%; order: 2; }
  .nextup .bbtn { order: 3; }
  .bhead { flex-wrap: wrap; } .bhead h3 { flex: 1 1 100%; } .bhead h3 .small { display: block; } .bhead input[type=search] { flex: 1 1 100%; }
  .trk .tmx, .trk .tno, .trk .te { display: none; }
  .trk .tn { min-width: 0; flex: 1 1 auto; white-space: normal; }
  .trk .bbtn.sm { padding: 6px 8px; }
  .bside { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 6px; max-height: none; }
  .bsh { display: none; }
  .bsi { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .bsi.on { border-bottom-color: var(--acid); }
}
/* the jog display: a record turning with the track, the ring is how far through */
.dstats { align-items: center; }
.jogd { --p: 0%; width: 54px; height: 54px; flex: none; border-radius: 50%; position: relative; background: conic-gradient(var(--deckA) var(--p), rgba(236, 235, 228, .12) 0); }
.deckB .jogd { background: conic-gradient(var(--deckB) var(--p), rgba(236, 235, 228, .12) 0); }
.jogd i { position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle, #1c1c19 0 18%, #0b0b0a 19% 100%); box-shadow: inset 0 0 0 1px rgba(236, 235, 228, .08); }
.jogd i::after { content: ''; position: absolute; left: 50%; top: 3px; width: 2px; height: 40%; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.deckA .jogd.spin i::after { background: var(--deckA); } .deckB .jogd.spin i::after { background: var(--deckB); }
/* Free mix's score bar */
.fscore { font-size: 14px; color: var(--muted); }
.fs-pts { font-size: 22px; font-weight: 900; color: var(--ink); font-family: var(--mono); letter-spacing: .02em; }
.fs-k { font-family: var(--mono); font-size: 12px; text-transform: lowercase; letter-spacing: .04em; }
.fs-combo { color: #0a0a08; background: var(--acid); padding: 2px 8px; font-size: 13px; letter-spacing: .06em; }
.fs-note { font-family: var(--mono); font-size: 13px; color: var(--acid); font-weight: 700; }
.impact-pop i { display: block; margin-top: 6px; font-style: normal; font-weight: 900; font-size: 18px; color: var(--ink); letter-spacing: .06em; }
/* Set mode's ready-made sets */
.setcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.setcard { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line2); border-radius: var(--r); background: rgba(236, 235, 228, .02); }
.setcard b { text-transform: uppercase; letter-spacing: .03em; }
.setcard ol { margin: 4px 0 6px; padding-left: 22px; color: var(--muted); }
.setcard .bbtn { margin-top: auto; }
.freebar { background: rgba(9, 9, 8, .88); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; position: relative; z-index: 1; }

/* ---------- goals you can see (fix/playtest-oct26, BoothMission.goalHtml / newsHtml): the goal in words, rings that
   fill (design's .goal-rings .ring[data-on] and .swap-goal[data-state] in underground.css), the live count, what counts,
   what it unlocks; the card's news line leads the card. Hooks for Design: .goal-box (.compact, [data-state="run|done|
   over"]), .goal-top, .goal-line, .goal-count, .goal-what, .goal-next, .goal-news[data-kind="up|reset|done|over|same"] */
.goal-box, .goal-box.swap-goal { display: block; padding: 10px 14px; margin: 0 0 10px; border: 1px solid var(--acid); border-radius: var(--r); background: linear-gradient(90deg, rgba(var(--uv), .14), rgba(4, 3, 6, .6) 70%); }
.goal-box .goal-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.goal-box .goal-line, .goal-box.swap-goal .goal-line { font: 700 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: lowercase; color: var(--muted); white-space: normal; }
.goal-box .goal-line b { color: var(--ink); font-size: 15px; letter-spacing: .04em; }
.goal-box .goal-rings { display: inline-flex; gap: 8px; }
.goal-box .goal-count { font-size: 20px; color: var(--acid); margin-left: auto; white-space: nowrap; }
.goal-box .goal-what, .goal-box .goal-next { margin-top: 6px; color: var(--ink); }
.goal-box .goal-next b { color: var(--acid); }
.goal-box.compact { padding: 5px 10px; margin: 0 0 6px; display: inline-block; }
.goal-box.compact .goal-count { font-size: 16px; }
.goal-box[data-state="done"] { box-shadow: 0 0 0 1px var(--acid); }
.goal-news { font: 900 26px/1.15 var(--flyer, inherit); letter-spacing: .01em; margin: 0 0 12px; color: var(--ink); }
.goal-news[data-kind="up"], .goal-news[data-kind="done"] { color: var(--acid); text-shadow: none; }
.goal-news[data-kind="reset"] { color: var(--amber); }
@media (prefers-reduced-motion: no-preference) { .goal-news[data-kind="up"], .goal-news[data-kind="done"] { animation: goal-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; } }
@keyframes goal-pop { 0% { transform: scale(.8); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* the bands in plain words (fix/playtest-oct26, BoothCoach.plainBands): the step's gloss, and one word under each EQ knob's
   name while body.plain-bands is on (the first half hour or so). Hooks for Design: .band-gloss, .kn-sub */
.band-gloss { color: var(--muted); font-weight: 400; }
.kn-sub { display: none; }
body.plain-bands .kn-sub { display: block; font: 400 12px/1 var(--mono); letter-spacing: .02em; text-transform: lowercase; color: var(--muted); margin-top: 1px; }

/* ---------- missions (booth-mission.js): the progress strip, the ending, stars ---------- */
.mstrip { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.mrep { min-width: 28px; height: 28px; padding: 0 4px; display: grid; place-items: center; font: 700 12px var(--mono); border: 1px solid var(--line2); color: var(--ink); background: rgba(236, 235, 228, .03); }
.mrep i { font-style: normal; }
.mrep.learn { border-color: var(--cyan); } .mrep.guided { border-color: var(--amber); } .mrep.memory { border-color: var(--acid); }
.mrep.miss { color: var(--red); }
.mrep.pass { background: rgba(var(--uv), .12); }
.mrep.memory.pass:not(.hinted) { background: var(--acid); color: #0a0a08; }
.mrep.now { border-style: dashed; color: var(--muted); animation: mrep-now 1.2s ease-in-out infinite; }
@keyframes mrep-now { 50% { box-shadow: 0 0 0 3px rgba(176, 102, 255, .18); } }
.mlabel { font: 12px var(--mono); text-transform: lowercase; letter-spacing: .04em; color: var(--muted); margin-left: 6px; }
.mlabel b { color: var(--acid); }
.mnext { font-family: var(--mono); color: var(--acid); text-transform: lowercase; letter-spacing: .06em; margin: 10px 0 0; }
.mdone { display: flex; gap: 18px; align-items: center; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--line2); background: linear-gradient(90deg, rgba(236, 235, 228, .06), transparent 70%); }
.mdone.won { border-color: var(--acid); background: linear-gradient(90deg, rgba(var(--uv), .16), transparent 70%); animation: mdone-in .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.mdone h2 { margin: 2px 0 4px; text-transform: uppercase; letter-spacing: .02em; }
.mstars { display: flex; gap: 2px; }
.mstars i { font-style: normal; font-size: 44px; line-height: 1; color: rgba(236, 235, 228, .14); }
.mstars i.on { color: var(--acid); text-shadow: none; animation: star-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.mstars i.on:nth-child(2) { animation-delay: .18s; } .mstars i.on:nth-child(3) { animation-delay: .36s; }
@keyframes star-pop { from { transform: scale(0) rotate(-30deg); opacity: 0; } }
@keyframes mdone-in { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.tag.mstar { letter-spacing: .14em; font-size: 15px; padding: 2px 8px; margin-top: 8px; align-self: flex-start; color: var(--acid); }
@media (prefers-reduced-motion: reduce) { .mdone.won, .mstars i.on, .mrep.now { animation: none; } }
.wf { height: 150px; border-radius: var(--r); background: #070706; border-color: var(--line2); }

/* ---------- feel: steps that tick, results that land, countdowns that pop ---------- */
/* the ✓ Done tick floats over the lead's step count, so the lead never changes width (fix/echo-timing part 4) */
#hudLead { position: relative; }
#hudLead .stepok { position: absolute; left: 0; top: 50%; margin: -12px 0 0 0; z-index: 1; white-space: nowrap; }
#hudLead .coach-count.none, #hudLead.ticked .coach-count { visibility: hidden; }
.stepok { display: inline-block; font: 800 13px var(--mono); text-transform: lowercase; letter-spacing: .04em; color: #0a0a08; background: var(--acid); padding: 3px 8px; margin-bottom: 6px; animation: stepok 1.1s ease-out forwards; }
@keyframes stepok { 0% { transform: translateY(6px) scale(.8); opacity: 0; } 15% { transform: none; opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
.grade.stamp { animation: stamp .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes stamp { 0% { transform: scale(2.6) rotate(-12deg); opacity: 0; } 60% { transform: scale(.92) rotate(2deg); opacity: 1; } 100% { transform: none; } }
.result .sbar i { animation: sbar-fill .9s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes sbar-fill { from { width: 0; } }
.result.panel { animation: result-in .35s ease-out both; }
@keyframes result-in { from { transform: translateY(10px); opacity: 0; } }
.count { background: var(--acid); color: #0a0a08; border-radius: 4px; font-weight: 900; font-size: 26px; animation: count-pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes count-pop { from { transform: scale(1.5); } }
.step { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .stepok, .grade.stamp, .result .sbar i, .result.panel, .count { animation: none; } }

/* ---------- the menu: hero (what next, how far) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 18px; align-items: stretch; margin: 6px 0 10px; }
.hero-word { margin: 0; text-transform: none; font-weight: 900; font-size: clamp(56px, 8vw, 112px); line-height: .85; letter-spacing: -.02em; color: var(--ink); text-shadow: none; }
.hero-word::after { content: ''; display: inline-block; width: .16em; height: .16em; margin-left: .06em; background: var(--acid); box-shadow: none; }
.hero-brand { align-self: center; }
.hero-brand .sub { margin: 12px 0 16px; max-width: 560px; font-size: 18px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 34px; font-weight: 900; color: var(--acid); line-height: 1; }
.hero-stats b span { font-size: 18px; color: var(--muted); }
.hero-stats div > span { font: 12px var(--mono); text-transform: lowercase; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.hero-bar { height: 6px; margin-top: 16px; background: rgba(236, 235, 228, .08); max-width: 560px; }
.hero-bar i { display: block; height: 100%; background: var(--acid); box-shadow: none; }
.hero-level b, .hero-streak b { color: var(--ink); }
.hero-bonus { align-self: flex-start; margin-top: 4px; }
.hero-bar.xp i { transition: width .8s ease-out; }
.hero-next { position: relative; text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 60px; border: 1px solid var(--acid); background: linear-gradient(135deg, rgba(var(--uv), .16), rgba(var(--uv), .02) 60%), var(--panel); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; }
.hero-next b { font-size: 34px; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.hero-next .small { color: var(--ink); opacity: .8; max-width: 440px; }
.hero-go { position: absolute; left: 22px; bottom: 18px; background: var(--acid); color: #0a0a08; font: 900 15px var(--mono); text-transform: lowercase; letter-spacing: .04em; padding: 8px 16px; }
.hero-next:hover { box-shadow: 0 0 0 1px var(--acid); }
.hero-next:hover .hero-go { background: #c48cff; }
.hero-next::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(var(--uv), .25); box-shadow: 0 0 0 22px rgba(var(--uv), .04), 0 0 0 46px rgba(var(--uv), .03); }
@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; } }
/* the Start here path (feature/first-mix-moment): a player who hasn't finished Your first mix. Hooks for Design:
   .start-hero, .start-path, .sp-list, .sp (.now / .next / .done / .later), .sp-n, .sp-body, .menu-quiet (the rest of the menu) */
.start-path { border: 1px solid var(--acid); background: linear-gradient(135deg, rgba(var(--uv), .16), rgba(var(--uv), .02) 60%), var(--panel); padding: 18px 22px; display: grid; gap: 10px; align-content: start; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.sp-n { width: 34px; height: 34px; display: grid; place-items: center; font-size: 18px; font-weight: 900; color: var(--faint); border: 1px solid var(--line2); border-radius: 50%; flex: none; }
.sp-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sp-body b { font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.sp-body .small { color: var(--muted); }
.sp.now { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.sp.now .sp-n { color: #0a0a08; background: var(--acid); border-color: var(--acid); }
.sp.done .sp-n { color: var(--acid); border-color: var(--acid); }
.sp.done .sp-body b { color: var(--muted); }
.sp.later, .sp.next { opacity: .8; }
.sp .bbtn.big { font-size: 18px; padding: 12px 22px; }
.menu-quiet { opacity: .55; transition: opacity .25s; }
.menu-quiet:hover, .menu-quiet:focus-within { opacity: 1; }
/* ---------- the menu: your path (numbered stages in order, like a tracklist), play, more ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: none; position: relative; }
.path li { display: flex; }
.stage { flex: 1; position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; min-height: 132px; background: var(--panel); border: 1px solid var(--line); border-left-width: 0; color: var(--ink); font: inherit; cursor: pointer; }
.path li:first-child .stage { border-left-width: 1px; border-radius: var(--r) 0 0 var(--r); }
.path li:last-child .stage { border-radius: 0 var(--r) var(--r) 0; }
.stage b { font-size: 16px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin-top: auto; }
.stage-n { font-size: 28px; font-weight: 900; color: var(--faint); line-height: 1; margin-bottom: 14px; }
.stage-bar { display: block; height: 3px; margin-top: 10px; background: rgba(236, 235, 228, .08); }
.stage-bar i { display: block; height: 100%; background: var(--acid); }
.stage:hover { background: rgba(var(--uv), .06); }
.stage.now { background: linear-gradient(180deg, rgba(var(--uv), .2), rgba(var(--uv), .04)), var(--panel); box-shadow: inset 0 0 0 1px var(--acid); z-index: 1; }
.stage.now .stage-n { color: var(--acid); }
.stage.now::after { content: 'Now'; position: absolute; top: 14px; right: 14px; font: 800 12px var(--mono); text-transform: lowercase; letter-spacing: .04em; color: #0a0a08; background: var(--acid); padding: 2px 6px; }
.stage.done .stage-n { color: var(--acid); }
.stage.later b, .stage.later .stage-n { opacity: .55; }
.modes.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 999px) { .modes.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.modes.compact .mode { min-height: 0; padding: 14px 16px; gap: 4px; }
.modes.compact .mode b { font-size: 15px; }
.modes.compact .mode::after { display: none; }
.more-links { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 28px; }
.more-links a { font: 12px var(--mono); text-transform: lowercase; letter-spacing: .04em; color: var(--muted); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; }
.more-links a:hover { color: var(--acid); border-color: var(--acid); }
@media (max-width: 999px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stage, .path li:first-child .stage, .path li:last-child .stage { border-width: 1px; border-radius: 0; } }
.lanes, .replaycv { background: #070706; border-radius: var(--r); border-color: var(--line2); }
.cuecheck { margin: 0 0 14px; }
.tag.dev { background: rgba(255, 74, 46, .16); color: var(--red); border: 1px solid rgba(255, 74, 46, .45); text-transform: uppercase; }
.sc-pulse { width: 28px; height: 28px; border-radius: 50%; background: var(--line2, #2a2a2a); transition: background .05s; display: inline-block; }
.sc-pulse.on { background: var(--acid); } .sc-pulse.count { background: #777; }
.sc-quarter { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.sc-quarter svg { width: 96px; height: 96px; flex: none; }
.sc-q-ring { fill: none; stroke: var(--line2); stroke-width: 6; }
.sc-q-hand { fill: none; stroke: #8f8d86; stroke-width: 6; stroke-linecap: round; }
.sc-q-rec { fill: none; stroke: var(--acid); stroke-width: 10; stroke-linecap: round; opacity: .85; }
.sc-q-rectext { color: var(--acid); }
.sc-sens { align-items: center; gap: 10px; } .sc-sens input[type=range] { flex: 1; min-width: 220px; max-width: 420px; accent-color: var(--acid); }
/* Scratch School calibration: the crossfader bar (where it is, the closed end, the cut-in, the open part) */
.sc-xbar { position: relative; height: 44px; margin: 22px 0 10px; border: 1px solid var(--line2); border-radius: 6px; background: rgba(255, 255, 255, .03); }
.sc-xend { position: absolute; top: -20px; font: 12px/1 var(--mono); letter-spacing: .12em; color: var(--muted, #8f8d86); }
.sc-xend.l { left: 0; } .sc-xend.r { right: 0; }
.sc-xopen { position: absolute; top: 0; bottom: 0; background: rgba(var(--uv), .10); }
.sc-xopen.on { background: rgba(var(--uv), .28); }
.sc-xcut { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px; background: var(--acid); }
.sc-xknob { position: absolute; top: 4px; bottom: 4px; width: 18px; margin-left: -9px; border-radius: 4px; background: var(--ink, #ecebe6); transition: left .03s linear; }
.sc-xknob.none { opacity: .25; }
.sc-xrow { align-items: center; gap: 14px; } .sc-xticks .ok, #calXMsg .ok { color: var(--acid); margin-right: 8px; }
/* real music only: the empty library, the Tracks panel's needs, practice tools */
.add-music { max-width: 760px; margin: 24px auto; }
.add-music h2 { margin: 4px 0 8px; }
.drop-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0; padding: 36px 16px; border: 2px dashed var(--line2); border-radius: var(--r); cursor: pointer; text-align: center; }
.drop-zone:hover, body.dropping .drop-zone { border-color: var(--acid); background: rgba(var(--uv), .06); }
.tp-needs { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line2); border-left: 3px solid var(--acid); border-radius: var(--r); }
.tp-needs h3 { margin: 0 0 6px; }
.tp-needs .row { gap: 8px; margin: 10px 0 6px; }
.tag.tool { background: rgba(255, 176, 0, .14); color: var(--amber); }
.tag.drum, .mb.drum { background: rgba(159, 216, 255, .14); color: var(--cyan); }
.more-links .badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--acid); color: #0a0a08; font: 700 12px/18px var(--mono, monospace); text-align: center; }
.tp-job { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.job-brief { margin: 4px 0 6px; }
.job-detail { margin: 0 0 6px; padding-left: 18px; }
.jobs { display: grid; gap: 12px; }
.job.done { opacity: .75; }
.tag.mine { background: rgba(var(--uv), .2); color: var(--ink); }
/* mix hints: placeholders until the design session draws them (docs/mix-hints.md) */
.mix-hints { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line2); border-radius: var(--r); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mix-hints .mh-count { color: var(--acid); }
.mix-hints .mh-warn { color: var(--amber); }
.mh-mark { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); }
.mh-mark.on { border-color: var(--acid); color: var(--ink); }
.mh-mark.past { opacity: .4; }
.mh-mark.warn { border-color: var(--amber); color: var(--amber); }
.hint-on { outline: 2px solid var(--acid); outline-offset: 2px; }
/* focus mode in lessons (feature/first-mix-moment; BoothCoach.applyFocus). Hooks for Design: body.focus while a lesson is
   in it; a control [data-focus="off"] is one the step doesn't use (dim, never hidden), [data-focus="on"] + .is-needed the
   one(s) it uses (lit); a panel [data-focus="hide"] is one the lesson hasn't needed yet; the drawing's .c.focus is lit,
   the rest recede. .coach-all is the Show everything / Focus on the step toggle in the HUD's lead. */
body.focus #decks3 [data-focus="off"] { opacity: .32; transition: opacity .25s; }
body.focus #decks3 [data-focus="on"], body.focus #decks3 .is-needed { opacity: 1; }
body.focus #decks3 .is-needed { outline: 2px solid var(--acid); outline-offset: 3px; box-shadow: none; border-radius: 3px; }
body.focus #decks3 label.is-needed { color: var(--ink); }
body.focus [data-focus="hide"] { display: none !important; }
body.focus .diagram.mini .c:not(.focus) { opacity: .35; }
body.focus .diagram.mini .c.focus { opacity: 1; }
.coach-all { margin-left: 8px; font-size: 12px; }
.set-energy { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin: 8px 0; }
.set-energy i { flex: 1; background: rgba(var(--uv), .35); position: relative; min-height: 6px; }
.set-energy i span { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-size: 12px; font-style: normal; }
.set-rows td, .set-rows th { padding: 2px 10px 2px 0; text-align: left; }
/* ---------- feature/app-feel: the title screen, the genre question, the veil, full screen, Home with no scroll ----------
   Hooks for Design: #start.start (.start-brand, .start-word, .start-sub, .start-go > .start-key, .start-fs [data-start="yes|no"],
   .start-note), body.splash while it's up; #likes.likes (.chips > .chip[.on][.soon] > .chip-soon, #likesNote.likes-note,
   .likes-go); #veil.veil (.dip / .dip-out on a route change, .wait + .veil-say while a lesson's tracks decode); #fsBtn.fsbtn
   (aria-pressed), body.fs in full screen; body.home on Home; body[data-screen]; #screen[data-route]; .next-for-you
   (Tutorials and the Academy hub: a .hero-next). */
body.splash .bh, body.splash .buildbar { display: none; }
.start { min-height: calc(100vh - 82px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; cursor: pointer; user-select: none; }
.start-word { font-size: clamp(72px, 12vw, 168px); }
.start-sub { margin: 14px 0 0; font-size: 20px; color: var(--muted); }
.start-key { display: inline-block; font: 800 18px var(--mono); text-transform: lowercase; letter-spacing: .04em; color: var(--ink); padding: 12px 22px; border: 1px solid var(--acid); box-shadow: none; animation: start-breathe 2.4s ease-in-out infinite; }
@keyframes start-breathe { 50% { opacity: .55; } }
.start-fs { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.start-note { max-width: 520px; margin: 0; color: var(--muted); }
/* feature/audit-fixes (MA-4): how long Chapter 1 takes and that a mouse works, under the start bar (the title's own type) */
#start .start-go .start-time { display: block; margin: 1.2vh 0 0; font: 600 clamp(15px, 2.05vh, 20px)/1.3 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .03em; color: #ecebe4; }
/* (the questions screen with no controller found: the mouse line) */
#likes .likes-pad { margin: 0; color: #ecebe4; font-size: 15px; }
#likes .likes-pad[hidden] { display: none; }
.likes { max-width: 900px; margin: 4vh auto 0; display: flex; flex-direction: column; gap: 18px; }
.likes h1 { margin: 0; }
.likes .sub { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { position: relative; font: 800 18px var(--mono); text-transform: lowercase; letter-spacing: .06em; padding: 16px 22px; background: var(--panel); color: var(--ink); border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.chip:hover { border-color: var(--acid); }
.chip.on { border-color: var(--acid); background: linear-gradient(135deg, rgba(var(--uv), .28), rgba(var(--uv), .06)), var(--panel); box-shadow: inset 0 0 0 1px var(--acid); }
.chip.on::before { content: '✓ '; position: absolute; top: 6px; right: 8px; font-size: 12px; color: var(--acid); }
.chip-soon { font: 600 12px var(--mono); letter-spacing: .1em; color: var(--amber); }
.likes-note { min-height: 1.4em; margin: 0; }
.likes-go { gap: 12px; }
.veil { position: fixed; inset: 0; z-index: 60; background: #000; opacity: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; transition: opacity .2s ease-out; }
.veil.dip { opacity: .3; transition: none; }
.veil.wait { opacity: .6; pointer-events: auto; cursor: progress; transition: opacity .12s; }
.veil-say { font: 700 16px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); opacity: 0; }
.veil.wait .veil-say { opacity: 1; }
.fsbtn { font-size: 16px; line-height: 1; padding: 6px 9px; }
/* full screen and a set or night card hide the footer, never Report a problem (fix/tester-ready-2: the testers' one way to
   tell Dean): the bar leaves the page's flow, unseen, and the button keeps its corner, as on Free mix */
body.fs .buildbar, body.set-card-up .buildbar { position: fixed; right: 0; bottom: 0; padding: 4px 10px; z-index: 2; visibility: hidden; }
body.fs .buildbar .report-btn, body.fs .buildbar .report-say, body.set-card-up .buildbar .report-btn, body.set-card-up .buildbar .report-say { visibility: visible; }
@media (display-mode: fullscreen), (display-mode: standalone) {
  .buildbar { position: fixed; right: 0; bottom: 0; padding: 4px 10px; z-index: 2; visibility: hidden; }
  .buildbar .report-btn, .buildbar .report-say { visibility: visible; }
}
.next-for-you { width: 100%; margin: 8px 0 18px; padding-bottom: 60px; }
/* Home fits the window (1280×720 and up): no page scroll; the blurbs and spacing shrink on short windows */
body.home .buildbar, body[data-screen="free"] .buildbar, body[data-screen="play"] .buildbar { position: fixed; right: 0; bottom: 0; padding: 4px 10px; z-index: 2; opacity: .6; pointer-events: none; }
body.home .buildbar button, body[data-screen="free"] .buildbar button, body[data-screen="play"] .buildbar button { pointer-events: auto; }
/* the deck screens: the part under the lanes scrolls inside the window (booth-play.js fitLower) */
body[data-screen="free"] .screen, body[data-screen="play"] .screen { padding-bottom: 8px; }
.deck-lower.fit, #decks3.fit { overflow-y: auto; overscroll-behavior: contain; }
.deck-lower.fit.scrolled, #decks3.fit.scrolled { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px); mask-image: linear-gradient(180deg, transparent 0, #000 18px); }
.deck-lower > .decks3:first-child { margin-top: 0; }
body.home .screen { padding-bottom: 12px; }
@media (max-height: 820px) {
  body.home .screen { padding-top: 10px; }
  body.home .hero { margin: 0 0 6px; }
  body.home .hero-word { font-size: clamp(48px, 6.5vw, 88px); }
  body.home .hero-brand .sub { margin: 8px 0 10px; font-size: 16px; }
  body.home .hero-next { padding: 16px 18px 52px; }
  body.home .hero-next b { font-size: 28px; }
  body.home .start-path { padding: 12px 16px; gap: 6px; }
  body.home .sp { padding: 8px 12px; }
  body.home h3.sect { margin: 12px 0 6px; }
  body.home .stage { min-height: 96px; padding: 10px 12px 12px; }
  body.home .stage-n { font-size: 22px; margin-bottom: 8px; }
  body.home .stage .small { display: none; }
  body.home .modes.compact .mode { padding: 9px 12px; }
  body.home .modes.compact .mode .small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .start-key { animation: none; } .veil, .veil.wait { transition: none; } }
/* no web-page cues on the deck screens: no text selection while you play, a focus ring only from the keyboard (the
   header's lesson form, fewer tabs while a lesson is up, is the design session's: body[data-screen="play"]) */
.hud, .wfs, #decks3, .lanes-wrap, .guide, .start, .chips { -webkit-user-select: none; user-select: none; }
.bbtn:focus:not(:focus-visible), .mode:focus:not(:focus-visible), .stage:focus:not(:focus-visible), .chip:focus:not(:focus-visible), .hero-next:focus:not(:focus-visible) { outline: none; }

/* fix/echo-timing part 4 (for the design session to fold into underground.css's one-row HUD): the coach's nav cell (♪ Hear
   it, Back / Next) keeps a fixed slot, its buttons from the left, so a step with a Hear it button never pushes the step
   count and Stop and leave sideways: the title column (an ellipsis) is the only one that gives way */
@media (min-width: 1000px) {
  html .screen.decks-screen.decks-banner > .hud { grid-template-columns: minmax(0, 1fr) auto auto auto minmax(216px, auto) auto; }
  html .screen.decks-screen.decks-banner > .hud #hudCoach > .coach-nav { justify-content: flex-start; }
  /* one line, always 18 px: a countdown in it ("Starts on bar 33: 2") never makes the row taller, so the lanes stay put */
  html .screen.decks-screen.decks-banner > .hud .hud-sub { height: 18px; overflow: hidden; white-space: nowrap; justify-self: stretch; }   /* (across the row, its words centred inside: Set mode's "Next: … · PLAY on bar 101." changing never moves the box) */
  /* the record button keeps one width in either state and its clock a fixed one, so recording (Set mode starts it itself)
     never moves the title row */
  html .screen.decks-screen.decks-banner > .hud .recbar #recBtn { min-width: 150px; }
  html .screen.decks-screen.decks-banner > .hud .recbar #recTime { display: inline-block; min-width: 5ch; font-variant-numeric: tabular-nums; }
  html .screen.decks-screen.decks-banner > .hud .hud-sub .count { display: inline; line-height: 18px; animation: none; }
}
/* the beatmatch line over the lanes keeps its line when it's empty (focus mode hides the legend beside it), so the lanes
   don't drop as Deck B starts and "Tempo matched" appears; the same for an empty sub-line. Under 800 px tall (a laptop
   with the timing card docked) every pixel goes to the lanes, so these two rows come and go there as before */
@media (min-width: 1000px) and (min-height: 800px) {
  html .screen.decks-screen > .wv-legend + .guide { min-height: 15px; }
  /* the sub-line's row is always there (empty: kept, unseen), so a step with or without one never moves the lanes */
  html .screen.decks-screen.decks-banner > .hud .hud-sub:empty { display: block; visibility: hidden; min-height: 18px; }
}
@media (min-width: 1000px) {
  /* the beatmatch line beside the waveform legend keeps one width (fix/echo-timing, the long Free mix): its column was
     auto, so "Tempo matched · beats lined up" appearing as Deck B started narrowed the legend, which wrapped, and the
     lanes and decks under it jumped (0.12 of the screen) */
  html .screen.decks-screen > .wv-legend + .guide { width: 31em; overflow: hidden; text-overflow: ellipsis; }
  /* the legend's keys come and go with the hints (Guided's zones, the overlap, a vocal clash): it keeps two lines' room, so it
     wrapping or not never moves the lanes (in a lesson focus mode hides it, so it costs nothing there) */
  html .screen.decks-screen > .wv-legend { min-height: 37px; }
  /* the warning line spans the HUD with its words centred inside it: a new warning never moves the box */
  html .screen.decks-screen.decks-banner > .hud .warn { justify-self: stretch; text-align: center; overflow: hidden; text-overflow: ellipsis; }
  /* the step banner keeps room for two lines of the step (the long Set mode run: "On the 1 of bar 109: Deck A LOW fully left,
     Deck B LOW and MID to the middle." wrapped and pushed the lanes down 28 px, at the swap itself): a one-line step sits
     centred in it, so a step of any length never moves the lanes */
  html body:not(.quiet) .screen.decks-screen.decks-banner > .hud #hudBanner { min-height: calc(2 * 1.14 * clamp(28px, 2.1vw, 32px) + 45px); }   /* (the quiet part folds it: design's one layout change at the swap, once) */
  /* (with the timing card docked on a window under 780 px tall there's no room for it: that card is a one-off, and the
     layout guard's 1280×720 and 1366×768 timing-card scenes need the 29 px) */
  /* Free mix's Guided hint strip over the lanes: one line, always the same height, empty or not. Its step wrapped at the bass
     swap ("On the 1 of bar 33: Deck A LOW fully left, Deck B LOW to the middle." beside its countdown) and pushed the
     lanes and decks down 32 px for two seconds, on the swap itself (the long Free mix run); now its words end in an ellipsis
     and the lit controls carry the rest */
  html .screen.decks-screen > .mix-hints { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; box-sizing: border-box; height: 34px; }
  html .screen.decks-screen > .mix-hints > * { flex: 0 0 auto; }
  html .screen.decks-screen > .mix-hints > .mh-next, html .screen.decks-screen > .mix-hints > .mh-warn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1000px) and (max-height: 779px) {
  html body.timing-up .screen.decks-screen.decks-banner > .hud #hudBanner { min-height: 0; }
  /* a laptop's 720-768 px: the two lines a little tighter, so the lanes keep their 120 px with the room kept */
  html .screen.decks-screen.decks-banner > .hud #hudBanner .banner-text { line-height: 1.04; }
  html body:not(.quiet):not(.timing-up) .screen.decks-screen.decks-banner > .hud #hudBanner { padding-top: 5px; padding-bottom: 4px; min-height: calc(2 * 1.04 * clamp(28px, 2.1vw, 32px) + 41px); }
}

/* The step's band, lit with its controls (fix/playtest-regressions, criterion 8: BoothCoach.relatedOf sets body[data-step-band]
   from the step's controls). The lanes take a steady edge in that band's colour and the legend's key for it glows, as the
   knobs light on the decks and the drawing: nothing flashes, nothing moves (an outline is no layout). For Design to restyle. */
body[data-step-band~="low"] .wv-legend i.wv-low:not(.wv-z),
body[data-step-band~="mid"] .wv-legend i.wv-mid:not(.wv-z),
body[data-step-band~="high"] .wv-legend i.wv-high:not(.wv-z) { box-shadow: 0 0 0 2px currentColor, 0 0 10px currentColor; }
body[data-step-band~="low"] .wv-legend i.wv-low:not(.wv-z) { color: rgb(var(--band-low-rgb)); }
body[data-step-band~="mid"] .wv-legend i.wv-mid:not(.wv-z) { color: rgb(var(--band-mid-rgb)); }
body[data-step-band~="high"] .wv-legend i.wv-high:not(.wv-z) { color: rgb(var(--band-high-rgb)); }

/* A slow machine (the lights' lite mode, frames over ~22 ms): the header's backdrop blur is redone every frame over the
   animated light layer behind it, a large software-raster cost; a near-opaque header instead (fix/playtest-regressions,
   frames over 100 ms at 4x CPU while mixing). For Design to restyle. */
body.lights-lite .bh { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(9, 9, 8, .96); }

/* A machine that stays slow (booth-play's body.slow-frames: frames averaging over 34 ms, held 30 s): the window-sized light
   layer behind the page goes; compositing it every frame was the rest of the frames over 100 ms at 4x CPU. The rig strip
   and the bass halo stay (fix/playtest-regressions). */
body.slow-frames #lightsBg { display: none; }

/* Save a clip (feature/clip-build, booth-clip.js): the button on a great go's card, the progress while it renders in real time, then the video with Save and Share */
.clip-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; }
.clip-box .clip-say { flex: 1 1 200px; }
.clip-making { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; width: 100%; max-width: 520px; }
.clip-making .clip-bar { grid-column: 1 / -1; height: 6px; background: rgba(242, 240, 234, .12); border-radius: 2px; overflow: hidden; }
.clip-making .clip-bar i { display: block; height: 100%; background: var(--acid, var(--acid)); transition: width .4s linear; }
.clip-making .small { grid-column: 1 / -1; }
.clip-ready { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.clip-video { height: 240px; aspect-ratio: 9 / 16; background: #000; border: 1px solid rgba(var(--uv), .5); border-radius: 2px; }
.clip-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.clip-acts .bbtn { text-decoration: none; }

/* feature/chapter-1: the live three-band meter under each deck's EQ (booth-play bandMeter; design restyles it). Shown while
   body[data-meter] (the three knobs, Start on the 1, the blend); set before the lesson draws, so nothing moves mid-lesson. */
.band-meter { display: none; }
body[data-meter] .band-meter { display: grid; grid-template-rows: repeat(3, 4px); gap: 2px; margin: 2px 0 4px; }
.band-meter i { display: block; height: 4px; background: rgba(var(--band-low-rgb), .9); transform: scaleX(0); transform-origin: 0 50%; }
.band-meter i[data-band="mid"] { background: rgba(var(--band-mid-rgb), .9); }
.band-meter i[data-band="high"] { background: rgba(var(--band-high-rgb), .9); }
.meter.wide[data-hot] i { box-shadow: 0 0 10px var(--red); }
/* feature/chapter-1: the two questions, the chapter cards, the pass line (Main's minimum; design/chapters styles them) */
.exp-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 22px; }
.exp-pick .mode.exp { min-height: 96px; }
.exp-pick .mode.exp.on { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid) inset; }
.likes h2.likes-q { margin-top: 6px; }
.chapter-open .chapter-stages, .chapter-card .chapter-ticks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.chapter-card .chapter-ticks .tick { color: var(--acid); font-weight: 700; }
.chapter-go .bbtn.big { min-width: 220px; }
.pass-line { margin: 0 0 6px; }
.pass-line[data-pass="false"] { color: var(--amber); }
.kn-intro .kn-dia { max-width: 560px; margin: 8px 0; }
.path-chapters .chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.path-chapters .chapter-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.path-chapters .chapter-h .eyebrow { margin: 0; }
.path-chapters .stage[data-skipped="true"] { opacity: .6; }
@media (min-width: 1000px) { .path-chapters .chapters { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); } .path-chapters .chapter .path.arc-main { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }

/* ---------- Chapter 2 (feature/chapter-2): the graduation card fits the docked card at 1280×720 (it scrolls inside
   itself rather than clip below that); Home after graduating; the set's quiet Show me; the vocal lesson's said lines ---------- */
#resultSlot.slot-set .set-card[data-graduated="true"] { overflow-y: auto; }
.grad-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: end; }
.grad-head .eyebrow { margin: 0 0 4px; }
.set-card .grad-title { margin: 0; font: 400 clamp(46px, 4.8vw, 72px)/.92 var(--flyer); letter-spacing: .01em; text-transform: uppercase; color: #fff; text-shadow: none; }
.set-card .grad-lead { margin: 6px 0 0; font-size: 18px; color: var(--ink); }
.grad-score { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#resultSlot.slot-set .set-card .grad-score .pass-line { margin: 0; font-size: clamp(26px, 2.4vw, 36px); justify-content: flex-end; }
#resultSlot.slot-set .set-card .grad-score .res-head { gap: 12px; }
#resultSlot.slot-set .set-card .grad-score .res-head .grade { width: 58px; height: 58px; font-size: 34px; }
#resultSlot.slot-set .set-card .grad-score .res-head h2 { font-size: 20px; }
#resultSlot.slot-set .set-card[data-graduated="true"] .sc-cols { margin-top: 10px; }
.grad-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.grad-acts > .row { margin: 0; gap: 8px; }
#resultSlot.slot-set .sc-acts .bbtn.grad-next { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 22px; }
.bbtn.grad-next b { font: 400 22px/1 var(--flyer); letter-spacing: .03em; text-transform: uppercase; }
.bbtn.grad-next .small { font-weight: 500; font-size: 13px; line-height: 1.3; font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; text-transform: none; letter-spacing: 0; opacity: .85; }
.grad-soon { flex-basis: 100%; margin: 2px 0 0; }
.set-tr .st-tags { display: block; color: var(--muted); font-size: 12px; }   /* its own line under the verdict, so the move's name keeps its room (QA round 2) */
.set-tr[data-hint="true"] .st-tags { color: var(--ink); }
/* Home after graduating: the next goal leads, the graduation beside it, Free mix and Set mode, the coming-soon strip */
.hero.grad-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "brand goal" "brand grad" "open open" "soon soon"; gap: 12px 22px; }
.grad-hero > .hero-brand { grid-area: brand; }
.grad-hero > .next-goal { grid-area: goal; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-color: var(--acid); background: linear-gradient(135deg, rgba(var(--uv), .16), rgba(var(--uv), .02) 60%), var(--panel); }
.grad-hero > .next-goal > b { font-size: 24px; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.grad-hero > .next-goal .bbtn.big { align-self: flex-start; }
.grad-hero > .grad-home { grid-area: grad; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; }
.grad-home .eyebrow { margin: 0; }
.grad-home-title { font-weight: 800; }
.grad-rec { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.grad-rec audio { height: 34px; flex: 1 1 260px; max-width: 420px; }
.grad-hero > .grad-open { grid-area: open; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grad-open .mode { text-align: left; min-height: 0; padding: 14px 18px; gap: 4px; }   /* a line each: short, so the path stays on the first screen at 720 (QA round 3) */
.grad-hero > .coming-soon { grid-area: soon; margin: 0; padding: 8px 12px; border: 1px dashed var(--line); border-radius: var(--r); }
.coming-soon .eyebrow { display: inline; margin-right: 8px; }
/* the set at Hints: Show me is a quiet button, never a lit control */
.show-me { opacity: .85; }

/* integrate/oct29: Recordings' clips (Chapter 1's saved clip) play as a small 9:16 video in their row */
.mixrow .rec-video { display: block; width: 135px; height: 240px; margin-top: 6px; background: #000; object-fit: contain; }
/* (integrate/oct29, self-QA round 1) a clip made on the graduation card or the chapter card stays inside the card at 1280×800:
   the 240 px video covered the graduation card's Another set and Free mix */
.set-card[data-graduated] .clip-video, .set-card .set-rec .clip-video { height: 104px; }
.set-card .set-rec .clip-ready { flex-wrap: nowrap; align-items: center; }
.set-card .set-rec .clip-acts { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.set-card .set-rec .clip-said { font-size: 12px; overflow-wrap: anywhere; }
.chapter-card .clip-video { height: 168px; }
/* (integrate/oct29, self-QA round 1) Home after graduating: Free mix and Set mode stay a line each under design/menus' card
   shell (its .mode min-height 140 px left two tall empty tiles) */
#screen:not(.decks-screen):not([data-route^="set/first"]) .grad-hero > .grad-open > .mode { min-height: 0; padding: 14px 18px; gap: 4px; }
/* (integrate/oct29: the layout guard) Your first set's build screen fits 1366×768 and 1280×720 again with Chapter 2's goal box:
   a smaller title and no "Missed a moment?" line (the set has no moments to miss) when the window is short */
@media (max-height: 800px) {
  #screen .set-build > h1 { font-size: 46px; margin-bottom: 2px; }
  #screen .set-build > .sub { margin-bottom: 8px; }
  #screen .set-build .goal-box.stage-goal { padding: 8px 14px; margin: 6px 0 8px; }
  #screen .set-build .goal-box.stage-goal .goal-what { display: none; }
  #screen .set-build .sb-go { padding-top: 10px; margin-top: 8px; }
}
#screen .set-build .sb-go .sb-walk-line { flex: 1 1 260px; margin: 0; max-width: 460px; }   /* fix/beginner-first-session: 2.3's walk line beside its two buttons */

/* ---------- feature/structure: the four rooms (booth-rooms.js) ----------
   The nav is Learn · Play · Library · Settings (Home is the logo); on day one only Library and Settings. The room bar
   (#roomBar, between the header and the page) carries the room's tabs, this one lit, and a mono breadcrumb above the
   page's title. The deck screens keep their whole window: no room bar there (body.decks-on), the room still lit. */
.room-bar { max-width: 1440px; margin: 0 auto; padding: 14px 24px 0; position: relative; z-index: 2; }
.room-bar[hidden], body.decks-on .room-bar, body.splash .room-bar { display: none; }
.room-bar[data-narrow] { max-width: 928px; }
.room-tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; border-bottom: 1px solid var(--line); }
.room-tabs a { padding: 9px 12px 10px; color: #a6a39b; text-decoration: none; font: 600 12px/1 var(--mono); text-transform: lowercase; letter-spacing: .04em; border-radius: var(--r) var(--r) 0 0; }
.room-tabs a:hover { color: var(--ink); text-shadow: none; }
.room-tabs a:focus-visible { outline: 1px solid var(--acid); outline-offset: -1px; }
.room-tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--acid); background: rgba(var(--uv), .08); text-shadow: none; }
.room-tabs .badge { margin-left: 6px; }
.crumb { margin: 14px 0 0; font: 600 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: lowercase; color: #a6a39b; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.crumb a { color: #a6a39b; text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumb i { font-style: normal; color: var(--acid); opacity: .8; }
.crumb [aria-current] { color: var(--acid); }
.room-bar:not([hidden]) + .screen:not(.decks-screen) { padding-top: 10px; }
body:not(.decks-on) .room-bar:not([hidden]) + .screen:not(.decks-screen) > h1:first-child, body:not(.decks-on) .room-bar:not([hidden]) + .screen:not(.decks-screen) > .eyebrow:first-child { margin-top: 4px; }

/* Learn → Path */
.path-next { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; max-width: 880px; margin-bottom: 18px; }
.path-next > .eyebrow, .path-next > b, .path-next > .small { grid-column: 1; }
.path-next > b { font-size: 24px; text-transform: uppercase; }
.path-next > .bbtn { grid-column: 2; grid-row: 1 / span 3; }

/* day-one Home (feature/structure part 4): no wordmark, Start here on the left about 760 px wide, the controller a slim
   56 px row, the stage itself the one 64 px primary button, the path straight under it */
body.home.day-one #screen:not(.decks-screen) .hero.d1-hero { display: block; max-width: 760px; margin: 4px 0 14px; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .start-path { padding: 18px 22px 20px; gap: 10px; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp-list { gap: 10px; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-connect { height: 56px; min-height: 56px; box-sizing: border-box; padding: 0 10px 0 12px; gap: 12px; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-connect .sp-n { width: 28px; height: 28px; font-size: 14px; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-connect .sp-body { flex-direction: row; align-items: baseline; gap: 12px; min-width: 0; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-connect .sp-body b { font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-connect .sp-body .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-connect.now::before { display: none; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-connect.now { box-shadow: none; border-color: rgba(var(--uv), .45); background: rgba(0, 0, 0, .3); }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-connect .bbtn.sm { min-height: 36px; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-go { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-go::before { display: none; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-go .bbtn.primary.big.sp-play { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 64px; height: 64px; padding: 0 28px; text-align: left; opacity: 1; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-go .sp-play b { font-family: var(--flyer); font-weight: 400; font-size: 28px; letter-spacing: .03em; color: inherit; text-shadow: none; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-go .sp-play-go { font: 700 15px/1 var(--mono); letter-spacing: .04em; text-transform: lowercase; white-space: nowrap; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp.sp-go.later .sp-play { opacity: .55; }
body.home.day-one #screen:not(.decks-screen) .d1-hero .sp-line { color: var(--muted); padding-left: 2px; }

/* Learn → Transitions (feature/structure): one card per move with Learn, Drill and Ghost line */
.tr-moves > .tr-move { display: flex; flex-direction: column; align-items: flex-start; cursor: default; text-align: left; }
.tr-move .tr-bests { color: #a6a39b; margin-top: 6px; }
.tr-move .tr-acts { margin-top: auto; padding-top: 16px; gap: 8px; flex-wrap: wrap; }
.tr-move .tr-acts { flex-wrap: nowrap; width: 100%; }
.tr-move .tr-acts .bbtn { flex: 1 1 auto; min-width: 0; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
#screen .tr-moves > .mode.tr-move.tr-focus { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.tr-opts { gap: 14px; align-items: center; margin: 6px 0 4px; flex-wrap: wrap; }
.tr-mine { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.tr-mine b { font-weight: 600; }

/* the Library's rows (feature/structure part 5): title and artist on two lines with their tags, BPM, key, length,
   What mixes with this, and the "…" menu (Use as starter track, Details, Remove) */
#screen .lib-drop { margin: -22px 0 14px; }
.lib-rows .lib-row { align-items: center; min-height: 52px; }
.lib-row .tn { display: flex; flex-direction: column; gap: 2px; min-width: 0; white-space: normal; }
.lib-row .lr-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row .lr-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row .lr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lib-row .lr-tags:empty { display: none; }
.lib-row .lr-tags .tag { font-size: 12px; padding: 2px 6px; }
.lib-row .tag.dev { color: #a6a39b; border-color: rgba(166, 163, 155, .45); background: transparent; }
.lib-row .lr-genre { color: #a6a39b; }
.trow-more { position: relative; }
.trow-more > summary { list-style: none; cursor: pointer; min-width: 36px; text-align: center; letter-spacing: .1em; }
.trow-more > summary::-webkit-details-marker { display: none; }
.trow-more[open] > summary { color: var(--ink); box-shadow: inset 0 0 0 1px var(--acid); }
.trow-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 200px; padding: 8px; background: #0c0a10; border: 1px solid rgba(var(--uv), .55); border-radius: var(--r); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.trow-menu .bbtn { justify-content: flex-start; text-align: left; }

/* Free mix with an empty deck (feature/structure part 6): one card centred over the lanes (booth-play syncEmptyCard) */
.wfs { position: relative; }
.empty-card { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.empty-card[hidden] { display: none; }
.empty-card .ec-in { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 36px 20px; min-width: 360px; text-align: center; background: rgba(8, 7, 12, .92); border: 1px solid rgba(var(--uv), .7); border-radius: var(--r); box-shadow: 0 0 0 1px rgba(var(--uv), .25), 0 18px 40px rgba(0, 0, 0, .6); }
.empty-card .ec-in > b { font-family: var(--flyer, inherit); font-weight: 400; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.empty-card[data-deck="B"] .ec-in { border-color: rgba(76, 214, 255, .7); box-shadow: 0 0 0 1px rgba(76, 214, 255, .25), 0 0 40px rgba(76, 214, 255, .2), 0 18px 40px rgba(0, 0, 0, .6); }
.empty-card .ec-in .bbtn.primary.big { min-height: 56px; padding: 0 34px; font-size: 22px; }
.empty-card .eyebrow { color: var(--acid); font-family: var(--mono); letter-spacing: .18em; }
.empty-card[data-deck="B"] .eyebrow { color: #4cd6ff; }
.empty-card[data-half="top"] { bottom: 50%; }
.empty-card[data-half="bottom"] { top: 50%; }
.empty-card[data-half="top"] .ec-in, .empty-card[data-half="bottom"] .ec-in { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 14px 26px; }
.empty-card[data-half="top"] .eyebrow, .empty-card[data-half="bottom"] .eyebrow { display: none; }
.empty-card[data-half="top"] .ec-in > b, .empty-card[data-half="bottom"] .ec-in > b { font-size: 26px; }
.empty-card[data-half="top"] .ec-in .bbtn.primary.big, .empty-card[data-half="bottom"] .ec-in .bbtn.primary.big { min-height: 48px; font-size: 19px; padding: 0 26px; }
.empty-card[data-half="top"] .ec-in > .small, .empty-card[data-half="bottom"] .ec-in > .small { flex-basis: 100%; }
@media (min-width: 1000px) { #screen .modes.tr-moves { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* six moves: two even rows */
/* a path stage's screen (the breadcrumb only, over a centred intro card that must fit 1280×720): the slimmest bar */
.room-bar[data-narrow] { padding-top: 12px; }
.room-bar[data-narrow] .crumb { margin-top: 0; }
.room-bar[data-narrow]:not([hidden]) + .screen:not(.decks-screen) { padding-top: 2px; }

/* ---------- the set builder (feature/set-builder): #set/build, Set mode's Build a set and Your sets, the plan against the night ----------
   design/menus' buttons, cards and headings apply (the route is inside their scope); colours from the theme's tokens only */
.sb-top { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.sb-top .sub { margin-bottom: 0; }
.sb-guide { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.sb-guide li { padding: 8px 14px; border: 1px solid var(--line2); border-radius: var(--r); font-size: 14px; color: var(--muted); }
.sb-guide li .mono { margin-right: 4px; }
.sb-guide li[data-state="now"] { color: var(--ink); border-color: var(--acid); box-shadow: var(--uv-soft); }
.sb-guide li[data-state="done"] { color: var(--ink); }
.sb-guide li[data-state="done"] .mono { color: var(--acid); }
.sb-guide li.sb-guide-x { border: 0; padding: 0; margin-left: auto; }
.sb-guide.done { display: block; padding: 10px 14px; border-left: 3px solid var(--acid); background: rgba(var(--uv), .06); }
.sb-briefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
#screen:not(.decks-screen):not([data-route^="set/first"]) .sb-briefs .mode.sb-brief { min-height: 0; padding: 12px 120px 12px 16px; gap: 2px; cursor: pointer; color: var(--ink); font: inherit; }
#screen:not(.decks-screen):not([data-route^="set/first"]) .sb-briefs .mode.sb-brief.on { border-color: var(--acid); box-shadow: var(--uv-edge); }
.sb-mini { position: absolute; right: 14px; top: 50%; width: 92px; height: 40px; transform: translateY(-50%); overflow: visible; }
.sb-mini polyline { fill: none; stroke: rgba(var(--uv), .75); stroke-width: 2; }
.sb-brief:not(.on) .sb-mini polyline { stroke: var(--faint); }
.sb-main { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.sb-crate { position: sticky; top: 8px; max-height: calc(100vh - 120px); overflow: auto; }
.sb-crate h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.sb-filters input[type="search"] { width: 100%; box-sizing: border-box; }
.sb-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.sb-frow select { width: 100%; min-width: 0; }
.sb-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.sb-crow { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); cursor: grab; }
.sb-ct { display: flex; flex-direction: column; min-width: 0; gap: 1px; flex: 1 1 0; }
.sb-tl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sb-tl b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; min-width: 0; }
.sb-tl .tag.dev { flex: none; font-size: 12px; padding: 1px 4px; }
.sb-crow > .bbtn, .sb-card > .sb-meta { flex: none; }
.sb-rowj { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
.sb-meta { color: var(--muted); white-space: nowrap; }
.sb-shead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.sb-name { flex: 1; min-width: 200px; font-size: 17px; }
.sb-len { display: inline-flex; align-items: center; gap: 6px; }
.sb-curve { margin: 4px 0 10px; }
.sb-plot { position: relative; height: 112px; margin: 0 4px; border-bottom: 1px solid var(--line); }
.sb-plot svg, .sb-tline svg, .sb-rplot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sb-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sb-arc { fill: none; stroke: rgba(var(--uv), .28); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.sb-en { fill: none; stroke: var(--ink); stroke-width: 2; }
.sb-tempo { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 5 4; }
.sb-dot { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); font: 700 12px/20px var(--mono); text-align: center; }
.sb-dot.off { border-color: var(--amber); color: var(--amber); }
.sb-tline { position: relative; height: 30px; margin: 4px 4px 0; }
.sb-bpm { position: absolute; bottom: -2px; transform: translateX(-50%); font-size: 12px; color: var(--cyan); background: var(--panel-solid, var(--bg)); padding: 0 3px; }
.sb-nums { position: relative; height: 18px; margin: 2px 4px 0; }
.sb-num { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.sb-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); margin: 4px 0 0; }
.sb-legend .lg::before { content: ''; display: inline-block; width: 16px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--ink); }
.sb-legend .lg.arc::before { height: 8px; background: rgba(var(--uv), .3); }
.sb-legend .lg.tempo::before { background: repeating-linear-gradient(90deg, var(--cyan) 0 5px, transparent 5px 9px); }
.sb-legend .lg.night::before { height: 10px; width: 10px; background: rgba(var(--uv), .45); border-top: 2px solid var(--acid); }
.sb-lane { list-style: none; padding: 0; margin: 0; }
.sb-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg2); cursor: grab; }
.sb-card .sb-tl b { font-size: 15px; }
.sb-card[data-swapme] { border-color: var(--amber); border-style: dashed; }
.sb-n { flex: none; width: 24px; text-align: center; color: var(--acid); font-weight: 700; }
.sb-acts { display: flex; gap: 2px; flex: none; }
.sb-acts .bbtn.sm { min-width: 32px; padding: 4px 6px; }
.sb-join { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 0 7px 44px; position: relative; }
.sb-join::before { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.sb-jlabel { color: var(--muted); margin-right: 2px; }
.sb-join[data-weak] .sb-jlabel { color: var(--amber); }
.sb-join[data-weak]::before { background: var(--amber); }
.sb-chip { font: 600 12px/1.3 var(--mono); padding: 3px 8px; border: 1px solid var(--line2); border-radius: var(--r); background: transparent; color: var(--ink); cursor: help; white-space: nowrap; }
.sb-chip[data-level="ok"] { border-color: rgba(var(--uv), .45); }
.sb-chip[data-level="warn"] { border-color: var(--amber); color: var(--amber); }
.sb-chip[data-level="bad"] { border-color: var(--red); color: #ffd6cd; background: rgba(255, 74, 46, .14); }
.sb-chip[data-kind="drum"] { border-style: dashed; }
.sb-chip.mini { font-size: 12px; padding: 1px 6px; cursor: default; }
.sb-chip:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.sb-hl { box-shadow: var(--uv-edge) !important; }
.sb-slot { display: flex; gap: 10px; align-items: center; padding: 9px 10px; margin-top: 6px; border: 1px dashed var(--line2); border-radius: var(--r); }
.sb-slot .small { flex: 1; }
.sb-drop-before { box-shadow: 0 -3px 0 0 var(--acid); }
.sb-lane.sb-drop-end { box-shadow: inset 0 -3px 0 0 var(--acid); }
.sb-dragging { opacity: .4; }
/* the set check and Play stay in view under the lane while the lane scrolls past (sticky to the window's bottom) */
.sb-foot { position: sticky; bottom: 0; z-index: 3; margin: 12px -24px 0; padding: 4px 24px 2px; background: var(--panel-solid, #0a090d); border-top: 1px solid var(--line); }
.sb-check { margin: 10px 0 4px; padding: 8px 14px; border-left: 3px solid var(--acid); background: rgba(var(--uv), .06); }
.sb-check p { margin: 4px 0; }
.sb-ck { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }
.sb-cline[data-problem="true"] .sb-ck { color: var(--amber); }
.sb-fit[data-ok="true"] .sb-ck { color: var(--acid); }
.sb-fit[data-ok="false"] .sb-ck { color: var(--amber); }
.sb-swap { margin-top: 10px; }
.sb-play { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.sb-assist { display: inline-flex; gap: 2px; margin-right: 8px; }
.sb-how ol { padding-left: 20px; margin: 8px 0 0; }
.sb-how li { margin: 6px 0; }
.sb-tip { position: absolute; z-index: 60; max-width: 300px; padding: 10px 12px; background: var(--panel-solid, #0b0a0e); border: 1px solid rgba(var(--uv), .6); box-shadow: 0 8px 24px rgba(0, 0, 0, .6); font-size: 13px; line-height: 1.45; color: var(--ink); border-radius: var(--r); }
.sb-tip[data-level="warn"] { border-color: var(--amber); }
.sb-tip[data-level="bad"] { border-color: var(--red); }
.sb-entry .row { margin-top: 8px; }
#screen .sb-entry .sb-yours { margin-top: 28px; }
.sb-sets { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sb-review { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--panel-solid, #0a090d); }   /* solid: the card floats over the lanes */
.sb-empty { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--muted); }
.sb-rplot { position: relative; height: 140px; margin: 26px 18px 8px; border-bottom: 1px solid var(--line); }
.sb-night { position: absolute; bottom: 0; width: 28px; transform: translateX(-50%); background: rgba(var(--uv), .3); border-top: 2px solid var(--acid); }
.sb-night i { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 12px; font-style: normal; color: var(--ink); }
.sb-night[data-q="low"] { background: rgba(255, 176, 0, .2); border-top-color: var(--amber); }
.sb-rline { margin: 8px 0 4px; }
.sb-rrows { width: 100%; border-collapse: collapse; margin-top: 8px; }
.sb-rrows th, .sb-rrows td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sb-rrows td .sb-chip { margin: 0 4px 4px 0; display: inline-block; }
.sb-rrows tr[data-lowest] td:first-child, .sb-rrows tr[data-lowest] td:last-child { color: var(--amber); }
@media (max-width: 1180px) { .sb-main { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); } #screen:not(.decks-screen):not([data-route^="set/first"]) .sb-briefs .mode.sb-brief { padding-right: 16px; } .sb-mini { display: none; } }
/* a laptop's window (800 px high and less): the curve and the briefs a little shorter, so the set check never sits over the curve at the top */
@media (max-height: 860px) {
  .sb-plot { height: 80px; }
  .sb-briefs { margin-bottom: 10px; }
  #screen:not(.decks-screen):not([data-route^="set/first"]) .sb-briefs .mode.sb-brief { padding-top: 9px; padding-bottom: 9px; }
  .sb-check { margin-top: 6px; padding-top: 6px; padding-bottom: 6px; }
}
/* the controller unplugged mid-lesson (QA M20, feature/backlog-oct31): the lesson waits; the note says why and how to carry on */
.unplug-note { position: fixed; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 520px; background: var(--bg2); border: 1px solid var(--acid, var(--acid)); color: var(--fg, #eee); padding: 14px 22px; border-radius: var(--r); font-size: 15px; text-align: center; box-shadow: 0 10px 32px rgba(0, 0, 0, .6); }
.unplug-note b { font-size: 18px; }
.unplug-note[hidden] { display: none; }

/* feature/qa-round-4-fixes (QA round 4 M1): the mouse's one-click bass swap, in the step banner beside the LOW chips (and Free mix's Guided strip) on a swap's step, with no controller. Design styles it (.swap-btn, .swap-key). */
.swap-btn { white-space: nowrap; margin-left: 8px; }
.swap-btn .swap-key { opacity: 0.7; margin-left: 6px; font-size: 0.85em; }

/* feature/calm-coach: the plain look of the calm coach's hooks until design/calm-coach styles them (one row, nothing moves).
   Chapter 2's board (BoothChapter2.state().plan): the lesson's moments as tiles in one line under the step. */
.c2-board { display: flex; flex-wrap: nowrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; height: 22px; overflow: hidden; font-family: var(--mono, monospace); font-size: 12px; }
.c2-board .mb-tile { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid rgba(236, 235, 228, .18); border-radius: 2px; opacity: .55; white-space: nowrap; }
.c2-board .mb-tile b { font-weight: 800; letter-spacing: .04em; }
.c2-board .mb-tile[data-state="next"] { opacity: 1; border-color: var(--acid, var(--acid)); }
.c2-board .mb-tile[data-state="done"] { opacity: 1; border-color: rgba(120, 220, 140, .7); }
.c2-board .mb-tile[data-state="late"], .c2-board .mb-tile[data-state="jumped"] { opacity: 1; border-color: #ffb000; }
.c2-board .mb-tile[data-state="missed"] { opacity: .45; text-decoration: line-through; }
/* the chip's word: amber while the hand adjusts or is early, green for a stamp (Design's tones replace these) */
#hudBanner .banner-target[data-tone="adjust"], #hudBanner .banner-target[data-tone="early"] { color: #ffb000; }
#hudBanner .banner-target[data-tone="ok"] { color: #8fe3a0; }
.streak-chip { margin-left: 8px; padding: 0 6px; border: 1px solid rgba(143, 227, 160, .6); border-radius: 2px; font-size: 12px; }
.swap-best { font-size: 12px; opacity: .85; }

/* ---------- Knob School (feature/knob-school): the hooks' plain layout; design/calm-coach styles them (the mockups
   reports/plan-lessons-feel/mockups/knob-game*.png) ---------- */
body[data-knobschool] #wfB { display: none; }
.ks-strip { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 10px 28px; margin: 6px 0 2px; height: 52px; overflow: hidden; }
.ks-strip > div { display: flex; flex-direction: column; gap: 2px; }
.ks-strip b { font-size: 26px; line-height: 1; }
.ks-k { font: 600 12px/1.2 var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #9a9a9a); }
.ks-mult { align-self: center; padding: 6px 12px; border: 1px solid var(--line, #333); font-size: 20px; }
.ks-mult[data-on="true"] { background: var(--acid, var(--acid)); color: #0a0a08; border-color: transparent; }
.ks-best, .ks-round { margin-left: auto; text-align: right; }
.ks-round { margin-left: 0; }
.ks-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: auto 52px; gap: 8px; margin: 8px 0; min-height: 80px; contain: layout; }   /* one row of eight, its height kept from the screen's first draw (lesson-perf: a row growing under the music was a slow frame) */
.ks-tiles:empty::before { content: ''; }
.ks-tiles-h { grid-column: 1 / -1; }
.ks-tile { border: 1px solid var(--line, #333); padding: 8px 10px; min-height: 52px; display: flex; flex-direction: column; justify-content: space-between; }
.ks-tile b { font: 800 14px/1.1 var(--mono, monospace); }
.ks-tile[data-state="now"] { border-color: var(--acid, var(--acid)); }
.ks-tile[data-state="clean"] { border-color: var(--green, #6fdc8c); }
.ks-tile[data-state="late"], .ks-tile[data-state="early"], .ks-tile[data-state="near"], .ks-tile[data-state="missed"], .ks-tile[data-state="boost"] { border-color: #ffb000; }
.ks-tile[data-state="void"] { opacity: .45; }
.ks-tiles > .ks-box { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; margin: 0; }
.ks-box-h { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.ks-rounds { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- the Challenges card (feature/knob-school): the hooks' plain layout; Design styles them ---------- */
.ch-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ch-tile { border: 1px solid var(--line, #333); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ch-tile[data-open="false"] { opacity: .62; }
.ch-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ch-line, .ch-best, .ch-goes-none { margin: 0; }
.ch-goes { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ch-go { border: 1px solid var(--line, #333); padding: 2px 6px; font-size: 12px; }
.ch-go[data-best="true"] { border-color: var(--acid, var(--acid)); }
.ch-tile .bbtn, .ch-tile .ch-mark { margin-top: auto; align-self: flex-start; }
.challenges.compact .ch-tile { padding: 10px; }
@media (max-width: 999px) { .ch-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.join-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; min-height: 0; }
.join-chip { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line, #333); }
.join-chip[data-q="clean"] { border-color: var(--green, #6fdc8c); }
.join-chip[data-q="late"], .join-chip[data-q="early"], .join-chip[data-q="rough"], .join-chip[data-q="clash"] { border-color: #ffb000; }
.nights-more { display: flex; align-items: center; }
.fp-gloss { opacity: .8; font-weight: 400; }

/* feature/access: the access gate (web/access.js). While gated nothing of the game shows but the brand: the nav, the
   controller light, full screen and the room bar are hidden. The screen is in the menus' current look (the design
   session restyles it later). Hooks: body.gated, #screen[data-access], #access[data-state="loading|out|code|error"],
   .access-step[data-step][data-done][data-on], .access-code, .access-err, .access-ask, #accessOut (the footer's Sign out). */
body.gated .bnav, body.gated .conn, body.gated #fsBtn, body.gated #roomBar { display: none !important; }
.access { max-width: 760px; margin: clamp(28px, 9vh, 120px) auto 0; display: grid; gap: 14px; padding: 0 16px; }
.access-h { font-family: var(--flyer, inherit); font-size: clamp(34px, 4.4vw, 56px); line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
.access .sub { margin: 0; font-size: 17px; color: var(--muted); max-width: 640px; }
.access-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.access-step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); background: rgba(9, 9, 8, .72); }
.access-step > b { font-size: 20px; color: var(--acid); padding-top: 4px; }
.access-step[data-step="2"][data-on="false"] { opacity: .55; }
.access-step[data-done="true"] > b { color: var(--muted); }
.access-k { display: block; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.access-who { margin: 0; color: var(--muted); }
.access-code { gap: 10px; flex-wrap: wrap; }
.access-code input { font-size: 20px; letter-spacing: .08em; padding: 10px 12px; min-width: 280px; background: #0d0c10; color: var(--text); border: 1px solid var(--line); border-radius: var(--r, 2px); text-transform: uppercase; }
.access-code input:focus { outline: none; border-color: var(--acid); box-shadow: 0 0 0 2px rgba(var(--uv), .35); }
.access-err { min-height: 1.4em; margin: 0; color: #ffb000; }
.access-wait { color: var(--muted); }
.access-ask { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; }
.access-ask p { margin: 0; color: var(--muted); }
.access-out { margin-left: 10px; }

/* ---------- the clip studio (feature/clip-studio: Dean's hidden #studio page) ---------- */
.st-pair { align-items: flex-end; gap: 12px; margin: 10px 0 16px; }
.st-deck { display: flex; flex-direction: column; gap: 4px; min-width: 260px; flex: 1; }
.st-deck select { width: 100%; }
.st-moments { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.st-moment { border: 1px solid var(--line, #2a2433); padding: 12px 14px; border-radius: var(--r, 2px); }
.st-moment[data-picked="true"] { border-color: var(--uv, var(--acid)); }
.st-m-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.st-m-n { font-size: 20px; color: var(--uv, var(--acid)); }
.st-why { margin: 6px 0 10px; }
.st-takes { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; max-height: 210px; overflow: auto; }
.st-take { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-take[data-best="true"] { color: #fff; }
.st-best { color: var(--uv, var(--acid)); }
.st-keys { margin: 4px 0 6px; }
.st-corner { position: fixed; top: 6px; right: 8px; z-index: 50; background: transparent; border: 0; color: #9a9a9a; font-size: 18px; line-height: 1; padding: 6px 8px; opacity: 0; transition: opacity .3s; cursor: pointer; }
.st-corner.on, .st-corner:focus-visible { opacity: .7; }
body:not(.studio-clean) .st-corner { display: none; }
/* the clean screen: the lanes, the lane's SWAP flag and count, the pop and the score on near-black, nothing else (BoothStudio.CLEAN_HIDE) */
body.studio-clean, body.studio-clean .booth { background: #050407 !important; }
body.studio-clean::before, body.studio-clean::after { display: none !important; }
body.studio-clean header.bh, body.studio-clean #roomBar, body.studio-clean footer.buildbar, body.studio-clean #btoast, body.studio-clean #club, body.studio-clean #lightsBg,
body.studio-clean .st-hud, body.studio-clean .decks3, body.studio-clean #hudBanner, body.studio-clean #hudStep, body.studio-clean #hudSub, body.studio-clean #hudDia,
body.studio-clean .mix-hints, body.studio-clean #whatTip, body.studio-clean .st-score [data-fscore], body.studio-clean .wv-legend, body.studio-clean .bass-halo { display: none !important; }
body.studio-clean #screen { padding-top: 28px; }
body.studio-clean .st-score { justify-content: flex-start; margin: 0 0 10px; min-height: 30px; }
/* the lanes fill the window on the clean screen (the monitor is the shot): the same renderer, only taller */
body.studio-clean #screen.decks-screen .wf, body.studio-clean #screen .wf { height: calc((100vh - 128px) / 2) !important; }

/* the shoot planner (feature/shoot-planner): the routine's third track, the cheat sheet (Dean's screen only: an aside and an
   overlay canvas over the lanes, never in the lanes' own drawing or a clip) and the sync flash (one white frame) */
.st-routine { margin: 18px 0 8px; }
.st-routine .st-deck { max-width: 520px; }
.st-shoot { gap: 8px; margin: 4px 0 6px; }
.st-leg[data-verdict="clean"] { color: #fff; }
.st-cheat { display: none; }
body.studio-cheat .st-cheat { display: block; }
.st-cheat { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); width: min(400px, 31vw); z-index: 60; background: rgba(7, 5, 11, .94); border: 1px solid rgba(var(--uv), .55); border-radius: var(--r, 2px); padding: 12px 14px; color: #ecebe4; box-shadow: 0 0 24px rgba(0, 0, 0, .6); }
.st-cheat .sc-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: #9a9a9a; margin-bottom: 8px; }
.st-cheat .sc-head b { font-size: 26px; color: #fff; letter-spacing: .02em; }
.st-cheat .sc-now { border-left: 4px solid var(--acid, var(--acid)); padding: 6px 10px 8px; background: rgba(var(--uv), .12); }
.st-cheat .sc-now[data-state="wait"] { border-left-color: #555; background: transparent; }
.st-cheat .sc-now[data-kind="swap"] { background: rgba(var(--uv), .26); }
.st-cheat .sc-when { display: block; font-size: 13px; font-weight: 800; color: #c79bff; letter-spacing: .06em; }
.st-cheat .sc-now[data-state="now"] .sc-when { color: #fff; }
.st-cheat .sc-hand { margin: 6px 0 0; font-size: 26px; line-height: 1.2; font-weight: 800; color: #e2c8ff; letter-spacing: .02em; }
.st-cheat .sc-hand:empty { display: none; }
.st-cheat .sc-text { margin: 4px 0 8px; font-size: 17px; line-height: 1.3; font-weight: 600; color: #fff; }
.st-cheat .sc-prog { height: 6px; background: rgba(255, 255, 255, .12); }
.st-cheat .sc-prog i { display: block; height: 100%; background: var(--acid, var(--acid)); transform-origin: 0 50%; transform: scaleX(0); }
.st-cheat .sc-next { margin-top: 10px; color: #b8b8b8; }
.st-cheat .sc-next p { margin: 2px 0 0; font-size: 15px; line-height: 1.35; }
.st-flash { position: fixed; inset: 0; background: #fff; z-index: 2147483647; display: none; pointer-events: none; }
.st-flash.on { display: block; }

/* #reel's chooser (feature/reel-look round 4): Dean's hidden export page */
.reel-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.reel-presets { gap: 8px; margin: 8px 0 12px; }
.reel-presets [aria-pressed="true"] { box-shadow: 0 0 0 2px var(--acid, var(--acid)) inset; }
.reel-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.reel-g { border: 1px solid rgba(255, 255, 255, .12); padding: 10px 12px; margin: 0; }
.reel-tick { display: block; padding: 3px 0; line-height: 1.35; }
.reel-tick[data-off="true"] { opacity: .5; }
.reel-tick[data-off="true"] input { pointer-events: none; }
.reel-why { display: block; margin-left: 22px; color: #c9b27a; }
.reel-acts { align-items: center; gap: 12px; margin: 14px 0 4px; }
.reel-count { font-size: 15px; }
.reel-prev { margin: 12px 0; }
.reel-pv-out { margin-top: 8px; display: flex; gap: 12px; align-items: flex-start; }
.reel-pv-out canvas, .reel-pv-out video { background: #050407; border: 1px solid rgba(255, 255, 255, .12); }
.reel-made { max-height: 220px; overflow: auto; padding-left: 20px; }

/* feature/tester-build: the release switchboard (booth-release.js). An Out soon card, and the tag on every way to one. */
.out-soon { max-width: 880px; margin: 24px auto; }
.out-soon .eyebrow { color: var(--acid, var(--acid)); letter-spacing: .08em; }
.out-soon .row { gap: 10px; margin-top: 16px; }
[data-soon] { opacity: .78; }
[data-soon]:hover, [data-soon]:focus-visible { opacity: 1; }
.soon-tag { display: inline-block; margin-left: 8px; padding: 1px 6px; font-size: 12px; line-height: 16px; border: 1px solid var(--uv-edge, rgba(176,102,255,.5)); color: #c9c9c9; background: transparent; white-space: nowrap; vertical-align: middle; }
.mode > .soon-tag, .stage > .soon-tag { display: block; width: max-content; margin: 6px 0 0; }
.room-tabs .soon-tag { font-size: 12px; padding: 0 4px; margin-left: 6px; }
/* feature/tester-build: Home's one quiet line for the testers' first minute */
.own-tracks-line { margin: 6px 0 14px; color: #a8a8a8; }
.own-tracks-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* feature/free-mix-goal: Free mix's folded controls are body[data-folded] since design/look-v2-default (underground.css, THE BOOTH: ONE FOLD) */
.free-goal[hidden] { display: none !important; }

/* [controller session, tester-decks] Check my controller (the Controller test's walk): lit while the profile is unchecked or the walk runs */
.walkcheck.walk-lead { border-color: var(--acid, var(--acid)); }
.walk-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.walk-chip { min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font: 12px/1 ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--line, #2a2a2a); color: var(--muted, #9a9a9a); }
.walk-chip.now { border-color: var(--ink, #ecebe6); color: var(--ink, #ecebe6); }
.walk-chip.ok { border-color: var(--acid, var(--acid)); color: var(--ink, #ecebe6); }
.walk-chip.miss { border-color: var(--amber); color: var(--amber); }

/* feature/set-mode-teach (docs/PLAN-set-mode.md): the starter sets on Set mode, why this order between the cards, the
   reorder note (its two lines' room always kept, so nothing moves), the crate's groups, the guidelines line. Solid panel
   grounds as the builder's: nothing here sits on the room's light. */
.sb-guidelines { margin: 4px 0 0; color: var(--muted); font-style: italic; }
.sb-entry > .sb-guidelines { margin: 0 0 10px; }
.sb-startrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 12px; align-items: stretch; }
.sb-startrow > .sb-sets { margin: 0; }
.sb-starters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1700px) { .sb-starters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sb-buildcol { grid-template-columns: minmax(0, 1fr); }
.sb-buildcol > .sb-buildcard { height: 100%; box-sizing: border-box; }
.sb-starter, .sb-buildcard { display: flex; flex-direction: column; gap: 6px; }
.sb-starter .sb-sline { color: var(--ink); }
.sb-stracks { margin: 0; padding-left: 20px; }
.sb-stracks li { margin: 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-starter > .row { margin-top: auto; }
.sb-buildcard > .row { margin-top: 8px; }
.sb-buildcard { border-style: dashed; }
.sb-why-top { display: block; padding: 10px 14px; border-left: 3px solid var(--acid); background: #0d0b12; }   /* solid: no words on the room's light */
.sb-why-top b { font-weight: 600; }
.sb-why { list-style: none; margin: 4px 0 2px; padding: 0; flex-basis: 100%; display: grid; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.sb-why li { padding-left: 14px; position: relative; }
.sb-why li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: rgba(var(--uv), .8); }
.sb-why li[data-level="warn"]::before { background: var(--amber); }
.sb-why li[data-level="bad"]::before { background: var(--red); }
.sb-join[data-changed] { background: rgba(var(--uv), .07); }
.sb-join[data-changed]::before { background: var(--acid); width: 2px; }
.sb-note { position: sticky; top: 47px; z-index: 4; box-sizing: border-box; margin: 0 -24px 8px; padding: 8px 24px 8px 21px; min-height: calc(4.35em + 16px); line-height: 1.45; color: var(--ink); background: #0b0a0e; border-left: 3px solid var(--line2); border-bottom: 1px solid var(--line); }
.sb-note[data-note="change"] { border-left-color: var(--acid); }
/* a starter or ready-made set opened to see why: the cards and their lines come first, under the note; the check, Play
   and the curve after them (read why, then play). One flex column at every height. */
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-set { display: flex; flex-direction: column; }
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-set > .sb-shead { order: 0; }
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-set > .sb-note { order: 1; }
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-set > .sb-lane { order: 2; }
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-set > .sb-foot { order: 3; position: sticky; bottom: 0; margin: 12px -24px 0; border-top: 1px solid var(--line); border-bottom: 0; }
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-set > .sb-swap { order: 4; }
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-set > .sb-curve { order: 5; margin-top: 14px; }
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-set > .sb-how { order: 6; }
#screen:not(.decks-screen) #setBuilder[data-starter] .sb-lane .sb-slot { display: none; }
.sb-note[data-note="hint"] { color: var(--muted); }
.sb-crate h5.sb-gh { margin: 12px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.sb-gline { margin: 0 0 6px; }
.sb-gnone { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sb-group[data-empty] h5.sb-gh { color: var(--muted); }
.sb-group .sb-list { margin-bottom: 6px; }
.sb-all { margin-top: 14px; }
.sb-all > summary { cursor: pointer; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
/* the builder (not a starter) in a window 1100 px high or less: the check and Play stay first (QA round 4 Minor 15), the
   note right under them, sticky over the lane as it scrolls */
@media (max-height: 1100px) { #screen:not(.decks-screen) #setBuilder:not([data-starter]) .sb-set > .sb-note { order: 1; } }
/* a laptop's window: the crate's groups tighter, so the first group's Add is on the first screen */
@media (max-height: 860px) {
  .sb-crate h5.sb-gh { margin-top: 8px; }
  .sb-crate .sb-fits-h { margin: 10px 0 2px; }
  .sb-gline { line-height: 1.3; }
}
/* fix/qa-nov11 (QA Q5-m5): the access gate's Sign out lives in the menus' footer only. On a deck screen (Free mix, a lesson)
   the fixed footer put it over Deck B's panel at 1280×720 (64×33 px) and the cards' bottom right; Settings and Home keep it. */
body.decks-on #accessOut, body[data-screen="free"] #accessOut, body[data-screen="play"] #accessOut, body.set-card-up #accessOut { display: none; }
/* (and on a deck screen the fixed footer is one slim line, so Report a problem sits under Deck B's Nudge row at 1280×720 and 800) */
body.decks-on .buildbar, body[data-screen="free"] .buildbar, body[data-screen="play"] .buildbar { padding: 0 10px 1px; }
body.decks-on .buildbar .report-btn, body[data-screen="free"] .buildbar .report-btn, body[data-screen="play"] .buildbar .report-btn { padding: 0 6px; line-height: 16px; }
/* feature/tester-analytics (analytics.js): the one line on what's counted, left of Report a problem, on the menus only
   (only where the analytics are on: the live origins) */
.buildbar .analytics-note { order: -1; font-size: 12px; color: var(--muted); }
body.decks-on .buildbar .analytics-note, body[data-screen="free"] .buildbar .analytics-note, body[data-screen="play"] .buildbar .analytics-note, body.set-card-up .buildbar .analytics-note, body.fs .buildbar .analytics-note { display: none; }
/* (fix/qa-nov11: in the path strip's narrow cells at 1280 px the tag wraps inside its stage instead of running into the next one) */
.path-chapters .stage { min-width: 0; overflow: hidden; }
.path-chapters .stage > .soon-tag, .modes .mode > .soon-tag { width: auto; max-width: 100%; white-space: normal; }
.path-chapters .stage > b { overflow-wrap: anywhere; }

/* feature/fx-tricks: the Tricks page's ladder and a level's card (layout only: the look is the menus' system, design restyles it on these hooks) */
.trick-levels { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.trick-level { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.trick-level[data-open="false"] .tl-name { color: var(--muted); }
.trick-level .tl-n { font-family: var(--mono); font-size: 18px; color: var(--muted); }
.trick-level .tl-best, .trick-level .tl-mark { font-size: 12px; color: var(--muted); white-space: nowrap; }
.trick-level[data-state="done"] .tl-best { color: var(--green); }
.trick-how { margin: 6px 0 16px; padding-left: 22px; display: grid; gap: 4px; }
.trick-how b { display: inline-block; min-width: 92px; margin-right: 8px; }
.trick-acts { gap: 10px; }

/* ---------- feature/film-mode: #studio's filming mode (booth-film.js) ----------
   body.film: the take screen's deck screen exactly as a player sees it (the lanes, the score, the decks, the mixer, the
   pops and the room's lights) and nothing else. body.film-wide fills the window; body.film-phone lays the deck screen
   out at 1080x960 css px in a centred 9:8 box, zoomed to the box (--film-zoom: 1080x960 device px when the screen has
   room). body.film-nocursor after 2 s still. body.film-showcase: Showcase lighting's see-through panels (.35). */
html body.film header.bh, html body.film #roomBar, html body.film footer.buildbar, html body.film #btoast, html body.film .st-hud,
html body.film #hudBanner, html body.film #hudStep, html body.film #hudSub, html body.film #hudDia, html body.film .mix-hints, html body.film #whatTip,
html body.film .st-cheat, html body.film .st-corner, html body.film .st-score [data-fscore], html body.film .wv-legend,
html body.film #reportBtn, html body.film #reportSay, html body.film #reportBox, html body.film #analyticsNote, html body.film #tabNote, html body.film #unplugNote,
html body.film #lightsNotice, html body.film #keyCard, html body.film #crowdMeter, html body.film .tag.dev, html body.film .timing-card, html body.film #timingCard { display: none !important; }
html body.film-nocursor, html body.film-nocursor * { cursor: none !important; }
/* Record's Element Capture of <body> (booth-film.js): the element must be its own stacking context; the cheat sheet's marks (#stLaneMarks, on <html>) stay outside it */
html body.film-rec { isolation: isolate; }
html body.film #screen.decks-screen { overflow: hidden; }
html body.film #screen.decks-screen > .st-score { margin: 0 0 8px; min-height: 30px; justify-content: flex-start; }
/* Showcase: the rig strip back, under the lanes (booth-film.js moves #club there), and the panels' ground at .35 */
html body.film #screen > canvas#club.club.film-rig { height: 34px; min-height: 34px; margin: 8px 0 8px; visibility: visible; border: 0; border-radius: 0; }
html body.film-showcase.room-deep:not(.slow-frames) #screen.decks-screen .decks3 { background-color: rgba(7, 7, 7, .35); }
/* Wide: the deck screen filling the window (the lanes take the height the decks leave) */
html body.film-wide #booth { padding: 0; max-width: none; }
html body.film-wide #screen.decks-screen { box-sizing: border-box; max-width: none; width: 100vw; height: 100vh; padding: 14px 18px 12px; margin: 0; display: flex; flex-direction: column; }
html body.film-wide #screen.decks-screen > .wfs { flex: 0 0 auto; }
html body.film-wide #screen.decks-screen .wf { height: var(--film-wf, calc((100vh - 26px - 38px - 312px - 50px) / 2)) !important; }
html body.film-wide #screen.decks-screen > .decks3 { margin-top: auto; }
/* Phone top: a centred 9:8 box (the top half of a 9:16 video); the rest of the window black */
html body.film-phone, html body.film-phone .booth { background: #000 !important; }
html body.film-phone::before, html body.film-phone::after { display: none !important; }
html body.film-phone #booth { padding: 0; max-width: none; }
html body.film-phone #screen.decks-screen { position: fixed; box-sizing: border-box; max-width: none; left: var(--film-x); top: var(--film-y); width: var(--film-w); height: var(--film-h); margin: 0; padding: calc(16px * var(--film-zoom)) calc(18px * var(--film-zoom)) calc(14px * var(--film-zoom));
  display: flex; flex-direction: column; background: transparent; }
html body.film-phone #screen.decks-screen .wf { height: var(--film-wf, 240px) !important; }
html body.film #screen.decks-screen > * { flex-shrink: 0; }
html body.film #screen#screen.decks-screen #decks3#decks3 { max-height: none !important; overflow: visible !important; -webkit-mask-image: none; mask-image: none; }
/* the mixer under the lanes, full width and a size up (a phone reads the knobs and faders; the decks' own panels fold away). Only the mixer is zoomed: it has no canvas (a zoomed canvas draws at the wrong size) */
html body.film-phone #screen.decks-screen > .decks3 { margin-top: auto; display: block; }
html body.film-phone #screen.decks-screen > .decks3 > .deckp { display: none !important; }
html body.film-phone #screen.decks-screen > .decks3 > .panel.mixer { width: calc(100% / var(--film-mz)); margin: 0 auto; zoom: var(--film-mz); }
html body.film-phone #screen.decks-screen .decks3 .mixer .fold-more, html body.film-phone #screen.decks-screen #xfTag { visibility: hidden; }
html body.film-phone #screen.decks-screen > .st-score { min-height: 26px; margin-bottom: 6px; }

/* fix/beginner-play (BP-02): Free mix's and Set mode's Guided steps carry their detail on the knobs, as a lesson's do
   ("Swap the bass, on the 1." with "fully left" / "to the middle" on the two LOWs). booth-hints marks the host .mh-callout;
   a lesson's focus mode draws its own (underground.css, body.focus). The same tag, outside focus mode. (.decks3, not #decks3:
   Free mix's mixer has no id, so it never had a callout: combined QA, M1A-03.) */
body:not(.focus) .decks3 .mh-callout[data-callout] { position: relative; }
body:not(.focus) .decks3 .mh-callout[data-callout]::after { content: attr(data-callout); position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); z-index: 3; padding: 2px 8px 3px; border: 1px solid var(--acid, #b066ff); border-radius: 1px; background: #07050b; color: #fff; font: 700 13px/16px var(--mono, monospace); letter-spacing: .02em; text-transform: none; white-space: nowrap; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8); pointer-events: none; }
body:not(.focus) .decks3 .mh-callout[data-callout]::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 7px; margin-left: -.5px; background: var(--acid, #b066ff); z-index: 3; pointer-events: none; opacity: .9; }
body:not(.focus) .decks3 .deckB .mh-callout[data-callout]::after { border-color: var(--deckB, #3fd8e8); }
body:not(.focus) .decks3 .deckB .mh-callout[data-callout]::before { background: var(--deckB, #3fd8e8); }
body:not(.focus) .decks3 .kn.mh-callout[data-callout]::after { left: auto; right: 0; transform: none; }
body:not(.focus) .decks3 .kn.mh-callout[data-callout]::before { left: auto; right: 24px; }
/* combined QA of 23 Nov (M1F-01, C1A-04): above a knob was the knob above ("fully left" on Deck A's MID), above a fader was
   outside the mixer (a white line). Now a knob's word takes its small word's place in its own row ("LOW / fully left"), and a
   fader's sits beside it toward the master meter, level with its cap (booth-hints keeps --cap-top, --cap-h and --v). */
body:not(.focus) .decks3 .kn.mh-callout[data-callout]::after, body:not(.focus) .decks3 .kn.mh-callout[data-callout]::before, body:not(.focus) .decks3 .vf.mh-callout[data-callout]::before { content: none; }
body:not(.focus) .decks3 .kn > .kn-name[data-callout] > .kn-sub { display: none; }
body:not(.focus) .decks3 .kn > .kn-name[data-callout]::after { content: attr(data-callout); display: block; margin-top: 2px; padding: 0; background: none; font: 700 12.5px/14px var(--read, system-ui); letter-spacing: 0; text-transform: none; white-space: normal; width: min-content; min-width: 100%; color: #fff; text-decoration: underline 2px var(--acid, #b066ff); text-underline-offset: 3px; }
body:not(.focus) .decks3 .deckB .kn > .kn-name[data-callout]::after { text-decoration-color: var(--deckB, #3fd8e8); }
body:not(.focus) .decks3 .vf.mh-callout[data-callout]::after { bottom: auto; top: calc(var(--cap-top, 20px) + (1 - var(--v, .5)) * var(--cap-h, 100px)); left: 100%; right: auto; transform: translate(4px, -50%); }
body:not(.focus) .decks3 .deckB .vf.mh-callout[data-callout]::after { left: auto; right: 100%; transform: translate(-4px, -50%); }

/* fix/beginner-play (BP-16): Free mix's first-time card sits over the lanes, never in the page's flow (the deck screens fit
   the window: the smoke's no-scroll row). Design draws it (.free-intro > .fi-line[data-k] + .fi-help); this is its place. */
#screen .free-intro { position: fixed; z-index: 40; left: 50%; top: 22vh; transform: translateX(-50%); width: min(680px, calc(100vw - 32px)); margin: 0; box-shadow: 0 12px 40px rgba(0, 0, 0, .7); }

/* fix/free-mix-quick: Preview on a row (BoothPreview), the row playing lit, the one-line hint over the lists, and the quiet
   vocal tag (Instrumental · Some vocals · Vocal). Design restyles them; these are their places. */
.trk .pv-btn { min-width: 92px; white-space: nowrap; }
.trk .pv-btn.on { color: var(--acid); border-color: var(--acid); }
.trk.pv-on { background: rgba(var(--uv), .12); }
.trk[data-pkrow]:focus-visible, .tracks[data-pvlist]:focus-visible { outline: 2px solid rgba(var(--uv), .8); outline-offset: -2px; }
.browse-hint { margin: 6px 0 2px; color: var(--muted); }
.trk .tag.voc, .sb-tl .tag.voc, .lr-tags .tag.voc { flex: none; white-space: nowrap; font-size: 11px; opacity: .8; border-color: rgba(255, 255, 255, .18); color: var(--muted); background: transparent; }
.trk .tag.voc-heavy, .sb-tl .tag.voc-heavy, .lr-tags .tag.voc-heavy { color: var(--ink); }
.voc-f select { margin-left: 4px; }
.trk .pk-voc-note { flex: none; white-space: nowrap; color: var(--amber); }
/* the picker's rows: the name on its own line, the vocal tag and the notes under it (never squeezing the name) */
.trk .pk-tn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trk .pk-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk .pk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; line-height: 1.2; }
.trk .pk-sub .tag { margin: 0; }
.browser .trk, #pickerHost .trk { user-select: none; }   /* a double-click loads: never selects the title's text */

/* feature/shoot-day: #studio's Shoot day (Dean's page): the series picked, a kept take */
.sd-series [aria-pressed="true"], #screen .sd-panel .sd-series .bbtn[aria-pressed="true"] { border-color: var(--pr-violet); color: var(--pr-violet); box-shadow: inset 0 -3px 0 var(--pr-violet); }
.sd-takes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sd-take { border: 1px solid var(--line, #2a2433); padding: 12px 14px; border-radius: var(--r, 2px); }
#screen .sd-takes { gap: 0; border-top: 2px solid var(--pr-paper); }
#screen .sd-take { border: 0; border-bottom: 1px solid var(--pr-rule); border-radius: 0; padding: 12px 0 14px; }   /* (the picker's moments' print look: underground.css's #screen .st-moment) */
.sd-take[data-kept="true"] .st-m-n { opacity: .55; }
.sd-kept { margin-left: 8px; }
.sd-next { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* sound/matching-analyser (Dean 26 Nov: "pairs should be easy to see"): the pickers' and Free mix's "Mixes well with Deck A"
   group at the top, each row with its reason line in real DJ words (BoothPro.match's `why`), then every other track */
#pickerHost .pk-group.pk-well, .browser .tgroup.tg-well { color: var(--ink); }
#pickerHost .pk-list > .pk-group { margin: 10px 0 4px; font-size: 13px; letter-spacing: .04em; }
#pickerHost .pk-list > .pk-group:first-child { margin-top: 2px; }
.trk .pk-why, .trk .twhy { display: block; font-size: 12px; line-height: 1.25; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk.pk-wellrow .pk-why { color: var(--ink); opacity: .82; }
#pickerHost .trk.pk-wellrow, #pickerHost .trk.pk-row { flex-wrap: wrap; row-gap: 2px; }
#pickerHost .trk > .pk-why { flex: 1 0 100%; order: 99; padding: 0 0 2px 2px; white-space: normal; }
#pickerHost .trk.pk-wellrow .pk-mx { display: none; }   /* the group's heading says it */
.trk .tn .twhy { margin-top: 1px; }
.browser .tgroup { padding: 6px 8px 3px; font: 600 12px/1.2 var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sb-rowj .sb-why { flex-basis: 100%; }

/* ---------- Listen back (feature/listen-back, web/booth-listen.js): a recording's moves on its waveform ----------
   Main's layout; Design polishes the look later (reports/feature-listen-back-REPORT.md names the hooks). Hooks:
   #listenBack.lb[data-log][data-marks][data-playing] > .lb-head, .lb-sum | .lb-none, #lbWave.lb-wave > canvas,
   .lb-moods > .lb-mood[data-mood], .lb-marks > .lb-mark[data-tone][data-k][data-sel], .lb-ticks > .lb-tick[data-deck] > i + em,
   .lb-playhead; .lb-bar (#lbPlay, #lbTime, .lb-filter); #lbList.lb-list > .lb-row[data-tone][data-work][data-sel]. */
.lb { --lb-h: clamp(160px, 24vh, 260px); --lb-clean: var(--tone-ok, #3fd98a); --lb-close: var(--tone-warn, #ffb000); --lb-rough: #ff7a3d; --lb-clash: var(--red, #ff4a2e); max-width: 1500px; }
.lb-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.lb-head h1 { margin: 2px 0 0; }
.lb-meta { margin: 4px 0 0; }
.lb-sum { margin: 8px 0 12px; font-size: 16px; line-height: 1.45; max-width: 1100px; }
.lb-sum p { margin: 0 0 6px; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.lb-sum .lb-k { justify-self: start; }
.lb-sum .lb-next { color: var(--muted); }
.lb-none { margin: 6px 0 12px; }
.lb-wave { position: relative; height: var(--lb-h); padding: 0; margin: 0 0 10px; overflow: visible; cursor: pointer; touch-action: none; user-select: none; }
.lb-wave canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.lb-wave:focus-visible { outline: 2px solid var(--acid, #b066ff); outline-offset: 2px; }
.lb-playhead { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; margin-left: -1px; background: var(--ink, #f4ecdc); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); pointer-events: none; }
.lb-marks, .lb-moods, .lb-ticks { position: absolute; left: 0; right: 0; pointer-events: none; }
.lb-marks { top: 0; bottom: 0; }
.lb-mark { position: absolute; top: 14px; bottom: 18px; width: 14px; margin-left: -7px; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; --mk: var(--lb-close); }
.lb-mark i { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--mk); opacity: .95; }
.lb-mark::after { content: ''; position: absolute; left: 1px; top: -9px; width: 12px; height: 12px; border-radius: 50%; background: var(--mk); box-shadow: 0 0 0 2px #060606; }
.lb-mark[data-tone="clean"] { --mk: var(--lb-clean); }
.lb-mark[data-tone="close"] { --mk: var(--lb-close); }
.lb-mark[data-tone="rough"] { --mk: var(--lb-rough); }
.lb-mark[data-tone="clash"] { --mk: var(--lb-clash); }
.lb-mark[data-k="move"]::after { width: 8px; height: 8px; left: 3px; top: -6px; }
.lb-mark[data-k="move"] i { width: 1px; left: 6.5px; opacity: .6; }
.lb-mark[data-k="clash"]::after { border-radius: 0; transform: rotate(45deg); }
.lb-mark[data-sel]::after { box-shadow: 0 0 0 2px #060606, 0 0 0 4px var(--acid, #b066ff); }
.lb-mark:focus-visible { outline: 2px solid var(--acid, #b066ff); }
.lb-moods { top: -24px; height: 20px; }
.lb-mood { position: absolute; top: 0; transform: translateX(-2px); padding: 1px 6px; font-size: 11px; letter-spacing: .06em; border-left: 2px solid var(--muted); color: var(--muted); white-space: nowrap; pointer-events: auto; }
.lb-mood[data-edge="right"] { transform: translateX(-100%); border-left: 0; border-right: 2px solid var(--muted); }
.lb-mood[data-mood="fire"], .lb-mood[data-mood="warm"] { border-color: var(--lb-clean); color: var(--lb-clean); }
.lb-mood[data-mood="cooling"] { border-color: var(--lb-close); color: var(--lb-close); }
.lb-mood[data-mood="cold"], .lb-mood[data-mood="empty"] { border-color: var(--lb-clash); color: var(--lb-clash); }
.lb[data-moods="true"] .lb-wave { margin-top: 30px; }
.lb-ticks { bottom: 0; height: 18px; }
.lb-tick { position: absolute; bottom: 0; height: 100%; pointer-events: auto; }
.lb-tick i { position: absolute; left: 0; bottom: 0; width: 1px; height: var(--lb-h); background: rgba(244, 236, 220, .35); }
.lb-tick em { position: absolute; left: 4px; bottom: 2px; font-style: normal; white-space: nowrap; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.lb-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.lb-bar .lb-time { min-width: 96px; }
.lb-filter { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-row { display: grid; grid-template-columns: 56px minmax(220px, 2.2fr) minmax(120px, 1fr) minmax(160px, 1.4fr) 44px auto; align-items: center; gap: 12px; padding: 8px 10px; border-left: 3px solid var(--lb-close); background: rgba(0, 0, 0, .35); margin-bottom: 4px; }
.lb-row[data-tone="clean"] { border-left-color: var(--lb-clean); }
.lb-row[data-tone="rough"] { border-left-color: var(--lb-rough); }
.lb-row[data-tone="clash"] { border-left-color: var(--lb-clash); }
.lb-row[data-sel] { outline: 1px solid var(--acid, #b066ff); }
.lb-row.lb-empty { display: block; border-left-color: transparent; }
.lb-tracks { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-arrow { color: var(--muted); }
.lb-word[data-tone="clean"] { color: var(--lb-clean); }
.lb-word[data-tone="close"] { color: var(--lb-close); }
.lb-word[data-tone="rough"] { color: var(--lb-rough); }
.lb-word[data-tone="clash"] { color: var(--lb-clash); }
.lb-score { text-align: right; }
.set-rec .lb-open, .coach-replay .lb-open { margin-left: 6px; }
/* feature/nights-all (Main's markup, Design's own words for the look): the card's "What tonight teaches" line, quiet like the
   crowd's story; the brief's picks (.nb-opts: a style and an energy curve, each row its why) on the brief's own rhythm */
#screen#screen .night-card .nc-teach { margin: 6px 0 10px; font: 500 16px/1.4 var(--read, inherit); color: var(--pr-lit, inherit); }
#screen#screen .night-card .nc-teach-k { display: block; margin-bottom: 2px; font: 700 14px/1.2 var(--pr-type, inherit); letter-spacing: 0; text-transform: lowercase; color: var(--paper-dim, inherit); }
#screen .night-brief .nb-opt-li { list-style: none; margin: 2px 0; }
#screen .night-brief .nb-opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
#screen .night-brief .nb-opt-k { min-width: 0; margin-right: 2px; font-size: 12px; letter-spacing: .06em; color: var(--pr-violet, inherit); }
#screen .night-brief .nb-opt-row [aria-pressed="true"] { outline: 2px solid var(--pr-violet, currentColor); outline-offset: 1px; }
#screen .night-brief .nb-opt-why { color: var(--paper-dim, inherit); }
#screen .night-brief .nb-opt-row .bbtn.sm { padding-top: 3px; padding-bottom: 3px; }

/* feature/pick-your-move: the move chip in the top bar (BoothMoves): "NEXT Bass swap ▾", its menu over the page (Design may restyle) */
.mv-row { position: relative; display: inline-flex; align-items: center; margin: 0 8px; }
.mv-row[hidden] { display: none; }
.mv-chip { font-weight: 600; font-size: 13px; line-height: 1.2; padding: 4px 10px; border: 1px solid var(--acid); border-radius: var(--r); background: transparent; color: var(--ink); white-space: nowrap; }
.mv-chip[data-locked] { border-color: var(--line2); opacity: .8; }
.mv-chip .mv-k { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.mv-sug, .mv-lock { color: var(--muted); font-weight: 400; }
.mv-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 340px; padding: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 4px; }
.mv-opt { display: block; width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; padding: 6px 8px; border: 1px solid transparent; border-radius: var(--r); background: transparent; color: var(--ink); }
button.mv-opt:hover, .mv-opt[aria-selected="true"] { border-color: var(--acid); }
.mv-opt[data-fit="0"] { opacity: .7; }
.mv-opt .mv-why { display: block; color: var(--muted); margin-top: 2px; white-space: normal; }
.mv-opt[data-learned="0"] { opacity: .55; }
.mv-opt[data-learned="0"] .mv-learn { opacity: 1; margin-left: 4px; }
/* the set builder's move per transition */
.sb-move { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; }
.sb-move .mv-chip { font-size: 12px; padding: 3px 8px; }
.sb-move .sb-mwhy { color: var(--muted); }
.sb-move .mv-menu { position: static; width: 100%; box-shadow: none; }
