/* OHLcast — clean engineering / utility-grade */
:root {
  --bg: oklch(0.985 0.003 240);
  --bg-elev: oklch(1 0 0);
  --bg-sunk: oklch(0.965 0.004 240);
  --ink: oklch(0.18 0.012 260);
  --ink-2: oklch(0.38 0.012 260);
  --ink-3: oklch(0.55 0.012 260);
  --rule: oklch(0.9 0.006 250);
  --rule-2: oklch(0.82 0.008 250);
  --accent: oklch(0.62 0.16 32);
  --accent-ink: oklch(0.32 0.1 32);
  --warn: oklch(0.74 0.13 75);
  --crit: oklch(0.55 0.2 25);
  --ok: oklch(0.62 0.11 160);
  --info: oklch(0.55 0.1 235);
  --pad: 24px;
  --radius: 4px;
  --maxw: 1280px;
  --gap: 24px;
}
[data-theme="dark"] {
  --bg: oklch(0.16 0.012 260);
  --bg-elev: oklch(0.2 0.012 260);
  --bg-sunk: oklch(0.13 0.012 260);
  --ink: oklch(0.96 0.004 240);
  --ink-2: oklch(0.78 0.006 240);
  --ink-3: oklch(0.6 0.008 240);
  --rule: oklch(0.28 0.012 260);
  --rule-2: oklch(0.36 0.014 260);
}
[data-density="cozy"] { --pad: 32px; --gap: 32px; }
[data-density="compact"] { --pad: 16px; --gap: 16px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body, "IBM Plex Sans"), system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--font-mono, "IBM Plex Mono"), ui-monospace, monospace; }
.serif { font-family: var(--font-display, "IBM Plex Sans"), serif; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elev);
  position: sticky; top: 0; z-index: 40;
}
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  border-radius: 2px;
}
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 6px 10px; font-size: 13px; color: var(--ink-2);
  border-radius: var(--radius);
}
.nav a:hover { color: var(--ink); background: var(--bg-sunk); }
.nav a.active { color: var(--ink); background: var(--bg-sunk); }
.nav .dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 99px; margin-right: 6px; vertical-align: middle; }

.topbar-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--rule-2);
  background: var(--bg-elev);
  color: var(--ink);
  transition: all .15s;
}
.btn:hover { background: var(--bg-sunk); border-color: var(--ink-3); }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--bg-sunk); }
.btn-primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-accent {
  background: var(--accent); color: white; border-color: var(--accent);
}
.btn-accent:hover { filter: brightness(1.05); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 18px; font-size: 14px; }

/* Status strip */
.status-strip {
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.status-strip-inner {
  display: flex; gap: 24px; padding: 6px 0;
  overflow-x: auto;
}
.status-strip .item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-strip .pulse {
  width: 7px; height: 7px; border-radius: 99px; background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.62 0.11 160 / 0.5); }
  70% { box-shadow: 0 0 0 6px oklch(0.62 0.11 160 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.62 0.11 160 / 0); }
}
.status-strip .crit-pulse { background: var(--crit); }
.status-strip .crit-pulse { animation: pulseCrit 1.6s infinite; }
@keyframes pulseCrit {
  0% { box-shadow: 0 0 0 0 oklch(0.55 0.2 25 / 0.6); }
  70% { box-shadow: 0 0 0 8px oklch(0.55 0.2 25 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.55 0.2 25 / 0); }
}

/* Hero */
.hero {
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 560px;
}
.hero-copy {
  padding: 80px var(--pad) 64px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--ink-3);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero p.lead {
  font-size: 17px; color: var(--ink-2);
  max-width: 46ch; margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-family: var(--font-mono);
}
.hero-meta .k { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.hero-meta .v { font-size: 22px; color: var(--ink); font-weight: 500; }
.hero-meta .v small { font-size: 11px; color: var(--ink-3); margin-left: 4px; }

/* Hero map preview */
.hero-viz {
  position: relative;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg-sunk);
  display: flex; flex-direction: column;
}
.hero-viz-header {
  padding: 14px var(--pad);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-elev);
}
.hero-viz-stage { flex: 1; position: relative; min-height: 360px; }

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 500;
  margin: 0;
  max-width: 22ch;
  text-wrap: pretty;
}
.section-head .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.section-head p.lead { color: var(--ink-2); max-width: 42ch; font-size: 15px; margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); }
.step { padding: 28px 24px; border-right: 1px solid var(--rule); position: relative; min-height: 220px; display: flex; flex-direction: column; }
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { font-size: 13px; color: var(--ink-2); margin: 0; }
.step .glyph {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.step .chip {
  padding: 2px 6px; border: 1px solid var(--rule-2); border-radius: 2px;
}

/* Forecast preview */
.preview-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
}
.preview-map { position: relative; min-height: 480px; border-right: 1px solid var(--rule); }
.preview-map svg { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.preview-side { display: flex; flex-direction: column; }
.preview-side-head {
  padding: 16px 20px; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.event-list { flex: 1; overflow: hidden; }
.event-row {
  padding: 14px 20px; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  cursor: pointer;
  transition: background .15s;
}
.event-row:hover { background: var(--bg-sunk); }
.event-row.active { background: var(--bg-sunk); }
.event-sev {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 12px;
  color: white;
  border-radius: 2px;
}
.sev-1 { background: var(--info); }
.sev-2 { background: var(--warn); color: oklch(0.25 0.05 75); }
.sev-3 { background: var(--accent); }
.sev-4 { background: var(--crit); }
.event-row .name { font-size: 13px; font-weight: 500; }
.event-row .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.event-row .when { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-align: right; }
.event-row .when strong { display: block; color: var(--ink); font-weight: 500; }

.preview-toolbar {
  padding: 12px 16px; border-bottom: 1px solid var(--rule);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
}
.toggle {
  padding: 4px 10px; border: 1px solid var(--rule-2); border-radius: 99px;
  font-size: 11px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.toggle .sw { width: 8px; height: 8px; border-radius: 99px; background: var(--rule-2); }
.toggle.on { border-color: var(--ink); color: var(--ink); }
.toggle.on .sw { background: var(--accent); }
.toggle:hover { border-color: var(--ink-3); }

/* Detail card */
.detail {
  padding: 20px;
  border-top: 1px solid var(--rule);
  background: var(--bg-sunk);
}
.detail h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.detail .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-bottom: 16px; }
.detail dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; font-family: var(--font-mono); font-size: 12px; }
.detail dt { color: var(--ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.detail dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }

/* Cableway product section */
.cw {
  background: oklch(0.18 0.014 260);
  color: oklch(0.96 0.004 240);
  border-bottom: 1px solid oklch(0.28 0.014 260);
}
[data-theme="dark"] .cw { background: oklch(0.13 0.012 260); }
.cw .container { padding-top: 0; padding-bottom: 0; }
.cw-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; }
.cw-copy { padding: 88px var(--pad) 88px 0; border-right: 1px solid oklch(0.28 0.014 260); }
.cw .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.65 0.04 240); margin-bottom: 16px; }
.cw h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.02em; line-height: 1.04; font-weight: 400; margin: 0 0 24px; max-width: 18ch; }
.cw h2 em { font-style: italic; color: var(--accent); }
.cw p.lead { color: oklch(0.78 0.006 240); font-size: 16px; max-width: 42ch; margin: 0 0 32px; }
.cw-features { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.cw-features li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.cw-features .num { font-family: var(--font-mono); font-size: 11px; color: oklch(0.65 0.04 240); padding-top: 2px; }
.cw-features strong { display: block; font-weight: 500; margin-bottom: 2px; font-size: 14px; }
.cw-features span { font-size: 13px; color: oklch(0.7 0.006 240); }
.cw-app { padding: 88px 0 88px var(--pad); display: flex; align-items: center; justify-content: center; }

.app-shell {
  width: 100%;
  background: oklch(0.22 0.014 260);
  border: 1px solid oklch(0.32 0.014 260);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-body);
}
.app-shell-bar {
  padding: 10px 14px; border-bottom: 1px solid oklch(0.32 0.014 260);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: oklch(0.65 0.04 240);
}
.app-shell-bar .dots { display: flex; gap: 5px; margin-right: 8px; }
.app-shell-bar .dots span { width: 9px; height: 9px; border-radius: 99px; background: oklch(0.32 0.014 260); }
.app-shell-body { display: grid; grid-template-columns: 200px 1fr; min-height: 460px; }
.app-side { border-right: 1px solid oklch(0.32 0.014 260); padding: 16px 12px; font-family: var(--font-mono); font-size: 11px; color: oklch(0.65 0.04 240); }
.app-side .sect { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(0.55 0.02 240); margin: 14px 0 6px; }
.app-side .item { padding: 6px 8px; border-radius: 3px; display: flex; justify-content: space-between; }
.app-side .item.active { background: oklch(0.28 0.014 260); color: oklch(0.96 0.004 240); }
.app-side .item:hover { background: oklch(0.26 0.014 260); }
.app-side .item .ct { color: oklch(0.55 0.02 240); }

.app-canvas { padding: 20px; position: relative; background:
  linear-gradient(oklch(0.28 0.014 260) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, oklch(0.28 0.014 260) 1px, transparent 1px) 0 0 / 32px 32px;
}
.app-toolbar { display: flex; gap: 6px; margin-bottom: 16px; }
.app-tool {
  padding: 4px 10px; border: 1px solid oklch(0.32 0.014 260); border-radius: 3px;
  font-family: var(--font-mono); font-size: 11px; color: oklch(0.78 0.006 240);
}
.app-tool.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Pricing / CTA */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
.plan { padding: 32px 28px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan.featured { background: var(--ink); color: var(--bg); border-right-color: var(--ink); }
.plan.featured + .plan { border-left: 0; }
.plan .pname { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 24px; }
.plan.featured .pname { color: oklch(0.7 0.04 240); }
.plan .price { font-family: var(--font-display); font-size: 40px; letter-spacing: -0.02em; font-weight: 500; line-height: 1; }
.plan .price small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-left: 4px; font-weight: 400; }
.plan.featured .price small { color: oklch(0.7 0.04 240); }
.plan .pdesc { font-size: 13px; color: var(--ink-2); margin: 12px 0 24px; min-height: 40px; }
.plan.featured .pdesc { color: oklch(0.78 0.006 240); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { font-size: 13px; display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.plan li::before { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.plan.featured li::before { color: var(--accent); }
.plan .btn { width: 100%; justify-content: center; }

/* Footer */
footer { padding: 48px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.foot-col a { display: block; padding: 4px 0; font-size: 13px; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
/* Store badges in the Companion-app column — matched 40px pair, no link
   underline/padding (the badge art IS the affordance). */
.foot-col a.foot-badge { padding: 0 0 8px; }
.foot-badge img { display: block; height: 40px; width: auto; }
/* The official Play PNG carries internal transparent padding — size it ~15%
   taller so the visible art optically matches the Apple badge. */
.foot-badge img.play { height: 46px; margin: -3px 0 -3px -4px; }
.foot-badge:hover img { opacity: 0.85; }
.foot-bottom {
  border-top: 1px solid var(--rule); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: oklch(0.18 0.012 260 / 0.5);
  display: grid; place-items: center; z-index: 100;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--bg-elev); border: 1px solid var(--rule);
  width: 420px; max-width: calc(100vw - 40px);
  padding: 32px;
  border-radius: var(--radius);
}
.modal h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.modal p.sub { font-size: 13px; color: var(--ink-2); margin: 0 0 24px; }
.field { margin-bottom: 14px; }
.field label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule-2);
  border-radius: var(--radius); background: var(--bg);
  font: inherit; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--ink); }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.modal-x { position: absolute; }

/* Region badges */
.region-bar { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.region-pill {
  padding: 4px 10px; border: 1px solid var(--rule-2);
  border-radius: 99px; font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.region-pill .d { width: 5px; height: 5px; border-radius: 99px; background: var(--ok); }
.region-pill.alert .d { background: var(--accent); }
.region-pill.crit .d { background: var(--crit); }

/* Big quote / proof */
.proof { padding: 64px 0; }
.proof blockquote {
  font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25; letter-spacing: -0.015em;
  margin: 0; max-width: 28ch; font-weight: 400;
  text-wrap: pretty;
}
.proof cite { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); display: block; margin-top: 24px; font-style: normal; letter-spacing: 0.04em; }

/* Logos */
.logos { display: flex; justify-content: space-between; gap: 32px; padding: 32px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.logos span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--rule); padding: 56px var(--pad) 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-map { border-right: 0; border-bottom: 1px solid var(--rule); }
  .cw-grid { grid-template-columns: 1fr; }
  .cw-copy { border-right: 0; border-bottom: 1px solid oklch(0.28 0.014 260); padding-right: var(--pad); }
  .cw-app { padding-left: 0; }
  .cta-grid { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--rule); }
  .plan:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}


