/* Jax Digital: the one stylesheet. Every color lives in the tokens below. Phone first (390px), then 768 / 1440.
   Design: calm premium fintech. Warm near-white canvas, deep neutral dark. Forest accent, ochre for actions,
   status colors only for status. Radii 10 / 14 / 18. Soft shadows. No gradients, no glows.
   Motion: 120 / 180 / 240ms on one curve; everything collapses under prefers-reduced-motion. */
@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/geist-mono-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FAF8F4; --surface: #FFFFFF; --surface-2: #F4F1EB; --surface-3: #ECE8E0; --line: #E8E3D9; --line-strong: #D6D0C4;
  --ink-1: #1C1E1B; --ink-2: #474A44; --ink-3: #65685F;
  --accent: #2B4431; --accent-ink: #FFFFFF; --accent-soft: #E6ECE6; --accent-text: #2B4431; --accent-line: #B9C8BC;
  --action: #8C6A26; --action-hover: #7A5C20; --action-ink: #FFFFFF; --highlight: #A8823A; --highlight-soft: #F5EEDF;
  --ok: #2F7A45; --warn: #8C6A26; --bad: #B4241C; --ok-soft: #E4F0E7; --warn-soft: #F4EDDF; --bad-soft: #F7E3E1;
  --ok-ink: #286A3B; --warn-ink: #7A5C20; --bad-ink: #A3201A;
  --toast-bg: #1C1E1B; --toast-ink: #F6F4EF; --toast-ok: #6DB582; --aside-icon: #D9C08A;
  --shadow-1: 0 1px 2px rgba(28, 30, 27, .05), 0 1px 1px rgba(28, 30, 27, .03);
  --shadow-2: 0 8px 24px rgba(28, 30, 27, .07), 0 2px 4px rgba(28, 30, 27, .04);
  --shadow-3: 0 24px 60px rgba(28, 30, 27, .18), 0 4px 12px rgba(28, 30, 27, .06);
  --scrim: rgba(20, 22, 19, .38);
  --shimmer-a: #EFEBE4; --shimmer-b: #F7F4EF;
  --r-1: 10px; --r-2: 14px; --r-3: 18px;
  --t-1: 120ms; --t-2: 180ms; --t-3: 240ms; --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rail: 84px; --tabbar: 64px; --tap: 44px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111311; --surface: #181B18; --surface-2: #1F231F; --surface-3: #272C27; --line: #2A2F2A; --line-strong: #3A403A;
    --ink-1: #EDEBE5; --ink-2: #BAB8B1; --ink-3: #969690;
    --accent-ink: #EEF3EE; --accent-soft: #1E2A20; --accent-text: #8DB597; --accent-line: #3D5543;
    --highlight: #C29C52; --highlight-soft: #29231A;
    --ok: #5BA571; --warn: #C49A45; --bad: #EB6A60; --ok-soft: #1A2A1E; --warn-soft: #2A2416; --bad-soft: #321B19;
    --ok-ink: #6DB582; --warn-ink: #D0A752; --bad-ink: #EF7A70;
    --toast-bg: #EDEBE5; --toast-ink: #161816; --toast-ok: #286A3B;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 10px 28px rgba(0, 0, 0, .38); --shadow-3: 0 24px 64px rgba(0, 0, 0, .6);
    --scrim: rgba(0, 0, 0, .58); --shimmer-a: #1D211D; --shimmer-b: #252A25;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111311; --surface: #181B18; --surface-2: #1F231F; --surface-3: #272C27; --line: #2A2F2A; --line-strong: #3A403A;
  --ink-1: #EDEBE5; --ink-2: #BAB8B1; --ink-3: #969690;
  --accent-ink: #EEF3EE; --accent-soft: #1E2A20; --accent-text: #8DB597; --accent-line: #3D5543;
  --highlight: #C29C52; --highlight-soft: #29231A;
  --ok: #5BA571; --warn: #C49A45; --bad: #EB6A60; --ok-soft: #1A2A1E; --warn-soft: #2A2416; --bad-soft: #321B19;
  --ok-ink: #6DB582; --warn-ink: #D0A752; --bad-ink: #EF7A70;
  --toast-bg: #EDEBE5; --toast-ink: #161816; --toast-ok: #286A3B;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 10px 28px rgba(0, 0, 0, .38); --shadow-3: 0 24px 64px rgba(0, 0, 0, .6);
  --scrim: rgba(0, 0, 0, .58); --shimmer-a: #1D211D; --shimmer-b: #252A25;
}

