/* Funding Roadmap styles. Colors, fonts and radii come only from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; font: 17px/1.55 var(--font-sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--text-strong); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.04em; }
h1 { font-size: 2rem; font-weight: 800; } h2 { font-size: 1.35rem; font-weight: 800; } h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
strong { color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus, h1:focus { outline: none; }
::selection { background: rgba(246, 185, 21, .3); color: var(--accent); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foil { background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preview-banner { background: var(--color-footer); color: var(--text-muted); font-size: .78rem; padding: 6px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.preview-banner b { color: var(--accent); font-weight: 700; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; }
.brand img { display: block; width: 144px; height: auto; }
.site-header nav { display: flex; gap: 18px; font-size: .92rem; font-weight: 500; }
.site-header nav a { color: var(--text); text-decoration: none; padding: 10px 0; }
.site-header nav a:hover { color: var(--accent); }
main { display: block; padding: 24px 16px 72px; }
.hero, .flow, .narrow { max-width: var(--maxw); margin: 0 auto; }
.hero h1 { font-size: 2.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--text-muted); margin-bottom: .5em; font-weight: 700; }
.hint { color: var(--text-muted); font-size: .9rem; }
.error { color: var(--danger-text); font-weight: 600; }
.error:not(:empty)::before { content: "\26A0  "; }
.error:empty { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; margin-bottom: 16px; }

/* buttons: same gold satin pill as the site's primary action */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: var(--radius-pill); border: 0; background-color: var(--accent); background-image: var(--gold-satin); color: var(--accent-fg); box-shadow: var(--gold-inset), var(--gold-glow); font: inherit; font-weight: 700; letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: scale(1.03); } .btn:active { transform: scale(.97); }
.btn.secondary { background: var(--surface-soft); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.secondary:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn.quiet { background: none; box-shadow: none; color: var(--text); text-decoration: underline; text-underline-offset: 3px; padding-inline: 10px; font-weight: 500; }
.btn.small { min-height: 40px; padding: 6px 16px; font-size: .9rem; }
.btn.danger { background: none; color: var(--danger-text); box-shadow: inset 0 0 0 1px var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--radius-pill); }

