/* ==========================================================================
   GoVo — Claude build v0.1 (September 2026)
   App shell + design system.

   Palette, type and graphics: Tyler / combined build (ivory, ink, brand
   orange, Fraunces + Inter + JetBrains Mono, concentric-ring motif).
   Organisation: Joshua build (native-app shell, bottom tab bar, cards).

   Rule carried over from the combined build: ORANGE MEANS ACTION, every
   other colour means data. Never put white text on --orange (fails AA);
   use ink text on orange fills.
   ========================================================================== */

/* Self-hosted fonts (SIL OFL 1.1) — no third-party requests, works offline. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/fraunces-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/fraunces-latin-opsz-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --ink: #0B1220;
  --ink-2: #1A2333;
  --ink-3: #3B4353;
  --ink-4: #6B7280;
  --paper: #FBF7EE;
  --paper-2: #F3EDE0;
  --paper-3: #EAE3D0;
  --card: #FFFDF8;
  --line: #E4DCC9;
  --line-2: #D8CDB3;

  --orange: #DE7E00;
  --orange-hi: #FC8C44;
  --orange-ink: #9A5500;
  --orange-wash: #FBEBD5;

  --party-ind: #C9A227;
  --leaf: #2F6B4F;
  --sky: #3B6E8F;
  --clay: #B0533C;
  --plum: #6E4B6E;
  --amber: #C8871F;
  --alert: #B23A2E;
  --alert-wash: #F6E1DC;
  --leaf-wash: #E1EDE5;

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, ui-serif, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-1: 8px;
  --r-2: 12px;
  --r-3: 18px;
  --r-4: 24px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(11,18,32,.04), 0 2px 8px rgba(11,18,32,.04);
  --shadow-2: 0 4px 12px rgba(11,18,32,.06), 0 16px 32px rgba(11,18,32,.07);
  --shadow-3: 0 12px 30px rgba(11,18,32,.14), 0 40px 80px rgba(11,18,32,.16);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --gutter: 18px;
  --appbar-h: 56px;
  --tabbar-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: clip;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
[hidden] { display: none !important; }

/* ==========================================================================
   STAGE — on desktop the app sits in a device frame; on phones it IS the app
   ========================================================================== */
.stage {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(222,126,0,.10), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(47,107,79,.08), transparent 60%),
    var(--paper-2);
}
.stage-rings {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; place-items: center; opacity: .55;
}
.stage-rings svg { width: min(1400px, 160vmax); height: auto; }

.stage-aside {
  position: absolute; left: clamp(32px, 6vw, 96px); top: 50%;
  transform: translateY(-50%);
  width: min(340px, calc(50vw - 260px));
  display: none;
}
.stage-aside .brand-lockup { margin-bottom: 22px; }
.stage-aside h2 { font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 14px; }
.stage-aside h2 em { color: var(--orange-ink); }
.stage-aside p { color: var(--ink-3); margin: 0 0 18px; }
.stage-aside .fine { font-size: 12px; color: var(--ink-4); }
@media (min-width: 1100px) and (min-height: 640px) { .stage-aside { display: block; } }

.device {
  position: relative;
  width: 402px;
  height: min(874px, calc(100vh - 48px));
  border-radius: 56px;
  padding: 11px;
  background: linear-gradient(145deg, #2A3344, #0B1220 40%, #1A2333);
  box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255,255,255,.08);
  z-index: 1;
}
.device::before { /* side buttons */
  content: ""; position: absolute; right: -3px; top: 190px; width: 3px; height: 78px;
  border-radius: 0 3px 3px 0; background: #1A2333;
}
.device-island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 112px; height: 32px; border-radius: 20px; background: #05080F; z-index: 60;
  pointer-events: none;
}
.app {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 46px;
  overflow: hidden;
  overflow: clip;
  background: var(--paper);
  isolation: isolate;
  --inset-t: 44px;
  --safe-b: 16px;
  /* The prototype banner sits under the status bar, so everything that pads by --safe-t clears it too. */
  --banner-h: 28px;
  --safe-t: calc(var(--inset-t) + var(--banner-h));
}

/* Real phones and narrow windows: full-bleed, no frame */
@media (max-width: 560px), (max-height: 600px) {
  .stage { padding: 0; display: block; }
  .stage-rings, .stage-aside { display: none; }
  .device { width: 100%; height: 100%; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .device::before, .device-island { display: none; }
  .app { border-radius: 0; --inset-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); }
}
/* Installed as an app (standalone) — same full-bleed treatment */
@media (display-mode: standalone) {
  .stage { padding: 0; display: block; }
  .stage-rings, .stage-aside { display: none; }
  .device { width: 100%; height: 100%; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .device::before, .device-island { display: none; }
  .app { border-radius: 0; --inset-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); }
}

/* Soft paper glow inside the app */
.app::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(520px 360px at 100% -5%, rgba(222,126,0,.09), transparent 65%),
    radial-gradient(480px 380px at -20% 45%, rgba(47,107,79,.06), transparent 65%);
}

/* Prototype banner: always on while some data is still sample data (remove at S5-7). */
.proto-banner {
  position: absolute; top: var(--inset-t); left: 0; right: 0; z-index: 35;
  height: var(--banner-h); margin: 0; padding: 0 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--orange-wash); color: var(--orange-ink);
  border-bottom: 1px solid color-mix(in oklab, var(--orange) 35%, var(--card));
  font-size: 12px; font-weight: 550; line-height: 1; white-space: nowrap; overflow: hidden;
}
.proto-banner button { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 6px 0; flex: none; }
@media (max-width: 360px) { .proto-banner { font-size: 11px; } }

