/* ===========================================================================
   Mediabox Radio — skin-receiver.css — "The Receiver" (applied 2026-09-29)
   The approved prototype (proto/tuner.css, 2026-09-28) carried onto the shared
   three-look page. One faceplate of satin-black anodized aluminum; one window
   behind a single bezel: the cyan fluorescent readout with two backlit needle
   meters, and the blue-lit dial glass with its printed scale, the coral pointer
   riding the dial string behind the glass. Machined keys, one brushed-aluminum
   power key, a fader with an aluminum cap, and on desktop a machined knob.

   Every rule is scoped to html[data-skin="receiver"]. Parts only this look uses
   carry class rx-only in index.html (skin-base.css hides them elsewhere); the
   other looks' parts are hidden in "which parts this look uses" below.

   PALETTE COVENANT (accessibility, not taste: the owner has tritanomaly).
   Banned: any color with hue 33-66 deg, saturation >= 15 %, lightness 10-97 %
   (amber, gold, tan, beige, khaki, mustard). This file uses cool neutrals
   (hue ~215, saturation under 15 %), backlight blues (hue 212-218), a
   fluorescent cyan-green (hue ~171) and coral (hue ~9) for the pointer and the
   ON AIR lamp. The receiver instinct reaches for amber dial light; it is banned
   here and the dial is lit blue instead. The raster metal in assets/ is neutral
   gray (per-pixel scan: 0 banned pixels).
   =========================================================================== */

/* DSEG7 Classic (SIL OFL 1.1, keshikan) draws the fluorescent frequency digits; its @font-face lives with the
   other self-hosted faces in fonts/fonts.css. */

[data-skin="receiver"] {
  /* faceplate: satin-black anodized aluminum, cool neutral */
  --room:       #0a0b0d;
  --plate:      #141518;
  --key-hi:     #272a30;
  --key-lo:     #1c1e22;
  --key-press:  #15171a;
  --key-edge:   #30343b;
  --bezel:      #050607;
  --led-off:    #2b2f35;
  --print:      #e7ebf0;   /* primary silkscreen */
  --print-2:    #bcc3cc;   /* secondary silkscreen */
  --engrave:    #8e97a3;   /* small labels, 6.2:1 on --plate */

  /* brushed aluminum (under the raster assets, and their fallback) */
  --alu-hi:     #eef1f4;
  --alu-lo:     #aeb6c0;
  --alu-edge:   #7d8691;
  --alu-ink:    #16181b;

  /* dial glass, lit from behind */
  --glass:      #07111f;
  --glass-2:    #0c1b30;
  --glass-3:    #091524;
  --lit:        #d6e7ff;   /* printed scale at the pointer */
  --lit-2:      #a3bfe6;   /* printed scale */
  --lit-3:      #6f8fbb;   /* ticks and the dial string */

  /* the pointer and the ON AIR lamp */
  --coral:      #ff5a3c;
  --coral-deep: #d63a1f;

  /* fluorescent readout: one hue, three intensities */
  --vfd-glass:  #060b0c;
  --vfd-glass-2:#0a1716;
  --vfd:        #7df0dc;   /* 14.2:1 on the readout glass */
  --vfd-2:      #5cb8aa;   /*  8.2:1 */
  --vfd-3:      #4a9a8e;   /*  5.8:1 */

  --focus:      #3d8bff;
  --info:       #6aa8ff;   /* reconnecting */

  /* alpha tokens (light, shadow, rules) */
  --seam-hi:      rgba(255, 255, 255, 0.06);
  --sheen:        rgba(255, 255, 255, 0.045);
  --key-sheen:    rgba(255, 255, 255, 0.5);
  --shadow-1:     rgba(0, 0, 0, 0.45);
  --shadow-2:     rgba(0, 0, 0, 0.65);
  --shadow-deep:  rgba(0, 0, 0, 0.8);
  --backlight:    rgba(61, 139, 255, 0.26);
  --backlight-2:  rgba(61, 139, 255, 0.07);
  --lamp:         rgba(120, 175, 255, 0.2);   /* the two dial lamps behind the glass */
  --glass-0:      rgba(7, 17, 31, 0);
  --glass-pad:    rgba(9, 21, 38, 0.92);
  --hairline:     rgba(163, 191, 230, 0.22);  /* silkscreen line between readout and dial */
  --vfd-ghost:    rgba(125, 240, 220, 0.07);
  --vfd-rule:     rgba(125, 240, 220, 0.18);
  --vfd-wash:     rgba(125, 240, 220, 0.04);

  --font-label: "Michroma", "Eurostile", ui-sans-serif, system-ui, sans-serif;
  --font-ui:    "Saira", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-seg:   "DSEG7 Classic", ui-monospace, "SF Mono", Menlo, monospace;

  --tex-plate:  url("assets/plate-brush.png");
  --tex-grain:  url("assets/grain.png");
  --tex-alu:    url("assets/alu-key.png");
  --tex-cap:    url("assets/alu-cap.png");
  --tex-knob:   url("assets/knob.png");

  --icon-loop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8.5A5 5 0 1 1 11.2 4.2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M12.2 1.6v3.3H8.9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --ease:        cubic-bezier(0.2, 0.7, 0.2, 1);   /* one exponential ease-out for UI transitions */
  --ease-needle: cubic-bezier(0.3, 1.35, 0.5, 1);  /* meter needles overshoot a little, like damped movements */
  --r-plate: 14px;
  --r-glass: 8px;
  --r-key: 7px;

  background: var(--room);
  color: var(--print);
  font-family: var(--font-ui);
  color-scheme: dark;
}
[data-skin="receiver"] body {
  padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
}