/* ---------- base + type scale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink-1); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; font-feature-settings: "ss01" 1; text-rendering: optimizeLegibility; }
a { color: var(--accent-text); text-decoration: none; text-underline-offset: 3px; transition: color var(--t-1) var(--ease); }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.012em; color: var(--ink-1); }
h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.022em; }
h2 { font-size: 16px; line-height: 1.3; }
h3 { font-size: 15px; line-height: 1.35; }
p { margin: 0; }
strong, b { font-weight: 600; }
::selection { background: var(--highlight-soft); color: var(--ink-1); }
[hidden] { display: none !important; }
.mono, code, kbd { font-family: var(--mono); font-feature-settings: "zero" 1; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 80; background: var(--surface); padding: 10px 14px; border-radius: var(--r-1); box-shadow: var(--shadow-2); font-weight: 600; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-3); } .ink2 { color: var(--ink-2); } .small { font-size: 13.5px; } .tiny { font-size: 12.5px; line-height: 1.45; }
.block { display: block; } .nowrap { white-space: nowrap; } .center { text-align: center; } .bad-text { color: var(--bad-ink); }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; animation: breathe 1.4s var(--ease) infinite alternate; }
@keyframes breathe { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- shell ---------- */
.rail { display: none; }
.main:focus { outline: none; }
.main { padding: 0 16px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -16px 14px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color var(--t-2) var(--ease); }
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink-1); letter-spacing: -.01em; min-height: var(--tap); }
.brand:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; flex: none; }
.mark:hover { text-decoration: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 30; }
.tabbar.n5 { grid-template-columns: repeat(5, 1fr); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 11px; font-weight: 500; background: none; border: 0; font-family: inherit; cursor: pointer; text-decoration: none; min-width: 0; transition: color var(--t-1) var(--ease); }
.tab svg { width: 22px; height: 22px; transition: transform var(--t-2) var(--ease); }
.tab[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 2px; margin-left: -14px; border-radius: 0 0 2px 2px; background: var(--accent-text); animation: grow var(--t-3) var(--ease); }
.tab:active svg { transform: scale(.9); }
.tab:hover { text-decoration: none; color: var(--ink-1); }
.tab .badge { position: absolute; top: 8px; left: calc(50% + 6px); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--action); color: var(--action-ink); font: 600 11px/18px var(--font); text-align: center; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.page-h { margin-bottom: 18px; gap: 12px; }
.page-h p { margin-top: 6px; max-width: 62ch; }

@media (min-width: 768px) {
  .tabbar { display: none; }
  .rail { display: flex; flex-direction: column; align-items: center; gap: 4px; position: fixed; top: 0; bottom: 0; left: 0; width: var(--rail); padding: 18px 0; background: var(--surface); border-right: 1px solid var(--line); z-index: 30; overflow-y: auto; }
  .rail .mark { margin-bottom: 18px; width: 36px; height: 36px; border-radius: 11px; font-size: 13.5px; }
  .rail-link { position: relative; width: 68px; min-height: 54px; padding: 8px 0 6px; border-radius: var(--r-1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); font: 500 11px var(--font); background: none; border: 0; cursor: pointer; transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease); text-align: center; }
  .rail-link svg { width: 20px; height: 20px; transition: transform var(--t-2) var(--ease); }
  .rail-link:hover { background: var(--surface-2); color: var(--ink-1); text-decoration: none; }
  .rail-link:hover svg { transform: translateY(-1px); }
  .rail-link:active svg { transform: scale(.92); }
  .rail-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
  .rail-link[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-text); }
  .rail-link .badge { position: absolute; top: 4px; right: 10px; }
  .rail .spacer { flex: 1; }
  .main { padding: 32px 32px 56px calc(var(--rail) + 32px); }
  .topbar { display: none; }
  h1 { font-size: 30px; }
  .page-h { margin-bottom: 22px; }
}
@media (min-width: 1440px) { .main { max-width: 1400px; padding-left: calc(var(--rail) + 48px); padding-right: 48px; } }