/* ===== Critical events popover ===== */
.events-trigger-wrap { position: relative; }
.events-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 2px 10px; margin: -3px -10px;
  border-radius: 3px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
  background: transparent; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.events-trigger:hover { background: var(--bg-elev); border-color: var(--rule); color: var(--ink); }
.events-trigger strong { color: var(--crit); font-weight: 600; }
.events-trigger .caret { color: var(--ink-3); font-size: 9px; }
.events-trigger-mini { display: inline-flex; gap: 3px; }
.events-trigger-mini .emini {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  font-size: 9px; font-weight: 600; color: white;
  border-radius: 2px;
}
.events-pop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--bg-elev); border: 1px solid var(--rule);
  width: 480px; z-index: 60;
  box-shadow: 0 8px 24px oklch(0.18 0.012 260 / 0.12);
  border-radius: 4px;
  font-family: var(--font-body);
}
.events-pop-head {
  padding: 12px 16px; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.events-pop-row {
  padding: 14px 16px; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 6px 1fr auto auto; gap: 14px; align-items: center;
}
.events-pop-row:last-of-type { border-bottom: 0; }
.events-pop-row:hover { background: var(--bg-sunk); }
.epr-sw { width: 6px; height: 36px; border-radius: 1px; }
.epr-name { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.epr-table { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); padding: 1px 5px; border: 1px solid var(--rule-2); border-radius: 2px; font-weight: 400; }
.epr-desc { font-size: 11px; color: var(--ink-3); margin-top: 3px; max-width: 38ch; }
.epr-counts { display: flex; gap: 14px; }
.epr-counts > div { text-align: right; }
.epr-n { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1; display: block; }
.epr-n-sm { font-size: 16px; color: var(--ink-2); }
.epr-l { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.epr-geo { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); width: 60px; text-align: right; }
.events-pop-foot {
  padding: 10px 16px; background: var(--bg-sunk);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
}
.events-pop-foot a { color: var(--accent); }

/* ===== User chip ===== */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border: 1px solid var(--rule-2); border-radius: 99px;
  font-size: 12px; color: var(--ink);
}
.user-avatar {
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--accent); color: white;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.user-org { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }

/* ===== Data architecture section ===== */
.data-arch { background: var(--bg-elev); border: 1px solid var(--rule); }
.data-arch-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; }
.data-arch-copy { padding: 36px 32px; border-right: 1px solid var(--rule); }
.data-arch-copy h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.data-arch-copy p { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.data-arch-copy ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.data-arch-copy ul li {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
}
.data-arch-copy ul li::before { content: "›"; color: var(--accent); }
.data-arch-diagram { padding: 36px 32px; background: var(--bg-sunk); position: relative; }
.darch-row {
  display: grid; grid-template-columns: 200px 60px 1fr; gap: 0; align-items: stretch;
  margin-bottom: 14px;
}
.darch-row:last-child { margin-bottom: 0; }
.darch-table {
  border: 1px solid var(--rule); background: var(--bg-elev);
  padding: 10px 12px; font-family: var(--font-mono); font-size: 11px;
  border-radius: 3px;
}
.darch-table .tname { color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.darch-table .tname .dot { width: 6px; height: 6px; border-radius: 99px; }
.darch-table .tcols { color: var(--ink-3); font-size: 10px; margin-top: 6px; line-height: 1.5; }
.darch-arrow {
  display: grid; place-items: center; color: var(--ink-3);
  font-family: var(--font-mono); font-size: 10px;
  position: relative;
}
.darch-arrow::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 50%;
  border-top: 1px dashed var(--rule-2);
}
.darch-arrow span { background: var(--bg-sunk); padding: 0 4px; position: relative; z-index: 1; }
.darch-target {
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  padding: 10px 12px; font-family: var(--font-mono); font-size: 11px;
  border-radius: 3px; display: flex; align-items: center; gap: 10px;
}
.darch-target .badge {
  background: var(--accent); color: white;
  padding: 1px 6px; border-radius: 2px; font-size: 9px; letter-spacing: 0.06em;
}
.darch-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule-2);
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
  display: flex; justify-content: space-between;
}

