@font-face{font-family:DSEG;src:url('fonts/DSEG7Classic-Regular.woff') format('woff');font-weight:400;font-style:normal;font-display:block}
/* v21 — one native geometry, scrolling rather than clipping the machine. */
html,body{height:auto;min-height:100%;overflow:auto}
body{padding:16px;background:radial-gradient(ellipse at top,#1c2226,#07090a 75%)}
.room{position:relative;inset:auto;margin:0 auto;overflow:visible;background:none}
.deck{left:0;top:0;bottom:auto;margin:0;width:1672px;height:1240px;transform-origin:top left;overflow:visible}
.panel{top:238px;height:950px;background-image:url('assets/base-panel.webp')}



.top-apron{position:absolute;left:26px;top:124px;width:1621px;height:252px;object-fit:contain;pointer-events:none;z-index:2}
.headblock{left:621px;top:173px;width:430px;height:171px;z-index:4}
.toprow{z-index:5}
.nameplate{background-image:url('assets/nameplate-v74.webp')}
.statusplate{background-image:url('assets/statusplate-v82.webp')}
#idxBay{background-image:url('assets/index-panel-v74.webp')}
#gateBay{background-image:url('assets/gate-panel.webp')}
#compBay{background-image:url('assets/comp-panel.webp')}
#transportBay{background-image:url('assets/transport-panel-v74.webp')}
#frameBay{background-image:url('assets/frame-panel-v74.webp')}
#counterBay{background-image:url('assets/counter-panel-v74.webp')}
#screenBay{background-image:url('assets/screen-panel-v74.webp')}
.botrow{top:755px}
/* Full 1290 x 872 film plate, including both rows of sprocket holes. */
.stage{left:138px;top:52px;width:805px;height:544px}
.borderv{object-fit:contain;object-position:center}
.edge{font-size:10px;padding:0 7px;gap:7px}.edge #bars{flex-basis:150px}
.bank{left:11px;top:44px;width:263px}
.bank{max-height:480px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#747a7d transparent;padding:0 0 2px}
.lrow{background:url('assets/comp-row.webp') center/contain no-repeat;padding:7px 11px;flex-shrink:0}
.bigbtns{left:31px;top:550px;width:222px;gap:10px}.big{height:55px}
.scrubwrap{left:34px;right:34px;top:31px;height:64px}
.scrub{height:64px}
.chan{height:36px;border:0;border-radius:0;box-shadow:none;background:url('assets/frame-track.webp') center/contain no-repeat}
.chanfill{left:14px;height:4px;max-width:calc(100% - 28px);opacity:.65}
.scrubcap{width:22px;height:64px;margin-left:-11px;border:0;box-shadow:none;border-radius:0;background:url('assets/slider-thumb.webp') center/contain no-repeat;filter:drop-shadow(0 2px 2px #0008)}
.scrubcap::after{display:none}
.tick{top:5px;height:6px}
.shortcuts{position:absolute;left:26px;top:1200px;width:1621px;min-height:32px;display:flex;justify-content:center;align-items:center;gap:22px;color:#a9afb3;font-size:12px;line-height:1.5}
.shortcuts kbd{color:#ece1bb;font:inherit;font-weight:600;margin-right:5px}
.sw,.lrow[data-on='1'] .sw{background-image:url('assets/layer-off.webp');filter:none}
.lrow[data-on='1'] .sw{background-image:url('assets/layer-yellow.webp')}
.lrow[data-solo='1'] .sw{background-image:url('assets/layer-red.webp')}
/* The chosen unlit asset is the invariant frame. Only the lens interior switches. */
#runLamp,#runLamp.on{background-image:url('assets/led-run-off.webp')}
#markLamp,#markLamp.on{background-image:url('assets/led-mark-off.webp')}
.lamp::after,.pilot::after{content:'';position:absolute;inset:0;background:center/contain no-repeat;clip-path:circle(32% at 50% 50%);opacity:0;pointer-events:none}
#runLamp::after{background-image:url('assets/led-run-on.webp')}
#markLamp::after{background-image:url('assets/led-mark-on.webp')}
.lamp.on::after{opacity:1}
.lamp::before,.pilot::before{content:'';position:absolute;inset:-24px -30px;pointer-events:none;background:radial-gradient(ellipse,rgba(119,255,140,.23),rgba(72,204,110,.075) 36%,transparent 70%);filter:blur(5px);mix-blend-mode:screen;opacity:0;transition:opacity .15s}
#markLamp::before{background:radial-gradient(ellipse,rgba(255,201,93,.26),rgba(255,165,54,.09) 36%,transparent 70%)}
.lamp.on::before{opacity:1}
.pilot,.lrow[data-on='1'] .pilot{position:relative;background-image:url('assets/led-run-off.webp')}
.pilot::before{inset:-13px -18px;filter:blur(3px)}
.pilot::after{background-image:url('assets/led-run-on.webp')}
.lrow[data-selected='1'] .pilot::after{opacity:1}
.lrow[data-selected='1'] .pilot::before{opacity:1}
.sw{position:relative}
.sw::before{content:'';position:absolute;inset:-9px;pointer-events:none;mix-blend-mode:screen;opacity:0;background:radial-gradient(ellipse,#ffc85840,transparent 70%);filter:blur(3px)}
.lrow[data-on='1'] .sw::before{opacity:1}.lrow[data-solo='1'] .sw::before{background:radial-gradient(ellipse,#ff4a304b,transparent 70%)}
/* Independent, proportion-preserved key body and separate silk-screen icons. */
.tbtns{left:36px;top:29px;width:225px;height:62px;gap:3px}
.tb{position:relative;background:none!important;isolation:isolate;padding:0;border-radius:3px}
.tb::before,.tb::after{content:'';position:absolute;inset:0;background:url('assets/keycap-flush.webp') center/contain no-repeat;pointer-events:none}
.tb::after{background-image:url('assets/keycap-pressed.webp');clip-path:inset(12% 8% round 3px);opacity:0}
#playBtn[aria-pressed='true']::after,.tb:active:not(:disabled)::after{opacity:1}
.key-icon{position:absolute;z-index:2;left:50%;top:50%;width:28px;height:28px;object-fit:contain;transform:translate(-50%,-50%);pointer-events:none;opacity:.92}
#playIcon{position:absolute;inset:0;pointer-events:none;z-index:2}
#playIcon .key-icon{display:block}
#playIcon .pause-icon{display:none}
#playIcon[data-kind='pause'] .play-icon{display:none}
#playIcon[data-kind='pause'] .pause-icon{display:block}
#playBtn[aria-pressed='true'] .key-icon{margin-top:1px;opacity:.88}
.ctr{padding:0;display:block;overflow:hidden;border-radius:2px}
.ctr .digits,.ctr .of,.ctr .tc{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#counterDisplay{display:block;width:100%;height:100%;pointer-events:none}
.counter-glass{position:absolute;inset:0;z-index:2;background:url('assets/counter-glass.webp') center/contain no-repeat;opacity:.48;pointer-events:none;box-shadow:inset 0 2px 4px #ffffff14,inset 0 -2px 4px #0008}
.counter-glass::after{content:'';position:absolute;inset:0;background:linear-gradient(167deg,#d6e5ee12 0%,transparent 28%,transparent 62%,#bdcfdd0d 64%,transparent 70%);pointer-events:none}

#counterBay[data-lit='true'] .ctr{box-shadow:0 0 12px 1px #ffad4514}

/* v21: control bounds measured inside the existing socket and glass artwork. */
.deck{height:1286px}
.panel{top:284px}
.top-apron{z-index:3}
.headblock{top:148px}
.toprow{left:26px;top:224px;width:1621px;height:92px;display:block;z-index:5}
.toprow .spacer{display:none}
.nameplate{position:absolute;left:18px;top:0;width:487px;height:92px}
.statusplate{position:absolute;left:1119px;top:3.735px;width:530px;height:92px;transform:scale(.9188679245);transform-origin:top left}
.shortcuts{top:1246px}
.tbtns{left:0;top:0;width:298px;height:108px;display:block}
.tb{position:absolute;width:58px;height:51px}
#prevBtn{left:42.5px;top:31.5px}
#playBtn{left:121px;top:32px}
#nextBtn{left:199.5px;top:32px}
.tb::before{background-image:url('assets/keycap-flush.webp')}
.tb::after{background-image:url('assets/keycap-pressed.webp');clip-path:none}
.ctr{left:37.5px;top:29px;right:auto;width:319.5px;height:53px;border-radius:3px;gap:0}
.counter-glass{background-size:cover}
.stage{left:64px;top:52px;width:953px;height:544px}
.borderv{object-fit:cover}
.edge,.ecBacking{top:-16px}
.edge{font-size:9px;line-height:1;padding:0 7px}

/* One mounting coordinate system for apron and head; one radius for outer panels. */
:root{--panel-radius:10px}
body{min-height:100vh;display:grid;place-items:center}
.room{overflow:hidden}
.headstage{position:absolute;left:26px;top:124px;width:1621px;height:252px;z-index:3;pointer-events:none;--mount-x:804px;--mount-front:150px}
.headstage .top-apron{left:0;top:0;width:100%;height:252px;z-index:0}
.headstage .headblock{left:calc(var(--mount-x) - 215px);top:calc(var(--mount-front) - 171px);width:430px;height:171px;z-index:1}

.bay,.plate{border-radius:var(--panel-radius);overflow:hidden;background-color:transparent}
.lrow{border-radius:3px;overflow:hidden}

/* v22: reference framing and a single green selection indicator per stack. */
html{scrollbar-gutter:stable}
body{padding:8px;display:block}
.room{margin:0 auto}
.headstage .headblock{left:calc(var(--mount-x) - 185px);top:calc(var(--mount-front) - 147.14px);width:370px;height:147.14px}
.lrow[data-cur='1'],.lrow[data-solo='1']{border-color:transparent;box-shadow:none}
.lrow:focus-visible{outline:none}
.lrow:focus-visible .lname{text-decoration:underline;text-underline-offset:3px}
.shortcuts{position:static;left:auto;top:auto;width:auto;max-width:1672px;margin:12px auto 0;flex-wrap:wrap;gap:8px 18px;padding-bottom:8px}

/* v23: full-height scrollable assembly at the approved v22 scale. */

.pilot,.lrow[data-selected='1'] .pilot{width:12.1px;height:12.1px;flex-shrink:0;background-image:url('assets/led-run-off.webp')}
.pilot::after{filter:brightness(2.4) saturate(1.2);clip-path:circle(34% at 50% 50%)}
.pilot::before{inset:-18px -23px;filter:blur(3px);background:radial-gradient(ellipse,#aaffae85,#6dff8a38 32%,transparent 72%)}
.big{position:relative;isolation:isolate}
.big[aria-pressed='true']{outline:none}
.big::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;background:center/contain no-repeat;clip-path:inset(4% 3% round 5px)}
#cmpBtn::after{background-image:url('assets/cmp-lit.webp')}
#soloBtn::after{background-image:url('assets/solo-lit.webp')}
.big[aria-pressed='true']::after{opacity:1}
.big[aria-pressed='true']{filter:drop-shadow(0 0 7px #ffba3a65)}
#playBtn[aria-pressed='true']::after{background-image:url('assets/keycap-lit.webp')}
#playBtn[aria-pressed='true']{filter:drop-shadow(0 0 6px #ffbe4755)}
.counter-glass{opacity:.68;box-shadow:inset 0 2px 5px #deedf82e,inset 0 -2px 5px #000b}
.counter-glass::after{background:linear-gradient(170deg,#d9e8f72c 0%,#cadce310 12%,transparent 29%,transparent 48%,#bcd4e31e 50%,transparent 58%,#ddedf211 92%);mix-blend-mode:screen}
#counterBay[data-playing='true'] .ctr{box-shadow:0 0 16px 2px #ffc85a25}
#counterBay[data-playing='true'] .counter-glass::after{background:linear-gradient(170deg,#fff0c638 0%,#dfeaf510 12%,transparent 29%,transparent 48%,#ffdda222 50%,transparent 58%,#dde9f011 92%)}

/* v24: overlay and scratch-driven canvas refraction share the same UV bounds. */
.counter-glass{background-size:100% 100%}

/* v25 — physical apron engraving and independent distressed silkscreen. */
.apron-monogram{position:absolute;left:772px;top:198px;width:64px;height:48px;z-index:1;object-fit:contain;pointer-events:none}
.big::before{content:'';position:absolute;inset:0;background:url('assets/compare-off.webp') center/contain no-repeat;pointer-events:none;clip-path:inset(4% 3% round 5px)}
.button-label{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2;pointer-events:none}
.big[aria-pressed='true'] .button-label{transform:translateY(1px)}
.fsb{width:83px;position:relative}
.counter-glass{opacity:.36}

/* v26: original button footprints; opaque disabled art prevents baked-label ghosting. */
.apron-monogram{left:772px;top:52px;width:64px;height:48px}
.bigbtns{width:222px;gap:10px}
.big{width:106px;height:55px}
.big:disabled{opacity:1;cursor:default}
.big::before{display:none}
.fswrapbox{left:47px;top:31px;width:64px;height:56px}
.fsb{width:64px;height:56px;position:relative}
.fsb .key-icon{width:23px;height:23px}

@font-face{font-family:Indicator;src:url('fonts/Indicator-Sans-Bold.woff') format('woff');font-weight:700;font-style:normal;font-display:block}
.ctr{isolation:isolate}
.counter-glass{mix-blend-mode:screen}

/* Optical center measured from the rendered cream key face. */
.fswrapbox{left:46px;top:30px;width:63.5px;height:56.5px}
.fsb{width:63.5px;height:56.5px}

/* v29: white optical shot slate and compact, unclipped layer pilot spill. */
.nameplate .np-title,.nameplate .np-sub{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.shot-face{position:absolute;left:27px;top:19px;width:432px;height:56px;overflow:hidden;border-radius:3px;isolation:isolate}
#shotDisplay{display:block;width:100%;height:100%;filter:brightness(var(--shot-gain,1));pointer-events:none}
.shot-glass{opacity:.36}
.pilot::before{inset:-5px;filter:blur(1px);background:radial-gradient(ellipse,#aaffae65,#6dff8a22 28%,transparent 65%)}

/* v30: independent subtle title glass; exposed machined breakdown notches. */
.shot-glass{background-image:url('assets/shot-glass.webp');opacity:.16}
.tick{top:8px;width:1.5px;height:8px;background:#111a1e;opacity:1;transform:translateX(-50%);box-shadow:1px 0 0 #d0d9d680;z-index:1;pointer-events:none}
.scrubcap{z-index:3}
.shot-glass{filter:grayscale(1)}
.lname,.lrow[data-on='1'] .lname{position:relative;display:block;font-weight:700;line-height:14px;color:#222729}
.lrow[data-on='1'] .lname{color:#fff;overflow:visible}
.layer-name-light{position:absolute;left:-12px;top:-12px;width:calc(100% + 24px);height:38px;pointer-events:none;display:none}
.lrow[data-on='1'] .lname[data-lit-ready='1']{color:transparent}
.lrow[data-on='1'] .lname[data-lit-ready='1'] .layer-name-light{display:block}
.lrow:disabled{opacity:1}

/* Desktop comp depth: recess ends above the CMP/SOLO button row; slimmer bevel. */
#compBay{background-image:url('assets/desktop-depth/comp-shell-v74.webp');isolation:isolate;--comp-cavity-left:14px;--comp-cavity-width:251px}
#compBay::before{content:'';position:absolute;left:var(--comp-cavity-left);top:var(--comp-cavity-top,46px);width:var(--comp-cavity-width);height:var(--comp-cavity-height,370px);border-radius:5px;background:none;border:8px solid transparent;border-image:url('assets/desktop-depth/comp-cavity-uniform.webp') 48 fill stretch;border-image-width:8px;clip-path:inset(0 round 5px);z-index:-1;pointer-events:none}
/* The transparent-centred rim is above the bank; its floor stays below. */
#compBay .comp-cavity-rim{position:absolute;left:var(--comp-cavity-left);top:var(--comp-cavity-top,46px);width:var(--comp-cavity-width);height:var(--comp-cavity-height,370px);border:8px solid transparent;border-image:url('assets/desktop-depth/comp-cavity-uniform.webp') 48 stretch;border-image-width:8px;border-radius:5px;clip-path:inset(0 round 5px);z-index:2;pointer-events:none}
/* The chassis face covers any row depth that projects outside the recess. */
#compBay::after{content:'';position:absolute;inset:0;background:url('assets/desktop-depth/comp-shell-v74.webp') center/contain no-repeat;mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);mask-size:100% 100%,var(--comp-cavity-width) var(--comp-cavity-height,370px);mask-position:0 0,var(--comp-cavity-left) var(--comp-cavity-top,46px);mask-repeat:no-repeat;mask-composite:exclude;-webkit-mask-composite:xor;z-index:3;pointer-events:none}
#compBay .bank{left:22px;top:var(--comp-bank-top,53px);width:239px;max-height:var(--comp-bank-height,374px);padding:2px 2px 8px;gap:var(--comp-row-gap,1.5px);scroll-padding-block:2px;z-index:1;clip-path:inset(0 4px 19px 0)}
#compBay .lrow{position:relative;height:61px;padding:7px 9px 14px;gap:7px;background:url('assets/comp-row.webp') left top/calc(100% - 4px) 48px no-repeat,linear-gradient(110deg,#6f797655 0%,#111719b8 38%,#05090aef 100%),url('assets/comp-row.webp') left top/100% 100% no-repeat;border:0;border-radius:2px;box-shadow:2px 3px 3px #0009;flex-shrink:0}
#compBay .lrow[data-cur='1'],#compBay .lrow[data-solo='1']{border:0;box-shadow:2px 3px 3px #0009}
#compBay .lrow:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 1px #0009}
#compBay .sw{filter:drop-shadow(0 1px 1px #000b)}
#compBay .th{width:44px;height:33px;border:2px solid #081013;border-radius:1px;box-shadow:0 1px 0 #d4e0dd55,0 -1px 2px #000b}
#compBay .bigbtns{left:31px;top:var(--comp-buttons-top,577px);width:222px;gap:10px;z-index:4}
#compBay .big::before{display:block;background-image:url('assets/compare-off.webp');clip-path:none;z-index:0}
#compBay .big::after{clip-path:none;z-index:1}
#compBay .big .button-label{z-index:2}

/* Original unframed face: 231x48px; 4px side extrusion and 13px lower depth.
   Keep the existing rack pitch, cavity clearance and 1.5px separation. */
#compBay .lrow{margin-bottom:-12px;z-index:auto}
#compBay .lrow:last-child{margin-bottom:0;box-shadow:0 6px 6px #000c,0 1px 1px #000e,1px 0 2px #0008}
#compBay .lrow:active:not(:disabled){transform:none;box-shadow:2px 3px 3px #0009}
#compBay .lrow:last-child:active:not(:disabled){box-shadow:0 5px 5px #000c,0 1px 1px #000e}

#compBay[data-layer-count='0'] .bank{display:none}

/* v48: the compare rings and A/B badges sit on the 48px layer face. The depth
   styling above overrides the old whole-row ring from guide.css, so it's
   redrawn here on the face only, clear of the extrusion below it. */
#compBay .lrow[data-cmp="a"]::before,#compBay .lrow[data-cmp="b"]::before{content:"";position:absolute;left:0;top:0;width:calc(100% - 4px);height:48px;border-radius:3px;pointer-events:none;z-index:2}
#compBay .lrow[data-cmp="a"]::before{box-shadow:inset 0 0 0 2px rgba(240,168,50,.9),0 0 10px rgba(240,168,50,.35)}
#compBay .lrow[data-cmp="b"]::before{box-shadow:inset 0 0 0 2px rgba(88,190,255,.9),0 0 10px rgba(88,190,255,.35)}
#compBay .lrow[data-cmp="a"]::after,#compBay .lrow[data-cmp="b"]::after{top:24px;z-index:3}
