:root {
  /* Brand foundation */
  --buoyiq-bg: #030712;
  --buoyiq-bg-deep: #06101d;
  --buoyiq-surface: #0b1726;
  --buoyiq-surface-2: #102033;

  /* Primary signal colors */
  --buoyiq-cyan: #35e7ff;
  --buoyiq-electric: #00b7ff;
  --buoyiq-azure: #3a86ff;
  --buoyiq-ice: #e6fbff;

  /* Hidden 70s edge glow */
  --buoyiq-amber: #ff9a3d;
  --buoyiq-gold: #ffc15a;
  --buoyiq-violet: #7d6bff;

  /* Structural colors */
  --buoyiq-steel: #7e95ac;
  --buoyiq-chrome: #c9d8e8;
  --buoyiq-border: rgba(53, 231, 255, 0.22);
  --buoyiq-border-strong: rgba(53, 231, 255, 0.4);

  /* Typography */
  --buoyiq-text: #ecfaff;
  --buoyiq-text-muted: #91a8bb;
  --buoyiq-text-dim: #63778b;

  /* Core gradients */
  --buoyiq-gradient-bg:
    radial-gradient(circle at 50% 35%, rgba(53, 231, 255, 0.12), transparent 22%),
    radial-gradient(circle at 78% 28%, rgba(255, 154, 61, 0.09), transparent 18%),
    radial-gradient(circle at 20% 70%, rgba(58, 134, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #030712 100%);

  --buoyiq-gradient-signal: linear-gradient(
    90deg, #35e7ff 0%, #00b7ff 45%, #ff9a3d 100%
  );

  --buoyiq-gradient-logo-text: linear-gradient(
    180deg, #f4feff 0%, #a7f3ff 20%, #35e7ff 45%, #00b7ff 78%, #8edfff 100%
  );

  /* Glow system */
  --buoyiq-glow-core:
    0 0 8px rgba(53, 231, 255, 0.9),
    0 0 20px rgba(53, 231, 255, 0.55),
    0 0 42px rgba(0, 183, 255, 0.3);

  --buoyiq-glow-ring:
    0 0 10px rgba(53, 231, 255, 0.45),
    0 0 24px rgba(0, 183, 255, 0.22);

  --buoyiq-glow-warm:
    0 0 10px rgba(255, 154, 61, 0.35),
    0 0 20px rgba(255, 193, 90, 0.18);

  --buoyiq-shadow-panel: 0 18px 50px rgba(0, 0, 0, 0.45);
  --buoyiq-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);

  /* Layout */
  --buoyiq-radius-sm: 10px;
  --buoyiq-radius-md: 18px;
  --buoyiq-radius-lg: 28px;

  /* Fonts */
  --buoyiq-font-display: "Orbitron", "Rajdhani", "Eurostile", sans-serif;
  --buoyiq-font-body: "Inter", "Segoe UI", sans-serif;

  --buoyiq-track: 0.08em;
  --buoyiq-track-wide: 0.16em;

  --max-width: 1480px;
}

/* ===== base ===== */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--buoyiq-text);
  font-family: var(--buoyiq-font-body);
  background: var(--buoyiq-gradient-bg);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--buoyiq-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  color: var(--buoyiq-steel);
}

.muted { color: var(--buoyiq-text-dim); font-size: 0.88rem; }

/* ===== app width ===== */

.topbar, main, .footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}
main { padding: 24px 0 48px; }
.view { display: none; }
.view.active { display: block; }

/* ===== topbar ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  background: rgba(3, 7, 18, 0.93);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(53, 231, 255, 0.1);
  overflow: hidden;
}

/* Subtle RF grid texture — only visible in the right-side negative space */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(53, 231, 255, 0.022) 1px, transparent 1px),
    linear-gradient(0deg, rgba(53, 231, 255, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,0.6) 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,0.6) 80%, transparent 100%);
  z-index: 0;
}

/* Slow horizontal telemetry sweep */
.topbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(53, 231, 255, 0.018), transparent);
  animation: rf-sweep 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rf-sweep {
  0%   { left: -35%; }
  100% { left: 130%; }
}

/* ===== brand system identity ===== */

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Left accent rail + logo mark */
.brand-crest {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* Thin cyan accent rail — the "system is live" indicator */
.brand-crest::before {
  content: "";
  display: block;
  width: 3px;
  height: 44px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--buoyiq-cyan) 0%, rgba(53, 231, 255, 0.15) 100%);
  box-shadow: 0 0 8px rgba(53, 231, 255, 0.4);
  flex-shrink: 0;
}

.brand-crest-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.82;
  border-radius: 6px;
  display: block;
}

