/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/*
 * ── Design tokens ─────────────────────────────────────────────
 *
 *  Colors
 *  bg:                 #040714
 *  surface-1 (cards):  rgba(255,255,255,.03)
 *  surface-2 (hover):  rgba(255,255,255,.06)
 *  border-subtle:      rgba(255,255,255,.07)
 *  border:             rgba(255,255,255,.1)
 *  border-strong:      rgba(255,255,255,.22)
 *  blue accent:        #0063e5
 *  blue accent bright: #0080ff
 *  text primary:       #f9f9f9
 *  text secondary:     #cacaca
 *  text muted:         rgba(255,255,255,.55)
 *  header gradient:    in oklch 135deg, #B015B0 0%, #3D0080 50%, #040714 100%
 *
 *  Typography scale (rem)
 *  --text-xs: 0.75    --text-sm: 0.875   --text-base: 1
 *  --text-lg: 1.125   --text-xl: 1.25    --text-2xl: 1.5
 *  font stack: 'Avenir Next', -apple-system, BlinkMacSystemFont,
 *              'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif
 *
 *  Spacing scale (4px grid)
 *  --space-1: 4px   --space-2: 8px   --space-3: 12px   --space-4: 16px
 *  --space-6: 24px  --space-8: 32px
 *
 *  Radii
 *  --radius-sm: 6px   --radius: 10px   --radius-lg: 15px
 *
 *  Easing
 *  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1)  (spring/overshoot)
 *  --dur-fast: 120ms   --dur: 200ms
 *
 *  UI primitives
 *  --control-height: 44px   (touch minimum)
 *  --control-height-sm: 36px
 *  --z-sticky-header: 200   --z-modal: 400   --z-toast: 500
 */

:root {
  --bg: #040714;
  --surface-1: rgba(255,255,255,.03);
  --surface-2: rgba(255,255,255,.06);
  --surface-toast: #1a1730;
  --border-subtle: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.1);
  --border-strong: rgba(255,255,255,.22);
  --text-primary: #f9f9f9;
  --text-secondary: #cacaca;
  --text-muted: rgba(255,255,255,.55);
  --accent: #dc2626;        /* Radar: seismic-alert red-600 */
  --accent-bright: #ef4444;
  --danger: #e11d48;
  --danger-hover: #f43f5e;
  --ok: #22c55e;
  --warn: #f59e0b;
  --crit: #dc2626;
  --font: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px;
  --radius-sm: 6px; --radius: 10px; --radius-lg: 15px;
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms; --dur: 200ms;
  --control-height: 44px;
  --control-height-sm: 36px;
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.5);
  --shadow-modal: 0 24px 48px rgba(2, 6, 23, 0.58);
  --z-sticky-header: 200;
  --z-modal: 400;
  --z-toast: 500;
}

html { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  min-height: 100%;
  color: var(--text-primary);
  display: flex; flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

main#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

/* ── Layout ────────────────────────────────────────────────── */
/*
 * GOTCHA: body { display:flex; flex-direction:column } + margin: 0 auto
 * on a child collapses its width — always pair with width: 100%.
 *
 * GOTCHA: External images (YouTube ggpht, Gravatar, etc.) may block loading
 * when the Referer header points to localhost or an unknown origin. Fix:
 * 1. Add <meta name="referrer" content="no-referrer"> in <head> (global)
 * 2. Or add referrerpolicy="no-referrer" on each <img> tag
 */
.container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6);
  flex: 1;
}

/* Vertical rhythm: use inside .container or nested regions */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.stack--tight { gap: var(--space-4); }
.stack--loose { gap: var(--space-8); }

