/* A cream instrument enclosure: convex glass above a mechanical control deck. */
:root{color-scheme:light;--desk:#bbb8ac;--case:#e2dece;--key:#f2efdf;--ink:#393b34;--trim:#74766b;--phosphor:#b4f5b0;--glass:#08160f;--display:Georgia,'Times New Roman',serif;--body:'Courier New',monospace;--utility:ui-monospace,SFMono-Regular,Consolas,monospace;font-family:var(--body);color:var(--ink);background:var(--desk)}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;padding:36px 20px;background:radial-gradient(ellipse at 40% 0,var(--key),var(--desk) 80%)}main{max-width:1020px;margin:auto}header{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font:11px var(--utility);letter-spacing:2px;margin-bottom:20px}.brand{font-weight:bold}.machine{padding:32px;border:1px solid #a7a495;border-radius:42px 42px 22px 22px;background:linear-gradient(115deg,var(--key),var(--case) 55%,#cac7b9);box-shadow:inset 0 3px 2px #fff9,inset -4px -7px 7px #8c897c55,0 12px 0 #959487,0 25px 45px #393b3440}.bezel{padding:26px;border:2px solid #97998c;border-radius:48px;background:linear-gradient(140deg,#64685e,#a5a89b 45%,#74786b);box-shadow:inset 0 5px 10px #292d2980,0 2px 1px #fff9}.screen{position:relative;padding:24px;border:4px solid #262e27;border-radius:40px / 32px;background:var(--glass);color:var(--phosphor);overflow:hidden;box-shadow:inset 0 0 32px #000,0 1px 2px #fff6}.screen:after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(ellipse at 50% 50%,transparent 65%,#0006),linear-gradient(115deg,#ffffff0d,transparent 27%,transparent 80%,#ffffff05),repeating-linear-gradient(transparent 0 3px,#0001 3px 4px);box-shadow:inset 0 4px 12px #ffffff19,inset 0 -5px 10px #0009}.screen-top,.screen-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font:10px var(--utility);letter-spacing:1px}.screen-top{padding-bottom:14px;border-bottom:1px solid #35523b}.screen-bottom{padding-top:14px;border-top:1px solid #35523b;color:#8db796;overflow-wrap:anywhere}#stage{height:min(390px,60svh);position:relative;display:grid;place-items:center;margin:16px 0;overflow:hidden}#welcome{width:100%;padding:12px 24px}h1{font:normal clamp(36px,6vw,66px)/1.02 var(--display);margin:22px 0;color:var(--phosphor);text-wrap:balance}#welcome p:not(.eyebrow){font-size:13px;line-height:1.9;color:#9dc69f}.eyebrow{font:10px var(--utility);letter-spacing:1.5px}.cursor{font-size:30px}video{width:100%;height:100%;object-fit:contain}pre{margin:0;line-height:1;font-family:monospace;white-space:pre;color:var(--phosphor)}#viewfinder{position:relative;outline:1px solid #6f9e7a;overflow:hidden}#viewfinder video{display:block}#ascii{position:absolute;left:0;top:0;transform-origin:top left}#count{position:absolute;inset:0;display:grid;place-items:center;font-size:110px;background:#06110a88}.console{padding:24px 4px 10px}#status{font-size:13px;line-height:1.6;min-height:42px;max-width:72ch}.buttons{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 28px}button{font:700 12px var(--utility);padding:15px 20px;border:1px solid #7b7e70;border-bottom:4px solid #74786b;border-radius:7px;background:linear-gradient(var(--key),#d4d4c5);color:var(--ink);box-shadow:inset 1px 2px 1px #fff,0 4px 0 #a1a393,0 6px 6px #393b3433;cursor:pointer;min-height:48px}#capture,#save{background:linear-gradient(#657961,#415b40);color:#f2f3e7;border-color:#354332;box-shadow:inset 0 1px 1px #ffffff50,0 4px 0 #324330,0 6px 6px #393b3433}button:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 1px 3px #393b3455,0 1px 0 var(--trim)}button:disabled{opacity:1;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #385a83;outline-offset:5px}label{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font:11px var(--utility);letter-spacing:1px}.density-control{display:flex;gap:26px;align-items:center;padding-top:20px}.density-track{flex:1;min-width:0}input[type=range]{width:100%;accent-color:#455d43;margin:12px 0 18px;cursor:pointer;height:24px}.range-labels{display:flex;justify-content:space-between;font:10px var(--utility)}#density-help{font:11px/1.6 var(--utility);max-width:55ch}footer{border-top:1px solid #aaa99c;margin-top:18px;padding:22px 4px 4px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;font-size:18px;letter-spacing:2px}footer small{font-size:8px;letter-spacing:1px}.vent{letter-spacing:3px;font-size:24px;color:#797d6e}.power-toggle{display:flex;gap:12px;align-items:center;text-align:left;background:transparent;border:0;box-shadow:none;padding:5px;font-size:10px}.toggle-lever{width:28px;height:48px;border:4px solid #8b8f81;border-radius:5px;background:#4d5349;box-shadow:inset 0 2px 4px #0008;position:relative}.toggle-lever:after{content:'';position:absolute;left:1px;right:1px;height:22px;bottom:1px;border:1px solid #aaa99c;background:linear-gradient(#faf7e9,#aaa99c);border-radius:3px;box-shadow:0 2px 2px #0005}.power-toggle[aria-checked=true] .toggle-lever:after{bottom:17px}.power-toggle[aria-checked=true]{color:#354f31}.privacy{text-align:center;font:11px/1.9 var(--utility);margin:28px auto 0;max-width:65ch}@media(max-width:600px){body{padding:24px 16px}.machine{padding:14px;border-radius:26px 26px 18px 18px}.bezel{padding:10px;border-radius:30px}.screen{padding:14px;border-width:3px;border-radius:25px}#welcome{padding:4px}.console{padding:16px 4px}button{flex:1;padding:14px 10px}.screen-top,.screen-bottom{font-size:8px}.eyebrow{font-size:9px}.vent{display:none}footer{font-size:14px;gap:12px}.power-toggle{flex:0 1 auto}.density-control{gap:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto;transition:none!important;animation:none!important}}

/* Native linear fader: the handle itself is draggable, with keyboard support. */
#ascii{opacity:0;pointer-events:none}#crt{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.density-control{padding:18px 12px 8px;background:linear-gradient(100deg,#c0c3b6,#e5e4d6 45%,#b7baac);border:1px solid #8b8f81;border-radius:5px;margin-top:16px;box-shadow:inset 0 1px 2px #fff9}.density-track{padding:0 10px}input[type=range]{appearance:none;-webkit-appearance:none;background:repeating-linear-gradient(90deg,#666b5f 0 1px,transparent 1px 8.33%);height:48px;touch-action:pan-y}input[type=range]::-webkit-slider-runnable-track{height:8px;background:#454c40;border:1px solid #252e25;border-radius:3px;box-shadow:0 1px #fff8}input[type=range]::-webkit-slider-thumb{appearance:none;width:30px;height:42px;margin-top:-18px;border:1px solid #555d4f;border-radius:4px;background:linear-gradient(#e2e3d7 0 40%,#555e4d 41% 47%,#f3f0e3 48% 55%,#babfaf 56%);box-shadow:0 3px 3px #393b3466;cursor:ew-resize}input[type=range]::-moz-range-track{height:8px;background:#454c40}input[type=range]::-moz-range-thumb{width:30px;height:42px;border:1px solid #555d4f;border-radius:4px;background:linear-gradient(#e2e3d7,#555e4d 45%,#f3f0e3 50%,#babfaf);cursor:ew-resize}

.machine-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:0 5px 24px;font:700 16px var(--utility);letter-spacing:2px}.machine-top small{font:10px var(--utility);letter-spacing:1px}.machine-top .power-toggle{flex:none}h1{font:700 clamp(26px,5vw,50px)/1.2 var(--utility);letter-spacing:-1px;text-transform:uppercase}#welcome p:not(.eyebrow){font-family:var(--utility);font-size:12px;line-height:2}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;border-radius:2px;width:34px;height:46px;margin-top:-20px;border:1px solid #555b55;background:repeating-linear-gradient(0deg,transparent 0 3px,#777e7840 3px 4px),linear-gradient(90deg,#939b95,#e2e5dd 15%,#b6bdb6 48%,#e0e4dc 85%,#878f87);box-shadow:inset 1px 1px #ffffffe0,inset -2px -2px #666e66,0 4px 4px #18201888}input[type=range]::-moz-range-thumb{appearance:none;border-radius:2px;width:34px;height:46px;border:1px solid #555b55;background:repeating-linear-gradient(0deg,transparent 0 3px,#777e7840 3px 4px),linear-gradient(90deg,#939b95,#e2e5dd 15%,#b6bdb6 48%,#e0e4dc 85%,#878f87);box-shadow:inset 1px 1px #ffffffe0,inset -2px -2px #666e66,0 4px 4px #18201888}input[type=range]::-webkit-slider-runnable-track{height:9px;box-shadow:inset 0 3px 3px #000a,0 1px #fff9}input[type=range]::-moz-range-track{height:9px;box-shadow:inset 0 3px 3px #000a,0 1px #fff9}@media(max-width:600px){.machine-top{padding-bottom:18px;font-size:13px;letter-spacing:1px}#welcome p:not(.eyebrow){font-size:10px}}