/* ==========================================================================
   APP BAR
   ========================================================================== */
.appbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  padding: var(--safe-t) 12px 0;
  height: calc(var(--appbar-h) + var(--safe-t));
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr minmax(88px, auto);
  align-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.appbar.is-scrolled, .appbar.is-solid {
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: color-mix(in oklab, var(--line) 70%, transparent);
}
.appbar-lead, .appbar-trail { display: flex; align-items: center; gap: 4px; min-width: 0; }
.appbar-trail { justify-content: flex-end; }
.appbar-title {
  justify-self: center; min-width: 0; max-width: 100%;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.appbar.is-scrolled .appbar-title { opacity: 1; transform: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center;
  color: var(--ink);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.glass { background: color-mix(in oklab, var(--card) 80%, transparent); box-shadow: var(--shadow-1); border: 1px solid var(--line); }

.back-btn { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 10px 0 4px; border-radius: 20px; font-weight: 500; color: var(--orange-ink); }
.back-btn svg { width: 24px; height: 24px; }
.back-btn:active { opacity: .6; }

.brand-lockup { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--orange); display: inline-flex; }
.brand-mark svg { width: 26px; height: 26px; animation: spin-slow 40s linear infinite; }
.brand-word { font-family: var(--font-serif); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--orange);
  margin-left: 6px;
}
.avatar-btn.is-anon { background: var(--paper-2); color: var(--ink-3); box-shadow: 0 0 0 1px var(--line-2); }
.avatar-btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   SCREEN (scroll container) + transitions
   ========================================================================== */
.viewport { position: absolute; inset: 0; z-index: 1; }
.screen {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(var(--appbar-h) + var(--safe-t)) 0 calc(var(--tabbar-h) + var(--safe-b) + 28px);
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.app.no-tabs .screen { padding-bottom: calc(var(--safe-b) + 28px); }

.screen.enter-push { animation: push-in .42s var(--ease) both; }
.screen.enter-pop  { animation: pop-in .38s var(--ease) both; }
.screen.enter-tab  { animation: tab-in .32s var(--ease) both; }
.screen.leave-push { animation: push-out .42s var(--ease) both; pointer-events: none; }
.screen.leave-pop  { animation: pop-out .38s var(--ease) both; pointer-events: none; z-index: 2; }
.screen.leave-tab  { animation: fade-out .18s var(--ease) both; pointer-events: none; }
@keyframes push-in  { from { transform: translateX(100%); box-shadow: -20px 0 40px rgba(11,18,32,.08); } to { transform: none; } }
@keyframes push-out { to { transform: translateX(-28%); opacity: .6; } }
@keyframes pop-in   { from { transform: translateX(-28%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes pop-out  { to { transform: translateX(100%); } }
@keyframes tab-in   { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }
.screen.enter-push, .screen.enter-pop { background: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .screen[class*="enter-"], .screen[class*="leave-"] { animation-duration: .01s !important; }
  .brand-mark svg { animation: none; }
}

.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.stack > * + * { margin-top: 14px; }
.section { margin-top: 28px; }
.section:first-child { margin-top: 0; }

/* Large title header */
.lt { padding: 6px var(--gutter) 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink);
  margin: 0 0 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow.plain::before { display: none; }
.lt h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 34px; line-height: 1.04; letter-spacing: -.025em;
  margin: 0;
}
.lt h1 em { font-style: italic; color: var(--orange-ink); }
.lt .sub { margin: 10px 0 0; color: var(--ink-3); font-size: 15px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); margin: 0 0 12px; }
.sec-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -.015em; margin: 0; }
.sec-head a, .sec-head button, .link { color: var(--orange-ink); font-weight: 600; font-size: 14px; }
.sec-head a:active, .link:active { opacity: .6; }

/* ==========================================================================
   BOTTOM TAB BAR — scrollable, 8 destinations
   ========================================================================== */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0 0 var(--safe-b);
  background: color-mix(in oklab, var(--paper) 84%, transparent);
  backdrop-filter: saturate(170%) blur(22px);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  border-top: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.app.no-tabs .tabbar { transform: translateY(110%); opacity: 0; pointer-events: none; }
.tabs {
  display: flex; gap: 2px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding: 0 28px;
  padding: 8px 10px 8px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
}
.tabs::-webkit-scrollbar { display: none; }
.tabbar.fade-l .tabs { --fade-l: 34px; }
.tabbar.fade-r .tabs { --fade-r: 34px; }
.tab {
  flex: 0 0 auto;
  min-width: 70px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 2px 6px;
  color: var(--ink-4);
  font-size: 11px; font-weight: 500; letter-spacing: -.005em;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.tab-ico {
  width: 52px; height: 32px; border-radius: 16px;
  display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--spring), color .2s;
}
.tab-ico svg { width: 22px; height: 22px; }
.tab:active .tab-ico { transform: scale(.88); }
.tab.is-active { color: var(--ink); font-weight: 650; }
.tab.is-active .tab-ico { background: var(--ink); color: var(--orange-hi); }
.tab.is-active .tab-ico svg { stroke-width: 2; }
.tab-dot { position: absolute; }
.tab { position: relative; }
.tab .badge {
  position: absolute; top: 0; left: calc(50% + 12px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--alert); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.tab-hint {
  position: absolute; top: 50%; transform: translateY(calc(-50% - var(--safe-b) / 2));
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  color: var(--ink-3); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
}
.tab-hint svg { width: 12px; height: 12px; }
.tab-hint.l { left: 2px; } .tab-hint.r { right: 2px; }
@media (pointer: coarse) { .tab-hint { display: none; } }
.tabbar.fade-l .tab-hint.l, .tabbar.fade-r .tab-hint.r { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   BUTTONS, CHIPS, INPUTS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill);
  font-weight: 650; font-size: 15px; letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), opacity .15s;
  text-align: center;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(222,126,0,.55); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-quiet { color: var(--orange-ink); padding: 0 12px; }
.btn-danger { background: var(--alert); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 18px; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 0; min-width: 0; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter); }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 13.5px; font-weight: 550; color: var(--ink-3);
  transition: all .18s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip svg { width: 14px; height: 14px; }

