/* RADIO, model R-1: a paper-and-ink receiver. Warm paper, ink type, hairline rules, one vermilion accent
   (needle, on-air lamp, the main key). Fraunces for display, IBM Plex Mono for every readout, Inter for reading. */
:root {
  --paper: #f2ebdd; --sheet: #faf6ec; --well: #ebe2d0; --ink: #1f1b16; --ink2: #4a443b; --sub: #7a7266; --faint: #a39a8a;
  --rule: #d8cdb8; --rule2: #c2b59c; --verm: #e0441f; --verm-ink: #fff8ee;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px; --player: 76px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); min-height: 100vh; padding-bottom: calc(var(--player) + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.sub { color: var(--sub); }
.err { color: var(--verm); font-size: 14px; }
.err:empty { display: none; }
.hint { color: var(--sub); font-size: 13px; }
.ic { width: 17px; height: 17px; flex: none; }
.ic.sm { width: 14px; height: 14px; }
.label { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }

/* ---------- faceplate header ---------- */
.plate { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 66px; padding: 0 24px; background: var(--paper); border-bottom: 1px solid var(--rule2); }
.mark { display: flex; align-items: center; gap: 10px; }
.mark .word { font: 700 26px/1 var(--serif); letter-spacing: -.02em; }
.mark .model { font: 500 10px var(--mono); letter-spacing: .16em; color: var(--sub); border-left: 1px solid var(--rule2); padding-left: 10px; margin-left: 2px; }
.keys { display: flex; gap: 0; border: 1px solid var(--rule2); border-radius: 6px; overflow: hidden; background: var(--sheet); }
.keys a { padding: 9px 16px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); border-left: 1px solid var(--rule); box-shadow: inset 0 -2px 0 var(--rule); }
.keys a:first-child { border-left: 0; }
.keys a:hover { background: var(--well); }
.keys a.on { background: var(--ink); color: var(--paper); box-shadow: inset 0 2px 0 rgba(0,0,0,.35); }
.keys a .lamp { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rule2); margin-right: 7px; vertical-align: 1px; }
.keys a.on .lamp { background: var(--verm); }
.plate-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.knob { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule2); background: var(--sheet); color: var(--ink); box-shadow: inset 0 -2px 0 var(--rule); }
.knob:hover { border-color: var(--ink2); }
.ca { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; border: 1px solid var(--rule2); border-radius: 6px; background: var(--sheet); cursor: pointer; font: 500 12px var(--mono); }
.ca span { color: var(--verm); font-weight: 600; }
.ca b { font-weight: 500; }
.me { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.me.signed { background: var(--sheet); color: var(--ink); border-color: var(--rule2); text-transform: none; letter-spacing: 0; }

/* ---------- tuner strip (every page) ---------- */
.strip { position: sticky; top: 66px; z-index: 25; height: 46px; background: var(--sheet); border-bottom: 1px solid var(--rule2); overflow: hidden; cursor: pointer; }
.strip .scale { position: absolute; left: 24px; right: 24px; top: 0; bottom: 0; }
.strip .t { position: absolute; bottom: 0; width: 1px; background: var(--rule2); }
.strip .t.maj { background: var(--ink2); }
.strip .n { position: absolute; bottom: 12px; transform: translateX(-50%); font: 500 10px var(--mono); color: var(--faint); }
.strip .st { position: absolute; top: 6px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; font: 600 10.5px var(--mono); color: var(--ink2); white-space: nowrap; padding: 2px 5px; border-radius: 3px; }
.strip .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink2); }
.strip .st:hover { background: var(--well); }
.strip .st.on { color: var(--verm); }
.strip .st.on i { background: var(--verm); }
.strip .needle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--verm); transition: left .5s cubic-bezier(.3,.7,.2,1); }