/* ---------- section enter (staggered) ---------- */
.view > * { animation: enter var(--t-3) var(--ease) both; }
.view > :nth-child(2) { animation-delay: 40ms; } .view > :nth-child(3) { animation-delay: 80ms; } .view > :nth-child(n+4) { animation-delay: 120ms; }
.stagger > * { animation: enter var(--t-3) var(--ease) both; }
.stagger > :nth-child(2) { animation-delay: 40ms; } .stagger > :nth-child(3) { animation-delay: 80ms; } .stagger > :nth-child(4) { animation-delay: 120ms; } .stagger > :nth-child(n+5) { animation-delay: 160ms; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow-1); padding: 18px; min-width: 0; transition: box-shadow var(--t-2) var(--ease), border-color var(--t-2) var(--ease), transform var(--t-2) var(--ease); }
.card.lift:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); transform: translateY(-1px); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 28px; }
.card-h h2 { display: flex; align-items: center; gap: 8px; }
.card-h .count { font: 600 12px/20px var(--font); min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-align: center; }
.card-h a.small { font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.section { margin-top: 20px; }
.section > h2 { margin-bottom: 12px; }
.section-sm { margin-top: 18px; }
.label-h { font-size: 13px; color: var(--ink-1); font-weight: 600; margin-bottom: 10px; letter-spacing: -.003em; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .section { margin-top: 24px; } }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .end { justify-content: flex-end; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.metric { padding: 16px; position: relative; overflow: hidden; }
.metric .label { font-size: 13px; color: var(--ink-1); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.metric .label svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.metric .value { font-size: 32px; font-weight: 500; letter-spacing: -.035em; margin-top: 6px; line-height: 1.1; }
.metric .src { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.metric.hot .value { color: var(--bad-ink); }
.metric.win .value { color: var(--ok-ink); }
@media (min-width: 768px) { .metric { padding: 18px 20px; } .metric .value { font-size: 36px; } }
.start-wrap { margin: 18px 0 4px; }
.start-wrap p { margin-top: 10px; }
@media (min-width: 768px) { .start-wrap { display: flex; align-items: center; gap: 18px; } .start-wrap .btn.big { width: auto; min-width: 300px; } .start-wrap p { margin: 0; text-align: left; } }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: 12px; margin-right: 10px; color: var(--ink-2); font-weight: 600; }
.rank.r1 { background: var(--highlight-soft); color: var(--warn-ink); }

/* ---------- welcome / onboarding hint ---------- */
.welcome { position: relative; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-3); padding: 18px 18px 16px; margin-bottom: 18px; }
.welcome h2 { font-size: 17px; padding-right: 40px; }
.welcome > p { color: var(--ink-2); margin-top: 4px; font-size: 14px; }
.welcome ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.welcome li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-1); }
.welcome li .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 600 12.5px var(--font); }
.welcome li span:last-child { padding-top: 2px; }
.welcome .x { position: absolute; top: 8px; right: 8px; }
.welcome .row { margin-top: 16px; }
@media (min-width: 900px) { .welcome ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

/* ---------- buttons ---------- */
.btn { appearance: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-1); font: 600 14px/1 var(--font); letter-spacing: -.005em; padding: 0 16px; height: var(--tap); border-radius: var(--r-1); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background var(--t-1) var(--ease), border-color var(--t-1) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--ease), box-shadow var(--t-2) var(--ease); text-decoration: none; user-select: none; position: relative; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); text-decoration: none; }
.btn:active { transform: scale(.98); transition-duration: 60ms; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; color: transparent !important; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-3); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.primary[aria-busy="true"]::after, .btn.forest[aria-busy="true"]::after { border-color: var(--action-ink); border-right-color: transparent; }
.btn[aria-busy="true"] > * { visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); box-shadow: var(--shadow-1); }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); box-shadow: var(--shadow-2); }
.btn.forest { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.forest:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.12); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink-1); border-color: transparent; }
.btn.danger { color: var(--bad-ink); }
.btn.danger:hover { background: var(--bad-soft); color: var(--bad-ink); }
.btn.big { height: 58px; font-size: 17px; padding: 0 22px; border-radius: var(--r-2); width: 100%; min-width: 0; letter-spacing: -.01em; }
.btn.big span { overflow: hidden; text-overflow: ellipsis; }
.btn.big svg { width: 20px; height: 20px; }
.btn.block { width: 100%; }
.btn.sm { height: 36px; font-size: 13px; padding: 0 12px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn kbd, .kbd { font: 500 11px/1 var(--mono); padding: 3px 5px; border-radius: 5px; border: 1px solid currentColor; opacity: .55; }
.icon-btn { width: var(--tap); padding: 0; }
.link-btn { appearance: none; border: 0; background: none; padding: 0 4px; min-height: var(--tap); color: var(--accent-text); font: 600 13.5px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .btn.sm { height: var(--tap); padding: 0 14px; } }

.chip { appearance: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-1); font: 500 14px/1.15 var(--font); border-radius: 999px; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: background var(--t-1) var(--ease), border-color var(--t-1) var(--ease), transform var(--t-1) var(--ease), color var(--t-1) var(--ease); min-height: var(--tap); text-align: left; }
.chip:hover { background: var(--surface-2); border-color: var(--ink-3); }
.chip:active { transform: scale(.97); transition-duration: 60ms; }
.chip.sm { min-height: 40px; padding: 8px 13px; font-size: 13.5px; }
@media (pointer: coarse) { .chip.sm { min-height: var(--tap); } }
.chip kbd { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; background: var(--surface-2); line-height: 1; }
.chip.on { background: var(--accent-soft); border-color: var(--accent-text); color: var(--accent-text); }
.chip.on kbd { color: var(--accent-text); border-color: var(--accent-line); background: var(--surface); }
.chip.picked { border-color: var(--highlight); background: var(--highlight-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.outcomes .chip { justify-content: flex-start; border-radius: var(--r-1); min-height: 48px; font-weight: 500; }
.outcomes .chip.win { border-color: var(--accent-line); }
.outcomes .chip.win:hover { background: var(--accent-soft); }
@media (min-width: 560px) { .outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-1); padding: 3px; gap: 2px; max-width: 100%; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: 500 13.5px var(--font); padding: 0 14px; height: 38px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); flex: 1; }
.seg button:hover { color: var(--ink-1); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--surface); color: var(--ink-1); box-shadow: var(--shadow-1); font-weight: 600; }
.seg.scroll { overflow-x: auto; display: flex; scrollbar-width: none; }
.seg.scroll::-webkit-scrollbar { display: none; }
.auth .seg { display: flex; }
@media (pointer: coarse) { .seg button { height: 40px; } }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; line-height: 1.4; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.pill.ok { background: var(--ok-soft); color: var(--ok-ink); } .pill.ok::before { background: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); } .pill.warn::before { background: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad-ink); } .pill.bad::before { background: var(--bad); }
.pill.plain::before { display: none; }
.tag { font-size: 12px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }

/* ---------- forms ---------- */
.field { display: block; min-width: 0; }
.field > label { display: block; font-size: 13px; color: var(--ink-1); margin-bottom: 6px; font-weight: 600; }
.field > label.check { display: flex; font-weight: 400; margin: 0; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.err { color: var(--bad-ink); font-size: 13px; font-weight: 500; }
.err:empty { display: none; }
.err:not(:empty) { margin-top: 6px; animation: enter var(--t-2) var(--ease); }
.input, select.input, textarea.input { width: 100%; height: var(--tap); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-1); border-radius: var(--r-1); padding: 0 12px; font: 16px var(--font); transition: border-color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); min-width: 0; }
.input::placeholder { color: var(--ink-3); opacity: 1; }
textarea.input { height: auto; min-height: 92px; padding: 11px 12px; line-height: 1.5; resize: vertical; }
.input.file { padding: 9px 12px; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--bad-soft); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; min-height: 28px; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; min-height: var(--tap); }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); }
.form-msg { font-size: 14px; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg:not(:empty) { animation: enter var(--t-2) var(--ease); padding: 10px 12px; border-radius: var(--r-1); background: var(--surface-2); }
.form-msg.ok { color: var(--ok-ink); background: var(--ok-soft); } .form-msg.bad { color: var(--bad-ink); background: var(--bad-soft); } .form-msg.warn { color: var(--warn-ink); background: var(--warn-soft); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .search { grid-column: 1 / -1; position: relative; }
.filters .search svg { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.filters .search .input { padding-left: 40px; }
@media (min-width: 768px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .filters.f5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr; } .filters.f5 { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .filters .search { grid-column: auto; } }
.list-meta { margin: 12px 0 8px; min-height: var(--tap); }
.bulk { padding: 4px 4px 4px 12px; border-radius: var(--r-1); background: var(--accent-soft); animation: enter var(--t-2) var(--ease); }
.bulk .small { color: var(--accent-text); font-weight: 600; }
.bulk .input { width: auto; max-width: 220px; }
/* Phone: keep the bulk-assign bar in reach above the tab bar while scrolling a long list. */
@media (max-width: 767px) { .bulk { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar) + 8px + env(safe-area-inset-bottom)); z-index: 25; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3); } }

