/* Backd dashboard. Same tokens as the public site (10-brand/design.md): Geist, zinc greys,
   high-contrast ink, rainbow only on the sign-in button. One idea per screen, lots of space. */
:root {
  color-scheme: light dark;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #FAFAFA; --card: #FFFFFF; --line: #E2E2E6; --line-strong: #C4C4CB; --text: #0A0A0B; --muted: #3F3F46; --faint: #6E6E77; --soft: #F0F0F2;
  --fill: #121213; --fill-60: rgba(18,18,19,.6); --fill-0: rgba(18,18,19,0); --on-fill: #FAFAFA; --ok: #15803D; --red: #B91C1C;
  --code-bg: #0C0C0E; --code-text: #E4E4E7; --code-muted: #9A9AA4;
  --g1: hsl(0 100% 63%); --g2: hsl(270 100% 63%); --g3: hsl(210 100% 63%); --g4: hsl(195 100% 63%); --g5: hsl(90 100% 63%);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -8px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #09090A; --card: #111113; --line: #1F1F23; --line-strong: #2E2E34; --text: #F5F5F6; --muted: #A1A1AA; --faint: #8A8A93; --soft: #141417;
  --fill: #F5F5F6; --fill-60: rgba(245,245,246,.6); --fill-0: rgba(245,245,246,0); --on-fill: #0A0A0B; --ok: #4ADE80; --red: #FCA5A5;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6); } }
:root[data-theme="dark"] {
  --bg: #09090A; --card: #111113; --line: #1F1F23; --line-strong: #2E2E34; --text: #F5F5F6; --muted: #A1A1AA; --faint: #8A8A93; --soft: #141417;
  --fill: #F5F5F6; --fill-60: rgba(245,245,246,.6); --fill-0: rgba(245,245,246,0); --on-fill: #0A0A0B; --ok: #4ADE80; --red: #FCA5A5;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6); }

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--g3); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--g3) 30%, transparent); }
.loading { color: var(--faint); text-align: center; padding: 30vh 16px 0; margin: 0; font-size: 15px; }
.logo { display: block; color: var(--text); fill: currentColor; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: 960px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }

/* buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.btn.solid:hover { opacity: .88; }
.btn.danger { background: var(--red); border-color: var(--red); color: var(--bg); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.link { background: none; border: 0; padding: 0; font-size: 14.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.link:hover { color: var(--text); text-decoration-color: currentColor; }
.link.red { color: var(--red); text-decoration-color: color-mix(in srgb, var(--red) 40%, transparent); }

/* ---------- sign in ---------- */
.signin { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 64px 24px; }
.signin::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px);
  background-size: 96px 80px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 80%); }
.signin .logo { height: clamp(59px, 10.3vw, 73px); width: auto; aspect-ratio: 435.06/134.19; margin-bottom: 48px; animation: up .8s cubic-bezier(.2,.7,.2,1) both; }
.signin h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -.045em; font-weight: 600; margin: 0 0 16px; text-wrap: balance;
  animation: up .85s .08s cubic-bezier(.2,.7,.2,1) both; }
.signin p.lede { color: var(--muted); font-size: clamp(17px, 2vw, 19px); max-width: 32ch; margin: 0 0 40px; text-wrap: balance;
  animation: up .85s .16s cubic-bezier(.2,.7,.2,1) both; }
