:root {
  color-scheme: dark;
  --panel: rgba(8, 13, 20, .88);
  --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:#05070a; color:var(--text); font-family:Consolas,"Courier New",monospace; }
button, input, audio, select { font:inherit; }
.app-shell { width:100vw; height:100vh; position:relative; display:grid; place-items:center; background:#05070a; }
.scene-frame { position:absolute; inset:0; display:grid; place-items:center; overflow:hidden; }
#beach { display:block; width:min(100vw, calc(100vh * 16 / 9)); height:min(100vh, calc(100vw * 9 / 16)); image-rendering:pixelated; image-rendering:crisp-edges; box-shadow:0 0 80px rgba(0,0,0,.55); }
.scene-ui { position:absolute; top:18px; left:50%; transform:translateX(-50%); z-index:5; width:min(760px,calc(100vw - 28px)); padding:10px 12px; display:grid; grid-template-columns:auto 1fr; grid-template-areas:"brand actions" "playing playing"; gap:8px 18px; align-items:center; background:linear-gradient(180deg,rgba(5,10,15,.74),rgba(5,10,15,.46)); border:1px solid rgba(143,232,233,.23); box-shadow:0 12px 35px rgba(0,0,0,.26); backdrop-filter:blur(5px); }
.scene-brand { grid-area:brand; display:flex; flex-direction:column; }
.scene-brand strong { font-size:20px; letter-spacing:.09em; line-height:1; }
.scene-actions { grid-area:actions; display:flex; justify-content:flex-end; gap:6px; }
.scene-btn { padding:7px 10px; font-size:10px; }
.scene-btn.primary { border-color:#82dbe0; color:#e7ffff; background:#1c3c45; }
.icon-btn { min-width:34px; font-size:14px; padding:4px 8px; }
.now-playing { grid-area:playing; display:flex; gap:10px; align-items:center; min-width:0; padding-top:7px; border-top:1px solid rgba(133,222,232,.14); font-size:9px; }
.now-playing span { color:var(--accent); letter-spacing:.08em; }
.now-playing b { color:#bdd3d6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:normal; }
.controls-hidden .panel { display:none; }
.ui-hidden .scene-ui, .ui-hidden .panel, .ui-hidden .bottom-hud { display:none; }
.panel { position:absolute; z-index:7; top:12px; bottom:42px; width:300px; background:var(--panel); border:1px solid var(--line); box-shadow:0 10px 40px rgba(0,0,0,.45); backdrop-filter:blur(6px); 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; z-index:6; 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; }
select { width:118px; color:#cce7e8; background:#111b22; border:1px solid #29444c; padding:4px; font-size:10px; }
#versionPill { color:#d998ff; }
@media (max-width: 820px) { .panel { width:250px; } .panel-right { display:none; } .bottom-hud { left:auto; right:8px; transform:none; } .scene-ui{grid-template-columns:1fr;grid-template-areas:"brand" "actions" "playing"}.scene-actions{justify-content:flex-start;} }
@media (max-width: 540px) { .panel { width:calc(100vw - 24px); bottom:auto; max-height:44vh; } .bottom-hud { display:none; } .scene-actions{display:grid;grid-template-columns:1fr 1fr auto}.scene-btn{font-size:8px}.scene-brand strong{font-size:17px} }

/* v0.7.1 audio-source and playlist additions */
.source-tabs-five{grid-template-columns:repeat(5,1fr);gap:3px}.source-tabs-five .source-btn{padding:9px 3px;font-size:10px}
.playlist{display:grid;gap:5px;margin:8px 0}.track-btn{display:grid;grid-template-columns:1fr auto;gap:3px 8px;text-align:left;padding:8px 9px;border:1px solid rgba(143,232,233,.18);background:rgba(5,12,18,.72);color:#b8dadd;cursor:pointer}.track-btn b{font-size:11px;color:#c9efdf}.track-btn span{grid-column:1/-1;color:#708d92;font-size:9px}.track-btn.active{border-left:3px solid #6df0bf;background:rgba(12,36,34,.78)}.track-btn:hover{border-color:rgba(143,232,233,.55)}
.device-label{display:grid;gap:6px;color:#8fb0b4;font-size:10px;margin:8px 0}.device-label select{width:100%;padding:8px;background:#0a151d;color:#d9eef0;border:1px solid rgba(143,232,233,.25)}
@media(max-width:760px){.source-tabs-five{grid-template-columns:repeat(3,1fr)}}
