:root {
  --bg: #121413;
  --velvet: #0e0f12;
  --surface: #1a1c1b;
  --border: #2a2d2b;
  --gold: #ffb000;
  --gold-deep: #996a00;
  --gold-light: #ffd060;
  --text: #e0e2e0;
  --mute: #6b726a;
  --live: #ffb000;
  --danger: #e25b50;
  --btn: #ffb000;
  --btn-text: #121413;
  --ink: #121413;
  --lcd: #0a0b0a;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --r: 2px;
  --ease: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, sans-serif; height: 100%; height: var(--app-h, var(--tg-viewport-stable-height, 100%)); overflow: hidden; -webkit-font-smoothing: antialiased; }
html { color-scheme: dark; }
body { min-height: 100%; font-size: 13px; line-height: 1.35; }
.font-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.dot-grid { min-height: 100%; height: 100%; background: var(--bg); position: relative; }
.dot-grid::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.shell, .app-shell {
  max-width: none; width: 100%; margin: 0; height: 100%; min-height: 100%;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; overflow: hidden;
  padding: 0;
  background: var(--bg);
  box-shadow: none;
}
#app, #app > .dot-grid {
  height: 100%;
  height: var(--app-h, var(--tg-viewport-stable-height, 100%));
  min-height: 100%;
}
.font-display { font-family: "IBM Plex Mono", ui-monospace, monospace; font-style: normal; font-weight: 500; letter-spacing: 0.04em; }
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.label-caps {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500;
}
.gold-deep { color: var(--gold-deep); }
.mute { color: var(--mute); }
.gold { color: var(--gold); }

.status-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0;
  margin: 0; padding: max(48px, calc(16px + var(--sat))) 20px 16px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  flex: 0 0 auto; z-index: 10;
}
.status-row .brand-col {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.status-row .brand-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute); line-height: 1;
}
.status-row .brand {
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px; font-weight: 700; color: var(--text);
  letter-spacing: 0.16em; line-height: 1; text-transform: uppercase;
}
.status-row .status-live {
  min-width: 0; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}
.status-row .live-tag {
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: phosphor-flicker 4s infinite;
}
.status-row #live-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.vu { display: flex; align-items: flex-end; gap: 2px; height: 12px; width: 20px; flex: 0 0 auto; }
.vu i, .vu-bar {
  display: block; width: 3px; background: var(--gold); transform-origin: bottom;
  animation: vu-bounce 0.9s infinite ease-in-out alternate;
}
.vu i:nth-child(1), .vu-bar:nth-child(1) { height: 4px; animation-delay: -0.1s; }
.vu i:nth-child(2), .vu-bar:nth-child(2) { height: 8px; animation-delay: -0.4s; }
.vu i:nth-child(3), .vu-bar:nth-child(3) { height: 12px; animation-delay: -0.2s; }
.vu i:nth-child(4), .vu-bar:nth-child(4) { height: 12px; animation-delay: -0.6s; }
.dot { width: 6px; height: 7px; border-radius: 0; background: var(--live); flex: 0 0 auto; }
.dot.dead { background: var(--danger); animation: none; }
.pulse { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.4); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(255, 176, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0); }
}
@keyframes vu-bounce {
  0%, 100% { transform: scaleY(0.2); }
  30% { transform: scaleY(0.9); }
  50% { transform: scaleY(0.5); }
  80% { transform: scaleY(1); }
}
@keyframes phosphor-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
  55% { opacity: 0.95; }
}

.hero { text-align: center; margin-bottom: 12px; }
.hero.compact { text-align: left; margin: 2px 0 10px; padding: 0; }
.hero .amount {
  font-size: 36px; color: var(--gold); font-weight: 700; letter-spacing: -0.04em;
}
.hero.muted .amount { font-size: 28px; opacity: 0.5; }
.metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.metrics .glass { padding: 10px 8px; text-align: center; }
.metrics strong { font-size: 18px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-style: normal; font-weight: 500; color: var(--gold); }