/* ---------- which parts this look uses ---------- */
[data-skin="receiver"] .onair,
[data-skin="receiver"] .peek,
[data-skin="receiver"] .numeral,
[data-skin="receiver"] .ghost,
[data-skin="receiver"] .rule,
[data-skin="receiver"] .nb-line,
[data-skin="receiver"] .st-freq .bank,
[data-skin="receiver"] .st-freq .fm,
[data-skin="receiver"] .dm-note,
[data-skin="receiver"] .bank-key,
[data-skin="receiver"] .rocker,
[data-skin="receiver"] .mute-lbl,
[data-skin="receiver"] .tune-legend,
[data-skin="receiver"] .pips,
[data-skin="receiver"] .well > .knob,
[data-skin="receiver"] .seek .ic-seek,
[data-skin="receiver"] .seek .ic-chev,
[data-skin="receiver"] .seek .lbl-seek,
[data-skin="receiver"] .seek .lbl-num,
[data-skin="receiver"] .pbtn .ic-play,
[data-skin="receiver"] .pbtn.on .ic-stop,
[data-skin="receiver"] .volume .line,
[data-skin="receiver"] .volume .fill,
[data-skin="receiver"] .volume .thumb,
[data-skin="receiver"] .badge,
[data-skin="receiver"] .dot-num-bank { display: none; }

/* ------------------------------ faceplate -------------------------------- */
/* An object with an edge on every screen: a plate of brushed anodized aluminum
   sitting in a dark room. */
[data-skin="receiver"] .shell {
  min-height: calc(100dvh - 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 14px;
  border-radius: var(--r-plate);
  background: var(--tex-plate) 0 0 / 256px 256px, var(--plate);
  box-shadow:
    inset 0 1px 0 var(--seam-hi),
    0 0 0 1px var(--bezel),
    0 24px 40px -24px var(--shadow-deep);
}

/* ------------------- masthead: the brand and the look keys ---------------- */
[data-skin="receiver"] .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
[data-skin="receiver"] .wordmark { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
[data-skin="receiver"] .wm-a {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--print);
}
[data-skin="receiver"] .wm-b {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--engrave);
}
/* The look switch: three small machined keys; the chosen one sits pressed in, its legend lit. */
[data-skin="receiver"] .look { gap: 4px; }
[data-skin="receiver"] .look-btn {
  padding: 0 9px;
  border: 1px solid var(--key-edge);
  border-radius: var(--r-key);
  background: var(--tex-grain) 0 0 / 128px 128px, linear-gradient(180deg, var(--key-hi), var(--key-lo));
  box-shadow: inset 0 1px 0 var(--seam-hi), 0 3px 6px -2px var(--shadow-1);
  color: var(--engrave);
  font-family: var(--font-ui);
  font-weight: 600;
  font-stretch: 75%;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 120ms var(--ease), box-shadow 120ms var(--ease);
}
[data-skin="receiver"] .look-btn:hover { color: var(--print-2); }
[data-skin="receiver"] .look-btn[aria-pressed="true"] {
  background: var(--tex-grain) 0 0 / 128px 128px, linear-gradient(180deg, var(--key-lo), var(--key-press));
  box-shadow: inset 0 2px 5px var(--shadow-2);
  color: var(--vfd);
}
[data-skin="receiver"] .look-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ------------------------------- layout ---------------------------------- */
/* Phone: the window, the presets, the transport, the volume row, the legend. */
[data-skin="receiver"] .unit {
  flex: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto auto 1fr;
  grid-template-areas:
    "window    window    window"
    "presets   presets   presets"
    "transport transport transport"
    "mute      fader     static"
    "tools     tools     tools"
    "legend    legend    legend";
  gap: 12px;
}
[data-skin="receiver"] .fn,
[data-skin="receiver"] .well,
[data-skin="receiver"] .foot { display: contents; }
[data-skin="receiver"] .display   { grid-area: window; }
[data-skin="receiver"] .presets   { grid-area: presets; }
[data-skin="receiver"] .transport { grid-area: transport; }
[data-skin="receiver"] .mute      { grid-area: mute; }
[data-skin="receiver"] .volume    { grid-area: fader; }
[data-skin="receiver"] .hiss      { grid-area: static; }
[data-skin="receiver"] .legend    { grid-area: legend; }
[data-skin="receiver"] .rx-knob   { display: none; }

