/* Sharpen — one stylesheet. Mobile-first, token-driven, light + dark, no framework. ~14 KB. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #eceff4;
  --surface-3: #e1e6ee;
  --line: #d9dfe8;
  --ink: #12171f;
  --ink-2: #4a5665;
  --ink-3: #5f6a77;
  --accent: #2857d9;
  --accent-2: #1d43b3;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecfc;
  --pro: #2a78d6;
  --personal: #eb6834;
  --good: #0f7a2b;  --good-soft: #e2f4e6;
  --warn: #8a5900;  --warn-soft: #fbf0d3;
  --bad: #bf2a29;   --bad-soft: #fbe2e1;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(18,23,31,.05), 0 6px 20px rgba(18,23,31,.06);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 56px;
  --tab-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1218; --surface: #161b23; --surface-2: #1e2530; --surface-3: #27303d; --line: #2a3340;
    --ink: #eef1f5; --ink-2: #b3bcc8; --ink-3: #8a95a3;
    --accent: #7c9ef2; --accent-2: #9ab4f6; --accent-ink: #0e1218; --accent-soft: #1c2a4a;
    --pro: #3f8ce8; --personal: #e2652f;
    --good: #5ccc74; --good-soft: #14301c;
    --warn: #e8b04a; --warn-soft: #34290f;
    --bad: #f07a78; --bad-soft: #3b1c1c;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.35);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Links inside running text are underlined, so colour is never the only cue (WCAG 1.4.1). Component links (buttons, nav, cards) opt out below. */
p a, li a, .footer a, .help-foot a, small a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw + .8rem, 2rem); font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 800; }
h3 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 .75rem; max-width: 66ch; }
small, .muted { color: var(--ink-2); }
.muted-3 { color: var(--ink-3); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 800; color: var(--ink-3); }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell: top bar on mobile, sidebar from 900px ---------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--nav-h);
  display: flex; align-items: center; gap: .75rem; padding: 0 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: var(--accent-ink); clip-path: polygon(0 100%, 0 45%, 40% 45%, 40% 0, 100% 0, 100% 55%, 60% 55%, 60% 100%); }
.topbar .grow { flex: 1; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; } .menu-toggle span::after { position: absolute; top: 6px; }
#nav-open { position: absolute; opacity: 0; pointer-events: none; }
.shell:has(#nav-open:focus-visible) .menu-toggle { outline: 2px solid var(--accent); outline-offset: 2px; }   /* keyboard focus on the hidden checkbox shows on its visible label */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 15; background: var(--surface);
  padding: 1rem; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
}
#nav-open:checked ~ .drawer { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.nav { display: flex; flex-direction: column; gap: .15rem; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav .who { padding: .8rem; font-size: .85rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: .5rem; }
.nav .who b { display: block; color: var(--ink); }
.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.25rem 1rem calc(var(--tab-h) + 1.5rem); }

