/* styles.css — dark neon club aesthetic. Colours steer off a hot/cool axis. */
:root {
  /* Serato pro-DJ workstation palette (app-wide, 2026-07) */
  --bg: #17191d;
  --panel: #1c1e23;
  --panel-2: #23262c;
  --ink: #c8cdd6;
  --muted: #8a9099;
  --line: #33363e;
  --hot: #e84545;    /* red — critical / negative */
  --warm: #ff9b2f;   /* amber — Deck B / warm accent */
  --cool: #28c8e0;   /* cyan — Deck A / primary */
  --good: #3ecf72;   /* green — positive */
  --font: 'Inter', 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
}

/* ── top bar ─────────────────────────────────────────────────────────── */
/* the menu is a full-screen video-game hub — no chrome; the top bar (nav +
   transport + status) stays on every other view for navigation and stop. */
body[data-view="menu"] .topbar { display: none; }
body[data-view="menu"] .view-menu { height: 100%; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  font-size: 26px; line-height: 1;
  color: var(--cool);
  filter: none;
}
.topbar h1 { margin: 0; font-size: 18px; letter-spacing: 0.5px; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.status {
  margin: 0; color: var(--muted); font-size: 12px; max-width: 40ch;
  text-align: right;
}

/* ── stage layout: rig · console (top) / floor · code (bottom) ────────── */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
  grid-template-rows: auto minmax(190px, 1fr);
  gap: 16px; padding: 16px; align-items: stretch;
  height: calc(100% - 62px);
}
.rig { grid-column: 1; grid-row: 1; }
.console { grid-column: 2; grid-row: 1; }
.floor { grid-column: 1; grid-row: 2; }
.codepanel { grid-column: 2; grid-row: 2; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex; flex-direction: column; min-height: 0;
}