.seg {
  display: flex; padding: 3px; gap: 2px;
  background: var(--paper-3); border-radius: 12px;
  margin: 0 var(--gutter);
}
.seg button {
  flex: 1; height: 34px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  transition: background .2s var(--ease), color .2s, box-shadow .2s;
}
.seg button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(11,18,32,.12), 0 0 0 .5px rgba(11,18,32,.04); }

.field { display: block; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 0 0 6px 4px; }
.input {
  width: 100%; height: 50px; padding: 0 16px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(222,126,0,.16); }
.input.is-bad { border-color: var(--alert); box-shadow: 0 0 0 4px rgba(178,58,46,.12); }
.field-err { color: var(--alert); font-size: 12.5px; margin: 6px 0 0 4px; }

.searchbar {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  margin: 0 var(--gutter);
  border-radius: 14px;
  background: var(--paper-3);
  color: var(--ink-4);
}
.searchbar svg { width: 18px; height: 18px; flex: none; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
.searchbar input::placeholder { color: var(--ink-4); }
.searchbar .btn { min-height: 34px; padding: 0 14px; font-size: 13px; margin-right: -8px; }

.check {
  display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); cursor: pointer;
}
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; transition: all .15s; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--orange-hi); border-bottom: 2px solid var(--orange-hi); transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   CARDS + LISTS
   ========================================================================== */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.card-list > .card + .card { margin-top: 12px; }
.mx { margin-left: var(--gutter); margin-right: var(--gutter); }
.card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; letter-spacing: -.01em; margin: 0 0 6px; line-height: 1.2; }
.card h4 { font-size: 15px; font-weight: 650; margin: 0 0 4px; }
.card p { margin: 0; }
.card .muted, .muted { color: var(--ink-4); }
.card-note { font-size: 13.5px; color: var(--ink-4); margin: 0 0 12px !important; }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.card.tap { transition: transform .18s var(--ease), box-shadow .18s var(--ease); cursor: pointer; }
.card.tap:active { transform: scale(.985); box-shadow: none; }

.list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  min-height: 56px;
  position: relative;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--line); }
.row.has-ico + .row.has-ico::before { left: 62px; }
a.row, button.row { width: 100%; text-align: left; transition: background .12s; }
a.row:active, button.row:active { background: var(--paper-2); }
.row-body { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.row-sub { display: block; font-size: 13px; color: var(--ink-4); line-height: 1.35; margin-top: 2px; }
.row-end { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink-4); font-size: 14px; }
.row-end .chev { width: 18px; height: 18px; color: var(--line-2); }
.row-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
}
.row-ico svg { width: 20px; height: 20px; }
.amount { font-family: var(--font-mono); font-size: 13px; color: var(--ink); font-weight: 500; letter-spacing: 0; }

/* Party pill + flags */
.party {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.party i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.flag {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 22px; padding: 4px 8px; border-radius: 6px; max-width: 100%;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.3;
}
.flag::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.flag-opposed, .flag-warn { background: var(--alert-wash); color: var(--alert); }
.flag-aligned { background: var(--leaf-wash); color: var(--leaf); }
.flag-match { background: var(--orange-wash); color: var(--orange-ink); }
.flag-neutral { background: var(--paper-2); color: var(--ink-3); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Avatars */
.av { flex: none; position: relative; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line); }
.av svg { width: 100%; height: 100%; }
.mono-av {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-serif); font-weight: 600; font-size: 17px;
  background: var(--ink); color: var(--orange-hi);
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero-card {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter);
  border-radius: var(--r-4);
  padding: 20px 20px 18px;
  background: radial-gradient(420px 300px at 110% -20%, rgba(252,140,68,.28), transparent 60%), var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 40px -18px rgba(11,18,32,.55);
}
.hero-card .rings { position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; color: var(--orange-hi); opacity: .22; pointer-events: none; }
.hero-card .rings svg { width: 100%; height: 100%; animation: spin-slow 60s linear infinite; }
.hero-card .eyebrow { color: var(--orange-hi); }
.hero-count { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 2px; }
.hero-count b { font-family: var(--font-serif); font-weight: 400; font-size: 64px; line-height: .95; letter-spacing: -.04em; color: var(--orange-hi); }
.hero-count span { font-size: 15px; color: rgba(251,247,238,.8); }
.hero-date { font-size: 14px; color: rgba(251,247,238,.7); margin: 0 0 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(251,247,238,.12); padding-top: 14px; margin-bottom: 16px; }
.hero-stats div + div { border-left: 1px solid rgba(251,247,238,.12); padding-left: 14px; }
.hero-stats b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.1; }
.hero-stats span { font-size: 11.5px; color: rgba(251,247,238,.65); }
.hero-card .loc { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 14px; background: rgba(251,247,238,.1); font-size: 12.5px; font-weight: 550; color: var(--paper); margin-bottom: 12px; }
.hero-card .loc svg { width: 14px; height: 14px; color: var(--orange-hi); }
.hero-card .btn-ghost { background: rgba(251,247,238,.08); color: var(--paper); border-color: rgba(251,247,238,.2); }
.hero-zip { display: flex; gap: 8px; margin-top: 4px; }
.hero-zip input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 1px solid rgba(251,247,238,.2); background: rgba(251,247,238,.08); color: var(--paper); padding: 0 14px; font-size: 16px; }
.hero-zip input::placeholder { color: rgba(251,247,238,.5); }
.hero-zip input:focus { outline: none; border-color: var(--orange-hi); }
.hero-hint { font-size: 12.5px; color: rgba(251,247,238,.6); margin-top: 10px; }
.hero-hint button { color: var(--orange-hi); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; margin: 0 2px; }

