:root {
  color-scheme: dark;
  --panel: rgba(8, 13, 20, .82);
  --line: rgba(133, 222, 232, .30);
  --text: #d9eef0;
  --muted: #7ea0a4;
  --accent: #8fe8e9;
  --accent2: #d998ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #090b10; color: var(--text); font-family: Consolas, "Courier New", monospace; }
button, input, audio, select { font: inherit; }
.app-shell { width: 100vw; height: 100vh; position: relative; background: #090b10; }
#beach { position:absolute; inset:0; width:100%; height:100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.panel { position:absolute; top:12px; bottom:42px; width:300px; background:var(--panel); border:1px solid var(--line); box-shadow:0 10px 40px rgba(0,0,0,.35); backdrop-filter: blur(5px); overflow:auto; padding:12px; scrollbar-width:thin; }
.panel-left { left:12px; }
.panel-right { right:12px; }
.brand-row { display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid var(--line); padding-bottom:10px; }
.eyebrow, .status-title { font-size:10px; letter-spacing:.18em; color:var(--accent); }
h1 { margin:2px 0 0; font-size:24px; letter-spacing:.08em; }
h2 { margin:0 0 10px; font-size:11px; color:#bcebed; letter-spacing:.09em; text-transform:uppercase; }
section { border-bottom:1px solid rgba(133,222,232,.18); padding:13px 0; }
section:last-child { border-bottom:0; }
.signal-lamp { width:10px; height:10px; border-radius:50%; background:#334247; box-shadow:0 0 0 2px rgba(255,255,255,.05); }
.signal-lamp.hot { background:#9efee6; box-shadow:0 0 12px #9efee6; }
.meter-wrap { margin-top:10px; }
.time-code { color:#8dfbe4; font-size:22px; font-weight:bold; text-shadow:0 0 9px rgba(141,251,228,.4); }
#miniScope { width:100%; height:52px; border:1px solid rgba(133,222,232,.16); background:rgba(0,0,0,.16); image-rendering:pixelated; }
.source-tabs, .segmented { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }
button { color:#b8d6d9; background:#17232c; border:1px solid #29444c; padding:7px 8px; cursor:pointer; text-transform:uppercase; }
button:hover { border-color:#78cbd1; color:white; }
button.active { background:#21414b; border-color:#82dbe0; color:#dfffff; box-shadow:inset 0 0 0 1px rgba(130,219,224,.15); }
button:disabled { opacity:.38; cursor:not-allowed; }
.source-pane { display:none; margin-top:10px; }
.source-pane.active { display:block; }
.file-picker { display:block; border:1px dashed #3b6b71; background:rgba(31,65,71,.26); padding:10px; text-align:center; cursor:pointer; }
.file-picker input { display:none; }
.track-name { margin:7px 0; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
audio { width:100%; height:34px; }
.wide-btn { width:100%; }
.wide-btn.secondary { margin-top:6px; }
.hint, .about-box p { margin:8px 0 0; color:#77979c; font-size:10px; line-height:1.45; }
.row, .toggle-row { display:grid; grid-template-columns:1fr 118px; gap:8px; align-items:center; margin:9px 0; color:#aac4c7; font-size:11px; }
input[type="range"] { width:118px; accent-color:#7ad1d5; }
.toggle-row input { justify-self:end; accent-color:#7ad1d5; }
.stat { display:grid; grid-template-columns:82px 1fr 34px; align-items:center; gap:6px; margin:9px 0; font-size:10px; }
.stat span { color:#9dbabe; }
.stat b { font-size:9px; text-align:right; color:#c9e8e9; }
.bar { height:7px; background:#19252c; border:1px solid #2b4149; }
.bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--accent),var(--accent2)); transition:width .08s linear; }
.readout-grid { display:grid; grid-template-columns:1fr auto; gap:7px 12px; font-size:10px; }
.readout-grid span { color:#78999d; }
.readout-grid b { color:#c7e5e7; }
.bottom-hud { position:absolute; left:50%; bottom:9px; transform:translateX(-50%); display:flex; gap:16px; padding:6px 12px; background:rgba(7,11,16,.72); border:1px solid rgba(133,222,232,.18); color:#73989c; font-size:9px; white-space:nowrap; }
.bottom-hud span:first-child { color:#a6f5ef; }
.ui-hidden .panel, .ui-hidden .bottom-hud { display:none; }
@media (max-width: 820px) {
  .panel { width:250px; }
  .panel-right { display:none; }
  .bottom-hud { left:auto; right:8px; transform:none; }
}
@media (max-width: 540px) {
  .panel { width:calc(100vw - 24px); bottom:auto; max-height:44vh; }
  .bottom-hud { display:none; }
}

select { width:118px; color:#cce7e8; background:#111b22; border:1px solid #29444c; padding:4px; font-size:10px; }
#versionPill { color:#d998ff; }