.vis-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.app-stage {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; z-index: 1;
}
#view-home:not(.hidden),
#view-accounts:not(.hidden),
#view-tariffs:not(.hidden),
#view-pay:not(.hidden),
#view-ops:not(.hidden) {
  flex: 1; min-height: 0; overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none;
}
#view-home:not(.hidden)::-webkit-scrollbar,
#view-accounts:not(.hidden)::-webkit-scrollbar,
#view-tariffs:not(.hidden)::-webkit-scrollbar,
#view-pay:not(.hidden)::-webkit-scrollbar,
#view-ops:not(.hidden)::-webkit-scrollbar { display: none; }
#view-home:not(.hidden) {
  display: flex; flex-direction: column; overflow: hidden;
}
#view-accounts:not(.hidden),
#view-tariffs:not(.hidden),
#view-ops:not(.hidden) {
  padding: 16px 20px 20px;
  scroll-padding-bottom: 16px;
}
#view-pay:not(.hidden) {
  padding: 20px 20px 12px;
}
.home-stage {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8px 24px 16px; position: relative; z-index: 2;
  min-height: 0; overflow: hidden; isolation: isolate; background: var(--bg);
}
.home-stage::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 192px; height: 192px;
  transform: translate(-50%, -50%); background: rgba(224, 226, 224, 0.02); filter: blur(32px);
  border-radius: 50%; pointer-events: none; z-index: 0;
}
.station-kind {
  display: block; margin: 0 0 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
  position: relative; z-index: 1; flex: 0 0 auto;
}
.station-name {
  margin: 0; font-size: 20px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
  position: relative; z-index: 1; flex: 0 0 auto;
}
.home-clock {
  display: flex; justify-content: center; align-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(48px, 11vh, 76px); font-weight: 300; letter-spacing: 0; line-height: 1;
  color: var(--text); margin: clamp(8px, 2.2vh, 24px) 0 clamp(10px, 2.8vh, 28px);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(224, 226, 224, 0.15);
  position: relative; z-index: 1;
}
.home-clock .mm,
.home-clock .ss {
  letter-spacing: -0.05em;
  line-height: 1;
}
.home-clock .colon {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 0.22em;
  min-width: 0.22em;
  height: 0.36em;
  min-height: 0.36em;
  margin: 0 0.02em 0.04em;
  padding: 0;
  flex: 0 0 auto;
  animation: colon-blink 1.2s steps(1, end) infinite;
}
.home-clock .colon::before,
.home-clock .colon::after {
  content: "";
  display: block;
  width: 0.085em;
  height: 0.085em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px rgba(224, 226, 224, 0.2);
}
@keyframes colon-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.18; }
}
.lcd {
  background: var(--lcd);
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.9), inset 0 0 0 1px #151715;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.prize-readout {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px; margin: 0 auto clamp(12px, 3vh, 32px);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  position: relative; z-index: 1;
}
.prize-readout .cap { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.prize-readout .val { font-size: 14px; font-weight: 500; animation: phosphor-flicker 4s infinite; }
.home-stage .btn, .btn-action {
  letter-spacing: 0.15em; text-transform: uppercase; font-size: 15px; font-weight: 700;
  padding: 16px 12px; border-radius: 2px;
  background: var(--gold); color: #121413;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2), 0 0 20px rgba(255,176,0,0.15);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.home-stage .btn {
  position: relative; z-index: 2; width: 100%; flex: 0 0 auto;
}
.home-stage .btn:active, .btn-action:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.4), 0 0 10px rgba(255,176,0,0.15);
}

.tuner-strip {
  position: relative;
  z-index: 0;
  margin: 0;
  height: 110px;
  flex: 0 0 110px;
  padding: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tuner-strip .tuner-label {
  position: absolute; top: 10px; left: 20px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
}
.tuner-needle {
  position: absolute; top: auto; bottom: 0; left: 50%; width: 2px; height: 44px;
  background: var(--gold); transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.8); pointer-events: none; z-index: 1;
}
.tuner-needle::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--gold);
}
.tuner-dial {
  display: flex; align-items: flex-end; gap: 0;
  overflow-x: auto; scrollbar-width: none; padding: 18px 50% 8px;
  background-image:
    repeating-linear-gradient(to right, var(--border) 0, var(--border) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(to right, var(--mute) 0, var(--mute) 1px, transparent 1px, transparent 50px);
  background-size: 100% 8px, 100% 16px;
  background-position: bottom;
  background-repeat: repeat-x;
}
.tuner-dial::-webkit-scrollbar { display: none; }
.tuner-strip .wheel {
  flex: 0 0 auto; margin: 0 28px 0 0; padding: 0;
  background: transparent; border: 0; box-shadow: none;
  min-width: 64px; flex-direction: column; align-items: center; gap: 2px;
  opacity: 0.45;
}
.tuner-strip .wheel.live { opacity: 0.4; }
.tuner-strip .wheel.feat-slot { opacity: 0; pointer-events: none; }
.tuner-strip .wheel .meta { text-align: center; }
.tuner-strip .wheel h3 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.02em; white-space: nowrap;
}
.tuner-strip .wheel .kind { display: none; }
.tuner-strip .wheel .prize { display: none; }
.tuner-strip .wheel .side { text-align: center; }
.tuner-strip .wheel .eta { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 9px; color: var(--gold); }
.tuner-strip .chip, .tuner-strip .already-line { display: none; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 6px; padding: 0 2px;
}
.section-head h2 { margin: 0; }