/* Vertical separator between crest and text */
.brand-divider {
  width: 1px;
  height: 40px;
  background: rgba(53, 231, 255, 0.14);
  margin: 0 16px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand-name {
  font-family: var(--buoyiq-font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  background: var(--buoyiq-gradient-logo-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-descriptor {
  font-size: 0.68rem;
  color: var(--buoyiq-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  white-space: nowrap;
}

/* buoyIQ engine status line */
.brand-engine-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.brand-engine-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--buoyiq-cyan);
  box-shadow: 0 0 6px rgba(53, 231, 255, 0.9);
  animation: engine-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes engine-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(53,231,255,0.9); }
  50%       { opacity: 0.3; box-shadow: 0 0 2px rgba(53,231,255,0.2); }
}

.brand-engine-label {
  font-size: 0.64rem;
  color: rgba(53, 231, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.brand-engine-state {
  font-size: 0.64rem;
  color: rgba(53, 231, 255, 0.85);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
  margin-top: 3px;
}

/* ===== tabs — tactical segmented style ===== */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.tab {
  appearance: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  padding: 8px 11px 7px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  color: var(--buoyiq-text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
  white-space: nowrap;
  font-family: var(--buoyiq-font-body);
}

.tab:hover {
  background: rgba(53, 231, 255, 0.05);
  color: var(--buoyiq-chrome);
  border-bottom-color: rgba(53, 231, 255, 0.18);
}

.tab.active {
  color: var(--buoyiq-cyan);
  background: rgba(53, 231, 255, 0.07);
  border-bottom-color: var(--buoyiq-cyan);
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(53, 231, 255, 0.06);
}

/* ===== status ===== */

.topbar-right { display: flex; align-items: center; gap: 10px; justify-self: end; position: relative; z-index: 1; }

.status-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--buoyiq-cyan);
  box-shadow: var(--buoyiq-glow-core);
}
.status-dot.ok   { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.6); }
.status-dot.warn { background: var(--buoyiq-amber); box-shadow: var(--buoyiq-glow-warm); }
.status-dot.err  { background: #ff5d6c; box-shadow: 0 0 8px rgba(255,93,108,0.6); }
.status-text { font-size: 0.82rem; font-weight: 700; color: var(--buoyiq-text-muted); }

/* ===== RF conditions banner ===== */

.rf-conditions-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: var(--buoyiq-radius-lg);
  background:
    linear-gradient(135deg, rgba(255,154,61,0.08), rgba(53,231,255,0.05)),
    var(--buoyiq-surface);
  border: 1px solid var(--buoyiq-border-strong);
  box-shadow: var(--buoyiq-glow-warm);
}
.rf-conditions-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.rf-conditions-body { flex: 1; }
.rf-conditions-title {
  font-family: var(--buoyiq-font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: var(--buoyiq-track-wide);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rf-conditions-detail {
  font-size: 0.88rem;
  color: var(--buoyiq-text-muted);
  line-height: 1.6;
}
.rf-conditions-detail strong { color: var(--buoyiq-cyan); }

/* ===== cards ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--buoyiq-radius-lg);
  background: var(--buoyiq-surface);
  border: 1px solid var(--buoyiq-border);
  box-shadow: var(--buoyiq-shadow-soft);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--buoyiq-gradient-signal);
  opacity: 0.7;
}
.card h3 {
  margin: 6px 0 8px;
  font-family: var(--buoyiq-font-display);
  font-size: 0.72rem;
  color: var(--buoyiq-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--buoyiq-track-wide);
}
.stat {
  font-family: var(--buoyiq-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  color: var(--buoyiq-cyan);
  margin-bottom: 6px;
  text-shadow: 0 0 16px rgba(53, 231, 255, 0.3);
}

.view[data-view="overview"] .card:nth-child(1) .stat { color: var(--buoyiq-cyan); }
.view[data-view="overview"] .card:nth-child(2) .stat { color: var(--buoyiq-electric); }
.view[data-view="overview"] .card:nth-child(3) .stat { color: var(--buoyiq-amber); }
.view[data-view="overview"] .card:nth-child(4) .stat { color: var(--buoyiq-gold); }

/* ===== panels ===== */

.panel {
  margin-top: 20px;
  border-radius: var(--buoyiq-radius-lg);
  overflow: hidden;
  background: var(--buoyiq-surface);
  border: 1px solid var(--buoyiq-border);
  box-shadow: var(--buoyiq-shadow-panel);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--buoyiq-surface-2);
  border-bottom: 1px solid var(--buoyiq-border);
}
.panel-head h2 {
  margin: 0;
  font-family: var(--buoyiq-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: var(--buoyiq-track);
  color: var(--buoyiq-ice);
}

/* ===== density map ===== */

.density-map-wrap { position: relative; padding: 12px 20px 18px; }
.density-map-wrap canvas {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: var(--buoyiq-radius-md);
  border: 1px solid var(--buoyiq-border);
  box-shadow: var(--buoyiq-glow-ring);
  cursor: crosshair;
}
.density-legend {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0 0; font-size: 0.82rem;
  color: var(--buoyiq-text-muted); font-weight: 700;
}
.density-swatch {
  display: inline-block; width: 16px; height: 16px;
  border-radius: 4px; vertical-align: middle;
}
.density-tooltip {
  display: none; position: absolute;
  padding: 8px 12px;
  background: rgba(11, 23, 38, 0.95);
  color: var(--buoyiq-ice);
  border: 1px solid var(--buoyiq-border-strong);
  border-radius: var(--buoyiq-radius-sm);
  font-size: 0.82rem; line-height: 1.5;
  pointer-events: none; z-index: 30;
  box-shadow: var(--buoyiq-shadow-panel);
  white-space: nowrap;
}
.density-tooltip strong { color: var(--buoyiq-cyan); }

/* ===== charts / band blocks ===== */

.band-chart, .space-list { padding: 18px 20px; }

.band-chart .band-row {
  display: grid;
  grid-template-columns: 70px 1fr 90px;
  align-items: center; gap: 12px; padding: 6px 0;
}
.band-chart .label { color: var(--buoyiq-text-muted); font-weight: 700; }
.band-chart .bar {
  height: 14px;
  background: rgba(53, 231, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.band-chart .bar-fill {
  height: 100%;
  background: var(--buoyiq-gradient-signal);
}
.band-chart .value {
  text-align: right; font-variant-numeric: tabular-nums;
  color: var(--buoyiq-text); font-weight: 700;
}

/* ===== tables ===== */

.data-table { width: 100%; border-collapse: collapse; }

.data-table thead th {
  position: sticky; top: 0;
  background: var(--buoyiq-surface-2);
  color: var(--buoyiq-text-muted);
  font-size: 0.78rem;
  font-family: var(--buoyiq-font-display);
  text-transform: uppercase;
  letter-spacing: var(--buoyiq-track-wide);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--buoyiq-border-strong);
}
.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(53, 231, 255, 0.08);
  font-size: 0.9rem;
  color: var(--buoyiq-text);
}
.data-table tbody tr:nth-child(even) { background: rgba(53, 231, 255, 0.03); }
.data-table tbody tr:hover { background: rgba(53, 231, 255, 0.08); }

/* ===== forms / filters ===== */

.filter-bar, .nearby-form {
  display: flex; flex-wrap: wrap; gap: 12px; padding: 18px 20px 0;
}
.filter-bar label, .nearby-form label {
  display: grid; gap: 6px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--buoyiq-text-muted);
}
input, select, button { font: inherit; }
input, select {
  min-height: 40px; padding: 8px 12px;
  border-radius: var(--buoyiq-radius-sm);
  border: 1px solid var(--buoyiq-border);
  background: var(--buoyiq-bg-deep);
  color: var(--buoyiq-text);
  outline: none;
}
input:focus, select:focus {
  border-color: var(--buoyiq-cyan);
  box-shadow: 0 0 0 3px rgba(53, 231, 255, 0.15);
}
button {
  min-height: 40px; padding: 8px 16px;
  border: 0; border-radius: 999px;
  font-weight: 800; cursor: pointer;
  color: var(--buoyiq-bg);
  background: var(--buoyiq-gradient-signal);
  letter-spacing: var(--buoyiq-track);
}
button:hover { filter: brightness(1.1); }
button:active { transform: translateY(1px); }

/* ===== badges / source pills ===== */

.badge, .source-pill, .source-tag {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 22px; padding: 3px 10px;
  border-radius: 999px; font-size: 0.72rem;
  font-weight: 800; letter-spacing: var(--buoyiq-track);
  text-transform: uppercase;
}
.source-wspr  { background: rgba(53, 231, 255, 0.15); color: var(--buoyiq-cyan); border: 1px solid rgba(53, 231, 255, 0.35); }
.source-rbn   { background: rgba(255, 154, 61, 0.15); color: var(--buoyiq-amber); border: 1px solid rgba(255, 154, 61, 0.35); }
.source-unknown { background: rgba(126, 149, 172, 0.15); color: var(--buoyiq-steel); }

.kind-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: var(--buoyiq-track);
}
/* tower metadata badges */
.badge-class {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 900;
  background: rgba(58, 134, 255, 0.15); color: var(--buoyiq-azure);
  letter-spacing: var(--buoyiq-track);
}
.badge-ant {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 900;
  letter-spacing: var(--buoyiq-track);
}
.badge-ant-da { background: rgba(255, 154, 61, 0.15); color: var(--buoyiq-amber); }
.badge-ant-nd { background: rgba(53, 231, 255, 0.12); color: var(--buoyiq-cyan); }
.tower-detail {
  font-size: 0.78rem; line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tower-detail strong { color: var(--buoyiq-cyan); }

/* RF Launch Quality badges */
.launch-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.66rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: var(--buoyiq-track);
  cursor: help; margin-top: 2px;
}
.launch-strong   { background: rgba(74,222,128,0.18); color: #4ade80; border: 1px solid rgba(74,222,128,0.4); }
.launch-moderate { background: rgba(255,193,90,0.18); color: var(--buoyiq-gold); border: 1px solid rgba(255,193,90,0.4); }
.launch-weak     { background: rgba(255,93,108,0.15); color: #ff5d6c; border: 1px solid rgba(255,93,108,0.35); }

/* Range ratio badges (inline in tune links) */
.range-badge {
  display: inline-block; padding: 1px 6px; border-radius: 999px;
  font-size: 0.6rem; font-weight: 900;
  margin-left: 4px; cursor: help;
}
.range-enhanced { background: rgba(255,193,90,0.2); color: var(--buoyiq-gold); }
.range-tropo    { background: rgba(255,154,61,0.25); color: var(--buoyiq-amber); }
.range-extreme  { background: rgba(255,93,108,0.25); color: #ff5d6c; }

.kind-sdr       { background: rgba(53, 231, 255, 0.12); color: var(--buoyiq-cyan); }
.kind-mesh      { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.kind-spot      { background: rgba(255, 193, 90, 0.12); color: var(--buoyiq-gold); }
.kind-broadcast { background: rgba(58, 134, 255, 0.12); color: var(--buoyiq-azure); }
.kind-vuln      { background: rgba(255, 93, 108, 0.12); color: #ff5d6c; }

/* ===== propagation health + activity pills ===== */

.pill {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: var(--buoyiq-track);
}
.pill-health-strong  { background: rgba(53,231,255,0.18); color: var(--buoyiq-cyan); border: 1px solid rgba(53,231,255,0.4); }
.pill-health-good    { background: rgba(74,222,128,0.15); color: #4ade80; }
.pill-health-fair    { background: rgba(255,193,90,0.15); color: var(--buoyiq-gold); }
.pill-health-poor    { background: rgba(255,154,61,0.15); color: var(--buoyiq-amber); }
.pill-health-dead    { background: rgba(126,149,172,0.12); color: var(--buoyiq-steel); }
.pill-health-unknown { background: rgba(126,149,172,0.08); color: var(--buoyiq-text-dim); }

.pill-activity-idle     { background: rgba(126,149,172,0.12); color: var(--buoyiq-steel); }
.pill-activity-light    { background: rgba(53,231,255,0.12); color: var(--buoyiq-cyan); }
.pill-activity-moderate { background: rgba(255,193,90,0.15); color: var(--buoyiq-gold); }
.pill-activity-active   { background: rgba(255,154,61,0.18); color: var(--buoyiq-amber); }
.pill-activity-busy     { background: rgba(255,93,108,0.18); color: #ff5d6c; }
.pill-activity-unknown  { background: rgba(126,149,172,0.08); color: var(--buoyiq-text-dim); }

/* ===== exposure score pills ===== */

.exposure {
  display: inline-block; min-width: 24px; padding: 2px 8px;
  text-align: center; border-radius: 999px;
  font-weight: 900; font-size: 0.76rem; font-variant-numeric: tabular-nums;
}
.exposure-low      { background: rgba(74,222,128,0.15); color: #4ade80; }
.exposure-medium   { background: rgba(255,193,90,0.18); color: var(--buoyiq-gold); }
.exposure-high     { background: rgba(255,154,61,0.22); color: var(--buoyiq-amber); }
.exposure-critical { background: rgba(255,93,108,0.28); color: #ff5d6c; border: 1px solid rgba(255,93,108,0.5); }

/* ===== space weather ===== */

.space-item {
  padding: 12px 16px; margin-bottom: 10px;
  border-radius: var(--buoyiq-radius-md);
  background: var(--buoyiq-surface-2);
  border: 1px solid var(--buoyiq-border);
  border-left: 3px solid var(--buoyiq-cyan);
}
.space-item.severity-high   { border-left-color: #ff5d6c; }
.space-item.severity-medium { border-left-color: var(--buoyiq-amber); }
.space-item.severity-low    { border-left-color: var(--buoyiq-cyan); }
.space-item .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.space-item .when, .space-item .types { font-size: 0.82rem; color: var(--buoyiq-text-muted); }
.space-item .score { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--buoyiq-amber); }

/* ===== weather card ===== */

.weather-card {
  padding: 14px 20px; margin: 0 20px 12px;
  background: rgba(53, 231, 255, 0.06);
  border: 1px solid var(--buoyiq-border);
  border-left: 3px solid var(--buoyiq-cyan);
  border-radius: var(--buoyiq-radius-md);
  font-size: 0.92rem;
}
.weather-card:empty { display: none; }
.weather-card strong { color: var(--buoyiq-cyan); display: block; font-family: var(--buoyiq-font-display); font-size: 0.82rem; margin-bottom: 6px; }
.weather-card .weather-metrics { display: flex; gap: 18px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.weather-card em {
  font-style: normal; color: var(--buoyiq-text-dim);
  font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: var(--buoyiq-track); margin-right: 6px; font-weight: 800;
}

/* ===== tune links ===== */

.tune-list { display: flex; flex-direction: column; gap: 4px; font-size: 0.76rem; line-height: 1.3; min-width: 260px; }
.tune-list-tiered { gap: 8px; }
.tune-tier-group { display: flex; flex-direction: column; gap: 3px; }
.tune-tier-label {
  font-size: 0.62rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: var(--buoyiq-track-wide);
  color: var(--buoyiq-text-dim); padding-left: 4px;
}

.tune-link {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 4px 10px;
  background: rgba(53, 231, 255, 0.06);
  border: 1px solid var(--buoyiq-border);
  border-radius: 999px;
  text-decoration: none; color: var(--buoyiq-cyan);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: 120ms ease;
}
.tune-link:hover { background: rgba(53, 231, 255, 0.14); transform: translateY(-1px); text-decoration: none; }
.tune-link.tune-tier-primary { border-color: rgba(74,222,128,0.4); color: #4ade80; }
.tune-link.tune-tier-primary .tune-host { color: #4ade80; }
.tune-link.tune-tier-primary:hover { background: rgba(74,222,128,0.12); }
.tune-link.tune-tier-secondary { border-color: var(--buoyiq-border); }
.tune-link.tune-tier-edge { border-color: rgba(255,154,61,0.35); color: var(--buoyiq-amber); }
.tune-link.tune-tier-edge .tune-host { color: var(--buoyiq-amber); }

.tune-host { font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tune-meta { color: var(--buoyiq-text-dim); font-size: 0.66rem; font-weight: 700; }

/* ===== confidence + anomaly ===== */

.confidence-cell { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; min-width: 120px; }
.confidence-pill {
  display: inline-flex; padding: 3px 12px; border-radius: 999px;
  font-weight: 900; font-size: 0.88rem; font-variant-numeric: tabular-nums; cursor: help;
}
.confidence-high   { background: rgba(74,222,128,0.18); color: #4ade80; border: 1px solid rgba(74,222,128,0.45); }
.confidence-medium { background: rgba(255,193,90,0.18); color: var(--buoyiq-gold); border: 1px solid rgba(255,193,90,0.45); }
.confidence-low    { background: rgba(255,93,108,0.18); color: #ff5d6c; border: 1px solid rgba(255,93,108,0.45); }

.anomaly-stack { display: flex; flex-direction: column; gap: 3px; }
.anomaly-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: var(--buoyiq-track); cursor: help;
}
.anomaly-no-confirm   { background: rgba(126,149,172,0.15); color: var(--buoyiq-steel); border: 1px solid rgba(126,149,172,0.3); }
.anomaly-weak         { background: rgba(255,154,61,0.15); color: var(--buoyiq-amber); border: 1px solid rgba(255,154,61,0.35); }
.anomaly-over-perform { background: rgba(255,93,108,0.15); color: #ff5d6c; border: 1px solid rgba(255,93,108,0.35); }

/* ===== link buttons ===== */

.link-btn {
  min-height: 0; padding: 3px 10px; font-size: 0.76rem;
  background: transparent; color: var(--buoyiq-cyan);
  border: 1px solid var(--buoyiq-border); box-shadow: none;
}
.link-btn:hover { background: rgba(53, 231, 255, 0.08); }

/* ===== LOS modal ===== */

.los-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}
.los-modal-content {
  width: min(calc(100% - 32px), 1200px);
  max-height: 90vh;
  overflow: auto;
  background: var(--buoyiq-surface);
  border: 1px solid var(--buoyiq-border-strong);
  border-radius: var(--buoyiq-radius-lg);
  box-shadow: var(--buoyiq-shadow-panel);
  padding: 0;
}
.los-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--buoyiq-surface-2);
  border-bottom: 1px solid var(--buoyiq-border);
}
.los-modal-head h2 {
  margin: 0;
  font-family: var(--buoyiq-font-display);
  font-size: 1rem;
  letter-spacing: var(--buoyiq-track);
  color: var(--buoyiq-ice);
}
.los-summary {
  padding: 12px 20px;
  font-size: 0.88rem;
  color: var(--buoyiq-text);
  border-bottom: 1px solid var(--buoyiq-border);
}
.los-modal-content canvas {
  width: 100%;
  height: auto;
  display: block;
}
.los-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.78rem;
  color: var(--buoyiq-text-muted);
  font-weight: 700;
}

/* LOS button in tune links */
.tune-row { display: flex; align-items: center; gap: 4px; }
.los-btn {
  min-height: 0;
  min-width: 0;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: var(--buoyiq-track);
  background: rgba(53, 231, 255, 0.1);
  color: var(--buoyiq-cyan);
  border: 1px solid var(--buoyiq-border);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
}
.los-btn:hover {
  background: rgba(53, 231, 255, 0.2);
  box-shadow: var(--buoyiq-glow-ring);
}

/* ===== panel errors ===== */

.panel-error {
  display: inline-block; margin: 14px 20px;
  padding: 8px 14px;
  background: rgba(255, 93, 108, 0.08);
  border: 1px solid rgba(255, 93, 108, 0.3);
  border-radius: var(--buoyiq-radius-sm);
  color: #ff8a96;
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ===== footer ===== */

.footer {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 0 28px;
  border-top: 1px solid rgba(53, 231, 255, 0.07);
  color: var(--buoyiq-text-dim); font-size: 0.8rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-ident {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.45;
  filter: saturate(0.5) brightness(1.2);
}

.footer-ident-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-system {
  font-family: var(--buoyiq-font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--buoyiq-text-muted);
  text-transform: uppercase;
}

.footer-engine {
  font-size: 0.62rem;
  color: rgba(53, 231, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.footer-sources {
  font-size: 0.62rem;
  color: var(--buoyiq-text-dim);
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* ===== transitions ===== */

.panel, .card, button, .tab.active {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--buoyiq-shadow-panel); }

/* ===== scrollbar ===== */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--buoyiq-bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--buoyiq-cyan), var(--buoyiq-azure));
  border-radius: 999px; border: 2px solid var(--buoyiq-bg-deep);
}

/* ===== responsive ===== */

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { grid-template-columns: 1fr; justify-items: start; }
  .tabs { justify-content: flex-start; }
  .topbar-right { justify-self: start; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .topbar, main, .footer { width: min(calc(100% - 20px), var(--max-width)); }
  .panel-head, .band-chart, .space-list, .weather-card { padding-left: 14px; padding-right: 14px; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 10px 0; border-bottom: 1px solid var(--buoyiq-border); }
  .data-table td { border: 0; padding: 6px 14px; }
}

/* ---- Overview hero section (featured Alliance branding) ---- */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.hero-logo {
  max-width: 280px;
  width: 60%;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(53, 231, 255, 0.3));
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin: 0.5rem 0;
  color: var(--buoyiq-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-tagline {
  color: var(--buoyiq-muted, #94a3b8);
  font-size: 1rem;
  max-width: 640px;
  margin: 0.5rem auto 0;
}

/* ---- Exposure two-column layout ---- */
.exposure-layout {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 1.5rem 1rem 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.exposure-left {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.exposure-right {
  flex: 1;
  min-height: 490px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}
.exposure-canvas {
  width: 100%;
  height: 490px;
  border-radius: 12px;
  background: transparent;
  border: none;
}
.exposure-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid rgba(53, 231, 255, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 260px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 20;
}
.exposure-tooltip strong {
  color: var(--buoyiq-cyan, #35e7ff);
}
@media (max-width: 900px) {
  .exposure-layout { flex-direction: column; }
  .exposure-left { flex: none; width: 100%; }
  .exposure-right { width: 100%; min-height: 480px; }
  .exposure-canvas { height: 480px; }
}
.notice-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(53, 231, 255, 0.18);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.notice-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--buoyiq-cyan, #35e7ff);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.notice-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.6rem;
}
.notice-subtext {
  color: var(--buoyiq-cyan, #35e7ff);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.85;
}
.notice-instructions {
  border-color: rgba(53, 231, 255, 0.10);
  background: rgba(15, 23, 42, 0.8);
}
.notice-instructions-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.notice-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notice-bullets li {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.7;
  padding-left: 1.2em;
  position: relative;
}
.notice-bullets li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--buoyiq-cyan, #35e7ff);
  opacity: 0.6;
}

/* ---- Featured panels stand out from the rest ---- */
.panel-featured {
  border: 1px solid rgba(53, 231, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(53, 231, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ---- Centered coverage map ---- */
.centered-map {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.centered-map canvas {
  max-width: 100%;
  height: auto;
}

/* ---- Worst stations table ---- */
.worst-stations-table td { vertical-align: middle; }
.risk-badge {
  display: inline-block;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}
.risk-critical { background: rgba(255, 93, 108, 0.25); color: #ff5d6c; border: 1px solid rgba(255, 93, 108, 0.4); }
.risk-high     { background: rgba(245, 158, 11, 0.22); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.risk-elevated { background: rgba(234, 179, 8, 0.22);  color: #eab308; border: 1px solid rgba(234, 179, 8, 0.4); }
.risk-moderate { background: rgba(59, 130, 246, 0.22); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.4); }
.rank-cell {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--buoyiq-cyan);
  min-width: 36px;
}

/* ---- Space WX command-center view ---- */

.spacewx-hero {
  background: linear-gradient(135deg, #05070d 0%, #0c1524 55%, #05070d 100%);
  border: 1px solid rgba(53, 231, 255, 0.25);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 1px rgba(53, 231, 255, 0.1), inset 0 0 60px rgba(53, 231, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.spacewx-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--buoyiq-cyan), transparent);
  opacity: 0.6;
}
.spacewx-hero-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--buoyiq-cyan);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}
.spacewx-hero-stat {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.spacewx-impact-level {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  min-width: 320px;
}
.spacewx-impact-level.level-quiet       { color: #4ade80; text-shadow: 0 0 24px rgba(74, 222, 128, 0.4); }
.spacewx-impact-level.level-background  { color: #6ee7b7; text-shadow: 0 0 18px rgba(110, 231, 183, 0.3); }
.spacewx-impact-level.level-noticeable  { color: #fde047; text-shadow: 0 0 24px rgba(253, 224, 71, 0.4); }
.spacewx-impact-level.level-disruptive  { color: #fb923c; text-shadow: 0 0 24px rgba(251, 146, 60, 0.5); }
.spacewx-impact-level.level-critical    { color: #ff5d6c; text-shadow: 0 0 32px rgba(255, 93, 108, 0.6); animation: critical-pulse 2.5s infinite; }
@keyframes critical-pulse {
  0%,100% { text-shadow: 0 0 32px rgba(255, 93, 108, 0.6); }
  50%     { text-shadow: 0 0 48px rgba(255, 93, 108, 0.9); }
}

.spacewx-impact-meta {
  flex: 1;
}
.spacewx-condition {
  font-size: 1.05rem;
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.spacewx-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.spacewx-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spacewx-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--buoyiq-muted, #94a3b8);
}
.spacewx-metric-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--buoyiq-cyan);
}

/* Timeline */
.spacewx-timeline-wrap {
  position: relative;
  padding: 1rem 0;
}
.spacewx-timeline-wrap canvas {
  width: 100%;
  max-width: 100%;
  display: block;
}
.spacewx-timeline-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(5, 7, 13, 0.95);
  border: 1px solid rgba(53, 231, 255, 0.4);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.85rem;
  min-width: 180px;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.spacewx-timeline-axis {
  display: flex;
  justify-content: space-between;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  color: var(--buoyiq-muted, #94a3b8);
  margin-top: 8px;
  padding: 0 8px;
}

/* Cluster cards */
.spacewx-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
}
.spacewx-cluster-card {
  background: linear-gradient(180deg, rgba(12, 21, 36, 0.9), rgba(5, 7, 13, 0.95));
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 6px;
  padding: 1.2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.spacewx-cluster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 231, 255, 0.4);
}
.spacewx-cluster-card.sev-critical { border-left: 3px solid #ff5d6c; }
.spacewx-cluster-card.sev-high     { border-left: 3px solid #fb923c; }
.spacewx-cluster-card.sev-medium   { border-left: 3px solid #fde047; }
.spacewx-cluster-card.sev-low      { border-left: 3px solid #4ade80; }

.spacewx-cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}
.spacewx-cluster-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--buoyiq-cyan);
}
.spacewx-cluster-severity {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.spacewx-cluster-severity.sev-critical { background: rgba(255, 93, 108, 0.2); color: #ff5d6c; }
.spacewx-cluster-severity.sev-high     { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.spacewx-cluster-severity.sev-medium   { background: rgba(253, 224, 71, 0.2); color: #fde047; }
.spacewx-cluster-severity.sev-low      { background: rgba(74, 222, 128, 0.18); color: #4ade80; }

.spacewx-cluster-types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0.4rem 0;
}
.spacewx-event-chip {
  background: rgba(53, 231, 255, 0.1);
  border: 1px solid rgba(53, 231, 255, 0.3);
  color: var(--buoyiq-cyan);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.spacewx-cluster-interpretation {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.6rem 0;
  padding: 0.6rem;
  background: rgba(53, 231, 255, 0.04);
  border-left: 2px solid rgba(53, 231, 255, 0.3);
  border-radius: 2px;
}
.spacewx-cluster-when {
  font-size: 0.8rem;
  color: var(--buoyiq-muted, #94a3b8);
  font-family: monospace;
  margin-top: 0.5rem;
}
.spacewx-cluster-details {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--buoyiq-border, #1e293b);
  display: none;
}
.spacewx-cluster-details.open { display: block; }
.spacewx-cluster-toggle {
  background: none;
  border: none;
  color: var(--buoyiq-cyan);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}

/* RF effects */
.spacewx-rf-effects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.spacewx-rf-effect {
  background: rgba(12, 21, 36, 0.5);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
  padding: 1rem;
}
.spacewx-rf-effect-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--buoyiq-muted, #94a3b8);
  margin-bottom: 0.4rem;
}
.spacewx-rf-effect-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spacewx-rf-effect-value.impact-low     { color: #4ade80; }
.spacewx-rf-effect-value.impact-medium  { color: #fde047; }
.spacewx-rf-effect-value.impact-high    { color: #fb923c; }
.spacewx-rf-effect-value.impact-extreme { color: #ff5d6c; }
.spacewx-rf-effect-bar {
  height: 4px;
  background: var(--buoyiq-border, #1e293b);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.spacewx-rf-effect-bar-fill {
  height: 100%;
  transition: width 0.3s, background 0.3s;
}

/* Correlation strip */
.spacewx-correlation-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.spacewx-corr-slot {
  background: rgba(12, 21, 36, 0.5);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
}
.spacewx-corr-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--buoyiq-muted, #94a3b8);
  margin-bottom: 0.5rem;
}
.spacewx-corr-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--buoyiq-cyan);
}
.spacewx-corr-note {
  font-size: 0.7rem;
  color: var(--buoyiq-muted, #94a3b8);
  margin-top: 4px;
}

/* ---- Space WX V2: dominant hierarchy ---- */

/* Status strip — compact, not a hero */
.spacewx-status-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: rgba(5, 7, 13, 0.9);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.spacewx-status-slot {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--buoyiq-border, #1e293b);
}
.spacewx-status-slot:last-child { border-right: none; }
.spacewx-status-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--buoyiq-muted, #94a3b8);
  margin-bottom: 4px;
}
.spacewx-status-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--buoyiq-cyan);
}
.spacewx-impact-inline {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spacewx-impact-inline.level-quiet       { color: #4ade80; }
.spacewx-impact-inline.level-background  { color: #6ee7b7; }
.spacewx-impact-inline.level-noticeable  { color: #fde047; }
.spacewx-impact-inline.level-disruptive  { color: #fb923c; }
.spacewx-impact-inline.level-critical    { color: #ff5d6c; }
.spacewx-trend {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spacewx-trend.dir-worsening { color: #ff5d6c; }
.spacewx-trend.dir-steady    { color: #fb923c; }
.spacewx-trend.dir-improving { color: #fde047; }
.spacewx-trend.dir-resolved  { color: #4ade80; }

/* DOMINANT primary event panel */
.spacewx-primary-panel {
  background: linear-gradient(135deg, #1a0508 0%, #2d0a12 60%, #1a0508 100%);
  border: 2px solid rgba(255, 93, 108, 0.55);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 93, 108, 0.15),
              0 12px 48px rgba(255, 93, 108, 0.18),
              inset 0 0 80px rgba(255, 93, 108, 0.06);
}
.spacewx-primary-panel.sev-critical {
  animation: critical-border-pulse 3s infinite;
}
.spacewx-primary-panel.sev-high {
  background: linear-gradient(135deg, #1a0c05 0%, #2d1a0a 60%, #1a0c05 100%);
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.15),
              0 12px 48px rgba(251, 146, 60, 0.18);
}
.spacewx-primary-panel.sev-medium {
  background: linear-gradient(135deg, #1a1705 0%, #2d2a0a 60%, #1a1705 100%);
  border-color: rgba(253, 224, 71, 0.5);
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.15);
}
@keyframes critical-border-pulse {
  0%, 100% { border-color: rgba(255, 93, 108, 0.55); }
  50%      { border-color: rgba(255, 93, 108, 0.9); }
}
.spacewx-primary-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  color: #ff5d6c;
  opacity: 0.7;
}

.spacewx-primary-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.8rem;
}
.spacewx-primary-icon {
  font-size: 1.1rem;
  color: #ff5d6c;
  animation: flag-blink 1.2s infinite;
}
@keyframes flag-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.spacewx-primary-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #ff5d6c;
  text-transform: uppercase;
}
.spacewx-primary-panel.sev-high .spacewx-primary-tag,
.spacewx-primary-panel.sev-high .spacewx-primary-icon { color: #fb923c; }
.spacewx-primary-panel.sev-medium .spacewx-primary-tag,
.spacewx-primary-panel.sev-medium .spacewx-primary-icon { color: #fde047; }

.spacewx-primary-headline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 93, 108, 0.4);
  margin-bottom: 0.6rem;
}
.spacewx-primary-panel.sev-high .spacewx-primary-headline {
  text-shadow: 0 0 24px rgba(251, 146, 60, 0.4);
}
.spacewx-primary-panel.sev-medium .spacewx-primary-headline {
  text-shadow: 0 0 24px rgba(253, 224, 71, 0.4);
}
.spacewx-primary-meta {
  display: flex;
  gap: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.spacewx-primary-meta span strong { color: var(--buoyiq-cyan); }

.spacewx-primary-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}
.spacewx-primary-score-block {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.spacewx-primary-score-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--buoyiq-muted, #94a3b8);
  text-transform: uppercase;
}
.spacewx-primary-score-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #ff5d6c;
  line-height: 1;
  margin-top: 4px;
}
.spacewx-primary-panel.sev-high .spacewx-primary-score-value { color: #fb923c; }
.spacewx-primary-panel.sev-medium .spacewx-primary-score-value { color: #fde047; }

.spacewx-primary-impact-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--buoyiq-cyan);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.spacewx-primary-impact-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.7;
}
.spacewx-primary-impact-list li::marker { color: var(--buoyiq-cyan); }

/* Condition panel — simple muted card for quiet days */
.spacewx-condition-panel {
  background: rgba(5, 7, 13, 0.7);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
  font-size: 1rem;
}

/* Size-variant cluster cards — merged into timeline section */
.spacewx-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.spacewx-cluster-list .spacewx-cluster-card {
  /* default: compact row */
  display: grid;
  grid-template-columns: 60px auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0.6rem 1rem;
}
.spacewx-cluster-list .spacewx-cluster-card.sev-medium {
  padding: 0.9rem 1.2rem;
}
.spacewx-cluster-list .spacewx-cluster-card.sev-high {
  padding: 1.1rem 1.4rem;
  grid-template-columns: 80px auto 1fr auto;
}
.spacewx-cluster-list .spacewx-cluster-card.sev-critical {
  padding: 1.4rem 1.6rem;
  grid-template-columns: 100px auto 1fr auto;
  background: linear-gradient(180deg, rgba(45, 10, 18, 0.6), rgba(12, 4, 7, 0.9));
}
.spacewx-cluster-list .spacewx-cluster-card .spacewx-cluster-score {
  font-size: 1.2rem;
}
.spacewx-cluster-list .spacewx-cluster-card.sev-high .spacewx-cluster-score {
  font-size: 1.5rem;
}
.spacewx-cluster-list .spacewx-cluster-card.sev-critical .spacewx-cluster-score {
  font-size: 2rem;
  color: #ff5d6c;
}
.spacewx-cluster-list .spacewx-cluster-interpretation {
  margin: 0;
  padding: 0;
  background: none;
  border-left: none;
  font-size: 0.9rem;
}

/* Local impact panel */
.spacewx-local-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.spacewx-local-card {
  background: rgba(12, 21, 36, 0.5);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
  padding: 1rem;
}
.spacewx-local-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.spacewx-local-band {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--buoyiq-cyan);
  text-transform: uppercase;
}
.spacewx-local-state {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.spacewx-local-state.ok       { background: rgba(74, 222, 128, 0.18); color: #4ade80; }
.spacewx-local-state.watch    { background: rgba(253, 224, 71, 0.18); color: #fde047; }
.spacewx-local-state.degraded { background: rgba(251, 146, 60, 0.22); color: #fb923c; }
.spacewx-local-state.critical { background: rgba(255, 93, 108, 0.25); color: #ff5d6c; }

.spacewx-local-note {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
}
.spacewx-local-freq {
  font-family: monospace;
  color: var(--buoyiq-muted, #94a3b8);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

/* Causal attribution for RF effects */
.spacewx-rf-effect-attribution {
  font-size: 0.75rem;
  color: var(--buoyiq-cyan);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(53, 231, 255, 0.15);
}

/* ---- Signal Integrity: ingest button ---- */
.sigint-ingest-controls {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--buoyiq-border, #1e293b);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.sigint-ingest-btn {
  background: linear-gradient(180deg, rgba(53, 231, 255, 0.18), rgba(53, 231, 255, 0.08));
  color: var(--buoyiq-cyan);
  border: 1px solid rgba(53, 231, 255, 0.4);
  padding: 8px 18px;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.sigint-ingest-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(53, 231, 255, 0.3), rgba(53, 231, 255, 0.15));
  border-color: rgba(53, 231, 255, 0.7);
  box-shadow: 0 0 16px rgba(53, 231, 255, 0.25);
}
.sigint-ingest-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sigint-ingest-status {
  font-family: monospace;
  font-size: 0.85rem;
}
.sigint-ingest-status.success { color: #4ade80; }
.sigint-ingest-status.error   { color: #ff5d6c; }
.sigint-ingest-status.running { color: #fde047; }

/* ---- IPAWS Alerts ---- */
.ipaws-filter-bar {
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}
.ipaws-filter-bar label.inline-check {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}
.ipaws-filter-bar button.secondary {
  background: transparent;
  border: 1px solid var(--buoyiq-border, #1e293b);
  color: var(--buoyiq-muted, #94a3b8);
}

.ipaws-table tbody tr { cursor: pointer; transition: background 0.15s; }
.ipaws-table tbody tr:hover { background: rgba(53, 231, 255, 0.06); }

.ipaws-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-right: 4px;
}
.ipaws-chip-eas       { background: rgba(255, 93, 108, 0.2); color: #ff5d6c; border: 1px solid rgba(255, 93, 108, 0.4); }
.ipaws-chip-cmas      { background: rgba(251, 146, 60, 0.2); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.4); }
.ipaws-chip-nwem      { background: rgba(53, 231, 255, 0.18); color: #35e7ff; border: 1px solid rgba(53, 231, 255, 0.4); }
.ipaws-chip-active    { background: rgba(74, 222, 128, 0.18); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); }
.ipaws-chip-recent    { background: rgba(253, 224, 71, 0.18); color: #fde047; border: 1px solid rgba(253, 224, 71, 0.4); }
.ipaws-chip-expired   { background: rgba(148, 163, 184, 0.18); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.ipaws-sev-extreme  { background: rgba(255, 93, 108, 0.25); color: #ff5d6c; border: 1px solid rgba(255, 93, 108, 0.5); padding: 3px 8px; border-radius: 3px; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }
.ipaws-sev-severe   { background: rgba(251, 146, 60, 0.22); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.45); padding: 3px 8px; border-radius: 3px; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }
.ipaws-sev-moderate { background: rgba(253, 224, 71, 0.2);  color: #fde047; border: 1px solid rgba(253, 224, 71, 0.4); padding: 3px 8px; border-radius: 3px; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }
.ipaws-sev-minor    { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.35); padding: 3px 8px; border-radius: 3px; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }
.ipaws-sev-unknown  { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); padding: 3px 8px; border-radius: 3px; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }

/* Drawer */
.ipaws-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(100%, 560px);
  background: rgba(5, 7, 13, 0.98);
  border-left: 1px solid rgba(53, 231, 255, 0.3);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ipaws-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ipaws-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--buoyiq-border, #1e293b);
}
.ipaws-drawer-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin: 0;
}
#ipaws-drawer-body {
  padding: 1.2rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ipaws-field {
  margin-bottom: 0.8rem;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  align-items: start;
}
.ipaws-field-label {
  color: var(--buoyiq-muted, #94a3b8);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ipaws-field-value { color: #e2e8f0; }
.ipaws-field-value code {
  background: rgba(53, 231, 255, 0.08);
  border: 1px solid rgba(53, 231, 255, 0.2);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
}
.ipaws-polygon-svg {
  background: rgba(5, 7, 13, 0.9);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
  margin-top: 0.5rem;
}
.ipaws-raw-toggle {
  color: var(--buoyiq-cyan);
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
}
.ipaws-raw-json {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--buoyiq-border, #1e293b);
  padding: 0.8rem;
  border-radius: 3px;
  font-size: 0.72rem;
  color: #cbd5e1;
  max-height: 300px;
  overflow: auto;
  margin-top: 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- IPAWS: CRITICAL product-level flag ---- */
.card-critical {
  background: linear-gradient(135deg, rgba(255, 93, 108, 0.08) 0%, rgba(255, 93, 108, 0.02) 60%);
  border: 1px solid rgba(255, 93, 108, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 93, 108, 0.1), 0 0 20px rgba(255, 93, 108, 0.15);
}
.card-critical h3 { color: #ff5d6c; }
.card-critical .stat {
  color: #ff5d6c;
  text-shadow: 0 0 18px rgba(255, 93, 108, 0.4);
  animation: critical-stat-pulse 2.5s infinite;
}
@keyframes critical-stat-pulse {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 93, 108, 0.4); }
  50%      { text-shadow: 0 0 32px rgba(255, 93, 108, 0.75); }
}
/* Recent-critical is important but not "right now" — softer red, no pulse */
.card-critical-recent {
  background: linear-gradient(135deg, rgba(255, 154, 93, 0.06) 0%, rgba(255, 154, 93, 0.02) 60%);
  border: 1px solid rgba(255, 154, 93, 0.35);
}
.card-critical-recent h3 { color: #ff9a5d; }
.card-critical-recent .stat { color: #ff9a5d; }

/* ---- IPAWS: outbreak cluster strip ---- */
.ipaws-cluster-panel .panel-head { margin-bottom: 8px; }
.ipaws-cluster-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ipaws-cluster-card {
  flex: 1 1 260px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 12px 14px;
}
.ipaws-cluster-card.ipaws-cluster-tier-p1 { border-left-color: #ff5d6c; }
.ipaws-cluster-card.ipaws-cluster-tier-p2 { border-left-color: #ff9a5d; }
.ipaws-cluster-card.ipaws-cluster-tier-p3 { border-left-color: #fde047; }
.ipaws-cluster-card.ipaws-cluster-tier-p4 { border-left-color: #94a3b8; }
.ipaws-cluster-title   { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ipaws-cluster-stats   { font-size: 13px; margin-bottom: 4px; }
.ipaws-cluster-meta    { font-size: 12px; color: var(--muted, #94a3b8); }

/* ---- IPAWS: station-of-interest bar ---- */
.ipaws-station-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: 0 0 12px;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 4px;
  font-size: 13px;
}
.ipaws-station-bar-empty,
.ipaws-station-bar-filled {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.ipaws-station-bar input[type="text"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: inherit;
  padding: 4px 8px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 140px;
}
.ipaws-station-bar button {
  background: var(--buoyiq-cyan, #22d3ee);
  color: #0b1118;
  border: none;
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ipaws-station-bar button:hover { filter: brightness(1.1); }
#ipaws-station-change,
#ipaws-station-clear {
  background: transparent;
  color: var(--muted, #94a3b8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-weight: 400;
}

/* ---- IPAWS: Trigger Eligibility column ---- */
.ipaws-trigger {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.ipaws-trigger-yes {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
}
.ipaws-trigger-partial {
  background: rgba(253, 224, 71, 0.12);
  color: #fde047;
  border: 1px solid rgba(253, 224, 71, 0.4);
}
.ipaws-trigger-no {
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted, #94a3b8);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ---- IPAWS: routine-test collapse pill ---- */
.ipaws-test-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  margin: 0 0 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 4px;
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.ipaws-test-collapse-toggle {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted, #94a3b8);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
}
.ipaws-test-collapse-toggle:hover {
  border-color: var(--buoyiq-cyan, #22d3ee);
  color: var(--buoyiq-cyan, #22d3ee);
}

.ipaws-chip-critical {
  background: rgba(255, 93, 108, 0.3);
  color: #fff;
  border: 1px solid rgba(255, 93, 108, 0.9);
  font-weight: 900;
  padding: 3px 10px;
  animation: critical-chip-pulse 1.8s infinite;
}
@keyframes critical-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 93, 108, 0); }
  50%      { box-shadow: 0 0 12px rgba(255, 93, 108, 0.7); }
}

.ipaws-check-critical {
  color: #ff5d6c;
  font-weight: 700;
}

/* Flag chips: ensure proper spacing so they don't smash together */
.ipaws-chip {
  margin-right: 5px;
  margin-bottom: 3px;
}
.ipaws-flags-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 200px;
}

/* SAME grouping in drawer — expandable county list */
.ipaws-same-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--buoyiq-cyan);
  user-select: none;
}
.ipaws-same-expand {
  font-size: 0.75rem;
  opacity: 0.7;
}
.ipaws-same-list {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ipaws-same-list.hidden { display: none; }

/* Leaflet polygon map in drawer */
.ipaws-map {
  width: 100%;
  height: 280px;
  background: #030712;
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
  margin-top: 0.5rem;
}
.leaflet-container {
  background: #030712 !important;
  font-family: inherit;
}
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(5, 7, 13, 0.7) !important;
  color: #94a3b8 !important;
}
.leaflet-control-attribution a { color: var(--buoyiq-cyan) !important; }

/* ---- IPAWS tier + class + channel path + correlation ---- */

.ipaws-tier {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-right: 4px;
}
.ipaws-tier-P1 { background: rgba(255, 93, 108, 0.28); color: #ff5d6c; border: 1px solid rgba(255, 93, 108, 0.55); }
.ipaws-tier-P2 { background: rgba(251, 146, 60, 0.25); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.5); }
.ipaws-tier-P3 { background: rgba(253, 224, 71, 0.22); color: #fde047; border: 1px solid rgba(253, 224, 71, 0.45); }
.ipaws-tier-P4 { background: rgba(148, 163, 184, 0.18); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.ipaws-class-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.7rem;
  background: rgba(53, 231, 255, 0.08);
  color: var(--buoyiq-cyan);
  border: 1px solid rgba(53, 231, 255, 0.25);
}

/* Channel path signal pipeline: CAPEXCH → NWEM → EAS */
.ipaws-channel-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.4rem;
}
.ipaws-channel-hop {
  background: rgba(53, 231, 255, 0.1);
  border: 1px solid rgba(53, 231, 255, 0.35);
  color: var(--buoyiq-cyan);
  padding: 3px 8px;
  border-radius: 3px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.ipaws-channel-arrow {
  color: var(--buoyiq-muted, #94a3b8);
  font-family: monospace;
  font-size: 0.85rem;
}

/* RF correlation panel inside drawer */
.ipaws-corr-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(12, 21, 36, 0.6);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
}
.ipaws-corr-panel h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--buoyiq-cyan);
  margin: 0 0 0.6rem 0;
  text-transform: uppercase;
}
.ipaws-same-header {
  display: block;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #f97316;
  word-break: break-all;
  letter-spacing: 0.04em;
  border-left: 3px solid #f97316;
}
.ipaws-corr-verdict {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.ipaws-verdict-likely_on_air           { background: rgba(74, 222, 128, 0.2); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); }
.ipaws-verdict-possible                 { background: rgba(253, 224, 71, 0.2); color: #fde047; border: 1px solid rgba(253, 224, 71, 0.4); }
.ipaws-verdict-no_match                 { background: rgba(255, 93, 108, 0.2); color: #ff5d6c; border: 1px solid rgba(255, 93, 108, 0.4); }
.ipaws-verdict-insufficient_coverage,
.ipaws-verdict-no_station_match,
.ipaws-verdict-no_rf_window             { background: rgba(148, 163, 184, 0.18); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.ipaws-corr-stat-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.ipaws-corr-stat {
  flex: 1;
  min-width: 110px;
  background: rgba(5, 7, 13, 0.5);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 3px;
  padding: 0.5rem 0.7rem;
}
.ipaws-corr-stat-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--buoyiq-muted, #94a3b8);
  text-transform: uppercase;
}
.ipaws-corr-stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  color: var(--buoyiq-cyan);
  font-weight: 700;
  margin-top: 2px;
}

/* ---- Expected vs Observed summary line ---- */
.ipaws-exp-obs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--buoyiq-border, #1e293b);
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}
.ipaws-exp-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--buoyiq-muted, #94a3b8);
  text-transform: uppercase;
}
.ipaws-exp-value {
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 0.85rem;
}
.ipaws-exp-sep { color: var(--buoyiq-muted, #94a3b8); margin: 0 4px; }

.ipaws-exp-yes   { background: rgba(255, 93, 108, 0.22); color: #ff5d6c; border: 1px solid rgba(255, 93, 108, 0.4); }
.ipaws-exp-no    { background: rgba(148, 163, 184, 0.18); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.ipaws-obs-verified   { background: rgba(74, 222, 128, 0.22); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); }
.ipaws-obs-unverified { background: rgba(251, 146, 60, 0.22); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.4); }
.ipaws-obs-unknown    { background: rgba(148, 163, 184, 0.18); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Coverage confidence banner */
.ipaws-coverage {
  margin-top: 0.5rem;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: monospace;
}
.ipaws-coverage-high   { background: rgba(74, 222, 128, 0.12); color: #4ade80; border-left: 3px solid #4ade80; }
.ipaws-coverage-medium { background: rgba(253, 224, 71, 0.12); color: #fde047; border-left: 3px solid #fde047; }
.ipaws-coverage-low    { background: rgba(251, 146, 60, 0.12); color: #fb923c; border-left: 3px solid #fb923c; }
.ipaws-coverage-none   { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border-left: 3px solid #94a3b8; }

/* ==========================================================================
   Capture tab — SDR tune + evidence pipeline
   ========================================================================== */
.capture-launch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.capture-launch label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted, #94a3b8); }
.capture-launch { position: relative; }
.capture-station-dropdown {
  position: absolute;
  top: 58px;
  left: 0;
  z-index: 100;
  background: #1a1f2e;
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: 4px;
  max-height: 260px;
  overflow-y: auto;
  min-width: 350px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.capture-station-item {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid rgba(148,163,184,0.1);
}
.capture-station-item:hover {
  background: rgba(34,211,238,0.1);
}
.capture-resolved {
  font-size: 12px;
  padding: 4px 0;
  color: var(--buoyiq-cyan, #22d3ee);
}
.capture-launch input[type="number"], .capture-launch select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.3);
  color: inherit;
  padding: 5px 8px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 13px;
}
.capture-launch button {
  background: var(--buoyiq-cyan, #22d3ee);
  color: #0b1118;
  border: none;
  border-radius: 4px;
  padding: 7px 16px;
  font-weight: 600;
  cursor: pointer;
}
.capture-launch button:hover { filter: brightness(1.1); }
.capture-launch .capture-suggest-btn {
  background: transparent;
  color: var(--buoyiq-cyan, #22d3ee);
  border: 1px solid rgba(34, 211, 238, 0.5);
}
.capture-launch .capture-suggest-btn:hover {
  background: rgba(34, 211, 238, 0.08);
  filter: none;
}
.capture-suggestion {
  font-size: 12px;
  padding: 4px 0;
}
.capture-backend-warning {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.08);
  color: #fb923c;
  border-radius: 4px;
}
.capture-backend-warning code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0 4px;
  border-radius: 2px;
  color: #fde047;
  font-size: 11px;
}

.capture-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}
.capture-status-pending         { background: rgba(148,163,184,0.12); color: #94a3b8; }
.capture-status-running         { background: rgba(34,211,238,0.12); color: var(--buoyiq-cyan, #22d3ee); }
.capture-status-source_selected { background: rgba(192,132,252,0.15); color: #c084fc; }
.capture-status-tuning          { background: rgba(34,211,238,0.12); color: var(--buoyiq-cyan, #22d3ee); }
.capture-status-capturing       { background: rgba(74,222,128,0.12); color: #4ade80; }
.capture-status-uploading       { background: rgba(253,224,71,0.15); color: #fde047; }
.capture-status-succeeded       { background: rgba(74,222,128,0.15); color: #4ade80; }
.capture-status-captured        { background: rgba(74,222,128,0.15); color: #4ade80; }
.capture-status-failed          { background: rgba(255,93,108,0.15); color: #ff5d6c; }

.capture-failure {
  margin: 10px 0;
  padding: 8px 12px;
  background: rgba(255, 93, 108, 0.08);
  border-left: 3px solid #ff5d6c;
  color: #ff5d6c;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
}
.capture-failure code {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 6px;
  border-radius: 2px;
  color: #fda4af;
  font-size: 11px;
}

.capture-band {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}
.capture-band-high   { background: rgba(74,222,128,0.15); color: #4ade80; }
.capture-band-medium { background: rgba(253,224,71,0.12); color: #fde047; }
.capture-band-low    { background: rgba(251,146,60,0.12); color: #fb923c; }
.capture-band-none   { background: rgba(148,163,184,0.12); color: #94a3b8; }

.capture-session {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.capture-session-head { font-size: 13px; margin-bottom: 4px; }
.capture-flags { margin: 8px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.capture-flag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.capture-flag-yes { background: rgba(74,222,128,0.15); color: #4ade80; }
.capture-flag-no  { background: rgba(148,163,184,0.12); color: #94a3b8; text-decoration: line-through; }

.capture-verdict {
  padding: 10px 12px;
  margin: 8px 0;
  border-left: 4px solid;
  border-radius: 0 4px 4px 0;
}
.capture-verdict.capture-band-high   { border-color: #4ade80; background: rgba(74,222,128,0.04); }
.capture-verdict.capture-band-medium { border-color: #fde047; background: rgba(253,224,71,0.04); }
.capture-verdict.capture-band-low    { border-color: #fb923c; background: rgba(251,146,60,0.04); }
.capture-verdict.capture-band-none   { border-color: #94a3b8; background: rgba(148,163,184,0.04); }

.capture-audio { display: block; width: 100%; margin: 8px 0 16px; }
.capture-detail-head { margin-bottom: 16px; }

.capture-score-breakdown {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 4px 0 6px;
  font-size: 10px; font-family: monospace;
}
.capture-score-breakdown span {
  background: rgba(148,163,184,0.12);
  color: #94a3b8;
  padding: 1px 5px;
  border-radius: 2px;
}
.capture-probe {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  margin: 4px 0;
  display: inline-block;
}
.capture-probe-ready        { background: rgba(74,222,128,0.12); color: #4ade80; }
.capture-probe-weak_or_no_signal { background: rgba(253,224,71,0.12); color: #fde047; }
.capture-probe-redirect     { background: rgba(251,146,60,0.12); color: #fb923c; }
.capture-probe-closed_empty { background: rgba(255,93,108,0.12); color: #ff5d6c; }
.capture-probe-no_audio_frames { background: rgba(255,93,108,0.12); color: #ff5d6c; }
.capture-probe-full_or_rejected { background: rgba(255,93,108,0.12); color: #ff5d6c; }
.capture-probe-protocol_error { background: rgba(148,163,184,0.12); color: #94a3b8; }
.capture-failure-explain {
  font-size: 12px;
  color: #fda4af;
  margin-top: 4px;
  font-style: italic;
}

/* Overall verdict banner at top of capture drawer */
.capture-overall {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.capture-overall-ok {
  background: rgba(74, 222, 128, 0.08);
  border-left: 4px solid #4ade80;
  color: #4ade80;
}
.capture-overall-running {
  background: rgba(34, 211, 238, 0.08);
  border-left: 4px solid var(--buoyiq-cyan, #22d3ee);
  color: var(--buoyiq-cyan, #22d3ee);
}
.capture-overall-failed {
  background: rgba(255, 93, 108, 0.06);
  border-left: 4px solid #ff5d6c;
  color: #fda4af;
}

/* Compact probe-only failure (collapsed) */
.capture-session-probe-fail {
  margin: 6px 0;
  padding: 8px 12px;
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 4px;
  background: rgba(255,255,255,0.01);
}
.capture-session-probe-fail .capture-session-head {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 2px;
}
.capture-failure-compact {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Short failure label in list view */
.capture-session-meta {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
  margin: 2px 0;
}
.capture-list-reason {
  font-size: 10px;
  color: #ff5d6c;
  margin-top: 2px;
}


/* ==========================================================================
   Schumann Resonance — Proprietary Interpretation Layer
   ========================================================================== */

/* ---- Schumann Resonance status bar ---- */
.sr-status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  margin: 0 0 2px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(53, 231, 255, 0.12);
  border-radius: 10px;
}
.sr-status-level {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  min-width: 60px;
  text-align: center;
  padding: 4px 12px;
  border-radius: 8px;
  line-height: 1.2;
}
.sr-status-level[data-level="high"] { color: #f97316; background: rgba(249, 115, 22, 0.12); }
.sr-status-level[data-level="elevated"] { color: #eab308; background: rgba(234, 179, 8, 0.1); }
.sr-status-level[data-level="moderate"] { color: #35e7ff; background: rgba(53, 231, 255, 0.08); }
.sr-status-level[data-level="calm"] { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.sr-status-level[data-level="quiet"] { color: #94a3b8; background: rgba(148, 163, 184, 0.08); }
.sr-status-level[data-level="unknown"] { color: #64748b; background: rgba(100, 116, 139, 0.08); }
.sr-status-label {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sr-status-detail {
  color: #cbd5e1;
  font-size: 0.85rem;
  flex: 1;
}

.sr-hero {
  padding: 28px 28px 14px;
  background: linear-gradient(180deg, rgba(3,7,18,0.95) 0%, var(--buoyiq-surface) 100%);
}
.sr-title {
  margin: 0;
  font-family: var(--buoyiq-font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--buoyiq-ice);
  text-shadow: 0 0 20px rgba(53,231,255,0.3);
}
.sr-subtitle {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--buoyiq-text-muted);
  letter-spacing: 0.04em;
}

.sr-ticker-wrap {
  overflow: hidden;
  background: #060a10;
  border-top: 1px solid rgba(255,154,61,0.25);
  border-bottom: 1px solid rgba(255,154,61,0.25);
  padding: 9px 0;
  position: relative;
}
.sr-ticker-wrap::before,
.sr-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 1;
  pointer-events: none;
}
.sr-ticker-wrap::before { left: 0; background: linear-gradient(90deg, #060a10, transparent); }
.sr-ticker-wrap::after  { right: 0; background: linear-gradient(270deg, #060a10, transparent); }
.sr-ticker {
  display: flex;
  white-space: nowrap;
  animation: sr-scroll 28s linear infinite;
}
.sr-ticker-text {
  font-family: var(--buoyiq-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--buoyiq-amber);
  text-shadow: 0 0 8px rgba(255,154,61,0.6), 0 0 20px rgba(255,154,61,0.2);
  padding: 0 40px;
}
.sr-live-tag {
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74,222,128,0.7), 0 0 24px rgba(74,222,128,0.25);
  animation: sr-live-pulse 2s ease-in-out infinite;
}
@keyframes sr-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes sr-live-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.sr-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(53,231,255,0.08);
}
@media (max-width: 700px) { .sr-panels { grid-template-columns: 1fr; } }
.sr-panel-card {
  position: relative;
  background: #040810;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
.sr-panel-card canvas { display: block; width: 100%; height: 100%; }
.sr-panel-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--buoyiq-font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--buoyiq-cyan);
  background: rgba(3,7,18,0.82);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(53,231,255,0.18);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.sr-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(53,231,255,0.08);
}
@media (max-width: 700px) { .sr-features { grid-template-columns: 1fr; } }
.sr-feature-card {
  background: #040810;
  padding: 22px 22px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sr-feat-label {
  font-family: var(--buoyiq-font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--buoyiq-text-dim);
  margin-bottom: 8px;
}
.sr-feat-value {
  font-family: var(--buoyiq-font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--buoyiq-cyan);
  text-shadow: 0 0 16px rgba(53,231,255,0.45);
  line-height: 1.1;
  margin-bottom: 8px;
}
.sr-feat-sub {
  font-size: 0.66rem;
  color: var(--buoyiq-text-dim);
  letter-spacing: 0.04em;
  margin-top: 6px;
}
.sr-feature-card canvas { display: block; width: 100%; height: 56px; }

.sr-signature-wrap {
  position: relative;
  background: #020508;
  overflow: hidden;
  aspect-ratio: 5 / 1;
}
.sr-signature-wrap canvas { display: block; width: 100%; height: 100%; }
.sr-sig-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--buoyiq-font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 24px rgba(53,231,255,0.8), 0 0 60px rgba(53,231,255,0.3);
  letter-spacing: 0.06em;
  pointer-events: none;
}

.sr-debug-toggle:hover { background: rgba(53,231,255,0.06); }
.sr-debug-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.sr-debug-panel {
  background: rgba(53,231,255,0.03);
  border: 1px solid var(--buoyiq-border);
  border-radius: var(--buoyiq-radius-sm);
  padding: 10px;
}
.sr-debug-panel img { width: 100%; display: block; border-radius: 4px; background: #0a0e14; }
.sr-debug-meta {
  font-size: 0.68rem;
  color: var(--buoyiq-text-dim);
  margin-top: 6px;
  word-break: break-all;
  font-family: var(--buoyiq-font-display);
}
.sr-debug-meta strong { color: var(--buoyiq-cyan); }

/* ---- EAS Tools page ---- */
.tools-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 1rem 1rem 0.5rem;
}
.tools-tab {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(53, 231, 255, 0.12);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tools-tab:hover {
  border-color: rgba(53, 231, 255, 0.35);
  color: #cbd5e1;
  background: rgba(53, 231, 255, 0.04);
}
.tools-tab.active {
  background: rgba(53, 231, 255, 0.1);
  border-color: rgba(53, 231, 255, 0.5);
  color: var(--buoyiq-cyan, #35e7ff);
  box-shadow: 0 0 8px rgba(53, 231, 255, 0.1);
}
.tools-frame-wrap {
  padding: 0 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.tools-open-external {
  text-align: right;
  padding: 0 4px 6px;
}
.tools-open-external a {
  color: #64748b;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.15s;
}
.tools-open-external a:hover {
  color: var(--buoyiq-cyan, #35e7ff);
}
.tools-frame {
  width: 100%;
  min-height: 900px;
  border: 1px solid rgba(53, 231, 255, 0.08);
  border-radius: 10px;
  background: #0b1120;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .tools-frame { min-height: 600px; }
  .tools-nav { gap: 4px; }
  .tools-tab { padding: 6px 10px; font-size: 0.72rem; }
}

/* ---- SDR receiver links ---- */
.sdr-link {
  color: var(--buoyiq-cyan, #35e7ff);
  text-decoration: none;
  transition: color 0.15s;
}
.sdr-link:hover {
  color: #fff;
  text-decoration: underline;
}
.clickable-row:hover {
  background: rgba(53, 231, 255, 0.04);
  cursor: pointer;
}

/* ---- SDR "Can Hear" band filter ---- */
.sdr-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(53, 231, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}
.sdr-filter-label {
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 6px;
}
.sdr-filter-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(53, 231, 255, 0.15);
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.sdr-filter-chip:hover {
  border-color: rgba(53, 231, 255, 0.4);
  color: #fff;
}
.sdr-filter-chip.active {
  background: rgba(53, 231, 255, 0.15);
  border-color: var(--buoyiq-cyan, #35e7ff);
  color: var(--buoyiq-cyan, #35e7ff);
  font-weight: 600;
}
.chip-count {
  color: #64748b;
  font-size: 0.72rem;
  margin-left: 4px;
}
.sdr-filter-chip.active .chip-count {
  color: rgba(53, 231, 255, 0.7);
}
.sdr-filter-divider {
  width: 1px;
  height: 22px;
  background: rgba(53, 231, 255, 0.15);
  margin: 0 6px;
}
.sdr-country-select {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(53, 231, 255, 0.15);
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  min-width: 180px;
}
.sdr-country-select:hover {
  border-color: rgba(53, 231, 255, 0.4);
  color: #fff;
}
.sdr-country-select:focus {
  outline: none;
  border-color: var(--buoyiq-cyan, #35e7ff);
}