.signin .go { animation: up .85s .24s cubic-bezier(.2,.7,.2,1) both; }
.signin .go { position: relative; }
.signin .more { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(300px, calc(100vw - 48px)); }
.signin.phone .more { position: static; transform: none; width: min(300px, calc(100vw - 48px)); margin: 0 auto; min-height: 154px; }
/* short phones (iPhone SE): tighter spacing so the whole stack fits on screen */
@media (max-height: 700px) { .signin.phone { padding: 28px 24px; } .signin.phone .logo { margin-bottom: 28px; } .signin.phone p.lede { margin-bottom: 28px; } .signin.phone h1 { margin-bottom: 12px; } }
.signin .fine { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; color: var(--faint); font-size: 13px; padding: 0 24px; }
.signin .fine a { color: inherit; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
.note { margin: 24px auto 0; max-width: 36ch; color: var(--muted); font-size: 15px; min-height: 1.6em; }
.note.err { color: var(--red); }
.wallets { display: flex; flex-direction: column; gap: 10px; margin: 28px auto 0; width: min(300px, 100%); }
.wallets .btn { justify-content: flex-start; height: 48px; padding: 0 16px; }
/* wallet choices ease in one after the other when they appear (stopped under reduced motion, see below) */
.wallets:not([hidden]) > * { animation: up .5s cubic-bezier(.2,.7,.2,1) both; }
.wallets:not([hidden]) > :nth-child(2) { animation-delay: .07s; }
.wallets:not([hidden]) > :nth-child(3) { animation-delay: .14s; }
.note.in { animation: fade .5s .12s ease both; }
@keyframes fade { from { opacity: 0; } }
.wallets a.btn { justify-content: center; gap: 10px; text-decoration: none; color: var(--text); }
.wallets img { width: 24px; height: 24px; border-radius: 6px; }

/* the one rainbow on the page. Same build as the site's and the widget's rainbow button (sliding linear gradient,
   small blurred strip under the button). The old full-size blurred conic glow drew a hard dark box on iPhone (WebKit). */
.rb { --grad: linear-gradient(90deg, var(--g1), var(--g5), var(--g3), var(--g4), var(--g2));
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1.28px solid transparent; padding: 0 30px; height: 50px; color: var(--on-fill);
  font: 500 16px/1 var(--font-sans, inherit); letter-spacing: -.01em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(var(--fill), var(--fill)) padding-box,
    linear-gradient(var(--fill) 50%, var(--fill-60) 80%, var(--fill-0)) border-box, var(--grad) border-box;
  background-size: 200%; animation: rb 2s infinite linear; }
.rb::before { content: ""; position: absolute; z-index: -1; bottom: -20%; left: 50%; width: 60%; height: 20%;
  transform: translate3d(-50%, 0, 0); background: var(--grad); background-size: 200%; filter: blur(12.8px);
  animation: rb 2s infinite linear; pointer-events: none; }
.rb span { display: block; }
.rb:active { transform: translateY(1px); }
.rb[disabled] { opacity: .6; cursor: default; }
@keyframes rb { from { background-position: 0%; } to { background-position: 200%; } }
@media (prefers-reduced-motion: reduce) { .rb, .rb::before { animation: none; background-position: 50%; } }

/* ---------- app shell ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 14px; height: 64px; font-size: 15px; }
.bar .logo { width: 18px; height: 24px; flex: none; }
.bar .sep { color: var(--line-strong); font-size: 20px; font-weight: 300; }
.bar .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 4px 22px 4px 0; font: 500 15px var(--font-sans); color: var(--text);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 6px top 55%, right 1px top 55%; background-size: 5px 5px; background-repeat: no-repeat; max-width: 40vw; text-overflow: ellipsis; }
.bar select option { background: var(--card); color: var(--text); }
.bar .who { margin-left: auto; font: 14px var(--font-mono); color: var(--muted); white-space: nowrap; }
.tabs { display: flex; gap: 28px; font-size: 15px; }
.tabs button { background: none; border: 0; padding: 0 0 12px; color: var(--faint); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--text); font-weight: 500; }
main { padding-top: clamp(40px, 7vw, 80px); padding-bottom: 96px; animation: up .5s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- supporters ---------- */
.stats { display: flex; gap: clamp(40px, 9vw, 112px); flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 72px); }
.stat b { display: block; font-size: clamp(48px, 8vw, 72px); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }
.listhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.listhead h2 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; margin: 0; }
.search { width: min(280px, 100%); height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card);
  padding: 0 16px; font-size: 15px; }
