/* Tradelatch dashboard. Its own look (Geist, app-style layout) on the gettradelatch.com color tokens.
   Theme follows the device. Motion is subtle and turns off with prefers-reduced-motion. */
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("/assets/fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("/assets/fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("/assets/fonts/geist-600.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("/assets/fonts/geist-700.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); }

/* Color tokens from gettradelatch.com (light: paper/ink/forest green; dark: near-black/off-white/mint). */
:root {
  color-scheme: light;
  --bg: #F5F5F2;
  --bg-2: #ECECE7;
  --panel: #FFFFFF;
  --panel-2: #FAFAF8;
  --ink: #17191B;
  --ink-2: #45494D;
  --ink-3: #5E6266;
  --rule: #DADAD3;
  --rule-soft: #E6E6E0;
  --accent: #1F5C3A;
  --accent-2: #2E7A50;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(31, 92, 58, 0.09);
  --glow: rgba(31, 92, 58, 0.16);
  --error: #A3321F;
  --error-soft: rgba(163, 50, 31, 0.08);
  --input: #FFFFFF;
  --input-border: #D2D1C9;
  --highlight: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(23, 25, 27, 0.05), 0 4px 16px -6px rgba(23, 25, 27, 0.08);
  --shadow-lg: 0 1px 2px rgba(23, 25, 27, 0.05), 0 24px 48px -24px rgba(23, 25, 27, 0.22);
  --dot: rgba(23, 25, 27, 0.07);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121413;
    --bg-2: #1A1C1B;
    --panel: #181A19;
    --panel-2: #1D201E;
    --ink: #ECECE7;
    --ink-2: #BDBFBA;
    --ink-3: #9A9D98;
    --rule: #2B2E2C;
    --rule-soft: #222523;
    --accent: #6DB88C;
    --accent-2: #8FCBA4;
    --accent-ink: #0E1611;
    --accent-soft: rgba(109, 184, 140, 0.1);
    --glow: rgba(109, 184, 140, 0.14);
    --error: #F08A78;
    --error-soft: rgba(240, 138, 120, 0.1);
    --input: #141615;
    --input-border: #333734;
    --highlight: rgba(255, 255, 255, 0.04);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 32px 64px -32px rgba(0, 0, 0, 0.8);
    --dot: rgba(236, 236, 231, 0.06);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin: 0; }
h1 { font-size: 28px; }
h2 { font-size: 16px; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.label { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
::selection { background: var(--glow); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px -4px var(--glow); }
.mark svg { width: 17px; height: 17px; }
.brand small { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 3px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[inputmode=numeric] {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--input);
  border: 1px solid var(--input-border); border-radius: var(--r-sm); padding: 10px 12px; min-height: 42px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.03);
  transition: border-color .15s var(--ease), box-shadow .2s var(--ease), background .15s;
}
input:hover { border-color: var(--ink-3); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input.code { font: 500 22px/1 var(--mono); letter-spacing: .5em; text-align: center; padding-left: .5em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 16px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 500 14px/1 var(--sans);
  border-radius: var(--r-sm); padding: 0 16px; min-height: 42px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s var(--ease), background .15s, border-color .15s, box-shadow .2s, color .15s; }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .nav a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 1px var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px var(--glow); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -10px var(--glow); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--rule); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-danger { background: transparent; color: var(--error); border-color: var(--rule); }
.btn-danger:hover { background: var(--error-soft); color: var(--error); border-color: var(--error); }
.btn-link { background: none; border: 0; min-height: 0; padding: 0; color: var(--accent); font-size: 14px; }
.btn-link:hover { color: var(--ink); }
.btn-block { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-sm); padding: 11px 13px; font-size: 14px; border: 1px solid transparent; }
.alert::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex: none; background: currentColor; }
.alert-error { background: var(--error-soft); color: var(--error); border-color: color-mix(in srgb, var(--error) 25%, transparent); }
.alert-ok { background: var(--accent-soft); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.alert-ok::before { background: var(--accent); }
.alert-debug { background: transparent; border: 1px dashed var(--input-border); color: var(--ink-2); font-size: 13px; }
.alert-debug code { font: 500 15px var(--mono); color: var(--ink); word-break: break-all; }
.cf-turnstile { min-height: 65px; }

/* ---------- Auth ---------- */
.auth { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 48px 20px; overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 380px at 50% -80px, var(--glow), transparent 70%),
    radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%); }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 24px; }
