:root {
  --brand: #0ea5a4;
  --brand-hover: #0b8b8a;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #ffffff;
  --canvas: #f8fafc;
  --border: #e2e8f0;
  --available: #16a34a;
  --in-use: #2563eb;
  --out-of-service: #dc2626;
  --stale: #d97706;
  --unknown: #94a3b8;
  --source-unavailable: #94a3b8;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 6%);
  --shadow-md: 0 4px 16px rgb(15 23 42 / 10%);
  --radius-card: 12px;
  --radius-pill: 999px;
  --header-h: 56px;
  --focus-ring: 2px solid var(--brand);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: var(--canvas);
  --fg: var(--ink);
  --accent: var(--brand);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --surface: #1e293b;
    --canvas: #0f172a;
    --border: #334155;
    --bg: #0f172a;
    --fg: #f1f5f9;
    --shadow-md: 0 4px 16px rgb(0 0 0 / 35%);
  }
  .toast {
    background: #e2e8f0;
    color: #0f172a;
  }
  .filter-drawer__backdrop {
    background: rgb(0 0 0 / 55%);
  }
  .chip[aria-pressed="true"], .chip.is-active {
    color: #fff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

a { color: var(--brand); text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--brand); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem;
  color: var(--fg); text-decoration: none;
}
.site-header .logo img { width: 28px; height: 28px; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a {
  color: var(--fg); text-decoration: none; font-size: 0.933rem;
}
.site-header nav a:hover { color: var(--brand); }
.nav-toggle {
  display: none; border: 0; background: transparent; padding: 8px;
  color: var(--fg); cursor: pointer;
}
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .site-header nav {
    display: none;
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px; gap: 12px; z-index: 60;
    box-shadow: var(--shadow-md);
  }
  .site-header nav.is-open { display: flex; }
}

.site-footer {
  padding: 16px; font-size: 0.867rem; color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
}
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

body.map-page .site-footer { display: none; }
body.map-page main { padding: 0; }

.page-content { max-width: 48rem; margin: 0 auto; padding: 24px 16px 48px; }
.prose { max-width: 72ch; }
.prose p { margin: 12px 0; }
.prose-narrow { max-width: 48rem; margin: 0 auto; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-card);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--fg); font: inherit; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 0.867rem; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--fg);
  font-size: 0.867rem; white-space: nowrap; cursor: pointer;
}
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.867rem; font-weight: 600;
}
.status-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
}
.status-pill--available { background: rgb(22 163 74 / 12%); color: var(--available); }
.status-pill--available::before { background: var(--available); }
.status-pill--in-use { background: rgb(37 99 235 / 12%); color: var(--in-use); }
.status-pill--in-use::before { background: var(--in-use); }
.status-pill--out-of-service { background: rgb(220 38 38 / 12%); color: var(--out-of-service); }
.status-pill--out-of-service::before {
  background: transparent; border-radius: 0; width: 8px; height: 8px;
  border: 2px solid var(--out-of-service); transform: rotate(45deg);
}
.status-pill--stale { background: rgb(217 119 6 / 12%); color: var(--stale); }
.status-pill--stale::before { background: var(--stale); }
.status-pill--unknown { background: rgb(148 163 184 / 15%); color: var(--unknown); }
.status-pill--unknown::before { background: var(--unknown); }
.status-pill--source-unavailable {
  background: transparent; color: var(--source-unavailable);
  border: 1px dashed var(--source-unavailable);
}
.status-pill--source-unavailable::before { background: var(--source-unavailable); }

.status-available { color: var(--available); font-weight: 600; }
.status-out-of-service { color: var(--out-of-service); font-weight: 600; }

.dot-available { background: var(--available); }
.dot-in-use { background: var(--in-use); }
.dot-out-of-service { background: var(--out-of-service); }
.dot-stale { background: var(--stale); }
.dot-unknown { background: var(--unknown); }