/* bottom tab bar (phones only) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--tab-h);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--ink-3); text-decoration: none; }
.tabbar a.active { color: var(--accent); }
.tabbar a:hover { text-decoration: none; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .fab { margin-top: -22px; }
.tabbar .fab span { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 232px 1fr; }
  .topbar, .tabbar, .menu-toggle { display: none; }
  .drawer { position: sticky; top: 0; height: 100dvh; inset: auto; opacity: 1; transform: none; visibility: visible; transition: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.1rem .9rem; }
  .drawer .brand { padding: .25rem .5rem 1rem; }
  .drawer .spacer { flex: 1; }
  .nav a { padding: .55rem .7rem; }
  .main { padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 3rem; }
}
.drawer .brand { display: none; }
@media (min-width: 900px) { .drawer .brand { display: inline-flex; } }
.shell.public { display: flex; flex-direction: column; }
.shell.public .drawer, .shell.public .menu-toggle { display: none; }
.shell.public .topbar { display: flex; }
.shell.public .topbar .nav { flex-direction: row; gap: .35rem; }
.shell.public .topbar .nav a { padding: .45rem .7rem; font-size: .9rem; white-space: nowrap; min-height: 40px; }
.shell.public .topbar .nav a.wide-only { display: none; }
@media (min-width: 520px) { .shell.public .topbar .nav a.wide-only { display: inline-flex; } }
.hero .cta .btn { white-space: nowrap; }
.shell.public .main { padding-bottom: 2rem; }

/* live counters */
.counter-strip { display: flex; gap: 1.25rem 2rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.counter-strip div { display: flex; flex-direction: column; }
.counter-strip b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.counter-strip span { font-size: .78rem; color: var(--ink-3); margin-top: .25rem; }
.who.counter b { font-weight: 700; }

/* ---------- page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { margin: .3rem 0 0; color: var(--ink-2); }
.page-head .row { width: 100%; }
@media (min-width: 640px) { .page-head .row { width: auto; } }

/* ---------- layout primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.card.lift { box-shadow: var(--shadow); border-color: transparent; }
.card h2 { margin-bottom: .75rem; }
.grid { display: grid; gap: .9rem; }
.grid > * { min-width: 0; }
.grid.top { align-items: start; }   /* cards keep their own height instead of stretching to the tallest column */   /* a long <pre> (the API key) scrolls inside its card instead of widening the page on a phone */
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }
.grid.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 1.1rem 1.25rem; }
}
@media (min-width: 640px) and (max-width: 899px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ---------- stat tiles ---------- */
.stat { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.stat .label { font-size: .74rem; color: var(--ink-2); font-weight: 700; }
.stat .value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .sub { font-size: .76rem; color: var(--ink-3); }

/* ---------- score ring ---------- */
.score { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; justify-items: center; }
@media (min-width: 480px) { .score { grid-template-columns: 136px 1fr; justify-items: stretch; } }
.ring { width: 136px; height: 136px; position: relative; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .track { stroke: var(--surface-3); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .center .big { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ring .center .of { font-size: .68rem; color: var(--ink-3); }
.band { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.band.low { background: var(--warn-soft); color: var(--warn); }

/* ---------- dimension bars ---------- */
.dims { display: grid; gap: .45rem; width: 100%; }
.dim { display: grid; grid-template-columns: 100px 1fr 34px; gap: .55rem; align-items: center; font-size: .84rem; }
.dim .label { color: var(--ink-2); font-weight: 700; }
.dim .track { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.dim .fill { height: 100%; background: var(--accent); border-radius: 4px; }
.dim .v { text-align: right; font-weight: 800; }

/* ---------- flags / insights ---------- */
.flags { display: grid; gap: .45rem; }
.flag { display: flex; gap: .6rem; padding: .6rem .75rem; border-radius: var(--radius-s); background: var(--surface-2); font-size: .86rem; align-items: flex-start; }
.flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: .45rem; flex: none; background: var(--ink-3); }
.flag.strength::before, .flag.up::before { background: var(--good); }
.flag.risk::before, .flag.down::before { background: var(--bad); }
.flag.verify::before, .flag.growth::before, .flag.assess::before, .flag.confidence::before, .flag.uniform::before { background: var(--warn); }
.flag.tool::before, .flag.task::before, .flag.balance::before, .flag.breadth::before { background: var(--accent); }
.flag b { display: block; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart text { fill: var(--ink-3); font-size: 10px; font-family: var(--font); }
.bars { display: grid; grid-auto-flow: column; gap: 6px; align-items: end; height: 110px; }
.bars .col { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: calc(100% - 2px); }
.bars .seg { border-radius: 3px 3px 0 0; min-height: 0; }
.bars .seg.pro { background: var(--pro); }
.bars .seg.personal { background: var(--personal); }
.bars-labels { display: grid; grid-auto-flow: column; gap: 6px; font-size: .68rem; color: var(--ink-3); text-align: center; margin-top: .3rem; }
.legend { display: flex; gap: 1rem; font-size: .76rem; color: var(--ink-2); margin-top: .5rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.legend i.pro { background: var(--pro); } .legend i.personal { background: var(--personal); }
.split { height: 10px; border-radius: 5px; overflow: hidden; display: flex; background: var(--surface-3); }
.split .pro { background: var(--pro); } .split .personal { background: var(--personal); }
.shares { display: grid; gap: .4rem; }
.share { display: grid; grid-template-columns: 1fr 52px; gap: .5rem; align-items: center; font-size: .84rem; }
.share .track { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: .2rem; }
.share .fill { height: 100%; background: var(--accent); }
.share .pct { text-align: right; color: var(--ink-2); }

/* ---------- tables: real table ≥ 640px, stacked cards below ---------- */
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: .55rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 800; white-space: nowrap; }
td.num, th.num { text-align: right; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
tr.unrated td { background: var(--warn-soft); }
@media (max-width: 639px) {
  table.stackable thead { display: none; }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .65rem .8rem; margin-bottom: .6rem; background: var(--surface); }
  table.stackable tr.unrated { background: var(--warn-soft); }
  table.stackable td { display: flex; flex-direction: column; gap: .1rem; border: 0; padding: 0; text-align: left; min-width: 0; }
  table.stackable td.num { text-align: left; }
  table.stackable td::before { content: attr(data-label); color: var(--ink-3); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
  table.stackable td:not([data-label])::before, table.stackable td[data-label=""]::before { content: none; }
  table.stackable td[data-label="Date"], table.stackable td[data-label="Month"] { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
  table.stackable td[data-label="Date"]::before, table.stackable td[data-label="Month"]::before { content: none; }
  table.stackable td[data-label="Action"], table.stackable td[data-label="Download"] { grid-column: 1 / -1; align-items: flex-end; }
  table.stackable td[data-label="Action"]::before, table.stackable td[data-label="Download"]::before { content: none; }
  table.stackable td.empty { grid-column: 1 / -1; text-align: center; }
}

/* ---------- chips ---------- */
.chip { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.pro { background: color-mix(in srgb, var(--pro) 14%, transparent); color: color-mix(in srgb, var(--pro) 80%, var(--ink)); }
.chip.personal { background: color-mix(in srgb, var(--personal) 14%, transparent); color: #a8421a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.personal { color: var(--personal); } }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- forms ---------- */
form.stack { gap: .9rem; }
label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=file], select, textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 1rem; min-height: 44px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 32px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 600; color: var(--ink); font-size: .95rem; margin: 0; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.help { font-size: .78rem; color: var(--ink-3); margin-top: .3rem; }
.error { color: var(--bad); font-size: .8rem; margin-top: .3rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer;
  text-decoration: none; transition: background .12s ease, transform .05s ease;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: var(--accent-2); }
.btn.small { min-height: 40px; padding: .3rem .7rem; font-size: .8rem; }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
@media (max-width: 639px) { .page-head .btn, .row.actions .btn { flex: 1; } }
.flash { background: var(--good-soft); color: var(--good); border-radius: var(--radius-s); padding: .65rem .9rem; margin-bottom: 1rem; font-weight: 700; font-size: .9rem; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-s); padding: .65rem .9rem; font-weight: 700; font-size: .9rem; }
.empty { padding: 1.5rem 1rem; text-align: center; color: var(--ink-3); }
code, .code { font-family: var(--mono); font-size: .85em; background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--surface-2); padding: .8rem 1rem; border-radius: var(--radius-s); overflow-x: auto; font-family: var(--mono); font-size: .78rem; line-height: 1.5; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 1rem auto 2rem; }
@media (min-width: 640px) { .auth { margin: 3rem auto; } }
.auth .brand { margin-bottom: 1rem; }

/* ---------- candidates ---------- */
.cand { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: start; }
.cand .mini { width: 64px; height: 64px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; }
.cand .mini small { font-size: .58rem; font-weight: 800; color: var(--accent); }
.cand .cta { grid-column: 1 / -1; }
@media (min-width: 640px) { .cand { grid-template-columns: 64px 1fr auto; align-items: center; } .cand .cta { grid-column: auto; } }
.cand-dims { display: flex; gap: .7rem .9rem; font-size: .78rem; color: var(--ink-2); flex-wrap: wrap; }
.cand-dims b { color: var(--ink); }

/* ---------- landing ---------- */
.landing { display: flex; flex-direction: column; gap: 3rem; }
.hero { display: grid; gap: 1.5rem; align-items: center; padding-top: .5rem; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; gap: 3rem; padding-top: 1.5rem; } }
.hero h1 { font-size: clamp(2.1rem, 4.5vw + 1rem, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 1.1rem; color: var(--ink-2); margin-top: 1rem; max-width: 52ch; }
.hero .cta { margin-top: 1.5rem; }
.hero .cta .btn { min-height: 48px; padding: .6rem 1.25rem; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow); }
.hero-card .eyebrow { margin-bottom: .6rem; }
.hero-card .foot { margin-top: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.steps { display: grid; gap: .9rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.25rem 1.1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .85rem; margin-bottom: .7rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.dimstrip { display: grid; gap: .6rem; }
@media (min-width: 640px) { .dimstrip { grid-template-columns: repeat(5, 1fr); } }
.dimstrip .d { padding: .9rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.dimstrip .d b { display: block; font-size: 1.3rem; font-family: var(--display); letter-spacing: -.02em; }
.dimstrip .d span { font-size: .8rem; color: var(--ink-2); }
.dimstrip .d small { display: block; color: var(--ink-3); font-size: .74rem; margin-top: .25rem; }
.section-head { max-width: 60ch; margin-bottom: 1rem; }
.section-head h2 { font-family: var(--display); font-size: clamp(1.4rem, 2vw + .8rem, 1.9rem); font-weight: 800; letter-spacing: -.025em; }
.section-head p { color: var(--ink-2); margin-top: .4rem; }
.quiet { background: var(--surface-2); border-radius: 18px; padding: 1.5rem 1.25rem; }
@media (min-width: 640px) { .quiet { padding: 2.25rem 2rem; } }
.footer { padding: 2rem 0 1rem; color: var(--ink-3); font-size: .8rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); }
.footer a { display: inline-block; padding: .45rem 0; }   /* ≥ 40px tap targets on a phone */

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .drawer, .topbar, .tabbar, .no-print { display: none !important; } .shell { display: block; } .main { padding: 0; max-width: none; } .card { break-inside: avoid; } }

/* Ownership footer, rendered by layout.html under every page */
.site-footer { margin-top: 2.5rem; }
.site-footer b { color: var(--ink-2); font-weight: 600; }

/* ---------- avatars ---------- */
.avatar { --hue: 220; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: hsl(var(--hue) 55% 90%); color: hsl(var(--hue) 45% 28%); font-weight: 800; letter-spacing: .02em; user-select: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 32px; height: 32px; font-size: .72rem; }
.avatar.md { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.8rem; }
.avatar.xl { width: 112px; height: 112px; font-size: 2.1rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { background: hsl(var(--hue) 35% 24%); color: hsl(var(--hue) 70% 82%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); } }
.who.with-avatar { display: flex; gap: .6rem; align-items: center; }
.who.with-avatar > span:last-child { min-width: 0; overflow: hidden; }
.who.with-avatar > span:last-child span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.profile-head { align-items: center; }
.profile-head > .avatar { margin-right: .25rem; }
.profile-head > div:not(.row) { flex: 1 1 12rem; min-width: 0; }   /* the name stays beside the picture; without this a visitor's view (no action buttons) centred it */
.avatar-edit { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.cand.with-avatar { grid-template-columns: 56px 64px 1fr; }
@media (min-width: 640px) { .cand.with-avatar { grid-template-columns: 56px 64px 1fr auto; } }

/* ---------- public directory ---------- */
.directory-tools { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; padding: 1rem; }
.search { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: .9rem; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search input[type=search] { -webkit-appearance: none; appearance: none; width: 100%; min-height: 52px; padding: .7rem 2.8rem .7rem 2.9rem; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input[type=search]::placeholder { color: var(--ink-3); }
.search input[type=search]:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-clear { position: absolute; right: .55rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.search-clear:hover { background: var(--surface-3); color: var(--ink); }
.dir-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.dir-count { font-size: .9rem; color: var(--ink-2); }
.dir-count b { color: var(--ink); }
.dir-sort { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.dir-sort select { width: auto; min-height: 36px; padding: .25rem 2rem .25rem .7rem; font-size: .85rem; }
.chips { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.chips-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-right: .2rem; }
.filter-chip { font: inherit; font-size: .8rem; font-weight: 700; min-height: 40px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.filter-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
a.filter-chip { text-decoration: none; display: inline-flex; align-items: center; }
.person-card { display: grid; grid-template-columns: 56px 1fr; gap: .9rem 1rem; align-items: center; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s, transform .12s; }
.person-card[hidden] { display: none; }
.person-card:hover, .person-card:focus-visible { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.person-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.person-name { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.person-headline { color: var(--ink-2); font-size: .9rem; }
.person-meta { display: flex; flex-wrap: wrap; gap: .15rem .6rem; font-size: .8rem; color: var(--ink-3); }
.person-meta > span + span::before { content: "·"; margin-right: .6rem; }
.person-tools { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.person-score { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .5rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.person-score b { font-size: 1.5rem; color: var(--accent); }
.person-score small { font-size: .72rem; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.person-score.none b { color: var(--ink-3); }
@media (min-width: 640px) {
  .person-card { grid-template-columns: 56px 1fr auto; }
  .person-score { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 0; padding: 0 0 0 1rem; border-top: 0; border-left: 1px solid var(--line); min-width: 92px; }
  .person-score b { font-size: 1.7rem; line-height: 1.1; }
}
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* Sharpen Help — the corner guide (markup in layout.html, logic in js/help.js) */
.help-widget { position: fixed; right: 1rem; bottom: calc(var(--tab-h) + 1rem + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.help-widget.no-tabbar { bottom: calc(1rem + env(safe-area-inset-bottom)); }   /* no phone tab bar for visitors and companies */
@media (min-width: 900px) { .help-widget { right: 1.5rem; bottom: 1.5rem; } }
.help-launcher { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.help-launcher:hover { background: var(--surface-2); }
.help-launcher svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-widget.open .help-launcher { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.help-widget.open .help-launcher svg { stroke: var(--accent-ink); }
.help-panel { width: min(380px, calc(100vw - 2rem)); max-height: min(560px, calc(100dvh - var(--tab-h) - 6rem)); display: flex; flex-direction: column; padding: 0; overflow: hidden; box-shadow: 0 12px 40px rgba(18,23,31,.18); }
.help-panel[hidden] { display: none; }
.help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .8rem .9rem .7rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.help-head b { display: block; font-family: var(--display); font-size: 1rem; letter-spacing: -.01em; }
.help-head small { display: block; color: var(--ink-3); font-size: .72rem; line-height: 1.3; margin-top: .15rem; }
.help-close { width: 32px; height: 32px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.help-close:hover { background: var(--surface-3); color: var(--ink); }
.help-log { flex: 1; overflow-y: auto; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; min-height: 200px; }
.help-msg { max-width: 92%; padding: .55rem .75rem; border-radius: 12px; line-height: 1.45; }
.help-msg p { margin: 0 0 .45rem; } .help-msg p:last-child, .help-msg ol:last-child, .help-msg ul:last-child { margin-bottom: 0; }
.help-msg ol, .help-msg ul { margin: .2rem 0 .45rem; padding-left: 1.2rem; } .help-msg li { margin: .15rem 0; }
.help-msg code { font-family: var(--mono); font-size: .8em; background: var(--surface-3); padding: .05rem .3rem; border-radius: 4px; }
.help-msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.help-msg.me { align-self: flex-end; background: var(--accent-soft); color: var(--ink); border-bottom-right-radius: 4px; }
.help-chips { display: flex; flex-wrap: nowrap; gap: .35rem; padding: .2rem .9rem .7rem; overflow-x: auto; overflow-y: hidden; flex: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.help-chips::-webkit-scrollbar { display: none; }
.help-chip { white-space: nowrap; flex: none; line-height: 1.2; }
.help-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: .3rem .65rem; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.help-chip:hover { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.help-form { display: flex; gap: .4rem; padding: .6rem .9rem; border-top: 1px solid var(--line); }
.help-form input { flex: 1; min-width: 0; min-height: 40px; }
.help-foot { padding: .45rem .9rem .7rem; font-size: .75rem; color: var(--ink-3); }
@media print { .help-widget { display: none; } }
/* Phones: the launcher is a round icon button, and the page keeps room under its last line so nothing hides behind it. */
@media (max-width: 639px) {
  .help-launcher { width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; }
  .help-launcher span { display: none; }
  .main { padding-bottom: calc(var(--tab-h) + 2rem + 64px); }        /* tab bar + launcher */
  .shell.public .main { padding-bottom: calc(2rem + 64px); }          /* launcher only */
}

/* first / middle / last name fields side by side when there is room */
.grid.names { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.names { grid-template-columns: 1fr 1fr 1fr; } }

/* honeypot field on the contact form: off-screen, not display:none (some bots skip hidden inputs) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* share card: copy-ready snippets */
textarea.code { width: 100%; font-family: var(--mono); font-size: .8rem; resize: none; white-space: pre; overflow-x: auto; padding: .5rem .6rem; }
.card.share-card label { display: block; font-size: .8rem; color: var(--ink-2); }

/* the one destructive action on the site */
.card.danger { border-color: color-mix(in srgb, #c0392b 45%, var(--line)); }
.card.danger h2 { color: #c0392b; }
.btn.danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn.danger:hover { background: #a93226; }
@media (prefers-color-scheme: dark) { .card.danger h2 { color: #f1948a; } .card.danger { border-color: color-mix(in srgb, #f1948a 35%, var(--line)); } }

/* Insights: stat tiles and single-hue bars. Text stays in ink tokens; the bar carries the value, the number repeats it. */
.insights-kpis .kpi { display: flex; flex-direction: column; gap: .25rem; }
.insights-kpis .kpi .num { font-family: var(--display); font-size: 2rem; letter-spacing: -.03em; line-height: 1; }
.insights-kpis .kpi span { font-size: .8rem; }
table.insight-bars { width: 100%; border-collapse: collapse; }
table.insight-bars th, table.insight-bars td { padding: .3rem .4rem .3rem 0; text-align: left; font-weight: 500; border: 0; vertical-align: middle; }
table.insight-bars th[scope=row] { width: 34%; color: var(--ink); font-size: .86rem; text-transform: none; letter-spacing: 0; font-weight: 600; white-space: normal; }
table.insight-bars thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; padding-bottom: .5rem; }
table.insight-bars td.bar { width: 100%; }
table.insight-bars td.bar .fill { display: block; height: 10px; border-radius: 4px; background: var(--accent); min-width: 2px; }
table.insight-bars td.bar .fill.pro { background: var(--pro); }
table.insight-bars td.bar .fill.personal { background: var(--personal); }
table.insight-bars .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; padding-left: .6rem; }
table.insight-bars thead th.num { text-align: right; }
@media (max-width: 639px) { table.insight-bars .wide-col { display: none; } }

/* Privacy page: long-form text in one card, readable line length, a definition list for "what is stored". */
.card.prose { max-width: 72ch; padding: 1.25rem 1.4rem; }
.card.prose section + section { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.card.prose h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.card.prose p { color: var(--ink-2); line-height: 1.6; }
.card.prose p + p { margin-top: .7rem; }
.card.prose b { color: var(--ink); }
dl.facts { margin: 0; display: grid; gap: .2rem; }
dl.facts dt { font-weight: 700; color: var(--ink); margin-top: .6rem; }
dl.facts dt:first-child { margin-top: 0; }
dl.facts dd { margin: 0; color: var(--ink-2); line-height: 1.6; }

/* "Continue with Google / GitHub" and Settings → Sign-in methods. Plain text buttons, no third-party logos. */
.social-signin { display: flex; flex-direction: column; gap: .5rem; margin: .9rem 0 .6rem; }
.btn.social { justify-content: center; font-weight: 700; }
.social-signin .or { display: flex; align-items: center; gap: .75rem; color: var(--ink-3); font-size: .78rem; margin: .35rem 0 .1rem; }
.social-signin .or::before, .social-signin .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
ul.signin-list { list-style: none; margin: 0; padding: 0; }
ul.signin-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
ul.signin-list li:first-child { border-top: 0; padding-top: 0; }
ul.signin-list li > div { display: flex; flex-direction: column; min-width: 0; }
ul.signin-list li > div span { font-size: .82rem; overflow-wrap: anywhere; }

/* Traffic → "Where visitors come from": a pie of up to five countries plus "Other", a legend that carries the
   numbers (so colour is never the only key), continent bars, and the full table behind a disclosure.
   Slice colours are the validated categorical order (light and dark stepped separately); "other" is neutral. */
.geo { --geo-1: #2a78d6; --geo-2: #eb6834; --geo-3: #1baf7a; --geo-4: #eda100; --geo-5: #e87ba4; --geo-other: #a0a9b4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .geo { --geo-1: #3987e5; --geo-2: #d95926; --geo-3: #199e70; --geo-4: #c98500; --geo-5: #d55181; --geo-other: #5f6a78; }
}
.geo .geo-lede { margin-top: -.4rem; margin-bottom: .9rem; font-size: .88rem; max-width: 80ch; }
.geo-body { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem 2rem; align-items: center; }
.geo-pie { margin: 0; text-align: center; }
.geo-pie svg { display: block; margin: 0 auto .4rem; }
.geo-pie figcaption { font-size: .8rem; }
.geo .slice { stroke: var(--surface); stroke-width: 2; stroke-linejoin: round; transition: opacity .15s; }
.geo .s-1 { fill: var(--geo-1); background: var(--geo-1); } .geo .s-2 { fill: var(--geo-2); background: var(--geo-2); }
.geo .s-3 { fill: var(--geo-3); background: var(--geo-3); } .geo .s-4 { fill: var(--geo-4); background: var(--geo-4); }
.geo .s-5 { fill: var(--geo-5); background: var(--geo-5); } .geo .s-other { fill: var(--geo-other); background: var(--geo-other); }
/* Hover a slice → its legend row (with the numbers) lights up; hover a legend row → only its slice stays solid.
   Mouse and trackpad only, so a tap on a phone does not leave the chart dimmed. */
@media (hover: hover) {
.geo svg:hover .slice { opacity: .3; }
.geo svg .slice:hover { opacity: 1; }
.geo:has(.slice.s-1:hover) .geo-legend li.k-1, .geo-legend li.k-1:hover { background: var(--surface-2); }
.geo:has(.geo-legend li.k-1:hover) .slice:not(.s-1) { opacity: .3; }
.geo:has(.slice.s-2:hover) .geo-legend li.k-2, .geo-legend li.k-2:hover { background: var(--surface-2); }
.geo:has(.geo-legend li.k-2:hover) .slice:not(.s-2) { opacity: .3; }
.geo:has(.slice.s-3:hover) .geo-legend li.k-3, .geo-legend li.k-3:hover { background: var(--surface-2); }
.geo:has(.geo-legend li.k-3:hover) .slice:not(.s-3) { opacity: .3; }
.geo:has(.slice.s-4:hover) .geo-legend li.k-4, .geo-legend li.k-4:hover { background: var(--surface-2); }
.geo:has(.geo-legend li.k-4:hover) .slice:not(.s-4) { opacity: .3; }
.geo:has(.slice.s-5:hover) .geo-legend li.k-5, .geo-legend li.k-5:hover { background: var(--surface-2); }
.geo:has(.geo-legend li.k-5:hover) .slice:not(.s-5) { opacity: .3; }
.geo:has(.slice.s-other:hover) .geo-legend li.k-other, .geo-legend li.k-other:hover { background: var(--surface-2); }
.geo:has(.geo-legend li.k-other:hover) .slice:not(.s-other) { opacity: .3; }
}
ul.geo-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
ul.geo-legend li { border-radius: 6px; padding: .15rem .3rem; margin: 0 -.3rem; transition: background .15s; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 3.2rem; gap: .55rem; align-items: center; font-size: .9rem; }
ul.geo-legend i { width: 12px; height: 12px; border-radius: 3px; }
ul.geo-legend .name { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
ul.geo-legend .pct { color: var(--ink); font-weight: 700; text-align: right; }
ul.geo-legend .num.muted { text-align: right; font-size: .8rem; }
ul.geo-legend li.head { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; padding-bottom: 0; }
ul.geo-legend li.head span { text-align: right; }
ul.geo-legend li.head span:first-of-type { text-align: left; }
.geo-continents h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 .4rem; }
.geo-all { margin-top: 1rem; }
.geo-all summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--accent); }
.geo-all .table-wrap { margin-top: .6rem; max-height: 22rem; overflow-y: auto; }
ul.geo-notes { list-style: none; margin: .9rem 0 0; padding: 0; font-size: .8rem; display: grid; gap: .3rem; }
@media (max-width: 899px) { .geo-body { grid-template-columns: auto minmax(0, 1fr); } .geo-continents { grid-column: 1 / -1; } }
@media (max-width: 539px) { .geo-body { grid-template-columns: minmax(0, 1fr); } }

/* Honesty notes: what a self-rated score can and cannot show (profile, candidates), and the consent text beside the
   public-profile switch. Calm, not alarming: the information is the point, not a warning. */
.notice.soft { background: var(--accent-soft); color: var(--ink); font-weight: 500; line-height: 1.5; }
.card.honest p { margin: 0 0 .6rem; line-height: 1.55; }
.card.honest .grid { gap: .5rem 1.5rem; }
.consent .help { margin: .35rem 0 0 1.6rem; max-width: 70ch; line-height: 1.5; }
ul.plain { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; color: var(--ink-2); line-height: 1.5; }
#honest h3 { font-size: 1rem; margin: 0; }

/* The 60-second AI habits check (/check) and its shareable result. Big tap targets: most people take it on a phone. */
.check-form { max-width: 760px; }
.check-q { border: 1px solid var(--line); margin: 0; }
.check-q legend { float: left; width: 100%; font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: .8rem; display: flex; gap: .6rem; line-height: 1.4; }
.check-q legend + .check-options { clear: both; }   /* a floated legend sits inside the card instead of on its border */
.check-q legend .num { color: var(--accent); }
.check-options { display: grid; gap: .45rem; }
@media (min-width: 640px) { .check-options { grid-template-columns: 1fr 1fr; } }
.check-option { display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line);
  border-radius: var(--radius-s); cursor: pointer; font-weight: 500; min-height: 44px; transition: border-color .15s, background .15s; }
.check-option:hover { border-color: var(--accent); }
.check-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-option input { margin: 0; accent-color: var(--accent); }
.check-submit { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .75rem 1rem; box-shadow: var(--shadow); gap: .75rem; }
.check-score { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; }
.check-score .big { font-family: var(--display); font-size: 3.2rem; letter-spacing: -.04em; line-height: 1; }
.check-score .of { color: var(--ink-2); font-weight: 600; }
.check-next { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.check-next > div { max-width: 62ch; }

/* Sign-up: who you are comes first, as two cards; the name fields that follow depend on it. */
.type-choice { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.type-choice legend { font-weight: 700; font-size: .85rem; color: var(--ink-2); margin-bottom: .4rem; }
@media (min-width: 640px) { .type-choice { grid-template-columns: 1fr 1fr; } .type-choice legend { grid-column: 1 / -1; } }
.type-option { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.type-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.type-option input { margin-top: .25rem; accent-color: var(--accent); }
.type-option b { display: block; font-size: .95rem; }
.type-option small { display: block; color: var(--ink-2); line-height: 1.4; margin-top: .15rem; }
.grid.names.two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.names.two { grid-template-columns: 1fr 1fr; } }

/* ---------- invite a friend ---------- */
.invite-preview { width: 100%; font: inherit; font-size: .92rem; line-height: 1.5; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .8rem .9rem; resize: vertical; }

/* ---------- notifications ---------- */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.notes li a { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.notes li a:hover { background: var(--surface-2); text-decoration: none; }
.notes .dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: .45rem; }
.notes li.unread .dot { background: var(--accent); }
.notes li.unread b { color: var(--ink); }
.notes .text { display: grid; gap: .15rem; min-width: 0; }
.notes .text b { font-weight: 800; }
.notes .text span { color: var(--ink-2); font-size: .92rem; }
.notes .text small { color: var(--ink-3); font-size: .76rem; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); margin-right: .5rem; }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell .count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