.wide .auth-card { max-width: 460px; }
.auth-card > .card { padding: 26px; box-shadow: var(--shadow-lg), inset 0 1px 0 var(--highlight); }
.auth-head { display: grid; gap: 8px; text-align: center; justify-items: center; }
.auth-head .mark { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 10px; }
.auth-head .mark svg { width: 24px; height: 24px; }
.auth-head h1 { font-size: 24px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--ink-3); }
.auth-foot a { font-weight: 500; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 16px 12px; border-right: 1px solid var(--rule-soft);
  background: linear-gradient(180deg, var(--panel-2), var(--bg)); }
.side .brand { padding: 6px 8px; }
.nav { display: grid; gap: 2px; }
.nav .label { padding: 0 10px 10px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 14px;
  transition: background .15s var(--ease), color .15s; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current=page] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow), inset 0 1px 0 var(--highlight); }
.nav a[aria-current=page]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a[aria-current=page] svg { color: var(--accent); }
.nav svg { width: 17px; height: 17px; flex: none; }
.side-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); font: 600 13px/1 var(--sans); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.me-name { font-weight: 500; font-size: 14px; line-height: 1.2; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-role { font: 500 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.side-foot form button { width: 100%; justify-content: flex-start; gap: 10px; padding: 8px 10px; min-height: 0; border: 0; border-radius: 9px; color: var(--ink-3); background: transparent; font-size: 14px; }
.side-foot form button:hover { background: var(--bg-2); color: var(--ink); }
.side-foot svg { width: 17px; height: 17px; }
.main { min-width: 0; }
.bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 clamp(20px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule-soft); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.crumb strong { color: var(--ink); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .04em;
  color: var(--ink-2); background: var(--panel); border: 1px solid var(--rule); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.topnav, .bar-mark { display: none; }
.bar-left { display: flex; align-items: center; gap: 10px; }
.content { max-width: 1040px; padding: 36px clamp(20px, 4vw, 40px) 72px; display: grid; gap: 24px; }
.page-head { display: grid; gap: 6px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.card-pad { padding: 20px; display: grid; gap: 12px; align-content: start; }
.card.lift:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); transform: translateY(-1px); box-shadow: var(--shadow-lg), inset 0 1px 0 var(--highlight); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-sub { font-size: 13px; color: var(--ink-3); margin-top: -6px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; font-size: 14px; }
.kv dt, .kv dd { padding: 11px 0; border-top: 1px solid var(--rule-soft); }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 500 11px/1.4 var(--mono); letter-spacing: .03em;
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.pill-mute { background: var(--bg-2); color: var(--ink-3); border-color: var(--rule); }
.stat { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.icon-tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.icon-tile svg { width: 17px; height: 17px; }

/* Empty states */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 20px; border: 1px dashed var(--input-border); border-radius: var(--r);
  background: radial-gradient(400px 160px at 50% 0, var(--accent-soft), transparent 70%); }
.empty .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 4px; box-shadow: 0 8px 24px -10px var(--glow); }
.empty .icon-tile svg { width: 21px; height: 21px; }
.empty p { max-width: 340px; font-size: 14px; color: var(--ink-3); }

/* Progress steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--ink-3); }
.steps li::before { content: ""; width: 10px; height: 10px; margin: 6px 0 0 6px; border-radius: 50%; border: 2px solid var(--input-border); background: var(--panel); z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: -6px; width: 2px; background: var(--rule-soft); }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.steps li.done:not(:last-child)::after { background: color-mix(in srgb, var(--accent) 45%, var(--rule-soft)); }

.qr { background: #fff; padding: 12px; border-radius: var(--r-sm); width: 172px; height: 172px; border: 1px solid var(--rule); }
.qr svg { width: 146px; height: 146px; display: block; }
.secret { font: 500 14px/1.6 var(--mono); letter-spacing: .06em; word-break: break-all; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1 1 180px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .bar { padding: 0 16px; }
  .crumb { display: none; }
  .topnav, .bar-mark { display: block; }
  .bar-mark .mark { width: 30px; height: 30px; }
  .topnav summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--rule); background: var(--panel); font-size: 14px; font-weight: 500; }
  .topnav summary::-webkit-details-marker { display: none; }
  .topnav summary svg { width: 16px; height: 16px; }
  .topnav[open] .sheet { animation: rise .25s var(--ease) both; }
  .sheet { position: absolute; left: 12px; right: 12px; top: 60px; padding: 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--rule); box-shadow: var(--shadow-lg); display: grid; gap: 12px; }
  .sheet .nav a[aria-current=page]::before { display: none; }
  .content { padding: 24px 16px 56px; gap: 20px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; }
  .kv dd { border-top: 0; padding-top: 2px; }
  .row2 { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .auth { padding: 28px 14px; place-items: start center; }
  .auth-card > .card { padding: 20px 16px; }
}

/* ================= Phase 2 ================= */
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; }
select { font: inherit; font-size: 14px; color: var(--ink); background: var(--input); border: 1px solid var(--input-border); border-radius: var(--r-sm); padding: 9px 12px; min-height: 42px; }
textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--input); border: 1px solid var(--input-border); border-radius: var(--r-sm); padding: 10px 12px; resize: vertical; transition: border-color .15s, box-shadow .2s; }
textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Cross-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
.q-card { view-transition-name: qcard; }
::view-transition-old(qcard) { animation: q-out .22s var(--ease) both; }
::view-transition-new(qcard) { animation: q-in .38s var(--ease) both; }
@keyframes q-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes q-in { from { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(qcard), ::view-transition-new(qcard), ::view-transition-group(*) { animation: none !important; } }

/* Apply */
.apply-wrap { max-width: 620px; width: 100%; margin: 12px auto 0; display: grid; gap: 14px; }
.progress { display: grid; grid-auto-flow: column; gap: 6px; }
.progress span { height: 6px; border-radius: 99px; background: var(--rule); position: relative; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.progress span.done::after { transform: scaleX(1); }
.progress span.now::after { transform: scaleX(.5); animation: fill .7s var(--ease) both; }
@keyframes fill { from { transform: scaleX(0); } }
.progress-meta { display: flex; justify-content: space-between; align-items: center; }
.saved { font: 500 11px/1 var(--mono); color: var(--accent); opacity: 0; transition: opacity .3s; letter-spacing: .06em; text-transform: uppercase; }
.saved.show { opacity: 1; }
.q-card { padding: 28px; display: grid; gap: 20px; }
.q-card fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.q-card legend { padding: 0; display: grid; gap: 6px; }
.q-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.choices { display: grid; gap: 10px; }
.choice { display: block; cursor: pointer; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel-2);
  transition: border-color .15s, background .15s, box-shadow .2s, transform .12s var(--ease); }
.choice:hover .choice-box { border-color: var(--ink-3); }
.choice:active .choice-box { transform: scale(.99); }
.choice input:focus-visible + .choice-box { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.choice input:checked + .choice-box { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-text { display: grid; gap: 2px; }
.choice-text strong { font-weight: 500; font-size: 15px; }
.choice-text span { font-size: 13px; color: var(--ink-3); }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--input-border); display: grid; place-items: center; flex: none; color: transparent; transition: all .2s var(--ease); }
.tick svg { width: 13px; height: 13px; }
.choice input:checked + .choice-box .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.06); }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.round { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow); transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .2s; padding: 0; }
.round svg { width: 19px; height: 19px; }
.round:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.round:active { transform: scale(.95); }
.round.is-off { opacity: .35; pointer-events: none; box-shadow: none; }
.round-go { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 20px -8px var(--glow); }
.round-go:hover { background: var(--accent-2); border-color: transparent; }
.round-go svg { transition: transform .2s var(--ease); }
.round-go:hover svg { transform: translateX(2px); }
.review { margin: 0; display: grid; border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; }
.review > div { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--rule-soft); font-size: 14px; }
.review > div:first-child { border-top: 0; }
.review dt { color: var(--ink-3); }
.review dd { margin: 0; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }

/* Status track */
.track { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.track li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 13px; color: var(--ink-3); animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.track li::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--rule); border-radius: 2px; }
.track li:first-child::before { display: none; }
.track li.done::before, .track li.now::before { background: var(--accent); }
.track .node { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--input-border); background: var(--panel); display: grid; place-items: center; z-index: 1; color: var(--accent-ink); }
.track .node svg { width: 14px; height: 14px; }
.track li.done .node { background: var(--accent); border-color: var(--accent); }
.track li.now .node { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.track li.now .node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .6; } }
.track li.done, .track li.now { color: var(--ink); }
.track li.now .t { font-weight: 600; }
.track.is-closed li:last-child { color: var(--ink-2); }
.next-card { background: radial-gradient(500px 160px at 0 0, var(--accent-soft), transparent 70%), var(--panel); }
.next-card .btn { justify-self: start; margin-top: 4px; }

/* Onboarding */
.meter { height: 6px; border-radius: 99px; background: var(--rule-soft); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; font-size: 15px; }
.checklist li a { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.checklist li a svg { width: 14px; height: 14px; color: var(--ink-3); }
.checklist li.done a { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rule); }
.check { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--input-border); background: var(--panel); display: grid; place-items: center; color: transparent; cursor: pointer; padding: 0; transition: all .2s var(--ease); }
.check:hover { border-color: var(--accent); color: var(--accent); }
.check svg { width: 14px; height: 14px; }
.checklist li.done .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); cursor: default; }