/* ---------- layout ---------- */
main { display: block; max-width: var(--wrap); margin: 0 auto; padding: 36px 24px 40px; outline: none; }
main.full { max-width: none; padding: 0 0 40px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sheet { background: var(--sheet); border: 1px solid var(--rule2); border-radius: 4px; }
.rule { border: 0; border-top: 1px solid var(--rule2); margin: 0; }
.dbl { border-top: 3px double var(--rule2); }
.head-line { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 3px double var(--rule2); }
.head-line h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -.025em; }
.head-line h1 em { font-style: italic; font-weight: 400; color: var(--verm); }
.head-line .dateline { font: 500 12px var(--mono); color: var(--sub); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- keys (buttons) ---------- */
.key { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--rule2); background: var(--sheet); color: var(--ink); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 var(--rule); transition: background .12s, transform .08s; }
.key:hover { background: var(--well); }
.key:active { transform: translateY(1px); box-shadow: inset 0 1px 0 var(--rule); }
.key.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: inset 0 -2px 0 #000; }
.key.ink:hover { background: #352f27; }
.key.red { background: var(--verm); color: var(--verm-ink); border-color: var(--verm); box-shadow: inset 0 -2px 0 #a52f13; }
.key.red:hover { background: #ea5531; }
.key.big { height: 48px; padding: 0 22px; font-size: 13px; }
.key.sm { height: 32px; padding: 0 11px; font-size: 11px; }
.key[disabled] { opacity: .45; cursor: not-allowed; }
.key[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.key.busy { opacity: .7; pointer-events: none; }
.fld { display: grid; gap: 5px; }
.fld > span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sub); }
.fld input, .fld textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink2); border-radius: 0; padding: 8px 2px; outline: none; resize: vertical; font-size: 16px; }
.fld textarea { border: 1px solid var(--rule2); border-radius: 4px; padding: 10px 12px; background: var(--paper); font-size: 15px; }
.fld input:focus { border-bottom-color: var(--verm); }
.fld textarea:focus { border-color: var(--verm); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--rule2); border-radius: 6px; overflow: hidden; width: fit-content; }
.seg button { height: 36px; padding: 0 14px; border: 0; border-left: 1px solid var(--rule); background: var(--sheet); font: 500 12px var(--mono); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--ink); color: var(--paper); }

/* ---------- coin image or ticker tile ---------- */
.coin { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; background: var(--well); flex: none; border: 1px solid var(--rule2); }
.coin.tile { display: grid; place-items: center; font: 600 12px var(--mono); color: var(--ink2); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid var(--rule2); border-radius: 3px; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sub); white-space: nowrap; }
.tag.red { color: var(--verm); border-color: var(--verm); }
.tag.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 48px; align-items: end; max-width: var(--wrap); margin: 0 auto; padding: 64px 24px 48px; }
.hero h1 { font-size: clamp(52px, 8.4vw, 116px); line-height: .92; letter-spacing: -.035em; font-weight: 600; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--verm); }
.hero .lede { margin-top: 24px; max-width: 560px; font-size: 18px; color: var(--ink2); }
.hero .acts { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.spec { padding: 0; }
.spec .spec-h { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule2); }
.spec dl { margin: 0; }
.spec dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-top: 1px dotted var(--rule2); font-size: 14px; }
.spec dl div:first-child { border-top: 0; }
.spec dt { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sub); padding-top: 2px; }
.spec dd { margin: 0; font-weight: 500; text-align: right; }
.spec dd.num { font: 600 15px var(--mono); }

