/* Tactical — cyan instrument glass and precise HUD edges, guided by the user's
   two dashboard references. This appearance owns paint only. Classic's layout,
   console-height calculation, breakpoints, pane positions, spacing and controls
   stay authoritative. No reference charts or invented telemetry are reproduced. */
html[data-appearance=tactical] {
  --appearance-line:#62def24d;
  --appearance-control-line:#62def25c;
  --tactical-heading:"Bahnschrift SemiCondensed","DIN Alternate","Arial Narrow",system-ui,sans-serif;
  --tactical-cap-ink:#a5f2fa99;

}

/* A quiet graph-paper field replaces the scenic sky. All texture is CSS, not
   an image download or a moving instrument that could imply received data. */
html[data-appearance=tactical] body.station-page {
  background:
    radial-gradient(ellipse at 50% 18%,#0b34496b,transparent 66%),
    linear-gradient(#62def20b 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg,#62def20b 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(#62def20b 1px,transparent 1px) 0 0/120px 120px,
    linear-gradient(90deg,#62def20b 1px,transparent 1px) 0 0/120px 120px,
    #04111b!important;
  background-attachment:fixed!important;
  color:var(--appearance-ink)!important;
}
html[data-appearance=tactical] body.station-page :is(.ambient,#surface-scene,#signal-field,.page-pulse,#waterfall-spill) {
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Corner caps live in existing backgrounds: no pseudo-element can overlap a
   menu, intercept input, add content, change a box size, or clip a focus ring. */
html[data-appearance=tactical] body.station-page .workspace>.station-column>.panel,
html[data-appearance=tactical] body.station-page .workspace>.decoder-panel,
html[data-appearance=tactical] body.station-page .workspace>.chat {
  --tactical-corners:
    linear-gradient(var(--tactical-cap-ink),var(--tactical-cap-ink)) left top/22px 1px no-repeat,
    linear-gradient(var(--tactical-cap-ink),var(--tactical-cap-ink)) left top/1px 22px no-repeat,
    linear-gradient(var(--tactical-cap-ink),var(--tactical-cap-ink)) right top/22px 1px no-repeat,
    linear-gradient(var(--tactical-cap-ink),var(--tactical-cap-ink)) right top/1px 22px no-repeat,
    linear-gradient(var(--tactical-cap-ink),var(--tactical-cap-ink)) left bottom/22px 1px no-repeat,
    linear-gradient(var(--tactical-cap-ink),var(--tactical-cap-ink)) left bottom/1px 22px no-repeat,
    linear-gradient(var(--tactical-cap-ink),var(--tactical-cap-ink)) right bottom/22px 1px no-repeat,
    linear-gradient(var(--tactical-cap-ink),var(--tactical-cap-ink)) right bottom/1px 22px no-repeat;
  background:var(--tactical-corners),linear-gradient(155deg,#0c3042,#061722 72%)!important;
  border-color:var(--appearance-line)!important;
  border-radius:4px;
  box-shadow:inset 0 0 22px #35bad20b,0 0 10px #36d7ff0a;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* Header and the two existing radio bars remain exactly where they are. */
html[data-appearance=tactical] body.station-page>header {
  background:linear-gradient(180deg,#09202eee,#04111bee)!important;
  box-shadow:inset 0 -1px #62def229;
}
html[data-appearance=tactical] body.station-page>header :is(.transport,.view-controls,nav) {
  background:transparent!important;
}
html[data-appearance=tactical] body.station-page>header .wordmark {
  color:#b5f2ff;
  text-shadow:0 0 14px #62def242;
}
html[data-appearance=tactical] body.station-page>:is(#dmr-dashboard,#mesh-bar) {
  background:linear-gradient(90deg,#0b2c3e,#061722)!important;
  border-color:var(--appearance-line)!important;
  border-radius:3px;
  box-shadow:inset 3px 0 #62def282,inset 0 1px #a5f2ff0a;
  backdrop-filter:none;
}

/* Preserve established font sizes and line heights; only the short instrument
   titles use a compact technical face. Long labels and reading text stay native. */
html[data-appearance=tactical] body.station-page :is(#station-title,#decoder-title,#communicator-title,.radio-health h2,.instrument-section h3) {
  font-family:var(--tactical-heading);
  font-weight:650;
  color:var(--appearance-ink)!important;
  text-shadow:0 0 12px #62def21a;
}
html[data-appearance=tactical] body.station-page .freq {
  color:#b5f2ff!important;
  font-variant-numeric:tabular-nums slashed-zero;
  text-shadow:0 0 16px #62def224;
}
html[data-appearance=tactical] body.station-page :is(.decoder-heading,.chat-heading,.instrument-section>.heading) {
  background:transparent!important;
  box-shadow:0 1px #62def21a;
}
html[data-appearance=tactical] body.station-page :is(.section-label,.rx-label,.sdr-meter-label,#decoder-mode-badge) {
  color:#b5f2ff!important;
}

/* Protected reading planes, not translucent scenery behind text. */
html[data-appearance=tactical] body.station-page :is(#transcript,.chatspace,.notearea,.sdr-meter,.review,.source-journey) {
  background:#04121d!important;
  border-color:var(--appearance-line)!important;
  border-radius:3px;
  box-shadow:inset 0 0 0 1px #62def21c;
  scrollbar-color:#477a8c #04121d;
}
html[data-appearance=tactical] body.station-page :is(.health,.rtl-controls) {
  border-color:#62def229;
}
html[data-appearance=tactical] body.station-page :where(.workspace,#dmr-dashboard,#mesh-bar,dialog:not(#radiance-appearance-dialog)) :is(button,input,textarea,select,summary,.tag,.mesh-lab-link),
html[data-appearance=tactical] body.station-page #decoder-mode-badge {
  border-radius:3px;
}
html[data-appearance=tactical] body.station-page :where(.workspace,#dmr-dashboard,#mesh-bar,dialog:not(#radiance-appearance-dialog)) :is(button,.mesh-lab-link) {
  background:#0a2939!important;
  background-image:none!important;
  color:var(--appearance-ink)!important;
  border-color:var(--appearance-control-line)!important;
  box-shadow:inset 0 0 0 1px #62def233;
  text-shadow:none;
}
html[data-appearance=tactical] body.station-page :where(.workspace,#dmr-dashboard,#mesh-bar,dialog:not(#radiance-appearance-dialog)) :is(button:not(:disabled),.mesh-lab-link):hover {
  background:#123e50!important;
  box-shadow:inset 0 0 0 1px #62def28c;
}
html[data-appearance=tactical] body.station-page :where(.workspace,#dmr-dashboard,#mesh-bar,dialog:not(#radiance-appearance-dialog)) :is(.primary,#dmr-dashboard-play,#dmr-dashboard-quiet) {
  background:var(--appearance-accent)!important;
  color:var(--appearance-bg)!important;
  box-shadow:inset 0 0 0 1px #b5f2ff80;
}
html[data-appearance=tactical] body.station-page :where(.workspace,#dmr-dashboard,#mesh-bar,dialog:not(#radiance-appearance-dialog)) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea,select) {
  background:#04111b!important;
  color:var(--appearance-ink)!important;
  border-color:var(--appearance-control-line)!important;
  box-shadow:inset 0 0 0 1px #62def22b;
}

/* Opaque transient UI and explicit selected states remain keyboard-readable. */
html[data-appearance=tactical] body.station-page :is(#mode-menu,.config-window,.dmr-picker-panel,.chat-actions>div,dialog:not(#radiance-appearance-dialog)) {
  background:#071c2a!important;
  color:var(--appearance-ink)!important;
  border-color:#62def266!important;
  border-radius:4px;
  box-shadow:0 16px 36px #0009,inset 0 0 0 1px #62def238;
}
html[data-appearance=tactical] body.station-page .station-setup-dialog [role=tab][aria-selected=true] {
  background:var(--appearance-accent)!important;
  color:var(--appearance-bg)!important;
}
html[data-appearance=tactical] body.station-page #mode-menu [role=menuitemradio][aria-checked=true],
html[data-appearance=tactical] body.station-page .dmr-picker-panel [data-groups] button[aria-pressed=true] {
  background:#164353!important;
  color:var(--appearance-ink)!important;
  box-shadow:inset 3px 0 var(--appearance-accent);
}
html[data-appearance=tactical] body.station-page>header :is(nav [aria-current],#focus-toggle[aria-pressed=true]) {
  color:#b5f2ff!important;
  box-shadow:inset 0 -2px #62def2!important;
}
html[data-appearance=tactical] body.station-page>header .transport>span::after {
  background:#071c2a;
  color:var(--appearance-ink);
  border-color:#62def266;
  border-radius:3px;
}

/* Focus removes the decorative grid and glow without changing a pane or data.
   No new animation is introduced; Motion and reduced-motion keep their contract.
   Waterfall canvases, meters and operational LEDs retain their signal colors. */
html[data-appearance=tactical] body.station-page.focus-mode {
  background:#04111b!important;
}
html[data-appearance=tactical] body.station-page.focus-mode .workspace>.station-column>.panel,
html[data-appearance=tactical] body.station-page.focus-mode .workspace>.decoder-panel,
html[data-appearance=tactical] body.station-page.focus-mode .workspace>.chat {
  --tactical-cap-ink:#62def270;
  background:var(--tactical-corners),#081f2f!important;
  box-shadow:none;
}
html[data-appearance=tactical] body.station-page.focus-mode :is(.wordmark,.freq,#station-title,#decoder-title,#communicator-title,.radio-health h2,.instrument-section h3) {
  text-shadow:none;
}