/* Map shell */
.map-shell {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 320px;
  background: var(--canvas);
}
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-left-column {
  position: absolute; top: 16px; left: 16px; bottom: 52px;
  width: 380px; max-width: calc(100vw - 32px);
  z-index: 10; pointer-events: none;
  display: flex; flex-direction: column; gap: 8px;
}
.map-left-column > * { pointer-events: auto; }

.map-overlay-top {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  max-width: 420px; width: 100%;
}

.search-card {
  width: 100%; background: var(--surface);
  border-radius: var(--radius-card); box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.search-input-wrap {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
}
.search-input-wrap svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; border: 0; background: transparent; font: inherit; min-width: 0;
  color: var(--fg);
}
.search-input-wrap input::placeholder { color: var(--muted); opacity: 1; }
.search-input-wrap input:focus { outline: none; }
.icon-btn {
  border: 0; background: transparent; padding: 6px; cursor: pointer;
  color: var(--muted); border-radius: 8px;
}
.icon-btn:hover { color: var(--brand); background: rgb(14 165 164 / 10%); }

.search-suggestions {
  border-top: 1px solid var(--border); max-height: 280px; overflow: auto;
  list-style: none; margin: 0; padding: 4px 0;
}
.search-suggestions:empty { display: none; }
.search-suggestions li.search-suggest-group {
  padding: 8px 12px 4px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  list-style: none;
}
.search-suggestions li button {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; font: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  color: var(--fg);
}
.search-suggestions li button:hover,
.search-suggestions li button.is-active { background: rgb(14 165 164 / 8%); }
.suggestion-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Chips wrap onto 2–3 rows instead of a thin horizontal scrollbar (owner feedback 2026-10-12). */
#filter-chips {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-height: 34px;
}
#filter-chips-dynamic { display: contents; }
#filter-chips [hidden] { display: none; }
#filter-chips .chip {
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  max-height: 36px;
  padding: 0 12px;
  line-height: 1;
}
.map-load-error {
  font-size: 0.867rem; color: var(--out-of-service); margin: 0; padding: 0 4px;
}
.connector-row svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink); }

.map-results-panel {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.map-list-footer { padding: 8px 16px; font-size: 0.867rem; margin: 0; }
.map-list-hint {
  padding: 12px 16px; font-size: 0.867rem; color: var(--muted);
  list-style: none; border-bottom: 1px solid var(--border);
}

/* Phones/tablets: keep search + filter chips floating at the top; the list lives in the bottom sheet. */
@media (max-width: 1023px) {
  .map-left-column { top: 12px; left: 12px; right: 12px; bottom: auto; width: auto; max-width: none; }
  .map-overlay-top { max-width: none; }
  .map-left-column .map-results-panel { display: none; }
}
.map-bottom-sheet[data-snap="peek"] .sheet-list-head { display: none; }
.map-results-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.map-results-list {
  flex: 1; overflow: auto; margin: 0; padding: 0; list-style: none;
}
.map-results-list li { border-bottom: 1px solid var(--border); }
.map-results-list button {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 12px 16px; font: inherit; cursor: pointer;
  color: var(--fg);
}
.map-results-list button strong { color: var(--fg); font-weight: 600; }
.map-results-list button:hover, .map-results-list button.is-highlighted {
  background: rgb(14 165 164 / 8%);
}
.result-meta { font-size: 0.867rem; color: var(--muted); margin-top: 4px; }

.map-preview {
  padding: 16px; border-top: 1px solid var(--border);
  display: none;
}
.map-preview.is-visible { display: block; }
.map-preview__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.station-detail-panel {
  position: absolute; top: 16px; right: 16px;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100% - 32px);
  z-index: 12; pointer-events: none;
  display: none;
}
.station-detail-panel.is-open {
  display: block; pointer-events: auto;
}
.station-detail-panel .station-detail__inner {
  max-height: calc(100vh - var(--header-h) - 32px); overflow: auto;
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  padding: 16px 16px 20px; position: relative;
}
.station-detail__close {
  position: absolute; top: 8px; right: 8px;
}
.station-detail__title {
  font-size: 1.15rem; margin: 0 36px 8px 0; line-height: 1.3;
  color: var(--fg);
}
.cluster-detail-list {
  list-style: none; margin: 0; padding: 0;
}
.cluster-detail-list li { border-bottom: 1px solid var(--border); }
.cluster-detail-list button {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 0; font: inherit; cursor: pointer; color: var(--fg);
}
.cluster-detail-list button:hover { background: rgb(14 165 164 / 8%); }
.station-detail__address { font-size: 0.933rem; margin: 8px 0; }
.station-detail__summary { font-size: 0.933rem; color: var(--muted); margin: 8px 0 12px; }
.connector-rows {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; gap: 8px;
}
.connector-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--canvas);
  border-radius: 10px; font-size: 0.867rem;
}
.conn-avail { color: var(--muted); font-variant-numeric: tabular-nums; }
.connector-row .status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-left: auto;
}
.map-truncation-notice {
  font-size: 0.8rem; color: var(--muted); margin: 0; padding: 0 4px;
}
.map-bottom-sheet.is-station-open .sheet-list-head,
.map-bottom-sheet.is-station-open #station-list-mobile,
.map-bottom-sheet.is-station-open .sheet-peek { display: none !important; }
.map-bottom-sheet.is-station-open { max-height: 72vh !important; }
.sheet-list-head {
  padding: 0 16px 8px; font-weight: 600; font-size: 0.933rem;
  color: var(--fg);
}
@media (max-width: 1023px) {
  .station-detail-panel { display: none !important; }
  #station-preview-mobile.map-preview.is-visible {
    display: block; padding: 0 0 12px; border-top: 0;
  }