/* Prose (legal text) */
.prose { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.prose h2 { font-size: 20px; color: var(--ink); margin: 0 0 8px; }
.prose h3 { font-size: 15px; color: var(--ink); margin: 26px 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.fold summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); padding: 10px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); box-shadow: var(--shadow); transition: border-color .15s; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary:hover { border-color: var(--ink-3); }
.fold summary svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.fold[open] summary svg { transform: rotate(90deg); }
.fold[open] > .prose, .fold[open] > p, .fold[open] > ul, .fold[open] > h3 { animation: rise .35s var(--ease) both; }
.fold[open] summary { margin-bottom: 18px; }

/* Public careers page */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 70% -120px, var(--glow), transparent 70%), radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000 0, transparent 520px); mask-image: linear-gradient(#000 0, transparent 520px); }
.pub-bar { position: sticky; top: 0; z-index: 4; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule-soft); }
.pub-inner, .pub-main, .pub-foot { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pub-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.pub-main { display: grid; gap: 28px; padding-top: 56px; padding-bottom: 64px; }
.hero { display: grid; gap: 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 48px); letter-spacing: -0.035em; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.role-card { padding: 26px; display: grid; gap: 18px; }
.role-top { display: flex; gap: 14px; align-items: center; }
.role-top h2 { font-size: 18px; }
.role-card .btn-lg { justify-self: start; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.path li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; position: relative; padding: 6px 0 14px; }
.path li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: -4px; width: 2px; background: linear-gradient(var(--accent), var(--rule)); }
.path .dot { width: 14px; height: 14px; margin: 4px 0 0 5px; border-radius: 50%; border: 2px solid var(--accent); background: var(--panel); }
.path li.on .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.path div { display: grid; gap: 2px; }
.path strong { font-weight: 600; }
.path span:not(.dot) { font-size: 14px; color: var(--ink-3); }
.legal-block { scroll-margin-top: 80px; }
.notice { padding: 24px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); max-width: none; }
.pub-foot { display: flex; gap: 18px; padding-top: 22px; padding-bottom: 40px; border-top: 1px solid var(--rule-soft); font-size: 13px; }
.pub-foot a { color: var(--ink-3); }

/* Mod */
.stats .stat-card { padding: 16px 18px; gap: 8px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--panel-2); }
.sub { display: block; font-size: 12px; color: var(--ink-3); }
.log { list-style: none; margin: 0; padding: 0; display: grid; }
.log li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule-soft); font-size: 14px; }
.log li:first-child { border-top: 0; }
.page-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.page-head a svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .q-card { padding: 20px; }
  .q-title { font-size: 19px; }
  .review > div { grid-template-columns: 1fr auto; }
  .review dt { grid-column: 1 / -1; font-size: 12px; }
  .track { grid-template-columns: 1fr; gap: 0; }
  .track li { grid-template-columns: 28px 1fr; justify-items: start; text-align: left; align-items: center; padding: 6px 0; }
  .track li::before { left: 13px; right: auto; top: -10px; width: 2px; height: 16px; }
  .pub-main { padding-top: 36px; }
  .role-card { padding: 20px; }
  .role-card .btn-lg { justify-self: stretch; }
  .notice { padding: 18px; }
  .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
}

.tbl .pill, h1 .pill, dd .pill { font-size: 11px; padding: 2px 8px; vertical-align: middle; }
