/* horizon — tempo design language: near-black stage with a crimson glow, bold
   condensed display type, vivid neon status tiers. Restyle of the calm build;
   keeps the rail + 4-view structure. Ported from tempo/src/styles.css. */

:root {
  /* Cool near-black stage — no warm undertones. */
  --bg: #0c0d11;
  --panel: #15171d;
  --panel-2: #1b1e26;
  --panel-hover: #232732;
  --border: #2b303b;
  --border-soft: #21252e;
  --track: #2f3440;

  --text: #f2f5f9;
  --text-muted: #a5adbb;
  --text-dim: #8b95a3;   /* lightened from tempo's #6d7684 to clear AA on small text */

  --accent: #2aa3e6;                       /* electric blue — interactive / brand */
  --accent-soft: rgba(42, 163, 230, 0.13);
  --accent-line: rgba(42, 163, 230, 0.38);

  /* Vivid neon status tiers (prominent, glowing). */
  --green: #2fd6c0;
  --amber: #f5c84a;
  --red: #ff5470;
  --gray: #6d7684;

  --green-soft: rgba(47, 214, 192, 0.14);
  --amber-soft: rgba(245, 200, 74, 0.14);
  --red-soft: rgba(255, 84, 112, 0.15);
  --gray-soft: rgba(109, 118, 132, 0.18);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 44px rgba(0, 0, 0, 0.4);

  --display: 'Barlow Condensed', 'Arial Narrow', -apple-system, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --sp: 24px;
  --radius: 12px;
  --rail-w: 220px;
  --rail-w-collapsed: 64px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Crimson stage glow (tempo). */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 75% at 88% -12%, rgba(232, 48, 86, 0.20), transparent 55%),
    radial-gradient(90% 60% at 6% 112%, rgba(120, 60, 200, 0.11), transparent 60%);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── App shell ──────────────────────────────────────────────────────────── */

.app { position: relative; z-index: 1; display: flex; min-height: 100vh; }

.rail {
  width: var(--rail-w);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width 150ms ease-out;
}
.app[data-rail="collapsed"] .rail { width: var(--rail-w-collapsed); }
.app[data-rail="collapsed"] .rail .rail-label,
.app[data-rail="collapsed"] .rail .rail-sync-text,
.app[data-rail="collapsed"] .rail .rail-brand-name { display: none; }

.rail-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.rail-brand img { width: 28px; height: 28px; border-radius: 7px; filter: drop-shadow(0 0 10px var(--accent-line)); }
.rail-brand-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.rail-nav { padding: 14px 8px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.rail-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--text-muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 150ms ease-out, color 150ms ease-out;
}
.rail-link:hover { background: var(--panel-hover); color: var(--text); text-decoration: none; }
.rail-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.rail-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.rail-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}
.rail-collapse {
  margin: 0 8px 8px;
  align-self: stretch;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); padding: 9px 11px; border-radius: 9px;
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.rail-collapse:hover { background: var(--panel-hover); color: var(--text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 13, 17, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--sp);
  height: 62px;
}
.topbar h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 28px;
  margin: 0;
  flex-shrink: 0;
}
.topbar-spacer { flex: 1; }

.content {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp);
}

/* ── Cards, stat band ───────────────────────────────────────────────────── */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-band { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--sp); }
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 124px;
  box-shadow: var(--shadow);
}
.stat .n {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .l {
  font-family: var(--display); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-dim); margin-top: 4px;
}
a.stat { color: inherit; transition: border-color 150ms ease-out; }
a.stat:hover { text-decoration: none; border-color: var(--accent-line); }