#station-preview-mobile .station-detail__title { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  .map-legend-pill {
    left: auto; right: 16px; bottom: 48px;
    max-width: min(420px, calc(100% - 420px));
  }
  .maplibregl-ctrl-bottom-right { margin-bottom: 88px !important; }
}
@media (max-width: 1023px) {
  .map-legend-pill { bottom: 108px; max-width: calc(100% - 24px); }
}

.map-bottom-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
  background: var(--surface); border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  max-height: 92vh;
}
@media (min-width: 1024px) { .map-bottom-sheet { display: none; } }
.sheet-handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: var(--radius-pill); margin: 8px auto;
}
.sheet-peek { padding: 0 16px 12px; font-weight: 600; cursor: pointer; color: var(--fg); }
.sheet-body { overflow: auto; padding: 0 16px 16px; flex: 1; }

.map-legend-pill {
  position: absolute; bottom: 16px; left: 16px; z-index: 10;
  background: var(--surface); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  font-size: 0.8rem; padding: 6px 12px; max-width: calc(100% - 32px);
}
.map-legend-pill summary { cursor: pointer; list-style: none; }
.map-legend-pill summary::-webkit-details-marker { display: none; }
.map-legend-expanded { margin-top: 8px; display: grid; gap: 4px; color: var(--muted); }

.map-controls-note {
  position: absolute; bottom: 8px; right: 8px; z-index: 10;
  font-size: 0.75rem; color: var(--muted);
}
.maplibregl-ctrl-bottom-right { margin-bottom: 40px !important; }