/* form fields */
label { display: block; font-weight: 700; margin: 16px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text-strong); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-input); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); border-radius: var(--radius-input); }
select option { background: var(--surface); color: var(--text-strong); }
textarea { min-height: 96px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.optional { font-weight: 500; text-transform: none; letter-spacing: 0; }

/* questionnaire */
.progress { margin-bottom: 24px; }
.progress-label { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.progress-track { height: 8px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold-satin); background-color: var(--accent); border-radius: var(--radius-pill); transition: width .25s; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.q-label { text-transform: none; letter-spacing: -.04em; font-size: inherit; color: var(--text-strong); margin: 0; }
h1 .q-label { font-weight: 800; }
.choices { display: grid; gap: 10px; margin: 18px 0; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; margin: 0; font-size: 1rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-strong); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 1rem; cursor: pointer; }
.choice input { width: 22px; height: 22px; flex: none; margin: 0; }
.choice:hover { border-color: var(--accent-line); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:checked)::after { content: "Selected"; margin-left: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.money { position: relative; }
.money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
.money input { padding-left: 32px; font-size: 1.25rem; font-weight: 600; min-height: 56px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.actions .btn:first-child { flex: 1 1 200px; }
.consent { margin-top: 22px; padding: 16px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 1rem; }
.consent label { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 1rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-strong); }
.consent input { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.consent .hint { margin: 10px 0 0; }

/* roadmap results */
.next { background-color: var(--accent); background-image: var(--gold-satin); color: var(--accent-fg); border: 0; box-shadow: var(--gold-inset), 0 0 40px rgba(246, 185, 21, .25); padding: 24px; }
.next .eyebrow { color: #3d2a00; display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.next h2 { color: var(--accent-fg); font-size: 1.5rem; font-weight: 800; margin: 0; line-height: 1.2; letter-spacing: -.03em; }
.next p { margin: 10px 0 0; color: #2b1d00; font-weight: 500; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 12px 14px; }
.fact dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; }
.fact dd { margin: 4px 0 0; font-weight: 700; color: var(--text-strong); }
.fact small { display: block; font-weight: 400; color: var(--text-muted); }
dl { margin: 0; }
.estimate .amount { font-size: 2.4rem; font-weight: 900; letter-spacing: -.05em; margin: 0 0 .2em; width: fit-content; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-sans); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); vertical-align: middle; white-space: nowrap; }
.tag.ok { background: rgba(5, 223, 114, .10); color: var(--ok); border-color: rgba(5, 223, 114, .40); }
.tag.bad { background: rgba(255, 101, 104, .10); color: var(--danger-text); border-color: rgba(255, 101, 104, .50); }
.tag.plain { background: var(--surface-soft); color: var(--color-stone-300); border-color: var(--line-strong); }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.timeline { list-style: none; margin: 0 0 16px; padding: 0; position: relative; }
.timeline > li { position: relative; padding-left: 52px; padding-bottom: 12px; }
.timeline > li::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline > li:first-child::before { top: 20px; } .timeline > li:last-child::before { bottom: auto; height: 20px; }
.timeline > li.is-done::before { background: var(--accent); }
.timeline .node { position: absolute; left: 0; top: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; z-index: 1; background: var(--bg); color: var(--color-stone-300); border: 2px solid var(--line-strong); }
.timeline .is-current .node { background-color: var(--accent); background-image: var(--gold-satin); color: var(--accent-fg); border-color: transparent; box-shadow: var(--gold-glow); }
.timeline .is-done .node { background: var(--bg); color: var(--accent); border-color: var(--accent); }
.timeline .is-done .node .icon { width: 18px; height: 18px; stroke-width: 3; }
.timeline details { background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem; }
.timeline .is-current details { border-color: var(--accent-line); }
.timeline summary { cursor: pointer; padding: 12px 16px; min-height: 58px; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; border-radius: 1.1rem; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); flex: none; }
.timeline details[open] summary::after { content: "\2212"; }
.timeline .m-title { font-weight: 700; display: block; color: var(--text-strong); letter-spacing: -.01em; }
.timeline .is-done .m-title { color: var(--color-stone-300); }
.timeline .m-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 4px; font-size: .82rem; color: var(--text-muted); }
.timeline .m-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.who .badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .9rem; }
.who.you { color: var(--accent); } .who.you .badge { background-color: var(--accent); background-image: var(--gold-satin); color: var(--accent-fg); }
.who.team { color: var(--text-strong); } .who.team .badge { background: var(--surface-soft); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.who.gate { color: var(--text-muted); } .who.gate .badge { background: none; color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.timeline .m-body ul { margin: 0; padding-left: 32px; }
.timeline .m-body li { margin-bottom: 2px; }
.timeline .m-body p { margin: 0; padding-left: 32px; }
.timeline .m-body .btn { margin-top: 16px; }

.offer { position: relative; margin-top: 28px; padding: 24px 22px; border: 1px solid transparent; border-radius: var(--radius-card);
  background: linear-gradient(var(--color-black), var(--color-black)) padding-box, var(--gold-foil) border-box; box-shadow: 0 0 44px rgba(246, 185, 21, .14); }
.offer .ribbon { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 5px 12px; border-radius: var(--radius-pill); background-color: var(--accent); background-image: var(--gold-satin); color: var(--accent-fg); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.offer h2 { font-size: 1.5rem; }
.offer ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.offer li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-soft); margin-bottom: 8px; }
.offer li strong { display: block; color: var(--accent); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 30px 0 22px; }
.notice { padding: 10px 14px; border-radius: 1rem; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text-strong); margin-top: 10px; font-size: .95rem; }
.notice:empty { display: none; }