/* ===== Onboarding ===== */
.onboard-modal {
  width: 640px; max-width: calc(100vw - 40px); padding: 0;
  display: grid; grid-template-columns: 200px 1fr; min-height: 460px;
  overflow: hidden;
}
.onboard-side {
  background: var(--ink); color: var(--bg);
  padding: 24px 20px;
  display: flex; flex-direction: column;
  font-family: var(--font-mono); font-size: 11px;
}
.onboard-side .title {
  font-family: var(--font-display); font-size: 16px; color: var(--bg);
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.onboard-side .subtitle { color: oklch(0.7 0.04 240); margin-bottom: 28px; font-size: 11px; }
.onboard-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; flex: 1; }
.onboard-steps li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center;
  padding: 8px 6px; border-radius: 3px;
  color: oklch(0.7 0.04 240);
  font-size: 11px;
}
.onboard-steps li.cur { background: oklch(0.28 0.014 260); color: var(--bg); }
.onboard-steps li.done { color: oklch(0.78 0.006 240); }
.onboard-steps .num {
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 99px;
  font-size: 10px;
}
.onboard-steps li.cur .num { background: var(--accent); border-color: var(--accent); color: white; }
.onboard-steps li.done .num { background: var(--ok); border-color: var(--ok); color: white; }
.onboard-body {
  padding: 32px; display: flex; flex-direction: column;
  background: var(--bg-elev);
}
.onboard-body h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.onboard-body p { color: var(--ink-2); font-size: 13px; margin: 0 0 20px; }
.onboard-body .field { margin-bottom: 12px; }
.onboard-body .picker {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.onboard-body .pick {
  border: 1px solid var(--rule-2); padding: 12px; border-radius: 3px;
  cursor: pointer; transition: all .15s;
  display: grid; gap: 4px;
}
.onboard-body .pick:hover { border-color: var(--ink-3); }
.onboard-body .pick.on { border-color: var(--ink); background: var(--bg-sunk); }
.onboard-body .pick .pt { font-size: 13px; font-weight: 500; }
.onboard-body .pick .pd { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.onboard-actions {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--rule);
}
.onboard-actions .step-info { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.onboard-actions .right { display: flex; gap: 8px; }
.onboard-success {
  text-align: center; padding: 40px 24px;
}
.onboard-success .ok-mark {
  width: 56px; height: 56px; border-radius: 99px; background: var(--ok); color: white;
  display: grid; place-items: center; margin: 0 auto 18px;
  font-size: 26px;
}

/* ===== Login-required mini-modal ===== */
.gate-modal { width: 380px; }
.gate-modal .gate-icon {
  width: 44px; height: 44px; border-radius: 99px;
  background: oklch(0.97 0.02 32); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
  font-size: 22px;
}


/* ===== Live map embed + fullscreen ===== */
.live-map-embed { position: relative; width: 100%; height: 100%; min-height: 480px; }
.live-map-embed iframe { display: block; }
.live-map-fs {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-size: 14px; color: var(--ink-2);
  cursor: pointer;
  box-shadow: 0 2px 6px oklch(0.18 0.012 260 / 0.08);
}
.live-map-fs:hover { color: var(--ink); border-color: var(--ink-3); }

.map-fs-backdrop {
  position: fixed; inset: 0; background: oklch(0.18 0.012 260 / 0.6);
  display: grid; place-items: center; z-index: 200;
  backdrop-filter: blur(3px);
  padding: 24px;
}
.map-fs-frame {
  width: 100%; height: 100%;
  background: var(--bg-elev); border: 1px solid var(--rule);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px oklch(0.18 0.012 260 / 0.2);
}
.map-fs-bar {
  padding: 10px 14px; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-elev);
}


/* ============================================================ */
/* Forecast table view (forecast-table.jsx)                     */
/* ============================================================ */

.ftv-tabs {
  display: flex; gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  margin-bottom: -1px;
}
.ftv-tab {
  padding: 14px 20px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: var(--bg-elev);
  font-family: var(--font-body, inherit);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left;
  min-width: 180px;
}
.ftv-tab:last-child { border-right: 0; }
.ftv-tab:hover { background: var(--bg-sunk); color: var(--ink); }
.ftv-tab.active {
  background: var(--bg);
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}
.ftv-tab.placeholder {
  color: var(--ink-3);
  cursor: not-allowed;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-elev) 0 8px,
    var(--bg-sunk) 8px 16px
  );
  font-style: italic;
}
.ftv-tab-key {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.04em;
}

.ftv-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-bottom: 0;
}
.ftv-search {
  flex: 1; min-width: 200px;
  padding: 7px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
}
.ftv-search:focus {
  outline: none;
  border-color: var(--ink);
}
.ftv-checkbox {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2);
  cursor: pointer;
}
.ftv-spacer { flex: 1; }
.ftv-pagesize {
  font-size: 12px; color: var(--ink-3);
  font-family: var(--font-mono);
  display: inline-flex; align-items: center;
}
.ftv-pagesize select {
  padding: 4px 6px;
  border: 1px solid var(--rule-2);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono); font-size: 12px;
  border-radius: 2px;
}
.ftv-pager {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
}
.ftv-pager button {
  width: 28px; height: 28px;
  border: 1px solid var(--rule-2);
  background: var(--bg);
  color: var(--ink);
  border-radius: 2px;
  cursor: pointer;
}
.ftv-pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.ftv-pager button:not(:disabled):hover { border-color: var(--ink); }

.ftv-table-wrap {
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  overflow-x: auto;
  position: relative;
  transition: opacity .15s;
}
.ftv-table-wrap.loading { opacity: 0.6; }
.ftv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ftv-table thead th {
  position: sticky; top: 0;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.ftv-table thead th:hover { color: var(--ink); }
.ftv-table thead th.num { text-align: right; }
.ftv-sort-indicator {
  display: inline-block;
  width: 14px;
  margin-left: 4px;
  color: var(--accent);
}
.ftv-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  white-space: nowrap;
}
.ftv-table tbody td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.ftv-table tbody tr:hover td { background: var(--bg-sunk); }
.ftv-null { color: var(--ink-3); font-style: italic; }
.ftv-empty {
  text-align: center;
  padding: 40px 12px !important;
  color: var(--ink-3);
  font-style: italic;
}

.ftv-error {
  padding: 14px 16px;
  background: oklch(0.97 0.04 25);
  border: 1px solid var(--crit);
  color: oklch(0.35 0.15 25);
  font-size: 13px;
  border-radius: 3px;
  margin-bottom: 12px;
}
[data-theme="dark"] .ftv-error {
  background: oklch(0.25 0.06 25);
  color: oklch(0.85 0.08 25);
}
.ftv-loading {
  padding: 40px;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-mono); font-size: 12px;
}

.ftv-foot {
  margin-top: 8px;
  padding: 8px 4px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3);
}
.ftv-foot .mono { color: var(--ink-2); }