.no-webgl-panel {
  position: absolute; inset: 0; z-index: 20;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: var(--canvas);
}
.no-webgl-panel.is-visible { display: flex; }
.no-webgl-panel .card {
  max-width: 28rem; padding: 24px; background: var(--surface);
  border-radius: var(--radius-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.map-empty-state {
  position: absolute; inset: 0; z-index: 8;
  display: none; align-items: center; justify-content: center;
  padding: 24px; pointer-events: none; text-align: center;
}
.map-empty-state.is-visible { display: flex; }
.map-empty-state .card {
  pointer-events: auto; max-width: 24rem; padding: 20px;
  background: var(--surface); border-radius: var(--radius-card);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}

.filter-drawer {
  position: fixed; inset: 0; z-index: 100; display: none;
}
.filter-drawer.is-open { display: block; }
.filter-drawer__backdrop {
  position: absolute; inset: 0; background: rgb(15 23 42 / 40%);
}
.filter-drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(100%, 360px);
  background: var(--surface); padding: 16px; overflow: auto;
  box-shadow: var(--shadow-md);
}
@media (max-width: 767px) {
  .filter-drawer__panel {
    right: 0; left: 0; top: auto; width: 100%;
    max-height: 85vh; border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
}
.filter-drawer label { display: block; margin: 12px 0; font-size: 0.933rem; }
.filter-drawer select, .filter-drawer input[type="text"],
.filter-drawer input[type="number"] {
  width: 100%; margin-top: 4px; padding: 8px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit;
}
.filter-drawer__actions { display: flex; gap: 8px; margin-top: 16px; }

.toast-region {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 10px 16px; background: var(--ink); color: var(--surface);
  border-radius: var(--radius-pill); font-size: 0.867rem;
  box-shadow: var(--shadow-md);
}

.list-skeleton li {
  height: 56px; margin: 8px 16px; border-radius: 8px;
  background: linear-gradient(90deg, var(--border), transparent, var(--border));
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Station page */
.station-page { max-width: 56rem; }
.station-hero {
  display: grid; gap: 16px; margin-bottom: 24px;
}
@media (min-width: 768px) {
  .station-hero { grid-template-columns: 1fr 280px; align-items: start; }
}
.station-hero h1 { margin: 0 0 8px; font-size: 1.6rem; }
.breadcrumbs { font-size: 0.867rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { color: var(--muted); }
.connector-card {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 16px; background: var(--surface);
}
.connector-card-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.connector-card-grid .connector-card:only-child {
  grid-column: 1 / -1;
  max-width: 32rem;
}
.station-hero-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.connector-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 8px; background: var(--canvas);
  font-size: 0.867rem; margin: 4px 4px 0 0;
}
.mini-map {
  width: 100%; aspect-ratio: 4 / 3; min-height: 180px; max-height: 220px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border); overflow: hidden;
  position: relative;
}
.mini-map.mini-map-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; text-align: center; background: var(--surface);
}
.mini-map.mini-map-fallback p { margin: 0; }
.mini-map .maplibregl-ctrl-bottom-right {
  margin: 2px !important;
}
.mini-map .maplibregl-ctrl-attrib.maplibregl-compact {
  min-height: 0; margin: 0;
}
.mini-map .maplibregl-ctrl-attrib:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner {
  display: none;
}
.mini-map .maplibregl-ctrl-attrib-button {
  width: 22px; height: 22px;
}
.facility-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.facility-chips span {
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--canvas); font-size: 0.867rem;
}
.station-section { margin: 32px 0; }
.station-section h2 { font-size: 1.15rem; margin: 0 0 12px; }
.report-collapsible summary { cursor: pointer; font-weight: 600; }
.report-collapsible form { margin-top: 12px; }

/* Marketing */
.landing-hero {
  text-align: center; padding: 48px 16px 32px;
  background: linear-gradient(180deg, rgb(14 165 164 / 8%), transparent);
}
.landing-hero h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 12px; }
.steps { display: grid; gap: 16px; margin: 32px 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  padding: 20px; border-radius: var(--radius-card);
  border: 1px solid var(--border); background: var(--surface);
}
.callout {
  padding: 16px; border-left: 4px solid var(--brand);
  background: rgb(14 165 164 / 8%); border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin: 24px 0;
}
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* Forms / submit */
.submit-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .submit-layout { grid-template-columns: 1fr 18rem; } }
.submit-form label { display: block; margin: 12px 0; }
.submit-form input[type=text], .submit-form input[type=email], .submit-form input[type=url],
.submit-form input[type=password], .submit-form select, .submit-form textarea {
  width: 100%; max-width: 36rem; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--fg); font: inherit;
}
.form-error { color: var(--out-of-service); display: block; font-size: 0.867rem; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; }
.hub-callout {
  display: none; margin: 12px 0; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: rgb(14 165 164 / 6%); font-size: 0.933rem;
}
.hub-callout.is-active { display: block; }
.submit-aside {
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px; border-radius: var(--radius-card);
}
textarea { width: 100%; min-height: 6rem; padding: 8px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; background: var(--surface); color: var(--fg); }