/* ---------- lists & tables ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; min-height: 52px; }
.list > li:first-child { border-top: 0; padding-top: 4px; }
.list a.item, .item-btn { color: inherit; display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; min-height: var(--tap); border-radius: 8px; }
.list a.item:hover { text-decoration: none; }
.list a.item:hover strong, .list a.item:hover .grow { color: var(--accent-text); }
.list a.item svg { transition: transform var(--t-2) var(--ease), color var(--t-2) var(--ease); }
.list a.item:hover svg { transform: translateX(3px); color: var(--accent-text); }
.list svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.item-btn { appearance: none; border: 0; background: none; font: inherit; text-align: left; padding: 0; cursor: pointer; }
.item-btn:hover .grow { color: var(--accent-text); }
.lead-cards.card { padding: 4px 16px; }
.lead-cards > li { padding: 12px 0; }
.lead-cards > li:first-child { padding-top: 12px; }
.lead-cards input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
.lead-cards .cbx { display: grid; place-items: center; width: 36px; height: var(--tap); margin-left: -8px; flex: none; cursor: pointer; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-1); }
.table-wrap.flat { border: 0; border-radius: 0; margin: 0 -18px -18px; box-shadow: none; background: transparent; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); position: sticky; top: 0; }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background var(--t-1) var(--ease); }
tbody tr.static { cursor: default; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:focus-visible { outline-offset: -2px; border-radius: 0; }
.td-check { width: 44px; }
.td-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.lead-cards { display: none; }
@media (max-width: 1023px) { .table-wrap.leads { display: none; } .lead-cards { display: block; } }

/* ---------- call desk ---------- */
.desk { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .desk { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 20px; } .desk-side { position: sticky; top: 32px; } }
.lead-card { border-radius: var(--r-3); padding: 20px 18px; position: relative; overflow: hidden; }
.lead-card.swap { animation: cardIn var(--t-3) var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .lead-card { padding: 24px; } }
.lead-card .pos { font: 500 12.5px var(--mono); color: var(--ink-3); }
.progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; width: 100%; background: var(--accent-text); border-radius: 4px; transform-origin: left; transition: transform var(--t-3) var(--ease); }
.lead-card .name { font-size: 25px; font-weight: 600; letter-spacing: -.022em; line-height: 1.15; margin-top: 14px; overflow-wrap: anywhere; }
@media (min-width: 768px) { .lead-card .name { font-size: 28px; } }
.lead-card .meta { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.lead-card .stars { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.lead-card .stars b { color: var(--warn-ink); font-weight: 600; }
.lead-card .due { margin-top: 10px; font-weight: 500; }
.lead-card .links { margin-top: 8px; gap: 4px 6px; margin-left: -4px; }
.lead-card .links a, .lead-card .links .none { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; font-weight: 600; font-size: 13.5px; }
.lead-card .links .none { font-weight: 400; color: var(--ink-3); }
.call-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .call-actions { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.why { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-1); background: var(--surface-2); color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; border-left: 3px solid var(--highlight); }
.why b { display: block; font-size: 12px; color: var(--ink-1); margin-bottom: 2px; }
.panel-body { margin-top: 16px; }
.panel-body > * { animation: enter var(--t-2) var(--ease); }
.pitch-line { font-size: 16px; line-height: 1.6; padding: 16px; border-radius: var(--r-2); background: var(--accent-soft); color: var(--ink-1); }
.pillars { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.pillars li + li { margin-top: 5px; }
.pillars li::marker { color: var(--accent-text); }
.price { display: grid; gap: 8px; }
.price > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-1); flex-wrap: wrap; transition: border-color var(--t-1) var(--ease), background var(--t-1) var(--ease); }
.price > div:hover { border-color: var(--line-strong); background: var(--surface-2); }
.obj-card { border: 1px solid var(--highlight); background: var(--highlight-soft); border-radius: var(--r-2); padding: 16px; animation: enter var(--t-2) var(--ease); }
.obj-line { font-size: 16px; line-height: 1.55; margin-top: 10px; }
.cp-transcript { max-height: 180px; overflow-y: auto; background: var(--surface-2); border-radius: var(--r-1); padding: 12px; font-size: 14px; overflow-wrap: anywhere; }
.cp-status.ok { color: var(--ok-ink); } .cp-status.warn { color: var(--warn-ink); } .cp-status.bad { color: var(--bad-ink); }
.cp-status.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; animation: breathe .9s var(--ease) infinite alternate; }
.desk-keys { display: none; }
@media (min-width: 1100px) and (pointer: fine) { .desk-keys { display: flex; } }
.desk-keys { flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); font-size: 12.5px; margin-top: 8px; }
.desk-keys span { display: inline-flex; align-items: center; gap: 6px; }