/* ── the rig: track head + two turntables + crossfader ───────────────── */
.rig-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.rig-title h2 {
  margin: 0; font-size: 22px;
  background: linear-gradient(90deg, var(--ink), var(--warm));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.track-meta { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.deck-buttons { display: flex; gap: 8px; flex-shrink: 0; }

/* the DJ's status, compact (was its own panel) */
.now-mini {
  display: flex; align-items: center; gap: 10px;
  background: #0c0c16; border: 1px solid var(--line);
  border-radius: 11px; padding: 7px 12px; max-width: 30ch;
}
.now-mini .spinner {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--hot);
  animation: spin 1.1s linear infinite;
}
.now-verb { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.now-move { font-size: 12px; margin-top: 1px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  font-family: var(--font); font-size: 12px; cursor: pointer;
  border-radius: 9px; padding: 9px 12px; border: 1px solid var(--line);
  background: #1d1d30; color: var(--ink); transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--cool); color: #0a1012; border: none; font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 9px; font-size: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  opacity: 0.5; transition: all .25s;
}
.chip.on {
  color: #08121a; opacity: 1; border-color: transparent;
  background: linear-gradient(135deg, var(--cool), var(--good));
  box-shadow: 0 0 14px rgba(69, 182, 255, 0.4);
}
/* the lane currently being pitched — pulses in its own lane colour (--pitch set
   inline) so the chip, the highlighted code line and the pianoroll lane agree. */
.chip.pitching {
  opacity: 1; color: #fff;
  border-color: var(--pitch, var(--warm, #ff9a1f));
  animation: chip-pitch 1.15s ease-in-out infinite;
}
@keyframes chip-pitch {
  0%, 100% { box-shadow: 0 0 5px -1px var(--pitch, var(--warm, #ff9a1f)); }
  50%      { box-shadow: 0 0 15px 1px var(--pitch, var(--warm, #ff9a1f)); }
}
/* a render that failed to evaluate — a one-shot red pulse on the code panel. */
.eval-error { animation: eval-err 0.75s ease-out 1; }
@keyframes eval-err {
  0%   { box-shadow: 0 0 0 0 rgba(244, 63, 125, 0); }
  25%  { box-shadow: 0 0 0 2px var(--hot, #f43f7d), 0 0 22px 2px rgba(244, 63, 125, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 125, 0); }
}

/* ── the deck rig: two platters with a crossfader between ────────────── */
.deck-rig {
  display: grid; grid-template-columns: 1fr minmax(140px, 180px) 1fr;
  gap: 14px; align-items: stretch; margin: 4px 0 10px;
}
.deck-rig[hidden] { display: none; }
.tdeck {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 13px; border: 1px solid var(--line); border-radius: 14px;
  background: #0c0c16; min-width: 0;
}
.tdeck-tag {
  align-self: flex-start; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.tdeck-cap { font-size: 10.5px; color: var(--muted); }

/* a turntable platter: ridged mat, the disc (svg vinyl) spins inside it */
.platter2 {
  width: min(190px, 78%); aspect-ratio: 1 / 1; border-radius: 50%; padding: 7px;
  background: repeating-radial-gradient(circle at 50% 50%, #14141f 0 2px, #0d0d16 2px 4px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: box-shadow .25s;
}
.platter2 .disc { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.platter2 .disc svg { display: block; width: 100%; height: 100%; }
.platter2.spin .disc { animation: spin 3.6s linear infinite; }
/* the deck the crossfader currently favours glows in its own colour */
.tdeck-a .platter2.hot { box-shadow: 0 0 0 1px var(--line), 0 0 28px -4px rgba(69, 182, 255, 0.6), 0 10px 26px rgba(0, 0, 0, 0.5); }
.tdeck-b .platter2.hot { box-shadow: 0 0 0 1px var(--line), 0 0 28px -4px rgba(255, 77, 141, 0.6), 0 10px 26px rgba(0, 0, 0, 0.5); }

/* the crossfader strip between the decks */
.xfade { display: flex; flex-direction: column; gap: 8px; align-self: center; padding: 10px 4px; }
.xfade.off { visibility: hidden; }
.xfade-caps { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.xfade-word { font-size: 9.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); }
.xfade .btn.on { border-color: var(--cool); color: var(--cool); box-shadow: 0 0 10px -3px var(--cool); }
.xfader { width: 100%; accent-color: var(--hot); cursor: ew-resize; }
.xfade-hint { font-size: 9.5px; color: var(--muted); text-align: center; line-height: 1.4; }

/* the suggestion card riding Deck B */
.sg-empty { font-size: 12px; color: var(--muted); line-height: 1.5; }
.sg-card { width: 100%; text-align: center; }
.sg-kind {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; padding: 3px 9px; border-radius: 999px; color: #08121a;
  background: var(--muted);
}
.sg-kind.k-add { background: var(--good); }
.sg-kind.k-drop { background: var(--hot); color: #fff; }
.sg-kind.k-reshape { background: var(--warm); }
.sg-kind.k-fx { background: var(--cool); }
.sg-kind.k-double { background: #a64dff; color: #fff; }
.sg-kind.k-fill { background: #c3ccff; }
.sg-kind.k-save { background: linear-gradient(135deg, var(--good), var(--cool)); }
.sg-desc { font-size: 14px; color: var(--ink); margin: 7px 0 0; line-height: 1.35; }
.sg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; width: 100%; }
.sg-actions .btn { width: 100%; justify-content: center; padding: 11px; font-weight: 600; border: none; }
.vote-down { background: linear-gradient(135deg, #ff4d6d, #b23bff); color: #fff; }
.vote-up { background: linear-gradient(135deg, var(--good), #45b6ff); color: #08121a; }

/* ── the live code panel: the pattern the DJ is running, bottom-right ──── */
.code {
  margin: 0; flex: 1; min-height: 120px; overflow: auto;
  background: #07070f; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap;
  color: #c8c8e6;
}
.code.flash { animation: flash 0.6s ease; }
@keyframes flash {
  0% { box-shadow: 0 0 0 2px var(--hot) inset; border-color: var(--hot); }
  100% { box-shadow: none; border-color: var(--line); }
}
.code .str { color: var(--good); }
.code .num { color: var(--warm); }
.code .fn { color: var(--cool); }
/* the pitched lane's lines, tinted in its lane colour (inline style sets it) */
.sg-line { display: block; padding: 0 6px; border-left: 2px solid transparent; }
.sg-hl { border-left-color: var(--cool); border-radius: 3px; }

/* ── the console: dials + channel strips, retro hardware feel ─────────── */
.console h3, .floor h3, .log-head h3 {
  margin: 0 0 8px; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.console { gap: 4px; overflow: auto; }
.ctrl-block { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ctrl-block:first-of-type { border-top: 0; padding-top: 4px; }
.ctrl-title { margin: 0 0 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.ctrl-title small { text-transform: none; letter-spacing: 0; font-weight: normal; opacity: 0.75; margin-left: 6px; }

/* part mixer: one channel strip per lane — an explicit drop / auto / feature choice */
.part-mix { display: flex; flex-direction: column; gap: 5px; }
.pm-row { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; }
.pm-key { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.pm-seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  background: #0c0c16; border: 1px solid var(--line); border-radius: 8px; padding: 3px;
}
.pm-btn {
  font-family: var(--font); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--muted); background: transparent; border: 0; border-radius: 6px;
  padding: 5px 2px; cursor: pointer; transition: color .12s, background .12s, box-shadow .12s;
}
.pm-btn:hover { color: var(--ink); }
.pm-btn.on { color: #0a0a12; font-weight: 700; }
.pm-seg .pm-btn.on:first-child { background: var(--hot); box-shadow: 0 0 12px -2px var(--hot); }        /* drop */
.pm-seg .pm-btn.on:nth-child(2) { background: #3a3a52; color: var(--ink); }                              /* auto */
.pm-seg .pm-btn.on:last-child { background: var(--pm, var(--good)); box-shadow: 0 0 12px -2px var(--pm, var(--good)); } /* feature */

.density-block { margin-top: 14px; }
.density { width: 100%; accent-color: var(--warm); cursor: ew-resize; }
.density-scale { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
/* genre pills: pin the style with one tap, one lit at a time */
.genre-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-family: var(--font); font-size: 11px; color: var(--muted);
  background: #14141f; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; transition: color .12s, border-color .12s, background .12s;
}
.pill:hover { color: var(--ink); border-color: #3a3a52; }
.pill.on {
  color: #0a0a12; font-weight: 700; background: var(--cool); border-color: var(--cool);
  box-shadow: 0 0 14px -3px var(--cool);
}

/* ── floor: the roll (big) + a compact set history beside it ─────────── */
.floor { flex-direction: row; gap: 14px; }
.floor-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.floor-viz { position: relative; flex: 1; min-height: 150px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
#roll { display: block; width: 100%; height: 100%; background: #08080f; }
.floor-side { flex: 0 0 235px; width: 235px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.log-head h3 { margin: 0; }
.log-tools { display: flex; align-items: center; gap: 6px; }
.log-stat { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-head { font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 4px; }
.feed { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1 1 55%; min-height: 44px; }
.feed-row {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 7px; align-items: baseline;
  padding: 4px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 11px;
}
.feed-row.fresh { animation: feedflash 1s ease; }
@keyframes feedflash { from { background: rgba(255, 77, 141, 0.12); } to { background: transparent; } }
.fglyph { text-align: center; }
.fmsg { color: #cfcfe6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwhy { font-size: 10px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed-row.up .fwhy, .feed-row.up .fglyph { color: var(--good); }
.feed-row.down .fwhy, .feed-row.down .fglyph { color: var(--hot); }
.log { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1 1 45%; min-height: 44px; font-size: 11px; }
.log li { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04); color: #cfcfe6; }

/* ── press modal: the save moment — cut this track to a record ────────── */
.press-modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 12, 0.74); backdrop-filter: blur(5px);
}
.press-modal[hidden] { display: none; }
.press-sheet {
  width: min(430px, 92vw); max-height: 92vh; overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.press-title { margin: 0; font-size: 18px; }
.press-version { margin: 0; font-size: 11.5px; color: var(--warm); text-align: center; line-height: 1.45; }
.press-disc-wrap { width: min(220px, 60vw); aspect-ratio: 1 / 1; }
.press-disc { width: 100%; height: 100%; border-radius: 50%; animation: spin 5s linear infinite; }
.press-disc svg { display: block; width: 100%; height: 100%; }
.press-name-label {
  width: 100%; display: flex; flex-direction: column; gap: 6px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted);
}
.press-name {
  font-family: var(--font); font-size: 15px; text-align: center; color: var(--ink);
  background: #0a0a14; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.press-name:focus { outline: none; border-color: var(--cool); box-shadow: 0 0 0 2px rgba(69, 182, 255, 0.25); }
/* loop vs arranged-track format choice */
.press-format {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%;
  background: #0c0c16; border: 1px solid var(--line); border-radius: 10px; padding: 3px;
}
.pf-btn {
  font-family: var(--font); font-size: 11px; letter-spacing: 0.4px;
  color: var(--muted); background: transparent; border: 0; border-radius: 8px;
  padding: 8px 6px; cursor: pointer; transition: color .12s, background .12s;
}
.pf-btn:hover { color: var(--ink); }
.pf-btn.on { color: #0a0a12; font-weight: 700; background: var(--good); box-shadow: 0 0 12px -3px var(--good); }
.pf-hint { margin: 0; font-size: 10px; color: var(--muted); text-align: center; }
.press-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; width: 100%; }
/* on confirm: the freshly pressed record drops away into the crate */
.press-modal.pressed .press-disc { animation: press-away 0.5s ease-in forwards; }
@keyframes press-away { to { transform: translateY(140px) scale(0.2); opacity: 0; } }

/* ── crate rows: each record is the disc itself ──────────────────────── */
.crate { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 6px; align-content: start; }
.crate-empty { color: var(--muted); font-size: 12px; padding: 8px; line-height: 1.5; }
.crate-item {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px;
  background: #0f0f1c; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.crate-art { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: 0 0 64px; }
.crate-art svg { display: block; width: 100%; height: 100%; }
.crate-item.playing .crate-art { animation: spin 3.6s linear infinite; }
.crate-body { min-width: 0; }
.crate-meta strong { display: block; font-size: 13px; }
.crate-meta span { font-size: 11px; color: var(--muted); }
.crate-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.crate-tags span {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px;
}
.crate-tags .crate-hype { color: var(--good); border-color: rgba(56, 224, 166, 0.4); }
.crate-tags .crate-src { color: var(--warm); }
.crate-actions { display: flex; gap: 5px; }
.crate-actions button {
  width: 28px; height: 28px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line); background: #1a1a2c; color: var(--ink); font-size: 12px;
}
.crate-actions button:hover { filter: brightness(1.3); }

/* crate library tools (sort / export / import) */
.crate-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crate-sort {
  font-family: var(--font); font-size: 11px; color: var(--ink);
  background: #1d1d30; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; cursor: pointer;
}
.filelabel { cursor: pointer; }

/* ── app shell: views + top nav ──────────────────────────────────────── */
.view[hidden] { display: none; }

/* unified now-playing transport (header) — one source at a time */
.transport[hidden] { display: none; }
.transport {
  display: flex; align-items: center; gap: 9px;
  background: #0c0c16; border: 1px solid var(--line);
  border-radius: 10px; padding: 4px 6px 4px 10px;
}
.transport.frozen { border-color: var(--warm); }
.tp-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.tp-eq i {
  width: 3px; height: 100%; background: var(--good); border-radius: 2px;
  transform-origin: bottom; animation: eq 0.85s ease-in-out infinite;
}
.tp-eq i:nth-child(2) { animation-delay: .18s; }
.tp-eq i:nth-child(3) { animation-delay: .36s; }
.tp-eq i:nth-child(4) { animation-delay: .54s; }
.transport.frozen .tp-eq i { animation-play-state: paused; background: var(--warm); transform: scaleY(0.5); }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.tp-label { display: flex; align-items: center; gap: 7px; font-size: 12px; max-width: 26ch; }
.tp-label b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-kind {
  font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 7px; border-radius: 999px; color: #08121a; background: var(--good);
}
.tp-kind.preview { background: var(--cool); }
.tp-kind.frozen { background: var(--warm); }
.tp-kind.remix { background: #a64dff; }
.btn.ghost.active { border-color: var(--warm); color: var(--warm); }
.topnav { display: flex; gap: 4px; }
.topnav a {
  text-decoration: none; color: var(--muted); font-size: 12px;
  padding: 6px 12px; border-radius: 8px; border: 1px solid transparent;
  letter-spacing: 0.5px; transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--ink); background: #1a1a2c; }
.topnav a.active {
  color: var(--ink); border-color: var(--cool);
  background: var(--panel-2);
}

/* accessibility: keep #status for screen readers / errors without showing it */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── the live player: the shared reactive visualiser strip in the top bar ── */
.player { gap: 10px; }
.player-viz {
  display: block; width: 120px; height: 26px; border-radius: 6px;
  background: #07070d; flex: 0 0 auto;
}

/* ── pure-visual mode: the shared visualiser, full-screen over the menu ──── */
.visual-stage { position: fixed; inset: 0; z-index: 120; background: #000; cursor: pointer; }
.visual-stage[hidden] { display: none; }
.visual-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.visual-exit {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55; pointer-events: none;
}
body.visuals-open { overflow: hidden; }

/* ── the A/B on/off switch: hear the track (A, cyan) or the change (B, amber) ─ */
.abswitch { flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
.abswitch-end { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.abswitch-end.a { color: var(--cool); }
.abswitch-end.b { color: var(--warm); }
.abswitch-toggle { position: relative; width: 52px; height: 26px; display: inline-block; cursor: pointer; flex: 0 0 auto; }
.abswitch-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.abswitch-slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); transition: background .15s, border-color .15s;
}
.abswitch-slider::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--cool); transition: transform .18s, background .18s;
}
.abswitch-toggle input:checked ~ .abswitch-slider { border-color: var(--warm); }
.abswitch-toggle input:checked ~ .abswitch-slider::before { transform: translateX(26px); background: var(--warm); }
.abswitch-toggle input:focus-visible ~ .abswitch-slider { box-shadow: 0 0 0 2px var(--cool); }

/* ── menu: signal-bloom hub (scoped palette — menu view only) ─────────── */
.view-menu {
  --m-bg: #17191d; --m-ink: #e8ecf2; --m-muted: #8a9099;
  --m-violet: #28c8e0; --m-cyan: #28c8e0; --m-pink: #ff9b2f; --m-amber: #f5a623;
  --m-line: rgba(51, 54, 62, 0.7);
  position: relative; overflow: hidden; height: calc(100% - 62px);
  color: var(--m-ink);
  background: var(--m-bg);
}
.menu-viz { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0.4; }
.menu-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; z-index: 1;
  background-image: radial-gradient(#fff 0.5px, transparent 0.6px); background-size: 3px 3px;
}
.menu-hub {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7vh; padding: 8vh 5vw;
}

/* central wordmark — the app title, in a synthy/retro face */
.menu-word {
  margin: 0; line-height: 0.9; text-align: center;
  font-family: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: clamp(56px, 12vw, 168px);
  color: var(--m-ink);
}

/* channels: a true retro-game select — just words, one lit with a blinking cursor */
.menu-channels { display: grid; gap: 18px; width: min(460px, 88vw); justify-items: center; }
.channel {
  position: relative; text-decoration: none; color: var(--m-muted);
  font-size: clamp(26px, 4.6vw, 42px); letter-spacing: 3px; text-transform: uppercase;
  padding: 4px 12px; transition: color .14s, text-shadow .14s;
}
/* the small highlight: selected word lights up + a blinking arrow cursor */
.channel.sel { color: var(--m-ink); text-shadow: 0 0 16px var(--m-cyan); }
.channel.sel::before {
  content: "▸"; position: absolute; left: -0.9em; color: var(--m-cyan);
  animation: chBlink 1s steps(1, end) infinite;
}
.channel:hover { color: var(--m-ink); }
@keyframes chBlink { 50% { opacity: 0; } }

/* ── crate: saved-record playback page ───────────────────────────────── */
.view-crate { padding: 16px; height: calc(100% - 62px); display: flex; justify-content: center; }
.crate-page { max-width: 720px; width: 100%; }
.crate-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.crate-page-head h2 { margin: 0; font-size: 18px; }
.crate-page-head small { color: var(--muted); font-size: 12px; font-weight: normal; }
.crate-page .crate { flex: 1; min-height: 0; max-height: none; }
.crate-item.playing { border-color: var(--good); box-shadow: 0 0 12px rgba(56, 224, 166, 0.25); }

/* the remix view's empty-state card (shared style) */
.vote-empty {
  color: var(--muted); font-size: 13px; line-height: 1.6; padding: 22px;
  background: #0c0c16; border: 1px dashed var(--line); border-radius: 12px;
}
.vote-empty b { color: var(--ink); }

/* ── remix: the Authentic Deck (two-deck DJ console) ─────────────────── */
.view-remix {
  padding: 16px; height: calc(100% - 62px); display: flex; justify-content: center; overflow: auto;
  --rx-violet: #28c8e0; --rx-cyan: #28c8e0; --rx-pink: #ff9b2f; --rx-amber: #f5a623;
  --rx-green: #3ecf72; --rx-muted: #8a9099; --rx-line: rgba(51, 54, 62, 0.7);
}
.remix-console { max-width: 1040px; width: 100%; gap: 14px; }
.remix-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.remix-head h2 { margin: 0; font-size: 20px; }
.remix-head h2 small { color: var(--muted); font-size: 12px; font-weight: normal; }

/* deck-tag chip (shared with the Tinker deck rig — keep these here) */
.deck-tag { font-size: 9px; padding: 2px 7px; border-radius: 999px; background: #1a1a2c; color: var(--ink); letter-spacing: 1px; }
.tdeck-a .deck-tag { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.45); }
.tdeck-b .deck-tag { box-shadow: inset 0 0 0 1px rgba(255, 77, 141, 0.45); }

/* record shelf: sleeves with →A / →B load buttons */
.remix-shelf-wrap { overflow-x: auto; padding-bottom: 4px; }
.remix-shelf { display: flex; gap: 10px; min-height: 96px; }
.rx-sleeve {
  flex: 0 0 auto; width: 72px; border: 1px solid var(--rx-line); border-radius: 10px;
  overflow: hidden; background: #0a0a14; display: flex; flex-direction: column;
}
.rx-sleeve.on-a { border-color: var(--rx-cyan); box-shadow: 0 0 0 1px var(--rx-cyan); }
.rx-sleeve.on-b { border-color: var(--rx-pink); box-shadow: 0 0 0 1px var(--rx-pink); }
.rx-sleeve.on-a.on-b { box-shadow: 0 0 0 1px var(--rx-cyan), 0 0 10px rgba(255, 155, 47, 0.4); }
.rx-sleeve .shelf-art { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
.rx-sleeve .shelf-art svg { display: block; width: 100%; height: 100%; }
.rx-sleeve .shelf-name {
  font-size: 8.5px; text-align: center; padding: 2px 3px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rx-sleeve-load { display: flex; }
.rx-sleeve-load button {
  flex: 1; font: inherit; font-size: 9px; letter-spacing: 0.5px; cursor: pointer; padding: 3px 0;
  background: #0b0916; color: var(--ink); border: 0; border-top: 1px solid var(--rx-line);
}
.rx-sleeve-load button:first-child { border-right: 1px solid var(--rx-line); }
.rx-sleeve-load button:first-child:hover { color: #06202a; background: var(--rx-cyan); }
.rx-sleeve-load button:last-child:hover { color: #1a000e; background: var(--rx-pink); }
.remix-shelf-empty { color: var(--muted); font-size: 12px; align-self: center; padding: 20px 6px; }

/* phrase timeline — the hero */
.rx-timeline { background: var(--panel); border: 1px solid var(--rx-line); border-radius: 4px; padding: 14px 16px; }
.rx-timeline-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.rx-timeline-head h3 { margin: 0; font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.rx-readouts { display: flex; align-items: center; gap: 16px; flex: 1; flex-wrap: wrap; }
.rx-readout { display: flex; flex-direction: column; gap: 1px; }
.rx-readout .rx-k { font-size: 8.5px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.rx-readout .rx-v { font-size: 14px; font-weight: 700; color: var(--ink); }
.rx-readout .rx-v.cyan { color: var(--rx-cyan); }
.rx-readout .rx-v.amber { color: var(--rx-amber); }
.rx-mixnow {
  margin-left: auto; padding: 9px 16px; border-radius: 9px; font-size: 11px; letter-spacing: 3px;
  font-weight: 700; text-transform: uppercase; text-align: center; min-width: 104px; white-space: nowrap;
  border: 1px solid rgba(255, 184, 48, 0.25); color: rgba(255, 184, 48, 0.3); background: rgba(255, 184, 48, 0.04);
  transition: all .12s;
}
.rx-mixnow.pulse { color: #1a0a00; background: var(--rx-amber); border-color: var(--rx-amber); box-shadow: 0 0 22px rgba(255, 184, 48, 0.7); }
.rx-canvas { width: 100%; height: 64px; display: block; border-radius: 8px; background: #05030e; }
.rx-arm-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rx-arm-label { font-size: 9px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.rx-arm {
  font: inherit; font-size: 11px; letter-spacing: 1.5px; cursor: pointer; padding: 8px 16px; border-radius: 9px;
  color: var(--ink); font-weight: 600; background: #0b0916; border: 1px solid rgba(255, 255, 255, 0.14);
  text-transform: uppercase; transition: all .15s;
}
.rx-arm:hover { border-color: var(--rx-cyan); }
.rx-arm[data-target="a"].armed { background: var(--rx-cyan); border-color: var(--rx-cyan); color: #06202a; box-shadow: 0 0 16px rgba(34, 211, 238, 0.55); }
.rx-arm[data-target="b"].armed { background: var(--rx-pink); border-color: var(--rx-pink); color: #1a000e; box-shadow: 0 0 16px rgba(255, 155, 47, 0.55); }
.rx-boundary { font: inherit; font-size: 11px; cursor: pointer; padding: 8px 12px; border-radius: 8px; background: #0b0916; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.14); }
.rx-autofade { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; cursor: pointer; }
.rx-autofade input { accent-color: var(--rx-violet); }
.rx-dropped { font-size: 11px; letter-spacing: 2px; color: var(--rx-green); text-transform: uppercase; opacity: 0; transition: opacity .4s; margin-left: auto; }
.rx-dropped.show { opacity: 1; }

/* the rig: Deck A | Mixer | Deck B */
.rx-rig { display: grid; grid-template-columns: 1fr minmax(220px, 300px) 1fr; gap: 14px; align-items: start; }
.rx-deck { border: 1px solid var(--rx-line); border-radius: 14px; padding: 12px; background: #0c0c16; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rx-deck .deck-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; justify-content: center; }
.rx-deck.a .deck-tag { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.5); }
.rx-deck.b .deck-tag { box-shadow: inset 0 0 0 1px rgba(255, 155, 47, 0.5); }
.rx-platter {
  width: min(130px, 40vw); height: auto; aspect-ratio: 1; padding: 0; display: grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #171226, #0a0814 70%); box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
}
.rx-platter.spin { animation: spin 2.4s linear infinite; }
.rx-platter .rx-disc { width: 92%; height: 92%; }
.rx-platter .rx-disc svg { display: block; width: 100%; height: 100%; }
.rx-platter .rx-empty {
  width: 86%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(157, 143, 199, 0.35);
  display: grid; place-items: center; color: var(--muted); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
}
.rx-meta { text-align: center; font-size: 11px; color: var(--muted); min-height: 30px; line-height: 1.4; }
.rx-stem { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.rx-stem-head { font-size: 8.5px; letter-spacing: 2.5px; color: var(--muted); text-transform: uppercase; text-align: center; }
.rx-stem-note { font-size: 10px; color: var(--muted); text-align: center; font-style: italic; }
.rx-stem-chip { display: flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 7px; padding: 4px 7px; }
.rx-stem-label { flex: 1; font-size: 9.5px; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; }
.rx-stem-chip button { font: inherit; font-size: 9px; letter-spacing: 0.5px; cursor: pointer; padding: 2px 7px; border-radius: 5px; background: #0b0916; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--muted); }
.rx-stem-chip .rx-mute.on { background: var(--rx-pink); border-color: var(--rx-pink); color: #1a0008; font-weight: 700; }
.rx-stem-chip .rx-solo.on { background: #f5c842; border-color: #f5c842; color: #1a1000; font-weight: 700; }
.rx-filter { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 8px; }
.rx-filter-k { font-size: 8.5px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.rx-filter input { width: 100%; accent-color: var(--rx-amber); }
.rx-filter-v { font-size: 10px; color: var(--ink); }

/* centre mixer */
.rx-mixer { border: 1px solid var(--rx-line); border-radius: 4px; padding: 14px 12px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.rx-mixer h3 { margin: 0; text-align: center; font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.rx-xfade { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.rx-xfade span { font-size: 12px; font-weight: 700; }
.rx-xfade .a { color: var(--rx-cyan); }
.rx-xfade .b { color: var(--rx-pink); }
.rx-xfade input { width: 100%; accent-color: var(--rx-cyan); }
.rx-xfade-cap { text-align: center; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-top: -6px; }
.rx-trims { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rx-trim { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; letter-spacing: 1.5px; padding: 8px 4px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; }
.rx-trim.a { color: var(--rx-cyan); }
.rx-trim.b { color: var(--rx-pink); }
.rx-trim input { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 68px; accent-color: var(--rx-violet); }
.rx-trim span { color: var(--ink); }
.rx-swaps { display: flex; flex-direction: column; gap: 6px; }
.rx-swap-head { font-size: 8.5px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; text-align: center; }
.rx-swap { font: inherit; font-size: 10px; letter-spacing: 1px; cursor: pointer; padding: 8px; border-radius: 9px; text-transform: uppercase; font-weight: 600; color: var(--rx-violet); background: rgba(122, 92, 255, 0.08); border: 1px solid rgba(122, 92, 255, 0.35); }
.rx-swap:hover { background: rgba(122, 92, 255, 0.18); }

/* master bar */
.rx-master { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border: 1px solid var(--rx-line); border-radius: 14px; padding: 12px 16px; background: #0c0c16; }
.rx-paddles { display: flex; gap: 8px; }
.rx-paddle { font: inherit; font-size: 11px; letter-spacing: 1px; cursor: pointer; padding: 8px 12px; border-radius: 9px; color: var(--ink); background: #0b0916; border: 1px solid rgba(255, 255, 255, 0.14); user-select: none; -webkit-user-select: none; text-align: center; }
.rx-paddle small { display: block; font-size: 8px; letter-spacing: 0.5px; color: var(--muted); margin-top: 2px; }
.rx-paddle.held { background: var(--rx-pink); border-color: var(--rx-pink); color: #fff; box-shadow: 0 0 16px rgba(255, 155, 47, 0.6); font-weight: 700; }
.rx-paddle.held small { color: rgba(255, 255, 255, 0.7); }
.rx-nudge { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.rx-nudge input { width: 110px; accent-color: var(--rx-pink); }
.rx-nudge b { color: var(--ink); font-size: 11px; min-width: 44px; }
.rx-tempo { font-size: 11px; color: var(--rx-cyan); letter-spacing: 1px; }
.rx-press { margin-left: auto; }

.remix-roll { position: relative; height: 140px; border-radius: 10px; overflow: hidden; border: 1px solid var(--rx-line); background: #08080f; }
#remixRoll { display: block; width: 100%; height: 100%; }

/* ── responsive: stack on narrow screens ─────────────────────────────── */
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .rig, .console, .floor, .codepanel { grid-column: 1; grid-row: auto; }
  .code { flex: 0 0 auto; max-height: 300px; }
  .deck-rig { grid-template-columns: 1fr; }
  .xfade { width: min(320px, 90%); margin: 0 auto; }
  .platter2 { width: min(190px, 60%); }
  .floor { flex-direction: column; }
  .floor-side { width: auto; flex: 0 0 auto; max-height: 260px; }
  .menu-hub { gap: 5vh; padding: 8vh 6vw 12vh; }
  .rx-rig { grid-template-columns: 1fr; }
  .rx-master { gap: 10px; }
  .status { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LIVE · SERATO RESKIN — pro-DJ workstation look, scoped to the Live view only.
   Charcoal panels · hairline seams · Deck A cyan / Deck B amber · Inter + tabular
   numerals · flat (no neon glow, gradient-text or pillow radii). Sources:
   Serato DJ Pro / Ableton Live / Pioneer Rekordbox. Fully reversible — delete
   this block and the Live view returns to the dark-neon club theme. Other views
   (menu · crate · remix) are untouched because every rule is scoped to
   body[data-view="live"]. Inter is preferred but falls back to Segoe UI/system-ui
   so it holds up with no web font loaded. Colours: British spelling in comments. */
body[data-view="live"] {
  --sr-bg:#17191d; --sr-panel:#1c1e23; --sr-raised:#23262c; --sr-surface:#2a2d34;
  --sr-border:#33363e; --sr-border-hi:#44484f; --sr-muted:#555a63; --sr-label:#8a9099;
  --sr-text:#c8cdd6; --sr-bright:#e8ecf2;
  --sr-a:#28c8e0;   /* Deck A — cyan  */
  --sr-b:#ff9b2f;   /* Deck B — amber */
  --sr-green:#3ecf72; --sr-amber:#f5a623; --sr-red:#e84545;
  --sr-ui:'Inter','Segoe UI',system-ui,'Helvetica Neue',Arial,sans-serif;
  --sr-mono:'JetBrains Mono','Cascadia Code','Consolas',ui-monospace,monospace;
  background:#17191d;
  color:var(--sr-text);
  font-family:var(--sr-ui);
}

/* transport bar (shared topbar, restyled only while Live) */
body[data-view="live"] .topbar { background:#111316; border-bottom:1px solid #000; backdrop-filter:none; }
body[data-view="live"] .logo { background:none; -webkit-text-fill-color:var(--sr-bright); color:var(--sr-bright); filter:none; font-size:22px; }
body[data-view="live"] .topbar h1 { font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--sr-bright); }
body[data-view="live"] .tagline, body[data-view="live"] .status { color:var(--sr-muted); }

/* workstation grid: thin near-black seams between flat panels */
body[data-view="live"] .stage { gap:3px; padding:3px; background:#0a0b0d; }
body[data-view="live"] .panel { background:var(--sr-panel); border:1px solid var(--sr-border); border-radius:3px; padding:10px; gap:8px; }

/* section titles → Serato panel-header labels */
body[data-view="live"] .console h3,
body[data-view="live"] .floor h3,
body[data-view="live"] .log-head h3,
body[data-view="live"] .codepanel h3 {
  font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--sr-label); margin:0 0 8px; padding-bottom:6px; border-bottom:1px solid var(--sr-border);
}

/* rig head + track identity */
body[data-view="live"] .rig-title h2 { background:none; -webkit-text-fill-color:var(--sr-bright); color:var(--sr-bright); font-size:15px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
body[data-view="live"] .track-meta { color:var(--sr-label); font-variant-numeric:tabular-nums; letter-spacing:.03em; }
body[data-view="live"] .now-mini { background:var(--sr-raised); border:1px solid var(--sr-border); border-radius:3px; }
body[data-view="live"] .now-mini .spinner { border-color:var(--sr-border); border-top-color:var(--sr-a); }
body[data-view="live"] .now-verb { color:var(--sr-muted); }
body[data-view="live"] .now-move { color:var(--sr-text); }

/* buttons — flat Serato controls */
body[data-view="live"] .btn { font-family:var(--sr-ui); font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; border-radius:2px; padding:6px 10px; background:var(--sr-surface); border:1px solid var(--sr-border); color:var(--sr-text); }
body[data-view="live"] .btn:hover { filter:none; background:var(--sr-raised); border-color:var(--sr-border-hi); color:var(--sr-bright); }
body[data-view="live"] .btn.primary { background:var(--sr-a); border:1px solid var(--sr-a); color:#0a1012; font-weight:700; }
body[data-view="live"] .btn.primary:hover { background:#38d8f0; border-color:#38d8f0; }
body[data-view="live"] .btn.ghost { background:transparent; border-color:transparent; color:var(--sr-label); }
body[data-view="live"] .btn.ghost:hover { background:var(--sr-surface); border-color:var(--sr-border); color:var(--sr-text); }
body[data-view="live"] .btn.small { padding:4px 8px; font-size:9px; }
body[data-view="live"] .btn.ghost.active { border-color:var(--sr-a); color:var(--sr-a); background:var(--sr-surface); }

/* arrangement chips */
body[data-view="live"] .chip { border-radius:2px; font-size:9px; letter-spacing:.06em; padding:2px 8px; border:1px solid var(--sr-border); color:var(--sr-muted); opacity:1; background:var(--sr-surface); }
body[data-view="live"] .chip.on { color:var(--sr-a); background:rgba(40,200,224,.08); border-color:var(--sr-a); box-shadow:none; }
body[data-view="live"] .chip.pitching { color:var(--sr-b); border-color:var(--sr-b); background:rgba(255,155,47,.08); animation:none; }
body[data-view="live"] .sg-empty { color:var(--sr-label); }

/* deck rig — two decks framed A=cyan / B=amber */
body[data-view="live"] .tdeck { background:var(--sr-raised); border:1px solid var(--sr-border); border-radius:3px; gap:6px; padding:8px; }
body[data-view="live"] .tdeck-tag { color:var(--sr-label); font-size:9px; letter-spacing:.1em; }
body[data-view="live"] .tdeck-a .deck-tag { color:var(--sr-a); font-weight:700; }
body[data-view="live"] .tdeck-b .deck-tag { color:var(--sr-b); font-weight:700; }
body[data-view="live"] .tdeck-cap { color:var(--sr-label); font-variant-numeric:tabular-nums; }
body[data-view="live"] .platter2 { background:#0d0e11; box-shadow:none; border:1px solid var(--sr-border); padding:6px; }
body[data-view="live"] .tdeck-a .platter2.hot { box-shadow:0 0 0 1px var(--sr-a); }
body[data-view="live"] .tdeck-b .platter2.hot { box-shadow:0 0 0 1px var(--sr-b); }

/* crossfader */
body[data-view="live"] .xfade-word, body[data-view="live"] .xfade-hint { color:var(--sr-muted); }
body[data-view="live"] .xfader { accent-color:var(--sr-a); }
body[data-view="live"] .xfade .btn.on { border-color:var(--sr-a); color:var(--sr-a); box-shadow:none; }
body[data-view="live"] #abB.on { border-color:var(--sr-b); color:var(--sr-b); }

/* Deck B pitch card + approve/skip */
body[data-view="live"] .sg-kind { border-radius:2px; font-size:9px; letter-spacing:.06em; }
body[data-view="live"] .sg-desc { color:var(--sr-bright); font-size:12px; }
body[data-view="live"] .sg-actions .btn { border-radius:2px; border:1px solid var(--sr-border); }
body[data-view="live"] .vote-down { background:transparent; border-color:var(--sr-red); color:var(--sr-red); }
body[data-view="live"] .vote-down:hover { background:rgba(232,69,69,.12); }
body[data-view="live"] .vote-up { background:transparent; border-color:var(--sr-green); color:var(--sr-green); }
body[data-view="live"] .vote-up:hover { background:rgba(62,207,114,.12); }

/* console: genre · density · parts */
body[data-view="live"] .ctrl-block { border-top:1px solid var(--sr-border); }
body[data-view="live"] .ctrl-title { color:var(--sr-label); font-size:9px; letter-spacing:.1em; }
body[data-view="live"] .ctrl-title small { color:var(--sr-muted); }
body[data-view="live"] .pill { font-family:var(--sr-ui); font-size:9px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; border-radius:2px; padding:3px 7px; background:var(--sr-surface); border:1px solid var(--sr-border); color:var(--sr-label); }
body[data-view="live"] .pill:hover { color:var(--sr-text); border-color:var(--sr-border-hi); }
body[data-view="live"] .pill.on { background:rgba(40,200,224,.1); border-color:var(--sr-a); color:var(--sr-a); box-shadow:none; font-weight:700; }
body[data-view="live"] .density { accent-color:var(--sr-a); }
body[data-view="live"] .density-scale { color:var(--sr-muted); }
body[data-view="live"] .pm-key { color:var(--sr-text); font-size:9px; letter-spacing:.05em; }
body[data-view="live"] .pm-seg { background:var(--sr-bg); border:1px solid var(--sr-border); border-radius:2px; }
body[data-view="live"] .pm-btn { font-family:var(--sr-ui); font-size:8px; color:var(--sr-muted); border-radius:1px; }
body[data-view="live"] .pm-btn:hover { color:var(--sr-text); }
body[data-view="live"] .pm-seg .pm-btn.on:first-child { background:var(--sr-red); color:#0a0a12; box-shadow:none; }
body[data-view="live"] .pm-seg .pm-btn.on:nth-child(2) { background:var(--sr-surface); color:var(--sr-text); box-shadow:none; }
body[data-view="live"] .pm-seg .pm-btn.on:last-child { background:var(--sr-a); color:#0a1012; box-shadow:none; }

/* floor: the roll + set history (VU-style green/red keep/skip dots) */
body[data-view="live"] .floor-viz { border:1px solid var(--sr-border); border-radius:3px; }
body[data-view="live"] #roll { background:#0d0e11; }
body[data-view="live"] .log-stat { color:var(--sr-label); }
body[data-view="live"] .feed-head { color:var(--sr-muted); font-size:8px; letter-spacing:.1em; }
body[data-view="live"] .feed-row { border-bottom:1px solid rgba(51,54,62,.4); font-size:10px; }
body[data-view="live"] .fmsg { color:var(--sr-text); }
body[data-view="live"] .fwhy { color:var(--sr-muted); }
body[data-view="live"] .feed-row.up .fwhy, body[data-view="live"] .feed-row.up .fglyph { color:var(--sr-green); }
body[data-view="live"] .feed-row.down .fwhy, body[data-view="live"] .feed-row.down .fglyph { color:var(--sr-red); }
body[data-view="live"] .log li { border-bottom:1px solid rgba(51,54,62,.35); color:var(--sr-text); font-size:10px; }
@keyframes sr-feedflash { from { background:rgba(40,200,224,.12); } to { background:transparent; } }
body[data-view="live"] .feed-row.fresh { animation:sr-feedflash 1s ease; }

/* live code — IDE-flavoured pane, Serato/One-Dark token palette */
body[data-view="live"] .code { font-family:var(--sr-mono); background:#0d0e11; border:1px solid var(--sr-border); border-radius:3px; color:#aab1bf; font-size:11px; line-height:1.6; }
body[data-view="live"] .code .str { color:#98c379; }
body[data-view="live"] .code .num { color:#d19a66; }
body[data-view="live"] .code .fn { color:#61afef; }
body[data-view="live"] .sg-hl { border-left-color:var(--sr-a); }
@keyframes sr-flash { 0% { box-shadow:0 0 0 1px var(--sr-a) inset; border-color:var(--sr-a); } 100% { box-shadow:none; border-color:var(--sr-border); } }
body[data-view="live"] .code.flash { animation:sr-flash .6s ease; }

/* thin workstation scrollbars */
body[data-view="live"] ::-webkit-scrollbar { width:5px; height:5px; }
body[data-view="live"] ::-webkit-scrollbar-thumb { background:var(--sr-border); border-radius:2px; }
body[data-view="live"] ::-webkit-scrollbar-track { background:transparent; }

/* slightly larger right-hand interaction controls — the approve/skip verdict
   buttons and the console (genre pills + part-mixer) read a touch bigger */
body[data-view="live"] .sg-actions .btn { font-size:12px; padding:11px 12px; letter-spacing:.06em; }
body[data-view="live"] .pill { font-size:10px; padding:4px 9px; }
body[data-view="live"] .pm-btn { font-size:9px; }
