/* [PARTIAL: 01_tokens_and_base.css] */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-primary: #0b0f19;
  --bg-header: #1e293b;
  --bg-secondary: #111827;
  --bg-tertiary: #162032;
  --bg-tertiary-hover: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #243248;
  --bg-elevated: #1a2438;
  --border-subtle: #1f293d;
  --border-highlight: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #10b981;
  --accent-emerald-bg: rgba(16, 185, 129, 0.14);
  --accent-amber: #f59e0b;
  --accent-amber-bg: rgba(245, 158, 11, 0.14);
  --accent-rose: #f43f5e;
  --accent-rose-bg: rgba(244, 63, 94, 0.14);
  --border-focus: #818cf8;
}

html.light {
  --bg-primary: #f8fafc;
  --bg-header: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-tertiary-hover: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-highlight: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-blue: #0284c7;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-emerald-bg: rgba(5, 150, 105, 0.12);
  --accent-amber: #d97706;
  --accent-amber-bg: rgba(217, 119, 6, 0.12);
  --accent-rose: #e11d48;
  --accent-rose-bg: rgba(225, 29, 72, 0.10);
  --border-focus: #4f46e5;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.modal-open, body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only.is-visible {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
a { color: var(--accent-blue); }
button { font-family: inherit; }

/* [PARTIAL: 02_header_and_controls.css] */
/* Top Telemetry Bar & Navigation (Mirrors CellularIndex) */
.telemetry-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 14px;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.telemetry-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 240px;
  min-width: 0;
  gap: 2px;
  color: var(--text-secondary);
}
.telemetry-metrics-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.telemetry-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.telemetry-audit {
  color: var(--text-muted);
  font-size: 11px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
.telemetry-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.telemetry-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}
.telemetry-pill strong {
  color: var(--text-primary);
  font-weight: 700;
  margin-right: 4px;
}
.telemetry-pill-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  gap: 4px;
}
.telemetry-pill-link:hover {
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
}
.telemetry-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 auto;
}
.telemetry-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.telemetry-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 550;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 2px;
  white-space: nowrap;
}
.telemetry-link:hover,
.telemetry-link.active {
  color: var(--accent-indigo);
  text-decoration: underline;
}
.telemetry-link.active {
  font-weight: 700;
}
.region-selector {
  display: inline-flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.region-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 9999px;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.18s ease-in-out;
}
.region-btn:hover {
  color: var(--text-primary);
}
.region-btn.active {
  background: var(--bg-card);
  color: var(--accent-blue);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.18), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.region-btn[data-region="CA"].active {
  color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2), 0 1px 2px rgba(0, 0, 0, 0.08);
}
html.dark .region-btn[data-region="CA"].active {
  color: #f87171;
}
.flag-icon {
  width: 17px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}
.reset-pill-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  outline: none;
}
.reset-pill-trigger {
  cursor: help;
}
.reset-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 270px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 500;
  white-space: normal;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.reset-pill-wrap:hover .reset-tooltip,
.reset-pill-wrap:focus .reset-tooltip,
.reset-pill-wrap:focus-within .reset-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.telemetry-theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0 8px;
  height: 30px;
  min-height: 30px;
  box-sizing: border-box;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.telemetry-theme-btn:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* BETA Pill & Popover Tooltip */