/* staff */
.staff { max-width: 1180px; margin: 0 auto; }
.staff h1 { font-size: 1.7rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; align-items: center; }
.tabs a, .tabs button { padding: 10px 12px; text-decoration: none; color: var(--text-muted); border: 0; background: none; font: inherit; font-size: .92rem; font-weight: 600; border-bottom: 3px solid transparent; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--text-strong); }
.tabs a[aria-current=page] { border-bottom-color: var(--accent); color: var(--accent); }
.tabs .spacer { flex: 1; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.filters label { margin: 0 0 4px; font-size: .68rem; }
.filters input, .filters select { min-height: 42px; padding: 6px 10px; font-size: .95rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); white-space: nowrap; background: var(--color-footer); position: sticky; top: 0; }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
tbody tr:hover td { background: var(--accent-soft); }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 700; }
td .tag { margin: 0 4px 4px 0; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.kv { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 6px 12px; font-size: .95rem; }
.kv dt { color: var(--text-muted); } .kv dd { margin: 0; overflow-wrap: anywhere; color: var(--text-strong); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.remark { border-top: 1px solid var(--line); padding: 12px 0; }
.remark small, .log small { color: var(--text-muted); }
.log { font-size: .88rem; margin: 0; padding-left: 18px; }
.qr { width: 220px; max-width: 100%; height: auto; border-radius: 12px; background: #fff; padding: 6px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; overflow-wrap: anywhere; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; min-height: 420px; white-space: pre; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text); margin: 8px 0; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 3px; }

/* live presentation (shared screen): pure black, large type, logo */
body:has(.present) { background: var(--color-black); }
.present { min-height: 82vh; display: grid; place-items: center; padding: 3vw 5vw; }
.present-inner { max-width: 1100px; width: 100%; }
.present .p-logo { display: block; width: clamp(150px, 16vw, 230px); height: auto; margin-bottom: 4vh; }
.present .eyebrow { font-size: clamp(.8rem, 1.2vw, 1.05rem); color: var(--color-stone-300); }
.present .name { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; letter-spacing: -.05em; margin: 0; color: var(--color-white); }
.present .goal { font-size: clamp(1.5rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; margin: .1em 0 1em; width: fit-content; }
.present ol { list-style: none; counter-reset: h; padding: 0; margin: 0; font-size: clamp(1.2rem, 2.5vw, 1.9rem); font-weight: 500; color: var(--color-white); line-height: 1.3; }
.present ol li { counter-increment: h; position: relative; padding: .5em 0 .5em 2.2em; border-top: 1px solid rgba(255, 255, 255, .16); }
.present ol li::before { content: counter(h); position: absolute; left: 0; top: .42em; width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; font-size: .8em; font-weight: 800; background-color: var(--accent); background-image: var(--gold-satin); color: var(--accent-fg); }
.present .blocked { text-align: center; font-size: 1.3rem; }
.present .blocked .p-logo { margin-inline: auto; }

@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } h1 { font-size: 1.75rem; } .hero h1 { font-size: 2.1rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:hover, .btn:active { transform: none; } }
@media (forced-colors: active) { .btn, .choice, .tag, .timeline .node { border: 1px solid ButtonText; } .foil { color: CanvasText; background: none; } }

/* multi-field screens, paths */
[hidden] { display: none !important; }
.field + .field { margin-top: 26px; }
h2.q, label.q-field { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; text-transform: none; color: var(--text-strong); margin: 0 0 4px; line-height: 1.25; }
.eyebrow.group { margin: 0 0 10px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--accent); }
.multi-note { margin: 2px 0 0; }
.choice input[type=checkbox] { border-radius: 4px; }
.money input:disabled { opacity: .45; }
.path h2 { font-size: 1.7rem; width: fit-content; margin-bottom: 0; }
.path ul, .compare ul { margin: 0; padding-left: 32px; }
.path .hint, .compare .m-body p { padding-left: 32px; margin: 0; }
details.compare { padding: 0; }
details.compare summary { cursor: pointer; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-radius: var(--radius-card); }
details.compare summary::-webkit-details-marker { display: none; }
details.compare summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); }
details.compare[open] summary::after { content: "\2212"; }
details.compare .m-title { font-weight: 700; color: var(--text-strong); }
details.compare .m-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.private-note { border-left: 3px solid var(--accent); padding-left: 12px; }