/* Live-situation toast (line/region save confirmations) */
.ls-toast {
  position: absolute;
  z-index: 1300;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: 80%;
  background: var(--ink, #16181c);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}

/* ============================================================================
   Live Situation map (immediate-map.jsx) — was never styled in the original
   prototype; without an explicit map height Leaflet renders nothing.
   ========================================================================= */
.ls { padding: 28px 0 8px; }
.ls .container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ls-head { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.ls-title { font-size: 30px; line-height: 1.15; font-weight: 600; margin: 6px 0 8px; }
.ls-title .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.ls-lead { font-size: 15px; color: var(--ink-2); max-width: 640px; }
.ls-head-cta { display: flex; gap: 10px; flex-shrink: 0; }

.ls-module { border: 1px solid var(--bg-sunk); border-radius: 12px; overflow: hidden; background: var(--bg-elev); }
.ls-map-wrap { position: relative; width: 100%; }
.ls-map { width: 100%; height: 560px; background: var(--bg-sunk); z-index: 1; }
@media (max-width: 720px) { .ls-map { height: 420px; } }
.ls-map .leaflet-container { font: inherit; }

/* floating controls over the map */
.ls-toolbar { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1000;
  display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; pointer-events: none; }
.ls-toolbar > * { pointer-events: auto; }
.ls-layer-toggles, .ls-draw-controls { display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  background: var(--bg-elev); padding: 6px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.ls-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 9px;
  border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; }
.ls-toggle.on { background: var(--bg-sunk); color: var(--ink); }
.ls-toggle .sw, .ls-legend-row .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.ls-radarbar { position: absolute; left: 12px; bottom: 12px; z-index: 1000; display: flex; align-items: center; gap: 8px;
  background: var(--bg-elev); padding: 6px 10px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.ls-play { border: none; background: var(--ink); color: var(--bg); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; }
.ls-frame { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--ink-2); }
.ls-scrub { width: 120px; }

.ls-legend { position: absolute; right: 12px; bottom: 12px; z-index: 1000; background: var(--bg-elev);
  padding: 8px 10px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 12px; }
.ls-legend-h { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 5px; }
.ls-legend-row { display: flex; align-items: center; gap: 7px; color: var(--ink-2); padding: 1px 0; }

/* affected-lines table below the map */
.ls-affected { padding: 14px 16px 18px; }
.ls-affected-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ls-affected-titles { display: flex; flex-direction: column; }
.ls-affected-title { font-weight: 600; }
.ls-affected-sub { font-size: 12px; color: var(--ink-3); }
.ls-only { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ls-live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--crit); }
.ls-live-dot .pulse { width: 7px; height: 7px; border-radius: 99px; background: var(--crit); display: inline-block; }
.ls-table-wrap { overflow-x: auto; border: 1px solid var(--bg-sunk); border-radius: 8px; }
.ls-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ls-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3);
  padding: 8px 10px; border-bottom: 1px solid var(--bg-sunk); background: var(--bg-sunk); }