/* ── Status pills (prominent, glowing) ──────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a0c10;
}
/* Dark ink on the bright fills reads as hazard-label and clears AA at 12px. */
.pill.green { background: var(--green); box-shadow: 0 0 12px rgba(47, 214, 192, 0.4); }
.pill.amber { background: var(--amber); box-shadow: 0 0 12px rgba(245, 200, 74, 0.4); }
.pill.red   { background: var(--red);   box-shadow: 0 0 12px rgba(255, 84, 112, 0.45); }
.pill.gray  { background: var(--gray); color: #f2f5f9; }

/* Small dot for compact contexts (kept for the sync-health indicator). */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot.gray { background: var(--gray); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.gray { background: var(--gray-soft); color: var(--text-muted); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.outline { border-color: var(--border); color: var(--text-muted); background: var(--panel-2); }

/* P1 flagship badge. */
.p1-badge {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 1px 7px; border-radius: 5px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(245, 200, 74, 0.35);
  box-shadow: 0 0 10px rgba(245, 200, 74, 0.18);
}

.code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ── Buttons, inputs ────────────────────────────────────────────────────── */

.btn {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}
.btn:hover { border-color: var(--accent-line); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06121b; }
.btn.primary:hover { filter: brightness(1.08); color: #06121b; }
.btn.quiet { border-color: transparent; color: var(--text-dim); background: none; }
.btn.quiet:hover { background: var(--panel-hover); color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: default; }

input[type="text"], input[type="search"], input[type="number"], select, textarea {
  font: inherit; font-size: 13px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
}
input::placeholder { color: var(--text-dim); }
select option { background: var(--panel-2); }

/* ── Tables ─────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left;
  font-family: var(--display);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  background: var(--panel);
  position: sticky; top: 0;
}
table.data th .sort { opacity: 0.7; font-size: 10px; }
table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
table.data td.num { font-variant-numeric: tabular-nums; }
table.data tbody tr { cursor: pointer; transition: background 120ms ease-out; }
table.data tbody tr:hover { background: var(--panel-hover); }
table.data tbody tr:last-child td { border-bottom: none; }
.site-head td {
  background: var(--panel-2);
  font-weight: 600;
  cursor: default;
}
.site-head:hover { background: var(--panel-2) !important; }

/* ── Drawer ─────────────────────────────────────────────────────────────── */

.drawer-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(4, 5, 8, 0.6);
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(460px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-y: auto;
  padding: 26px;
}
.drawer h2 {
  font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 26px; margin: 0 0 4px;
}
.drawer .close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 18px; padding: 6px; border-radius: 6px;
}
.drawer .close:hover { background: var(--panel-hover); color: var(--text); }
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 7px 12px; font-size: 13px; margin: 16px 0; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; }

.agemath {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.65;
}
.agemath .hero {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em;
  display: block; margin-bottom: 4px;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 60;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 20px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 13px;
  opacity: 0;
  transition: opacity 150ms ease-out;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── Horizon line (forecast) ────────────────────────────────────────────── */

.horizon-chart { width: 100%; }
.horizon-chart svg { display: block; width: 100%; height: auto; }
.hz-col { cursor: default; }
.hz-col[data-q] { cursor: pointer; }
.hz-col rect.seg { transition: opacity 150ms ease-out; }
.hz-col:hover rect.seg { opacity: 0.88; }
.hz-count { font-family: var(--display); font-style: italic; font-weight: 800; }
.hz-col.selected .hz-count { fill: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .hz-rise .hz-col-g {
    transform: scaleY(0);
    animation: hzrise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
}
@keyframes hzrise { to { transform: scaleY(1); } }

/* ── Signals ────────────────────────────────────────────────────────────── */

.scorebar { height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; min-width: 96px; }
.scorebar > div { height: 100%; border-radius: 4px; background: var(--accent); box-shadow: 0 0 10px var(--accent-line); }
.score-num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }

.finding { padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.finding:last-child { border-bottom: none; }

/* ── Simulation panel ───────────────────────────────────────────────────── */

.sim-panel {
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 15px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sim-panel .sim-tag {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.sim-panel strong { font-family: var(--display); font-style: italic; font-size: 16px; }

/* Projected-spend headline pill. */
.spend-pill { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.spend-num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; color: var(--accent); font-variant-numeric: tabular-nums; }
.spend-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-top: 3px; }

/* ── Settings ───────────────────────────────────────────────────────────── */

.thresh-grid input[type="number"] { width: 64px; }
.section-title {
  font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 24px;
  margin: 34px 0 12px;
}
.section-title:first-child { margin-top: 0; }
.help { color: var(--text-dim); font-size: 13px; }

/* ── Auth gate / empty ──────────────────────────────────────────────────── */

.gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
}
.empty {
  text-align: center;
  color: var(--text-dim);
  padding: 48px 24px;
  font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .rail { position: fixed; z-index: 30; height: 100vh; left: 0; transform: translateX(-100%); transition: transform 150ms ease-out; }
  .app[data-rail="open"] .rail { transform: translateX(0); }
  .rail-toggle-mobile { display: inline-flex !important; }
  .content { padding: 16px; }
}
.rail-toggle-mobile {
  display: none;
  background: none; border: none; cursor: pointer; color: var(--text);
  padding: 8px; border-radius: 6px;
}

@media (max-width: 640px) {
  table.data.stackable thead { display: none; }
  table.data.stackable tbody tr {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
  }
  table.data.stackable td { display: inline-block; border: none; padding: 2px 8px 2px 0; }
  table.data.stackable td.stack-hide { display: none; }
  .horizon-scroll { overflow-x: auto; scroll-snap-type: x mandatory; }
  .horizon-scroll svg { min-width: 760px; }
  .stat { min-width: calc(50% - 6px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

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

/* ── Property tiles ─────────────────────────────────────────────────────── */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}
.tile {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 15px;
  box-shadow: var(--shadow);
  color: inherit;
  cursor: pointer;
  transition: border-color 150ms ease-out, transform 120ms ease-out;
  position: relative;
  overflow: hidden;
}
.tile:hover { border-color: var(--accent-line); text-decoration: none; transform: translateY(-2px); }
.tile.p1 { border-color: rgba(245, 200, 74, 0.28); }
.tile.has-red::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.tile-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.tile-code { font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.03em; }
.tile-name {
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 20px; letter-spacing: 0.01em; line-height: 1.05; margin: 0 0 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-figures { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.tile-red { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-red.zero { color: var(--green); }
.tile-red.some { color: var(--red); }
.tile-red-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.tile-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.tile-foot b { color: var(--text-muted); font-weight: 600; }
/* Stretched-link: the name link covers the whole tile; foot links sit above it. */
.tile a { color: inherit; text-decoration: none; }
.tile a:hover { text-decoration: none; }
.tile-name.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.tile-due { position: relative; z-index: 2; color: var(--text-dim); }
.tile-due b { color: var(--text-muted); }
.tile-due:hover { color: var(--accent); }
.tile-due:hover b { color: var(--accent); }

.stack { display: flex; border-radius: 6px; overflow: hidden; background: var(--track); }
.stack > div { height: 100%; }

/* ── Metric tiles (site detail) ─────────────────────────────────────────── */

.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.metric {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.metric .m-num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric .m-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-top: 4px; }

/* ── Chart primitives ───────────────────────────────────────────────────── */

.chart-card { display: flex; flex-direction: column; gap: 10px; }
/* Stretchy histogram/timeline SVGs preserve aspect from their viewBox; cap the
   height so a wide container doesn't make them tall. Fixed-size SVGs (the
   donut has width/height attrs) are unaffected. */
.chart-card svg[width="100%"] { width: 100%; height: auto; max-height: 210px; }
.chart-title { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: 0.03em; color: var(--text-muted); }
.c-num { font-family: var(--display); font-style: italic; font-weight: 800; }
svg text.c-lbl { font-size: 10px; letter-spacing: 0.04em; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.hbar-row { display: grid; grid-template-columns: 78px 1fr 34px; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; }
.hbar-track { height: 10px; background: var(--track); border-radius: 5px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 5px; background: var(--accent); }
.hbar-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }

/* ── Segmented control (horizon slider) ─────────────────────────────────── */

.seg {
  display: inline-flex; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 3px; gap: 2px;
}
.seg button {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 13px; border: none; background: none; color: var(--text-dim);
  padding: 6px 14px; border-radius: 7px; cursor: pointer; transition: background 120ms, color 120ms;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #06121b; }

/* ── Site detail layout ─────────────────────────────────────────────────── */

.site-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.back-link {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 13px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