/* Page section: title row + body (replaces “card everything” for grouping) */
.section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.section__titles {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.section__title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.section__lead {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 52ch;
}
.section__lead code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  color: var(--text-secondary);
}
.stack > .card { margin-bottom: 0; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

/* ── Header ────────────────────────────────────────────────── */
.header-bar {
  background: linear-gradient(in oklch 135deg, #B015B0 0%, #3D0080 50%, #040714 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--space-6);
  height: 68px;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-header);
  display: flex;
  align-items: center;
}

.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-logo-img {
  height: 36px; width: auto; flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: transform 0.3s var(--ease-snap);
  display: block;
}
.header-logo-img:hover { transform: scale(1.14) rotate(-9deg); }

.header-title-link { text-decoration: none; color: inherit; }
.header-logo h1 { font-size: 1.2em; font-weight: 600; color: var(--text-primary); letter-spacing: .5px; }
.header-subtitle { font-size: .82em; color: rgba(255,255,255,.72); font-weight: 500; margin-top: 3px; }

/* ── Nav & Auth ────────────────────────────────────────────── */
/*
 * THREE PATTERNS:
 *   A) No nav, no auth → margin-left: auto on .header-home
 *   B) Auth only       → margin-left: auto on .auth-toggle, margin-left: 8px on .header-home
 *   C) Nav + auth      → margin-left: auto on <nav>, margin-left: 5px on .header-home
 */
nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-home {
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  min-width: var(--control-height);
  min-height: var(--control-height);
  padding: var(--space-2);
  color: rgba(255,255,255,0.9); text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur), background var(--dur);
  flex-shrink: 0;
}
.header-home:hover { color: #fff; background: rgba(255,255,255,0.12); }
.header-home svg { width: 34px; height: 34px; display: block; }

/* ── Buttons (canonical) ─────────────────────────────────────
 * Use .btn + a variant. Aliases: .nav-link = toolbar ghost; .auth-* map below.
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  transition:
    background-color var(--dur),
    color var(--dur),
    border-color var(--dur),
    box-shadow var(--dur),
    transform var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--sm {
  min-height: var(--control-height-sm);
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
}
.btn--block { width: 100%; }
.btn--icon {
  min-width: var(--control-height);
  padding: 0;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.btn--primary:hover { background: var(--accent-bright); }
.btn--secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.18);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}
.btn--danger:hover { background: var(--danger-hover); }

/* Toolbar ghost (header nav) — same as .btn.btn--ghost.btn--sm */
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 0 var(--space-3);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.auth-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--control-height);
  min-height: var(--control-height);
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.auth-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.auth-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}
.auth-toggle.logged-in { color: var(--accent); }
.auth-toggle.logged-in svg circle:nth-of-type(2) {
  fill: currentColor;
  stroke: none;
}

/* ── Sheet (inline panel under header) — not a modal ─────────
 * Use for auth, filters, compact forms. No backdrop; page scrolls.
 * For blocking overlays use .modal below.
 */
.auth-panel {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.auth-panel.open { max-height: 300px; }
.auth-panel-inner {
  padding: var(--space-6);
  max-width: 400px;
  margin: 0 auto;
}
.auth-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.auth-tab {
  flex: 1;
  min-height: var(--control-height-sm);
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.auth-tab.active {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.auth-form input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
}
.auth-submit {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color var(--dur);
}
.auth-submit:hover { background: var(--accent-bright); }
#authUser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.auth-username {
  color: var(--text-primary);
  font-weight: 600;
}
.auth-logout {
  min-height: var(--control-height-sm);
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.auth-logout:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.auth-divider {
  height: 1px;
  background: var(--border-subtle);
}

/* ── Modal (blocking overlay) ──────────────────────────────── */
.modal[hidden] {
  display: none !important;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  max-height: min(88vh, 560px);
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.modal__header h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}
.modal__body {
  padding: var(--space-6);
  overflow: auto;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}
.modal__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  color: var(--text-primary);
}
.modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

/* ── Card ──────────────────────────────────────────────────── */
/*
 * GOTCHA: backdrop-filter creates a stacking context — dropdowns inside
 * a card can be clipped by a later card's stacking context. Fix by adding
 * position: relative; z-index: 10 to the card that owns the open dropdown.
 *
 * Default: static surface (no hover lift — avoids generic “dashboard demo”).
 * Use .card--interactive for raised hover + entrance motion.
 *
 * GOTCHA: a <button> or <a> used AS a card does not inherit body text color —
 * buttons default to canvas text (near-black), rendering invisible on the dark
 * bg. When a card is an interactive element, set color: var(--text-primary)
 * and font-family: var(--font) explicitly on it.
 */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
}
.card--interactive {
  transition:
    transform var(--dur) ease-out,
    box-shadow var(--dur) ease-out,
    border-color var(--dur);
  animation: fadeIn 0.35s ease-out both;
}
.card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}
.card--enter {
  animation: fadeIn 0.35s ease-out both;
}
.card--flat:hover {
  box-shadow: none;
}