.carousel {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 4px var(--gutter) 10px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: none; }

.cand-mini { width: 168px; padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cand-mini .name { font-family: var(--font-serif); font-size: 17px; font-weight: 500; line-height: 1.15; }
.cand-mini .office { font-size: 12px; color: var(--ink-4); line-height: 1.3; }

.watch-item { display: flex; gap: 12px; align-items: flex-start; }
.watch-item .row-body p { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.4; }

.promo-dark {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter);
  border-radius: var(--r-4); padding: 20px;
  background: linear-gradient(135deg, #111A2B, #0B1220);
  color: var(--paper);
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.promo-dark h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 1.12; margin: 6px 0 6px; }
.promo-dark p { font-size: 13px; color: rgba(251,247,238,.7); margin: 0 0 14px; }
.promo-dark .eyebrow { color: var(--orange-hi); margin: 0; }
.promo-viewfinder { width: 92px; height: 92px; position: relative; display: grid; place-items: center; color: var(--orange-hi); }
.promo-viewfinder::before, .promo-viewfinder::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--orange-hi); border-radius: 18px; clip-path: polygon(0 0, 30% 0, 30% 4%, 4% 4%, 4% 30%, 0 30%, 0 70%, 4% 70%, 4% 96%, 30% 96%, 30% 100%, 70% 100%, 70% 96%, 96% 96%, 96% 70%, 100% 70%, 100% 30%, 96% 30%, 96% 4%, 70% 4%, 70% 0); }
.promo-viewfinder::after { display: none; }
.promo-viewfinder svg { width: 40px; height: 40px; }

/* ==========================================================================
   INTERESTS
   ========================================================================== */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--gutter); }
.topic-tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 96px; padding: 14px;
  border-radius: var(--r-3);
  background: var(--card); border: 1px solid var(--line);
  text-align: left;
  transition: transform .2s var(--spring), background .2s, border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-1);
}
.topic-tile:active { transform: scale(.96); }
.topic-tile .t-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.topic-tile .t-dot svg { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: all .25s var(--spring); }
.topic-tile .t-name { font-weight: 650; font-size: 14.5px; line-height: 1.2; }
.topic-tile.is-on { background: color-mix(in oklab, var(--c) 10%, var(--card)); border-color: color-mix(in oklab, var(--c) 55%, var(--card)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--c) 55%, var(--card)); }
.topic-tile.is-on .t-dot svg { opacity: 1; transform: none; }

.lean-card .subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.lean-card .chip { height: 32px; font-size: 13px; }
.lean-card .chip.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.lean-card .seg { margin: 0; }
.lean-card .head { display: flex; align-items: center; gap: 10px; }
.lean-card .head i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.lean-card .head h3 { margin: 0; flex: 1; }

.sticky-cta {
  position: sticky; bottom: 0; z-index: 5;
  padding: 14px var(--gutter) calc(14px + var(--safe-b));
  margin-top: 20px;
  background: linear-gradient(to top, var(--paper) 70%, color-mix(in oklab, var(--paper) 0%, transparent));
}
.app:not(.no-tabs) .sticky-cta { bottom: calc(var(--tabbar-h) + var(--safe-b)); }

/* ==========================================================================
   CANDIDATES
   ========================================================================== */
.cand-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.cand-card .name { font-family: var(--font-serif); font-weight: 500; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.cand-card .office { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin: 4px 0 8px; }
.cand-card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.cand-card .bars { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.mini-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; color: var(--ink-3); }
.mini-bar .track { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.mini-bar .track i { display: block; height: 100%; border-radius: 3px; }
.mini-bar b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink); }