.beta-pill-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  vertical-align: middle;
}
.beta-pill-amber {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6.5px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.45);
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s;
}
html.light .beta-pill-amber {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
  border: 1px solid rgba(202, 138, 4, 0.4);
}
.beta-warning-svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -1px;
}
.beta-pill-wrap:hover .beta-pill-amber,
.beta-pill-wrap:focus-within .beta-pill-amber,
.beta-pill-wrap.active .beta-pill-amber {
  background: rgba(234, 179, 8, 0.28);
  border-color: #facc15;
}
html.light .beta-pill-wrap:hover .beta-pill-amber,
html.light .beta-pill-wrap:focus-within .beta-pill-amber,
html.light .beta-pill-wrap.active .beta-pill-amber {
  background: rgba(234, 179, 8, 0.25);
  border-color: #ca8a04;
}
.beta-tooltip {
  position: absolute;
  top: calc(100% + 7px);
  left: -10px;
  width: 270px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 8px;
  padding: 9px 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
  z-index: 130;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-align: left;
}
.beta-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 24px;
  width: 8px;
  height: 8px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-highlight);
  border-top: 1px solid var(--border-highlight);
  transform: rotate(45deg);
}
.beta-tooltip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--accent-amber);
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.beta-tooltip-text {
  color: var(--text-primary);
  font-size: 11px;
  line-height: 1.4;
}
.beta-tooltip-highlight {
  color: var(--text-secondary);
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.35;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5px;
}
.beta-pill-wrap:hover .beta-tooltip,
.beta-pill-wrap:focus-within .beta-tooltip,
.beta-pill-wrap.active .beta-tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Main Page Wrap & Hero Header (Mirrors CellularIndex) */
.page-wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding: 16px 16px 88px;
}
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(30, 58, 138, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
a.brand-logo:hover {
  transform: scale(1.05);
  opacity: 0.95;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}
.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.brand-title-row h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.brand-title-row .tagline {
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
}
.brand-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.brand-title-link:hover {
  color: var(--accent-blue);
}
.subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
}
.desktop-header-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
  max-width: 100%;
}
.header-spotlight-card {
  --spot-bg: #171c37;
  --spot-bg-hover: #1d2445;
  --spot-border: rgba(129, 140, 248, 0.40);
  --spot-border-hover: rgba(129, 140, 248, 0.65);
  --spot-pill-bg: #4f46e5;
  --spot-tab-text: #a5b4fc;
  display: flex;
  flex-direction: column;
  min-width: 332px;
  max-width: 100%;
}
html.light .header-spotlight-card {
  --spot-bg: #f3f3fe;
  --spot-bg-hover: #ececfd;
  --spot-border: rgba(99, 102, 241, 0.35);
  --spot-border-hover: rgba(99, 102, 241, 0.58);
  --spot-pill-bg: #4f46e5;
  --spot-tab-text: #4338ca;
}
.header-spotlight-card[data-active-tab="trials"] {
  --spot-bg: #2a2317;
  --spot-bg-hover: #352b1b;
  --spot-border: rgba(245, 158, 11, 0.42);
  --spot-border-hover: rgba(245, 158, 11, 0.68);
  --spot-pill-bg: #b45309;
  --spot-tab-text: #fbbf24;
}
html.light .header-spotlight-card[data-active-tab="trials"] {
  --spot-bg: #fef5e7;
  --spot-bg-hover: #fdecd2;
  --spot-border: rgba(245, 158, 11, 0.42);
  --spot-border-hover: rgba(245, 158, 11, 0.65);
  --spot-pill-bg: #b45309;
  --spot-tab-text: #b45309;
}
.header-spotlight-card[data-active-tab="coverage"] {
  --spot-bg: #0c2726;
  --spot-bg-hover: #0f3230;
  --spot-border: rgba(16, 185, 129, 0.40);
  --spot-border-hover: rgba(16, 185, 129, 0.65);
  --spot-pill-bg: #047857;
  --spot-tab-text: #34d399;
}
html.light .header-spotlight-card[data-active-tab="coverage"] {
  --spot-bg: #ecf9f5;
  --spot-bg-hover: #ddf5ed;
  --spot-border: rgba(16, 185, 129, 0.38);
  --spot-border-hover: rgba(16, 185, 129, 0.62);
  --spot-pill-bg: #047857;
  --spot-tab-text: #047857;
}
.header-spotlight-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 0 6px;
}
.header-spotlight-tab {
  appearance: none;
  position: relative;
  margin-bottom: -1px;
  border: 1px solid var(--border-subtle);
  border-bottom: 0;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 8px 8px 0 0;
  padding: 4px 8px;
  min-height: 24px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.header-spotlight-tab:hover {
  color: var(--text-primary);
}
.header-spotlight-tab.is-active {
  z-index: 2;
  background: var(--spot-bg);
  border-color: var(--spot-border);
  color: var(--spot-tab-text);
  font-weight: 700;
}
.header-spotlight-tab:focus-visible,
.header-spotlight-panel:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
.header-spotlight-body {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  border: 1px solid var(--spot-border);
  background: var(--spot-bg);
  padding: 7px 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.header-spotlight-card:hover .header-spotlight-body,
.header-spotlight-card:hover .header-spotlight-tab.is-active {
  border-color: var(--spot-border-hover);
  background: var(--spot-bg-hover);
}
.header-spotlight-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 7px;
  text-decoration: none;
  max-width: 100%;
}
.header-spotlight-panel[hidden] {
  display: none !important;
}
.header-spotlight-panel:hover .header-cta-pill,
.header-spotlight-panel:hover .mobile-cta-pill {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.header-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
.header-cta-kicker {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}
.header-cta-sub {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
}
.header-cta-pill {
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--spot-pill-bg);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.mobile-unified-header,
.mobile-home-hero {
  display: none;
}

@media (max-width: 768px) {
  .telemetry-bar,
  .desktop-header-wrap,
  .desktop-header-cta {
    display: none !important;
  }
  .hero-header {
    border-bottom: none !important;
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    display: block !important;
  }
  .mobile-unified-header {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    position: relative;
    z-index: 60;
  }
  .mobile-unified-header--edge {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    margin-bottom: 0;
  }
  .mobile-header-toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 8px;
    gap: 4px;
    min-height: 50px;
  }
  .mobile-brand-cluster {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex-shrink: 1;
  }
  .brand-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
    flex-shrink: 1;
  }
  .brand-group img {
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
  }
  .brand-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-brand-cluster .beta-pill-wrap {
    flex-shrink: 0;
  }
  .mobile-brand-cluster .beta-pill-amber {
    font-size: 8px;
    padding: 1.5px 4px;
    gap: 2px;
  }
  .mobile-brand-cluster .beta-tooltip {
    left: -52px;
    width: min(270px, calc(100vw - 24px));
  }
  .mobile-brand-cluster .beta-tooltip::before {
    left: 68px;
  }
  .top-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .region-selector.region-selector-mobile {
    padding: 2px;
    gap: 1px;
  }
  .region-selector.region-selector-mobile .region-btn {
    padding: 3px 5px;
    font-size: 10px;
    gap: 3px;
  }
  .region-selector.region-selector-mobile .flag-icon {
    width: 13px;
    height: 9px;
  }
  .mobile-menu-pill {
    height: 36px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.38);
    background: rgba(99, 102, 241, 0.11);
    color: var(--accent-indigo);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }
  .mobile-menu-pill:active {
    transform: scale(0.96);
  }
  .mobile-menu-pill[aria-expanded="true"] {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: #ffffff;
  }
  .mobile-nav-drawer {
    display: none;
    flex-direction: column;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 10px 12px 12px;
    gap: 6px;
  }
  .mobile-nav-drawer.open {
    display: flex;
  }
  .mobile-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
  }
  .mobile-drawer-link.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: var(--accent-indigo);
    font-weight: 700;
  }
  .mobile-drawer-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
  }
  .mobile-drawer-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid var(--border-subtle);
  }
  .mobile-drawer-util-btn {
    flex: 1;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }
  .mobile-telemetry-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    font-size: 10.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    gap: 8px;
  }
  .mobile-telemetry-strip .telemetry-status-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary);
    font-weight: 600;
  }
  .mobile-telemetry-strip strong {
    color: var(--text-primary);
    font-weight: 700;
  }
  .mobile-home-hero {
    display: block;
    padding: 2px 2px 6px;
  }
  .header-4c-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.015em;
  }
  .header-4c-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
    margin-bottom: 0;
    line-height: 1.4;
  }
  .header-spotlight-card--mobile {
    margin-top: 8px;
    width: 100%;
    min-width: 0;
  }
  .header-spotlight-card--mobile .header-spotlight-tabs {
    padding: 0 4px;
  }
  .header-spotlight-card--mobile .header-spotlight-tab {
    min-height: 36px;
    font-size: 11.5px;
  }
  .header-spotlight-card--mobile .header-spotlight-body {
    padding: 7px 10px;
  }
  .header-spotlight-card--mobile .header-spotlight-panel {
    min-height: 36px;
    gap: 8px;
  }
  .mobile-cta-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
  }
  .mobile-cta-pill {
    padding: 6px 10px;
    border-radius: 7px;
    background: var(--spot-pill-bg, #4f46e5);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }
}
@media (max-width: 390px) {
  .brand-name {
    font-size: 12px;
  }
}
.control-deck {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 40;
}
.deck-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.deck-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.seg-btn:hover { color: var(--text-primary); }
.seg-btn.active {
  background: var(--bg-card);
  color: var(--accent-blue);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.search-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 7px;
  min-width: 190px;
  max-width: 100%;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}
.util-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.util-btn:hover { border-color: var(--border-highlight); }

/* 4-Column Responsive Footer Grid & Accordion */
.site-footer {
  max-width: 1440px;
  margin: 48px auto 0;
  padding: 28px 16px 96px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}
.footer-brand {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 20px auto 28px auto;
  text-align: left;
  box-sizing: border-box;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-details {
  width: 100%;
}
.footer-summary {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
  user-select: none;
}
.footer-summary-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-summary::-webkit-details-marker {
  display: none;
}
.footer-summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  display: none;
}
.footer-details[open] .footer-summary::after {
  content: '−';
}
.footer-links {
  list-style: none;
  padding: 8px 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-links li a:hover {
  color: var(--accent-indigo);
  text-decoration: underline;
}
.footer-disclaimer {
  max-width: 980px;
  margin: 24px auto 0 auto;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
}
.footer-disclaimer strong {
  color: var(--text-secondary);
}
.footer-disclaimer a {
  color: var(--accent-indigo);
  text-decoration: underline;
}
.footer-copyright {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 960px) and (min-width: 641px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 16px;
  }
}
@media (max-width: 640px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 16px;
  }
  .footer-col {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
  }
  .footer-summary::after {
    display: block;
  }
  .footer-links {
    padding-left: 8px;
  }
  .footer-brand {
    font-size: 12px;
    padding: 0 16px;
  }
  .footer-disclaimer {
    margin: 20px 16px 0 16px;
  }
}

@media (max-width: 1020px) and (min-width: 769px) {
  .telemetry-bar {
    padding: 6px 12px;
    gap: 6px 8px;
  }
  .hero-header {
    align-items: flex-start;
  }
  .desktop-header-cta {
    width: 100%;
  }
  .desktop-header-cta .header-spotlight-card {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .telemetry-bar { padding: 8px 12px; }
  .page-wrap { padding: 12px 16px 96px; }
  .control-deck { padding: 9px 10px; gap: 8px; }
  .deck-group { width: 100%; }
  .deck-group:last-child { flex-wrap: nowrap; }
  .search-input { flex: 1 1 0%; width: auto; min-width: 0; }
  .util-btn { flex-shrink: 0; }
}

/* [PARTIAL: 03_matrix_and_ledger.css] */
/* Desktop 2D Matrix (CellularIndex border-collapse: separate geometry) */
.matrix-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
table.matrix-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.matrix-table thead th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-highlight);
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 20;
}
.matrix-table thead th:first-child {
  width: 196px;
  left: 0;
  z-index: 30;
}
.matrix-table thead th:last-child { border-right: none; }

/* Two-cell sticky Tier Divider Row (shown in Default Tier sort only) */
tr.matrix-tier-divider td {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-secondary);
}
tr.matrix-tier-divider td.tier-divider-col {
  width: 196px;
  position: sticky;
  left: 0;
  z-index: 15;
  background: var(--bg-tertiary);
}
.matrix-wrapper.is-ranked tr.matrix-tier-divider { display: none; }
.tier-divider-badge {
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-blue);
}