/* three tracks */
.screen-help { margin-bottom: 18px; }
.section-h { margin-top: 28px; }
h3.sub { margin: 20px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; }
.by-track:first-of-type h3.sub { margin-top: 6px; }
.ticks, .gaps, .acct-list { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.ticks .icon { color: var(--ok); margin-top: .3em; stroke-width: 3; }
.gaps li { padding: 10px 0 10px 14px; border-left: 3px solid var(--accent); margin-bottom: 8px; }
.gaps strong { display: block; } .gaps span { color: var(--text-muted); font-size: .92rem; }
.track > h2 { font-size: 1.6rem; width: fit-content; }
.track .indent, .track .owner-note { padding-left: 32px; margin: 0; }
.corp-goal { margin: 14px 0; padding: 14px 16px; border-radius: 1rem; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.corp-goal .eyebrow { color: var(--accent); display: flex; align-items: center; gap: 4px; margin: 0 0 4px; }
.corp-goal h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; } .corp-goal p:last-child { margin: 0; font-size: .95rem; }
.product { padding: 14px; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-soft); margin-bottom: 10px; }
.product p { margin: 0 0 8px; } .product ul { margin: 0; padding-left: 20px; }
.p-name { font-weight: 800; color: var(--text-strong); font-size: 1.05rem; }
.p-tags .tag { margin-bottom: 4px; white-space: normal; }
.track .estimate .amount { margin-bottom: 0; }
.m-meta .owner { display: inline-flex; align-items: center; gap: 4px; color: var(--color-stone-300); }
.accounts { margin-top: 18px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 1rem; }
.accounts h3 { margin: 0 0 8px; }
.acct-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-strong); }
.acct-form .row { flex-wrap: nowrap; } .acct-form input { min-width: 0; }
.checkin { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; } .checkin .icon { color: var(--accent); }
.by-track ul { margin: 0 0 8px; padding-left: 22px; }
.plan-table select, .plan-table input { min-height: 38px; padding: 4px 8px; font-size: .88rem; min-width: 130px; }
.plan-table td { vertical-align: middle; }

/* disclosures, funding goal, foundation question */
.disclosure { font-size: .95rem; line-height: 1.5; color: var(--color-stone-300); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 1rem; padding: 12px 14px; margin: 0 0 18px; }
.disclosure.full { margin-top: 8px; } .disclosure.full p:last-child { margin: 0; } .disclosure .eyebrow { color: var(--accent); margin: 0 0 4px; }
.disclosure.in-offer { margin: 16px 0 0; font-size: .88rem; }
.goal-fact { grid-column: 1 / -1; } .goal-amount { font-size: 2rem; font-weight: 900; letter-spacing: -.04em; display: block; width: fit-content; line-height: 1.1; }
.goal-fact small { margin-top: 4px; font-size: .9rem; } .goal-line { margin: 6px 0 0; }
.foundation-q legend h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.03em; }
.first-task { margin: 0 0 16px; } .first-task h2 { margin-bottom: 14px; }
.btn.dark { background: var(--color-black); color: var(--color-white); box-shadow: none; }
.next-action { margin-top: 20px; }
.email-preview summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.email-preview pre, pre.mail { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .88rem; color: var(--color-stone-300); background: var(--color-black); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 6px 0 0; }