.ls-table th.num, .ls-table td.num { text-align: center; }
.ls-table td { padding: 8px 10px; border-bottom: 1px solid var(--bg-sunk); color: var(--ink-2); }
.ls-trow { cursor: pointer; }
.ls-trow:hover { background: var(--bg-sunk); }
.ls-trow.active { background: var(--bg-sunk); }
.ls-td-name { color: var(--ink); font-weight: 500; }
.ls-sev { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 5px; color: #fff; font-weight: 600; }
.ls-tag { display: inline-block; padding: 2px 8px; border: 1px solid; border-radius: 99px; font-size: 11px; }
.ls-tag.clear { color: var(--ink-3); border-color: var(--ink-3); }
.ls-metric { font-family: var(--font-mono, monospace); font-size: 12px; }
.ls-empty { text-align: center; color: var(--ink-3); padding: 18px; }
.ls-affected-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.ls-affected-foot .mono { font-family: var(--font-mono, monospace); }

/* ============================================================================
   Lifecycle band — "Design → Build → Operate" + shared climate engine
   (sections.jsx Lifecycle). Added during the design re-sync.
   ========================================================================= */
.lifecycle { border: 1px solid var(--rule); background: var(--bg-elev); }
.lc-stages { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
.lc-stage { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.lc-stage.muted { background: var(--bg-sunk); }
.lc-stage p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; margin: 0 0 4px; flex: 1; }
.lc-phase { font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lc-prod { display: flex; align-items: center; gap: 8px; font-family: var(--font-display, inherit); font-size: 20px; font-weight: 600; }
.lc-glyph { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; font-size: 14px; color: #fff; }
.lc-glyph.cableway { background: var(--ink); }
.lc-glyph.build { background: var(--ink-3); }
.lc-glyph.forecast { background: var(--accent); }
.lc-arrow { display: flex; align-items: center; justify-content: center; padding: 0 6px; color: var(--ink-3); font-size: 18px; }
.lc-note { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--ink-3); }
.lc-engine { border-top: 1px solid var(--rule); padding: 24px 26px; background: var(--bg-sunk); }
.lc-engine-label { font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.lc-engine-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lc-src { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--ink-2); border: 1px solid var(--rule); background: var(--bg-elev); padding: 5px 10px; border-radius: 6px; }
.lc-engine-note { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; max-width: 70ch; margin: 0; }
.lc-engine-note strong { color: var(--ink); }
@media (max-width: 860px) {
  .lc-stages { grid-template-columns: 1fr; }
  .lc-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* My lines — the user's account lines (open in Cableway) */
.ls-mylines { padding: 14px 16px 4px; border-top: 1px solid var(--bg-sunk); }
.ls-mylines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.ls-mlcard { border: 1px solid var(--bg-sunk); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ls-mlname { font-weight: 600; color: var(--ink); font-size: 14px; }
.ls-mlmeta { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--ink-3); flex: 1; }
.ls-mlcard .btn { align-self: flex-start; }

/* Fullscreen map — make the map fill the screen when the wrap is fullscreen */
.ls-map-wrap:fullscreen { width: 100vw; height: 100vh; background: var(--bg); }
.ls-map-wrap:fullscreen .ls-map { height: 100vh; }
.ls-map-wrap:-webkit-full-screen { width: 100vw; height: 100vh; }
.ls-map-wrap:-webkit-full-screen .ls-map { height: 100vh; }

/* My lines — searchable header dropdown */
.mylines-menu { position: relative; display: inline-block; }
.mylines-btn { background: transparent; border: 1px solid var(--rule); border-radius: 6px;
  padding: 5px 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.mylines-btn:hover { color: var(--ink); background: var(--bg-sunk); }
.mylines-dropdown { position: absolute; top: calc(100% + 6px); right: 0; width: 320px; z-index: 1500;
  background: var(--bg-elev); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 8px; }
.mylines-search { width: 100%; box-sizing: border-box; padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 13px; }
.mylines-list { max-height: 320px; overflow-y: auto; }
.mylines-empty { padding: 12px; text-align: center; color: var(--ink-3); font-size: 13px; }
.mylines-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px;
  text-decoration: none; }
.mylines-item:hover { background: var(--bg-sunk); }
.mylines-name { color: var(--ink); font-size: 13.5px; font-weight: 500; }
.mylines-open { color: var(--accent); font-size: 11px; }
.mylines-manage { display: block; width: 100%; text-align: left; margin-top: 6px;
  padding: 9px 10px; border: 0; border-top: 1px solid var(--rule); background: none;
  color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; }
.mylines-manage:hover { background: var(--bg-sunk); }

/* ── Manage alerts modal ── */
.manage-modal { width: 560px; max-height: calc(100vh - 64px); overflow-y: auto; position: relative; }
.manage-section-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin: 6px 0 8px; }
.manage-empty { color: var(--ink-3); font-size: 13px; padding: 8px 0 12px; }
.manage-err { background: oklch(0.62 0.18 25 / .12); border: 1px solid oklch(0.62 0.18 25 / .4);
  color: var(--ink); font-size: 12.5px; padding: 8px 10px; border-radius: 6px; margin-bottom: 12px; }
.manage-row { display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--rule); }
.manage-row:first-of-type { border-top: 0; }
.manage-row-main { min-width: 0; flex: 1; }
.manage-name { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.manage-muted { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.manage-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.manage-channels { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.manage-channels .toggle { cursor: pointer; background: none; }
.manage-link { border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 11px;
  cursor: pointer; text-decoration: underline; padding: 2px 4px; }
.manage-link:hover { color: var(--ink); }
.manage-del { border: 1px solid var(--rule-2); background: none; color: var(--ink-3);
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer; font-size: 12px; line-height: 1; }
.manage-del:hover { border-color: oklch(0.62 0.18 25 / .6); color: oklch(0.62 0.18 25); }

/* ── Map: lines-loading spinner ── */
.ls-spinner-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 500; display: flex; align-items: center; gap: 8px;
  background: rgba(20,22,28,.72); color: #fff; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; pointer-events: none; }
.ls-spinner { width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: ls-spin 0.7s linear infinite; display: inline-block; }
.ls-spinner-txt { font-family: var(--font-mono, monospace); }
@keyframes ls-spin { to { transform: rotate(360deg); } }
@keyframes hc-spin { to { transform: rotate(360deg); } }

/* ── Picked-line details (subscribe popover) ── */
.ls-line-meta { border: 1px solid var(--rule, #e5e5e5); border-radius: 6px;
  padding: 6px 8px; margin: 6px 0 10px; background: var(--bg-sunk, #f6f6f6);
  font-size: 12px; max-height: 168px; overflow-y: auto; }
.ls-line-meta-row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.ls-line-meta-k { color: var(--ink-3, #888); }
.ls-line-meta-v { font-weight: 600; text-align: right; }
.ls-sub-h { font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3, #888); margin: 4px 0 6px; }
.ls-sub-channels { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ls-sub-channels .toggle { cursor: pointer; background: none; }

/* Affected-region count badge centered on each region bubble */
.ls-region-count { display:flex; align-items:center; justify-content:center;
  font: 600 12px/1 var(--font-mono, monospace); color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events:none; }

/* ── Supported countries grid ── */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.country-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--rule, var(--bg-sunk)); background: var(--bg-elev); border-radius: 8px; }
.cc-flag { font-size: 20px; line-height: 1; }
.cc-name { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.cc-n { margin-left: auto; font-family: var(--font-mono, monospace); font-size: 12px; color: var(--ink-3); }

/* ── Measure-tool label on the map ── */
.ls-measure-label { display: flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--font-mono, monospace); color: #fff; background: #111;
  border-radius: 5px; padding: 3px 6px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
/* Leaflet scale control: bottom-left, just above the radar bar, with a solid
   chip so it reads on the light basemap. */
.leaflet-bottom.leaflet-left .leaflet-control-scale { margin: 0 0 52px 12px; }
.leaflet-control-scale-line {
  background: var(--bg-elev, #fff); color: var(--ink, #16181c);
  border: 1px solid var(--ink-3, #888); border-top: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); font-size: 11px; font-weight: 500; padding: 2px 6px;
}

/* ── Whitepaper page ── */
.wp { padding: 40px 0 64px; }
.wp-container { max-width: 820px; }
.wp-title { font-family: var(--font-display, inherit); font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 14px; }
.wp-lead { font-size: 17px; color: var(--ink-2); line-height: 1.5; margin: 0 0 22px; }
.wp-lead em { font-style: italic; color: var(--ink); }
.wp-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule, var(--bg-sunk));
  border: 1px solid var(--rule, var(--bg-sunk)); border-radius: 8px; overflow: hidden; margin-bottom: 28px; }
.wp-meta > div { background: var(--bg-elev); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.wp-meta .k { font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.wp-meta .v { font-size: 13px; color: var(--ink); }
.wp h2 { font-size: 19px; margin: 26px 0 8px; }
.wp p { color: var(--ink-2); line-height: 1.6; margin: 0 0 12px; }
.wp p strong, .wp-list strong { color: var(--ink); }
.wp-list { color: var(--ink-2); line-height: 1.6; padding-left: 18px; margin: 0 0 12px; }
.wp-list li { margin: 4px 0; }
.wp-inline-btn { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
.wp-cta { display: flex; gap: 10px; margin: 26px 0 18px; flex-wrap: wrap; }
.wp-foot { color: var(--ink-3); font-size: 11px; border-top: 1px solid var(--rule, var(--bg-sunk)); padding-top: 14px; }

/* ── Affected-regions filters + tabs ── */
.ls-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.ls-filter { font-size: 13px; padding: 6px 9px; border: 1px solid var(--rule, var(--bg-sunk));
  border-radius: 6px; background: var(--bg-elev); color: var(--ink); }
.ls-filter-count { margin-left: auto; font-family: var(--font-mono, monospace); font-size: 12px; color: var(--ink-3); }
.ls-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ls-tab { font-size: 12px; font-family: var(--font-mono, monospace); padding: 5px 10px;
  border: 1px solid var(--rule, var(--bg-sunk)); border-radius: 6px; background: var(--bg-elev);
  color: var(--ink-2); cursor: pointer; }
.ls-tab:hover { background: var(--bg-sunk); }
.ls-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Top intro: two equal products ── */
.intro { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }
.intro-h1 { font-family: var(--font-display, inherit); font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 6px 0 14px; max-width: 22ch; }
.intro-lead { font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 70ch; margin: 0 0 28px; }
.intro-lead em { font-style: italic; color: var(--ink); }
.intro-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.intro-card { border: 1px solid var(--rule); border-radius: 12px; padding: 22px; background: var(--bg-elev);
  display: flex; flex-direction: column; gap: 10px; }
.intro-card.design { border-color: var(--ink-3); }
.intro-card h3 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 8px; }
.intro-glyph { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: 7px; color: #fff; font-size: 15px; }
.intro-card.design .intro-glyph { background: var(--ink); }
.intro-card.operate .intro-glyph { background: var(--accent); }
.intro-tag { font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); }
.intro-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; flex: 1; }
.intro-card .btn { align-self: flex-start; }
@media (max-width: 760px) { .intro-cards { grid-template-columns: 1fr; } }

/* ── Historical data page ── */
.hist { padding: 40px 0 64px; }
.hist-head { max-width: 760px; margin: 0 0 24px; }
.hist-kicker { font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hist-title { font-family: var(--font-display, inherit); font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 12px; }
.hist-sub { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.hist-sub strong { color: var(--ink); }
.hist-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .hist-grid { grid-template-columns: 1fr; } }

.hist-mapcol { display: flex; flex-direction: column; gap: 10px; }
.hist-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-map { height: 460px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--rule, var(--bg-sunk)); background: var(--bg-sunk); }
/* Import field mapping (which attribute is the name / the voltage). */
.rev-map-fields { display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
                  margin: 10px 0 2px; font-size: 12.5px; color: var(--ink-2, #45586a); }
.rev-map-fields label { display: flex; align-items: center; gap: 6px; }
.rev-map-fields select { max-width: 260px; }
.rev-kv { flex-shrink: 0; font-family: var(--font-mono, monospace); font-size: 11px;
          padding: 1px 6px; border-radius: 3px; margin-left: 6px;
          background: var(--panel-2, #eef2f5); color: var(--ink-2, #45586a); }

/* Monitoring import on the Review page (upload lines → subscribe). */
.rev-import { border: 1px solid var(--line, #d9e1e8); border-radius: 8px;
              padding: 12px 14px; margin: 0 0 14px; }
.rev-import-h { display: flex; align-items: flex-start; justify-content: space-between;
                gap: 14px; flex-wrap: wrap; }
.rev-import-sub { font-size: 12.5px; margin-top: 3px; max-width: 62ch; }
.rev-import-acts { display: flex; gap: 6px; flex-shrink: 0; }
.rev-import-list { max-height: 190px; margin-top: 10px;
                   border: 1px solid var(--line, #eef2f5); border-radius: 6px; }
.rev-import-foot { display: flex; align-items: center; justify-content: space-between;
                   gap: 10px; margin-top: 8px; font-size: 12.5px; }
.rev-import-msg { margin-top: 8px; font-size: 12.5px; color: var(--ink-2, #45586a); }

/* Batch line picker (multi-line file import on the Historical page). */
.hist-lines { border: 1px solid var(--line, #d9e1e8); border-radius: 6px; margin-top: 10px;
              overflow: hidden; }
.hist-lines-h { display: flex; align-items: center; justify-content: space-between;
                gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line, #d9e1e8);
                font-size: 13px; }
.hist-lines-acts { display: flex; gap: 4px; }
.hist-lines-list { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.hist-line { display: flex; align-items: center; gap: 8px; padding: 6px 10px;
             font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line, #eef2f5); }
.hist-line:last-child { border-bottom: 0; }
.hist-line.focus { background: rgba(42, 125, 225, 0.09); }
.hist-line.off .hist-line-nm { color: var(--ink-3, #7a8b99); text-decoration: line-through; }
.hist-line-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                white-space: nowrap; }
.hist-line-meta { color: var(--ink-3, #7a8b99); font-size: 11.5px; white-space: nowrap;
                  font-variant-numeric: tabular-nums; }
.hist-lines-foot { padding: 7px 10px; font-size: 11.5px;
                   border-top: 1px solid var(--line, #eef2f5); }
.hist-mapfoot { font-size: 13px; color: var(--ink-2); }
.hist-muted { color: var(--ink-3); font-size: 13px; }

.hist-side { display: flex; flex-direction: column; gap: 14px; }
.hist-card { border: 1px solid var(--rule, var(--bg-sunk)); border-radius: 12px;
  background: var(--bg-elev); padding: 16px; }
.hist-card-h { font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.hist-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hist-field > span { font-size: 13.5px; color: var(--ink-2); }
.hist-field select, .hist-field input { font: inherit; font-size: 13px; padding: 6px 8px;
  border: 1px solid var(--rule, var(--bg-sunk)); border-radius: var(--radius); background: var(--bg);
  color: var(--ink); min-width: 120px; }
.hist-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.hist-go { width: 100%; margin-top: 6px; justify-content: center; }
.hist-go:disabled { opacity: .5; cursor: not-allowed; }
.hist-note { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

.hist-metrics { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 6px; }
.hist-metric { min-width: 90px; }
.hist-metric-v { font-family: var(--font-display, inherit); font-size: 26px; font-weight: 600;
  line-height: 1.1; color: var(--ink); }
.hist-metric-v small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.hist-metric-v.hist-metric-sm { font-size: 16px; }
.hist-metric-k { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.hist-dl { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.hist-dl .ls-spinner { border-color: var(--ink-3); border-top-color: var(--accent); margin-top: 2px; }
.hist-err { color: var(--crit); font-size: 13px; margin-top: 8px; }

.hist-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.hist-table th { text-align: left; font-family: var(--font-mono, monospace); font-size: 10px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  padding: 4px 6px; border-bottom: 1px solid var(--rule, var(--bg-sunk)); }
.hist-table td { padding: 4px 6px; border-bottom: 1px solid var(--rule, var(--bg-sunk)); color: var(--ink-2); }
.hist-table td strong { color: var(--ink); }

/* ── Whitepaper: equation blocks ── */
.wp-eq { font-family: var(--font-mono, monospace); font-size: 13px; line-height: 1.7;
  color: var(--ink); background: var(--bg-sunk); border: 1px solid var(--rule, var(--bg-sunk));
  border-left: 3px solid var(--accent); border-radius: 6px; padding: 10px 14px; margin: 4px 0 14px;
  overflow-x: auto; }
.wp-eq .wp-eq-row { white-space: nowrap; }
.wp-eq .wp-eq-note { color: var(--ink-3); font-size: 12px; }

/* ── Three-product intro grid + Historical (analyze) card ── */
.intro-cards.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 980px) { .intro-cards.three { grid-template-columns: 1fr; } }
.intro-card.analyze .intro-glyph { background: oklch(0.55 0.12 240); color: #fff; }

/* Dark-mode fix: a glyph on a var(--ink) background must invert its mark,
   else the Cableway diamond is a light shape on a light square. */
.intro-card.design .intro-glyph,
.lc-glyph.cableway { color: var(--bg); }

/* Auth: keep disabled buttons readable (was white-on-white) + field hint */
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-accent:disabled { background: var(--accent); color: #fff; opacity: 0.6; }
.field-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* ── Product icons: consistent per-product colors aligned with the intro cards ── */
.prod-tab-ico { margin-right: 6px; font-size: 13px; line-height: 1; vertical-align: middle; }
.prod-tab-ico.forecast { color: var(--accent); }
.prod-tab-ico.analyze  { color: oklch(0.55 0.12 240); }
.prod-tab-ico.cableway { color: var(--ink); }
.prod-tab.active .prod-tab-ico { filter: saturate(1.2); }
/* Emphasize the first-section card glyphs (bigger, lifted) */
.intro-glyph { width: 32px; height: 32px; font-size: 17px; box-shadow: 0 2px 8px rgba(0,0,0,.16); }

/* ── Event review page (expert confirmation of AI predictions) ─────────────
   Two panes: scrollable ledger left, sticky map + verdict right. */
.rev-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
           padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rev-check { display: inline-flex; align-items: center; gap: 6px;
             font-size: 13px; color: var(--ink-2); }
.rev-check select { margin-left: 4px; }
.rev-spacer { flex: 1; }
.rev-stat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
            color: var(--ink-2); }
.rev-stat-sub { color: var(--ink-3); }
.rev-split { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 18px;
             align-items: start; }
@media (max-width: 900px) {
  .rev-split { grid-template-columns: 1fr; }
  /* Stacked: don't nest a tall scroller inside the page scroll — show the
     map first (it's the context for the decision), list below, no trap. */
  .rev-split { display: flex; flex-direction: column-reverse; }
  .rev-list { max-height: none; overflow: visible; }
  .rev-mapcol { position: static; }
  .rev-map { height: 300px; }
}

.rev-list { display: flex; flex-direction: column; gap: 8px;
            max-height: 78vh; overflow-y: auto; overscroll-behavior: contain;
            padding-right: 4px; }
.rev-item { text-align: left; background: var(--surface); border: 1px solid var(--line);
            border-left: 3px solid transparent; border-radius: 10px; padding: 10px 12px;
            cursor: pointer; font: inherit; color: inherit; display: block; width: 100%; }
.rev-item:hover { border-color: var(--ink-3); }
.rev-item.on { border-left-color: var(--accent); background: var(--surface-2, var(--surface));
               box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.rev-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rev-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rev-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em;
           text-transform: uppercase; color: var(--ink-3); }
.rev-tag.ai { color: var(--accent); }
.rev-when { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
            font-variant-numeric: tabular-nums; }
.rev-label { font-weight: 600; font-size: 14px; margin: 3px 0 1px; }
.rev-sum { font-size: 12.5px; color: var(--ink-2); }
.rev-verdict { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
               font-size: 11px; border-radius: 4px; padding: 2px 8px;
               background: var(--panel-2, #eef1f4); color: var(--ink-2); }
.rev-verdict.v-yes { background: rgba(46,160,67,.14); color: #2ea043; }
.rev-verdict.v-no { background: rgba(192,57,43,.13); color: #c0392b; }
.rev-verdict.v-minor { background: rgba(224,162,27,.16); color: #a9761a; }
.rev-verdict.v-unsure { background: rgba(110,95,168,.14); color: #6e5fa8; }
.rev-verdict.v-supp { font-style: italic; }
.rev-count { font-size: 12px; color: var(--ink-3); padding: 4px 2px 10px; }
.rev-empty { background: var(--surface); border: 1px dashed var(--line);
             border-radius: 10px; padding: 18px; font-size: 14px; }
.rev-empty p { margin: 6px 0 0; }

.rev-mapcol { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; }
.rev-map { height: 420px; border-radius: 12px; overflow: hidden;
           border: 1px solid var(--line); background: var(--surface); }
.rev-geomsg { font-size: 12.5px; color: var(--ink-3); }
.rev-detail { background: var(--surface); border: 1px solid var(--line);
              border-radius: 12px; padding: 14px 16px; }
.rev-detail-h { font-weight: 600; font-size: 15px; }
.rev-detail-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 12px;
                   font-size: 12.5px; color: var(--ink-2); }
.rev-ask { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.rev-votes { display: flex; flex-wrap: wrap; gap: 8px; }
.rev-vote.picked { outline: 2px solid var(--accent); outline-offset: 1px; font-weight: 600; }
.rev-recorded { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
