:root {
  --bg: #0f1419;
  --panel: #171d26;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --critical: #ff6b6b;
  --caution: #ffd166;
  --steady: #6bcf9b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #222b36;
}
.masthead-copy { min-width: 0; }
.masthead h1 { margin: 0 0 4px; font-size: 22px; }
.tagline { margin: 0; color: var(--muted); }
.last-updated {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #2a3340;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}
.last-updated-label {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.last-updated time { font-variant-numeric: tabular-nums; }
.disclaimer {
  margin: 16px 24px;
  padding: 12px 16px;
  background: #1d2530;
  border-left: 3px solid var(--caution);
  border-radius: 6px;
  color: var(--muted);
}
main { padding: 0 24px 24px; }
section { margin-top: 24px; }
section h2 { font-size: 16px; border-bottom: 1px solid #222b36; padding-bottom: 6px; }
.card {
  background: var(--panel);
  border: 1px solid #222b36;
  border-left-width: 4px;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
}
.card.tone-critical { border-left-color: var(--critical); }
.card.tone-caution { border-left-color: var(--caution); }
.card.tone-steady { border-left-color: var(--steady); }
.card header { display: flex; justify-content: space-between; align-items: baseline; }
.ticker { color: var(--muted); font-variant: tabular-nums; }
.note { color: var(--muted); margin: 6px 0; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.flag { font-size: 12px; background: #2a3340; color: var(--caution); padding: 2px 8px; border-radius: 999px; }
.source { color: #7cc4ff; text-decoration: none; font-size: 13px; }
.source:hover { text-decoration: underline; }
footer { padding: 18px 24px; color: var(--muted); border-top: 1px solid #222b36; font-size: 13px; }

@media (max-width: 640px) {
  .masthead { flex-direction: column; }
  .last-updated { text-align: left; white-space: normal; }
}
