:root { color-scheme: dark; --bg: #101312; --panel: #181d1b; --panel-2: #202723; --text: #edf4ef; --muted: #a8b5ad; --line: #344039; --accent: #45d19a; --accent-2: #efc75e; --danger: #ff7d7d; --blue: #7fb4ff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.mast { padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.eyebrow, .location, .toolbar p, footer, #updated { color: var(--muted); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(3rem, 12vw, 7.5rem); line-height: .9; letter-spacing: 0; }
.location { margin-top: 14px; font-size: 1.05rem; }
.panel { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.toolbar, .actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar h2 { font-size: 1.1rem; margin-bottom: 6px; }
.controls, .mode-controls { display: grid; grid-template-columns: repeat(2, 72px); gap: 8px; }
button, input { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text); font: inherit; }
select { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text); font: inherit; padding: 0 10px; }
button { font-weight: 700; cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { cursor: wait; opacity: .62; }
.band.active, .mode.active, #listen { background: var(--accent); border-color: var(--accent); color: #08110d; }
.status { min-height: 24px; margin: 18px 0 10px; color: var(--accent-2); }
.status.error { color: var(--danger); }
.tuned-display { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-bottom: 10px; border: 1px solid #496056; border-radius: 6px; background: #0c100f; color: var(--accent); font-size: clamp(1.35rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: 0; }
.waterfall-wrap { position: relative; width: 100%; aspect-ratio: 12 / 6.8; background: #050807; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: crosshair; image-rendering: auto; }
canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#marker { pointer-events: auto; }
.actions { margin-top: 14px; }
#listen, #stop, #left, #right { min-width: 112px; padding: 0 16px; }
#listen { min-width: 168px; }
#left.arrow, #right.arrow { min-width: 48px; width: 48px; padding: 0; font-size: 1.35rem; line-height: 1; }
.live-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.live-toggle input { min-height: auto; width: 18px; height: 18px; accent-color: var(--accent); }
.step-control { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.step-control select { width: 112px; }
.receiver { border-color: #41564d; }
.tune-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(140px, 1fr) auto auto; gap: 10px; align-items: end; margin-top: 16px; }
.tune-row label { color: var(--muted); font-weight: 700; }
input { width: 100%; padding: 0 12px; }
audio { width: 100%; margin-top: 14px; }
.hint { min-height: 22px; margin-top: 10px; color: var(--blue); }
footer { margin-top: 18px; font-size: .9rem; }
@media (max-width: 720px) { .toolbar, .actions { align-items: stretch; flex-direction: column; } .controls, .mode-controls { width: 100%; grid-template-columns: 1fr 1fr; } .step-control { justify-content: space-between; } .step-control select { width: min(180px, 55%); } .tune-row { grid-template-columns: 1fr; } #listen, #stop, #left, #right { width: 100%; } }