/* success moment after logging an outcome */
.logged { position: absolute; inset: 0; z-index: 3; display: block; background: var(--surface); border-radius: inherit; animation: fadeIn var(--t-2) var(--ease); text-align: center; padding: 24px; }
.logged .moment { position: sticky; top: 22vh; display: grid; justify-items: center; gap: 10px; padding-top: 56px; }
.logged .tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); animation: pop var(--t-3) var(--ease); }
.logged .tick svg { width: 30px; height: 30px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 320ms var(--ease) 90ms forwards; }
.logged.win .tick { background: var(--ok-soft); color: var(--ok-ink); width: 76px; height: 76px; }
.logged.win .tick::after { content: ""; position: absolute; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--ok); animation: ring 700ms var(--ease) forwards; }
.logged.win .tick { position: relative; }
.logged strong { font-size: 19px; letter-spacing: -.015em; animation: enter var(--t-3) var(--ease) 60ms both; }
.logged p { color: var(--ink-2); font-size: 14px; animation: enter var(--t-3) var(--ease) 110ms both; }
.logged.out { animation: fadeOut var(--t-2) var(--ease) forwards; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

.banner { border-radius: var(--r-1); padding: 12px 14px; font-size: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); overflow-wrap: anywhere; }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-ink); }
.banner.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); }
.banner.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok-ink); }
.banner.small { font-size: 13px; }

