/* Keybed — on the site's "Soundings" chart skin (shared/chart.css).
   Magenta is the track to follow: the next thing to play. Blue is the
   left hand. Green (starboard) is live input: what you're playing. */

:root {
  --rh: #C9449A;
  --rh-deep: #B0287A;
  --lh: #2F78AD;
  --lh-soft: #BFDDEF;
  --live: #2E7D46;
  --live-soft: #CFE8D6;
  --warn: #C8341F;
}
body { margin: 0; background: var(--chart-paper); }
main { max-width: 1500px; margin: 0 auto; padding: 0 clamp(12px, 2.4vw, 28px) 32px; }
.spacer { flex: 1 1 auto; }
.mono { font-family: var(--ui); font-size: 12px; }
.faint { color: var(--chart-ink-faint); }
.small { font-family: var(--ui); font-size: 11.5px; line-height: 1.6; color: var(--chart-ink-soft); }
.kicker { font-family: var(--ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--chart-magenta); }
.ptitle { font-family: var(--ui); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--chart-ink-faint); }
.ptitle.stbd { color: var(--live); }
.sub { font-family: var(--display); font-size: 14.5px; line-height: 1.4; color: var(--chart-ink-soft); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-family: var(--ui); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--chart-ink-faint); }
.field input, .field select { font-family: var(--display); font-size: 15px; letter-spacing: 0; text-transform: none; padding: 9px 10px; min-height: 40px; border: 1.5px solid var(--chart-ink); background: #fff; color: var(--chart-ink); box-sizing: border-box; }

/* ---------- the mode bar ---------- */
.kb-bar { max-width: 1500px; margin: 0 auto; box-sizing: border-box; padding: 12px clamp(12px, 2.4vw, 28px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.modes { display: flex; flex-wrap: wrap; gap: 6px; }
.modes button { font-family: var(--ui); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; min-height: 40px; border: 1px solid rgba(19,40,60,.35); background: transparent; color: var(--chart-ink); cursor: pointer; }
.modes button:hover { background: var(--chart-mid); }
.modes button[aria-selected="true"] { background: var(--chart-ink); color: var(--chart-paper); border-color: var(--chart-ink); }
.inputs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--ui); font-size: 12px; color: var(--chart-ink-soft); }
.inputs .dot { width: 9px; height: 9px; border-radius: 50%; background: #9AA9B6; }
.inputs .dot.on { background: var(--live); }
.mini { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.mini select { font-family: var(--ui); font-size: 12px; padding: 6px; border: 1px solid rgba(19,40,60,.4); background: #fff; color: var(--chart-ink); }

[hidden] { display: none !important; }

/* ---------- practice ---------- */
#view-practice { display: flex; flex-direction: column; min-height: max(760px, calc(100vh - 140px)); }
.lesson-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; }
.lh-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 420px; min-width: 0; }
.lesson-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.15; }
.parts { display: flex; flex-wrap: wrap; gap: 6px; }
.parts button { font-family: var(--ui); font-size: 11px; padding: 8px 10px; min-height: 36px; border: 1px solid rgba(19,40,60,.35); background: #fff; color: var(--chart-ink); cursor: pointer; }
.parts button.on { border-color: var(--chart-magenta); background: #FBEFF6; }
.parts button.ok::before { content: '✓ '; color: var(--live); font-weight: 700; }
.about { margin: 10px 0 0; font-family: var(--display); font-size: 16px; line-height: 1.55; max-width: 900px; border-left: 3px solid var(--chart-magenta); padding-left: 12px; }

.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.panel { border: 1.5px solid var(--chart-ink); background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.now .big { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.2vw, 54px); line-height: 1; color: var(--chart-magenta); min-height: 1em; overflow-wrap: anywhere; }
.now .big.hiddenq { color: var(--chart-ink-faint); }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kchip { border: 1px solid rgba(19,40,60,.3); padding: 6px 4px; text-align: center; min-width: 0; }
.kchip .r { display: block; font-family: var(--ui); font-size: 10.5px; color: var(--chart-ink-faint); min-height: 13px; }
.kchip .n { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.kchip.on { background: var(--chart-magenta); border-color: var(--chart-magenta); color: #fff; }
.kchip.on .r { color: #F7D9EA; }
.kchip.past { opacity: .5; }
.bpmrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bpm { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; }
.beats { display: flex; gap: 6px; }
.beats span { flex: 1 1 0; height: 9px; background: var(--chart-mid); }
.beats span.down { background: var(--chart-ink); }
.beats span.on { background: var(--chart-magenta); }
.rhythm { position: relative; height: 26px; background: var(--chart-paper); border: 1px solid rgba(19,40,60,.25); }
.rhythm i { position: absolute; top: 2px; bottom: 2px; background: var(--chart-land); border: 1px solid var(--chart-ink); font-style: normal; font-family: var(--ui); font-size: 9.5px; display: flex; align-items: center; padding-left: 3px; overflow: hidden; white-space: nowrap; box-sizing: border-box; }
.rhythm i.on { background: var(--chart-magenta); color: #fff; border-color: var(--chart-magenta); }
.frow { display: flex; align-items: center; gap: 10px; }
.frow .hl { width: 24px; }
.fings { display: flex; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.fing { font-family: var(--ui); font-size: 12px; font-weight: 500; width: 24px; height: 24px; border-radius: 50%; background: var(--rh-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fing.lh { background: var(--lh); }
.fing.next { background: transparent; color: var(--chart-ink-faint); border: 1px dashed rgba(19,40,60,.4); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--chart-ink-soft); margin-top: auto; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0; }
.controls .btn { min-height: 40px; }
.tempoctl { display: flex; align-items: center; gap: 4px; }
.tempoctl .mono { min-width: 54px; text-align: center; }
.loop { display: flex; flex-wrap: wrap; gap: 4px; }
.loop span { font-family: var(--ui); font-size: 10.5px; letter-spacing: .04em; padding: 6px 8px; border: 1px solid rgba(19,40,60,.25); color: var(--chart-ink-faint); }
.loop span.ok { border-color: var(--live); color: var(--live); background: #EAF4EC; }
.loop span.ok::before { content: '✓ '; }
.loop span.next { border-color: var(--chart-magenta); color: var(--chart-magenta); }

.stage { position: relative; flex: 1 1 auto; min-height: 380px; background: var(--chart-deep); border: 1.5px solid var(--chart-ink); display: flex; }
.stage.short { min-height: 230px; flex: 0 0 auto; height: 240px; }
#plStage.tall { height: max(380px, calc(100vh - 445px)); }
.stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: pointer; }
.result { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); background: var(--chart-paper); border: 1.5px solid var(--chart-ink); box-shadow: 6px 6px 0 rgba(0,0,0,.25); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.result h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.result .nums { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--ui); font-size: 12.5px; }
.result.pass { border-color: var(--live); }
.result .row .btn { min-height: 40px; }

/* ---------- listen ---------- */
/* fixed sizes throughout: nothing above the keyboard may change height as chords change */
#view-listen { display: flex; flex-direction: column; }
#view-listen .stage { flex: 0 0 auto; height: 200px; min-height: 0; }
.listen-top { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 10px; }
@media (min-width: 900px) { .listen-top { height: 300px; overflow: hidden; flex-wrap: nowrap; } }
#view-listen .lside .card { padding: 10px 14px; }
#view-listen .lside .card-title { margin-bottom: 6px; padding-bottom: 6px; }
.where { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr); gap: 16px; margin-top: 6px; }
@media (min-width: 900px) { .where { height: 196px; overflow: hidden; } }
@media (max-width: 899px) { .where { grid-template-columns: 1fr; } }
.nextbox, .progbox { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nextchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nchip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 1.5px solid var(--chart-ink); background: #fff; color: var(--chart-ink); padding: 7px 10px; min-height: 44px; cursor: pointer; font: inherit; min-width: 0; }
.nchip:hover { border-color: var(--chart-magenta); background: #FBEFF6; }
.nchip b { font-family: var(--display); font-size: 18px; line-height: 1.1; }
.nchip b em { font-style: normal; font-family: var(--ui); font-size: 10.5px; font-weight: 400; color: var(--chart-magenta); margin-left: 6px; }
.nchip span { font-family: var(--ui); font-size: 10.5px; color: var(--chart-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.progcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 899px) { .progcards { grid-template-columns: 1fr; } }
.pcard { border: 1.5px solid var(--chart-ink); background: #fff; padding: 9px 11px; display: flex; flex-direction: column; gap: 7px; min-width: 0; height: 160px; box-sizing: border-box; }
.pcard .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pcard .ph b { font-family: var(--display); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .ph span { font-family: var(--ui); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--chart-ink-faint); white-space: nowrap; }
.pchips { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.pchips span { flex: 1 1 0; min-width: 0; border: 1px solid rgba(19,40,60,.3); padding: 4px 2px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; }
.pchips span i { display: block; font-style: normal; font-family: var(--ui); font-weight: 400; font-size: 9.5px; color: var(--chart-ink-faint); }
.pchips span.hit { background: var(--live-soft); border-color: var(--live); }
.pchips span.now { background: var(--live); border-color: var(--live); color: #fff; }
.pchips span.now i { color: #DFF1E5; }
.pchips span.nx { border: 1.5px dashed var(--chart-magenta); color: var(--chart-magenta); }
.pcard .pnote { font-family: var(--display); font-size: 13.5px; color: var(--chart-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .row { margin-top: auto; gap: 6px; }
.pcard .row .btn { min-height: 32px; padding: 6px 9px; font-size: 10px; }
.pinned { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 16px; margin-top: 6px; border: 1.5px solid var(--chart-magenta); background: #FFF8FB; padding: 12px 14px; }
@media (min-width: 900px) { .pinned { height: 196px; box-sizing: border-box; overflow: hidden; } }
@media (max-width: 899px) { .pinned { grid-template-columns: 1fr; } }
.pin-now { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pin-big { display: flex; align-items: baseline; gap: 10px; }
.pin-big b { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1; color: var(--chart-magenta); }
.pin-big em { font-style: normal; font-family: var(--ui); font-size: 14px; color: var(--chart-ink-soft); }
.pin-strip { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pchips.big span { font-size: 18px; padding: 8px 4px; }
.pchips.big span i { font-size: 10.5px; }
.pin-strip .row { margin-top: auto; gap: 8px; }
.pin-strip .row .btn { min-height: 38px; }
.empty-note { font-family: var(--display); font-size: 15px; color: var(--chart-ink-soft); }
.playing { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.chordname { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 14px; height: 124px; white-space: nowrap; overflow: hidden; }
#lBig { font-family: var(--display); font-weight: 700; font-size: 118px; line-height: 1; }
#lSlash { font-family: var(--display); font-size: 62px; color: var(--chart-ink-soft); }
.playing.released #lBig, .playing.released #lSlash { color: #8FA2B4; }
.lsub { font-family: var(--display); font-size: 21px; height: 30px; line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tones { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 6px; height: 44px; overflow: hidden; }
.tone { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(19,40,60,.3); background: #fff; padding: 7px 11px; font-family: var(--display); font-size: 17px; }
.tag { font-family: var(--ui); font-size: 11px; min-width: 26px; height: 26px; border-radius: 13px; background: var(--live); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; box-sizing: border-box; }
.tag.root { background: var(--chart-ink); }
.lside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.alt { height: 58px; overflow: hidden; }
.alt div { display: flex; justify-content: space-between; gap: 10px; font-family: var(--display); font-size: 17px; padding: 3px 0; }
.alt span.mono { color: var(--chart-ink-faint); }
.keyguess { font-family: var(--display); font-weight: 700; font-size: 26px; height: 34px; white-space: nowrap; overflow: hidden; }
#lRoman { height: 42px; overflow: hidden; }
.recent { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 16px 0; height: 44px; }
.rchips { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; overflow: hidden; min-width: 0; flex: 1 1 auto; }
.rchips span { flex: 0 0 auto; white-space: nowrap; border: 1px solid rgba(19,40,60,.3); padding: 7px 11px; font-family: var(--display); font-size: 15px; }
.rchips span em { font-style: normal; font-family: var(--ui); font-size: 10.5px; color: var(--chart-ink-faint); margin-left: 4px; }
.rchips span.last { border: 1.5px solid var(--live); background: var(--live-soft); font-weight: 700; }

/* ---------- library ---------- */
.lib { display: flex; flex-wrap: wrap; border: 1.5px solid var(--chart-ink); background: var(--chart-paper); margin-top: 6px; }
.lib-list { flex: 1 1 250px; max-width: 320px; min-width: 0; border-right: 1.5px solid var(--chart-ink); padding: 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; max-height: 78vh; overflow-y: auto; }
.lib-list .fam { font-family: var(--ui); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--chart-ink-faint); margin: 10px 0 2px; }
.lib-list button.it { display: block; width: 100%; text-align: left; font-family: var(--display); font-size: 15px; padding: 8px 10px; min-height: 38px; background: transparent; border: 0; border-bottom: 1px solid rgba(19,40,60,.12); color: var(--chart-ink); cursor: pointer; }
.lib-list button.it:hover { background: var(--chart-mid); }
.lib-list button.it.on { background: var(--chart-ink); color: var(--chart-paper); }
.lib-list button.it .sym { font-family: var(--ui); font-size: 11px; color: var(--chart-ink-faint); margin-left: 6px; }
.lib-list button.it.on .sym { color: var(--chart-shallows); }
.lib-main { flex: 999 1 600px; min-width: 0; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.lib-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; }
.lib-head h2 { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.facts { display: flex; flex-direction: column; gap: 4px; font-family: var(--display); font-size: 16px; }
.facts b { font-family: var(--ui); font-size: 14px; }
.vtabs { flex-wrap: wrap; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.vcard { border: 1.5px solid var(--chart-ink); background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: var(--chart-ink); cursor: pointer; min-width: 0; }
.vcard:hover { border-color: var(--chart-magenta); }
.vcard.wide { grid-column: 1 / -1; cursor: default; }
.vcard .vh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vcard .vh b { font-family: var(--display); font-size: 17px; }
.vcard canvas { width: 100%; height: 86px; display: block; }
.vcard.wide canvas { height: 110px; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-actions .btn { min-height: 40px; }

/* ---------- path ---------- */
.path-head { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; padding-top: 6px; }
.path-head > div:first-child { flex: 999 1 520px; min-width: 0; }
.path-head h2 { margin: 0 0 6px; font-family: var(--display); font-size: 32px; }
.path-head p { margin: 0; font-family: var(--display); font-size: 16px; line-height: 1.5; max-width: 860px; }
.placed { flex: 1 1 320px; font-family: var(--display); font-size: 15px; line-height: 1.45; border: 1.5px solid var(--live); background: #EAF4EC; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.placed.none { border-color: var(--chart-magenta); background: #FBEFF6; }
.grid-wrap { overflow-x: auto; margin: 14px 0 8px; }
.pgrid { display: grid; grid-template-columns: minmax(170px, 1.1fr) repeat(5, minmax(120px, 1fr)); min-width: 980px; gap: 6px 0; }
.pgrid .hdr { font-family: var(--ui); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--chart-ink-faint); padding: 0 10px 4px; }
.lvl { display: contents; }
.lvl > * { background: #fff; border-top: 1.5px solid var(--chart-ink); border-bottom: 1.5px solid var(--chart-ink); }
.lvl > .lname { border-left: 1.5px solid var(--chart-ink); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; font: inherit; color: inherit; border-right: 0; }
.lvl > .cell:last-child { border-right: 1.5px solid var(--chart-ink); }
.lvl > .cell { font-family: var(--display); font-size: 13.5px; line-height: 1.35; padding: 10px; border-left: 1px solid rgba(19,40,60,.15); }
.lvl.cur > * { border-color: var(--chart-magenta); background: #FFF8FB; }
.lvl.cur > .cell { border-left-color: rgba(176,40,122,.2); }
.lvl.done > *, .lvl.tested > * { background: #F3F6F2; }
.lvl.locked > * { opacity: .55; }
.lvl.sel > .lname { box-shadow: inset 4px 0 0 var(--chart-magenta); }
.st { font-family: var(--ui); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.st.done { color: var(--live); } .st.tested { color: var(--chart-ink-soft); } .st.cur { color: var(--chart-magenta); } .st.locked { color: var(--chart-ink-faint); }
.lname b { font-family: var(--display); font-size: 17px; line-height: 1.2; }
.pb { height: 4px; background: var(--chart-mid); margin-top: 4px; }
.pb span { display: block; height: 100%; background: var(--chart-magenta); }
.path-bottom { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.lessons.card { flex: 999 1 560px; min-width: 0; padding: 0; }
.lessons .lhd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-bottom: 1.5px solid var(--chart-ink); }
.lessons .lhd b { font-family: var(--display); font-size: 19px; }
.lessons button.ls { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 14px; min-height: 48px; border: 0; border-bottom: 1px solid rgba(19,40,60,.12); background: transparent; text-align: left; font-family: var(--display); font-size: 15.5px; color: var(--chart-ink); cursor: pointer; }
.lessons button.ls:hover { background: var(--chart-mid); }
.lessons button.ls.next { background: #FBEFF6; font-weight: 700; }
.lessons .strand { font-family: var(--ui); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--chart-ink-faint); width: 92px; flex: 0 0 auto; }
.lessons .best { margin-left: auto; font-family: var(--ui); font-size: 11px; color: var(--chart-ink-faint); white-space: nowrap; }
.ldot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--chart-ink); font-family: var(--ui); font-size: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ldot.ok { background: var(--live); border-color: var(--live); color: #fff; }
.ldot.tested { border-style: dashed; color: var(--chart-ink-soft); }
.ldot.now { background: var(--chart-magenta); border-color: var(--chart-magenta); color: #fff; }
.loopcard { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.loopcard p { margin: 4px 0; font-family: var(--display); font-size: 15px; line-height: 1.45; }
.loopcard .btn { margin-top: auto; min-height: 46px; }

/* ---------- placement ---------- */
.pl-intro { max-width: 820px; padding: 18px 0; }
.pl-intro h2, .pl-done h2 { font-family: var(--display); font-size: 34px; margin: 0 0 8px; }
.pl-intro p { font-family: var(--display); font-size: 17px; line-height: 1.55; }
.pl-run { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 0 18px; }
.pl-task { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-task h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
.heard { border: 1.5px solid var(--live); background: #EAF4EC; padding: 10px 14px; font-family: var(--display); font-size: 16px; }
.timer { height: 6px; background: var(--chart-mid); }
.timer span { display: block; height: 100%; width: 100%; background: var(--chart-magenta); transition: width .2s linear; }
.pl-side { flex: 1 1 400px; min-width: 0; }
.track-row { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) 80px; gap: 10px; align-items: center; font-family: var(--display); font-size: 15px; padding: 5px 0; }
.track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.track span { height: 12px; background: var(--chart-mid); }
.track span.y { background: var(--live); } .track span.n { background: var(--warn); } .track span.q { background: var(--chart-magenta); }
.track-row .mono { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--chart-ink-faint); }
.pl-done { padding: 18px 0; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.pl-done p { font-family: var(--display); font-size: 17px; line-height: 1.5; margin: 0; }

@media (max-width: 700px) {
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-list { max-width: none; border-right: 0; border-bottom: 1.5px solid var(--chart-ink); max-height: 46vh; }
  .stage { min-height: 300px; }
}