.dev-api-list { list-style: none; padding: 0; }
.dev-api-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-family: ui-monospace, monospace; font-size: 0.867rem; }

.panel-toggle { display: none; }
@media (max-width: 1023px) { .panel-toggle { display: inline-flex; } }

.status-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.867rem; }
.data-table th, .data-table td {
  border: 1px solid var(--border); padding: 6px 8px; text-align: left;
}
.manage-action { margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--border); }

.marketing-hero { padding-top: 24px; }
.marketing-hero .lead { font-size: 1.067rem; color: var(--muted); max-width: 42rem; }
.hero-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; max-width: 36rem; }
.hero-search input { flex: 1 1 200px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.stats-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; list-style: none; padding: 0; margin: 20px 0 8px; }
.stats-grid strong { display: block; font-size: 1.6rem; color: var(--brand); }
.stats-grid span { color: var(--muted); font-size: 0.867rem; }
.marketing-columns { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.link-grid { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.link-grid a { padding: 6px 0; }
.home-mini-map, .seo-listing .mini-map { min-height: 220px; margin: 16px 0; border-radius: var(--radius-card); border: 1px solid var(--border); }
.faq-block details { margin: 8px 0; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: var(--surface); }
.seo-stats { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; padding: 0; color: var(--muted); }
.station-list-seo { padding-left: 1.25rem; }
.guide-index { list-style: none; padding: 0; }
.guide-index li { margin: 16px 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.guide-body h2 { margin-top: 1.5rem; font-size: 1.133rem; }
.breadcrumbs { font-size: 0.867rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.pagination { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.listing-area-map { min-height: 260px; margin: 16px 0 24px; border-radius: var(--radius-card); border: 1px solid var(--border); }
.seo-station-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.seo-station-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.seo-station-card h3 { margin: 0 0 4px; font-size: 1.067rem; }
.seo-station-card .operator-line { margin: 0 0 8px; font-size: 0.867rem; }
.seo-station-card .address-line { margin: 0 0 8px; font-size: 0.867rem; color: var(--muted); }
.seo-station-card .connector-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Admin UI (U6) — same tokens as public site, noindex pages */
.admin-body { background: var(--canvas); color: var(--fg); min-height: 100vh; }
.admin-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.admin-header .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); text-decoration: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 12px 16px; flex: 1; }
.admin-nav a { color: var(--fg); text-decoration: none; font-size: 0.933rem; }
.admin-nav a:hover { color: var(--brand); }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 48px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.933rem; margin: 12px 0; }
.admin-table th, .admin-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.admin-table th { background: var(--surface); }
.admin-panel { margin: 24px 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.admin-dl { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 8px 16px; }
.admin-dl dt { color: var(--muted); margin: 0; }
.admin-dl dd { margin: 0; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px 16px; min-width: 140px; }
.admin-stat__n { display: block; font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.admin-form label, .admin-form-inline label { display: block; margin: 12px 0; }
.admin-form input, .admin-form select, .admin-form-inline input { max-width: 320px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--canvas); color: var(--fg); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-login-card { max-width: 400px; margin: 48px auto; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.admin-warn { color: #b45309; background: rgb(217 119 6 / 12%); padding: 10px 12px; border-radius: 8px; }
@media (prefers-color-scheme: dark) {
  .admin-warn { color: #fbbf24; background: rgb(251 191 36 / 12%); }
}
.admin-flash { padding: 10px 12px; background: var(--surface); border: 1px solid var(--brand); border-radius: 8px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--fg); }

/* Legal pages (privacy, terms) */
.legal h2 { margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 12px); }
.legal h3 { margin-top: 1.25rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 6px 0; }
.legal-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px 16px; margin: 16px 0 8px; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 24px; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.933rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface); }
