/* SUMMIT. Layout idea: quiet fixed sidebar + slim top bar; monochrome surfaces; type does the work.
   One signature object: a tilted goal card fed by two lanes (solid = direct, hatched = creator fees). */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --background: #0a0a0a;
  --background-secondary: #0e0e0e;
  --surface: #121212;
  --surface-raised: #161616;
  --surface-highlight: #1b1b1b;
  --border: #222222;
  --border-strong: #2c2c2c;
  --border-active: #383838;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #6e6e6e;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-ink: #042f2a;
  --accent-deep: #17655c;
  --button-primary-background: var(--accent);
  --button-primary-text: var(--accent-ink);
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sidebar-width: 272px;
  --topbar-height: 64px;
  --radius-card: 18px;
  --ok: #86d9a4;
  --wait: #e0b46a;
  --bad: #ef8a8a;
  --hatch: repeating-linear-gradient(135deg, var(--accent) 0 2px, var(--accent-deep) 2px 5px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--background); color: var(--text-primary); font: 400 15px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 90; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; transition: top .15s; }
.skip:focus { top: 12px; }

/* ---------- shell ---------- */
.shell { min-height: 100%; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--background-secondary); padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 22px; z-index: 40; overflow-y: auto; }
.main { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; font-weight: 600; font-size: 16.5px; letter-spacing: .01em; }
.brand .mark { flex: none; color: var(--accent); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--text-secondary); font-weight: 500; font-size: 14.5px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text-primary); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text-primary); background: var(--surface-highlight); }
.nav a .ic { flex: none; opacity: .9; }
.nav-label { padding: 0 12px 6px; font-size: 12px; color: var(--text-muted); }
.side-cta { margin: 0 4px; }
.side-end { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 14px; text-align: left; transition: background .15s; }
.me:hover { background: var(--surface); }
.me b { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; }
.me small { display: block; color: var(--text-muted); font-size: 12.5px; }
.me .ic { margin-left: auto; color: var(--text-muted); }
.me-wrap { position: relative; }
.ca { margin: 0 4px 6px; padding: 12px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.ca small { color: var(--text-muted); font-size: 12px; }
.ca-b { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--surface-highlight); font-size: 13.5px; transition: background .15s; }
.ca-b:hover { background: var(--border-strong); }
.ca-l { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-secondary); }
.ca-l a:hover, #ca-foot button:hover { color: var(--text-primary); }
.ca-row { margin-top: 14px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--surface); }
.ca-row > span { font-size: 13px; color: var(--text-muted); }
.ca-row code { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.top { position: sticky; top: 0; z-index: 30; height: var(--topbar-height); display: flex; align-items: center; gap: 12px; padding: 0 40px; background: var(--background); }
.top .brand, .top .menu-btn { display: none; }
.search { position: relative; flex: 1; max-width: 440px; }
.search .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--text-muted); pointer-events: none; }
.search input { width: 100%; height: 40px; border-radius: 999px; background: var(--surface); border: 1px solid transparent; padding: 0 16px 0 40px; outline: none; transition: border-color .15s, background .15s; }
.search input::placeholder { color: var(--text-muted); }
.search input:hover { background: var(--surface-raised); }
.search input:focus { border-color: var(--border-active); background: var(--surface-raised); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: 16px; padding: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); z-index: 50; max-height: 62vh; overflow: auto; }
.results h4 { font-size: 12px; font-weight: 500; color: var(--text-muted); padding: 8px 10px 4px; letter-spacing: 0; }
.results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.results a:hover, .results a.on { background: var(--surface-highlight); }
.results a span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results a small { color: var(--text-muted); flex: none; }
.results .none { padding: 12px 10px; color: var(--text-secondary); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wallet { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: 14px; padding: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); z-index: 60; }
.menu.up { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; text-align: left; font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--surface-highlight); }
.menu h4 { font-size: 12px; font-weight: 500; color: var(--text-muted); padding: 8px 10px 4px; letter-spacing: 0; }
.menu .on { color: var(--text-primary); }
.menu .on::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.notice { text-align: center; font-size: 12.5px; color: var(--text-muted); padding: 7px 16px; background: var(--background-secondary); }
#view { flex: 1; outline: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 8px 40px 72px; }
.wrap.narrow { max-width: 860px; }
.foot { padding: 28px 40px 36px; color: var(--text-muted); font-size: 13px; }
.foot-in { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot a:hover { color: var(--text-primary); }
.foot .sp { margin-left: auto; }
.tabbar { display: none; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: transform .12s var(--ease), background .15s, border-color .15s, opacity .15s; user-select: none; }
.btn:active { transform: scale(.975); }
.btn.primary { background: var(--button-primary-background); color: var(--button-primary-text); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border: 1px solid var(--border-strong); }
.btn.ghost:hover { border-color: var(--border-active); background: var(--surface); }
.btn.quiet { color: var(--text-secondary); padding: 0 12px; }
.btn.quiet:hover { color: var(--text-primary); background: var(--surface); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .38; pointer-events: none; }
.btn.danger { color: var(--bad); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .lab { font-size: 13.5px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--text-muted); }
.field .err { font-size: 13px; color: var(--bad); }
.input, .select, .textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; height: 44px; outline: none; transition: border-color .15s, background .15s; }
.textarea { height: auto; padding: 11px 14px; min-height: 108px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a3a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: #5a5a5a; background: var(--surface-raised); }
.field.bad .input, .field.bad .textarea, .field.bad .select { border-color: var(--bad); }
.affix { position: relative; }
.affix .input { padding-right: 64px; font-family: var(--font-mono); }
.affix span { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--text-muted); font-size: 13px; pointer-events: none; }
.affix.pre .input { padding-left: 30px; padding-right: 14px; font-family: var(--font-sans); }
.affix.pre span { left: 14px; right: auto; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--text-secondary); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.chip:hover { color: var(--text-primary); background: var(--surface-highlight); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 6px; border: 1px solid var(--border-active); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
input[type="range"] { appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--surface-highlight) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--surface-highlight) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 4px solid #0a0a0a; box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 4px solid #0a0a0a; box-shadow: 0 0 0 1px var(--accent); }