/* --------------------------- the receiver window ------------------------- */
/* One bezel, one glass: the readout above (beside, on desktop) the dial,
   divided by a silkscreened hairline. */
[data-skin="receiver"] .display {
  position: relative;
  border-radius: var(--r-glass);
  overflow: hidden;
  background: linear-gradient(180deg, var(--vfd-glass-2), var(--vfd-glass) 70%);
  box-shadow: 0 1px 0 var(--seam-hi);
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto 16px;
  grid-template-areas:
    ".     freq   meters ."
    ".     name   name   ."
    ".     format format ."
    ".     slot   slot   ."
    "tuner tuner  tuner  tuner";
}
[data-skin="receiver"] .display::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--bezel), inset 0 3px 12px var(--shadow-2);
}

/* --------------------------- fluorescent readout ------------------------- */
[data-skin="receiver"] .st-freq {
  grid-area: freq;
  align-self: end;
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
/* The digits light over a ghost of every segment, like a real fluorescent display. */
[data-skin="receiver"] #freq {
  position: relative;
  z-index: 0;
  min-width: var(--seg-w, 3.52em);
  text-align: right;
  font-family: var(--font-seg);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--vfd);
  white-space: nowrap;
}
[data-skin="receiver"] #freq::before {
  content: "888.8";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  color: var(--vfd-ghost);
}
[data-skin="receiver"] .st-freq .mhz {
  padding-bottom: 3px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--vfd-3);
}

/* Two backlit needle meters. skins.js sets --signal (0-5) and --drift
   (-0.5..0.5) on .shell; the faces go dim in standby with the dial lamps. */
[data-skin="receiver"] .meters {
  grid-area: meters;
  align-self: end;
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
[data-skin="receiver"] .meter-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
[data-skin="receiver"] .meter { display: block; width: 60px; height: auto; transition: opacity 700ms var(--ease); }
[data-skin="receiver"] .mf-face { fill: var(--vfd-wash); stroke: var(--vfd-rule); stroke-width: 1; }
[data-skin="receiver"] .mf-arc { fill: none; stroke: var(--vfd-3); stroke-width: 1.3; }
[data-skin="receiver"] .mf-ticks { fill: none; stroke: var(--vfd-2); stroke-width: 1.4; }
[data-skin="receiver"] .mf-pivot { fill: var(--vfd); }
[data-skin="receiver"] .shell:not(:has(.pbtn.on)) .meter { opacity: 0.55; }
[data-skin="receiver"] .mf-needle {
  stroke: var(--vfd);
  stroke-width: 1.7;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 42px 46px;
  transition: transform 260ms var(--ease-needle);
}
[data-skin="receiver"] .meter-signal .mf-needle { transform: rotate(calc(-50deg + var(--signal, 0) * 20deg)); }
[data-skin="receiver"] .meter-tuning .mf-needle { transform: rotate(calc(var(--drift, 0) * 100deg)); transition-duration: 90ms; }
[data-skin="receiver"] .meter-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vfd-3);
  white-space: nowrap;
}