.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.live-note { margin: 0 20px 16px; padding: 12px 14px; background: var(--paper-2); border-radius: 14px; color: var(--ink-3); }
.live-note p { margin: 0; font-size: 13px; line-height: 1.45; }
.live-note p + p { margin-top: 6px; }
.live-note strong { color: var(--ink); }
.live-loading { display: flex; align-items: center; gap: 10px; margin: 8px 20px 0; font-size: 13px; color: var(--ink-3); }
.live-loading i { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 40px 24px; color: var(--ink-4); }
.empty h3 { font-family: var(--font-serif); font-weight: 500; color: var(--ink); font-size: 20px; margin: 12px 0 6px; }
.empty .e-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--orange-ink); }
.empty .e-ico svg { width: 28px; height: 28px; }

/* Candidate detail */
.c-hero { padding: 0 var(--gutter); text-align: center; }
.c-hero .big-av { width: 84px; height: 84px; border-radius: 50%; margin: 8px auto 12px; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: var(--orange-hi); font-family: var(--font-serif); font-size: 32px; }
.c-hero .big-av img { width: 100%; height: 100%; object-fit: cover; }
.match-card { text-align: left; margin-top: 18px; }
.match-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; margin: 4px 0 8px; }
.match-gate { font-size: 16px; line-height: 1.4; margin: 0 0 14px; }
.lean-wrap { display: block; width: 220px; height: 220px; margin: 0 auto 10px; border-radius: 50%; transition: transform .2s var(--spring); }
.lean-wrap:active { transform: scale(.97); }
.lean-wrap svg { width: 100%; height: 100%; }
.lean-wrap .arc, .sheet .arc { transition: stroke-dasharray 1.1s var(--ease); }
.lean-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-3); }
.lean-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lean-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lean-legend b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.sheet .lean-legend { flex-direction: column; align-items: flex-start; gap: 8px; }
.lean-empty { font-size: 13px; color: var(--ink-4); margin: 0 auto; max-width: 30ch; }
.lean-empty strong:first-child { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.stand-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 14px !important; }
.stand-axis { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-4); margin-bottom: 6px; }
.stand-row { display: grid; grid-template-columns: minmax(0, 40%) 1fr; align-items: center; gap: 10px; min-height: 30px; }
.stand-label { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stand-track { position: relative; height: 8px; border-radius: 4px; background: var(--paper-3); }
.stand-mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.stand-dot { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card), 0 1px 3px rgba(11,18,32,.25); transition: left .9s var(--ease); }
.stand-card.is-in .stand-dot { left: var(--x); }
.stand-foot { font-size: 12.5px; color: var(--ink-4); margin-top: 14px !important; line-height: 1.5; }
.stand-foot .link { font-size: 12.5px; }
.lean-how { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--orange-ink); }
.lean-how svg { width: 14px; height: 14px; }
.c-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: 32px; letter-spacing: -.025em; line-height: 1.05; margin: 8px 0 6px; }
.c-hero .office { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.c-hero .tagline { color: var(--ink-3); font-size: 14.5px; margin: 12px auto 0; max-width: 34ch; }
.c-hero .flags, .c-hero .meta { justify-content: center; }
.c-hero .meta { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.qs-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px var(--gutter) 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-1); }
.qs-grid > div { padding: 12px 6px; text-align: center; min-width: 0; }
.qs-grid > div + div { border-left: 1px solid var(--line); }
.qs-grid b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.qs-grid span { display: block; font-size: 10.5px; color: var(--ink-4); line-height: 1.25; margin-top: 2px; }
.ring-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 14px 0 0; text-align: left; }
.ring-legend div { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.ring-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ring-legend span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-legend b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; }

.subtabs {
  position: sticky; top: calc(var(--appbar-h) + var(--safe-t)); z-index: 10;
  margin-top: 22px;
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.subtabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px var(--gutter); }
.subtabs-inner::-webkit-scrollbar { display: none; }
.subtab {
  flex: none; height: 34px; padding: 0 14px; border-radius: 17px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s var(--ease), color .2s;
}
.subtab.is-on { background: var(--ink); color: var(--paper); }
.subtab .n { min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--alert); color: #fff; font-size: 10.5px; line-height: 18px; }
.panel { padding: 16px var(--gutter) 0; animation: tab-in .3s var(--ease) both; }
.panel > * + * { margin-top: 12px; }

dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 8px 0 0; font-size: 14px; }
dl.kv dt { color: var(--ink-4); }
dl.kv dd { margin: 0; text-align: right; font-weight: 500; }
ul.clean { list-style: none; padding: 0; margin: 8px 0 0; }
ul.clean li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
ul.clean li:first-child { border-top: 0; padding-top: 2px; }

.vote-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.vote-row:first-of-type { border-top: 0; }
.vote-flag { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.vote-flag.for { background: var(--leaf-wash); color: var(--leaf); }
.vote-flag.against { background: var(--alert-wash); color: var(--alert); }
.vote-flag.neutral { background: var(--paper-2); color: var(--ink-3); }
.vote-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.vote-sub { font-size: 13px; color: var(--ink-4); margin-top: 2px !important; }
.vote-date { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); letter-spacing: .06em; margin-top: 4px !important; }

.pos-row { padding: 12px 0; border-top: 1px solid var(--line); }
.pos-row:first-of-type { border-top: 0; }
.pos-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.pos-bar { height: 6px; border-radius: 3px; background: var(--paper-3); margin: 8px 0 6px; overflow: hidden; }
.pos-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink-3); }
.pos-bar i.for { background: var(--leaf); } .pos-bar i.against { background: var(--clay); } .pos-bar i.neutral { background: var(--line-2); }
.pos-note { font-size: 13px; color: var(--ink-4); }