/* ---------- lead detail / team ---------- */
.rep-head .who { flex: 1 1 200px; display: flex; gap: 12px; align-items: center; min-width: 0; }
.rep-head .acts { flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 0; font-size: 14px; }
.facts dt { color: var(--ink-3); font-weight: 500; } .facts dd { margin: 0; overflow-wrap: anywhere; }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .minis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mini { background: var(--surface-2); border-radius: var(--r-1); padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.mini .num { font-size: 18px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font: 600 14px var(--font); flex: none; letter-spacing: .02em; }
.avatar.off { background: var(--surface-3); color: var(--ink-3); }
.code-line { font-size: 13px; background: var(--surface-2); border-radius: var(--r-1); padding: 11px 12px; overflow-wrap: anywhere; min-height: var(--tap); display: flex; align-items: center; }
.steps { margin: 0; padding-left: 20px; } .steps li + li { margin-top: 6px; } .steps li::marker { color: var(--accent-text); font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 14px 0 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; border-left: 1px solid var(--line); margin-left: 4px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--highlight); }

/* ---------- empty / error / skeleton ---------- */
.empty { border: 1px dashed var(--line-strong); border-radius: var(--r-2); padding: 22px 18px; color: var(--ink-2); background: transparent; text-align: center; display: grid; justify-items: center; gap: 4px; }
.empty .glyph { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; margin-bottom: 6px; }
.empty .glyph svg { width: 20px; height: 20px; }
.empty.good .glyph { background: var(--ok-soft); color: var(--ok-ink); }
.empty strong { display: block; color: var(--ink-1); font-weight: 600; font-size: 15px; }
.empty p { font-size: 14px; max-width: 42ch; }
.empty .btn { margin-top: 10px; }
.card > .empty { border: 0; padding: 12px 8px 6px; }
.oops { display: grid; gap: 10px; justify-items: start; }
.oops .banner { width: 100%; }
.skel { border-radius: var(--r-1); background: var(--shimmer-a); animation: shimmer 1.1s var(--ease) infinite alternate; height: 16px; }
.skel.block { height: 96px; border-radius: var(--r-2); }
.skel.metric-s { height: 108px; border-radius: var(--r-2); }
.skel.line { height: 14px; width: 60%; } .skel.line.w40 { width: 40%; } .skel.line.w80 { width: 80%; }
.skel.hero { height: 280px; border-radius: var(--r-3); }
@keyframes shimmer { from { background-color: var(--shimmer-a); } to { background-color: var(--shimmer-b); } }
.fade-in { animation: none; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: flex; animation: fadeIn var(--t-2) var(--ease); }
.scrim.closing { animation: fadeOut var(--t-2) var(--ease) forwards; }
.scrim.top { align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.scrim.bottom { align-items: flex-end; }
.scrim.side { justify-content: flex-end; }
.palette { width: 100%; max-width: 600px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-3); overflow: hidden; animation: popIn var(--t-2) var(--ease); display: flex; flex-direction: column; max-height: 72vh; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.palette .pal-in input { border: 0; border-radius: 0; height: 58px; padding: 0; font-size: 17px; background: transparent; box-shadow: none; }
.palette .pal-in input:focus { box-shadow: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.palette .grp { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: default; }
.palette .opt { padding: 0 12px; min-height: var(--tap); border-radius: var(--r-1); cursor: pointer; display: flex; align-items: center; gap: 12px; min-width: 0; transition: background var(--t-1) var(--ease); }
.palette .opt svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.palette .opt .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette .opt .lbl mark { background: none; color: var(--accent-text); font-weight: 600; }
.palette .opt .hint2 { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.palette .opt[aria-selected="true"] { background: var(--surface-2); }
.palette .opt[aria-selected="true"] svg { color: var(--accent-text); }
.palette .none { padding: 22px 12px; text-align: center; color: var(--ink-3); cursor: default; }
.pal-foot { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font-size: 12px; }
.pal-foot span { display: inline-flex; align-items: center; gap: 6px; }
.pal-foot kbd { font: 500 11px/1 var(--mono); padding: 3px 5px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--ink-2); }
@media (pointer: coarse) { .pal-foot { display: none; } }
.sheet { width: 100%; background: var(--surface); border-radius: var(--r-3) var(--r-3) 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-3); animation: up var(--t-3) var(--ease); max-height: 86vh; overflow: auto; }
@keyframes up { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; background: var(--line-strong); border-radius: 4px; margin: 0 auto 8px; }
.sheet a, .sheet button { display: flex; width: 100%; align-items: center; gap: 14px; padding: 0 4px; min-height: 54px; color: var(--ink-1); border: 0; border-top: 1px solid var(--line); background: none; font: 500 15px var(--font); cursor: pointer; text-align: left; }
.sheet a:hover, .sheet button:hover { text-decoration: none; color: var(--accent-text); }
.sheet > :nth-child(2) { border-top: 0; }
.sheet svg { width: 20px; height: 20px; color: var(--ink-3); }
.drawer { width: min(560px, 100%); height: 100%; background: var(--bg); overflow: auto; box-shadow: var(--shadow-3); padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); animation: slide var(--t-3) var(--ease); }
.drawer > * + * { margin-top: 12px; }
.drawer-h { position: sticky; top: -16px; background: var(--bg); padding: 8px 0; margin: -8px 0 0; z-index: 1; }
.drawer .name { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.drawer .meta { margin-top: 4px; }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer:focus { outline: none; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; font-size: 14px; }
.keys kbd { justify-self: start; font: 500 12px/1 var(--mono); padding: 5px 8px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink-1); min-width: 28px; text-align: center; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--toast-bg); color: var(--toast-ink); padding: 12px 16px; border-radius: var(--r-2); font-size: 14px; font-weight: 500; z-index: 90; box-shadow: var(--shadow-3); width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; animation: toastIn var(--t-3) var(--ease); }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.ok svg { color: var(--toast-ok); }
.toast.bad { background: var(--bad); color: #FFFFFF; }
.toast.bad svg { color: #FFFFFF; }
.toast.leaving { animation: toastOut var(--t-2) var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px) scale(.98); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 8px); } }
@media (min-width: 768px) { .toast { bottom: 28px; } }