[data-skin="receiver"] .dm-main { grid-area: name; margin-top: 10px; }
[data-skin="receiver"] .st-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(26px, 7.4vw, 36px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--vfd);
  overflow-wrap: anywhere;
}
/* between stations the hero dims: the pointer is not on anything yet */
[data-skin="receiver"] .display:not([data-tune="center"]) .station-hero { color: var(--vfd-3); }
[data-skin="receiver"] .st-format {
  grid-area: format;
  margin-top: 4px;
  height: 2.7em;
  font-size: 15px;
  line-height: 1.35;
  color: var(--vfd-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* One fixed slot for status, standby and now-playing: changing state never
   moves the dial under a thumb. */
[data-skin="receiver"] .slot {
  grid-area: slot;
  margin: 12px 0 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--vfd-rule);
  height: 108px;
  overflow: hidden;
}
[data-skin="receiver"] .display-status {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vfd);
}
[data-skin="receiver"] .display-status:empty { display: none; }
[data-skin="receiver"] .display-status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
[data-skin="receiver"] .display-status[data-state="connecting"] { color: var(--vfd-2); }
[data-skin="receiver"] .display-status[data-state="reconnecting"] { color: var(--info); }
[data-skin="receiver"] .display-status[data-state="reconnecting"]::before { animation: lamp-blink 1.1s steps(2, jump-none) infinite; }
[data-skin="receiver"] .display-status[data-state="bad"] { color: var(--coral); }
[data-skin="receiver"] .standby {
  font-size: 15px;
  line-height: 1.4;
  color: var(--vfd-2);
}
[data-skin="receiver"] .standby b { font-weight: 600; color: var(--vfd); }
[data-skin="receiver"] #npArtist,
[data-skin="receiver"] #npTitle { unicode-bidi: plaintext; }
[data-skin="receiver"] .now .artist {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--vfd);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-skin="receiver"] .now .title {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--vfd-2);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-skin="receiver"] .now .meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--vfd-3);
}
[data-skin="receiver"] .now.changed .artist,
[data-skin="receiver"] .now.changed .title { animation: vfd-on 520ms var(--ease); }
@keyframes vfd-on {
  from { opacity: 0.15; filter: blur(1.5px); }
  to   { opacity: 1; filter: none; }
}

/* ------------------------------- dial glass ------------------------------ */
[data-skin="receiver"] .tuner {
  grid-area: tuner;
  position: relative;
  height: 124px;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--glass-2) 0%, var(--glass) 58%, var(--glass-3) 100%);
  cursor: grab;
  touch-action: pan-y;                /* horizontal drags tune; vertical swipes still scroll the page */
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
[data-skin="receiver"] .tuner:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
[data-skin="receiver"] .tuner.dragging { cursor: grabbing; }
[data-skin="receiver"] .tuner.dragging:focus-visible { outline-color: transparent; }

/* Two dial lamps and the general backlight. Standby glows low; TUNE IN warms
   them to full, the one authored motion on the page. */
[data-skin="receiver"] .glass-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(28% 80% at 14% 78%, var(--lamp), transparent 72%),
    radial-gradient(28% 80% at 86% 78%, var(--lamp), transparent 72%),
    radial-gradient(58% 120% at 50% 62%, var(--backlight) 0%, var(--backlight-2) 55%, transparent 78%);
  opacity: 0.6;
  transition: opacity 700ms var(--ease);
}
[data-skin="receiver"] .shell:has(.pbtn.on) .glass-light { opacity: 1; }

/* The string the pointer rides on. */
[data-skin="receiver"] .dial-string {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 1px;
  background: var(--lit-3);
  opacity: 0.4;
  pointer-events: none;
}

/* The pointer sits BEHIND the printed band (DOM order), as on a real dial. */
[data-skin="receiver"] .needle {
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 8px;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--coral), var(--coral-deep));
  pointer-events: none;
}
[data-skin="receiver"] .needle-cap {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 13px;
  height: 7px;
  margin-left: -6.5px;
  border-radius: 2px;
  background: var(--coral);
}

[data-skin="receiver"] .band {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  will-change: transform;
}
[data-skin="receiver"] .ticks { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
[data-skin="receiver"] .tick {
  position: absolute;
  bottom: 10px;
  width: 1px;
  background: var(--lit-3);
  opacity: 0.6;
}
[data-skin="receiver"] .tick.major { width: 2px; background: var(--lit-2); opacity: 0.95; }

/* The scale is printed ON the rail: name, then frequency, then the major tick. */
[data-skin="receiver"] .detent {
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 34px;
  width: calc(var(--sp) - 8px);
  text-align: center;
}
[data-skin="receiver"] .detent-stalk { display: none; }
[data-skin="receiver"] .detent-name {
  order: 1;
  margin-bottom: 3px;
  max-width: calc(var(--sp) - 14px);
  font-family: var(--font-ui);
  font-weight: 600;
  font-stretch: 75%;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--lit-2);
  transition: color 140ms var(--ease);
}
[data-skin="receiver"] .detent-freq {
  order: 2;
  font-family: var(--font-ui);
  font-weight: 600;
  font-stretch: 87.5%;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--lit-2);
  transition: color 140ms var(--ease);
}
[data-skin="receiver"] .detent.near .detent-freq,
[data-skin="receiver"] .detent.near .detent-name { color: var(--lit); }
[data-skin="receiver"] .detent.live .detent-freq,
[data-skin="receiver"] .detent.live .detent-name {
  color: var(--lit);
  /* an opaque strip of glass behind the live print: the pointer runs behind it */
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--glass-pad);
  font-weight: 700;
}