/* Sculpted ivory ABS action keys in a recessed key well; no dummy keyboard. */
.buttons{padding:14px 14px 20px;background:linear-gradient(#969987,#808571);border:1px solid #a0a38e;border-radius:4px;box-shadow:inset 0 3px 5px #424a3555,0 1px #fff9;gap:15px}button:not(.power-toggle){min-height:62px;border-radius:4px;border-top:3px solid #fcf9e8;border-left:6px solid #dbd9c7;border-right:6px solid #c2c3b1;border-bottom:12px solid #a1a593;background:radial-gradient(ellipse at 50% 20%,#d8dacb,transparent 80%),linear-gradient(#efecda,#dedfcc);box-shadow:inset 0 1px 3px #818b7255,0 5px 0 #717b65,0 7px 4px #172016aa;color:#343e30;font-size:11px;letter-spacing:.3px;font-weight:600;padding:14px 12px 10px;text-shadow:0 1px #fff8}#capture,#save{background:radial-gradient(ellipse at top,#353d34,#4c5849);border-top-color:#6a7563;border-left-color:#606e58;border-right-color:#3d4937;border-bottom-color:#303f2c;color:#f3f0df;text-shadow:0 1px #0008;box-shadow:inset 0 1px 3px #0005,0 5px 0 #253322,0 7px 4px #172016aa}button:not(.power-toggle):active:not(:disabled){transform:translateY(4px);box-shadow:inset 0 2px 3px #17201666,0 1px 0 #717b65}.power-toggle{border-radius:0}@media(max-width:600px){.buttons{padding:12px 10px 18px;gap:13px}button:not(.power-toggle){min-height:58px;font-size:10px;padding-inline:8px}}

/* One subtle static displacement across the complete CRT, never the controls. */
.screen-content{filter:url(#screen-curve);position:relative;padding:7px;overflow:visible}.screen{overflow:hidden}#crt{pointer-events:none}

.power-bank{display:flex;align-items:center;gap:20px;justify-content:flex-start;margin:12px 0 24px}.power-bank .power-toggle{flex:none}#physical-led{width:13px;height:13px;border:3px solid #777e6e;border-radius:50%;background:#3d453b;box-shadow:inset 0 2px 3px #0008,0 1px #fff8}#physical-led[data-state=live]{background:#a1d47a;box-shadow:0 0 7px #7baf5c77}#physical-led[data-state=captured]{background:#d6b16f}

#physical-led[data-state=captured]{animation:capture-led 1.2s steps(1,end) forwards}@keyframes capture-led{to{background:#3d453b;box-shadow:inset 0 2px 3px #0008,0 1px #fff8}}

/* One coordinated rectangular recess: 6%/7% inner bounds shared by facets and glass. */
.machine{padding:30px 24px 24px;border-radius:18px;border-top:3px solid #fff9e8;border-left:4px solid #eeecd9;border-right:8px solid #b4b19f;border-bottom:12px solid #aaa795;background:linear-gradient(125deg,#f2eddb,#dfdbc9 46%,#c7c3b0);box-shadow:inset 3px 3px 5px #fff8,inset -3px -5px 7px #8b897d66,0 9px 0 #898d7c,8px 24px 35px #393b3444}
.bezel{position:relative;isolation:isolate;padding:5% 6%;background:#aeb49b;border:0;border-radius:5px;box-shadow:inset 0 3px 6px #333b2c99,0 2px 1px #fff9d9;overflow:visible}
.bezel:before,.bezel:after{display:none}
.bezel-faces{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;border-radius:4px}
.screen{border:0;border-radius:0;padding:24px 22px;background:#08160f;clip-path:url(#smooth-aperture);box-shadow:none}
.screen:after{border-radius:0;background:radial-gradient(ellipse at 30% 7%,#ffffff0b,transparent 38%),repeating-linear-gradient(transparent 0 3px,#0001 3px 4px);box-shadow:none}
.screen-content{padding:8px 6px;filter:url(#screen-curve);position:relative;overflow:visible}
#stage{height:min(360px,55svh)}
@media(max-width:600px){.machine{padding:20px 10px 16px;border-right-width:5px;border-bottom-width:9px}.bezel{padding:7% 6%}.screen{padding:22px 14px}.screen-content{padding:7px 3px}.screen-top,.screen-bottom{font-size:8px;letter-spacing:.5px}#welcome{padding:0}}

/* Stable physical panel: every action retains its slot in every state. */
.buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.buttons button{width:100%;min-width:0;height:76px}.console #status{height:64px;overflow:auto}.density-control{min-height:150px}.density-track{position:relative;padding-left:125px;min-height:120px}.density-track:before{content:'';position:absolute;left:0;top:4px;width:100px;height:100px;border-radius:50%;border:8px solid #727a69;background:repeating-conic-gradient(#303c2d 0deg 2deg,#c7ccba 2deg 15deg);box-shadow:0 5px 7px #18201877,inset 0 1px #fff}.density-track:after{content:'';position:absolute;left:17px;top:21px;width:66px;height:66px;border:1px solid #697261;border-radius:50%;background:linear-gradient(125deg,#f0f0e5,#a3afa0);box-shadow:inset 2px 2px #fff9,0 4px 5px #18201866;pointer-events:none;transform:rotate(var(--knob-angle,-9deg))}.density-control input[type=range]{position:absolute;left:0;top:4px;width:100px;height:100px;margin:0;opacity:0;z-index:3;touch-action:none;cursor:grab}.density-track:focus-within:before{outline:3px solid #385a83;outline-offset:4px}.range-labels{padding-top:14px}.density-control{position:relative}.density-control:after{content:'';position:absolute;left:59px;top:38px;width:4px;height:20px;background:#34452e;transform-origin:2px 34px;transform:rotate(var(--knob-angle,-9deg));pointer-events:none;z-index:2}.density-track:has(input:disabled){opacity:1}@media(max-width:600px){.buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.console #status{height:90px}.density-track{padding-left:112px}#density-help{font-size:10px}}

.screen-bottom{height:54px;overflow:auto;align-content:start}.screen-top{height:32px;overflow:auto}.range-labels{visibility:visible}

/* Shared thick case gutters, not page margins. Knob parts share one explicit center. */
.machine{--case-gutter:clamp(26px,4.5vw,48px);padding-left:var(--case-gutter);padding-right:var(--case-gutter)}.console{padding-left:0;padding-right:0}.buttons{margin-left:0;margin-right:0}
.density-control{--knob-size:100px;--knob-x:62px;--knob-y:64px;min-height:156px;padding:18px 12px 8px}.density-track{position:static;padding-left:125px;min-height:120px}.density-track:before{left:var(--knob-x);top:var(--knob-y);width:var(--knob-size);height:var(--knob-size);transform:translate(-50%,-50%)}.density-track:after{left:var(--knob-x);top:var(--knob-y);width:66px;height:66px;transform:translate(-50%,-50%)}.density-control:after{left:var(--knob-x);top:var(--knob-y);width:4px;height:20px;transform-origin:2px 0;transform:translate(-50%,-50%) rotate(var(--knob-angle,-9deg)) translateY(-22px)}.density-control input[type=range]{left:var(--knob-x);top:var(--knob-y);width:var(--knob-size);height:var(--knob-size);transform:translate(-50%,-50%)}@media(max-width:600px){.machine{--case-gutter:26px;padding-left:var(--case-gutter);padding-right:var(--case-gutter)}.density-track{padding-left:108px}.density-control{--knob-x:58px}}

/* Balanced upper shell and period mechanical rocker / small ivory grip knob. */
.machine{padding-top:var(--case-gutter)}
.power-toggle{padding:6px 8px;gap:14px;background:linear-gradient(110deg,#e9e5d3,#d4d2bd);border:1px solid #b2b39d;box-shadow:inset 1px 1px #fff8,inset -1px -1px #a3a78f;border-radius:2px}
.toggle-lever{width:35px;height:65px;border:5px solid #a3a58f;border-top-color:#858d77;border-bottom-color:#ebe8cc;border-radius:2px;background:linear-gradient(#6b735f,#e0ddc2 75%,#f2eed4);box-shadow:inset 0 4px 5px #29322288;position:relative}
.toggle-lever:after{left:0;right:0;bottom:13px;height:35px;border:1px solid #232a22;border-radius:1px;background:linear-gradient(#333c31 0 36%,#a34231 37% 52%,#332c25 53% 60%,#21291f 61%);box-shadow:inset 1px 1px #69715d,0 3px 3px #18201899;transform:perspective(80px) rotateX(-15deg)}
.power-toggle[aria-checked=true] .toggle-lever:after{bottom:16px;transform:perspective(80px) rotateX(15deg)}
.power-toggle small{font-size:9px;letter-spacing:1px}.density-track:before{width:86px;height:86px;border:2px solid #7b816e;background:repeating-conic-gradient(#525d47 0 1deg,#d9d6bc 1deg 27deg);box-shadow:0 2px 3px #18201866,inset 0 1px #fff8}
.density-track:after{width:58px;height:58px;border:2px solid #4e5947;background:radial-gradient(circle at 35% 25%,#f3efdb,#d7d5bc 70%,#b8bea6);box-shadow:inset 1px 1px #ffffe8,inset -2px -2px #a8af97,0 4px 4px #18201888;transform:translate(-50%,-50%) rotate(var(--knob-angle,-9deg))}
.density-control:after{width:43px;height:9px;border:1px solid #a8ae97;border-radius:2px;background:linear-gradient(#f3efd7,#c3c7ae);box-shadow:0 2px 2px #68715b88;transform-origin:center;transform:translate(-50%,-50%) rotate(var(--knob-angle,-9deg))}
@media(max-width:600px){.machine{padding-top:var(--case-gutter)}}

.screen-bottom #status{flex-basis:100%;font:10px/1.5 var(--utility);height:30px;min-height:30px;margin:0;overflow:auto;color:var(--phosphor)}.screen-bottom{height:88px}.console #status{display:none}

.console #status{display:block;height:64px;min-height:64px;font:12px/1.5 var(--utility);overflow:auto;margin:0 0 14px}.density-control input[type=range]{cursor:grab}button:active{transform:translateY(4px)}

.screen-bottom #status{display:block;flex-basis:100%;font:10px/1.5 var(--utility);height:30px;min-height:30px;margin:0;overflow:auto;color:var(--phosphor)}.screen-bottom{height:88px}

/* Left instrument stack beside a six-key, two-row keyboard. */
.control-panel{display:grid;grid-template-columns:145px minmax(0,1fr);gap:24px;align-items:start}.control-column{display:flex;flex-direction:column;gap:16px;min-width:0}.buttons{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,86px);margin:0;padding:13px 12px 20px;gap:12px}.buttons button{height:76px}.power-bank{margin:0;gap:10px;flex-wrap:wrap}.power-toggle{width:100%;padding:5px;gap:8px;font-size:8px}.density-control{padding:0;min-height:105px;border:0;background:none;box-shadow:none;--knob-x:65px;--knob-y:52px}.density-track{padding:0;min-height:105px}.range-labels,#density-help{display:none}label[for=density]{font-size:9px;margin:0;letter-spacing:.4px}.console>.eyebrow{display:none}#density-box{width:100%}#physical-led{flex:none}@media(max-width:600px){.control-panel{grid-template-columns:82px minmax(0,1fr);gap:9px}.buttons{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,88px);gap:6px;padding:8px 6px 14px}.buttons button{height:80px;padding:6px 2px;font-size:8px;overflow-wrap:anywhere;border-left-width:3px;border-right-width:3px}.power-toggle{gap:5px;font-size:7px;flex-wrap:wrap;justify-content:center}.power-toggle small{font-size:7px}.power-bank{gap:5px}.density-control{--knob-x:41px;--knob-y:48px;min-height:100px}.density-track:before{width:76px;height:76px}.density-track:after{width:54px;height:54px}.density-control input[type=range]{width:80px;height:90px}.density-track{min-height:100px}label[for=density]{font-size:8px;overflow-wrap:anywhere}}

/* One disciplined two-row bank: instruments and four keys share all outer edges. */
.control-panel{grid-template-columns:145px minmax(0,1fr);gap:18px;height:242px}.control-column{height:242px;display:grid;grid-template-rows:1fr 1fr;gap:0;border:1px solid #a4aa93;background:linear-gradient(110deg,#e4e1cd,#d4d7c0);box-shadow:inset 1px 1px #fff9}.power-bank{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:7px;margin:0;border-bottom:1px solid #b0b69e}.power-toggle{width:auto;max-width:112px;flex:none}.buttons{height:242px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:16px;padding:16px 16px 21px;margin:0}.buttons button{height:100%;max-width:none}.control-column #density-box{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-height:0}.control-column label{position:absolute;bottom:4px;font-size:9px;margin:0}.control-column .density-control{width:100%;height:100%;min-height:0;--knob-x:50%;--knob-y:48px;padding:0}.control-column .density-track{min-height:0}.control-column .density-track:before{width:76px;height:76px}.control-column .density-track:after{width:54px;height:54px}.control-column input[type=range]{width:86px;height:86px}@media(max-width:600px){.control-panel{grid-template-columns:90px minmax(0,1fr);gap:10px;height:242px}.buttons{height:242px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));padding:10px 8px 15px;gap:12px}.buttons button{height:100%;font-size:9px}.power-bank{gap:3px}.power-toggle{width:64px;font-size:7px;padding:3px}.power-toggle small{font-size:7px}.control-column .density-control{--knob-x:50%;--knob-y:48px}.control-column{height:242px}}

/* Fixed switch chassis; only the red molded rocker pivots on its hinge. */
.power-toggle,.power-toggle:active,.power-toggle:active:not(:disabled){transform:none;box-shadow:inset 1px 1px #fff8,inset -1px -1px #a3a78f}
.toggle-lever:after{bottom:14px;background:linear-gradient(110deg,#ee5a40 0%,#c83020 48%,#a21e15 100%);border:1px solid #8f2117;box-shadow:inset 1px 1px #ff9470,inset -2px -2px #861d14,0 3px 3px #18201899;transform-origin:50% 50%;transform:perspective(80px) rotateX(-18deg);transition:transform 100ms ease}
.power-toggle[aria-checked=true] .toggle-lever:after{bottom:14px;transform:perspective(80px) rotateX(18deg)}
.power-toggle:active .toggle-lever:after{transform:perspective(80px) rotateX(-6deg) translateZ(-1px)}
.power-toggle[aria-checked=true]:active .toggle-lever:after{transform:perspective(80px) rotateX(6deg) translateZ(-1px)}
@media(prefers-reduced-motion:reduce){.toggle-lever:after{transition:none}}

.power-toggle>span:last-child{display:block;width:56px;height:30px;flex:none}.power-toggle{justify-content:center}

/* Fixed-size sculpted keys, a compact well and deliberate gap from the instruments. */
.control-panel{grid-template-columns:145px max-content;gap:38px;justify-content:center;height:204px}.control-column{height:204px}.buttons{width:max-content;height:204px;grid-template-columns:repeat(2,128px);grid-template-rows:repeat(2,72px);gap:16px;padding:16px 16px 21px;align-content:center}.buttons button{width:128px;height:72px;min-height:72px}.power-toggle{width:66px;min-width:66px;height:90px;justify-content:center;flex-wrap:nowrap}.power-toggle>span:last-child{width:35px;height:65px}.control-column .density-control{--knob-y:42px}.control-column label{bottom:1px}@media(max-width:600px){.control-panel{grid-template-columns:78px max-content;gap:14px;height:204px}.control-column{height:204px}.buttons{width:max-content;height:204px;grid-template-columns:repeat(2,54px);grid-template-rows:repeat(2,72px);gap:10px;padding:10px 7px 15px}.buttons button{width:54px;height:72px;min-height:72px;font-size:8px}.power-toggle{width:60px;min-width:60px}.control-column .density-control{--knob-y:42px}}

/* Independent instruments and keywell anchored to opposite inner case edges. */
.control-panel{display:flex;justify-content:space-between;align-items:flex-end;width:100%;height:218px;gap:24px;padding:0;background:none;border:0;box-shadow:none;border-radius:0}.control-column{height:194px;max-width:none;width:145px;flex:none;border:0;background:none;box-shadow:none;display:grid;grid-template-rows:88px 106px;gap:0}.power-bank{border:0;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:7px;margin:0}.buttons{width:max-content;height:194px;flex:none;grid-template-columns:repeat(2,128px);grid-template-rows:repeat(2,72px);padding:9px 10px 12px;gap:16px;align-content:center}.buttons button{width:128px;height:72px}.power-toggle{height:82px}.control-column #density-box{justify-content:flex-start}.control-column .density-control{width:100%;height:82px;flex:none;--knob-x:50%;--knob-y:39px;min-height:82px;padding:0}.control-column .density-track{min-height:0}.control-column .density-track:before{width:68px;height:68px}.control-column .density-track:after{width:50px;height:50px}.control-column input[type=range]{width:76px;height:78px}.control-column label{position:static;display:block;line-height:12px;margin-top:8px;flex:none}.control-column .density-control:after{width:39px}.control-column #density-box>.density-control{order:0}.control-column #density-box>label{order:1}
@media(max-width:600px){.control-panel{height:218px;gap:12px;padding:0}.control-column{height:194px;width:72px}.buttons{height:194px;width:max-content;grid-template-columns:repeat(2,58px);grid-template-rows:repeat(2,72px);gap:8px;padding:9px 5px 12px}.buttons button{width:58px;height:72px;font-size:8px}.power-toggle{min-width:50px;width:50px}.power-bank{gap:2px}#physical-led{width:11px;height:11px;border-width:2px}.control-column label{font-size:8px}}

/* Four action keys in one uninterrupted row; independent edge anchors retained. */
.buttons{grid-template-columns:repeat(4,128px);grid-template-rows:72px;height:109px;gap:12px;padding:12px 10px 23px}.control-panel{gap:18px}.control-column{width:130px}@media(max-width:600px){.control-panel{height:auto;min-height:305px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px}.control-column{width:72px;height:194px}.buttons{margin-left:auto;width:max-content;height:101px;grid-template-columns:repeat(4,44px);grid-template-rows:72px;gap:5px;padding:9px 5px 18px}.buttons button{width:44px;height:72px;font-size:8px}}

/* One left instrument row, opposite the unchanged four-key row. */
.control-column{width:210px;height:109px;display:flex;flex-direction:row;align-items:flex-start;gap:14px}.power-bank{height:109px;width:90px;flex:none;align-items:center;justify-content:center}.control-column #density-box{width:100px;height:109px;flex:none;display:flex;justify-content:flex-start}.control-column .density-control{height:82px;--knob-y:41px}.control-column label{margin-top:8px}.control-panel{gap:16px}.power-toggle{height:82px}.toggle-lever{perspective:120px;overflow:visible;background:linear-gradient(#343d2d,#687357 48%,#d9d5bb);box-shadow:inset 0 5px 6px #182018bb}.toggle-lever:after{bottom:13px;height:37px;transform-style:preserve-3d;transform-origin:50% 50%;background:linear-gradient(#ef5941 0 48%,#a42218 49% 52%,#d73523 53%);border-top:3px solid #f66d50;border-bottom:4px solid #8f1b13;transform:perspective(120px) rotateX(-24deg);box-shadow:inset 1px 0 #ff9674,inset -1px 0 #8d1d14,0 5px 4px #18201888}.power-toggle[aria-checked=true] .toggle-lever:after{bottom:13px;transform:perspective(120px) rotateX(24deg);box-shadow:inset 1px 0 #ff9674,inset -1px 0 #8d1d14,0 -5px 4px #18201888}.power-toggle:active .toggle-lever:after{transform:perspective(120px) rotateX(-10deg)}.power-toggle[aria-checked=true]:active .toggle-lever:after{transform:perspective(120px) rotateX(10deg)}@media(max-width:900px){.control-panel{flex-wrap:wrap;justify-content:space-between;height:auto;min-height:230px;gap:12px}.control-column{height:109px;width:210px}.buttons{margin-left:auto}}@media(max-width:600px){.control-panel{min-height:230px}.control-column{width:190px;height:109px;gap:10px}.power-bank{width:80px;height:109px}.control-column #density-box{width:100px}.control-column .density-control{--knob-y:41px}}

/* Integrated red pivot and paddle: positive rotateX sweeps the free end toward the viewer. */
.toggle-lever:after{display:none}.paddle-root{position:absolute;left:50%;top:50%;width:25px;height:53px;transform:translate(-50%,-50%);transform-origin:center;background:linear-gradient(90deg,#ad291b,#d5442d 18%,#c73322 78%,#942116);border:1px solid #9a2619;border-radius:2px;z-index:0;box-shadow:inset 0 1px #ff9c76,0 1px 2px #18201877;transition:transform 140ms ease}.red-paddle{position:absolute;left:50%;top:50%;width:23px;height:23px;margin-left:-11.5px;transform-origin:50% 0%;transform:perspective(100px) rotateX(35deg);background:linear-gradient(110deg,#ef5941,#d73523 65%,#a42218);border:1px solid #9a2619;border-top:0;border-bottom:4px solid #942116;border-radius:1px 1px 3px 3px;box-shadow:inset 1px 0 #ff9674,inset -1px 0 #a42218,2px 3px 3px #18201888;backface-visibility:visible;transition:transform 140ms ease}
.power-toggle[aria-checked=true] .red-paddle{transform:perspective(100px) rotateX(145deg)}.power-toggle[aria-checked=true] .paddle-root{transform:translate(-50%,-50%)}
.power-toggle:active .red-paddle{transform:perspective(100px) rotateX(65deg)}.power-toggle[aria-checked=true]:active .red-paddle{transform:perspective(100px) rotateX(115deg)}.power-toggle:active .paddle-root{transform:translate(-50%,-50%)}.power-toggle[aria-checked=true]:active .paddle-root{transform:translate(-50%,-50%)}@media(prefers-reduced-motion:reduce){.red-paddle,.paddle-root{transition:none}}

/* Embedded monitor pilot lamp on the casing below the right bezel edge. */
.power-bank{position:relative;padding-right:20px}.bezel #physical-led{position:absolute;left:auto;right:0;top:calc(100% + 20px);transform:none;z-index:2}@media(max-width:600px){.power-bank{padding-right:13px}.bezel #physical-led{right:0}}

/* Orange capture; ivory copy/save. Unoutlined pilot lens and engraved open scale. */
#capture{background:radial-gradient(ellipse at top,#efad61,#d67d2f);color:#412e1c;border-top-color:#ffd49a;border-left-color:#eaa456;border-right-color:#b96524;border-bottom-color:#a9521c;box-shadow:inset 0 1px 3px #8f491e44,0 5px 0 #8f491e,0 7px 4px #172016aa;text-shadow:0 1px #ffdda588}
#save{background:radial-gradient(ellipse at 50% 20%,#d8dacb,transparent 80%),linear-gradient(#efecda,#dedfcc);color:#343e30;border-top-color:#fcf9e8;border-left-color:#dbd9c7;border-right-color:#c2c3b1;border-bottom-color:#a1a593;box-shadow:inset 0 1px 3px #818b7255,0 5px 0 #717b65,0 7px 4px #172016aa;text-shadow:0 1px #fff8}
.bezel #physical-led{border:0;box-shadow:none;width:9px;height:9px}.control-column .density-track:before{background:none;border:0;box-shadow:none;outline:none}.scale-mark{position:absolute;left:50%;top:39px;width:1px;height:5px;background:#5d694f;transform-origin:50% 0;pointer-events:none}.scale-number{position:absolute;top:65px;font:8px var(--utility);color:#4e5b41;pointer-events:none}.scale-number.min{left:calc(50% - 40px)}.scale-number.max{left:calc(50% + 25px)}

.knob-dot-arm{position:absolute;left:var(--knob-x);top:var(--knob-y);width:0;height:0;transform:rotate(var(--knob-angle));pointer-events:none;z-index:2}.knob-dot{position:absolute;width:4px;height:4px;left:-2px;top:-22px;border-radius:50%;background:#38452d;box-shadow:inset 0 1px 1px #15200c88}.scale-mark{left:var(--knob-x);top:var(--knob-y)}

.power-bank{position:relative}.power-engraving{position:absolute;top:106px;left:calc(50% - 10px);transform:translateX(-50%);font:9px/12px var(--utility);letter-spacing:.4px;color:var(--ink)}.control-column .density-control:after{width:9px;height:39px}.knob-dot{top:-20px}@media(max-width:600px){.power-engraving{left:calc(50% - 6.5px);font-size:8px}}

/* The grip and its inset dot are one rotating DOM assembly above the cap. */
.control-column .density-control:after{display:none}.knob-dot-arm{width:9px;height:39px;margin-left:-4.5px;margin-top:-19.5px;transform-origin:50% 50%;transform:rotate(var(--knob-angle));border:1px solid #a8ae97;border-radius:2px;background:linear-gradient(90deg,#f3efd7,#c3c7ae);box-shadow:0 2px 2px #68715b88;z-index:4}.knob-dot{width:5px;height:5px;left:1px;top:2px;background:#26351b;box-shadow:inset 0 1px 1px #0b1307;z-index:1}.density-control input[type=range]{z-index:5}

.case-signature{position:absolute;left:50%;transform:translateX(-50%);top:calc(100% + 20px);font:9px/12px var(--utility);letter-spacing:.5px;color:#737866;text-shadow:0 1px #ffffe388;white-space:nowrap}.knob-dot{width:3px;height:3px;left:2px;top:3px;background:#7b7e6b;box-shadow:none}

/* Match the visible keycap margins, including the 5px solid key base. */
.buttons{height:auto;padding:16px 16px 21px;align-content:start}
@media(max-width:600px){.buttons{height:auto;padding:10px 10px 15px}}

/* Letterforms are real ASCII characters, not a simulated display font. */
#welcome .ascii-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;font:700 clamp(8px,1.15vw,13px)/1.2 monospace;letter-spacing:0;text-transform:none;text-wrap:initial;margin:24px 0;color:var(--phosphor)}
.ascii-heading .ascii-word{display:block;white-space:pre;font:inherit;letter-spacing:0}
.ascii-heading .ascii-arrow{font:inherit;white-space:pre}
@media(max-width:600px){#welcome .ascii-heading{font-size:8px;gap:8px 12px;margin:16px 0}}

/* Responsive fit: full console within a 1080p first screen; mobile uses a landscape-biased CRT instead of a tall strip. */
@media(min-width:601px){body{padding-top:24px;padding-bottom:24px}}
@media(max-width:600px){.machine{--case-gutter:12px}#stage{height:clamp(170px,52vw,240px)}.screen-bottom{gap:6px}}
@media(max-width:600px){
 body{padding:20px 16px}
 #welcome{padding:0}
 #welcome .ascii-heading{flex-wrap:nowrap;font-size:6px;line-height:1.1;gap:6px;margin:10px 0}
 #welcome .eyebrow{font-size:8px}
 #welcome p:not(.eyebrow){font-size:9px;line-height:1.55}
 .cursor{font-size:20px}
 #stage{height:clamp(190px,54vw,240px)}
}
@media(max-width:600px){body{padding-block:18px}#stage{height:clamp(180px,50vw,230px)}}
@media(max-width:600px){#welcome .ascii-heading{font-size:7px}}

/* Desktop: treat the console as one physical object and scale the whole unit to the real viewport. */
@media(min-width:601px){
 body{height:100svh;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:16px}
 main{display:flex;align-items:center;justify-content:center}
 .machine{transform:scale(var(--fit-scale,1));transform-origin:center center;flex:none}
}
@media(min-width:601px){.machine{transform:none!important;zoom:var(--fit-scale,1)}}
@media(min-width:601px){body{padding:16px 48px 80px}}