/* ── Button press feedback ─────────────────────────────────── */
button:active,
.btn:active,
.nav-link:active,
.auth-toggle:active,
.auth-tab:active,
.auth-submit:active,
.auth-logout:active {
  transform: scale(0.98);
  transition-duration: var(--dur-fast);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Skeleton loading ──────────────────────────────────────── */
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  max-width: min(360px, calc(100vw - var(--space-8)));
  background: var(--surface-toast);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  pointer-events: none;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ────────────────────────────────────────────────── */
.info-footer {
  text-align: center;
  padding: var(--space-6) var(--space-6) 28px;
  color: var(--text-muted);
  font-size: .78em;
  line-height: 1.8;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-8);
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ── Focus styles ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-bright);
  color: #000;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top var(--dur);
}
.skip-link:focus { top: 0; }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card--interactive:hover { transform: none; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-bar { padding: 0 var(--space-4); }
  .container { padding: var(--space-4); }
  .toast {
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   Radar — Santiago situation board
   Tactical HUD layered on the Neorgon base kit.
   ══════════════════════════════════════════════════════════════ */

/* Subtle grid texture behind the board — reads as a tactical map
   without shouting. Fixed so it doesn't scroll away. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* ── Header clock ──────────────────────────────────────────── */
.header-clock {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
  padding-right: var(--space-4);
}
.header-clock__time {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.header-clock__zone {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}
.header-bar .header-home { margin-left: 0; }

/* ── Posture ribbon ────────────────────────────────────────── */
.posture {
  position: sticky;
  top: 68px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px var(--space-6);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  background: rgba(9, 12, 24, .82);
}
.posture__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.posture__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: postPulse 2.4s ease-out infinite;
}
@keyframes postPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.posture__line {
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.posture__stat {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.posture[data-level="nominal"]  .posture__badge { color: var(--ok);   background: color-mix(in srgb, var(--ok) 12%, transparent);   border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.posture[data-level="elevated"] .posture__badge { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); border-color: color-mix(in srgb, var(--warn) 38%, transparent); }
.posture[data-level="critical"] .posture__badge { color: var(--crit); background: color-mix(in srgb, var(--crit) 15%, transparent); border-color: color-mix(in srgb, var(--crit) 42%, transparent); }

/* ── Board layout ──────────────────────────────────────────── */
.board {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-4);
  flex: 1;
}
.command-bar { grid-column: 1 / -1; }
.panel--seismic { grid-row: span 2; }
.panel--feed { grid-column: 1 / -1; }

/* ── Command bar ───────────────────────────────────────────── */
.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.command-bar__loc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.command-bar__loc svg { color: var(--accent-bright); }
.command-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.chip-btn:hover { background: var(--surface-2); color: var(--text-primary); border-color: var(--border-strong); }
.chip-btn--accent {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: #fff;
}
.chip-btn--accent:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.sync-stamp {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Panels ────────────────────────────────────────────────── */
.panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  min-width: 0; /* let grid tracks shrink below content min-width */
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.panel__title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-secondary);
}
.panel__tools { display: inline-flex; align-items: center; gap: var(--space-3); }
.panel__meta {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.panel__meta[data-tone="error"] { color: var(--warn); }
.panel__body { flex: 1; }

.panel-empty, .panel-error {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-4) 0;
}
.panel-error { color: var(--warn); }

/* ── Magnitude filter ──────────────────────────────────────── */
.mag-filter { display: inline-flex; gap: 4px; }
.mag-chip {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur);
}
.mag-chip:hover { color: var(--text-secondary); border-color: var(--border-strong); }
.mag-chip.is-active {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: #fff;
}

/* ── Seismic: headline ─────────────────────────────────────── */
.quake-headline {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.quake-mag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px; height: 82px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--band) 26%, transparent), transparent 72%);
  border: 2px solid var(--band);
  box-shadow: 0 0 0 6px var(--ring), inset 0 0 18px color-mix(in srgb, var(--band) 22%, transparent);
  line-height: 1;
}
.quake-mag__num {
  font-family: var(--mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.quake-mag__unit {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--band);
  margin-left: 2px;
  align-self: flex-start;
  margin-top: 6px;
}
.quake-headline__meta { min-width: 0; }
.quake-band {
  display: inline-block;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--band);
}
.quake-place {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 2px 0 3px;
  line-height: 1.2;
}
.quake-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Felt-in-Santiago badge ────────────────────────────────── */
.felt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.felt-badge svg { flex-shrink: 0; }
.felt-badge--strong,
.felt-badge--moderate {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.felt-badge--light {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent);
}

/* Felt marker on event rows */
.quake-row__felt {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--accent-bright);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent-bright) 70%, transparent);
}
.quake-row--felt .quake-row__place { color: var(--text-primary); }

