/* OONA Shortwave — drawn after a 1970s Zenith Trans-Oceanic Royal 7000: brushed aluminum body,
   chrome trim, black glossy dial face with an amber-lit slide-rule scale, a world time-zone map in
   the lid, and a compass in the fold-down door. Single deliberate theme: the set on a walnut desk. */
:root {
  --desk: #241610;
  --alu: #b9b9b5;
  --alu-hi: #e4e4e0;
  --alu-lo: #8c8c88;
  --alu-ink: #1c1c1c;
  --alu-ink-dim: #4d4d4a;
  --alu-ink-faint: #7a7a76;
  --chrome-hi: #f4f4f2;
  --chrome-lo: #6f6f6c;
  --black: #0f0f10;
  --black-hi: #262628;
  --panel: #1a1a1c;
  --edge: #3a3a3e;
  --silk: #f1efe8;
  --silk-dim: #a9a69c;
  --amber: #f5b331;
  --amber-hi: #ffd66e;
  --amber-dim: #6b4a13;
  --lamp-bg: #2a1c08;
  --red: #d8261c;
  --blue: #79c7e6;
  --map-blue: #5f9ec4;
  --led: #6ee87a;
  --key: #232326;
  --key-hi: #3a3a3f;
  --good: #7fd48a;
  --fair: #f5b331;
  --weak: #d0764a;
  --none: #6a6660;
  --font-silk: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Share Tech Mono", "SF Mono", Menlo, Consolas, monospace;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--desk); }
body {
  margin: 0; color: var(--silk);
  background: var(--desk) url("assets/desk.jpg?v=2") center center / cover no-repeat fixed;
  font-family: var(--font-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.page { max-width: 1180px; margin: 0 auto; padding: 22px 18px 60px; display: grid; gap: 26px; }

/* ---------- masthead ---------- */
.masthead { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.family { font-family: var(--font-silk); font-weight: 700; letter-spacing: .18em; font-size: 13px; color: var(--silk-dim); }
.family:hover { color: var(--amber); text-decoration: none; }
.mast-title { font-family: var(--font-silk); font-weight: 600; font-size: 34px; letter-spacing: .06em; text-transform: uppercase; margin: 0; line-height: 1; }
.mast-sub { grid-column: 1 / -1; margin: 6px 0 0; color: var(--silk-dim); max-width: 64ch; }

/* ---------- aluminum surfaces ---------- */
.alu, .lid, .body, .door {
  background-color: var(--alu);
  background-image: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 30%, rgba(0,0,0,.08) 100%), url("assets/alu.jpg");
  background-blend-mode: normal, soft-light; background-size: auto, 512px 256px;
  color: var(--alu-ink);
}
.set { display: grid; filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.chrome-edge { border: 1px solid var(--chrome-lo); }

/* ---------- lid ---------- */
.lid {
  border: 1px solid var(--chrome-lo); border-bottom: 0; border-radius: 10px 10px 0 0;
  box-shadow: inset 0 2px 0 var(--chrome-hi), inset 0 -1px 0 rgba(0,0,0,.25);
  padding: 16px 20px 14px; display: grid; grid-template-columns: 1fr 300px; gap: 24px;
}
.lid-map-block { display: grid; gap: 8px; min-width: 0; align-content: start; }
.lid-map-wrap { background: rgba(255,255,255,.12); border: 1px solid rgba(0,0,0,.25); box-shadow: inset 0 1px 3px rgba(0,0,0,.3); border-radius: 3px; overflow: hidden; }
#lidMap { display: block; width: 100%; height: auto; }
.gmt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; align-self: start; }
.gmt-label { font-family: var(--font-silk); font-weight: 600; font-size: 10px; letter-spacing: .2em; color: var(--alu-ink-dim); }
.gmt-scale { display: grid; grid-template-columns: repeat(24, 1fr); border: 1px solid var(--alu-ink); background: #f4f2ea; height: 22px; overflow: hidden; align-items: start; }
.gmt-scale i { display: block; height: 20px; font: 600 12px/20px var(--font-silk); font-style: normal; text-align: center; border-right: 1px solid rgba(0,0,0,.35); color: var(--alu-ink); }
.gmt-scale i:last-child { border-right: 0; }
.gmt-scale i.night { background: #d9d6ca; color: #4a4a46; }
.gmt-scale i.here { background: var(--amber); color: #2a1a00; }
.gmt-controls { display: flex; align-items: center; gap: 10px; }
.lid-readout { font-family: var(--font-mono); font-size: 16px; letter-spacing: .06em; color: var(--alu-ink); min-width: 9ch; }
.lid-tag { font-family: var(--font-silk); font-weight: 700; font-size: 9px; letter-spacing: .14em; padding: 2px 6px; border-radius: 2px; background: #1e4a25; color: #a8f0b0; }
.lid-tag.off { background: #5a3a12; color: #ffd8a0; }
.lid-note { font-size: 12.5px; color: var(--alu-ink-dim); min-height: 1.2em; }

.lid-right { display: grid; gap: 12px; align-content: start; }
.wordmark { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; margin-top: -6px; }
.script { font-family: var(--font-script); font-size: 44px; line-height: 1; color: var(--alu-ink); text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.wordmark-sub { font-family: var(--font-silk); font-weight: 700; font-size: 10px; letter-spacing: .22em; color: var(--alu-ink-dim); }
.lid-group { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.28); border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.35); }
.lid-label { font-family: var(--font-silk); font-weight: 700; font-size: 11px; letter-spacing: .18em; color: var(--alu-ink-dim); display: flex; gap: 8px; align-items: center; }
.lid-row { display: flex; align-items: center; gap: 8px; }
.zip { width: 150px; background: #131313; border: 1px solid #000; border-radius: 3px; color: var(--amber); font-family: var(--font-mono); font-size: 18px; padding: 6px 10px; letter-spacing: .08em; box-shadow: inset 0 2px 6px #000; }
.zip::placeholder { color: var(--amber-dim); }
input[type="range"] { flex: 1; accent-color: var(--red); min-width: 60px; }
.cond { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--alu-ink-dim); }
.cond span { font-family: var(--font-silk); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; white-space: nowrap; min-width: 66px; }
.cond b { font-family: var(--font-mono); color: var(--alu-ink); font-weight: 400; min-width: 3ch; text-align: right; }

/* ---------- hinge ---------- */
.hinge { height: 26px; background: linear-gradient(180deg, #2a2a2c, #0d0d0e 45%, #1b1b1d); border-left: 1px solid var(--chrome-lo); border-right: 1px solid var(--chrome-lo); display: flex; align-items: center; justify-content: center; }
.handle { width: 62%; height: 10px; border-radius: 5px; background: linear-gradient(180deg, var(--chrome-hi), var(--alu) 45%, var(--chrome-lo)); box-shadow: 0 2px 4px rgba(0,0,0,.7); }

/* ---------- body ---------- */
.body { border: 1px solid var(--chrome-lo); border-top: 0; border-bottom: 0; padding: 18px 20px 16px; display: grid; gap: 16px; box-shadow: inset 0 1px 0 var(--chrome-hi); }

/* dial face */
.dial-face {
  background: linear-gradient(180deg, #1c1c1e, var(--black) 40%, #141416); border-radius: 4px;
  box-shadow: 0 0 0 1px #000, 0 0 0 4px var(--alu-hi), 0 0 0 5px var(--chrome-lo), inset 0 1px 0 rgba(255,255,255,.08);
  padding: 12px 16px; display: grid; grid-template-columns: 150px 1fr 190px; gap: 16px; align-items: stretch; color: var(--silk); position: relative;
}
.dial-face::after { content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; background: linear-gradient(100deg, rgba(255,255,255,.06), rgba(255,255,255,0) 35%); }
.dial-legend { display: grid; align-content: center; gap: 4px; border-right: 1px solid #2e2e31; padding-right: 12px; }
.dial-band { font-family: var(--font-silk); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .04em; color: var(--silk); }
.dial-when { font-family: var(--font-silk); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); line-height: 1.3; }
.dial-face:not(.on) .dial-when { color: var(--silk-dim); }
.dial-scale-wrap { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; }
#dial { display: block; width: 100%; height: 104px; cursor: crosshair; touch-action: none; border-radius: 2px; }
.dial-readout { overflow: hidden; white-space: nowrap; font-family: var(--font-silk); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--silk-dim); }
.dial-face.on .dial-readout { color: var(--silk); }
.lcd-marquee { display: inline-block; text-transform: uppercase; }
.lcd-marquee.scroll { animation: marquee 14s linear infinite; padding-left: 100%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.dial-right { display: grid; gap: 8px; align-content: center; border-left: 1px solid #2e2e31; padding-left: 16px; }
.counter { background: var(--lamp-bg); border-radius: 3px; padding: 6px 10px; display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-family: var(--font-mono); color: var(--amber); font-size: 30px; line-height: 1; box-shadow: inset 0 2px 8px rgba(0,0,0,.8); text-shadow: 0 0 6px rgba(245,179,49,.5); opacity: .4; transition: opacity .3s; }
.dial-face.on .counter { opacity: 1; }
.counter-unit { font-size: 12px; letter-spacing: .12em; }
.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-silk); font-weight: 700; font-size: 11px; letter-spacing: .16em; color: var(--silk-dim); }
.lcd-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.lcd-bars i { width: 5px; background: #3a3a3d; }
.lcd-bars i:nth-child(1) { height: 4px; } .lcd-bars i:nth-child(2) { height: 6px; } .lcd-bars i:nth-child(3) { height: 8px; }
.lcd-bars i:nth-child(4) { height: 10px; } .lcd-bars i:nth-child(5) { height: 12px; } .lcd-bars i:nth-child(6) { height: 14px; }
.lcd-bars i.lit { background: var(--amber); box-shadow: 0 0 4px var(--amber); }
.led { width: 9px; height: 9px; border-radius: 50%; background: #2a3a2c; box-shadow: inset 0 0 2px #000; transition: background .2s, box-shadow .2s; }
.led.on { background: var(--led); box-shadow: 0 0 8px var(--led); }
.brand { display: flex; align-items: baseline; gap: 10px; justify-content: flex-end; }
.brand b { font-family: var(--font-silk); font-weight: 700; font-size: 22px; letter-spacing: .24em; color: var(--silk); }
.brand span { font-family: var(--font-silk); font-weight: 700; font-size: 10px; letter-spacing: .18em; color: var(--blue); }
.brand i { font-style: normal; color: var(--blue); }

/* front panel */
.front { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.front-left { display: grid; gap: 12px; align-content: start; }
.meter-window { background: var(--black); padding: 8px 8px 8px; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--alu-hi), 0 0 0 4px var(--chrome-lo); color: var(--silk); }
.mw-label { font-family: var(--font-silk); font-weight: 700; font-size: 10px; letter-spacing: .2em; color: var(--silk-dim); margin-bottom: 6px; }
.smeter { width: 100%; height: auto; border-radius: 4px; display: block; }
.smeter .tick { stroke: #171410; stroke-width: 1.5; }
.smeter .tick.red { stroke: var(--red); stroke-width: 2.5; }
.smeter .arc { fill: none; stroke: #171410; stroke-width: 1.5; }
.smeter .arc.red { stroke: var(--red); stroke-width: 5; }
.smeter .lbl { font-family: var(--font-silk); font-weight: 600; font-size: 13px; fill: #171410; text-anchor: middle; }
.smeter .lbl.red { fill: var(--red); }
.smeter .meter-brand { font-family: var(--font-silk); font-weight: 600; font-size: 11px; letter-spacing: .3em; fill: #6b6150; text-anchor: middle; }
.smeter .needle { stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; }
.smeter .needle-hub { fill: #2a2622; }
#needleGroup { transition: transform .55s cubic-bezier(.3,1.4,.5,1); }
.meter-readout { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-silk); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--silk-dim); }
.meter-readout #sUnits { color: var(--silk); font-family: var(--font-mono); letter-spacing: .06em; font-size: 13px; }
.ctl-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 6px; }
.ctl-label { font-family: var(--font-silk); font-weight: 700; font-size: 10px; letter-spacing: .18em; color: var(--alu-ink-dim); }
.switch-block { display: grid; justify-items: center; gap: 4px; }
.switch { background: none; border: 0; padding: 0; }
.switch-track { display: block; width: 26px; height: 54px; border-radius: 4px; background: linear-gradient(180deg, #0c0c0d, #1e1e20); box-shadow: inset 0 2px 5px #000, 0 1px 0 rgba(255,255,255,.4); position: relative; }
.switch-cap { position: absolute; left: 3px; right: 3px; top: 3px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--chrome-hi), var(--alu) 60%, var(--chrome-lo)); box-shadow: 0 2px 3px rgba(0,0,0,.8); transition: top .15s; }
.switch[aria-pressed="true"] .switch-cap { top: 29px; }
.switch-labels { display: grid; font-family: var(--font-silk); font-weight: 700; font-size: 9px; letter-spacing: .12em; color: var(--alu-ink-dim); text-align: center; gap: 0; position: absolute; }
.switch-block { position: relative; padding-right: 26px; }
.switch-labels { right: 0; top: 4px; height: 46px; align-content: space-between; }

/* knobs */
.knob { display: grid; justify-items: center; gap: 6px; user-select: none; touch-action: none; }
.knob-cap {
  border-radius: 50%; position: relative; cursor: grab;
  background: radial-gradient(circle at 35% 30%, var(--chrome-hi), var(--alu) 45%, var(--chrome-lo) 100%);
  box-shadow: 0 5px 10px -3px rgba(0,0,0,.8), 0 0 0 2px #0e0e10, 0 0 0 3px #d9d9d5, inset 0 -2px 4px rgba(0,0,0,.35);
  transition: transform .08s linear;
}
.knob-cap:active { cursor: grabbing; }
.knob-cap::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(0,0,0,.09) 0 3deg, transparent 3deg 6deg); opacity: .55; }
.knob-mark { position: absolute; left: 50%; top: 7%; width: 3px; height: 22%; margin-left: -1.5px; border-radius: 2px; background: var(--red); box-shadow: 0 0 2px #000; }
.knob-sm .knob-cap { width: 54px; height: 54px; }
.knob-lg .knob-cap { width: 116px; height: 116px; box-shadow: 0 6px 12px -3px rgba(0,0,0,.8), 0 0 0 3px #0e0e10, 0 0 0 5px #efefec, 0 0 0 6px var(--chrome-lo), inset 0 -2px 4px rgba(0,0,0,.35); }
.knob-lg .knob-mark { height: 30%; }

/* grille */
.grille {
  border-radius: 4px; position: relative; min-height: 220px;
  background-color: #c8c8c4;
  background-image: radial-gradient(circle at 2px 2px, rgba(60,60,60,.55) .9px, transparent 1.4px);
  background-size: 5px 5px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 6px 14px -6px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: flex-end; padding: 16px 20px; gap: 16px;
}
.tune-plate { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 12px; padding: 16px 18px 26px; border-radius: 3px; position: relative;
  background: linear-gradient(180deg, #e9e9e6, #bdbdb9); box-shadow: 0 0 0 1px var(--chrome-lo), inset 0 1px 0 #fff, 0 4px 10px rgba(0,0,0,.35); }
.tune-label { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; }
.band-badge { align-self: flex-end; background: var(--black); color: var(--blue); border-radius: 3px; padding: 8px 10px; display: grid; justify-items: center; line-height: 1; font-family: var(--font-silk); font-weight: 700; letter-spacing: .12em; font-size: 10px; box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0,0,0,.5); }
.band-badge b { font-size: 26px; color: var(--silk); letter-spacing: 0; margin-bottom: 2px; }
.bb-sw { margin-top: 3px; color: var(--silk); }

/* keys */
.key {
  background: linear-gradient(180deg, var(--key-hi), var(--key)); border: 1px solid #000; border-radius: 3px;
  color: var(--silk); font-family: var(--font-silk); font-weight: 600; font-size: 13px; letter-spacing: .1em;
  padding: 9px 10px; box-shadow: 0 3px 0 #050506, inset 0 1px 0 #55555c; transition: transform .05s, box-shadow .05s, background .15s;
}
.key:hover { background: linear-gradient(180deg, #4a4a50, #2e2e33); }
.key:active, .key.down { transform: translateY(2px); box-shadow: 0 1px 0 #050506, inset 0 1px 0 #55555c; }
.key.on, .key[aria-pressed="true"] { background: linear-gradient(180deg, #ffd66e, #e89a2a); color: #2a1a00; box-shadow: 0 3px 0 #6a4310, inset 0 1px 0 #ffe9c0, 0 0 14px rgba(245,179,49,.4); }
.key.step { font-size: 11px; padding: 10px 11px; }
.key.sm { padding: 6px 11px; font-size: 12px; }
.key.live { background: linear-gradient(180deg, #a83a2c, #7c2419); color: #ffe6e0; letter-spacing: .12em; padding: 11px 10px; box-shadow: 0 3px 0 #3a0e08, inset 0 1px 0 #d47a6c; }
.key.live:hover { background: linear-gradient(180deg, #bf4636, #8f2c1e); }
.keys { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 12px 14px 4px; border-top: 1px solid rgba(0,0,0,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.keys-group { display: grid; gap: 6px; }
.keys-label { font-family: var(--font-silk); font-weight: 700; font-size: 10px; letter-spacing: .2em; color: var(--alu-ink-dim); }
.keypad { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.keypad .key { padding: 8px 2px; font-size: 13px; }
.keypad .key small { display: block; font-size: 9px; letter-spacing: .04em; color: var(--silk-dim); font-weight: 500; margin-top: 1px; }
.keypad .key.on small { color: #4a2f08; }
.keypad .key.dead { color: #6a6a70; }
.keypad .key.dead small { color: #55555a; }
.fnkeys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.fnkeys .key { padding: 8px 12px; }

/* ---------- door ---------- */
.door { border: 1px solid var(--chrome-lo); border-top: 0; border-radius: 0 0 10px 10px; padding: 18px 20px 0; display: grid; grid-template-columns: 250px 1fr; gap: 20px; box-shadow: inset 0 3px 8px -4px rgba(0,0,0,.5); }
.compass-block { display: grid; justify-items: center; gap: 8px; align-content: start; }
.compass { width: 210px; height: 210px; display: block; }
.compass .ring { fill: url(#cface); stroke: var(--alu-ink); stroke-width: 1; }
.compass .tick { stroke: var(--alu-ink); stroke-width: 1; }
.compass .tick.major { stroke-width: 1.6; }
.compass .deg { font: 600 8px var(--font-silk); fill: var(--alu-ink); text-anchor: middle; }
.compass .card { font: 700 15px var(--font-silk); fill: var(--alu-ink); text-anchor: middle; }
.compass .needle { stroke: #1e8fd0; stroke-width: 3; stroke-linecap: round; }
.compass .needle-tail { stroke: #1e8fd0; stroke-width: 3; stroke-linecap: round; opacity: .35; }
.compass .hub { fill: var(--alu-lo); stroke: var(--alu-ink); }
.compass-text { font-family: var(--font-silk); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--alu-ink-dim); text-align: center; text-wrap: balance; max-width: 230px; }
.compass-text b { color: var(--alu-ink); }

.now { background: rgba(255,255,255,.45); border: 1px solid rgba(0,0,0,.3); border-radius: 4px; padding: 12px 14px; min-height: 160px; display: grid; align-content: start; gap: 6px; font-size: 14px; color: var(--alu-ink); box-shadow: inset 0 1px 3px rgba(0,0,0,.2); }
.now-empty { color: var(--alu-ink-dim); }
.now-name { font-family: var(--font-silk); font-weight: 700; font-size: 24px; line-height: 1.05; letter-spacing: .02em; text-wrap: balance; }
.now-lang { color: #8a4a00; font-weight: 600; }
.now-line b { font-weight: 600; }
.now-line small { color: var(--alu-ink-dim); }
.now-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-family: var(--font-silk); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; background: #2a2a2c; color: var(--silk); }
.tag.day { background: #7a5410; color: #ffe1a6; } .tag.night { background: #1b2a44; color: #b8ccf0; } .tag.gray { background: #4a2a4a; color: #f0c8ea; }
.tag.polar { background: #17454c; color: #b0ecf2; } .tag.muf { background: #6a231a; color: #ffc4b8; } .tag.beam { background: #1f4a28; color: #b8f0c0; }
.now-also { color: var(--alu-ink-dim); font-size: 13px; }
.now-also a { color: var(--alu-ink); border-bottom: 1px dotted var(--alu-ink-dim); }
.now-live { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--alu-ink-dim); }
.now-live a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 3px; background: #7c2419; color: #ffe6e0; border: 1px solid #3a0e08; }
.now-live a:hover { text-decoration: none; background: #973023; }
.now-live a small { color: #f0b0a4; }
.now-live a.full { opacity: .55; }
.door-edge { grid-column: 1 / -1; margin: 12px -20px 0; padding: 8px 20px; border-top: 1px solid rgba(0,0,0,.3); background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.14)); display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--font-silk); font-weight: 600; font-size: 12px; letter-spacing: .5em; color: var(--alu-ink-dim); border-radius: 0 0 10px 10px; }
.door-edge i { font-style: normal; font-size: 10px; }

/* ---------- lower: chart + log ---------- */
.lower { display: grid; grid-template-columns: 460px 1fr; gap: 22px; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.panel-head h2 { font-family: var(--font-silk); font-weight: 600; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.panel-head .count { color: var(--silk-dim); font-size: 14px; letter-spacing: .02em; text-transform: none; font-weight: 500; }
.panel-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--silk-dim); }
.panel-tools select { background: var(--panel); color: var(--silk); border: 1px solid var(--edge); border-radius: 4px; padding: 5px 8px; font: inherit; font-size: 13px; }
.chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.chk input { accent-color: var(--amber); }
.globe-panel { position: sticky; top: 12px; }
.globe-wrap { position: relative; aspect-ratio: 1; }
#globe { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#globe.dragging { cursor: grabbing; }
.globe-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: var(--silk-dim); pointer-events: none; font-family: var(--font-silk); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--silk-dim); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-you { background: #fff; box-shadow: 0 0 0 2px var(--red) inset; }
.lg-tx { background: var(--amber); }
.lg-path { width: 18px; height: 3px; border-radius: 2px; background: #ff7a4d; }
.lg-bounce { background: #ffe9b8; box-shadow: 0 0 6px #ffd27a; }
.lg-ground { background: transparent; border: 2px solid #ff7a4d; }
.lg-night { background: rgba(0,0,0,.55); border: 1px solid #3a4450; }

.log-panel { min-width: 0; }
.log-scroll { overflow: auto; max-height: min(760px, calc(100vh - 32px)); border: 1px solid var(--edge); border-radius: 8px; background: var(--panel); overscroll-behavior: contain; }
.log { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.log th { text-align: left; font-family: var(--font-silk); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--silk-dim); padding: 10px 10px; border-bottom: 1px solid var(--edge); position: sticky; top: 0; background: var(--panel); white-space: nowrap; }
.log td { padding: 7px 10px; border-bottom: 1px solid #27272a; vertical-align: top; }
.log tbody tr { cursor: pointer; }
.log tbody tr:hover td { background: #26262a; }
.log tbody tr.tuned td { background: #4a3612; }
.log tbody tr.tuned td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.c-freq, .log td.freq { font-family: var(--font-mono); font-size: 14px; white-space: nowrap; color: var(--silk); }
.log td.st { min-width: 0; }
.log td.st b { font-weight: 600; }
.log td.st small { display: block; color: var(--silk-dim); font-weight: 400; font-size: 12px; line-height: 1.35; margin-top: 1px; }
.log td.lang { white-space: nowrap; color: var(--silk); }
.sig { display: inline-grid; grid-template-columns: 40px auto; gap: 6px; align-items: center; white-space: nowrap; margin-top: 4px; }
.sig .bar { height: 8px; border-radius: 2px; background: #0e0e10; box-shadow: inset 0 0 0 1px #000; overflow: hidden; }
.sig .bar i { display: block; height: 100%; background: var(--none); }
.sig.s-good .bar i { background: var(--good); } .sig.s-fair .bar i { background: var(--fair); } .sig.s-weak .bar i { background: var(--weak); }
.sig b { font-family: var(--font-mono); font-weight: 400; font-size: 12.5px; color: var(--silk-dim); }
.sig.s-good b { color: var(--good); } .sig.s-fair b { color: var(--fair); } .sig.s-weak b { color: var(--weak); }
.log-empty { padding: 26px 18px; color: var(--silk-dim); }

/* ident search */
.panel-tools.ident { width: 100%; margin-bottom: 8px; }
.ident-input { flex: 1; min-width: 220px; background: #131313; border: 1px solid #000; border-radius: 3px; color: var(--amber); font-family: var(--font-mono); font-size: 15px; padding: 7px 10px; letter-spacing: .06em; box-shadow: inset 0 2px 6px #000; }
.ident-input::placeholder { color: var(--amber-dim); letter-spacing: .04em; }
.ident-input::-webkit-search-cancel-button { filter: invert(1); }
.log tbody tr.offair td { opacity: .8; }
.log tbody tr.offair td.freq { color: var(--silk-dim); }
.sig.s-none b { color: var(--silk-dim); }
.log td.st small em { font-style: normal; color: var(--amber); }
.log-note { padding: 8px 12px; font-size: 12.5px; color: var(--silk-dim); border-bottom: 1px solid var(--edge); }

/* ---------- about ---------- */
.about { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; color: var(--silk-dim); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.about h2 { font-family: var(--font-silk); font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--silk); margin: 0 0 10px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about p { margin: 0 0 10px; max-width: 66ch; }
.about-foot { font-size: 13px; }

@media (prefers-reduced-motion: reduce) { #needleGroup { transition: none; } .lcd-marquee.scroll { animation: none; padding-left: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .lid { grid-template-columns: 1fr; }
  .wordmark { justify-content: flex-start; }
  .dial-face { grid-template-columns: 110px 1fr 150px; }
  .keys { grid-template-columns: 1fr; }
  .keypad { grid-template-columns: repeat(6, 1fr); }
  .lower { grid-template-columns: 1fr; }
  .globe-panel { position: static; max-width: 520px; }
}
@media (max-width: 720px) {
  .page { padding: 14px 10px 40px; }
  .lid, .body { padding-left: 12px; padding-right: 12px; }
  .dial-face { grid-template-columns: 1fr; gap: 10px; }
  .dial-legend { border-right: 0; padding-right: 0; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
  .dial-right { border-left: 0; padding-left: 0; grid-template-columns: 1fr 1fr; align-items: center; }
  .brand { grid-column: 1 / -1; justify-content: flex-start; }
  .front { grid-template-columns: 1fr; }
  .grille { min-height: 0; justify-content: center; }
  .keypad { grid-template-columns: repeat(4, 1fr); }
  .door { grid-template-columns: 1fr; padding-left: 12px; padding-right: 12px; }
  .door-edge { margin-left: -12px; margin-right: -12px; letter-spacing: .3em; }
  .about-cols { grid-template-columns: 1fr; }
  .mast-title { font-size: 26px; }
  .script { font-size: 36px; }
}