[data-skin="receiver"] .fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  pointer-events: none;
}
[data-skin="receiver"] .fade-l { left: 0;  background: linear-gradient(90deg, var(--glass), var(--glass-0)); }
[data-skin="receiver"] .fade-r { right: 0; background: linear-gradient(270deg, var(--glass), var(--glass-0)); }

[data-skin="receiver"] .glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--sheen) 0%, transparent 32%);
}

/* The loop seam between station 15 and station 1 (tuner.js places it). */
[data-skin="receiver"] .seam {
  position: absolute;
  top: 20px;
  bottom: 10px;
  width: 0;
  border-left: 1px dashed var(--lit-3);
  opacity: 0.8;
  transform: translateX(-50%);
  pointer-events: none;
}
[data-skin="receiver"] .seam::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--lit-2);
  -webkit-mask: var(--icon-loop) center / contain no-repeat;
  mask: var(--icon-loop) center / contain no-repeat;
}

/* The printed FM scale: even MHz numerals that slide with the band
   (skins.js places them; shown where the glass is tall enough). */
[data-skin="receiver"] .mhz-scale { position: absolute; left: 0; top: 0; bottom: 0; width: 0; display: none; }
[data-skin="receiver"] .mhz-scale .mhz {
  position: absolute;
  top: 26px;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-weight: 600;
  font-stretch: 87.5%;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--lit-2);
}
[data-skin="receiver"] .mhz-scale .mhz::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 7px;
  margin-top: 3px;
  background: var(--lit-3);
}
[data-skin="receiver"] .mhz-unit { margin-left: 2px; font-size: 10.5px; color: var(--lit-3); }

/* ------------------------------ keys (shared) ---------------------------- */
[data-skin="receiver"] .key,
[data-skin="receiver"] .dot {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  cursor: pointer;
  border: 1px solid var(--key-edge);
  border-radius: var(--r-key);
  background: var(--tex-grain) 0 0 / 128px 128px, linear-gradient(180deg, var(--key-hi), var(--key-lo));
  box-shadow: inset 0 1px 0 var(--seam-hi), 0 3px 6px -2px var(--shadow-1);
  color: var(--print-2);
  transition: color 120ms var(--ease), background 120ms var(--ease), box-shadow 120ms var(--ease), transform 90ms var(--ease);
}
[data-skin="receiver"] .key:hover,
[data-skin="receiver"] .dot:hover { color: var(--print); }
[data-skin="receiver"] .key:active,
[data-skin="receiver"] .dot:active { transform: translateY(1px); box-shadow: inset 0 2px 5px var(--shadow-2); }
[data-skin="receiver"] .key:focus-visible,
[data-skin="receiver"] .dot:focus-visible,
[data-skin="receiver"] .pbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[data-skin="receiver"] .key { font-family: var(--font-label); }

/* -------------------------------- presets -------------------------------- */
/* tuner.js builds <button class="dot"><i></i></button>; skins.js adds the
   number, the short name and (keyboard devices) the shortcut key. CSS counters
   number the keys if it never runs. */
[data-skin="receiver"] .dots {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  counter-reset: preset;
}
[data-skin="receiver"] .dot {
  position: relative;
  counter-increment: preset;
  min-height: 56px;
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-ui);
  line-height: 1;
}
[data-skin="receiver"] .dot:not(:has(.dot-num-abs))::after {
  content: counter(preset);
  font-weight: 700;
  font-size: 14px;
}
[data-skin="receiver"] .dot i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--led-off);
  transition: background 120ms var(--ease);
}
[data-skin="receiver"] .dot-num-abs { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
[data-skin="receiver"] .dot-name {
  font-weight: 600;
  font-stretch: 75%;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--engrave);
  white-space: nowrap;
}
[data-skin="receiver"] .dot-kbd { display: none; }
[data-skin="receiver"] .dot:hover .dot-name { color: var(--print-2); }
[data-skin="receiver"] .dot[aria-current="true"] {
  background: var(--tex-grain) 0 0 / 128px 128px, linear-gradient(180deg, var(--key-lo), var(--key-press));
  box-shadow: inset 0 2px 5px var(--shadow-2);
  color: var(--print);
}
[data-skin="receiver"] .dot[aria-current="true"] i { background: var(--vfd); }
[data-skin="receiver"] .dot[aria-current="true"] .dot-name { color: var(--print-2); }

/* ------------------------------ controls --------------------------------- */
[data-skin="receiver"] .transport {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 8px;
}
[data-skin="receiver"] .seek {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
[data-skin="receiver"] .seek .ic-skip { width: 18px; height: 18px; fill: currentColor; }
[data-skin="receiver"] .key-cap {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--engrave);
}
[data-skin="receiver"] .seek:hover .key-cap { color: var(--print-2); }

/* The power key: the one brushed-aluminum object on the black plate. */
[data-skin="receiver"] .pbtn {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--alu-edge);
  border-radius: var(--r-key);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--alu-ink);
  background: var(--tex-alu) center / 100% 100% no-repeat, linear-gradient(180deg, var(--alu-hi), var(--alu-lo));
  box-shadow: inset 0 1px 0 var(--key-sheen), 0 4px 10px -3px var(--shadow-2);
  transition: box-shadow 120ms var(--ease), transform 90ms var(--ease);
}
[data-skin="receiver"] .pbtn .lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--led-off);
  box-shadow: inset 0 1px 2px var(--shadow-2);
  transition: background 250ms var(--ease);
}
[data-skin="receiver"] .pbtn.on {
  background: var(--tex-alu) center / 100% 100% no-repeat, linear-gradient(180deg, var(--alu-lo), var(--alu-hi));
  box-shadow: inset 0 2px 6px var(--shadow-1);
  transform: translateY(1px);
}
[data-skin="receiver"] .pbtn.on .lamp { background: var(--coral); box-shadow: none; }
[data-skin="receiver"] .pbtn.on .pbtn-stop { display: inline; text-transform: uppercase; }
[data-skin="receiver"] .shell:has(.display-status[data-state="connecting"]) .pbtn.on .lamp,
[data-skin="receiver"] .shell:has(.display-status[data-state="bad"]) .pbtn.on .lamp { animation: lamp-blink 1.1s steps(2, jump-none) infinite; }
[data-skin="receiver"] .shell:has(.display-status[data-state="reconnecting"]) .pbtn.on .lamp {
  background: var(--info);
  animation: lamp-blink 1.1s steps(2, jump-none) infinite;
}

[data-skin="receiver"] .mute { min-height: 48px; display: grid; place-items: center; }
[data-skin="receiver"] .mute svg { width: 19px; height: 19px; fill: currentColor; }
[data-skin="receiver"] .mute svg .wave { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
[data-skin="receiver"] .mute svg .slash { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: none; }
[data-skin="receiver"] .mute.off { color: var(--print); }
[data-skin="receiver"] .mute.off svg .wave { display: none; }
[data-skin="receiver"] .mute.off svg .slash { display: inline; }

[data-skin="receiver"] .hiss {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
[data-skin="receiver"] .hiss .lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led-off);
  transition: background 150ms var(--ease);
}
[data-skin="receiver"] .hiss[aria-pressed="true"] { color: var(--print); }
[data-skin="receiver"] .hiss[aria-pressed="true"] .lamp { background: var(--vfd); }

/* The fader: a groove in the plate and a brushed-aluminum cap. */
[data-skin="receiver"] .volume { display: flex; align-items: center; min-width: 0; }
[data-skin="receiver"] .slider { flex: 1; min-width: 0; display: flex; align-items: center; }
[data-skin="receiver"] .vslider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 48px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
[data-skin="receiver"] .vslider:focus-visible { outline: none; }
[data-skin="receiver"] .vol-hint { font-size: 13px; line-height: 1.3; color: var(--engrave); }
[data-skin="receiver"] .vslider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--bezel);
  box-shadow: inset 0 1px 2px var(--shadow-2), 0 1px 0 var(--seam-hi);
}
[data-skin="receiver"] .vslider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--bezel);
  box-shadow: inset 0 1px 2px var(--shadow-2), 0 1px 0 var(--seam-hi);
}
[data-skin="receiver"] .vslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 30px;
  margin-top: -12px;
  border-radius: 3px;
  border: 1px solid var(--alu-edge);
  background: var(--tex-cap) center / 100% 100% no-repeat, var(--alu-lo);
  box-shadow: 0 3px 6px var(--shadow-1);
}
[data-skin="receiver"] .vslider::-moz-range-thumb {
  width: 16px;
  height: 30px;
  border-radius: 3px;
  border: 1px solid var(--alu-edge);
  background: var(--tex-cap) center / 100% 100% no-repeat, var(--alu-lo);
  box-shadow: 0 3px 6px var(--shadow-1);
}
[data-skin="receiver"] .vslider:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
[data-skin="receiver"] .vslider:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }

/* -------------------------------- legend --------------------------------- */
[data-skin="receiver"] .legend {
  align-self: end;
  justify-self: center;
  max-width: 64ch;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--engrave);
}
[data-skin="receiver"] .legend kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 5px;
  border: 1px solid var(--key-edge);
  border-radius: 4px;
  background: var(--key-lo);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  color: var(--print-2);
}
[data-skin="receiver"] .legend-keys,
[data-skin="receiver"] .legend-knob { display: none; }
@media (hover: hover) and (pointer: fine) {
  [data-skin="receiver"] .legend-keys { display: block; }
  [data-skin="receiver"] .legend-touch { display: none; }
  [data-skin="receiver"] .dot-kbd {
    display: block;
    position: absolute;
    top: 4px;
    right: 5px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    color: var(--engrave);
  }
}

/* ------------------------------- W3 (2026-10-30) ------------------------------- */
/* The tools row, the recovery exit and the dialogs wear the receiver's machined keys. The tokens below feed the shared
   rules in skin-base.css, so this block adds no color of its own. */
[data-skin="receiver"] {
  --w3-edge: var(--key-edge);
  --w3-r: var(--r-key);
  --w3-btn-bg: var(--tex-grain) 0 0 / 128px 128px, linear-gradient(180deg, var(--key-hi), var(--key-lo));
  --w3-btn-shadow: inset 0 1px 0 var(--seam-hi), 0 3px 6px -2px var(--shadow-1);
  --w3-btn-ink: var(--print-2);
  --w3-font: var(--font-ui);
  --w3-note: var(--info);
  --w3-dlg-bg: var(--plate);
  --w3-dlg-ink: var(--print);
  --w3-dlg-ink-2: var(--engrave);
  --w3-dlg-edge: var(--key-edge);
  --w3-dlg-btn-bg: var(--w3-btn-bg);
  --w3-dlg-btn-shadow: var(--w3-btn-shadow);
  --w3-dlg-r: var(--r-plate);
  --w3-row-bg: var(--key-lo);
  --w3-sel-bg: var(--key-press);
  --w3-sel-ink: var(--vfd);
  --w3-sel-edge: var(--vfd-3);
}
[data-skin="receiver"] .tools { grid-area: tools; padding-top: 2px; }
[data-skin="receiver"] .w3-btn {
  font-stretch: 75%;
  letter-spacing: 0.08em;
  transition: color 120ms var(--ease), box-shadow 120ms var(--ease), transform 90ms var(--ease);
}
[data-skin="receiver"] .w3-btn:hover { color: var(--print); }
[data-skin="receiver"] .w3-btn:focus-visible,
[data-skin="receiver"] .guide-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[data-skin="receiver"] .tools-msg { color: var(--engrave); }
[data-skin="receiver"] .stale-text { color: var(--info); }
[data-skin="receiver"] .recovery-time { color: var(--vfd-2); }
[data-skin="receiver"] .rec-btn { color: var(--print); }
[data-skin="receiver"] dialog.w3-dlg {
  background: var(--tex-plate) 0 0 / 256px 256px, var(--plate);
  box-shadow: inset 0 1px 0 var(--seam-hi), 0 0 0 1px var(--bezel), 0 24px 48px -16px var(--shadow-deep);
}
[data-skin="receiver"] .w3-head h2 {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vfd);
}
[data-skin="receiver"] .guide-row { color: var(--print-2); }
[data-skin="receiver"] .guide-row .g-freq,
[data-skin="receiver"] .guide-row .g-desc { color: var(--engrave); }
[data-skin="receiver"] .guide-row[aria-pressed="true"] .g-freq,
[data-skin="receiver"] .guide-row[aria-pressed="true"] .g-desc { color: var(--vfd-2); }
[data-skin="receiver"] .guide-name { color: var(--vfd); }
[data-skin="receiver"] .details-fields dd { color: var(--vfd); }

/* ------------------------------ breakpoints ------------------------------ */
/* Phones: the brand stacks into a two-line nameplate so the three look keys fit beside it. */
@media (max-width: 599px) {
  [data-skin="receiver"] .wordmark { flex-direction: column; align-items: flex-start; gap: 3px; }
  [data-skin="receiver"] .look-btn { padding: 0 7px; }
  [data-skin="receiver"] .dots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 374px) {
  [data-skin="receiver"] .meter-unit:has(.meter-signal) { display: none; }
  [data-skin="receiver"] .wm-a { font-size: 12px; letter-spacing: 0.12em; }
}
/* The smallest phones give the masthead to the look keys. */
@media (max-width: 359px) {
  [data-skin="receiver"] .wordmark { display: none; }
  [data-skin="receiver"] .bar { justify-content: flex-end; }
}

@media (min-width: 600px) {
  [data-skin="receiver"] body { padding: 16px; }
  [data-skin="receiver"] .mhz-scale { display: block; }
  [data-skin="receiver"] .shell { min-height: calc(100dvh - 32px); padding: 20px 20px 18px; }
  [data-skin="receiver"] .tuner { height: 168px; }
  [data-skin="receiver"] .meter { width: 72px; }
  [data-skin="receiver"] .slot { height: 128px; }
  [data-skin="receiver"] .now .title { -webkit-line-clamp: 2; }
  [data-skin="receiver"] .look-btn { padding: 0 12px; }
}

@media (min-width: 900px) {
  [data-skin="receiver"] body {
    display: grid;
    place-items: center;
    padding: 40px 32px;
  }
  [data-skin="receiver"] .shell {
    width: min(1180px, 100%);
    min-height: 0;
    gap: 20px;
    padding: 24px 28px 20px;
  }
  /* the console row: the window, then the knob; below it the presets beside the controls */
  [data-skin="receiver"] .unit {
    grid-template-columns: minmax(0, 1.1fr) 4px 48px minmax(0, 0.54fr) auto;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
      "window  window window    window    knob"
      "presets .      transport transport transport"
      "presets .      mute      fader     static"
      "tools   tools  tools     tools     tools"
      "legend  legend legend    legend    legend";
    row-gap: 12px;
    column-gap: 12px;
  }
  /* desktop: the readout sits at the left end of the dial window, as on a
     receiver whose display shares the glass with the scale */
  [data-skin="receiver"] .display {
    margin-bottom: 8px;
    grid-template-columns: 20px minmax(0, 1fr) auto 20px minmax(0, 1.4fr);
    grid-template-areas:
      ". freq   meters . tuner"
      ". name   name   . tuner"
      ". format format . tuner"
      ". slot   slot   . tuner";
  }
  [data-skin="receiver"] .st-freq,
  [data-skin="receiver"] .meters { margin-top: 18px; }
  [data-skin="receiver"] .tuner { height: auto; min-height: 0; border-top: 0; border-left: 1px solid var(--hairline); }
  [data-skin="receiver"] .slot { height: 128px; margin-bottom: 16px; }
  [data-skin="receiver"] .tick { transform: scaleY(1.7); transform-origin: bottom center; }
  [data-skin="receiver"] .detent { padding-bottom: 48px; }
  [data-skin="receiver"] .rx-knob {
    grid-area: knob;
    align-self: center;
    display: block;
    width: 152px;
    height: 152px;
    margin: 0 0 8px 16px;
    border-radius: 50%;
    padding: 6px;
    background: var(--bezel);
    box-shadow: inset 0 2px 6px var(--shadow-deep), 0 1px 0 var(--seam-hi);
    cursor: grab;
    touch-action: none;
  }
  [data-skin="receiver"] .rx-knob:active { cursor: grabbing; }
  [data-skin="receiver"] .knob-cap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--tex-knob) center / contain no-repeat;
    box-shadow: 0 6px 12px var(--shadow-deep);
    transform: rotate(var(--knob-deg, 0deg));
  }
  /* the lower deck: a machined seam across the plate, presets left, controls right */
  [data-skin="receiver"] .presets,
  [data-skin="receiver"] .transport {
    padding-top: 20px;
    border-top: 1px solid var(--bezel);
    box-shadow: inset 0 1px 0 var(--seam-hi);
  }
  [data-skin="receiver"] .presets { align-self: start; }
  [data-skin="receiver"] .hiss { justify-self: end; }
  [data-skin="receiver"] .legend { margin-top: 8px; max-width: none; }
  [data-skin="receiver"] .wm-a { font-size: 14px; }
  [data-skin="receiver"] .legend-knob { display: inline; }
  [data-skin="receiver"] .transport { grid-template-columns: 76px minmax(0, 1fr) 76px; }
  [data-skin="receiver"] .seek,
  [data-skin="receiver"] .pbtn { min-height: 60px; }
  [data-skin="receiver"] .meter { width: 76px; }
  [data-skin="receiver"] .detent-name { font-size: 13.5px; }
  [data-skin="receiver"] .detent-freq { font-size: 14px; }
}

@media (hover: none) {
  [data-skin="receiver"] .key:hover,
  [data-skin="receiver"] .dot:hover { color: var(--print-2); }
}
