:root {
  --ink: #f5f5f4;
  --muted: #a8a29e;
  --paper: #0c0a09;
  --panel: #1c1917;
  --line: #292524;
  --obs: #60a5fa;
  --ext: #fb923c;
  --model: #a8a29e;
  --accent: #2dd4bf;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 16px/1.45 ui-sans-serif, system-ui, sans-serif; }
a { color: var(--accent); }
.map-stage {
  position: relative;
  height: min(68vh, 640px);
  min-height: 380px;
  overflow: hidden;
  background: #111;
}
.map-stage iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; filter: saturate(0.85) contrast(1.05);
}
.map-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12,10,9,.72) 0%, rgba(12,10,9,.08) 38%, rgba(12,10,9,.55) 100%);
}
.topbar, .hud { position: absolute; z-index: 2; }
.topbar {
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.1rem 1.25rem; gap: 1rem;
}
.eyebrow { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; color: var(--muted); }
h1 { margin: .15rem 0 0; font-size: 1.45rem; font-weight: 650; }
.gmaps {
  color: var(--ink); text-decoration: none;
  border: 1px solid rgba(255,255,255,.25); background: rgba(12,10,9,.45);
  padding: .35rem .65rem; border-radius: 999px; font-size: .8rem; white-space: nowrap;
}
.hud {
  left: 1.25rem; bottom: 1.25rem;
  min-width: min(92vw, 320px);
  background: rgba(12,10,9,.78);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}
.reading { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; margin: 0 0 .25rem; }
.hud-line, .hud-empty, .note { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 1rem; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
h2 { margin: 0 0 .6rem; font-size: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; margin-bottom: .5rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
label { display: block; font-size: .9rem; color: var(--muted); }
input[type=number] {
  width: 100%; margin-top: .25rem; padding: .5rem .55rem;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #0c0a09;
}
.toggle { display: flex; gap: .9rem; }
.toggle label { color: var(--ink); }
.unit-hint { color: var(--muted); font-size: .8rem; }
button {
  background: var(--accent); color: #042f2e; border: 0;
  border-radius: 8px; padding: .55rem .95rem; font: inherit; font-weight: 650; cursor: pointer;
}
button.secondary {
  background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500;
}
.status, .empty, .site-footer { color: var(--muted); font-size: .92rem; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.swatch { display: inline-block; width: .85rem; height: .28rem; margin-right: .3rem; vertical-align: middle; }
.swatch.obs { background: var(--obs); }
.swatch.ext { background: var(--ext); }
.swatch.model { background: var(--model); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.source-observed { color: var(--obs); }
.source-extrapolated { color: var(--ext); }
.source-model { color: var(--model); }
.error { border-color: #7f1d1d; }
#chart { width: 100%; height: 180px; }
.site-footer { padding: 0 0 2rem; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; }
  .reading { font-size: 2.1rem; }
}
