/* Be Nice Bot — a mixing desk: slate console, brushed aluminium, masking-tape scribble strips, LED ladders */
@font-face { font-family: "Oxanium"; src: url(../assets/fonts/Oxanium-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oxanium"; src: url(../assets/fonts/Oxanium-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kumbh Sans"; src: url(../assets/fonts/KumbhSans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kumbh Sans"; src: url(../assets/fonts/KumbhSans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kumbh Sans"; src: url(../assets/fonts/KumbhSans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Brygada 1918"; src: url(../assets/fonts/Brygada1918-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Brygada 1918"; src: url(../assets/fonts/Brygada1918-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Brygada 1918"; src: url(../assets/fonts/Brygada1918-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --slate: #20242B; --slate2: #2A2F37; --slate3: #353B45; --deep: #15181D; --wall: #E3E6EA; --wall2: #D3D8DE; --ink: #15181D; --ink2: #4A525E;
  --tape: #ECE8DA; --tape-ink: #2B2A26; --led-off: #3A3F47;
  --plain: #56B4E9; --frustrated: #E69F00; --pushback: #2F8FD6; --creative: #CC79A7; --testing: #009E73; --rude: #F0E442; --cruel: #D55E00;
  --hot: #E5484D; --go: #3DD68C;
  --head: "Oxanium", "Kumbh Sans", system-ui, sans-serif; --text: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Brygada 1918", Georgia, serif;
  --code: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --w: 1200px; --gut: max(16px, calc((100vw - var(--w)) / 2));
  --alu: linear-gradient(180deg, #DCE0E4 0%, #B9BFC6 45%, #D3D8DD 55%, #A9B0B8 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--slate); overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
code { font-family: var(--code); font-size: .88em; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rude); outline-offset: 3px; }
.sprite { position: absolute; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--rude); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.lbl { display: block; font: 500 12.5px/1.3 var(--head); letter-spacing: .06em; color: #9CA6B2; margin-bottom: 6px; }

/* ---------------------------------------------------------------- keys (rubber console buttons) */
.key { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; padding: 9px 16px; font: 700 14.5px/1.2 var(--head); letter-spacing: .02em;
  background: linear-gradient(180deg, #4A515C, #353B45); color: #EEF1F4; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 3px 0 #15181D, 0 5px 10px rgba(0,0,0,.25); }
.key:hover { filter: brightness(1.12); }
.key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 0 #15181D; }
.key[aria-checked="true"], .key[aria-pressed="true"] { background: linear-gradient(180deg, #F6EE7A, var(--rude)); color: var(--ink); }
.key:disabled { opacity: .45; cursor: default; }
.wall .key { box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 3px 0 #0E1013, 0 5px 10px rgba(0,0,0,.15); }

/* ---------------------------------------------------------------- 1. the desk */
.desk { padding: 34px var(--gut) 40px; color: #E8ECF0; background: radial-gradient(110% 70% at 50% 0%, #2E343D 0%, var(--slate) 60%); border-bottom: 10px solid var(--deep); }
.bridge { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: center; padding: 26px 30px; border-radius: 14px; background: linear-gradient(180deg, #1A1E24, #23282F); box-shadow: inset 0 0 0 1px #3B424C, 0 14px 30px rgba(0,0,0,.35); }
.model { margin: 0; font: 500 14px/1 var(--head); letter-spacing: .12em; color: #8F9AA6; }
.model span { color: var(--rude); }
.brand h1 { margin: 8px 0 12px; font: 700 clamp(46px, 7.4vw, 96px)/.95 var(--head); letter-spacing: -.01em; color: #F4F6F8; }
.tag { margin: 0; max-width: 64ch; font-size: 18px; color: #C9D1D9; }
.tag b { color: #fff; font-weight: 700; }
.onair { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 10px; background: #0E1013; box-shadow: inset 0 2px 8px rgba(0,0,0,.7), 0 0 0 1px #3B424C; min-height: 120px; }
.lamp { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--plain); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--plain) 60%, transparent), inset 0 -4px 8px rgba(0,0,0,.35); transition: background .25s, box-shadow .25s; }
.onair-txt { display: grid; gap: 2px; min-width: 0; }
.onair-txt small { font: 500 11.5px/1 var(--head); letter-spacing: .1em; color: #8F9AA6; }
.onair-txt b { font: 700 34px/1.05 var(--head); color: #fff; }
.onair-txt i { font-style: normal; font-size: 14px; color: #B9C2CC; }
.strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; margin-top: 22px; align-items: stretch; }
.talk { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: 12px; background: var(--slate2); box-shadow: inset 0 0 0 1px #3D444F; }
.talk textarea { width: 100%; resize: vertical; padding: 14px 16px; border: 0; border-radius: 8px; background: #0E1013; color: #F2F4F6; font: 500 19px/1.45 var(--text); box-shadow: inset 0 2px 8px rgba(0,0,0,.7); }
.cues { display: flex; flex-wrap: wrap; gap: 6px; }
.cues button { border: 0; border-radius: 4px; padding: 5px 10px; font: 500 12.5px/1.2 var(--head); background: var(--tape); color: var(--tape-ink); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.cues button:hover { background: #fff; }
.scope p, .gate-out p { margin: 0; padding: 12px 14px; border-radius: 8px; background: #121519; font-size: 17px; line-height: 1.6; min-height: 52px; overflow-wrap: anywhere; }
.gate-out p { color: #D9F7E8; }
.gate-out p.empty { color: #8F9AA6; font-style: italic; }
mark { color: inherit; background: none; border-radius: 3px; padding: 1px 2px; }
mark.k-cruelty { background: color-mix(in srgb, var(--cruel) 38%, transparent); box-shadow: inset 0 -2px 0 var(--cruel); }
mark.k-frustration { background: color-mix(in srgb, var(--frustrated) 30%, transparent); box-shadow: inset 0 -2px 0 var(--frustrated); }
mark.k-pushback { background: color-mix(in srgb, var(--pushback) 35%, transparent); box-shadow: inset 0 -2px 0 var(--pushback); }
mark.k-testing { background: color-mix(in srgb, var(--testing) 35%, transparent); box-shadow: inset 0 -2px 0 var(--testing); }
.ev { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.ev li { padding: 3px 8px; border-radius: 4px; background: #121519; color: #C9D1D9; }
.ev li b { font-weight: 700; }
.meters { display: grid; grid-template-columns: repeat(6, 64px); gap: 10px; align-content: center; padding: 18px 16px 14px; border-radius: 12px; background: linear-gradient(180deg, #1A1E24, #23282F); box-shadow: inset 0 0 0 1px #3B424C; }
.ladder { display: grid; grid-template-rows: auto auto auto; align-content: end; gap: 8px; justify-items: center; }
.ladder .num { font: 700 15px/1 var(--head); color: #DDE3E8; }
.leds { display: flex; flex-direction: column-reverse; gap: 4px; padding: 6px; border-radius: 6px; background: #0B0D10; box-shadow: inset 0 2px 6px rgba(0,0,0,.8); }
.leds i { width: 30px; height: 19px; border-radius: 2px; background: var(--led-off); transition: background .2s, box-shadow .2s; }
.leds i.on { background: var(--c); box-shadow: 0 0 8px var(--c); }
.ladder .scr { display: grid; place-items: center; width: 64px; min-height: 30px; padding: 3px 2px; border-radius: 3px; background: var(--tape); color: var(--tape-ink); font: 500 11px/1.15 var(--head); text-align: center; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.lib-line { margin: 18px 0 0; font-size: 15px; color: #AEB7C1; }
.lib-line b { color: #fff; }
.patchbay { margin-top: 24px; padding: 14px 18px 16px; border-radius: 10px; background: linear-gradient(180deg, #2B3038, #1D2127); box-shadow: inset 0 0 0 1px #3B424C; }
.pb-title { display: block; font: 700 13px/1 var(--head); letter-spacing: .14em; color: #8F9AA6; margin-bottom: 10px; }
.patchbay ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.patchbay a { display: grid; justify-items: center; gap: 8px; text-decoration: none; }
.patchbay .tape { width: 100%; padding: 5px 4px; border-radius: 3px; background: var(--tape); color: var(--tape-ink); font: 700 12.5px/1.15 var(--head); text-align: center; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.jack { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--alu); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.jack i { width: 18px; height: 18px; border-radius: 50%; background: #0B0D10; box-shadow: inset 0 2px 3px rgba(0,0,0,.9); transition: box-shadow .2s; }
.patchbay a:hover .jack i, .patchbay a:focus-visible .jack i { box-shadow: inset 0 2px 3px rgba(0,0,0,.9), 0 0 0 4px var(--rude); }
.patchbay small { font: 500 11px/1 var(--head); color: #8F9AA6; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 84px var(--gut) 90px; position: relative; }
.wall { background-color: var(--wall); background-image: linear-gradient(45deg, rgba(0,0,0,.025) 25%, transparent 25% 75%, rgba(0,0,0,.025) 75%), linear-gradient(45deg, rgba(0,0,0,.025) 25%, transparent 25% 75%, rgba(0,0,0,.025) 75%); background-size: 28px 28px; background-position: 0 0, 14px 14px; }
.console { background: var(--slate); color: #E8ECF0; }
.console + .console, .sec.console { border-top: 1px solid #3B424C; }
.head { display: flex; gap: 20px; align-items: center; margin-bottom: 34px; }
.head .ch { flex: none; display: grid; place-items: center; min-width: 74px; height: 56px; padding: 0 10px; border-radius: 6px; background: #0B0D10; color: var(--rude); font: 700 34px/1 var(--head); letter-spacing: .04em; text-shadow: 0 0 10px rgba(240,228,66,.5); box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 0 0 3px #3B424C; }
.head > div { flex: 1; min-width: 0; }
.head h2 { margin: 0; font: 700 clamp(30px, 4.2vw, 46px)/1.05 var(--head); }
.head p { margin: 6px 0 0; font-size: 17.5px; max-width: 70ch; opacity: .85; }
.back { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--head); text-decoration: none; padding: 8px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px currentColor; opacity: .8; }
.back svg { width: 16px; height: 16px; }
.back:hover { opacity: 1; }

/* ---------------------------------------------------------------- 2. session tape */
.tape-desk { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; align-items: start; }
.reels { padding: 16px; border-radius: 12px; background: var(--slate); color: #E8ECF0; }
.reels ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.reels li button { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center; text-align: left; border: 0; border-radius: 6px; padding: 7px 8px; background: var(--slate2); font-size: 14px; line-height: 1.25; }
.reels li button .reel { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #0B0D10 0 3px, #8E959E 3.5px 6px, #3A3F47 6.5px 9px, #8E959E 9.5px 11px, #3A3F47 11.5px); }
.reels li button[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); }
.own summary { cursor: pointer; font: 700 14px/1.3 var(--head); padding: 6px 0; }
.own textarea { width: 100%; margin: 8px 0; padding: 10px; border: 0; border-radius: 6px; background: #0E1013; color: #F2F4F6; font-size: 14.5px; }
.knobs { display: flex; gap: 12px; margin-top: 12px; }
.knobs label { display: grid; gap: 4px; font: 500 12.5px/1.2 var(--head); color: #9CA6B2; }
.knobs select { padding: 6px 8px; border-radius: 6px; border: 0; background: #0E1013; color: #fff; font: 700 15px var(--head); }
.knobs small { font-size: 11px; }
.multitrack { min-width: 0; padding: 16px; border-radius: 12px; background: var(--deep); color: #E8ECF0; box-shadow: 0 16px 34px rgba(0,0,0,.25); }
.transport { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.counter { font: 700 22px/1 var(--head); color: var(--go); letter-spacing: .06em; padding: 6px 10px; border-radius: 4px; background: #000; }
.reel-name { font-size: 15px; color: #C9D1D9; }
.lanes { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: 6px; background: #0B0D10; }
.lane-name { display: flex; align-items: center; padding: 0 8px; height: 30px; font: 500 12px/1 var(--head); color: #9CA6B2; border-bottom: 1px solid #1C2026; border-right: 1px solid #2B3038; }
.lane { position: relative; height: 30px; border-bottom: 1px solid #1C2026; }
.clip { position: absolute; top: 4px; height: 22px; border: 0; border-radius: 3px; padding: 0; font: 700 11.5px/22px var(--head); color: #0B0D10; text-align: center; background: var(--c); opacity: .9; }
.clip.cov { background: repeating-linear-gradient(135deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 45%, #0B0D10) 5px 10px); }
.clip.lit, .clip:hover, .clip:focus-visible { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 12px var(--c); z-index: 2; }
.env-name { height: 90px; }
.env { position: relative; height: 90px; }
.env svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--go); box-shadow: 0 0 8px var(--go); pointer-events: none; transition: left .25s linear; }
.endmark { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--hot); pointer-events: none; }
.endmark span { position: absolute; top: 4px; left: 4px; font: 700 11px/1 var(--head); color: #fff; background: var(--hot); padding: 3px 5px; border-radius: 3px; white-space: nowrap; }
.scrub { margin: 12px 0 0; min-height: 3.2em; padding: 10px 12px; border-radius: 6px; background: #121519; font-size: 15.5px; }
.scrub b { font-family: var(--head); }
.verdict { margin-top: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 12px 14px; border-radius: 8px; background: #1A1E24; box-shadow: inset 0 0 0 1px #3B424C; }
.verdict .v { grid-row: span 2; font: 700 26px/1 var(--head); padding: 10px 12px; border-radius: 6px; color: #0B0D10; }
.verdict .v.fine { background: var(--go); } .verdict .v.heated { background: var(--frustrated); } .verdict .v.rude { background: var(--rude); } .verdict .v.sustained { background: var(--hot); color: #fff; }
.verdict p { margin: 0; font-size: 15px; }
.verdict small { color: #9CA6B2; font-size: 13.5px; }

/* ---------------------------------------------------------------- 3. the gate */
.gate-in { display: grid; gap: 8px; margin-bottom: 20px; }
.gate-in input { width: 100%; padding: 12px 14px; border: 0; border-radius: 8px; background: #0E1013; color: #F2F4F6; font: 500 18px/1.4 var(--text); box-shadow: inset 0 2px 8px rgba(0,0,0,.7); }
.drywet { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); gap: 16px; align-items: center; }
.mon { padding: 16px 18px; border-radius: 10px; background: #0E1013; box-shadow: inset 0 0 0 1px #3B424C; min-height: 120px; }
.mon p { margin: 0; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.mon.dry del { color: #F3A57E; text-decoration: line-through; text-decoration-color: var(--cruel); text-decoration-thickness: 2px; }
.mon.wet p { color: #D9F7E8; }
.mon.wet p.empty { color: #8F9AA6; font-style: italic; font-size: 16px; }
.knob-big { justify-self: center; width: 76px; height: 76px; border-radius: 50%; background: var(--alu); box-shadow: 0 6px 12px rgba(0,0,0,.5); position: relative; }
.knob-big i { position: absolute; left: 50%; top: 8px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--ink); transform-origin: 2px 30px; transform: rotate(var(--rot, 120deg)); transition: transform .4s; }
.gate-note { margin: 14px 0 0; font-size: 15px; color: #B9C2CC; }
.batch { margin-top: 26px; border-radius: 10px; background: var(--slate2); box-shadow: inset 0 0 0 1px #3D444F; }
.batch-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 16px; border-bottom: 1px solid #3D444F; }
.batch-head b { font: 700 16px/1.3 var(--head); }
.batch-head span { font: 700 15px/1.3 var(--head); color: var(--go); }
.batch ol { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.batch li { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 9px 16px; border-bottom: 1px solid #333943; font-size: 14.5px; }
.batch li .lab { font: 700 12px/1.6 var(--head); color: var(--c); }
.batch li .out { color: #D9F7E8; }
.batch li .out.empty { color: #8F9AA6; font-style: italic; }

/* ---------------------------------------------------------------- 4. calibration */
.cal-ctl { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.readout { padding: 14px 16px; border-radius: 10px; background: var(--deep); color: #E8ECF0; }
.readout b { display: block; font: 700 38px/1 var(--head); color: var(--go); letter-spacing: .02em; }
.readout span { font-size: 14px; color: #B9C2CC; }
.vus { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.vu { display: grid; gap: 6px; justify-items: center; padding: 12px 8px 10px; border-radius: 10px; background: var(--alu); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.vu svg { width: 100%; height: auto; }
.vu .vu-name { width: 100%; padding: 3px 4px; border-radius: 3px; background: var(--tape); color: var(--tape-ink); font: 700 12.5px/1.2 var(--head); text-align: center; }
.vu .vu-num { font: 500 12px/1.3 var(--head); color: var(--ink2); text-align: center; }
.vu-note { margin: 12px 0 0; font-size: 14px; color: var(--ink2); }
.cal-low { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-top: 26px; align-items: start; }
.cal-low .lbl { color: var(--ink2); }
.matrix { display: grid; grid-template-columns: 82px repeat(7, minmax(0, 1fr)); gap: 4px; padding: 12px; border-radius: 10px; background: var(--deep); color: #DDE3E8; }
.matrix span { font: 500 10.5px/1.1 var(--head); text-align: center; align-self: end; overflow-wrap: anywhere; color: #9CA6B2; }
.matrix span.rowh { text-align: right; align-self: center; padding-right: 4px; }
.matrix .cell { display: grid; place-items: center; height: 34px; border-radius: 50%; aspect-ratio: 1; justify-self: center; font: 700 13px/1 var(--head); background: #1C2026; color: #5E6672; }
.matrix .cell.hit { background: var(--go); color: #0B0D10; box-shadow: 0 0 10px rgba(61,214,140,.6); }
.matrix .cell.miss { background: var(--hot); color: #fff; box-shadow: 0 0 10px rgba(229,72,77,.6); }
.faults ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.faults li { padding: 8px 12px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--wall2); font-size: 14.5px; }
.faults li small { display: block; font: 500 12px/1.4 var(--head); color: var(--ink2); }
.faults li.none { background: none; box-shadow: none; padding-left: 0; color: var(--ink2); }

/* ---------------------------------------------------------------- 5. the line */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { padding: 14px 16px; border-radius: 10px; background: var(--slate2); box-shadow: inset 0 0 0 1px #3D444F; display: grid; gap: 10px; }
.card q { font-size: 16.5px; line-height: 1.45; quotes: "“" "”"; }
.card .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.card .opts button { border: 0; border-radius: 5px; padding: 7px 10px; font: 500 13px/1.2 var(--head); background: #1A1E24; color: #DDE3E8; box-shadow: inset 0 0 0 1px #4A525E; }
.card .opts button[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); box-shadow: none; }
.card .res { font-size: 14px; color: #C9D1D9; min-height: 1.4em; }
.card .res b { font-family: var(--head); }
.card.agree { box-shadow: inset 0 0 0 2px var(--go); }
.card.differ { box-shadow: inset 0 0 0 2px var(--frustrated); }
.line-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.line-foot p { margin: 0; font: 700 18px/1.4 var(--head); }

/* ---------------------------------------------------------------- 6. liner notes */
.sleeve-sec { background: linear-gradient(180deg, #2A2F37, #1A1E24); color: #E8ECF0; }
.sleeve { border-radius: 6px; background: #F3F1EA; color: #1D1F22; box-shadow: 0 30px 60px rgba(0,0,0,.45); overflow: hidden; }
.sleeve-top { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; align-items: center; padding: 30px 36px; background: #1D1F22; color: #F3F1EA; }
.label-disc { position: relative; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, #F3F1EA 0 6px, #1D1F22 6.5px 9px, var(--rude) 9.5px 60px, #111 60.5px 62px, #222 62.5px, #2B2B2B 70%, #111 100%); box-shadow: 0 0 0 1px #000; }
.label-disc span { position: absolute; left: 0; right: 0; top: 52px; text-align: center; font: 700 15px/1 var(--head); color: var(--ink); }
.label-disc i { position: absolute; inset: 8px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 3px, rgba(255,255,255,.05) 3px 4px); pointer-events: none; }
.side { margin: 0 0 6px; font: 500 13px/1 var(--head); letter-spacing: .1em; color: var(--rude); }
.paper-title { margin: 0 0 10px; font: 600 clamp(24px, 3vw, 34px)/1.15 var(--serif); }
.paper-by { margin: 0; font: 400 15px/1.5 var(--serif); color: #C7C3B6; }
.liner { padding: 30px 36px 36px; column-count: 3; column-gap: 34px; column-rule: 1px solid #D6D2C5; font: 400 16px/1.6 var(--serif); }
.liner h4 { display: flex; gap: 8px; align-items: baseline; margin: 0 0 6px; font: 700 15px/1.2 var(--head); letter-spacing: .06em; break-after: avoid; }
.liner h4 span { color: #8A5A00; }
.liner * + h4 { margin-top: 18px; }
.liner p { margin: 0 0 10px; }
.liner .nc { font-size: 14.5px; padding: 8px 10px; border-left: 3px solid var(--cruel); background: #E9E6DC; break-inside: avoid; }
.lt { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font: 400 13.5px/1.35 var(--text); break-inside: avoid; }
.lt caption { caption-side: bottom; text-align: left; font: italic 400 13px/1.4 var(--serif); color: #5E5A50; padding-top: 4px; }
.lt th { text-align: left; border-bottom: 2px solid #1D1F22; padding: 4px; font-weight: 700; }
.lt td { padding: 4px; border-bottom: 1px solid #D6D2C5; vertical-align: top; }
.lt td.num, .lt th.num { text-align: right; }
.lt .pill { display: inline-block; padding: 1px 6px; border-radius: 3px; font: 700 11.5px/1.5 var(--head); background: var(--c); color: #111; }
.refs { padding-left: 20px; margin: 0; font-size: 14px; }
.refs li { margin-bottom: 6px; break-inside: avoid; }

/* ---------------------------------------------------------------- 7. master section */
.lcd { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-radius: 8px; overflow: hidden; background: #0B1A12; box-shadow: inset 0 0 0 3px #3B424C, inset 0 4px 14px rgba(0,0,0,.8); }
.lcd div { padding: 14px 16px 12px; border-right: 1px solid rgba(61,214,140,.15); }
.lcd div:last-child { border-right: 0; }
.lcd small { display: block; font: 500 11.5px/1 var(--head); letter-spacing: .08em; color: rgba(61,214,140,.6); }
.lcd b { display: block; margin-top: 6px; font: 700 26px/1.1 var(--head); color: var(--go); text-shadow: 0 0 8px rgba(61,214,140,.5); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lcd b.down { color: #FF8A73; text-shadow: 0 0 8px rgba(255,138,115,.5); }
.lcd-at { margin: 8px 0 24px; font-size: 13.5px; color: #8F9AA6; }
.master { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.monitor { padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #2E343D, #1A1E24); box-shadow: 0 20px 40px rgba(0,0,0,.4), inset 0 0 0 1px #4A525E; }
.bezel { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 500 13px/1 var(--head); color: #9CA6B2; }
.mon-led { width: 9px; height: 9px; border-radius: 50%; background: var(--go); box-shadow: 0 0 8px var(--go); }
.mon-tag { margin-left: auto; padding: 4px 8px; border-radius: 3px; background: var(--tape); color: var(--tape-ink); font-weight: 700; }
.screen { position: relative; height: 480px; border-radius: 6px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 2px #000; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen-wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #6F7883; font-size: 15px; background: repeating-linear-gradient(0deg, #050607 0 2px, #0B0D10 2px 4px); transition: opacity .4s; }
.screen-wait.off { opacity: 0; pointer-events: none; }
.mon-out { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font: 500 14px/1 var(--head); color: #C9D1D9; }
.mon-out svg { width: 15px; height: 15px; }
.master-strip { display: grid; gap: 16px; padding: 20px; border-radius: 14px; background: var(--slate2); box-shadow: inset 0 0 0 1px #3D444F; }
.scribble .lbl { margin-bottom: 8px; }
.scribble code { display: block; padding: 12px 14px; border-radius: 3px; background: var(--tape); color: var(--tape-ink); font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; transform: rotate(-.6deg); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.talk-key { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; padding: 14px 18px; border-radius: 8px; font: 700 16px/1 var(--head); color: #fff; background: linear-gradient(180deg, #E86A6E, var(--hot)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 0 #8E2226, 0 8px 16px rgba(0,0,0,.3); }
.talk-key:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 #8E2226; }
.key-led { width: 10px; height: 10px; border-radius: 50%; background: #FFD6D7; box-shadow: 0 0 8px #fff; }
.ok { min-height: 1.2em; font-size: 14px; color: var(--go); }
.assign { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.assign a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; text-decoration: none; background: linear-gradient(180deg, #4A515C, #353B45); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 3px 0 #15181D; }
.assign a:hover { filter: brightness(1.15); }
.assign img { width: 30px; height: 30px; border-radius: 6px; object-fit: contain; background: #fff; }
.assign b { display: block; font: 700 14.5px/1.1 var(--head); }
.assign small { display: block; font-size: 12.5px; color: #B9C2CC; }
.serial { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 6px; overflow: hidden; background: #8B939C; box-shadow: 0 0 0 4px #9AA2AB; }
.serial div { padding: 8px 10px; background: var(--alu); color: var(--ink); }
.serial dt { font: 500 11px/1 var(--head); letter-spacing: .08em; color: var(--ink2); }
.serial dd { margin: 4px 0 0; font: 700 15.5px/1.1 var(--head); }

/* ---------------------------------------------------------------- 8. the rack */
.rack { display: grid; gap: 6px; padding: 14px 40px; border-radius: 6px; background: linear-gradient(90deg, #8A9199 0 26px, #20242B 26px calc(100% - 26px), #8A9199 calc(100% - 26px)); position: relative; }
.rack::before, .rack::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; background: repeating-linear-gradient(180deg, transparent 0 14px, #2B3038 14px 20px, transparent 20px 44px); }
.rack::before { left: 0; } .rack::after { right: 0; }
.unit { position: relative; display: grid; grid-template-columns: 54px 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 16px; border-radius: 4px; background: var(--alu); box-shadow: 0 2px 0 #111, inset 0 0 0 1px rgba(255,255,255,.4); }
.unit::before, .unit::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle, #555 0 2px, #C9CED4 2.5px); box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.unit::before { left: -12px; } .unit::after { right: -12px; }
.u-no { font: 700 12px/1 var(--head); color: var(--ink2); }
.u-name { font: 700 16px/1.2 var(--head); }
.dls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dls a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 8px 10px; border-radius: 6px; background: var(--deep); color: #E8ECF0; text-decoration: none; }
.dls a:hover { box-shadow: 0 0 0 2px var(--rude); }
.dls svg { grid-row: span 2; width: 22px; height: 22px; color: var(--rude); align-self: center; }
.dls b { font: 700 14px/1.2 var(--head); }
.dls small { font: 10.5px/1.3 var(--code); color: #8F9AA6; overflow-wrap: anywhere; }
.u-code { align-items: start; }
.code { margin: 0; padding: 14px 16px; border-radius: 6px; background: var(--deep); color: #DDE6EE; font: 12.5px/1.6 var(--code); overflow-x: auto; }
.units { display: grid; gap: 6px; }
.unit.api { grid-template-columns: 54px minmax(0, 1fr) auto; }
.unit .u-sig { font: 13.5px/1.35 var(--code); overflow-wrap: anywhere; }
.unit .u-doc { grid-column: 2 / -1; margin: 0; font-size: 14.5px; color: #2B3038; }
.unit .u-open { border: 0; border-radius: 4px; padding: 6px 10px; font: 700 12.5px/1 var(--head); background: var(--deep); color: #fff; }
.unit.file { grid-template-columns: 54px minmax(0, 1fr) auto; }
.unit.file .u-sha { display: block; font: 10.5px/1.3 var(--code); color: var(--ink2); overflow-wrap: anywhere; }
.viewer { margin-top: 18px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.15); }
.viewer-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 14px; background: var(--slate); color: #E8ECF0; }
.viewer-bar b { font: 700 15px/1.2 var(--code); }
.viewer-bar span { flex: 1; font: 11px/1.4 var(--code); color: #9CA6B2; overflow-wrap: anywhere; }
.viewer-body { max-height: 620px; overflow: auto; }
.lines { margin: 0; padding: 12px 0; font: 12.5px/1.55 var(--code); counter-reset: ln; }
.lines span { display: block; padding-right: 16px; white-space: pre; }
.lines span::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 46px; margin-right: 14px; padding-right: 8px; text-align: right; color: #9AA5A1; border-right: 1px solid #E1E6E4; }
.md { padding: 18px 26px 22px; font-size: 15.5px; max-width: 920px; }
.md h1, .md h2, .md h3 { font: 700 24px/1.2 var(--head); margin: 22px 0 8px; }
.md h1 { font-size: 32px; margin-top: 4px; }
.md pre { padding: 12px 14px; border-radius: 6px; background: var(--deep); color: #DDE6EE; font: 12.5px/1.5 var(--code); overflow-x: auto; }
.md table { border-collapse: collapse; margin: 10px 0; font-size: 14px; display: block; overflow-x: auto; }
.md th, .md td { padding: 6px 10px; border-bottom: 1px solid #D4DAD6; text-align: left; vertical-align: top; }
.md th { border-bottom: 2px solid var(--ink); }
.md code { background: #EDF0EE; padding: 1px 4px; border-radius: 3px; }

/* ---------------------------------------------------------------- the track sheet (footer) */
.sheet { padding: 56px var(--gut) 64px; background: var(--deep); }
.sheet-paper { background: #F4F4F0; color: #1D1F22; border-radius: 3px; padding: 18px 22px 22px; box-shadow: 0 20px 40px rgba(0,0,0,.45); background-image: linear-gradient(90deg, transparent 0 69px, rgba(213,94,0,.35) 69px 70px, transparent 70px); }
.sheet-head { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; padding-bottom: 10px; border-bottom: 3px solid #1D1F22; font: 500 14px/1.3 var(--head); }
.sheet-head b { font: 700 24px/1 var(--head); letter-spacing: .04em; }
.sheet-head a { margin-left: auto; font-weight: 700; }
.tracks { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 15px; }
.tracks th { text-align: left; font: 700 12px/1 var(--head); letter-spacing: .1em; padding: 10px 8px; border-bottom: 1px solid #1D1F22; }
.tracks td { padding: 9px 8px; border-bottom: 1px solid #C9CBC6; vertical-align: top; }
.tracks tbody { counter-reset: trk; }
.tracks td:first-child { width: 60px; font: 700 15px/1.4 var(--head); color: var(--cruel); }
.tracks tbody td:first-child::before { counter-increment: trk; content: counter(trk); }
.tracks td:nth-child(2) { width: 150px; font: 700 14.5px/1.4 var(--head); }
.tracks a { font-weight: 700; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1180px) {
  .liner { column-count: 2; }
  .vus { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .patchbay ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .bridge { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .meters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ladder .scr { width: 100%; }
  .tape-desk { grid-template-columns: minmax(0, 1fr); }
  .cal-low { grid-template-columns: minmax(0, 1fr); }
  .master { grid-template-columns: minmax(0, 1fr); }
  .lcd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lcd div:nth-child(3) { border-right: 0; }
  .lcd div:nth-child(n+4) { border-top: 1px solid rgba(61,214,140,.15); }
  .dls { grid-template-columns: minmax(0, 1fr); }
  .unit { grid-template-columns: 40px minmax(0, 1fr); }
  .unit .dls, .unit .code { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .desk { padding-top: 18px; }
  .bridge { padding: 20px 18px; }
  .tag { font-size: 16.5px; }
  .onair { min-height: 0; }
  .onair-txt b { font-size: 28px; }
  .talk { padding: 14px; }
  .talk textarea { font-size: 17px; }
  .meters { gap: 6px; padding: 14px 10px 12px; }
  .leds i { width: 100%; min-width: 24px; height: 9px; }
  .ladder .scr { font-size: 10px; }
  .patchbay ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .patchbay .tape { font-size: 11px; }
  .sec { padding: 60px var(--gut) 66px; }
  .head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
  .head .ch { min-width: 58px; height: 46px; font-size: 26px; }
  .head p { font-size: 16px; }
  .back { grid-column: 1 / -1; justify-self: start; }
  .lanes { grid-template-columns: 70px minmax(0, 1fr); }
  .lane-name { font-size: 10.5px; padding: 0 5px; }
  .clip { font-size: 10px; }
  .drywet { grid-template-columns: minmax(0, 1fr); }
  .knob-big { width: 54px; height: 54px; }
  .knob-big i { top: 6px; height: 16px; transform-origin: 2px 21px; }
  .batch li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .readouts { grid-template-columns: minmax(0, 1fr); }
  .readout b { font-size: 32px; }
  .vus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix { grid-template-columns: 58px repeat(7, minmax(0, 1fr)); gap: 3px; padding: 8px; }
  .matrix .cell { height: 26px; font-size: 11px; }
  .matrix span { font-size: 8.5px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .sleeve-top { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 16px; }
  .label-disc { width: 110px; height: 110px; background: radial-gradient(circle, #F3F1EA 0 5px, #1D1F22 5.5px 7px, var(--rude) 7.5px 40px, #111 40.5px 42px, #222 42.5px, #2B2B2B 70%, #111 100%); }
  .label-disc span { top: 32px; font-size: 12px; }
  .liner { column-count: 1; padding: 22px 18px 26px; }
  .lcd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lcd div { border-right: 0; border-top: 1px solid rgba(61,214,140,.15); }
  .lcd b { font-size: 21px; }
  .screen { height: 400px; }
  .rack { padding: 10px 30px; background: linear-gradient(90deg, #8A9199 0 20px, #20242B 20px calc(100% - 20px), #8A9199 calc(100% - 20px)); }
  .rack::before, .rack::after { width: 20px; }
  .unit { padding: 10px 12px; gap: 8px 10px; }
  .unit.api, .unit.file { grid-template-columns: 34px minmax(0, 1fr); }
  .unit .u-open { grid-column: 2; justify-self: start; }
  .tracks td:nth-child(2) { width: 100px; }
  .sheet-paper { background-image: none; padding: 14px; }
  .sheet-head a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