/* ---------- auth + doc ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; gap: 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 26px 22px; border-radius: var(--r-3); box-shadow: var(--shadow-2); animation: enter var(--t-3) var(--ease); }
.auth-card h1 { font-size: 26px; margin: 22px 0 6px; }
.auth-card form { margin-top: 20px; }
.auth-links { margin-top: 18px; }
.auth-links a { font-weight: 600; display: inline-flex; align-items: center; min-height: var(--tap); }
.auth .card.stack { max-width: 420px; width: 100%; }
.auth-foot a { font-weight: 600; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 980px; gap: 0; align-items: stretch; }
.auth-aside { display: none; }
@media (min-width: 960px) {
  .auth-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-3); box-shadow: var(--shadow-3); overflow: hidden; background: var(--surface); border: 1px solid var(--line); animation: enter var(--t-3) var(--ease); }
  .auth-split .auth-card { max-width: none; box-shadow: none; border: 0; border-radius: 0; padding: 48px 48px 40px; animation: none; }
  .auth-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; background: var(--accent); color: var(--accent-ink); padding: 48px; }
  .auth-aside .mark { background: var(--accent-ink); color: var(--accent); }
  .auth-aside h2 { color: var(--accent-ink); font-size: 30px; line-height: 1.15; letter-spacing: -.025em; max-width: 14ch; }
  .auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .auth-aside li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; opacity: .92; }
  .auth-aside li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--aside-icon); }
  .auth-aside .fine { font-size: 13px; opacity: .75; }
}
.doc { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }
.doc h1 { margin: 16px 0 4px; } .doc h2 { margin: 24px 0 6px; } .doc p, .doc li { color: var(--ink-2); } .doc ul { padding-left: 20px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .skel, .boot-mark, .cp-status.ok::before { animation: none !important; }
  .logged .tick svg { stroke-dashoffset: 0; }
  .btn:active, .chip:active { transform: none; }
}

/* 2026-11-11 day: approvals email footer preview + separated decide buttons */
.mail-foot { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 2px; }
.mail-foot p { margin: 0; overflow-wrap: anywhere; }
.bad-text { color: var(--bad-ink); }
.decide { margin-top: 4px; }
.decide .btn { min-width: 120px; }