.stack {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.stack > .glass,
.stack > .wheel,
.stack > .acc,
.stack > .ops-row,
.stack > .pay-method {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}
.stack > :last-child { border-bottom: 0; }

.wheel {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 6px; width: 100%; font-family: inherit; color: inherit;
  text-align: left; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: background var(--ease);
}
.stack > .wheel { margin-bottom: 0; }
.wheel:active { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.wheel.live {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--border));
  background-image: linear-gradient(90deg, rgba(255, 176, 0, 0.12), transparent 58%);
}
.stack > .wheel.live { background-image: linear-gradient(90deg, rgba(255, 176, 0, 0.12), transparent 70%); }
.wheel:disabled { cursor: default; }
.wheel .meta { min-width: 0; flex: 1; }
.wheel h3 {
  margin: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: inherit; font-style: normal; letter-spacing: 0.01em; line-height: 1.25;
}
.wheel .kind { color: var(--mute); font-weight: 500; margin-right: 5px; }
.wheel .prize { margin: 2px 0 0; font-size: 11px; color: var(--gold); font-weight: 600; }
.wheel .prize.dim { color: var(--mute); font-weight: 500; }
.wheel .side { flex: 0 0 auto; text-align: right; }
.wheel .eta { display: block; font-size: 11px; color: var(--mute); }
.already-line { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; color: var(--mute); }
.chip { display: inline-block; font-size: 9px; padding: 2px 8px; border-radius: 2px; font-weight: 600; white-space: nowrap; line-height: 1.2; }
.chip.live { background: var(--gold); color: var(--ink); }
.chip.already { background: transparent; color: var(--mute); font-weight: 500; padding: 0; }
.chip.stale { background: rgba(226, 91, 80, 0.16); color: var(--danger); }

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: var(--lcd);
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.9), inset 0 0 0 1px #151715;
}
.ledger > div {
  min-width: 0;
  text-align: center;
  padding: 9px 6px;
  border-right: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
}
.ledger > div:nth-child(2n) { border-right: 0; }
.ledger > div:nth-child(n+3) { border-bottom: 0; }
.ledger .val {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.ledger .val.serif {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-style: normal;
  font-weight: 500;
}
.ledger .cap {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.home-table {
  position: relative; z-index: 0; margin-bottom: 0; flex: 0 0 auto; overflow: hidden;
}
.home-table .wheel:last-child,
.home-table .empty-card { margin-bottom: 0; }
.ledger-block { margin-bottom: 12px; }
.ledger-block h2 { margin: 0 0 6px; padding: 0 2px; }
.lcd-bar { margin: 0; padding: 12px 16px; border-top: 1px solid #1a1c1b; flex: 0 0 auto; background: var(--bg); }
.lcd-strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.lcd-strip .sep { color: var(--gold-deep); }
.home-foot {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 11px; color: var(--mute); margin: 0;
}
.home-foot a { color: inherit; text-decoration: none; }
.home-foot a:hover { color: var(--gold); }
.home-foot .sep { color: var(--gold-deep); }

.alert { border-color: rgba(226, 91, 80, 0.35); background: rgba(226, 91, 80, 0.08); padding: 10px 12px; margin-bottom: 10px; }
.alert h3 { margin: 0 0 2px; font-size: 13px; color: var(--danger); font-weight: 600; overflow-wrap: anywhere; }
.alert p { margin: 0 0 8px; font-size: 12px; line-height: 1.35; color: var(--mute); }

.acc {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px; margin-bottom: 0;
}
.acc:last-of-type { margin-bottom: 0; }
.acc .name { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.acc.dead { border-color: rgba(226, 91, 80, 0.35); background: rgba(226, 91, 80, 0.08); }
.acc .line { margin: 2px 0 0; font-size: 11px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.receiver-rack { overflow: hidden; }
.receiver-live {
  border-left: 2px solid #34d399;
  background-image: linear-gradient(90deg, rgba(52, 211, 153, 0.06), transparent 55%);
}
.receiver-dead {
  flex-wrap: wrap;
  border-left: 2px solid var(--danger);
  background-image: linear-gradient(90deg, rgba(226, 91, 80, 0.08), transparent 55%);
}
.dot-rx {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
}
.dot-rx.live {
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  animation: rx-pulse 2s infinite;
}
.dot-rx.dead { background: var(--danger); }
@keyframes rx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.acc-mid { min-width: 0; flex: 1; }
.acc-top { display: flex; align-items: baseline; gap: 8px; }
.acc .ch {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.acc-resend { flex: 1 0 100%; width: 100%; margin-top: 8px; }
.occ-kicker {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 8px 0 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.occ-plan { color: var(--gold-deep); }
.occ-lcd {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 14px; margin-bottom: 10px;
}
.occ-lcd .cap { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-bottom: 6px; }
.occ-lcd .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 40px; font-weight: 300; letter-spacing: -0.06em; line-height: 1;
  animation: phosphor-flicker 4s infinite;
}
.occ-lcd .num .slash { opacity: 0.4; margin: 0 4px; }
.occ-lcd .sub {
  margin-top: 8px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep);
}
.rack-kicker {
  display: flex; justify-content: space-between; margin: 0 0 10px; padding: 0 2px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: 8px 0 8px;
}
.page-kicker {
  margin: 0 0 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.page-side {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep);
}

.btn {
  display: block; width: 100%; text-align: center; border: 0; border-radius: 2px;
  padding: 12px 12px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-primary {
  background: var(--btn); color: var(--btn-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.2), 0 0 16px rgba(255,176,0,0.18);
}
.btn-ghost { background: transparent; border: 1px solid var(--gold-deep); color: var(--gold); }
.btn-tight { margin-bottom: 8px; }

.plan-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.plan {
  padding: 12px 12px 10px; margin: 0; position: relative; overflow: hidden;
  text-align: left; cursor: pointer; width: 100%; font-family: inherit; color: inherit;
  min-height: 88px; display: flex; flex-direction: column; justify-content: space-between;
  gap: 6px;
  transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.plan:disabled { cursor: default; opacity: 0.48; }
.plan.featured {
  border-color: color-mix(in srgb, var(--gold) 50%, var(--border));
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%);
}
.plan.current {
  opacity: 1;
  background: linear-gradient(90deg, rgba(255,176,0,0.12) 0%, rgba(255,176,0,0.03) 42%, transparent 78%);
  box-shadow: inset 0 0 0 1px rgba(255,176,0,0.28), 0 0 28px rgba(255,176,0,0.08);
  border-color: rgba(255,176,0,0.4);
}
.plan.current:disabled { opacity: 1; }
.plan.locked { opacity: 0.42; }
.plan:disabled, .plan.locked { pointer-events: none; cursor: default; }
.plan .ch {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.plan.current .ch { color: var(--gold); }
.plan-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .air-tag {
  display: inline-flex; align-items: center; padding: 2px 6px;
  font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.tuner-ticks {
  height: 28px; margin: 4px 0 2px; opacity: 0.6;
  background-image:
    repeating-linear-gradient(to right, var(--border) 0, var(--border) 1px, transparent 1px, transparent 8px),
    repeating-linear-gradient(to right, rgba(107,114,106,0.55) 0, rgba(107,114,106,0.55) 1px, transparent 1px, transparent 40px);
  background-size: 100% 6px, 100% 12px;
  background-position: bottom;
  background-repeat: repeat-x;
}
.plan.current .tuner-ticks { opacity: 0.8; }
.plan.current .tuner-ticks { position: relative; }
.plan.current .tuner-ticks::after {
  content: ""; position: absolute; left: 28%; bottom: 0; width: 2px; height: 12px;
  background: var(--gold); transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(255,176,0,0.7);
}
.plan.current::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 28%; width: 2px;
  background: var(--gold); transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255,176,0,0.85);
  pointer-events: none;
}
.badge { position: absolute; top: 8px; right: 8px; font-size: 9px; padding: 3px 7px; border-radius: 2px; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.badge.now { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.badge.hot { background: var(--gold); color: var(--ink); }
.plan h4 { margin: 0; font-size: 14px; line-height: 1.15; font-family: Inter, sans-serif; font-style: normal; letter-spacing: 0.02em; font-weight: 600; text-transform: none; padding-right: 0; }
.plan .tagline {
  margin: 4px 0 0; font-size: 11px; line-height: 1.3; color: var(--mute); font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plan .slots { margin: 2px 0 0; font-size: 11px; color: var(--mute); font-weight: 500; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.plan.current .slots { color: var(--gold); }
.plan-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 2px; }
.price { font-size: 15px; font-weight: 500; color: var(--gold); letter-spacing: -0.02em; font-family: "IBM Plex Mono", ui-monospace, monospace; font-style: normal; }
.plan.locked .price { color: var(--mute); }
.plan .cta { font-size: 9px; font-weight: 500; color: var(--gold); white-space: nowrap; letter-spacing: 0.12em; text-transform: uppercase; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.plan.current .cta { color: var(--gold-deep); }
.plan .hint { margin: 0; font-size: 9px; line-height: 1.25; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.pay-lcd { justify-content: center; gap: 8px; margin-top: 8px; }
.note { font-size: 11px; color: var(--mute); text-align: center; margin-top: 10px; line-height: 1.4; }
.status-row .dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.page-title {
  font-size: 15px; margin: 0 0 2px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; line-height: 1.2;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.page-title.tariffs { font-size: 17px; margin: 0 0 2px; }
.page-lead { margin: 0 0 10px; font-size: 12px; line-height: 1.3; color: var(--mute); }
.stack > .acc.receiver-live { border-left: 2px solid #34d399; }
.stack > .acc.receiver-dead { border-left: 2px solid var(--danger); }

.ops-chips {
  display: flex; gap: 0; margin: 0 0 10px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
}
.ops-chips button {
  flex: 1; border: 0; background: transparent; color: var(--gold-deep);
  border-radius: 0; padding: 7px 2px; font-size: 10px; font-weight: 600; font-family: inherit; cursor: pointer;
  border-right: 1px solid var(--border);
}
.ops-chips button:last-child { border-right: 0; }
.ops-chips button.on { color: var(--ink); background: var(--gold); }
.ops-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.ops-board { padding: 2px 0; margin-bottom: 10px; }
.ops-board .ops-metrics { gap: 0; margin: 0; }
.ops-board .ops-metric {
  padding: 8px 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.ops-board .ops-metric:nth-child(2n) { border-right: 0; }
.ops-board .ops-metric:nth-child(n+5) { border-bottom: 0; }
.ops-metric { padding: 8px 10px; }
.ops-metric span { display: block; font-size: 9px; color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.ops-metric strong { font-size: 15px; color: var(--gold); }
.ops-row { padding: 9px 12px; margin-bottom: 6px; }
.ops-row h3 { margin: 0 0 2px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.ops-row .acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ops-row .acts .btn { width: auto; padding: 5px 9px; font-size: 11px; }
.field {
  width: 100%; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--lcd); color: inherit; font: inherit; margin: 0 0 6px;
}
textarea.field { min-height: 64px; resize: vertical; }
.ops-log { font-size: 11px; line-height: 1.35; color: var(--mute); max-height: 180px; overflow: auto; }
.ops-log div { padding: 5px 0; border-bottom: 1px solid var(--border); }

nav {
  position: relative; left: auto; transform: none;
  width: 100%; max-width: none; z-index: 40;
  flex: 0 0 auto;
  height: auto;
  min-height: 52px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 8px max(8px, var(--sab));
}
nav button {
  background: 0; border: 0; color: var(--mute);
  font-size: 9px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; font-family: "IBM Plex Mono", ui-monospace, monospace;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  flex: 1; width: auto; min-width: 0; padding: 0; border-radius: 0;
}
nav button.on { color: var(--gold); background: transparent; text-shadow: 0 0 8px rgba(255, 176, 0, 0.25); }
nav button svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
nav button.on svg { filter: drop-shadow(0 0 6px rgba(255, 176, 0, 0.35)); }

.how { padding: 10px 12px; margin: 10px 0 6px; }
.how > summary {
  cursor: pointer; font-size: 11px; font-weight: 500; list-style: none; color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.14em; text-transform: uppercase;
}
.how > summary::-webkit-details-marker { display: none; }
.how[open] > summary { margin-bottom: 8px; }
.how-lead { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: var(--text); }
.how-call {
  margin: 0 0 12px; padding: 8px 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: var(--lcd); border: 1px solid var(--border);
}
.how .steps p { color: var(--text); font-size: 13px; }

.login-box { padding: 12px; margin: 0 0 10px; }
.login-box label {
  display: block; margin: 8px 0 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.login-box label:first-of-type { margin-top: 0; }
.login-box .field { margin: 0 0 8px; min-height: 44px; }

.auth-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.28);
  overflow: hidden;
}
.auth-mode {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; color: var(--mute);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 8px; cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.auth-mode + .auth-mode { box-shadow: inset 1px 0 0 rgba(255,255,255,0.08); }
.auth-mode.on {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.auth-cookie .how-lead { margin: 0 0 8px; }
.auth-cookie .how-call {
  margin: 0 0 10px; font-size: 12px; line-height: 1.35; color: var(--gold-deep);
}
.auth-cookie .btn-primary { width: 100%; margin-top: 4px; }
.login-err {
  margin: 0 0 8px; color: var(--danger); font-size: 13px; line-height: 1.4;
}
.login-box .btn-primary { margin-top: 4px; }

.pay-method {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 14px 14px 16px; margin-bottom: 8px; cursor: pointer; text-align: left;
  width: 100%; font-family: inherit; color: inherit;
  appearance: none; -webkit-appearance: none;
  box-shadow: inset 3px 0 0 var(--gold);
  transition: background 180ms cubic-bezier(0.4, 0, 0.2, 1), border-color 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.pay-method:active {
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
}
.pay-method .pay-ico {
  width: 32px; height: 32px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--lcd); border: 1px solid var(--border); border-radius: 2px;
}
.pay-method .pay-ico svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.pay-method .pay-ico svg.fill { fill: var(--gold); stroke: none; }
.pay-method .mid { min-width: 0; flex: 1; }
.pay-method strong {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
  font-family: Inter, sans-serif;
}
.pay-method .ch-line {
  margin: 2px 0 0; font-size: 10px; color: var(--mute); letter-spacing: 0.12em;
  text-transform: uppercase; font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.pay-method .sub { margin: 0; font-size: 14px; color: var(--gold); font-weight: 500; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.pay-method .go { color: var(--gold-deep); font-size: 18px; flex: 0 0 auto; line-height: 1; }
.pay-pick-hero { margin: 8px 0 4px; padding: 24px 8px 8px; position: relative; }
.pay-pick-hero::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 224px; height: 160px;
  transform: translate(-50%, -50%); background: rgba(255, 176, 0, 0.04); filter: blur(40px);
  pointer-events: none;
}
.pay-pick-hero .amount {
  font-size: 64px; font-weight: 300; letter-spacing: -0.06em; line-height: 0.85;
  text-shadow: 0 0 18px rgba(255, 176, 0, 0.25);
  animation: phosphor-flicker 4s infinite; position: relative; z-index: 1;
}
.pay-pick-hero .pay-plan {
  margin: 16px 0 0; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
}
.pay-pick-hero .pick-hint {
  margin: 12px 0 0; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--mute);
}
.pay-pick .pay-ttl { margin-top: 20px; }
.back-plans {
  display: block; text-align: center; margin: 20px 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); background: 0; border: 0; cursor: pointer; width: 100%;
}
.acc-drop {
  flex: 0 0 auto; border: 0; background: 0; color: var(--mute);
  font-size: 10px; font-weight: 500; cursor: pointer; font-family: "IBM Plex Mono", ui-monospace, monospace;
  padding: 4px 0; letter-spacing: 0.12em; text-transform: uppercase;
}

.empty { color: var(--mute); font-size: 13px; padding: 6px 2px; }
.empty-card { padding: 16px 14px; }
.empty-card .empty { margin: 0; padding: 0; }
.hidden { display: none !important; }
.err { color: var(--danger); font-size: 12px; margin-bottom: 10px; }

.steps { margin: 10px 0 12px; padding: 0; list-style: none; }
.steps li { display: flex; gap: 8px; margin-bottom: 6px; align-items: flex-start; }
.steps span {
  flex: 0 0 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(167,139,113,0.45); color: var(--gold);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps p { margin: 0; font-size: 12px; line-height: 1.35; color: var(--mute); }
.steps code { font-size: 11px; }
.why { padding: 10px 12px; margin: 0 0 12px; }
.how .steps { margin: 0 0 8px; }
.how .why { margin: 0; }
.why h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--gold); }
.why ul { margin: 0; padding: 0; list-style: none; }
.why li {
  position: relative; padding-left: 10px; margin: 0 0 4px;
  font-size: 12px; line-height: 1.35; color: var(--mute);
}
.why li:last-child { margin-bottom: 0; }
.why li::before { content: "·"; position: absolute; left: 0; color: var(--gold); }

.qr-wrap {
  background: #fff; border-radius: 12px; padding: 12px;
  width: 188px; height: 188px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.qr-wrap img, .qr-wrap canvas, .qr-wrap table { width: 164px !important; height: 164px !important; }
.pay-hero { text-align: center; margin: 0 0 12px; }
.pay-hero .amount {
  font-size: 36px; color: var(--gold); font-weight: 300; letter-spacing: -0.04em; cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.pay-hero.pay-pick-hero .amount {
  font-size: 64px; font-weight: 300; letter-spacing: -0.06em; line-height: 0.85;
  text-shadow: 0 0 18px rgba(255, 176, 0, 0.25);
  animation: phosphor-flicker 4s infinite; cursor: default;
}
.pay-clock {
  font-size: 15px; font-weight: 500; color: var(--gold); letter-spacing: 0.12em; margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  animation: phosphor-flicker 2s infinite;
}
.pay-wait { margin: 4px 0 0; font-size: 9px; color: var(--mute); line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.pay-stack { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pay-wait-screen { display: flex; flex-direction: column; min-height: calc(100vh - 168px); }
.pay-wait-screen .pay-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 4px 4px 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.pay-wait-screen .pay-meta .ch { color: var(--gold-deep); }
.pay-wait-screen .pay-hero {
  position: relative; margin: 18px 0 8px; padding: 8px 8px 4px;
}
.pay-wait-screen .pay-hero::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 220px; height: 140px;
  transform: translate(-50%, -50%); background: rgba(255, 176, 0, 0.04); filter: blur(40px);
  pointer-events: none;
}
.pay-wait-screen .pay-stars {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; z-index: 1;
}
.pay-wait-screen .pay-stars .amount {
  font-size: 56px; font-weight: 300; letter-spacing: -0.06em; line-height: 0.85;
  text-shadow: 0 0 18px rgba(255, 176, 0, 0.25);
  animation: phosphor-flicker 4s infinite; cursor: default;
}
.pay-wait-screen .pay-stars .star {
  width: 36px; height: 36px; fill: var(--gold); flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(255, 176, 0, 0.35));
}
.pay-wait-screen .pay-plan {
  position: relative; z-index: 1; margin: 16px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
}
.pay-wait-screen .pay-method-line {
  position: relative; z-index: 1; margin: 6px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.pay-ttl {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 20px auto 0; padding: 8px 16px;
  background: var(--lcd);
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.9), inset 0 0 0 1px #151715;
  border: 1px solid var(--border); border-radius: var(--r);
  color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.pay-ttl .cap { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.pay-signal {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 4px 0; padding: 14px 16px;
  background: var(--lcd);
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.9), inset 0 0 0 1px #151715;
  border: 1px solid var(--border); border-radius: 4px;
}
.pay-signal .vu { height: 16px; width: 20px; }
.pay-signal .copy { min-width: 0; flex: 1; }
.pay-signal .title {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
  animation: phosphor-flicker 4s infinite;
}
.signal-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: 0 0 auto;
  box-shadow: 0 0 6px rgba(255, 176, 0, 0.5);
  animation: signal-scan 1.6s infinite ease-in-out;
}
@keyframes signal-scan {
  0%, 100% { opacity: 0.4; }
  40% { opacity: 1; }
  60% { opacity: 0.7; }
}
.pay-band {
  display: flex; align-items: center; gap: 10px; margin: 22px 4px 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.pay-band .tick {
  flex: 1; height: 8px; opacity: 0.5;
  background-image:
    repeating-linear-gradient(to right, var(--border) 0, var(--border) 1px, transparent 1px, transparent 10px);
  background-position: center;
  background-repeat: repeat-x;
}
.pay-band .ch { color: var(--gold-deep); }
.pay-wait-screen .btn-primary {
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 12px; margin: 0 4px;
}
.pay-wait-screen .btn-primary svg,
.pay-wait-screen .pay-stack .btn-ghost svg {
  width: 16px; height: 16px; flex: 0 0 auto;
}
.pay-wait-screen .btn-primary svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.pay-wait-screen .pay-stack { margin: 10px 4px 0; gap: 8px; }
.pay-wait-screen .pay-stack .btn-ghost {
  border-color: var(--border); color: var(--text);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 12px;
}
.pay-wait-screen .pay-stack .btn-ghost svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pay-wait-screen .pay-stack .btn-ghost.mute { color: var(--mute); }
.pay-wait-screen .note { margin-top: auto; padding: 24px 8px 8px; }
.metric-label {
  display: block; margin-bottom: 4px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; color: var(--mute);
}
.pay-id { font-size: 12px; word-break: break-all; }
.pay-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 6px; cursor: pointer; text-align: left;
  width: 100%; font-family: inherit; color: inherit;
}
.pay-val { font-size: 13px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.pay-row .hint { font-size: 11px; color: var(--gold); flex: 0 0 auto; white-space: nowrap; }

#gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
#gate .shell { padding-top: 48px; text-align: center; }
#gate h1 { font-size: 22px; margin: 0 0 8px; }
#app.hidden, #gate.hidden { display: none; }

.shell.subpage { overflow-y: auto; height: 100%; }
.shell.subpage .app-main { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 12px; }
.subpage nav.dock {
  position: relative; left: auto; transform: none;
  height: auto; min-height: 52px; flex: 0 0 auto;
}
.subpage h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.subpage .lead { color: var(--mute); font-size: 12px; line-height: 1.35; margin: 0 0 14px; }
.subpage details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 10px 12px; margin-bottom: 8px;
}
.subpage summary { cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.subpage summary::-webkit-details-marker { display: none; }
.subpage details[open] summary { margin-bottom: 6px; }
.subpage details p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--mute); }
.subpage .handle { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.subpage .hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--mute); }
.subpage .card { padding: 14px 14px; }
.subpage a:not(.btn) { color: var(--gold); text-decoration: none; }
a.btn { text-decoration: none; margin-top: 14px; background: var(--btn); color: var(--btn-text); }

.sub-top {
  display: flex; justify-content: space-between; align-items: center;
  margin: 4px 0 16px;
}
.sub-top a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.sub-top a.dim { font-size: 10px; color: var(--gold-deep); }
.qsl {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; margin-bottom: 16px;
}
.qsl .cap { display: block; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.qsl .title { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; }
.qsl .ch { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.5; }
.freq-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold-deep);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.subpage details.freq-card {
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold-deep);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.freq-card::before,
.subpage details.freq-card::before { display: none; }
.freq-card .row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px;
}
.freq-card h2 {
  margin: 0; font-size: 12px; font-weight: 500; color: var(--mute); line-height: 1.35;
}
.freq-card summary {
  display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none;
  font-size: 12px; font-weight: 500; color: var(--mute); line-height: 1.3;
}
.freq-card summary::-webkit-details-marker { display: none; }
.freq-card .fn {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.1em; color: var(--gold-deep); flex: 0 0 auto;
}
.freq-card[open] summary { margin-bottom: 8px; color: var(--text); }
.freq-card p { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.45; color: var(--text); }
.subpage .freq-card p { color: var(--text); }
.freq-card .kw { color: var(--gold); font-weight: 600; }
.sub-foot {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin: 20px 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.sub-foot a { color: inherit; }
.sub-foot .sep { color: var(--gold-deep); }

.ops-strip {
  height: 24px; margin: 0 -12px; border-bottom: 1px solid var(--border); position: relative;
  background-image: repeating-linear-gradient(to right, var(--border) 0, var(--border) 1px, transparent 1px, transparent 10px);
  background-position: center; background-repeat: repeat-x; background-size: 100% 8px;
}
.ops-strip span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--bg); padding: 0 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute);
}
.desk { padding: 32px 4px 8px; }
.desk-kind {
  display: block; margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.desk h1 {
  margin: 0 0 24px; font-size: 22px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; font-family: Inter, sans-serif;
}
.desk .lead { font-size: 14px; line-height: 1.5; color: var(--mute); margin: 0 0 40px; max-width: 280px; }
.desk a.handle {
  display: block; text-align: center; margin: 16px 0 40px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.08em; color: var(--mute);
}
.rx-lcd { padding: 14px 16px; margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; }
.rx-lcd .cap { display: block; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.rx-lcd .val {
  display: block; margin-top: 4px; font-size: 13px; font-weight: 500;
  animation: signal-scan 2.4s ease-in-out infinite;
}
.desk-notes { border-top: 1px solid var(--border); padding-top: 24px; }
.desk-note { display: flex; gap: 12px; margin-bottom: 12px; }
.desk-note .n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); padding-top: 2px;
}
.desk-note p { margin: 0; font-size: 12px; line-height: 1.35; color: var(--mute); }
.desk .faq-link {
  display: inline-flex; margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.subpage .btn-primary { letter-spacing: 0.16em; text-transform: uppercase; font-size: 15px; padding: 16px 12px; }
.subpage nav.dock {
  position: relative; left: auto; transform: none;
  width: 100%; max-width: none;
  height: auto; min-height: 52px; flex: 0 0 auto;
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 8px max(8px, var(--sab));
}
.subpage nav.dock a {
  color: var(--mute); text-decoration: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 52px; padding: 4px;
}
.subpage nav.dock svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }

