/* ============================================================   Z3POC TRX — the transceiver skin: TRX-1 (LOCAL) + TRX-2 (BM)   ============================================================   TRX-1 landed 26.10.2026. On 27.10.2026 the BM card got the SAME   treatment (section 9) so both radios in the centre column read as one   set — this file owns them both, and both partials link it with the same   filemtime cache-bust contract.   WHY THIS FILE EXISTS   --------------------   The card used to carry its whole skin in an inline <style> block inside   partials/terminal/players/local/local_transceiver.php. That meant ~120   lines of CSS re-parsed on every view, impossible to cache, and impossible   for Deploy to version (a changed partial ships, the look ships with it —   but a HALF-uploaded CSS never happens, only a half-uploaded partial does).   OWNERSHIP SPLIT — read before changing a colour   -----------------------------------------------   This file is the BASE skin: it must look right on its own, because five of   the six themes never mention this card.   assets/theme-z3poc.css (the DEFAULT theme) then repaints the parts it   owns — chassis surface, LCD glass, scanlines, key caps, the PTT key and   the three meter fills — with !important, deliberately "without touching   the markup". Those declarations WIN where they overlap, and that is   correct: switching the theme must keep changing this card.   So the rules here follow two laws:     1. never set a colour on a selector theme-z3poc also paints with        !important (.oled-*, #localPtt, #localSMeter/#localVu/#localMicMeter        backgrounds, #localRoomVal …) — theme wins anyway, you only create        two truths;     2. everything NEW (instruments, knob, rail, plate, glow, ladder masks,        needle, peak marker) is prefixed .trx- and belongs to this file in        every theme.   Loaded from the partial itself with a filemtime version param, so the   browser cache dies exactly when the file changes — same contract the   app_head links use.   THE ID CONTRACT — ids are the JavaScript API   ---------------------------------------------   assets/z3poc.js writes by id, never by class: localTxCard, localLed,   localStatusText, localStatus, localRoomVal, localLastCall, localTgDisp,   localRoomSel, localRoomCustom, localRoomNote, localRoomBmHero,   localRoomBmLine, localJoinBtn, localTtsBtn, localPtt, localPttLabel,   localNotice*, localNowTx/Call/Id/Kicker/Time, localMembers, localVu(+Val),   localSMeter(+Val), localMicMeter(+Val), plus the new   localSNeedle / localSArc / localVuPeak / localTrxKnob / localKnobVal. Remove one and the   element goes dead silently — nothing throws.   The BM card (section 9) keeps every r1 id (tgValue, sMeter, vuMeter,   micMeter, pttBtn, pttSub, micGain…) and ADDS five of its own, all   null-guarded in z3poc.js: bmTxCard, bmSNeedle, bmArc, bmVuPeak,   bmTrxKnob.   MOBILE: .oled-row keeps flex-wrap and the hero number keeps clamp();   on 26.10.2026 a fixed 449px keypad row dragged the whole page 90px   sideways on a 360px phone. Do not "tidy" either of those two away.   ============================================================ *//* ---------- 1. chassis ------------------------------------------------ */.trx-chassis{  /* phosphor skin (27.10.2026) — the chosen preview pill, baked in as the     card's ONE house look: green LCD in every theme. theme-z3poc still     repaints what it owns with !important; this only sets the base. */  --trx-metal-1:#161d18;  --trx-metal-2:#0a100d;  --trx-edge:#2e3a31;  --trx-accent:#39ff88;  --trx-hot:#ff5a52;  position:relative;  background:linear-gradient(180deg,var(--trx-metal-1),var(--trx-metal-2));  border:1px solid var(--trx-edge);  border-radius:14px;  box-shadow:0 24px 60px -30px rgba(0,0,0,.9),             inset 0 1px 0 rgba(255,255,255,.06);  overflow:hidden;}/* the top rail: brand plate + hairline + two screws. Pure chrome — no   theme touches it, so it reads as machined metal in every theme. */.trx-rail{  display:flex;align-items:center;gap:10px;  padding:9px 14px;  background:linear-gradient(180deg,#1e2a22,#121a15 60%,#0e1512);  border-bottom:1px solid #05070a;  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);}.trx-screw{  width:9px;height:9px;flex:none;border-radius:50%;  background:radial-gradient(circle at 32% 30%,#5b636f,#20242c 70%);  box-shadow:inset 0 0 0 1px rgba(0,0,0,.6),0 1px 1px rgba(255,255,255,.06);  position:relative;}.trx-screw::after{  content:"";position:absolute;inset:3px 1px;  background:#0c0e12;border-radius:1px;transform:rotate(24deg);}.trx-plate{  font:600 10px/1 var(--mono,ui-monospace,monospace);  letter-spacing:2.4px;text-transform:uppercase;  color:#c9d4e2;padding:5px 9px;border-radius:3px;  background:linear-gradient(180deg,#2a2f39,#171b22);  border:1px solid #363d4a;  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 2px rgba(0,0,0,.5);}.trx-plate b{color:var(--trx-accent);font-weight:700}.trx-rail-line{  flex:1;height:2px;border-radius:2px;  background:linear-gradient(90deg,transparent,var(--trx-accent),transparent);  opacity:.35;transition:opacity .25s ease,background .25s ease;}#localTxCard[data-state="rx"] .trx-rail-line{opacity:.75}#localTxCard[data-state="tx"] .trx-rail-line{  opacity:.95;  background:linear-gradient(90deg,transparent,var(--trx-hot),transparent);}/* ---------- 2. OLED glass -------------------------------------------- */.oled-display-frame{  position:relative;  margin:8px 8px 0;  padding:8px;  border-radius:12px;  background:linear-gradient(180deg,#0a1a10,#04100a);  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),             inset 0 -1px 0 rgba(34,255,68,.18);}/* audio-reactive halo: z3poc.js writes --trx-rx (0..1) once per frame.   It lives on its OWN element so theme-z3poc's !important .oled-display   box-shadow (the RX/TX language) stays in charge of the glass itself. */.trx-halo{  position:absolute;inset:0;border-radius:inherit;pointer-events:none;  box-shadow:0 0 calc(var(--trx-rx,0) * 34px) rgba(34,211,238,.55);  opacity:calc(.12 + var(--trx-rx,0) * .8);  transition:box-shadow .12s linear,opacity .12s linear;}#localTxCard[data-state="tx"] .trx-halo{  box-shadow:0 0 calc(var(--trx-rx,0) * 40px) rgba(255,60,40,.6);}.oled-display{  position:relative;overflow:hidden;  min-height:190px;  border-radius:9px;  background:radial-gradient(ellipse at top,#00150a,#000703);  border:1px solid #123322;  padding:14px 16px 16px;  box-shadow:inset 0 0 90px rgba(34,255,68,.12);}/* scanlines — paint ABOVE the content, never intercept a tap */.oled-display::before{  content:"";position:absolute;inset:0;z-index:3;pointer-events:none;  background:repeating-linear-gradient(to bottom,    rgba(34,211,238,0) 0 2px, rgba(34,211,238,.08) 2px 4px);  mix-blend-mode:screen;}.oled-status-top{  position:relative;z-index:2;  display:flex;justify-content:space-between;gap:8px;  font:600 17px/1 var(--mono,ui-monospace,monospace);  color:#5dff9c;text-transform:uppercase;letter-spacing:1.6px;  margin-bottom:8px;}.oled-status-left,.oled-status-right{display:flex;gap:17px;align-items:center;min-width:0}.oled-item{display:flex;align-items:center;gap:4px;white-space:nowrap;  text-shadow:0 0 8px rgba(34,211,238,.5)}/* the static RX chip keeps the hardware language; the LIVE led above it is   the one z3poc.js re-classes to status-led online/rx/tx/off *//* Colours are background-COLOR, never the `background` shorthand: the   shared LED bezel (assets/z3status.css) paints a gloss as an !important   background-IMAGE on top, and a shorthand here would only fight it. */.oled-dot{  display:inline-block;width:6px;height:6px;border-radius:50%;  background-color:#5b6a58;}.oled-dot.rx{background-color:#22c55e;box-shadow:0 0 6px rgba(34,197,94,.6)}/* ---------- 3. hero: room number + last heard ------------------------- */.trx-hero{position:relative;z-index:2;text-align:center;margin-top:4px}.trx-hero-label{  font:600 20px/1 var(--mono,ui-monospace,monospace);  color:#5dff9c;letter-spacing:3px;text-transform:uppercase;opacity:.9;}.oled-roomnum.trx-hero-num{  /* clamp() is a 26.10 regression guard: the number is the biggest glyph on     the card and a fixed 28px+tracking clipped it on a 360px phone. */  font-size:clamp(24px,11vw,20px);  font-weight:600;letter-spacing:4px;  font-variant-numeric:tabular-nums;  margin:8px 0 4px;word-break:break-all;  color:#e6ffef;  text-shadow:0 0 80px rgba(52,255,120,.5),0 0 25px rgba(80,255,140,.55);}.trx-kicker{  display:inline-flex;align-items:center;gap:4px;  font:600 12px/1 var(--mono,ui-monospace,monospace);  letter-spacing:1.8px;text-transform:uppercase;color:#5dff9c;opacity:.75;}.trx-last,.trx-meta,.trx-note{  position:relative;z-index:2;  font:500 15px/1.5 var(--mono,ui-monospace,monospace);  color:#5dff9c;letter-spacing:1.2px;}.trx-last{margin-top:6px}/* the call is an ID target: z3poc.js overwrites its text, so the label   lives in a SIBLING span (inside, the first RX would eat the label) */#localLastCall{color:#b6ffd0;text-shadow:0 0 12px rgba(52,255,120,.5)}.trx-meta{display:flex;align-items:center;justify-content:center;gap:5px;  margin-top:6px;color:#5dff9c;opacity:.95}.trx-note{margin-top:5px;font-size:10px;letter-spacing:.4px;color:#5dff9c;  line-height:1.4;min-height:12px;text-align:center}/* NO `display` on these two: z3poc.js flips them with the `hidden`   ATTRIBUTE, and an author display would outrank the UA's [hidden]{display:   none} — the badge would then stay on screen with no TG behind it. */#localRoomBmHero{margin-top:4px;font-size:10px;  letter-spacing:1.5px;color:#5dff9c}#localRoomBmLine{font-size:9px;letter-spacing:1px}#localStatus{display:none}/* ---------- 4. instruments: S dial + VU + MIC ------------------------- */.trx-instruments{  position:relative;z-index:2;  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);  gap:12px;align-items:end;margin-top:10px;}.trx-dial{min-width:0}.trx-dial-svg{display:block;width:100%;height:auto;overflow:visible}.trx-arc-base{fill:none;stroke:rgba(34,211,238,.14);stroke-width:7;stroke-linecap:round}.trx-arc-hot{fill:none;stroke:rgba(255,80,60,.55);stroke-width:7;stroke-linecap:butt;  stroke-dasharray:10 100;stroke-dashoffset:-90}/* --rx-clr exists only in the default theme, and there the track follows   the LCD green; every OTHER theme now gets the phosphor green — the skin   this card ships with since 27.10 (the chosen preview pill). */.trx-arc-live{fill:none;stroke:var(--rx-clr, #39ff88);  stroke-width:4;stroke-linecap:round;  stroke-dasharray:100;stroke-dashoffset:100}.trx-tick{stroke:rgba(180,225,255,.55);stroke-width:2;stroke-linecap:round}.trx-tick.major{stroke:#cfe9ff;stroke-width:2.5}.trx-scale{fill:#8effc0;font:600 11px var(--mono,ui-monospace,monospace);  text-anchor:middle;dominant-baseline:middle}.trx-needle{  stroke:#ffe08a;stroke-width:3;stroke-linecap:round;  filter:drop-shadow(0 0 5px rgba(255,180,84,.75));  transform-box:view-box;transform-origin:110px 126px;  transform:rotate(-60deg);  transition:transform .1s cubic-bezier(.25,.9,.3,1);}.trx-hub{fill:#171b22;stroke:#4b5464;stroke-width:2}.trx-dial-cap{  display:flex;justify-content:space-between;align-items:center;gap:8px;  margin-top:2px;  font:600 9px/1 var(--mono,ui-monospace,monospace);  letter-spacing:1.4px;text-transform:uppercase;color:#5dff9c;}.trx-readout{color:#7c8763;font-size:12px;letter-spacing:1px;  font-variant-numeric:tabular-nums}/* the slim digital echo of the needle — js writes width %, theme colours it */.trx-track{  position:relative;height:7px;border-radius:4px;overflow:hidden;  background:rgba(255,255,255,.06);  border:1px solid rgba(255,255,255,.09);  box-shadow:inset 0 1px 2px rgba(0,0,0,.55);}.trx-track .fill{position:absolute;left:0;top:0;bottom:0;width:0%;border-radius:3px}/* BASE colours for the three fills and the idle bars. theme-z3poc repaints   all four with !important (its green/amber/red language), so these only   ever show on the other five themes — but without them the bars are   invisible there, because the ids carry no colour of their own. */#localSMeter{background:linear-gradient(90deg,#1e7a1e 0%,#2db82d 45%,#aacc00 65%,#f0a800 82%,#cc2200 100%)}#localVu{background:linear-gradient(90deg,#1e7a1e 0%,#22cc44 60%,#ddcc00 100%)}#localMicMeter{background:linear-gradient(90deg,#ff8a5c,#ff3b30)}.trx-stack{display:flex;flex-direction:column;gap:9px;min-width:0}.trx-row{display:flex;flex-direction:column;gap:3px;min-width:0}.trx-row-top{  display:flex;justify-content:space-between;gap:6px;align-items:baseline;  font:600 9px/1 var(--mono,ui-monospace,monospace);  letter-spacing:1.4px;text-transform:uppercase;color:#5dff9c;}.trx-row-val{color:#7c8763;font-size:10px;font-variant-numeric:tabular-nums}/* peak-hold marker on the VU (js writes left %) */.trx-peak{  position:absolute;top:0;bottom:0;width:2px;left:0;  background:#fff;box-shadow:0 0 6px rgba(255,255,255,.8);  transition:left .3s ease-out,opacity .3s linear;opacity:0;}/* MIC = a real LED ladder: the mask cuts the themed fill into segments, so   the colour still belongs to the active theme */.trx-ladder .fill{  -webkit-mask-image:repeating-linear-gradient(90deg,#000 0 7px,transparent 7px 10px);  mask-image:repeating-linear-gradient(90deg,#000 0 7px,transparent 7px 10px);}/* the five idle signal bars above the ON AIR banner (layout only — theme   paints .oled-bar) */.oled-bars{  position:relative;z-index:2;  display:flex;gap:3px;align-items:flex-end;justify-content:center;  margin-top:8px;height:12px;}.oled-bar{width:3px;border-radius:1.5px;opacity:.75;  background:linear-gradient(180deg,#22d3ee,#0ea5e9);  box-shadow:0 0 4px rgba(34,211,238,.4)}.oled-bar.b1{height:30%}.oled-bar.b2{height:55%}.oled-bar.b3{height:100%}.oled-bar.b4{height:55%}.oled-bar.b5{height:30%}/* ---------- 5. ON AIR banner (theme paints its colours) --------------- */.local-now-tx{  /* inset:auto RESETS the full-cover overlay in assets/z3poc.css (which     styles this class as a centred, display-filling panel). The banner must     sit at the bottom of the glass, not cover the whole screen — the old     card did this with inline styles, which is why it worked. */  inset:auto;  position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:4;  display:flex;flex-direction:row;flex-wrap:nowrap;  align-items:center;gap:6px;  max-width:calc(100% - 24px);  padding:3px 10px;border-radius:8px;  background:rgba(239,68,68,.2);border:1px solid rgba(239,68,68,.5);  font:600 8px/1.4 var(--mono,ui-monospace,monospace);  color:#fca5a5;text-transform:uppercase;letter-spacing:1px;  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.local-now-tx[hidden]{display:none}.local-now-tx.own{background:rgba(239,68,68,.32)}/* position:relative + auto offsets RESET z3poc.css's `.lnt-pulse`, which   parks this dot in the top-right corner of the display for the OLD   full-cover overlay — here it is an inline dot in the banner row. */.lnt-pulse{  position:relative;top:auto;right:auto;  width:7px;height:7px;flex:none;border-radius:50%;background:#ff5a52;  box-shadow:0 0 8px #ff5a52;animation:trxPulse 1s ease-in-out infinite;}.local-now-tx .lnt-time{font-variant-numeric:tabular-nums;opacity:.85}@keyframes trxPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}/* ---------- 6. controls: room picker, keys, knob, PTT ----------------- *//* .oled-row keeps flex-wrap — the 26.10 fix for the 90px sideways drag */.oled-row.trx-ctl{  position:relative;z-index:2;  display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;  min-width:0;margin-top:14px;}.oled-row.trx-ctl>*{min-width:0}.trx-select{display:flex;flex-direction:column;gap:5px;flex:1 1 190px;min-width:0}.trx-select label{  display:flex;align-items:center;gap:5px;  font:600 9px/1 var(--mono,ui-monospace,monospace);  letter-spacing:1.6px;text-transform:uppercase;color:#5dff9c;}.trx-input{  width:100%;min-width:0;  background:linear-gradient(180deg,#15261b,#0b1712);  border:1px solid #2f4a37;border-radius:8px;  padding:12px 12px;color:#e8edff;  font:500 13px var(--mono,ui-monospace,monospace);  box-shadow:inset 0 1px 2px rgba(0,0,0,.5);}.trx-input:focus-visible{outline:2px solid var(--trx-accent);outline-offset:1px}.trx-keys{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}.oled-btn{  background:linear-gradient(180deg,#1c2a20,#111a15);  border:1px solid #33513d;border-radius:9px;  padding:9px 12px;color:#e8edff;cursor:pointer;  font:600 10px/1 var(--mono,ui-monospace,monospace);  letter-spacing:1.2px;text-transform:uppercase;  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 4px rgba(0,0,0,.45);  transition:border-color .15s ease,transform .08s ease;}.oled-btn:hover{border-color:#4a7a5c}.oled-btn:active{transform:translateY(1px)}.oled-btn:focus-visible{outline:2px solid var(--trx-accent);outline-offset:1px}.oled-btn:disabled{opacity:.4;cursor:not-allowed}/* TTS: an icon button. z3poc.js toggles .is-on instead of writing an emoji,   so the glyph is CSS (crisper, themeable, and it stops changing size). */.trx-tts{display:inline-flex;align-items:center;justify-content:center;  width:38px;height:34px;padding:0}.trx-tts-ico{  position:relative;display:inline-block;width:14px;height:12px;  background:var(--trx-accent);  -webkit-mask:no-repeat center/contain no-repeat      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 5 6 9H2v6h4l5 4z'/><path d='M15.5 8.5a5 5 0 0 1 0 7'/><path d='M19 5.5a10 10 0 0 1 0 13'/></svg>");  mask:no-repeat center/contain no-repeat      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 5 6 9H2v6h4l5 4z'/><path d='M15.5 8.5a5 5 0 0 1 0 7'/><path d='M19 5.5a10 10 0 0 1 0 13'/></svg>");}/* muted = a slash across the cone; announcements ON removes it */.trx-tts-ico::after{  content:"";position:absolute;left:-2px;top:50%;width:20px;height:2px;  background:var(--trx-hot);transform:rotate(-45deg);border-radius:1px;}.trx-tts[aria-pressed="true"] .trx-tts-ico::after{display:none}/* VFO-style mic-gain knob. It drives the SAME value the #micGain slider   owns (localStorage z3MicGain, 0..300) through a real input event, so the   two never disagree. */.trx-knob-wrap{display:flex;flex-direction:column;align-items:center;gap:4px}.trx-knob{  position:relative;width:56px;height:56px;border-radius:50%;padding:0;  border:1px solid #333b49;cursor:grab;touch-action:none;  background:    repeating-conic-gradient(from 0deg,#20252e 0deg 4deg,#171b22 4deg 8deg),    radial-gradient(circle at 36% 30%,#2b323d,#12151b 72%);  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),             inset 0 -6px 12px rgba(0,0,0,.6),             0 4px 12px rgba(0,0,0,.55);}.trx-knob:active{cursor:grabbing}.trx-knob:focus-visible{outline:2px solid var(--trx-accent);outline-offset:2px}.trx-knob-ind{  position:absolute;left:50%;top:5px;width:3px;height:16px;border-radius:2px;  margin-left:-1.5px;background:var(--trx-accent);  box-shadow:0 0 7px var(--trx-accent);  transform-origin:50% 23px;  transform:rotate(var(--trx-knob,-45deg));}.trx-knob-lbl{  display:flex;align-items:center;justify-content:center;gap:4px;  font:600 8px/1 var(--mono,ui-monospace,monospace);  letter-spacing:1.4px;text-transform:uppercase;color:#5dff9c;}.trx-knob-val{font:600 10px/1 var(--mono,ui-monospace,monospace);  color:#e6f1ff;font-variant-numeric:tabular-nums}/* PTT — base skin (theme-z3poc repaints the key itself; it never sets   transform, so the travel and the ring are ours in every theme) */#localPtt{  position:relative;flex:1 1 100%;  min-height:56px;padding:12px 10px;  border-radius:12px;cursor:pointer;  background:linear-gradient(180deg,#3a1216,#1d0809);  border:1px solid #9b1c20;color:#fecaca;  font:700 13px/1 var(--mono,ui-monospace,monospace);  letter-spacing:2.5px;text-transform:uppercase;  box-shadow:0 6px 18px rgba(239,68,68,.25),inset 0 1px 0 rgba(254,202,202,.16);  transform:translateY(0);  transition:transform .07s ease,box-shadow .15s ease;}#localPtt:not(:disabled):active{transform:translateY(2px);  box-shadow:0 2px 8px rgba(239,68,68,.3),inset 0 2px 6px rgba(0,0,0,.55)}#localPtt[aria-pressed="true"]{transform:translateY(2px)}#localPtt:focus-visible{outline:2px solid var(--trx-accent);outline-offset:2px}#localPtt::after{  content:"";position:absolute;inset:-4px;border-radius:13px;  border:1px solid transparent;pointer-events:none;}#localPtt[aria-pressed="true"]::after{  border-color:rgba(255,90,82,.75);  animation:trxKeyRing 1.1s ease-in-out infinite;}@keyframes trxKeyRing{  0%,100%{box-shadow:0 0 0 0 rgba(255,60,40,.55)}  50%{box-shadow:0 0 0 7px rgba(255,60,40,0)}}/* listeners plate. The caption and the roster are SIBLINGS: z3poc.js   clears #localMembers with innerHTML='' on every roster update, so a label   inside the roster would be eaten by the first update. */.trx-members{  flex:1 1 100%;display:flex;gap:8px;align-items:center;min-width:0;  padding:7px 10px;border-radius:8px;  background:rgba(0,0,0,.28);border:1px dashed rgba(120,160,200,.22);}.trx-members-cap{  flex:none;display:flex;align-items:center;gap:5px;  font:600 10px/1 var(--mono,ui-monospace,monospace);  letter-spacing:1.6px;text-transform:uppercase;color:#5dff9c;opacity:.85;}.oled-members.local-members{  flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:5px;align-items:center;  min-height:16px;}/* caption under the card (theme paints .local-info) */.trx-caption{  margin:10px 2px 0;font-size:11px;line-height:1.5;color:#64748b;  text-transform:uppercase;letter-spacing:.5px;}/* ---------- 6b. icons — the shared set from lib/icons.php ---------------   Every icon is stroke + currentColor, so it always inherits the colour its   container already has (the active theme included). z3_icon() marks them   aria-hidden: the labels stay as text, the icons only make the row   scannable — a button never signals its state by colour alone. */.trx-ico{opacity:.85}.trx-cap{display:inline-flex;align-items:center;gap:5px}/* JOIN: the icon lives in ::before because z3poc.js rewrites this button's   textContent on every toggle and would swallow any child element. Geometry   is the `link` path from lib/icons.php, copied here so it can ship in CSS. */.trx-join{display:inline-flex;align-items:center;justify-content:center;gap:7px}.trx-join::before{  content:"";width:13px;height:13px;flex:none;background:currentColor;  -webkit-mask:no-repeat center/contain no-repeat      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/><path d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/></svg>");  mask:no-repeat center/contain no-repeat      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/><path d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/></svg>");  transition:transform .12s ease;}.trx-join:hover::before{transform:scale(1.12)}/* PTT: the mic icon is a real element beside the label (z3poc.js owns only   the label's text) — it breathes while transmitting, so ON AIR reads as an   ICON + motion + colour, never colour alone. */#localPtt{display:flex;align-items:center;justify-content:center;gap:8px}#localPtt .trx-ptt-ico{opacity:.9;transition:color .2s ease,transform .12s ease}#localPtt:not(:disabled):active .trx-ptt-ico{transform:scale(.92)}#localPtt[aria-pressed="true"] .trx-ptt-ico{  color:#ff9a90;animation:trxMicLive .9s ease-in-out infinite}#localPtt:disabled .trx-ptt-ico{opacity:.45}@keyframes trxMicLive{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}.local-now-tx .trx-ico{flex:none;opacity:.75}.trx-plate .trx-ico{opacity:.7;vertical-align:-2px}/* muted TTS: the slash already says it — dimming the cone says it twice */.trx-tts[aria-pressed="false"] .trx-tts-ico{opacity:.55}/* ---------- 7. responsive -------------------------------------------- */@media (max-width:560px){  .trx-instruments{grid-template-columns:1fr;gap:10px}  .oled-display{padding:12px}  .oled-display-frame{margin:12px 12px 0}  .oled-status-top{font-size:8px;letter-spacing:1px}  .trx-chassis{border-radius:12px}  .trx-keys{width:100%}  /* the knob stays 56px on purpose: its indicator's transform-origin is     measured from the knob centre, and a smaller knob would swing the mark     3px off the axle */}@media (max-width:380px){  .trx-rail{padding:8px 10px;gap:7px}  .trx-plate{letter-spacing:1.6px;padding:4px 7px}}/* ---------- 8. motion policy ----------------------------------------- */@media (prefers-reduced-motion:reduce){  .trx-needle,.trx-peak,.trx-halo,.trx-rail-line,  #localPtt,#localPtt::after,#localPtt .trx-ptt-ico,  .trx-chassis #pttBtn,.trx-chassis #pttBtn::after,.trx-chassis #pttBtn .z3i,  .oled-btn.on,.oled-btn.needs-restart,  .trx-join::before,.trx-tts-ico,.lnt-pulse{transition:none !important;    animation:none !important}}/* ---------- 9. BM — TRX-2: the second radio of the set (27.10.2026) -----   The BM card carries the same .trx-* / .oled-* classes as TRX-1, so   sections 1–7 style it wholesale — chassis, rail, plate, glass, dial,   VFO knob, key travel, responsive rules, the lot. This section only owns   what is BM's own:     · its ids (#pttBtn, #sMeter/#vuMeter/#micMeter, #recBtn, #micGain…)     · key states the DEFAULT theme only paints on the old .vintage-btn       (.act / .on / .needs-restart) — base twins for the other themes,       plus !important twins in theme-z3poc.css for the default one     · rail + halo states, read from the classes z3poc.js ALREADY toggles:       #listenBtn.on = audio flowing, #pttBtn.tx = transmitting. :has()       needs no JS at all; a browser without it just keeps the neutral       rail — nothing dies.   The ownership law from section 1 still holds: theme-z3poc repaints what   it owns with !important (chassis, glass, keys, .oled-btn.ptt, the three   meter ids), so the base colours below only ever show on the other five   themes — but without them the BM instruments would be invisible there. *//* base meter fills — the SAME gradients TRX-1 uses, so the two sets never   disagree. theme-z3poc paints these ids with !important (identical   values); mirrors the #localSMeter contract in section 4. */#sMeter{background:linear-gradient(90deg,#1e7a1e 0%,#2db82d 45%,#aacc00 65%,#f0a800 82%,#cc2200 100%)}#vuMeter{background:linear-gradient(90deg,#1e7a1e 0%,#22cc44 60%,#ddcc00 100%)}#micMeter{background:linear-gradient(90deg,#ff8a5c,#ff3b30)}/* lit key states: .act = the armed SET TG key, .on = START is streaming   (z3poc.js adds/removes .on), .needs-restart = the TG changed under a   live stream — amber pulse, the language the old .vintage-btn states had. */.bm-trx .oled-btn.act,.bm-trx .oled-btn.on{  background:linear-gradient(180deg,#12351d,#0a1f12);  border-color:#39ff88;color:#39ff88;  box-shadow:0 0 14px rgba(57,255,136,.25),inset 0 1px 0 rgba(255,255,255,.12)}.bm-trx .oled-btn.needs-restart{  border-color:rgba(255,210,74,.55);color:#ffd24a;  background:rgba(255,210,74,.08);  animation:bmNeeds 1s ease-in-out infinite}@keyframes bmNeeds{  0%,100%{box-shadow:0 0 0 0 rgba(255,210,74,.35)}  50%    {box-shadow:0 0 0 5px rgba(255,210,74,0)}}/* every BM key is a flex row so icon + label get the same rhythm */.bm-trx .oled-btn{display:inline-flex;align-items:center;  justify-content:center;gap:5px}.bm-trx .oled-btn .z3i{opacity:.85}.bm-trx .oled-btn input[type=checkbox]{  accent-color:var(--trx-accent,#39ff88);width:13px;height:13px;margin:0}/* rail + halo states — pure CSS, fed by the state classes JS already   writes (mirrors #localTxCard[data-state] on TRX-1, which JS drives) */#bmTxCard:has(#listenBtn.on) .trx-rail-line{opacity:.75}#bmTxCard:has(#pttBtn.tx) .trx-rail-line{  opacity:.95;  background:linear-gradient(90deg,transparent,var(--trx-hot),transparent)}#bmTxCard:has(#pttBtn.tx) .trx-halo{  box-shadow:0 0 calc(var(--trx-rx,0) * 40px) rgba(255,60,40,.6)}/* PTT — the machined key, identical to #localPtt. Scoped .trx-chassis   (1,1,0) to OUTRANK z3poc.css's id-only #pttBtn rules — the 220px round   housing AND its 72vw mobile square, which belong to the fallback   terminal's key — in every theme. The default theme's   `#localPtt,.oled-btn.ptt` !important paint then lands on top of THIS,   exactly as it does on TRX-1, and its .oled-btn.ptt.tx rule turns the key   red on transmit (JS toggles .tx, never aria-pressed, on this button). */.trx-chassis #pttBtn{  position:relative;flex:1 1 100%;width:auto;height:auto;  min-height:56px;padding:12px 8px;border-radius:10px;cursor:pointer;  display:flex;align-items:center;justify-content:center;gap:8px;  background:linear-gradient(180deg,#3a1216,#1d0809);  border:1px solid #9b1c20;color:#fecaca;  font:700 13px/1 var(--mono,ui-monospace,monospace);  letter-spacing:2.5px;text-transform:uppercase;  box-shadow:0 6px 18px rgba(239,68,68,.25),inset 0 1px 0 rgba(254,202,202,.16);  transform:translateY(0);  transition:transform .07s ease,box-shadow .15s ease}.trx-chassis #pttBtn:not(:disabled):active{transform:translateY(2px);  box-shadow:0 2px 8px rgba(239,68,68,.3),inset 0 2px 6px rgba(0,0,0,.55)}.trx-chassis #pttBtn:focus-visible{outline:2px solid var(--trx-accent);outline-offset:2px}.trx-chassis #pttBtn:disabled{opacity:.4;cursor:not-allowed;  filter:grayscale(.6) brightness(.7)}/* key ring while the key is down */.trx-chassis #pttBtn::after{content:"";position:absolute;inset:-4px;  border-radius:13px;border:1px solid transparent;pointer-events:none}.trx-chassis #pttBtn.tx{transform:translateY(2px)}.trx-chassis #pttBtn.tx::after{border-color:rgba(255,90,82,.75);  animation:trxKeyRing 1.1s ease-in-out infinite}/* the mic icon breathes while transmitting — icon + motion + colour, never   colour alone (the icon is a SIBLING of #pttText: JS owns only the text) */.trx-chassis #pttBtn .z3i{margin-right:0;opacity:.95;  transition:transform .12s ease}.trx-chassis #pttBtn:not(:disabled):active .z3i{transform:scale(.9)}.trx-chassis #pttBtn.tx .z3i{color:#ff9a90;  animation:bm-ico-breathe .9s ease-in-out infinite}@keyframes bm-ico-breathe{50%{opacity:.4;transform:scale(1.16)}}/* .ptt-wrap is a JS contract, not decoration: ensureTxChip() mounts the   TX-ceiling countdown (.ptx-timer) into pttBtn.closest('.ptt-wrap'). This   scope restyles it for the TRX row — full-width own line (z3poc.css's   column+center version would shrink the key), no margin, and the chip   stacks centred UNDER the key. */.bm-trx .trx-ctl .ptt-wrap{flex:1 1 100%;display:flex;flex-direction:column;  align-items:stretch;gap:6px;margin-top:0;min-width:0}.bm-trx .trx-ctl .ptt-wrap .ptx-timer{align-self:center;max-width:100%}/* REC: JS rewrites #recBtn.innerHTML WHOLE on every state change, so the   mic icon lives in ::before — the same trick TRX-1's JOIN uses. */.bm-trx #recBtn::before{content:"";width:11px;height:11px;display:inline-block;  flex:none;background:currentColor;  -webkit-mask:no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z'/><path d='M19 10v2a7 7 0 0 1-14 0v-2'/><path d='M12 19v3'/></svg>");  mask:no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z'/><path d='M19 10v2a7 7 0 0 1-14 0v-2'/><path d='M12 19v3'/></svg>")}/* the live PTT reason line under the key (MIC LIVE / ON AIR | TG …) */.bm-pttsub{margin-top:12px;min-height:16px;text-align:center;  font:600 11px/1.5 var(--mono,ui-monospace,monospace);  letter-spacing:1.2px;text-transform:uppercase;color:#5dff9c;opacity:.9}.bm-pttsub:empty{margin-top:0;min-height:0}/* TX-permission notes. The old class was .vintage-note (the default theme   repaints it); the markup now says .bm-note, so this base skin is the one   that shows — in every theme, on the same readable slate. */.bm-note{margin:10px 2px 2px;font-size:11px;line-height:1.55;  color:#93a5b8;text-align:center}.bm-note strong{color:#39ff88}.bm-note a{color:#f4c95d}/* ============================================================   SAY-NOW BLOCK (15.11.2026)   ------------------------------------------------------------   Its own panel under the transceiver, not a row squeezed into it.   Skin only: every id is still the one z3poc.js writes by, and the   block itself is shown/hidden by #localSayRow[hidden] exactly as   before. Chassis language of the card above: amber hairline, LCD   scan lines, monospace labels, one glowing action.   ============================================================ */.trx-sayblock{  --sb-line:rgba(255,176,58,.28);  margin:.55rem 0 .2rem;padding:.7rem .8rem .65rem;border:1px solid var(--sb-line);border-radius:10px;  background:    repeating-linear-gradient(to bottom,rgba(0,0,0,.16) 0 1px,transparent 1px 3px),    linear-gradient(180deg,rgba(255,176,58,.05),transparent 60%),#0a0b0e;  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.trx-sayblock[hidden]{display:none}.trx-sayblock-head{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-bottom:.5rem}.trx-sayblock-ico{display:inline-flex;color:var(--trx-accent,#ffb03a)}.trx-sayblock-t{margin:0;font:700 .78rem/1.2 var(--mono,ui-monospace);letter-spacing:.12em;  text-transform:uppercase;color:var(--trx-accent,#ffb03a)}.trx-sayblock-hint{font-size:.68rem;letter-spacing:.03em;color:#8b7a5c;margin-left:auto}.trx-sayblock-lbl{display:block;font:600 .64rem/1.4 var(--mono,ui-monospace);letter-spacing:.12em;  text-transform:uppercase;color:#8b7a5c;margin:0 0 .25rem}.trx-sayblock-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;  grid-template-areas:"label label" "field go";align-items:center}.trx-sayblock-line .trx-sayblock-lbl{grid-area:label}.trx-sayblock-field{grid-area:field;position:relative;display:flex;align-items:center}.trx-sayblock-in{  width:100%;padding-right:3.2rem!important;  background:rgba(0,0,0,.5);border:1px solid var(--sb-line);border-radius:7px;  color:#ffe9c2;font-size:.9rem}.trx-sayblock-in:focus{border-color:var(--trx-accent,#ffb03a);box-shadow:0 0 0 3px rgba(255,176,58,.14);outline:none}.trx-sayblock-in::placeholder{color:#7a6a4d}.trx-sayblock-count{  position:absolute;right:.5rem;pointer-events:none;  font:600 .64rem/1 var(--mono,ui-monospace);color:#7a6a4d;letter-spacing:.04em}.trx-sayblock-count.is-near{color:#ffd479}.trx-sayblock-count.is-full{color:#ff7b6b}.trx-sayblock-go{grid-area:go;display:inline-flex;align-items:center;gap:.35rem;  padding:.5rem .85rem;border-radius:7px;border:1px solid var(--trx-accent,#ffb03a);  background:var(--trx-accent,#ffb03a);color:#1a1204;font-weight:700;  font:700 .72rem/1 var(--mono,ui-monospace);letter-spacing:.1em;text-transform:uppercase;  cursor:pointer;box-shadow:0 0 20px -8px rgba(255,176,58,.9)}.trx-sayblock-go:hover:not(:disabled){filter:brightness(1.07)}.trx-sayblock-go:disabled{opacity:.35;cursor:not-allowed;box-shadow:none}.trx-sayblock-go .trx-ico{color:inherit}.trx-sayblock-chips{display:flex;flex-wrap:wrap;gap:.3rem;margin:.55rem 0 0}.trx-sayblock-chip{  border:1px dashed var(--sb-line);background:rgba(255,176,58,.05);color:#d9c39a;  border-radius:999px;padding:.26rem .6rem;cursor:pointer;text-align:left;  font:400 .72rem/1.25 inherit;transition:background .15s ease,border-color .15s ease,color .15s ease}.trx-sayblock-chip:hover{border-style:solid;border-color:var(--trx-accent,#ffb03a);  background:rgba(255,176,58,.13);color:#ffe9c2}.trx-sayblock-chip:focus-visible{outline:2px solid var(--trx-accent,#ffb03a);outline-offset:1px}.trx-sayblock-foot{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:.55rem;  padding-top:.5rem;border-top:1px solid rgba(255,176,58,.14)}.trx-sayblock-rec{display:inline-flex;align-items:center;gap:.3rem;font-size:.72rem}.trx-sayblock-note{font-size:.72rem;color:#8b7a5c;min-height:1em}.trx-sayblock-note.is-ok{color:#7dffb0}.trx-sayblock-note.is-err{color:#ff8a7a}@media(max-width:520px){  .trx-sayblock-line{grid-template-columns:1fr;grid-template-areas:"label" "field" "go"}  .trx-sayblock-go{width:100%;justify-content:center;padding:.6rem}  .trx-sayblock-hint{margin-left:0;width:100%}}