/* ---------- home: the rotary tuner (scroll gimmick) ---------- */
.tuner { position: relative; border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2); background: var(--sheet); }
.tuner-stage { position: sticky; top: 112px; height: calc(100vh - 112px - var(--player)); min-height: 480px; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.25fr); overflow: hidden; }
.dialside { position: relative; display: grid; place-items: center; border-right: 1px solid var(--rule2); padding: 24px; }
#t-dial { width: 100%; display: grid; place-items: center; }
.rotary { width: min(470px, 92%, 60vh); aspect-ratio: 1; }
.rotary .face { fill: var(--paper); stroke: var(--rule2); }
.rotary .tk { stroke: var(--ink2); stroke-width: 1.2; }
.rotary .tk.maj { stroke: var(--ink); stroke-width: 2; }
.rotary .num { font: 500 13px var(--mono); fill: var(--ink2); text-anchor: middle; dominant-baseline: middle; }
.rotary .dot { fill: var(--ink); }
.rotary .dot.on { fill: var(--verm); }
.rotary .knobc { fill: var(--sheet); stroke: var(--rule2); }
.rotary .grip { stroke: var(--rule); stroke-width: 1; }
.rotary .pointer { stroke: var(--verm); stroke-width: 3; stroke-linecap: round; }
.readout { position: absolute; left: 24px; top: 22px; }
.readout .f { font: 600 clamp(44px, 6vw, 76px)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.readout .f small { font-size: .26em; letter-spacing: .1em; color: var(--sub); margin-left: 6px; }
.readout .sig { margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.bars { display: inline-flex; gap: 3px; align-items: end; height: 13px; }
.bars i { width: 4px; background: var(--rule2); }
.bars i.on { background: var(--ink); }
.windowside { position: relative; display: grid; place-items: center; padding: 28px; }
.window { position: relative; width: min(600px, 100%); }
.wcard { position: relative; background: var(--paper); border: 1px solid var(--rule2); border-radius: 4px; padding: 26px; transition: filter .08s linear; }
.wcard .top { display: flex; gap: 18px; align-items: center; }
.wcard .coin { width: 84px; height: 84px; font-size: 18px; }
.wcard h3 { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.wcard .who { margin-top: 6px; color: var(--sub); font-size: 14px; }
.wcard .says { margin-top: 18px; font: italic 400 21px/1.4 var(--serif); color: var(--ink2); }
.wcard .says b { font-style: normal; font-weight: 600; color: var(--ink); }
.wcard .row { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.static { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; mix-blend-mode: multiply; }
.scanning { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 500 12px var(--mono); letter-spacing: .4em; color: var(--ink2); background: var(--sheet); padding: 6px 12px; border: 1px solid var(--rule2); opacity: 0; pointer-events: none; }
.hiss { position: absolute; right: 18px; bottom: 18px; }

/* ---------- home: operating instructions ---------- */
.manual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px double var(--rule2); border-bottom: 1px solid var(--rule2); }
.manual > div { padding: 26px 26px 30px 0; }
.manual > div + div { padding-left: 26px; border-left: 1px solid var(--rule2); }
.manual .no { font: 600 46px/1 var(--serif); font-style: italic; color: var(--verm); }
.manual h3 { font-size: 22px; margin: 12px 0 8px; }
.manual p { color: var(--ink2); }
.sec { margin-top: 64px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.sec-h h2 { font-size: 30px; letter-spacing: -.02em; }
.sec-h a { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); border-bottom: 1px solid var(--ink2); }

/* ---------- program guide listing ---------- */
.guide { border-top: 1px solid var(--ink); }
.gl { display: grid; grid-template-columns: 74px 44px minmax(0, 1fr) 150px 110px 20px; gap: 16px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--rule2); transition: background .12s; }
.gl:hover { background: var(--sheet); }
.gl .f { font: 600 19px var(--mono); letter-spacing: -.02em; }
.gl .nm { min-width: 0; }
.gl .nm b { display: flex; align-items: center; gap: 8px; font: 600 20px/1.1 var(--serif); }
.gl .nm > span { display: block; color: var(--sub); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.gl .host { font-size: 13px; color: var(--sub); }
.gl .host b { color: var(--ink); font-weight: 600; }
.gl .req { font: 500 13px var(--mono); color: var(--ink2); text-align: right; }
.gl .go { color: var(--faint); }
.gl.house .f { color: var(--verm); }
.search { display: flex; gap: 10px; align-items: end; }
.search .fld { width: min(300px, 100%); }

/* ---------- station page ---------- */
.splate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; padding-bottom: 24px; border-bottom: 3px double var(--rule2); }
.lcd { border: 1px solid var(--ink); border-radius: 4px; padding: 12px 18px 10px; background: var(--sheet); box-shadow: inset 0 2px 0 var(--rule); }
.lcd .f { font: 600 58px/1 var(--mono); letter-spacing: -.04em; }
.lcd .u { font: 500 10px var(--mono); letter-spacing: .18em; color: var(--sub); margin-top: 4px; display: flex; justify-content: space-between; gap: 12px; }
.lcd .u b { color: var(--verm); font-weight: 600; }
.splate .id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.splate .id .coin { width: 64px; height: 64px; }
.splate h1 { font-size: 46px; line-height: 1; letter-spacing: -.025em; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.splate .id p { color: var(--sub); margin-top: 6px; }
.splate .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.sgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 34px; margin-top: 30px; align-items: start; }
.rundown-h { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.rundown-h h2 { font-size: 26px; }
.rundown-h .next { font: 500 12px var(--mono); color: var(--sub); }
.rundown-h .next b { color: var(--ink); font-weight: 600; }
.host-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule2); }
.host-line .who { flex: 1; }
.host-line .who b { font: 600 18px var(--serif); }
.host-line .who span { display: block; font: 500 11px var(--mono); color: var(--sub); letter-spacing: .06em; }
.rundown { list-style: none; margin: 0; padding: 0; }
.rundown li { display: grid; grid-template-columns: 44px 92px minmax(0, 1fr); gap: 12px; padding: 12px 6px 12px 10px; border-bottom: 1px solid var(--rule); cursor: pointer; border-left: 3px solid transparent; }
.rundown li:hover { background: var(--sheet); }
.rundown li.now { border-left-color: var(--verm); background: var(--sheet); }
.rundown .tc { font: 500 12px var(--mono); color: var(--faint); padding-top: 3px; }
.rundown .k { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sub); padding-top: 4px; }
.rundown li.now .k { color: var(--verm); }
.rundown .tx { font-size: 15px; color: var(--ink2); }
.rundown li.now .tx { color: var(--ink); }
.rundown li[data-k="segment"] .tx { font: italic 400 17px/1.45 var(--serif); }
.notes { margin-top: 28px; }
.notes p { font: italic 400 18px/1.5 var(--serif); color: var(--ink2); margin-top: 8px; }
.side { display: grid; gap: 26px; }
.box { background: var(--sheet); border: 1px solid var(--rule2); border-radius: 4px; }
.box-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--rule2); }
.box-h h2 { font-size: 21px; }
.box-b { padding: 14px 18px 18px; }
.composer { display: grid; gap: 10px; }
.composer .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stubs { display: grid; margin-top: 14px; max-height: 360px; overflow: auto; }
.stub { padding: 11px 0; border-top: 1px dashed var(--rule2); }
.stub:first-child { border-top: 0; }
.stub .by { display: flex; gap: 8px; align-items: center; font: 500 11.5px var(--mono); color: var(--sub); margin-bottom: 3px; }
.stub .by time { margin-left: auto; color: var(--faint); }
.stub p { font-size: 15px; }
.tabs { display: flex; gap: 0; border: 1px solid var(--rule2); border-radius: 6px; overflow: hidden; width: fit-content; margin-bottom: 12px; }
.tabs button { height: 30px; padding: 0 12px; border: 0; border-left: 1px solid var(--rule); background: var(--sheet); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; color: var(--ink2); }
.tabs button:first-child { border-left: 0; }
.tabs button.on { background: var(--ink); color: var(--paper); }
.ballot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.ballot:first-child { border-top: 0; }
.ballot b { font: 600 17px var(--serif); }
.ballot p { color: var(--ink2); font-size: 14px; margin-top: 3px; }
.ballot small { display: block; color: var(--faint); font: 500 11px var(--mono); margin-top: 5px; }
.ballot.lead b::after { content: 'leads'; margin-left: 8px; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--verm); vertical-align: 2px; }
.vote { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 54px; height: 54px; border-radius: 6px; border: 1px solid var(--rule2); background: var(--paper); cursor: pointer; font: 600 15px var(--mono); box-shadow: inset 0 -2px 0 var(--rule); }
.vote small { font: 500 9px var(--mono); letter-spacing: .12em; color: var(--sub); }
.vote.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vote.on small { color: var(--rule2); }
.vote.closed { cursor: default; color: var(--faint); box-shadow: none; }