/* ── Seismic: 24h magnitude timeline ───────────────────────── */
.timeline {
  margin-bottom: var(--space-4);
  padding: 10px 12px 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}
.timeline__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.timeline__title {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--text-muted);
  font-weight: 600;
}
.timeline__scale {
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.timeline svg { display: block; overflow: visible; }
.tl-axis { stroke: var(--border); stroke-width: 1; }
.tl-ref  { stroke: color-mix(in srgb, var(--warn) 40%, transparent); stroke-width: 1; stroke-dasharray: 3 3; }
.tl-grid { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.tl-tick {
  font-family: var(--mono);
  font-size: 7.5px;
  fill: var(--text-muted);
  letter-spacing: .04em;
}

/* ── Insight strip (derived summary) ───────────────────────── */
.insight {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.insight > div {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}
.insight dt {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--text-muted);
}
.insight dd {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ── Weather: outlook line ─────────────────────────────────── */
.wx-outlook {
  margin: 4px 0 var(--space-4);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ── Seismic: proximity radar ──────────────────────────────── */
.radar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto var(--space-4);
  position: relative;
}
.radar svg { display: block; overflow: visible; }
.radar-ring { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 1; }
.radar-cross { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.radar-core { fill: var(--text-primary); }
.radar-core-ring { fill: none; stroke: color-mix(in srgb, var(--accent-bright) 60%, transparent); stroke-width: 1; }
.radar-sweep { animation: radar-spin 8s linear infinite; }
.radar-km {
  font-family: var(--mono);
  font-size: 7px;
  fill: var(--text-muted);
  opacity: .8;
  font-variant-numeric: tabular-nums;
}
.radar-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: radar-ping 1.8s ease-out infinite;
}
.radar-n {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  fill: var(--text-muted);
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
@keyframes radar-ping {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(3.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .radar-ping { animation: none; }
}
.radar-scale {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Seismic: event list ───────────────────────────────────── */
.quake-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.quake-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.quake-row:hover { background: var(--surface-1); }
.quake-chip {
  flex-shrink: 0;
  width: 42px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  padding: 3px 0;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--band) 30%, #0b0e1a);
  border: 1px solid var(--band);
  font-variant-numeric: tabular-nums;
}
.quake-row__body { flex: 1; min-width: 0; }
.quake-row__place {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quake-row__meta {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.quake-row__ago {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.quake-row__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.quake-row__link:hover { color: var(--accent-bright); }
.skeleton-block { align-items: center; }

/* ── Weather: current ──────────────────────────────────────── */
.wx-now {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.wx-now__glyph { color: var(--text-secondary); flex-shrink: 0; }
.wx-glyph--sun, .wx-glyph--sun-cloud { color: #fbbf24; }
.wx-glyph--storm { color: #a78bfa; }
.wx-now__read { display: flex; flex-direction: column; }
.wx-now__temp {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wx-now__label { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 4px; }
.wx-now__feels { font-size: var(--text-xs); color: var(--text-muted); }
.wx-stats {
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}
.wx-stats div { display: flex; flex-direction: column; }
.wx-stats dt {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.wx-stats dd {
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.wx-rain__mm { color: var(--text-muted); font-size: .72rem; }
.wx-rain__tag {
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.5;
}
.wx-rain__tag--muted { color: var(--text-muted);      background: color-mix(in srgb, var(--text-muted) 16%, transparent); }
.wx-rain__tag--ok    { color: #38bdf8;                 background: color-mix(in srgb, #38bdf8 16%, transparent); }
.wx-rain__tag--warn  { color: #fbbf24;                 background: color-mix(in srgb, #fbbf24 18%, transparent); }
.wx-rain__tag--crit  { color: #f87171;                 background: color-mix(in srgb, #f87171 20%, transparent); }

/* ── Weather: 7-day strip ──────────────────────────────────── */
.wx-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.wx-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.wx-day--today { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border); }
.wx-day__name {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 600;
}
.wx-day--today .wx-day__name { color: var(--text-primary); }
.wx-day__glyph { color: var(--text-secondary); height: 26px; }
.wx-day__hi {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.wx-day__lo {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.wx-day__pop {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.wx-day__pop.is-wet { color: #38bdf8; }
.wx-sun {
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Weather: air-quality gauge ────────────────────────────── */
.wx-aqi {
  margin: 4px 0 var(--space-4);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}
.wx-aqi__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.wx-aqi__title {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--text-muted);
  font-weight: 600;
}
.wx-aqi__val {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wx-aqi__val em { font-style: normal; font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.wx-aqi__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  opacity: .85;
}
.wx-aqi__marker {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(4,7,20,.85), 0 1px 4px rgba(0,0,0,.5);
}
.wx-aqi__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: .58rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.wx-aqi__pm { color: var(--text-secondary); }

/* ── Weather: collapsible hourly chart ─────────────────────── */
.wx-hourly {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-3);
}
.wx-hourly__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.wx-hourly__toggle:hover { background: var(--surface-1); color: var(--text-primary); }
.wx-hourly__chev { flex-shrink: 0; color: var(--text-muted); transition: transform var(--dur); }
.wx-hourly.is-open .wx-hourly__chev { transform: rotate(180deg); }
.wx-hourly__hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wx-hourly__panel {
  padding: 10px 2px 2px;
  animation: wx-hr-in var(--dur) var(--ease-snap);
}
@keyframes wx-hr-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wx-hr-svg { display: block; overflow: visible; }
.wx-hr-bar { fill: color-mix(in srgb, #38bdf8 32%, transparent); }
.wx-hr-line {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.wx-hr-dot { fill: var(--accent-bright); stroke: var(--bg); stroke-width: 1; }
.wx-hr-axis {
  font-family: var(--mono);
  font-size: 8px;
  fill: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.wx-hr-tick {
  font-family: var(--mono);
  font-size: 8px;
  fill: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.wx-hr-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .62rem;
  color: var(--text-muted);
}
.wx-hr-legend__temp,
.wx-hr-legend__rain {
  display: inline-block;
  width: 12px; height: 3px;
  border-radius: 2px;
  margin-left: 6px;
}
.wx-hr-legend__temp:first-child { margin-left: 0; }
.wx-hr-legend__temp { background: var(--accent-bright); }
.wx-hr-legend__rain { height: 8px; width: 8px; border-radius: 2px; background: color-mix(in srgb, #38bdf8 45%, transparent); }

/* ── Transport: line board ─────────────────────────────────── */
.metro-board { display: flex; flex-direction: column; gap: 4px; }
.metro-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid transparent;
}
.metro-line--warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.metro-line--crit { border-color: color-mix(in srgb, var(--crit) 38%, transparent); }
.metro-badge {
  flex-shrink: 0;
  min-width: 34px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .72rem;
  color: #fff;
  padding: 3px 6px;
  border-radius: 5px;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.metro-line__name { flex: 1; font-size: var(--text-sm); color: var(--text-secondary); }
.metro-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.metro-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.metro-status--ok   { color: var(--ok); }
.metro-status--warn { color: var(--warn); }
.metro-status--crit { color: var(--crit); }
.metro-status--idle { color: var(--text-muted); }
.metro-notes {
  list-style: none;
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metro-notes li {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}
.metro-notes li::before { content: "›"; position: absolute; left: 2px; color: var(--text-muted); }
.metro-source {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Alert feed ────────────────────────────────────────────── */
.feed { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}
.feed-tag {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid transparent;
}
.feed-tag--seismic   { color: #f87171; background: color-mix(in srgb, #f87171 12%, transparent); border-color: color-mix(in srgb, #f87171 30%, transparent); }
.feed-tag--emergency { color: #fbbf24; background: color-mix(in srgb, #fbbf24 12%, transparent); border-color: color-mix(in srgb, #fbbf24 30%, transparent); }
.feed-tag--weather   { color: #38bdf8; background: color-mix(in srgb, #38bdf8 12%, transparent); border-color: color-mix(in srgb, #38bdf8 30%, transparent); }
.feed-tag--tsunami   { color: #22d3ee; background: color-mix(in srgb, #22d3ee 12%, transparent); border-color: color-mix(in srgb, #22d3ee 30%, transparent); }
.feed-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-item__title { font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none; }
a.feed-item__title:hover { color: var(--accent-bright); text-decoration: underline; }
.feed-item__summary { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; }
.feed-item__ago {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.feed-placeholder {
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.feed-placeholder__note {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .panel--seismic { grid-row: auto; }
}
@media (max-width: 600px) {
  .posture { top: 68px; flex-wrap: wrap; gap: var(--space-2); }
  .posture__stat { margin-left: 0; }
  .board { padding: var(--space-4); }
  .wx-stats { margin-left: 0; width: 100%; }
  .header-clock { padding-right: var(--space-2); }
}