/* ---------- identity pieces ---------- */
.av { --s: 40px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: calc(var(--s) * .36); letter-spacing: -.02em; background: hsl(var(--h) 42% 30%); color: hsl(var(--h) 70% 90%); box-shadow: inset 0 0 0 1px hsl(var(--h) 50% 42% / .7); }
img.av { display: block; object-fit: cover; background: var(--surface-highlight); box-shadow: 0 0 0 1px var(--border-active); }
.av.ghost { background: var(--surface-highlight); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border-active); }
.tk { --s: 36px; flex: none; width: var(--s); height: var(--s); border-radius: 30%; display: inline-grid; place-items: center; font: 600 calc(var(--s) * .42)/1 var(--font-mono); background: hsl(var(--h) 46% 26%); color: hsl(var(--h) 80% 86%); box-shadow: inset 0 0 0 1px hsl(var(--h) 50% 40% / .7); object-fit: cover; }
.who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.who b { font-weight: 500; }
.who small { color: var(--text-muted); font-size: 13.5px; }
.who > span:last-child { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.who.inline > span:last-child { flex-direction: row; gap: 7px; align-items: baseline; }
a.who:hover b { text-decoration: underline; text-underline-offset: 3px; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.st i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.st.open i, .st.active i { background: var(--accent); }
.st.funded i, .st.confirmed i { background: var(--ok); }
.st.pending i, .st.paused i { background: var(--wait); }
.st.failed i { background: var(--bad); }
.st.pending i { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- two-source progress ---------- */
.bar { position: relative; display: flex; height: 8px; border-radius: 999px; background: var(--surface-highlight); overflow: hidden; }
.bar i { display: block; height: 100%; transition: width .7s var(--ease); }
.bar .d { background: var(--accent); }
.bar .f { background: var(--hatch); }
.bar.lg { height: 12px; }
.bar.sm { height: 5px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--text-secondary); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.legend .f i { background: var(--hatch); }
.legend b { color: var(--text-primary); font-weight: 500; }

/* ---------- page furniture ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 0 28px; }
.page-h h1 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.04em; }
.page-h p { color: var(--text-secondary); margin-top: 8px; max-width: 56ch; }
.page-h .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; padding: 14px 0 0; }
.back:hover { color: var(--text-primary); }
.sec { padding-top: 44px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-h h2 { font-size: 20px; letter-spacing: -.03em; }
.sec-h a, .sec-h button { color: var(--text-secondary); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.sec-h a:hover, .sec-h button:hover { color: var(--text-primary); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; }
.card.flat { border-color: transparent; }
.card h3 { font-size: 16px; letter-spacing: -.02em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.rowx { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px 20px; font-size: 14.5px; }
.kv dt { color: var(--text-secondary); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.figure { display: flex; flex-direction: column; gap: 4px; }
.figure small { color: var(--text-secondary); font-size: 13.5px; }
.figure b { font: 500 26px/1.15 var(--font-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figure b em { font-style: normal; font-size: 13px; color: var(--text-muted); letter-spacing: 0; margin-left: 6px; font-family: var(--font-sans); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 34px 28px; border-radius: var(--radius-card); background: var(--background-secondary); border: 1px dashed var(--border-strong); }
.empty .ic { color: var(--text-muted); }
.empty h3 { font-size: 18px; }
.empty p { color: var(--text-secondary); max-width: 52ch; }
.empty .rowx { margin-top: 6px; }
.note { font-size: 13.5px; color: var(--text-secondary); background: var(--background-secondary); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; }
.note .ic { flex: none; margin-top: 2px; color: var(--text-muted); }

/* rows: each one its own rounded strip, separated by space rather than rules */
.rows { display: flex; flex-direction: column; gap: 6px; }
.r { display: grid; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 14px; background: var(--surface); transition: background .15s; min-width: 0; }
a.r:hover, button.r:hover { background: var(--surface-highlight); }
.r .t { min-width: 0; }
.r .t b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r .t small { display: block; color: var(--text-muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r .amt { text-align: right; white-space: nowrap; }
.r .amt small { display: block; color: var(--text-muted); font-size: 12.5px; font-family: var(--font-sans); letter-spacing: 0; }
.r.ev { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
.r.ev .when { color: var(--text-muted); font-size: 13.5px; width: 84px; text-align: right; }
.evi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-highlight); color: var(--text-secondary); }
.evi.f { background: var(--hatch); color: var(--accent-ink); }
.evi.f .ic { background: var(--accent); border-radius: 50%; padding: 2px; }
.evi.d { background: var(--accent); color: var(--accent-ink); }
.r.goal { grid-template-columns: minmax(0, 1.5fr) minmax(140px, .8fr) minmax(170px, auto) 104px; padding: 14px 18px; }
.r.goal .t b { font-size: 15.5px; letter-spacing: -.01em; }
.r.goal .prog { display: flex; flex-direction: column; gap: 7px; }
.r.goal .prog small { color: var(--text-muted); font-size: 12.5px; display: flex; justify-content: space-between; }
.r.tok { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- home ---------- */
.hero { padding: 22px 0 0; }
.hero-top { display: grid; grid-template-columns: auto minmax(340px, 1fr); gap: 24px 52px; align-items: end; }
.hero h1 { font-size: clamp(44px, 4.5vw, 66px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span + span { color: var(--accent); }
.hero-side { display: flex; flex-direction: column; gap: 18px; padding-bottom: 6px; }
.hero-side > p { font-size: 18px; line-height: 1.45; color: var(--text-secondary); max-width: 34ch; letter-spacing: -.01em; }
.hero-find { display: flex; flex-direction: column; gap: 10px; }
.hero-find .search { max-width: none; }
.hero-find .search input { height: 46px; }
.try { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-muted); }
.try a { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: var(--surface); color: var(--text-secondary); transition: background .15s, color .15s; }
.try a:hover { background: var(--surface-highlight); color: var(--text-primary); }

.stage { position: relative; margin-top: 30px; height: clamp(440px, 54vh, 560px); border-radius: 28px; background: var(--background-secondary); border: 1px solid var(--border); overflow: hidden; isolation: isolate; outline: none; }
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 58%, rgba(45, 212, 191, .085), transparent 70%); z-index: -1; }
.stage-grid { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(var(--border) 1px, transparent 1px); background-size: 100% 56px; mask-image: radial-gradient(70% 70% at 50% 60%, #000 20%, transparent 78%); }
.tiles { position: absolute; left: 0; right: 0; top: 26px; height: 92px; perspective: 1100px; perspective-origin: 50% 120%; }
.tile { position: absolute; left: 50%; top: 0; width: 196px; margin-left: -98px; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 16px; background: var(--surface-raised); border: 1px solid var(--border-strong); text-align: left; transform: translateX(calc(var(--o) * 176px)) translateZ(calc(var(--a) * -150px)) rotateY(calc(var(--o) * -24deg)); opacity: calc(1 - var(--a) * .3); transition: transform .55s var(--ease), opacity .55s var(--ease), border-color .3s, background .3s; z-index: calc(10 - var(--a)); }
.tile b { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.tile small { display: block; color: var(--text-muted); font-size: 12.5px; }
.tile[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile[aria-pressed="true"] small { color: #555; }
.tile:not([aria-pressed="true"]):hover { border-color: #5a5a5a; }
.tether { position: absolute; left: 50%; top: 90px; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); opacity: .5; }

.gwrap { position: absolute; left: 50%; top: 122px; width: 420px; margin-left: -210px; perspective: 1400px; }
.gtilt { position: relative; transform: rotateX(7deg); transform-origin: 50% 100%; transform-style: flat; }
.sheet { position: absolute; left: 16px; right: 16px; top: 0; bottom: -11px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.sheet + .sheet { left: 34px; right: 34px; bottom: -21px; opacity: .6; }
.gcard { position: relative; background: var(--surface-raised); border: 1px solid var(--border-active); border-radius: 22px; padding: 22px 22px 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .06) inset; transition: opacity .28s, transform .45s var(--ease); display: flex; flex-direction: column; gap: 14px; }
.gcard.swap { opacity: 0; transform: translateY(10px) scale(.985); }
.gcard h3 { font-size: 21px; letter-spacing: -.035em; line-height: 1.15; min-height: 2.3em; }
.gcard .raised { display: flex; align-items: baseline; gap: 8px; }
.gcard .raised b { font: 500 34px/1 var(--font-mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.gcard .raised span { color: var(--text-muted); font-size: 14px; }
.gcard .raised em { margin-left: auto; font-style: normal; font: 500 15px var(--font-mono); color: var(--text-secondary); }
.gcard .bar { height: 12px; }
.gcard .bar.hit { animation: hit .6s var(--ease); }
@keyframes hit { 30% { box-shadow: 0 0 0 5px rgba(45, 212, 191, .28); } }
.gcard .gfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gcard .open-link { font-size: 13.5px; color: var(--text-secondary); display: inline-flex; gap: 6px; align-items: center; }
.gcard .open-link:hover { color: var(--text-primary); }

.lane { position: absolute; top: 150px; width: calc(50% - 250px); height: 250px; padding-bottom: 72px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.lane.ll { left: 34px; }
.lane.rr { right: 34px; text-align: right; align-items: flex-end; }
.lane h4 { font-size: 13.5px; font-weight: 500; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0; }
.lane h4 i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.lane.rr h4 i { background: var(--hatch); }
.lane .tot { font: 500 24px/1.1 var(--font-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lane .pc { color: var(--text-muted); font-size: 13.5px; }
.lane .wire { position: absolute; top: 50%; height: 1px; left: 0; right: -30px; background: repeating-linear-gradient(90deg, var(--border-active) 0 5px, transparent 5px 11px); translate: 0 46px; }
.lane.rr .wire { left: -30px; right: 0; }
.pkt { position: absolute; top: 50%; translate: 0 30px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface-highlight); border: 1px solid var(--border-active); font-size: 13px; white-space: nowrap; opacity: 0; z-index: 3; }
.pkt b { font: 500 13px var(--font-mono); letter-spacing: -.02em; }
.pkt i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); flex: none; }
.lane.rr .pkt i { background: var(--hatch); }
.lane.ll .pkt { left: 0; animation: pkt-l 1.5s var(--ease) forwards; }
.lane.rr .pkt { right: 0; flex-direction: row-reverse; padding: 0 6px 0 12px; animation: pkt-r 1.5s var(--ease) forwards; }
@keyframes pkt-l { 0% { opacity: 0; transform: translateX(-12px); } 18% { opacity: 1; transform: translateX(0); } 62% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--run, 150px)) scale(.9); } }
@keyframes pkt-r { 0% { opacity: 0; transform: translateX(12px); } 18% { opacity: 1; transform: translateX(0); } 62% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(var(--run, 150px) * -1)) scale(.9); } }
.stage-ctl { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.stage-ctl .btn { background: var(--surface); }
.dots { display: flex; gap: 7px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-active); transition: background .3s, width .3s; }
.dots i.on { background: var(--accent); width: 18px; border-radius: 999px; }
.stage-tag { position: absolute; left: 24px; top: 22px; z-index: 12; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); padding: 5px 11px; border-radius: 999px; background: var(--surface-highlight); }
.stage-cap { position: absolute; left: 24px; bottom: 22px; font-size: 12.5px; color: var(--text-muted); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.src { padding: 26px; border-radius: var(--radius-card); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.src .sw { width: 44px; height: 12px; border-radius: 999px; background: var(--accent); }
.src.f .sw { background: var(--hatch); }
.src h3 { font-size: 24px; letter-spacing: -.04em; }
.src p { color: var(--text-secondary); max-width: 44ch; }
.src ol { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-secondary); counter-reset: s; }
.src ol li { display: flex; gap: 10px; }
.src ol li::before { counter-increment: s; content: counter(s); font: 500 12px var(--font-mono); color: var(--text-muted); width: 16px; flex: none; padding-top: 3px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 40px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps .n { font: 500 13px var(--font-mono); color: var(--text-muted); }
.steps h3 { font-size: 19px; letter-spacing: -.03em; }
.steps p { color: var(--text-secondary); max-width: 34ch; }
.closing { margin-top: 64px; padding: 44px; border-radius: 28px; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.045em; max-width: 16ch; }
.fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s var(--ease); min-width: 0; }
.fcard:hover { border-color: var(--border-active); transform: translateY(-2px); }
.fcard h3 { font-size: 18px; letter-spacing: -.03em; line-height: 1.2; min-height: 2.4em; }
.fcard .raised { display: flex; align-items: baseline; gap: 6px; }
.fcard .raised b { font: 500 22px/1 var(--font-mono); letter-spacing: -.04em; }
.fcard .raised span { color: var(--text-muted); font-size: 13.5px; }
.fcard .raised em { margin-left: auto; font: 500 13.5px var(--font-mono); font-style: normal; color: var(--text-secondary); }

/* ---------- goal detail ---------- */
.goal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 14px; }
.goal-main h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.045em; line-height: 1.02; margin: 14px 0 12px; }
.goal-main .lede { font-size: 18px; color: var(--text-secondary); line-height: 1.45; max-width: 60ch; letter-spacing: -.01em; }
.cover { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius-card); margin-top: 22px; }
.raise { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.raise .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.raise .big b { font: 500 clamp(40px, 5vw, 60px)/1 var(--font-mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.raise .big span { color: var(--text-secondary); font-size: 16px; }
.raise .big em { margin-left: auto; font: 500 20px var(--font-mono); font-style: normal; }
.srcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.srcs .s { padding: 16px 18px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.srcs .s small { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13.5px; }
.srcs .s small i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.srcs .s.f small i { background: var(--hatch); }
.srcs .s b { font: 500 22px/1.2 var(--font-mono); letter-spacing: -.04em; }
.srcs .s span { color: var(--text-muted); font-size: 13px; }
.prose { color: var(--text-secondary); max-width: 66ch; display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.65; }
.prose h2 { color: var(--text-primary); font-size: 22px; margin-top: 22px; letter-spacing: -.035em; scroll-margin-top: 84px; }
.prose h3 { color: var(--text-primary); font-size: 16px; margin-top: 8px; letter-spacing: -.02em; }
.prose b, .prose strong { color: var(--text-primary); font-weight: 500; }
.prose ul { display: flex; flex-direction: column; gap: 8px; }
.prose ul li { padding-left: 18px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 1px; background: var(--text-muted); }
.prose code { font: 13.5px var(--font-mono); background: var(--surface); padding: 2px 6px; border-radius: 6px; color: var(--text-primary); }
.prose .eq { font: 14px/1.7 var(--font-mono); color: var(--text-primary); background: var(--surface); border-radius: 14px; padding: 14px 16px; overflow-x: auto; white-space: pre; }
.aside { position: sticky; top: calc(var(--topbar-height) + 14px); display: flex; flex-direction: column; gap: 14px; }
.pay { display: flex; flex-direction: column; gap: 14px; }
.pay h2 { font-size: 17px; letter-spacing: -.02em; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.presets .chip { padding: 0; height: 40px; font-family: var(--font-mono); }
.card .chip, .dlg .chip { background: var(--surface-highlight); }
.card .chip:hover, .dlg .chip:hover { background: var(--border-strong); }
.card .chip[aria-pressed="true"], .dlg .chip[aria-pressed="true"] { background: var(--accent); }
.gocta { display: none; }
.sharebar { display: flex; gap: 6px; }
.sharebar .btn { flex: 1; padding: 0 10px; }

/* ---------- profile ---------- */
.phead { display: flex; gap: 22px; align-items: center; padding: 22px 0 6px; flex-wrap: wrap; }
.phead h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.045em; }
.phead .h { color: var(--text-secondary); font-size: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.phead p { color: var(--text-secondary); max-width: 54ch; margin-top: 10px; }
.phead .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.figs .card { padding: 18px 20px; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 24px; }
.feat h3 { font-size: 24px; letter-spacing: -.04em; line-height: 1.12; }
.feat .meta { display: flex; flex-direction: column; gap: 12px; grid-column: 1 / -1; }

/* ---------- forms / flows ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.form legend { font-size: 13px; color: var(--text-muted); padding: 0; margin-bottom: 4px; font-family: var(--font-mono); }
.form .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.preview { position: sticky; top: calc(var(--topbar-height) + 14px); display: flex; flex-direction: column; gap: 10px; }
.preview > small { color: var(--text-muted); font-size: 13px; }
.stepper { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 13.5px; color: var(--text-muted); background: var(--surface); }
.stepper li i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 500 11px var(--font-mono); font-style: normal; background: var(--surface-highlight); }
.stepper li.on { color: var(--accent-ink); background: var(--accent); }
.stepper li.on i { background: var(--accent-ink); color: var(--accent); }
.stepper li.done { color: var(--text-secondary); }
.stepper li.done i { background: var(--text-secondary); color: var(--accent-ink); }
.pick { display: flex; flex-direction: column; gap: 6px; }
.pick label { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.pick label:hover { background: var(--surface-highlight); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label:has(input:checked) { border-color: var(--accent); }
.pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick b { font-weight: 500; display: block; }
.pick small { color: var(--text-muted); font-size: 13.5px; }
.split { display: flex; height: 44px; border-radius: 14px; overflow: hidden; background: var(--surface-highlight); font: 500 13px var(--font-mono); }
.split span { display: flex; align-items: center; padding: 0 12px; white-space: nowrap; overflow: hidden; transition: width .25s var(--ease); }
.split .g { background: var(--hatch); color: var(--accent-ink); }
.split .g b { background: var(--accent); border-radius: 6px; padding: 2px 6px; font-weight: 500; }
.split .u { color: var(--text-secondary); }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px dashed var(--border-active); background: var(--surface); }
.drop img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.drop.sq img { width: 54px; border-radius: 30%; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-active); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 26px 8px 10px; }
.center h3 { font-size: 22px; letter-spacing: -.035em; }
.center p { color: var(--text-secondary); max-width: 38ch; }
.center .rowx { justify-content: center; margin-top: 8px; }

/* ---------- dialogs ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .72); display: grid; place-items: center; padding: 20px; animation: fade .18s ease-out; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.dlg { width: min(100%, 460px); background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: 22px; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); animation: rise .24s var(--ease); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.dlg.wide { width: min(100%, 760px); }
@keyframes rise { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px 22px; }
.dlg-h h2 { font-size: 18px; letter-spacing: -.03em; }
.dlg-x { color: var(--text-secondary); height: 34px; padding: 0 10px; border-radius: 999px; font-size: 14px; display: inline-flex; align-items: center; }
.dlg-x:hover { color: var(--text-primary); background: var(--surface-highlight); }
.dlg-b { padding: 12px 22px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.dlg-b > p { color: var(--text-secondary); }
.dlg-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dlg-acts .btn { flex: 1; }
.cw-list { display: flex; flex-direction: column; gap: 6px; }
.cw-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface); text-align: left; transition: background .15s; }
.cw-row:hover { background: var(--surface-highlight); }
.cw-row img, .cw-row .wi { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.cw-row .wi { display: grid; place-items: center; background: var(--surface-highlight); font-weight: 600; color: var(--text-secondary); }
.cw-row span { flex: 1; font-weight: 500; }
.cw-row small { color: var(--text-muted); font-size: 13px; }
.cw-foot { font-size: 13px; color: var(--text-muted); }
.cw-msg { font-size: 13.5px; color: var(--bad); }
.sum { display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: 16px; padding: 6px 16px; }
.sum div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 14.5px; }
.sum div + div { box-shadow: 0 -1px 0 var(--border); }
.sum dt { color: var(--text-secondary); flex: none; }
.sum dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.cardprev { width: 100%; aspect-ratio: 1200 / 675; border-radius: 14px; border: 1px solid var(--border); background: #0a0a0a; display: block; }

/* ---------- receipt ---------- */
.rcpt { max-width: 620px; margin: 0 auto; }
.rcpt .card { padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.rcpt .amt { display: flex; flex-direction: column; gap: 6px; }
.rcpt .amt small { color: var(--text-secondary); }
.rcpt .amt b { font: 500 clamp(38px, 6vw, 54px)/1 var(--font-mono); letter-spacing: -.06em; }
.rcpt .amt b em { font: 500 18px var(--font-sans); font-style: normal; letter-spacing: -.01em; color: var(--text-secondary); margin-left: 8px; }
.flowline { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 10px; }
.flowline > div { background: var(--background-secondary); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.flowline small { display: block; color: var(--text-muted); font-size: 12.5px; }
.flowline b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flowline .ic { color: var(--text-muted); justify-self: center; }

/* ---------- docs ---------- */
.doc-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--topbar-height) + 14px); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc button { text-align: left; padding: 7px 10px; border-radius: 9px; color: var(--text-secondary); }
.toc button:hover { color: var(--text-primary); background: var(--surface); }
.road { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.road li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 14px; background: var(--surface); }
.road .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-active); color: var(--text-muted); }
.road .done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.road .now .dot { border-color: var(--accent); }
.road .now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.4s ease-in-out infinite; }
.road .next { color: var(--text-secondary); background: var(--background-secondary); }
.road small { color: var(--text-muted); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s var(--ease); z-index: 95; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; translate: -50% 0; }
.enter { animation: enter .4s var(--ease) both; }
@keyframes enter { from { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .lane { width: calc(50% - 236px); }
  .lane.ll { left: 22px; } .lane.rr { right: 22px; }
  .lane .tot { font-size: 20px; }
  .goal-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .form-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
}
@media (max-width: 1320px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { font-size: clamp(40px, 6vw, 72px); }
}
@media (max-width: 1100px) {
  .side { transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: 30px 0 80px rgba(0, 0, 0, .6); width: min(300px, 86vw); }
  .side.open { transform: none; }
  .side-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 39; }
  .main { margin-left: 0; }
  .top { padding: 0 20px; }
  .top .brand, .top .menu-btn { display: inline-flex; }
  .top .brand span { display: none; }
  .wrap { padding: 4px 20px 64px; }
  .foot { padding: 24px 20px 32px; }
  .hero-side > p { max-width: 46ch; }
}
@media (max-width: 900px) {
  .goal-grid, .form-grid, .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .aside, .preview, .toc { position: static; }
  .gocta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 34; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--surface-highlight); border: 1px solid var(--border-active); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
  .gocta span { font-size: 13.5px; color: var(--text-secondary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gocta b { color: var(--text-primary); font-weight: 500; }
  .has-cta { padding-bottom: 120px; }
  .toc { flex-direction: row; flex-wrap: wrap; }
  .preview { order: -1; }
  .fcards, .grid3 { grid-template-columns: 1fr; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .r.goal { grid-template-columns: minmax(0, 1fr) auto; }
  .r.goal .prog { grid-column: 1 / -1; order: 3; }
  .r.goal .st { order: 2; justify-self: end; }
  .r.goal .amt { grid-column: 1 / -1; order: 4; text-align: left; }
  /* stage recomposes: lanes become two columns under the card */
  .stage { height: auto; padding: 22px 16px 70px; display: flex; flex-direction: column; }
  .tiles { position: relative; top: 0; height: 74px; }
  .tile { width: 170px; margin-left: -85px; transform: translateX(calc(var(--o) * 150px)) translateZ(calc(var(--a) * -160px)) rotateY(calc(var(--o) * -24deg)); }
  .tether { display: none; }
  .stage-tag { position: static; align-self: flex-start; margin-bottom: 14px; }
  .gwrap { position: relative; left: 0; top: 0; width: 100%; max-width: 440px; margin: 12px auto 0; }
  .gtilt { transform: none; }
  .lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 34px auto 0; width: 100%; max-width: 440px; }
  .lane { position: relative; top: 0; left: 0 !important; right: 0 !important; width: auto; height: auto; padding: 40px 0 0; }
  .lane .wire { display: none; }
  .pkt { top: 0; translate: 0 0; --run: 0px; }
  .lane.ll .pkt { animation-name: pkt-up; } .lane.rr .pkt { animation-name: pkt-up; }
  @keyframes pkt-up { 0% { opacity: 0; transform: translateY(8px); } 18% { opacity: 1; transform: none; } 62% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px) scale(.92); } }
  .stage-cap { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .top { gap: 8px; padding: 0 14px; }
  .top .search { max-width: none; }
  .top-end .btn span.lbl { display: none; }
  .wrap { padding: 0 16px 96px; }
  .foot { padding: 20px 16px 96px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(10, 10, 10, .96); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--border); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 12px; color: var(--text-muted); font-size: 11px; font-weight: 500; }
  .tabbar a[aria-current="page"] { color: var(--text-primary); }
  .tabbar a.mk span.c { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-top: -3px; }
  .tabbar a.mk { padding: 2px 0 0; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 56px); }
  .hero h1 span { white-space: normal; }
  .hero-side > p { font-size: 16.5px; }
  .hero .rowx .btn { flex: 1; }
  .page-h { padding: 14px 0 20px; }
  .sec { padding-top: 36px; }
  .srcs { grid-template-columns: 1fr; }
  .figs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .figure b { font-size: 21px; }
  .r.ev { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .r.ev .when { display: none; }
  .r.tok { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .r.tok .acts { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .form .two-col { grid-template-columns: 1fr; }
  .closing { padding: 28px 22px; border-radius: 22px; }
  .ca-row { border-radius: 20px; padding: 14px; }
  .ca-row code { flex-basis: 100%; }
  .feat { grid-template-columns: 1fr; padding: 20px; }
  .phead .acts { margin-left: 0; width: 100%; }
  .flowline { grid-template-columns: 1fr; }
  .flowline .ic { rotate: 90deg; }
  .scrim { padding: 0; place-items: end center; }
  .dlg, .dlg.wide { width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; animation-name: sheet; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .toast { bottom: 84px; }
  .gocta { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .has-cta { padding-bottom: 170px; }
  .tile { width: 150px; margin-left: -75px; transform: translateX(calc(var(--o) * 128px)) translateZ(calc(var(--a) * -170px)) rotateY(calc(var(--o) * -24deg)); padding: 0 10px; }
  .gcard { padding: 18px; }
  .gcard .raised b { font-size: 28px; }
  .rcpt .card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pkt { display: none; }
}