/* Carrier Rows */
tr.matrix-row.is-filtered-out { display: none; }
tr.matrix-row td {
  vertical-align: top;
  padding: 7px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
tr.matrix-row td:last-child { border-right: none; }
tr.matrix-row td.provider-col {
  width: 196px;
  position: sticky;
  left: 0;
  z-index: 15;
  background: var(--bg-card);
  padding: 9px 11px 9px 9px;
}
tr.matrix-row td:nth-child(2) {
  padding-left: 25px;
}

/* Edge-Docked Protruding DETAILS Drawer Bar (CellularIndex Parity) */
.edge-rail-divider {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 30;
  user-select: none;
}
.rail-vertical-line {
  position: absolute;
  right: -1.5px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--carrier-accent, #6366f1);
  opacity: 0.35;
  transition: all 0.22s ease;
}
.btn-row-expand.protruding-drawer-bar {
  position: absolute;
  right: -19px;
  top: 8px;
  bottom: 8px;
  width: 20px;
  background: var(--bg-card);
  border: 2px solid var(--carrier-accent, #6366f1);
  border-left: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--carrier-accent, #6366f1);
  box-shadow: 3px 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2px 0 0;
  margin: 0;
  gap: 5px;
  overflow: hidden;
  z-index: 35;
  line-height: 1;
}
.btn-row-expand .drawer-text-details {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
}
.btn-row-expand .drawer-mini-chevron {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.22s ease;
}
.edge-rail-divider:hover .btn-row-expand,
.matrix-table td.provider-col:hover .btn-row-expand {
  right: -22px;
  width: 23px;
  background: var(--carrier-accent, #6366f1);
  color: #ffffff;
}
.edge-rail-divider:hover .rail-vertical-line,
.matrix-table td.provider-col:hover .rail-vertical-line {
  opacity: 0.95;
  width: 4px;
}
tr.matrix-row.is-collapsed .btn-row-expand.protruding-drawer-bar {
  top: 4px;
  bottom: 4px;
  gap: 3px;
  border-radius: 0 8px 8px 0;
}
tr.matrix-row.is-collapsed .btn-row-expand .drawer-mini-chevron {
  transform: scaleX(-1);
}
html.light .btn-row-expand.protruding-drawer-bar {
  background: #ffffff;
  box-shadow: 3px 2px 10px rgba(0, 0, 0, 0.10);
}

.carrier-top-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.carrier-top-wrap .rank-badge {
  position: absolute;
  top: -2px;
  right: -2px;
}
.carrier-hero-logo-link {
  background: none;
  border: none;
  padding: 2px 4px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carrier-hero-logo-img {
  max-height: 30px;
  max-width: 146px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
html:not(.light) .carrier-logo-img {
  filter: brightness(1.08);
}
.carrier-prepaid-subline {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: -1px 0 6px;
}
.carrier-header-row2 {
  margin-bottom: 7px;
}
.provider-operator-badge {
  display: flex;
  align-items: center;
  font-size: 10px;
  line-height: 1.25;
  padding: 3px 7px;
  border-radius: 5px;
  font-weight: 700;
  width: 100%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.provider-operator-badge.operator-major_network {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
  color: #4f46e5;
}
html:not(.light) .provider-operator-badge.operator-major_network { color: #818cf8; }
.provider-operator-badge.operator-carrier_brand {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.28);
  color: #9333ea;
}
html:not(.light) .provider-operator-badge.operator-carrier_brand { color: #c084fc; }
.provider-operator-badge.operator-independent {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.28);
  color: #0284c7;
}
html:not(.light) .provider-operator-badge.operator-independent { color: #38bdf8; }
.provider-operator-badge.operator-cable_bundled {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.28);
  color: #d97706;
}
html:not(.light) .provider-operator-badge.operator-cable_bundled { color: #fbbf24; }
.provider-operator-badge.operator-hybrid {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.28);
  color: #ea580c;
}
html:not(.light) .provider-operator-badge.operator-hybrid { color: #fb923c; }
.provider-operator-badge.operator-regional_mno {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.28);
  color: #0891b2;
}
html:not(.light) .provider-operator-badge.operator-regional_mno { color: #22d3ee; }

.info-stack {
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-line {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--text-secondary);
}
.info-check {
  font-weight: 800;
  font-size: 12px;
  line-height: 1.15;
  flex-shrink: 0;
}
.info-net-label {
  font-weight: 700;
  color: var(--text-primary);
}
.info-icon {
  font-size: 11px;
  line-height: 1.2;
  flex-shrink: 0;
}
.info-key {
  font-weight: 700;
  color: var(--text-primary);
}
.info-val {
  color: var(--text-secondary);
}
.carrier-name-text {
  font-weight: 800;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-badge {
  display: none;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  flex-shrink: 0;
}
.matrix-wrapper.is-ranked .rank-badge,
.mobile-ledger.is-ranked .rank-badge { display: inline-flex; }

.carrier-meta {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.net-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Carrier Vote Box */
.carrier-vote-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.carrier-vote-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vote-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.vote-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vote-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 5px;
  height: 24px;
  min-width: 24px;
  padding: 0 5px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}
.vote-btn:hover { border-color: var(--border-highlight); color: var(--text-primary); }
.vote-btn.active-up {
  background: var(--accent-emerald-bg);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}
.vote-btn.active-down {
  background: var(--accent-rose-bg);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}
.vote-score {
  font-size: 11.5px;
  font-weight: 800;
  min-width: 30px;
  text-align: center;
  color: var(--text-primary);
}
.vote-score.pos { color: var(--accent-emerald); }
.vote-score.neg { color: var(--accent-rose); }

.approval-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}
.approval-badge.good { color: var(--accent-emerald); }
.approval-badge.bad { color: var(--accent-rose); }

.top-tag-pill {
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-tag-pill.praise { background: var(--accent-emerald-bg); color: var(--accent-emerald); }
.top-tag-pill.issue { background: var(--accent-rose-bg); color: var(--accent-rose); }
.top-tag-pill.neutral { background: var(--bg-tertiary); color: var(--text-muted); }

/* Plan Cards */
.plan-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 7px;
  transition: border-color 0.14s ease;
}
.plan-card:hover { border-color: var(--border-highlight); }
.card-spec-bar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 5px;
}
.spec-row-primary {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3px;
}
.spec-row-secondary {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3px;
}
.matrix-wrapper.is-expanded .spec-row-secondary,
tr.matrix-row:not(.is-collapsed) .spec-row-secondary,
.mobile-ledger.is-expanded .spec-row-secondary {
  display: grid;
}
.spec-seg {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2.5px 4px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg-express {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.seg-standard {
  background: rgba(2, 132, 199, 0.10);
  color: var(--accent-blue);
  border: 1px solid rgba(2, 132, 199, 0.22);
}
.seg-hotspot, .seg-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px;
}
.plan-title-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-title-btn:hover { color: var(--accent-blue); text-decoration: underline; }
.plan-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}
.plan-price span { font-size: 9.5px; font-weight: 600; color: var(--text-secondary); }
.tax-tag {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.plan-vote-strip {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.plan-vote-strip .vote-btn {
  height: 21px;
  min-width: 21px;
  font-size: 9.5px;
  padding: 0 4px;
}
.plan-vote-strip .vote-score { font-size: 10.5px; min-width: 26px; }
.plan-vote-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.plan-tag-mini {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78px;
}
.plan-tag-mini.praise { background: var(--accent-emerald-bg); color: var(--accent-emerald); }
.plan-tag-mini.issue { background: var(--accent-rose-bg); color: var(--accent-rose); }
.plan-tag-mini.neutral { background: var(--bg-tertiary); color: var(--text-muted); }

.plan-expanded {
  display: none;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  line-height: 1.48;
  color: var(--text-secondary);
}
.plan-editorial-copy {
  margin-bottom: 6px;
}
.matrix-wrapper.is-expanded .plan-expanded,
tr.matrix-row:not(.is-collapsed) .plan-expanded,
.mobile-ledger.is-expanded .plan-expanded { display: block; }
.ci-funnel-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
}
.ci-funnel-link:hover { text-decoration: underline; }
.empty-cell {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px 4px;
}

/* Mobile Ledger (< 1080px) */
.mobile-ledger { display: none; flex-direction: column; gap: 10px; }
.ledger-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}
.ledger-group.is-filtered-out { display: none; }
.ledger-carrier-bar {
  background: var(--bg-tertiary);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ledger-plan-list {
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1079px) {
  .matrix-wrapper { display: none; }
  .mobile-ledger { display: flex; }
}

/* [PARTIAL: 04_snackbar_modals_subpages.css] */
/* Floating Bottom Reason Tag Snackbar (Zero CLS) */
.tag-snackbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(130%);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  background: var(--bg-header);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(94vw, 680px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.tag-snackbar.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.snackbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.snackbar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.snackbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.snackbar-row-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  min-width: 78px;
}
.snackbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag-pill-btn {
  border: 1px solid var(--border-highlight);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.tag-pill-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.tag-pill-btn.selected-status {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}
.tag-pill-btn.selected-up {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
}
.tag-pill-btn.selected-down {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #fff;
}
.snackbar-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.snackbar-close.is-done {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}
.snackbar-bill-row {
  display: none;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}
.snackbar-bill-row.is-visible {
  display: flex;
}
.snackbar-bill-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bill-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bill-currency {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}
.bill-input {
  width: 82px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  font-size: 11.5px;
  padding: 4px 7px;
  border-radius: 6px;
}
.bill-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}
.bill-hint {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Spec & Community Tag Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 150;
  overscroll-behavior: contain;
}
.modal-backdrop.open { display: flex; }
.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  width: min(95vw, 640px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
}
.modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.modal-close-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
  font-weight: 700;
}
.modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spec-table-box {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}
.spec-kv-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 12px;
}
.spec-kv-row:last-child { border-bottom: none; }
.spec-k { color: var(--text-secondary); font-weight: 600; }
.spec-v { color: var(--text-primary); }
.modal-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}
.btn-ci-primary {
  background: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-ci-primary:hover { opacity: 0.92; }

/* Rankings Leaderboard Page */
.rankings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 44px 116px 1fr auto;
  align-items: center;
  gap: 12px;
}
.rank-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-amber);
  text-align: center;
}
.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rank-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.rank-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rank-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.rank-divider-banner {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 4px 2px;
}

/* Subpages (/about, /privacy, /terms, /404) */
.subpage-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.page-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-hero h1, .page-hero h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-hero .lead {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge-blue {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-blue);
  border-color: rgba(2, 132, 199, 0.24);
}
.badge-emerald {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.24);
}
.badge-purple {
  background: rgba(129, 140, 248, 0.14);
  color: var(--accent-indigo);
  border-color: rgba(129, 140, 248, 0.25);
}
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 20px;
}
.content-card h1, .content-card h2 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.content-card h3 {
  margin: 14px 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.content-card p, .content-card li {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.content-card ul {
  margin: 8px 0;
  padding-left: 20px;
}
.content-card li { margin-bottom: 6px; }
.content-card strong { color: var(--text-primary); }
.callout-box {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-blue);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--text-primary);
}
.warning-box {
  background: var(--accent-amber-bg);
  border-left: 3px solid var(--accent-amber);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--text-primary);
}
.contact-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 10px;
}
.contact-box h3 { margin-top: 0; }
.contact-email-link {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
}
.contact-email-link:hover { text-decoration: underline; }

.turnstile-hidden-host {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

@media (max-width: 680px) {
  .rank-row {
    grid-template-columns: 34px 1fr;
    gap: 8px;
  }
  .rank-right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .spec-kv-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