.lean-row { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.lean-row:first-of-type { border-top: 0; }
.lean-row .top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.lean-row .top i { width: 8px; height: 8px; border-radius: 50%; }
.lean-row .you { font-size: 12.5px; color: var(--orange-ink); font-weight: 600; }
.lean-row .them { font-size: 13.5px; color: var(--ink-3); }

.note {
  font-size: 12.5px; color: var(--ink-4); line-height: 1.5;
  padding: 12px 14px; border-radius: var(--r-2);
  background: var(--paper-2); border-left: 3px solid var(--orange);
}

.rating-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); gap: 10px; }
.rating { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-2); background: var(--paper-2); min-width: 0; }
.rating-ring { position: relative; width: 50px; height: 50px; flex: none; }
.rating-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.rating h4 { font-size: 13px !important; line-height: 1.25; margin: 0 0 2px !important; }
.rating p { font-size: 11.5px; color: var(--ink-4); }

.money-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money-top > div { padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); }
.money-top b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.1; }
.money-top span { font-size: 12px; color: var(--ink-4); }
.donut-wrap { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.donut-wrap svg { width: 132px; height: 132px; }
.legend-rows { display: grid; gap: 6px; font-size: 12.5px; min-width: 0; }
.legend-rows div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.legend-rows i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend-rows span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.legend-rows b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; }
.industry-donut { width: 200px; height: 200px; margin: 6px auto 14px; }
.industry-donut svg { width: 100%; height: 100%; }
.industry-rows { display: grid; }
.industry-rows div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.industry-rows div:first-child { border-top: 0; }
.industry-rows i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.industry-rows span { flex: 1; min-width: 0; color: var(--ink-2); }
.industry-rows b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.money-line:first-of-type { border-top: 0; }
.money-line .who { min-width: 0; }
.money-line .who small { display: block; color: var(--ink-4); font-size: 12px; }
a.money-line:active { opacity: .6; }

.splitbar-track { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--paper-3); }
.splitbar-track i { display: block; height: 100%; }
.splitbar-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.splitbar-labels span { display: inline-flex; align-items: center; gap: 6px; }
.splitbar-labels i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.conflict-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.conflict-row:first-of-type { border-top: 0; }

/* ==========================================================================
   ELECTIONS
   ========================================================================== */
.race { padding: 0; overflow: hidden; }
.race-head { padding: 14px 16px 10px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.race-head h3 { font-size: 17px; margin: 0; }
.race-head .date { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); margin-top: 4px; }
.race .list { border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.level-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); padding: 0 var(--gutter); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.level-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ==========================================================================
   BALLOT
   ========================================================================== */