.search::placeholder { color: var(--faint); }
table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
th { text-align: left; font-weight: 500; color: var(--faint); font-size: 13.5px; padding: 16px 0 12px; }
td { padding: 18px 0; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
th:nth-child(2), th:nth-child(3), td:nth-child(2), td:nth-child(3) { text-align: right; width: 130px; font-variant-numeric: tabular-nums; }
td.off { color: var(--faint); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 12px; vertical-align: 2px; }
.dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.empty { color: var(--muted); padding: 32px 0; border-top: 1px solid var(--line); margin: 0; }
.more { color: var(--faint); font-size: 14px; margin: 16px 0 0; }

/* ---------- settings ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 0 clamp(20px, 4vw, 32px); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.row p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.row .side { display: flex; align-items: center; gap: 16px; flex: none; }
.val { font: 500 15px var(--font-mono); white-space: nowrap; }
.edit { display: flex; gap: 10px; align-items: center; }
.field { height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); padding: 0 14px; font-size: 16px; width: 120px; }
.field.wide { width: min(420px, 100%); font-family: var(--font-mono); font-size: 14px; }
.del { margin-top: 32px; }
.saved { color: var(--ok); font-size: 14px; }

/* ---------- first visit ---------- */
.first h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 0 0 14px; text-wrap: balance; }
.first > p { color: var(--muted); font-size: clamp(17px, 2vw, 19px); margin: 0 0 40px; max-width: 48ch; }
.prompt { background: var(--code-bg); color: var(--code-text); border-radius: 14px; padding: 24px; font: 14.5px/1.75 var(--font-mono);
  overflow-wrap: anywhere; display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; max-width: 760px; }
.prompt p { margin: 0; }
.prompt .btn { flex: none; height: 34px; background: var(--code-text); color: var(--code-bg); border-color: var(--code-text); font-family: var(--font-sans); font-size: 14px; }
.wait { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); animation: p 1.6s ease-in-out infinite; }
@keyframes p { 50% { opacity: .25; } }
.first > p.aside { margin: 64px 0 0; color: var(--faint); font-size: 14px; }
.first > p.peek { margin: 40px 0 0; font-size: 15px; color: var(--muted); }
.first > p.peek .link { font-size: inherit; color: var(--text); }

/* ---------- sample dashboard: one plain line saying the data is made up ---------- */
.sample { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; padding: 14px 16px 14px 20px;
  border: 1px dashed var(--line-strong); border-radius: 14px; }
.sample p { margin: 0; font-size: 14.5px; color: var(--muted); }
.sample b { color: var(--text); font-weight: 600; }
.sample .btn { flex: none; height: 34px; font-size: 14px; }

/* ---------- dialogs ---------- */
dialog { border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); padding: 32px; width: min(460px, calc(100vw - 32px));
  box-shadow: 0 20px 50px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(9,9,10,.5); backdrop-filter: blur(2px); }
dialog h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; font-weight: 600; }
dialog p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
dialog .field { width: 100%; margin-bottom: 8px; }
dialog .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.key { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 13.5px/1.5 var(--font-mono); overflow-wrap: anywhere; user-select: all; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fill); color: var(--on-fill); border-radius: 999px;
  padding: 10px 20px; font-size: 14.5px; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; }