/* live dashboard */
.admin { max-width: 1320px; margin: 0 auto; }
.admin-head, .admin-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.admin-head h1 { margin: 0; font-size: 1.7rem; }
.admin-controls label { margin: 0 0 4px; } .admin-controls select { min-height: 42px; min-width: 260px; }
.admin button[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.admin button[aria-pressed=true]::before { content: "\2713"; }
.conn { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--text-muted); }
.conn.on { color: var(--ok); border-color: rgba(5, 223, 114, .4); } .conn.off { color: var(--danger-text); border-color: rgba(255, 101, 104, .5); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 12px 14px; display: flex; flex-direction: column; }
.stat-n { font-size: 1.9rem; font-weight: 900; letter-spacing: -.04em; color: var(--text-strong); line-height: 1.1; }
.stat-l { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--text-muted); }
.stat.hot .stat-n { color: var(--accent); }
.catchup { width: 100%; margin-bottom: 12px; }
.admin-body { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.admin.has-panel .admin-body { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.feed td { vertical-align: middle; } .feed td .btn { margin-top: 6px; }
.feed tr.row-ready td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.feed tr.row-priority td:first-child { box-shadow: inset 6px 0 0 var(--accent); }
.feed tr.row-priority td { background: var(--accent-soft); }
.feed tr.is-open td { background: rgba(255, 255, 255, .07); }
.feed tr.is-new td { animation: rowflash 1.6s ease-out 2; }
@keyframes rowflash { from { background: rgba(246, 185, 21, .35); } to { background: transparent; } }
.rd { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--color-stone-300); background: var(--surface-soft); white-space: nowrap; }
.rd-ready { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.rd-priority { color: var(--accent-fg); background-color: var(--accent); background-image: var(--gold-satin); border-color: transparent; box-shadow: var(--gold-inset), var(--gold-glow); }
.rd-foundation { color: var(--color-stone-300); border-style: dashed; }
.rd-verify { color: var(--text-strong); border-color: var(--text-strong); }
.feed tr.is-new .rd-priority { animation: pulse 1.2s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: var(--gold-inset), 0 0 28px rgba(246, 185, 21, .7); } }
.detail { background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--radius-card); padding: 18px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.detail-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .detail-head h2 { margin: 0 0 8px; }
.d-sec { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.d-sec h3 { font-size: 1rem; margin: 0 0 8px; } .d-sec h4 { margin: 10px 0 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.d-sec ul { margin: 0 0 8px; padding-left: 20px; } .d-sec .row { align-items: flex-end; margin-bottom: 8px; }
.d-sec select, .d-sec input[type=text], .d-sec input[type=date] { min-height: 40px; padding: 6px 10px; font-size: .9rem; width: auto; min-width: 150px; } .d-sec .ov input { flex: 1; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 20; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: grid; gap: 6px; padding: 14px 16px; border-radius: 1rem; background: var(--color-black); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); animation: toastin .25s ease-out; }
.toast strong { color: var(--text-strong); } .toast span { color: var(--color-stone-300); font-size: .92rem; }
.toast-ready { border-color: var(--accent); } .toast-priority { border: 2px solid var(--accent); box-shadow: var(--gold-glow), 0 10px 30px rgba(0, 0, 0, .6); }
@keyframes toastin { from { transform: translateY(12px); opacity: 0; } }
.reduce-motion * { animation: none !important; transition: none !important; }
.reduce-motion .feed tr.is-new td:first-child { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .feed tr.is-new td, .feed tr.is-new .rd-priority, .toast { animation: none; } .feed tr.is-new td:first-child { outline: 2px solid var(--accent); outline-offset: -2px; } }
@media (max-width: 900px) { .admin.has-panel .admin-body { grid-template-columns: 1fr; } .detail { position: fixed; inset: 0; z-index: 15; border-radius: 0; max-height: none; } }
/* public counter and presentation disclosure */
.counter { min-height: 90vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.counter .p-logo { width: clamp(160px, 20vw, 260px); height: auto; margin-bottom: 3vh; }
.counter .count { font-size: clamp(5rem, 22vw, 14rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; margin: 0; }
.counter .count-label { font-size: clamp(1.4rem, 4vw, 3rem); font-weight: 800; color: var(--color-white); margin: 0; letter-spacing: -.03em; }
body:has(.counter) { background: var(--color-black); }
.present .p-disclosure { margin-top: 5vh; font-size: clamp(.75rem, 1.05vw, .95rem); line-height: 1.45; color: var(--color-stone-300); max-width: 900px; }
.admin.has-panel .toasts { right: auto; left: 16px; }
/* keep the disclaimer on screen during a share, whatever the number of highlights */
.present { padding-bottom: 120px; place-items: start center; min-height: 0; }
.present .p-logo { margin-bottom: 2vh; width: clamp(130px, 13vw, 200px); }
.present .name { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.present .goal { font-size: clamp(1.3rem, 3vw, 2.2rem); margin-bottom: .6em; }
.present ol { font-size: clamp(1.05rem, 2.1vw, 1.55rem); }
.present .p-disclosure { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; padding: 10px 5vw 12px; background: var(--color-black); border-top: 1px solid rgba(255, 255, 255, .16); font-size: clamp(.72rem, .95vw, .88rem); }

.gaps.unknowns li { border-left-style: dashed; border-left-color: var(--color-stone-400); }
.verify-h { display: flex; align-items: center; gap: 6px; }