.measure .state { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.measure h3 { font-size: 21px; margin-bottom: 12px; }
.measure .block { padding: 12px 0; border-top: 1px solid var(--line); }
.measure .block .mono { margin-bottom: 6px; color: var(--orange-ink); }
.measure .block p:not(.mono) { font-size: 14.5px; color: var(--ink-2); }
.accordion-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink-3); }
.accordion-btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.accordion-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.legal-text { font-family: var(--font-serif); font-style: italic; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); padding: 0 0 12px; }
.poll { border-top: 1px solid var(--line); padding-top: 12px; }
.poll .mono { margin-bottom: 8px; }
.poll .seg { margin: 0; }
.poll .seg button.is-on.yes { background: var(--leaf); color: #fff; }
.poll .seg button.is-on.no { background: var(--clay); color: #fff; }

/* ==========================================================================
   SNAPPER (the one dark surface)
   ========================================================================== */
.screen.dark { background: #070B14; color: var(--paper); }
.app.is-dark .appbar { color: var(--paper); }
.app.is-dark .appbar.is-scrolled, .app.is-dark .appbar.is-solid { background: rgba(7,11,20,.7); border-bottom-color: rgba(251,247,238,.08); }
.app.is-dark .appbar .icon-btn, .app.is-dark .appbar .brand-word { color: var(--paper); }
.app.is-dark .avatar-btn { box-shadow: 0 0 0 2px #070B14, 0 0 0 3.5px var(--orange); }
.app.is-dark .avatar-btn.is-anon { background: #1A2333; color: var(--paper); box-shadow: 0 0 0 1px rgba(251,247,238,.2); }
.app.is-dark .tabbar { background: rgba(7,11,20,.78); border-top-color: rgba(251,247,238,.08); }
.app.is-dark .tab { color: rgba(251,247,238,.55); }
.app.is-dark .tab.is-active { color: var(--paper); }
.app.is-dark .tab.is-active .tab-ico { background: var(--orange); color: var(--ink); }
.app.is-dark .tab-hint { background: #1A2333; border-color: rgba(251,247,238,.12); color: var(--paper); }
.app.is-dark .lt h1 { color: var(--paper); }
.app.is-dark .lt .sub { color: rgba(251,247,238,.65); }
.app.is-dark .eyebrow { color: var(--orange-hi); }

.viewfinder {
  position: relative; margin: 6px var(--gutter) 0;
  aspect-ratio: 1 / 1.05;
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(252,140,68,.12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(251,247,238,.025) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(251,247,238,.025) 0 1px, transparent 1px 22px),
    #0E1524;
  display: grid; place-items: center;
}
.vf-corners { position: absolute; inset: 22px; pointer-events: none; }
.vf-corners i { position: absolute; width: 38px; height: 38px; border: 3px solid var(--orange-hi); }
.vf-corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.vf-corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.vf-corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.vf-corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.vf-art { width: 54%; transition: transform .45s var(--spring), opacity .3s; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.vf-art.swap { transform: scale(.8); opacity: 0; }
.vf-empty { text-align: center; color: rgba(251,247,238,.55); font-size: 14px; padding: 0 40px; }
.vf-empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--orange-hi); opacity: .8; }
.vf-scanline { position: absolute; left: 22px; right: 22px; height: 2px; top: 22px; background: linear-gradient(90deg, transparent, var(--orange-hi), transparent); box-shadow: 0 0 24px 4px rgba(252,140,68,.5); opacity: 0; }
.viewfinder.is-scanning .vf-scanline { opacity: 1; animation: scan 1.4s var(--ease) infinite alternate; }
.viewfinder.is-scanning .vf-art { animation: pulse 1.4s ease-in-out infinite; }
@keyframes scan { to { top: calc(100% - 24px); } }
@keyframes pulse { 50% { transform: scale(1.04); } }
.vf-label { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 6px 12px; border-radius: 14px; background: rgba(7,11,20,.7); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-hi); white-space: nowrap; z-index: 2; }
.vf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.barcode-form { padding: 8px var(--gutter) 0; }
.barcode-form .field-label { color: rgba(251,247,238,.7); }
/* The dark screen's cream text would otherwise carry into the cream field. */
.barcode-form .input { color: var(--ink); caret-color: var(--orange); }

.shutter-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--gutter) 6px; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--paper); display: grid; place-items: center; transition: transform .15s var(--ease); }
.shutter i { width: 60px; height: 60px; border-radius: 50%; background: var(--orange); transition: transform .2s var(--spring), background .2s; }
.shutter:active i { transform: scale(.86); }
.shutter[disabled] { opacity: .35; }
.shutter-side { font-size: 12px; color: rgba(251,247,238,.55); text-align: center; }

.products { display: flex; gap: 10px; overflow-x: auto; padding: 6px var(--gutter) 4px; scrollbar-width: none; }
.products::-webkit-scrollbar { display: none; }
.product {
  flex: none; width: 118px; padding: 12px 10px;
  border-radius: 18px; background: rgba(251,247,238,.06); border: 1px solid rgba(251,247,238,.1);
  text-align: center; transition: all .2s var(--ease);
}
.product svg { width: 56px; height: 56px; margin: 0 auto 8px; }
.product b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.product span { font-size: 11px; color: rgba(251,247,238,.55); }
.product.is-on { background: rgba(252,140,68,.14); border-color: var(--orange-hi); }
.product:active { transform: scale(.95); }

.trail { position: relative; padding-left: 26px; }
.trail::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--line-2), var(--orange)); }
.trail-step { position: relative; padding: 8px 0; }
.trail-step::before { content: ""; position: absolute; left: -23px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--line-2); }
.trail-step:last-child::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(222,126,0,.2); }
.trail-step .mono { margin-bottom: 2px; }
.trail-step b { font-size: 15.5px; }
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-3); }
.verdict.opposed { background: var(--alert-wash); color: #7A231B; }
.verdict.aligned { background: var(--leaf-wash); color: #1F4A36; }
.verdict.none { background: var(--paper-2); color: var(--ink-3); }
.verdict .v-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: currentColor; }
.verdict .v-ico svg { width: 20px; height: 20px; color: #fff; }
.verdict h3 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; line-height: 1.2; margin: 6px 0 4px; color: inherit; }
.verdict p { font-size: 13.5px; }
.snap-product { display: flex; gap: 14px; align-items: flex-start; }
.snap-product > div { min-width: 0; flex: 1; }
.snap-product .art { width: 76px; height: 76px; flex: none; border-radius: 18px; background: var(--ink); display: grid; place-items: center; padding: 8px; }
.snap-photo { width: 72px; height: 72px; flex: none; object-fit: contain; border-radius: 12px; background: var(--paper-2); }
.snap-links { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 8px; }
.snap-links a { display: inline-flex; align-items: center; gap: 4px; }
.snap-links svg { width: 12px; height: 12px; flex: none; }
/* Federal lobbying card on a scan result. */
.lobby-card p + p { margin-top: 8px; }
.lobby-card .lobby-caveat { color: var(--ink-2); border-left: 3px solid var(--line-2); padding-left: 10px; }

/* ==========================================================================
   SOURCES
   ========================================================================== */
.src-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-2); background: var(--paper-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.src-note svg { width: 18px; height: 18px; flex: none; color: var(--orange-ink); margin-top: 1px; }
.src-note a { color: var(--orange-ink); font-weight: 600; white-space: nowrap; }
.src-labels { margin-top: 14px; }
.src-labels .mono { margin-bottom: 8px; }
.src-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.src-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.src-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.src-pill svg { width: 11px; height: 11px; color: var(--ink-4); }
.src-gap, .src-caveat { font-size: 12px; color: var(--ink-4); margin-top: 8px !important; }
.src-gap strong { color: var(--alert); }
.powers { font-size: 11.5px; color: var(--orange-ink); margin-top: 4px; font-weight: 550; }

/* ==========================================================================
   ABOUT / PROFILE / LEGAL / ONBOARDING
   ========================================================================== */
.about-hero { text-align: center; padding: 8px var(--gutter) 6px; }
.about-hero .logo-rings { width: 96px; height: 96px; margin: 0 auto 14px; color: var(--orange); }
.about-hero .logo-rings svg { width: 100%; height: 100%; animation: spin-slow 40s linear infinite; }
.about-hero h1 { font-family: var(--font-serif); font-weight: 700; font-size: 40px; letter-spacing: -.02em; margin: 0; }
.about-hero .tag { font-family: var(--font-serif); font-style: italic; color: var(--orange-ink); font-size: 18px; margin: 2px 0 0; }
.dedication { font-family: var(--font-serif); font-style: italic; color: var(--ink-3); text-align: center; font-size: 15px; padding: 0 28px; }
.prose p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; }
.prose p + p { margin-top: 10px; }
.prose a { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose em { color: var(--ink-4); }
.draft-banner { background: var(--orange-wash); color: var(--orange-ink); border: 1px solid color-mix(in oklab, var(--orange) 35%, var(--card)); border-radius: var(--r-2); padding: 12px 14px; font-size: 13px; font-weight: 550; }
.warn-card { background: var(--alert-wash); border-color: color-mix(in oklab, var(--alert) 25%, var(--card)); }
.warn-card h3 { color: #7A231B; }
.warn-card p { color: #7A231B; font-size: 13.5px; }

.profile-head { text-align: center; padding: 4px var(--gutter) 0; }
.profile-head .big-av { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--ink); color: var(--orange-hi); font-family: var(--font-serif); font-size: 32px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--orange); }
.profile-head h1 { font-family: var(--font-serif); font-weight: 500; font-size: 26px; margin: 0; }

/* Onboarding */
.ob.compact { min-height: 0; }
.ob { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 12px) 24px calc(var(--safe-b) + 24px); }
.screen.ob-screen { padding: 0; }
.ob-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.stepper { display: flex; gap: 6px; align-items: center; }
.stepper i { width: 22px; height: 5px; border-radius: 3px; background: var(--line-2); transition: all .3s var(--ease); }
.stepper i.on { width: 34px; background: var(--orange); }
.ob-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
.ob h1 { font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 12px; }
.ob h1 em { color: var(--orange-ink); }
.ob .lede { color: var(--ink-3); font-size: 16px; margin: 0 0 26px; }
.ob-actions { display: grid; gap: 10px; }
.ob-fine { font-size: 12.5px; color: var(--ink-4); text-align: center; margin: 14px 0 0; }
.ob-aside { margin-top: 20px; animation: tab-in .35s var(--ease) both; }