@media (max-width: 640px) {
  .bar { gap: 10px; }
  .bar .who { display: none; }
  .bar .out { margin-left: auto; }
  .stats { gap: 32px; flex-wrap: nowrap; }
  .stat b { font-size: 44px; }
  .prompt { font-size: 13.5px; padding: 20px; }
  .listhead { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  th:nth-child(3), td:nth-child(3) { width: 112px; }
  .row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .row .side { width: 100%; justify-content: space-between; }
  .edit { width: 100%; flex-wrap: wrap; }
  .field.wide { width: 100%; }
  .prompt { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- colour (Tristan 2026-12-02: "more color and pop", black and white by default, navy and cream touches) ----------
   Accent per app, saved on the server: rainbow (default) keeps black-and-white UI with the brand rainbow glow;
   a colour tints the glow, the active tab and solid buttons. Every accent passes 4.5:1 for text in light and dark. */
:root { --accent: var(--fill); --on-accent: var(--on-fill);
  --k1: var(--g1); --k2: var(--g2); --k3: var(--g3); --k4: var(--g4); --k5: var(--g5);
  --navy: #1E3A5F; --cream: #F5EFE4; --av-bg: var(--cream); --av-text: var(--navy); --av-line: rgba(30,58,95,.14);
  --until: #166534; --glow-o: .75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --av-bg: #16233A; --av-text: var(--cream); --av-line: rgba(245,239,228,.12); --until: #4ADE80; --glow-o: .7; } }
:root[data-theme="dark"] { --av-bg: #16233A; --av-text: var(--cream); --av-line: rgba(245,239,228,.12); --until: #4ADE80; --glow-o: .7; }
:root[data-accent="navy"] { --accent: #1E3A5F; --on-accent: #FFFFFF; --k1: #1E3A5F; --k2: #4A6B94; --k3: #F2E6CF; --k4: #4A6B94; --k5: #1E3A5F; }
:root[data-accent="blue"] { --accent: #2563EB; --on-accent: #FFFFFF; --k1: #2563EB; --k2: #60A5FA; --k3: #93C5FD; --k4: #60A5FA; --k5: #2563EB; }
:root[data-accent="violet"] { --accent: #7C3AED; --on-accent: #FFFFFF; --k1: #7C3AED; --k2: #A78BFA; --k3: #C4B5FD; --k4: #A78BFA; --k5: #7C3AED; }
:root[data-accent="green"] { --accent: #15803D; --on-accent: #FFFFFF; --k1: #15803D; --k2: #4ADE80; --k3: #86EFAC; --k4: #4ADE80; --k5: #15803D; }
:root[data-accent="orange"] { --accent: #C2410C; --on-accent: #FFFFFF; --k1: #C2410C; --k2: #FB923C; --k3: #FDBA74; --k4: #FB923C; --k5: #C2410C; }
:root[data-accent="pink"] { --accent: #BE185D; --on-accent: #FFFFFF; --k1: #BE185D; --k2: #F472B6; --k3: #F9A8D4; --k4: #F472B6; --k5: #BE185D; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="navy"] { --accent: #9DB8E0; --on-accent: #0A0A0B; --k1: #3B5F8F; --k2: #9DB8E0; --k3: #F2E6CF; --k4: #9DB8E0; --k5: #3B5F8F; }
  :root:not([data-theme="light"])[data-accent="blue"] { --accent: #60A5FA; --on-accent: #0A0A0B; --k1: #2563EB; --k2: #60A5FA; --k3: #93C5FD; --k4: #60A5FA; --k5: #2563EB; }
  :root:not([data-theme="light"])[data-accent="violet"] { --accent: #A78BFA; --on-accent: #0A0A0B; --k1: #7C3AED; --k2: #A78BFA; --k3: #C4B5FD; --k4: #A78BFA; --k5: #7C3AED; }
  :root:not([data-theme="light"])[data-accent="green"] { --accent: #4ADE80; --on-accent: #0A0A0B; --k1: #15803D; --k2: #4ADE80; --k3: #86EFAC; --k4: #4ADE80; --k5: #15803D; }
  :root:not([data-theme="light"])[data-accent="orange"] { --accent: #FB923C; --on-accent: #0A0A0B; --k1: #C2410C; --k2: #FB923C; --k3: #FDBA74; --k4: #FB923C; --k5: #C2410C; }
  :root:not([data-theme="light"])[data-accent="pink"] { --accent: #F472B6; --on-accent: #0A0A0B; --k1: #BE185D; --k2: #F472B6; --k3: #F9A8D4; --k4: #F472B6; --k5: #BE185D; }
}
:root[data-theme="dark"][data-accent="navy"] { --accent: #9DB8E0; --on-accent: #0A0A0B; --k1: #3B5F8F; --k2: #9DB8E0; --k3: #F2E6CF; --k4: #9DB8E0; --k5: #3B5F8F; }
:root[data-theme="dark"][data-accent="blue"] { --accent: #60A5FA; --on-accent: #0A0A0B; --k1: #2563EB; --k2: #60A5FA; --k3: #93C5FD; --k4: #60A5FA; --k5: #2563EB; }
:root[data-theme="dark"][data-accent="violet"] { --accent: #A78BFA; --on-accent: #0A0A0B; --k1: #7C3AED; --k2: #A78BFA; --k3: #C4B5FD; --k4: #A78BFA; --k5: #7C3AED; }
:root[data-theme="dark"][data-accent="green"] { --accent: #4ADE80; --on-accent: #0A0A0B; --k1: #15803D; --k2: #4ADE80; --k3: #86EFAC; --k4: #4ADE80; --k5: #15803D; }
:root[data-theme="dark"][data-accent="orange"] { --accent: #FB923C; --on-accent: #0A0A0B; --k1: #C2410C; --k2: #FB923C; --k3: #FDBA74; --k4: #FB923C; --k5: #C2410C; }
:root[data-theme="dark"][data-accent="pink"] { --accent: #F472B6; --on-accent: #0A0A0B; --k1: #BE185D; --k2: #F472B6; --k3: #F9A8D4; --k4: #F472B6; --k5: #BE185D; }

.tabs button[aria-selected="true"] { border-color: var(--accent); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* the two numbers: cards with the same soft glow as the Backd popup (static, blurred, behind the card) */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px 32px; }
.stat::before { content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%, var(--k1), var(--k2), var(--k3), var(--k4), var(--k5), var(--k1));
  filter: blur(14px); opacity: var(--glow-o); transform: translateZ(0); /* own layer: WebKit then keeps the soft edge */ }
.stat img { position: absolute; right: 28px; top: 50%; width: 96px; height: 96px; transform: translateY(-50%);
  filter: drop-shadow(0 10px 14px rgba(15,30,60,.18)) drop-shadow(0 2px 3px rgba(15,30,60,.12)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat img { filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)) drop-shadow(0 2px 4px rgba(0,0,0,.4)); } }
:root[data-theme="dark"] .stat img { filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)) drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.stat b, .stat small { padding-right: 120px; }
.stat .unit { font-size: .36em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 10px; }

/* supporters: initials in navy and cream, active access as a small green pill */
.av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; margin-right: 14px;
  vertical-align: middle; font-weight: 600; font-size: 14px; background: var(--av-bg); color: var(--av-text); box-shadow: inset 0 0 0 1px var(--av-line); }
td.off .av { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line-strong); }
.until { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: .9em; font-weight: 500;
  color: var(--until); background: color-mix(in srgb, var(--until) 12%, transparent); }
.until::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
td { vertical-align: middle; }

/* accent picker */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
.sw-rainbow { background: conic-gradient(var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g1)); }
.sw-navy { background: #1E3A5F; }
.sw-blue { background: #2563EB; }
.sw-violet { background: #7C3AED; }
.sw-green { background: #15803D; }
.sw-orange { background: #C2410C; }
.sw-pink { background: #BE185D; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sw-navy { background: #9DB8E0; }
  :root:not([data-theme="light"]) .sw-blue { background: #60A5FA; }
  :root:not([data-theme="light"]) .sw-violet { background: #A78BFA; }
  :root:not([data-theme="light"]) .sw-green { background: #4ADE80; }
  :root:not([data-theme="light"]) .sw-orange { background: #FB923C; }
  :root:not([data-theme="light"]) .sw-pink { background: #F472B6; }
}
:root[data-theme="dark"] .sw-navy { background: #9DB8E0; }
:root[data-theme="dark"] .sw-blue { background: #60A5FA; }
:root[data-theme="dark"] .sw-violet { background: #A78BFA; }
:root[data-theme="dark"] .sw-green { background: #4ADE80; }
:root[data-theme="dark"] .sw-orange { background: #FB923C; }
:root[data-theme="dark"] .sw-pink { background: #F472B6; }

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 48px; } /* stacked: room for each card's own glow (Tristan 2026-12-06, was 20px) */
  .stat { padding: 22px 22px 24px; }
  .stat img { width: 68px; height: 68px; right: 20px; }
  .stat b, .stat small { padding-right: 84px; }
  .row:has(.swatches) { flex-direction: column; align-items: flex-start; }
  .sample { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; }
}

/* Desktop sizing (Tristan 2026-12-02): one step bigger on screens 1024px and up, same as the public site.
   Phones keep the sizes above. Notes: 08-public-website/desktop-sizing in the project library. */
@media (min-width: 1024px) {
  .wrap { max-width: 1040px; }
  .bar { height: 72px; font-size: 16.5px; }
  .tabs { font-size: 17px; }
  .btn { height: 44px; padding: 0 20px; font-size: 16px; }
  .link { font-size: 16px; }
  .stat small { font-size: 17px; }
  .listhead h2 { font-size: 24px; }
  .search { width: 320px; height: 44px; font-size: 16.5px; }
  table { font-size: 17px; }
  th { font-size: 15px; color: var(--muted); }
  .more { font-size: 15.5px; }
  .row h3 { font-size: 18px; }
  .row p { font-size: 16px; }
  .field { height: 44px; }
  .field.wide { font-size: 15px; }
  .prompt .btn { height: 40px; font-size: 15px; }
  .wait { font-size: 16.5px; }
  .first > p.aside { font-size: 15.5px; }
  .signin .fine { font-size: 15px; color: var(--muted); }
  .note { font-size: 16px; }
  dialog p { font-size: 16px; }
  .toast { font-size: 15.5px; }
}

/* ---------- the graph: USDC in over the last 30 days (our own SVG, no library) ----------
   Colour (Tristan 2026-12-06: "some color"): the line runs through the five glow colours left to right, with a soft
   glow under it and a faint rainbow wash below; a picked accent colour draws it in that colour instead.
   The reading sits above the graph so a finger never hides it. A finger on the graph reads it and never scrolls. */
.trend { margin-bottom: clamp(48px, 7vw, 72px); --c1: hsl(0 85% 52%); --c2: hsl(270 80% 55%); --c3: hsl(210 95% 50%); --c4: hsl(190 95% 40%); --c5: hsl(100 70% 38%); --wash: .2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trend { --c1: var(--g1); --c2: var(--g2); --c3: var(--g3); --c4: var(--g4); --c5: var(--g5); --wash: .26; } }
:root[data-theme="dark"] .trend { --c1: var(--g1); --c2: var(--g2); --c3: var(--g3); --c4: var(--g4); --c5: var(--g5); --wash: .26; }
:root:not([data-accent="rainbow"]) .trend { --c1: var(--accent); --c2: var(--accent); --c3: var(--accent); --c4: var(--accent); --c5: var(--accent); }
.trend .listhead { margin-bottom: 24px; align-items: flex-end; }
.trend .listhead p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.readout { text-align: right; }
.readout b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.readout b span { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.readout small { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart { position: relative; margin: 0; padding-bottom: 34px; }
.chart .plot { position: relative; height: 260px; touch-action: none; cursor: crosshair; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; border-radius: 4px; }
.chart .plot:not([tabindex]) { cursor: default; touch-action: auto; }
.chart svg { position: absolute; inset: 0; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .grid line.base { stroke: var(--line-strong); }
.chart .ink { position: absolute; inset: -12px -12px 0 -12px; padding: 12px 12px 0 12px; clip-path: inset(0 0 0 0);
  animation: chart-draw 1.15s cubic-bezier(.65,0,.35,1) .15s both; }
.chart .ink svg { position: relative; }
@keyframes chart-draw { from { clip-path: inset(0 100% 0 0); } }
.chart .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .glow { fill: none; stroke-width: 6; opacity: .45; stroke-linecap: round; }
.chart .c1 { stop-color: var(--c1); } .chart .c2 { stop-color: var(--c2); } .chart .c3 { stop-color: var(--c3); } .chart .c4 { stop-color: var(--c4); } .chart .c5 { stop-color: var(--c5); }
.chart .f0 { stop-color: #fff; stop-opacity: var(--wash); } .chart .f1 { stop-color: #fff; stop-opacity: 0; }
.chart .end { fill: var(--c5); stroke: var(--card); stroke-width: 2.5; }
.chart .cross { position: absolute; left: 0; top: 6px; bottom: 0; width: 1px; background: var(--muted); opacity: 0; pointer-events: none;
  transition: opacity .12s, transform .09s cubic-bezier(.22,1,.36,1); }
.chart .pin { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--card);
  box-shadow: 0 1px 6px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .12s, transform .09s cubic-bezier(.22,1,.36,1); }
.chart .plot[data-jump] .cross, .chart .plot[data-jump] .pin { transition: opacity .12s; }
.chart .plot[data-active] .cross, .chart .plot[data-active] .pin { opacity: 1; }
.chart .plot[data-active] .end { opacity: 0; }
.chart .ticks { position: absolute; top: 0; right: 0; width: 52px; height: 260px; pointer-events: none; }
.chart .ticks span { position: absolute; right: 0; transform: translateY(-50%); font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart .axis { position: absolute; left: 0; right: 52px; bottom: 0; height: 22px; pointer-events: none; }
.chart .axis span { position: absolute; top: 0; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart .nothing { position: absolute; left: 0; right: 52px; top: 50%; transform: translateY(-50%); margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .chart .plot, .chart .ticks { height: 230px; }
  .trend .listhead { align-items: stretch; }
  .readout { text-align: left; margin-top: 8px; }
}