/* ---------- forms: licence application ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; margin-top: 28px; }
.part { padding: 22px 0 26px; border-bottom: 1px solid var(--rule2); display: grid; gap: 18px; }
.part:first-child { padding-top: 4px; }
.part h2 { display: flex; align-items: baseline; gap: 12px; font-size: 24px; }
.part h2 .s { font: italic 600 24px var(--serif); color: var(--verm); }
.part h2 small { margin-left: auto; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sub); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.coinpick { display: flex; gap: 16px; align-items: center; }
.coinpick .prev { width: 76px; height: 76px; border-radius: 4px; border: 1px dashed var(--ink2); background: var(--sheet); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--ink2); padding: 0; }
.coinpick .prev img { width: 100%; height: 100%; object-fit: cover; }
.hostcard { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule2); border-radius: 4px; }
.hostcard .n { font: italic 600 34px var(--serif); }
.hostcard p { font: italic 400 16px/1.45 var(--serif); color: var(--ink2); }
.licence { position: sticky; top: 130px; background: var(--sheet); border: 1px solid var(--ink); border-radius: 4px; padding: 6px; }
.licence .in { border: 1px solid var(--rule2); padding: 18px; }
.licence .lt { text-align: center; padding-bottom: 12px; border-bottom: 3px double var(--rule2); }
.licence .lt h3 { font-size: 22px; }
.licence .who { display: flex; gap: 12px; align-items: center; margin: 16px 0 12px; }
.licence .who img, .licence .who .coin { width: 54px; height: 54px; }
.licence .who b { display: block; font: 600 24px/1 var(--serif); }
.licence .who span { color: var(--sub); font-size: 13px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dotted var(--rule2); font-size: 14px; }
.facts span { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sub); padding-top: 2px; }
.facts b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.status { padding: 12px 14px; border-radius: 4px; border: 1px solid var(--rule2); background: var(--paper); font-size: 14px; margin-top: 12px; }
.status.err { border-color: var(--verm); color: #a52f13; }
.status.ok { border-color: var(--ink); }
.lnk { color: var(--verm); text-decoration: underline; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--sub); border: 1px dashed var(--rule2); border-radius: 4px; background: var(--sheet); }
.empty h3 { color: var(--ink); font-size: 24px; margin: 10px 0 6px; }
.empty p { margin-bottom: 18px; }
.skel { height: 56px; background: linear-gradient(90deg, var(--sheet) 0, var(--well) 50%, var(--sheet) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; margin-bottom: 6px; border-radius: 3px; }
@keyframes sk { to { background-position: -200% 0; } }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--wrap); margin: 56px auto 0; padding: 20px 24px; border-top: 3px double var(--rule2); color: var(--sub); font-size: 13px; }
.foot a { display: inline-flex; gap: 6px; align-items: center; color: var(--ink2); }
.licence-band { margin-top: 64px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 30px; border: 1px solid var(--ink); outline: 1px solid var(--rule2); outline-offset: -6px; border-radius: 4px; background: var(--sheet); }
.licence-band h2 { font-size: 34px; letter-spacing: -.02em; }
.licence-band h2 em { color: var(--verm); }
.licence-band p { color: var(--ink2); margin-top: 6px; }
.dialog { border: 1px solid var(--ink); border-radius: 4px; background: var(--sheet); color: var(--ink); padding: 0; width: min(440px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(31,27,22,.45); }
.dlg { padding: 22px; display: grid; gap: 14px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { font-size: 24px; }
.dlg-actions { display: flex; gap: 8px; }
.menu-list { display: grid; border-top: 1px solid var(--rule2); }
.menu-list a, .menu-list button { display: flex; gap: 10px; align-items: center; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; text-align: left; }
.snackbar { position: fixed; left: 50%; bottom: calc(var(--player) + 16px); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; font: 500 13px var(--mono); transition: .2s; }
.snackbar.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- the receiver: persistent player bar ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--player) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, 300px) auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding-left: 20px; padding-right: 20px; }
.player .tuned { display: flex; gap: 12px; align-items: center; min-width: 0; }
.player .tuned .pf { font: 600 28px/1 var(--mono); letter-spacing: -.03em; }
.player .tuned .pf small { font-size: 10px; letter-spacing: .14em; color: var(--faint); margin-left: 3px; }
.player .tuned .pm { min-width: 0; }
.player .tuned .pm b { display: block; font: 600 16px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .tuned .pm span { display: block; font: 500 11px var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .lamp { width: 8px; height: 8px; border-radius: 50%; background: #5b544a; flex: none; }
.player.on .lamp { background: var(--verm); box-shadow: 0 0 0 3px rgba(224,68,31,.25); }
.player .transport { display: flex; gap: 6px; }
.player .pb { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #4b443a; background: #2a251f; color: var(--paper); cursor: pointer; }
.player .pb:hover { border-color: var(--faint); }
.player .pb.play { width: 46px; height: 46px; background: var(--verm); border-color: var(--verm); color: var(--verm-ink); }
.player .cap { min-width: 0; }
.player .cap small { display: block; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.player .cap p { font: 400 17px/1.35 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #8f8576; }
.player .cap p .w.done { color: var(--paper); }
.player .cap p .w.now { color: #ff8a66; }
.player .right { display: flex; gap: 14px; align-items: center; }
.player .meter { display: flex; gap: 3px; align-items: center; height: 30px; }
.player .meter i { width: 3px; height: 3px; background: #5b544a; border-radius: 1px; }
.player.on .meter i { background: var(--paper); }
.player .cc { height: 30px; padding: 0 9px; border-radius: 4px; border: 1px solid #4b443a; background: transparent; color: var(--faint); font: 500 10.5px var(--mono); letter-spacing: .1em; cursor: pointer; }
.player .cc[aria-pressed="true"] { color: var(--paper); border-color: var(--paper); }
.player .count { font: 500 11px var(--mono); color: var(--faint); min-width: 38px; text-align: right; }
.player .loadbar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; }
.player .loadbar i { display: block; height: 100%; width: 0; background: var(--verm); transition: width .2s; }

@media (max-width: 980px) {
  .keys a { padding: 9px 11px; }
  .mark .model { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .sgrid, .app { grid-template-columns: 1fr; }
  .licence { position: static; }
  .manual { grid-template-columns: 1fr; }
  .manual > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule2); }
  .gl { grid-template-columns: 62px 40px minmax(0, 1fr) 80px; }
  .gl .host, .gl .go { display: none; }
  .splate { grid-template-columns: auto 1fr; }
  .splate .acts { grid-column: 1 / -1; justify-content: start; }
  .player { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .player .cap, .player .right .meter, .player .count { display: none; }
  .tuner-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dialside { border-right: 0; border-bottom: 1px solid var(--rule2); padding: 14px; }
  .rotary { width: min(200px, 30vh, 50vw); }
  .dialside { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .readout { position: static; }
  .readout .f { font-size: 40px; }
  #t-dial { width: auto; }
}
@media (max-width: 640px) {
  :root { --player: 68px; }
  .plate { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .mark .word { font-size: 22px; }
  .keys { order: 3; width: 100%; overflow-x: auto; }
  .keys a { flex: 1; text-align: center; padding: 9px 4px; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
  .keys a .lamp { display: none; }
  .ca { display: none; }
  .knob { width: 34px; height: 34px; }
  .me { padding: 0 10px; }
  .me span { display: none; }
  .strip { top: 104px; height: 40px; }
  .strip .st b { display: none; }
  .strip .band { display: none; }
  .strip .scale { left: 12px; right: 12px; }
  main { padding: 24px 16px 32px; }
  .hero { padding: 36px 16px 30px; }
  .hero .lede { font-size: 16px; }
  .tuner-stage { top: 144px; height: calc(100vh - 144px - var(--player)); height: calc(100dvh - 144px - var(--player)); min-height: 0; }
  .windowside { padding: 14px; }
  .wcard { padding: 18px; }
  .wcard .coin { width: 60px; height: 60px; }
  .wcard h3 { font-size: 30px; }
  .wcard .says { font-size: 17px; margin-top: 12px; }
  .two { grid-template-columns: 1fr; }
  .lcd .f { font-size: 42px; }
  .splate h1 { font-size: 34px; }
  .splate .id .coin { display: none; }
  .gl { grid-template-columns: 56px 40px minmax(0, 1fr); gap: 12px; }
  .gl .req, .gl .nm .tag { display: none; }
  .rundown li { grid-template-columns: 36px minmax(0, 1fr); }
  .rundown .k { display: none; }
  .licence-band { grid-template-columns: 1fr; padding: 22px; }
  .player { padding-left: 14px; padding-right: 14px; }
  .player .tuned .pf { font-size: 22px; }
  .player .cc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .strip .needle { transition: none; } }