.screen.splash { overflow: hidden; background: var(--ink); color: var(--paper); }
.splash .ob { justify-content: space-between; text-align: center; }
.splash-rings { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 640px; height: 640px; color: var(--orange-hi); opacity: .16; pointer-events: none; }
.splash-rings svg { width: 100%; height: 100%; animation: spin-slow 80s linear infinite; }
.splash-logo { width: 110px; height: 110px; margin: 0 auto 22px; color: var(--orange-hi); animation: rise .9s var(--ease) both; }
.splash-logo svg { width: 100%; height: 100%; }
.splash h1 { font-family: var(--font-serif); font-weight: 700; font-size: 56px; letter-spacing: -.03em; margin: 0; animation: rise .9s .08s var(--ease) both; }
.splash .tag { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--orange-hi); margin: 2px 0 22px; animation: rise .9s .14s var(--ease) both; }
.splash .lede { color: rgba(251,247,238,.75); max-width: 30ch; margin: 0 auto; animation: rise .9s .2s var(--ease) both; }
.splash .ob-actions { animation: rise .9s .3s var(--ease) both; }
.splash .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(251,247,238,.25); }
.splash .dedication { color: rgba(251,247,238,.55); font-size: 13px; margin-top: 18px; padding: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   SHEET, TOAST, SEARCH
   ========================================================================== */
.scrim { position: absolute; inset: 0; z-index: 80; background: rgba(11,18,32,.38); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 90;
  max-height: 88%;
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 50px rgba(11,18,32,.2);
  transform: translateY(105%);
  transition: transform .42s var(--ease);
  padding-bottom: var(--safe-b);
}
.sheet.is-open { transform: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 10px auto 4px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 10px var(--gutter); flex: none; }
.sheet-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; margin: 0; }
.sheet-body { overflow-y: auto; padding: 0 0 20px; flex: 1; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.search-group { margin-top: 18px; }
.search-group .mono { padding: 0 var(--gutter); margin-bottom: 8px; }

.toast {
  position: absolute; left: 50%; z-index: 100;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100% - 40px);
  padding: 11px 16px; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  font-size: 13.5px; font-weight: 550;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 8px;
  transition: all .35s var(--spring);
  pointer-events: none;
}
.toast svg { width: 16px; height: 16px; color: var(--orange-hi); flex: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.app.no-tabs .toast { bottom: calc(var(--safe-b) + 24px); }

.install-card { display: flex; gap: 12px; align-items: center; }
.install-card .mono-av { background: var(--orange); color: var(--ink); }
.footer-fine { text-align: center; font-size: 11.5px; color: var(--ink-4); padding: 26px var(--gutter) 0; line-height: 1.6; }
.footer-fine a { color: var(--orange-ink); font-weight: 600; }
