/* ══════════════════════════════════════════════════════════════════════
   YEGO Portal — design tokens and components
   Palette and rules carried over from the review site:
     · Deep green is the authority colour — headlines and dark surfaces.
     · Gold is prestige only — hairlines, seals, one accent per screen.
     · Gold is never text on a light surface; it is legible on deep green.
     · One serif, used rarely, never in the body.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --g950: #041d15; --g900: #06281e; --g800: #07382a; --g700: #0a4a37; --g600: #0f5f47;
  --g500: #14785b; --g400: #2f9a78; --g300: #7fb3a0; --g200: #b9cfc4; --g100: #d8e5dd; --g50: #eaf1ed;
  --gold800: #8a5b00; --gold700: #a87200; --gold600: #cf8f00; --gold500: #f2a900; --gold400: #fbbb20; --gold300: #ffd166; --gold100: #fdf0d2;
  --danger: #b42318; --danger-soft: #fee4e2; --danger-strong: #7a271a;
  --ink: #14221d; --ink-soft: #46554e; --ink-faint: #5c6b64;
  --paper: #ffffff; --warm: #f7f6f2;
  --wa: #075e54; --wa-hover: #0b7268;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 0.5rem;
  --shadow: 0 1px 2px rgba(6, 40, 30, .06), 0 8px 24px rgba(6, 40, 30, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--gold300); color: var(--g900); }
:focus-visible { outline: 2px solid var(--g600); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold500); color: var(--ink); padding: .5rem 1rem; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.shell { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.shell-narrow { width: 100%; max-width: 48rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .shell, .shell-narrow { padding-inline: 1.25rem; } }
@media (min-width: 768px) { .shell, .shell-narrow { padding-inline: 2rem; } }
@media (min-width: 1280px) { .shell { padding-inline: 2.5rem; } }

.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section.tight { padding-block: 3rem; }
.tone-paper { background: var(--paper); }
.tone-warm { background: var(--warm); }
.tone-mint { background: var(--g50); }
.tone-dark { background: var(--g900); color: #fff; }
.tone-deep { background: var(--g800); color: #fff; }
.grain { background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); background-size: 22px 22px; }
.bordered-y { border-block: 1px solid var(--g100); }

.grid { display: grid; gap: 1.25rem; }
.gap-lg { gap: 2.5rem; }
.gap-sm { gap: .75rem; }
@media (min-width: 640px) { .sm-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 768px) { .md-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .md-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) {
  .lg-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .lg-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .lg-7 { grid-template-columns: repeat(7, minmax(0,1fr)); }
  .lg-split { grid-template-columns: 1.3fr 1fr; } .lg-split-r { grid-template-columns: 1fr 1.3fr; }
  .lg-hero { grid-template-columns: 1fr 1.5fr; } .lg-auto-1 { grid-template-columns: auto 1fr; }
  .lg-sidebar { grid-template-columns: 15rem minmax(0,1fr); }
  .items-center { align-items: center; } .items-start { align-items: start; }
  .lg-sticky { position: sticky; top: 7rem; }
}
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mx-auto { margin-inline: auto; } .text-center { text-align: center; } .max-2xl { max-width: 42rem; } .max-3xl { max-width: 48rem; } .max-4xl { max-width: 56rem; }
.hidden { display: none !important; }

/* ── Type ───────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; font-size: .6875rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--g700);
}
.eyebrow::before { content: ""; flex: none; width: 1.75rem; height: 2px; background: var(--gold500); }
.on-dark .eyebrow, .tone-dark .eyebrow, .tone-deep .eyebrow { color: var(--gold400); }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
.h-display { font-size: 2.25rem; line-height: 1.08; }
@media (min-width: 768px) { .h-display { font-size: 3rem; } }
.h-section { color: var(--g700); font-size: 1.875rem; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 768px) { .h-section { font-size: 2.25rem; } }
@media (min-width: 1024px) { .h-section { font-size: 2.75rem; line-height: 1.1; } }
.tone-dark .h-section, .tone-deep .h-section { color: #fff; }
.h-page { color: var(--g700); font-size: 2.25rem; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 768px) { .h-page { font-size: 3rem; } }
.h-sm { font-size: 1.875rem; } @media (min-width: 768px) { .h-sm { font-size: 2.25rem; } }
.h-card { color: var(--g700); font-weight: 700; letter-spacing: -.015em; font-size: 1.0625rem; line-height: 1.35; }
.lead { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; max-width: 42rem; }
.tone-dark .lead, .tone-deep .lead { color: var(--g100); }
.body { color: var(--ink-soft); font-size: .9375rem; line-height: 1.7; }
.small { color: var(--ink-soft); font-size: .8125rem; line-height: 1.6; }
.tiny { color: var(--ink-faint); font-size: .75rem; line-height: 1.55; }
.tone-dark .body, .tone-deep .body { color: var(--g100); }
.tone-dark .tiny, .tone-deep .tiny { color: var(--g300); }
.text-gold { color: var(--gold400); } .text-green { color: var(--g700); } .text-white { color: #fff; } .text-danger { color: var(--danger-strong); }
.num-label { font-variant-numeric: tabular-nums; color: var(--gold600); font-size: .8125rem; font-weight: 800; }
.tone-dark .num-label, .tone-deep .num-label { color: var(--gold400); }
.link { color: var(--g700); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--g200); }
.link:hover { text-decoration-color: var(--gold500); }
.tone-dark .link, .tone-deep .link { color: var(--gold400); text-decoration-color: rgba(251,187,32,.4); }
.section-head { display: flex; flex-direction: column; gap: 1rem; }
.section-head.center { align-items: center; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.label-caps { font-size: .6875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }
.tone-dark .label-caps, .tone-deep .label-caps { color: var(--gold400); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .375rem;
  padding: .75rem 1.25rem; font: 600 .875rem/1.2 var(--sans); letter-spacing: -.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--g700); color: #fff; } .btn-primary:hover { background: var(--g600); }
.btn-secondary { background: var(--paper); color: var(--g700); border-color: var(--g200); } .btn-secondary:hover { border-color: var(--g700); background: var(--g50); }
.btn-gold { background: var(--gold500); color: var(--ink); } .btn-gold:hover { background: var(--gold400); }
.btn-quiet { background: transparent; color: var(--g700); } .btn-quiet:hover { background: var(--g50); }
.btn-ondark { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); } .btn-ondark:hover { border-color: var(--gold400); color: var(--gold400); }
.btn-danger { background: var(--paper); color: var(--danger); border-color: rgba(180,35,24,.3); } .btn-danger:hover { background: var(--danger-soft); }
.btn-wa { background: var(--wa); color: #fff; } .btn-wa:hover { background: var(--wa-hover); }
.btn-sm { padding: .5rem .875rem; font-size: .8125rem; }
.btn-lg { padding: .875rem 1.5rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ── Surfaces ───────────────────────────────────────────────────────── */
.card { position: relative; border: 1px solid var(--g100); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); }
.card-mint { background: var(--g50); } .card-warm { background: var(--warm); }
.card-dark { background: var(--g800); border-color: var(--g700); color: #fff; }
.card-accent { border-left: 2px solid var(--gold500); }
.card-danger { border-left: 2px solid var(--danger); }
.card-link { text-decoration: none; transition: border-color .15s; display: flex; flex-direction: column; }
.card-link:hover { border-color: var(--g300); }
.card-lg { padding: 1.75rem; } @media (min-width: 768px) { .card-lg { padding: 2.5rem; } }
.card-flat { padding: 0; overflow: hidden; }
.goal-panel { border: 1px solid var(--g100); border-top: 2px solid var(--gold500); border-radius: .75rem; background: var(--g50); padding: 2.5rem 1.75rem; }
@media (min-width: 768px) { .goal-panel { padding: 3.5rem 3rem; } }
.rule-left { border-left: 2px solid var(--gold500); padding-left: 1rem; }
.rule-top { border-top: 2px solid var(--g100); padding-top: 1rem; }
.tone-dark .rule-top, .tone-deep .rule-top { border-top-color: var(--g700); }

/* Stats */
.stat-value { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.025em; color: var(--g700); font-size: 1.875rem; line-height: 1.1; }
@media (min-width: 768px) { .stat-value { font-size: 2.25rem; } }
.stat-value.xl { font-size: 3rem; color: var(--gold400); } @media (min-width: 768px) { .stat-value.xl { font-size: 3.75rem; } }
.stat-label { margin-top: .5rem; font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.stat-sub { margin-top: .25rem; font-size: .75rem; color: var(--ink-faint); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: .375rem; border: 1px solid; border-radius: .25rem; padding: .125rem .5rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.pill-green { background: var(--g50); color: var(--g700); border-color: var(--g200); }
.pill-gold { background: var(--gold100); color: var(--gold800); border-color: var(--gold300); }
.pill-neutral { background: var(--warm); color: var(--ink-soft); border-color: var(--g100); }
.pill-red { background: var(--danger-soft); color: var(--danger); border-color: rgba(180,35,24,.2); }
.pill-critical { background: var(--danger-strong); color: #fff; border-color: var(--danger-strong); }
.pill-outline { background: transparent; color: var(--ink-soft); border-color: var(--g200); }
.pill-live { border-color: rgba(242,169,0,.5); background: rgba(242,169,0,.1); color: var(--gold400); border-radius: 999px; padding: .375rem .875rem; letter-spacing: .16em; font-weight: 700; }
.pill-live .dot { width: .375rem; height: .375rem; border-radius: 50%; background: var(--gold400); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Callouts */
.callout { border-radius: 0 .375rem .375rem 0; padding: 1rem 1.25rem; font-size: .875rem; line-height: 1.6; }
.callout strong.t { display: block; margin-bottom: .25rem; font-weight: 700; letter-spacing: -.01em; }
.callout-mint { background: var(--g50); border-left: 2px solid var(--g600); color: var(--ink-soft); }
.callout-gold { background: var(--gold100); border-left: 2px solid var(--gold500); color: var(--ink); }
.callout-dark { background: var(--g900); border-left: 2px solid var(--gold500); color: #fff; }
.callout-danger { background: var(--danger-soft); border-left: 2px solid var(--danger); color: var(--danger-strong); }
.demo-banner { display: flex; gap: .625rem; align-items: flex-start; background: var(--gold100); border: 1px solid var(--gold300); border-radius: .375rem; padding: .625rem .875rem; font-size: .8125rem; line-height: 1.4; }
.demo-banner .bang { flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--gold500); display: grid; place-items: center; font-size: .625rem; font-weight: 800; margin-top: 1px; }

/* Numbered list (brief idiom) */
.numlist { list-style: none; border: 1px solid var(--g100); border-radius: var(--radius); overflow: hidden; }
.numlist li { display: flex; gap: 1.25rem; padding: 1rem 1.25rem; background: var(--paper); }
.numlist li + li { border-top: 1px solid var(--g100); }
.numlist li .n { width: 1.5rem; flex: none; font-size: 1.125rem; font-weight: 800; color: var(--gold600); font-variant-numeric: tabular-nums; }
.numlist li .t { display: block; font-weight: 600; }
.numlist li .b { display: block; margin-top: .125rem; font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }
.numlist li.hl { background: var(--g900); color: #fff; } .numlist li.hl .n { color: var(--gold400); } .numlist li.hl .b { color: var(--g100); }

.steps { list-style: none; display: grid; gap: 1.5rem 1rem; }
.steps li { border-top: 2px solid var(--g100); padding-top: 1rem; }
.steps li p { margin-top: .375rem; color: var(--g700); font-size: .90625rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.tone-deep .steps li, .tone-dark .steps li { border-top-color: var(--g700); }
.tone-deep .steps li p, .tone-dark .steps li p { color: #fff; }

.chain { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.chain li { border-radius: .375rem; padding: .875rem 1.25rem; background: var(--g800); color: #fff; font-weight: 600; font-size: .875rem; display: flex; gap: .75rem; align-items: baseline; }
.chain li .num-label { color: var(--gold400); font-size: .6875rem; }
.chain li.last { background: var(--gold500); color: var(--ink); } .chain li.last .num-label { color: rgba(20,34,29,.6); }
@media (min-width: 768px) { .chain.ladder li:nth-child(2) { margin-left: 7%; } .chain.ladder li:nth-child(3) { margin-left: 14%; } .chain.ladder li:nth-child(4) { margin-left: 21%; } .chain.ladder li:nth-child(5) { margin-left: 28%; } .chain.ladder li:nth-child(6) { margin-left: 35%; } }

.model { display: flex; flex-direction: column; }
.model .step { border-radius: var(--radius); padding: 1.25rem 1.5rem; background: var(--g800); color: #fff; flex: 1; }
.model .step .t { font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; }
.model .step .b { margin-top: .25rem; font-size: .875rem; color: var(--g200); }
.model .step.terminal { background: var(--gold500); color: var(--ink); } .model .step.terminal .b { color: rgba(20,34,29,.8); }
.model .arrow { display: flex; justify-content: center; padding: .5rem; color: var(--g400); }
@media (min-width: 768px) { .model.horizontal { flex-direction: row; align-items: stretch; } .model.horizontal .arrow { align-items: center; padding: 0 .5rem; } .model.horizontal .arrow svg { transform: rotate(-90deg); } }

/* Key / value */
.kv { display: grid; } .kv > div { display: grid; grid-template-columns: minmax(0, 9rem) 1fr; gap: 1rem; padding: .625rem 0; font-size: .8125rem; }
.kv > div + div { border-top: 1px solid var(--g100); }
.kv dt { color: var(--ink-faint); } .kv dd { margin: 0; font-weight: 500; overflow-wrap: break-word; min-width: 0; }
.kv > div { grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr); }

/* Tables */
.table-wrap { border: 1px solid var(--g100); border-radius: var(--radius); overflow-x: auto; background: var(--paper); }
table.t { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
table.t th { background: var(--warm); color: var(--ink-soft); border-bottom: 1px solid var(--g100); padding: .75rem 1rem; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
table.t td { border-bottom: 1px solid var(--g100); padding: .75rem 1rem; vertical-align: top; }
table.t tbody tr:hover { background: rgba(234,241,237,.6); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t a.rowlink { color: var(--g700); font-weight: 600; text-decoration: none; } table.t a.rowlink:hover { text-decoration: underline; }
@media (max-width: 767px) { .hide-sm { display: none; } }

/* Long-form documents */
.doc { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.75; }
.doc h2 { color: var(--g700); font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; margin: 2.75rem 0 .85rem; scroll-margin-top: 6rem; }
.doc section:first-of-type h2 { margin-top: 0; }
.doc h3 { color: var(--ink); font-size: 1.0625rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.doc p { margin-bottom: 1.05rem; }
.doc ul, .doc ol { margin: 0 0 1.05rem; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .5rem; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc a { color: var(--g700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--g200); }
.doc a:hover { text-decoration-color: var(--gold500); }
.doc .callout { margin: 1.25rem 0; font-size: .9375rem; }
.doc blockquote { margin: 1.25rem 0; padding: .75rem 1.125rem; border-left: 3px solid var(--gold500); background: var(--warm); color: var(--ink); font-family: var(--serif); }
.doc > h2:first-child { margin-top: 0; }
.lang-switch { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.lang-switch a { color: inherit; opacity: .8; text-decoration: none; font-size: .75rem; font-weight: 600; }
.lang-switch a:hover, .lang-switch a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold400); }
.cms-cover { width: 100%; max-height: 26rem; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.toc { border: 1px solid var(--g100); border-radius: var(--radius); padding: 1.25rem; background: var(--warm); }
.toc ul { list-style: none; margin-top: .75rem; display: flex; flex-direction: column; gap: .375rem; }
.toc a { color: var(--ink-soft); font-size: .875rem; text-decoration: none; } .toc a:hover { color: var(--g700); }

/* FAQ accordion */
details.faq { border: 1px solid var(--g100); border-radius: var(--radius); background: var(--paper); }
details.faq + details.faq { margin-top: .75rem; }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; color: var(--g700); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { flex: none; transition: transform .2s; margin-top: .2rem; }
details.faq[open] summary .chev { transform: rotate(180deg); }
details.faq .a { padding: 0 1.25rem 1.25rem; font-size: .9375rem; }

/* ── Forms ──────────────────────────────────────────────────────────── */
.field {
  width: 100%; border: 1px solid var(--g200); border-radius: .375rem; background: var(--paper); padding: .625rem .75rem;
  font: inherit; font-size: .9375rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--ink-faint); }
.field:focus { outline: none; border-color: var(--g600); box-shadow: 0 0 0 3px var(--g50); }
.field.invalid { border-color: var(--danger); }
textarea.field { resize: vertical; min-height: 8rem; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2346554e' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
.label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.err { color: var(--danger); font-size: .78rem; margin-top: .375rem; }
.hint { color: var(--ink-faint); font-size: .78rem; margin-top: .375rem; }
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-grid { display: grid; gap: 1.25rem; } @media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.check { display: flex; gap: .625rem; align-items: flex-start; font-size: .875rem; color: var(--ink-soft); }
.check input { margin-top: .2rem; width: 1rem; height: 1rem; accent-color: var(--g700); flex: none; }
.form-foot { border-top: 1px solid var(--g100); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.code-input { font-variant-numeric: tabular-nums; letter-spacing: .4em; font-size: 1.5rem; text-align: center; font-weight: 700; }

/* Captcha panel */
.captcha-box { border: 1px solid var(--g100); border-radius: .5rem; background: var(--paper); padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.captcha-box .ch-head { display: flex; align-items: center; gap: .625rem; font-size: .8125rem; font-weight: 600; color: var(--g700); }
.captcha-box .ch-head svg { width: 1.125rem; height: 1.125rem; color: var(--g600); }
.captcha-box .cf-turnstile { min-height: 65px; }
.puzzle { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.puzzle .q { font: 700 1.25rem/1 var(--serif); color: var(--g700); background: var(--g50); border: 1px dashed var(--g300); border-radius: .375rem; padding: .625rem 1rem; letter-spacing: .08em; }
.puzzle input { max-width: 7rem; }

/* Photo capture */
.photo-box { aspect-ratio: 4 / 5; max-width: 15rem; width: 100%; border: 1px dashed var(--g300); border-radius: .5rem; background: var(--g50); display: grid; place-items: center; overflow: hidden; }
.photo-box video, .photo-box img { width: 100%; height: 100%; object-fit: cover; }
.passport { width: 7.5rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .375rem; border: 1px solid var(--g100); background: var(--g50); }

/* Progress tracker */
.tracker { list-style: none; display: grid; gap: .5rem; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tracker li { text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-faint); }
.tracker li::before { content: ""; display: block; height: .375rem; border-radius: 999px; background: var(--g100); margin-bottom: .5rem; }
.tracker li.done { color: var(--g700); } .tracker li.done::before { background: var(--g600); }
.tracker li.current { color: var(--ink); } .tracker li.current::before { background: var(--gold500); }
@media (max-width: 639px) { .tracker { grid-template-columns: 1fr; } .tracker li { text-align: left; display: flex; gap: .625rem; align-items: center; } .tracker li::before { width: 1.5rem; margin: 0; flex: none; } }
.bar { height: .5rem; border-radius: 999px; background: var(--g100); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--g600); border-radius: 999px; }

/* Quiz */
.quiz-q { border: 1px solid var(--g100); border-radius: var(--radius); padding: 1.25rem; background: var(--paper); margin: 0; }
.quiz-q legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: .75rem; }
.quiz-q label { display: flex; gap: .625rem; align-items: flex-start; padding: .5rem .625rem; border-radius: .375rem; cursor: pointer; font-size: .9375rem; }
.quiz-q label:hover { background: var(--g50); }
.quiz-q input { margin-top: .25rem; accent-color: var(--g700); }
.quiz-q.wrong { border-color: rgba(180,35,24,.35); background: #fffafa; }

/* Certificate */
.certificate { max-width: 52rem; margin: 0 auto; background: #fff; border: 1px solid var(--g200); outline: 6px solid var(--g50); border-radius: .5rem; padding: 2.5rem 2rem; text-align: center; position: relative; }
.certificate::before { content: ""; position: absolute; inset: .75rem; border: 1.5px solid var(--gold500); border-radius: .25rem; pointer-events: none; }
.certificate .seal { width: 6rem; height: 6rem; margin: 0 auto; }
.certificate .name { font-family: var(--serif); font-weight: 600; color: var(--g700); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 1rem; }
.certificate .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; margin-top: 1.75rem; font-size: .8125rem; color: var(--ink-soft); }
.certificate .meta strong { display: block; color: var(--ink); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.certificate .qr svg { width: 7rem; height: 7rem; }
@media print { .certificate { outline: 0; } .portal-tabs, .no-print { display: none !important; } }

/* Guard portal tabs */
.portal-tabs { background: var(--paper); border-bottom: 1px solid var(--g100); }
.portal-tabs .shell { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.portal-tabs .shell::-webkit-scrollbar { display: none; }
.portal-tabs a, .portal-tabs span { padding: .875rem .875rem; font-size: .875rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.portal-tabs a.active { color: var(--g700); border-bottom-color: var(--gold500); }
.portal-tabs span { color: var(--ink-faint); opacity: .7; }

/* Notices */
.notice { border-radius: .375rem; padding: .75rem 1rem; font-size: .875rem; display: flex; gap: .625rem; align-items: flex-start; }
.notice-success { background: var(--g50); border: 1px solid var(--g200); color: var(--g700); }
.notice-error { background: var(--danger-soft); border: 1px solid rgba(180,35,24,.25); color: var(--danger-strong); }
.notice-info { background: var(--gold100); border: 1px solid var(--gold300); color: var(--ink); }
.flash-wrap { padding-top: 1rem; }

/* ── Header / nav ───────────────────────────────────────────────────── */
.strip { background: var(--g900); color: var(--g100); }
.strip .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .5rem; font-size: .6875rem; letter-spacing: .02em; }
.strip strong { color: #fff; font-weight: 600; }
.strip .motto { color: var(--gold400); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--g100); }
.site-header .bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand img { width: 2.5rem; height: 2.5rem; } @media (min-width: 768px) { .brand img { width: 2.75rem; height: 2.75rem; } }
.brand .w { display: block; color: var(--g700); font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand .s { display: none; margin-top: .25rem; color: var(--ink-faint); font-size: .625rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; line-height: 1; }
@media (min-width: 640px) { .brand .s { display: block; } }
.nav { display: none; align-items: center; gap: .125rem; }
.nav a { border-radius: .375rem; padding: .5rem .625rem; font-size: .8125rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav a:hover, .nav a.active { color: var(--g700); background: var(--g50); }
.nav a.cta-guard { background: var(--g700); color: #fff; font-weight: 600; padding: .625rem .875rem; margin-left: .25rem; } .nav a.cta-guard:hover { background: var(--g600); }
.nav a.cta-donate { background: var(--gold500); color: var(--ink); font-weight: 600; padding: .625rem .875rem; margin-left: .25rem; } .nav a.cta-donate:hover { background: var(--gold400); }
.nav-toggle { border: 1px solid var(--g200); color: var(--g700); background: var(--paper); border-radius: .375rem; padding: .5rem; cursor: pointer; line-height: 0; }
.mobile-nav { border-top: 1px solid var(--g100); background: var(--paper); max-height: calc(100dvh - 8rem); overflow-y: auto; }
.mobile-nav nav { display: flex; flex-direction: column; padding-block: .75rem; }
.mobile-nav a { border-bottom: 1px solid var(--g100); padding: .75rem 0; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.mobile-nav a.active { color: var(--g700); }
.mobile-nav a.minor { border: 0; font-size: .8125rem; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1280px) { .nav { display: flex; } .nav-toggle, .mobile-nav { display: none !important; } }
.header-account { display: none; }
@media (min-width: 1280px) { .header-account { display: inline-flex; } }
/* The full menu needs more room than the 80rem page width: the header may use up to 90rem, and
   below 1440px it drops the brand tagline and tightens the links (Donate used to be cut off). */
.site-header .shell { max-width: 90rem; }
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .site-header .brand .s { display: none; }
  .nav { gap: 0; }
  .nav a { padding: .5rem; }
  .nav a.cta-guard, .nav a.cta-donate { padding: .5625rem .75rem; margin-left: .125rem; }
}

/* Page hero */
.page-hero { background: var(--warm); border-bottom: 1px solid var(--g100); }
.page-hero .shell { padding-block: 3rem; } @media (min-width: 768px) { .page-hero .shell { padding-block: 4rem; } }
.page-hero .inner { max-width: 48rem; } .page-hero h1 { margin-top: 1rem; } .page-hero .lead { margin-top: 1.25rem; } .page-hero .actions { margin-top: 1.75rem; }

/* Home hero + carousel */
.hero { background: var(--g900); color: #fff; }
.hero .shell { display: grid; gap: 2.5rem; padding-block: 3rem; } @media (min-width: 1024px) { .hero .shell { grid-template-columns: 1fr 1.5fr; align-items: center; gap: 3.5rem; padding-block: 4rem; } }
.hero h1 { margin-top: 1.5rem; color: #fff; }
.hero .lead { color: var(--g100); font-size: 1rem; margin-top: 1.25rem; }
.carousel { user-select: none; }
.carousel .frame { position: relative; overflow: hidden; border-radius: .75rem; background: var(--g950); box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); }
.carousel .slide { transition: opacity .7s ease-out; } .carousel .slide:not(.on) { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.carousel .slide img { width: 100%; height: auto; }
.carousel .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); color: #fff; padding: .625rem; cursor: pointer; line-height: 0; }
.carousel .nav-btn:hover { background: rgba(0,0,0,.45); } .carousel .prev { left: .75rem; } .carousel .next { right: .75rem; }
.carousel .dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); border-radius: 999px; padding: .5rem .75rem; }
.carousel .dots button { width: .5rem; height: .5rem; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: width .2s, background-color .2s; }
.carousel .dots button[aria-current="true"] { width: 1.5rem; background: var(--gold400); }
.carousel .cta { margin-top: 1.25rem; min-height: 2.75rem; }

/* Article list */
.article-card { border-top: 2px solid var(--g100); padding-top: 1.25rem; display: flex; flex-direction: column; }
.article-card h3 a { color: var(--g700); text-decoration: none; } .article-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Partners */
.partner { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--g100); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--paper); }
.partner .mono { width: 3rem; height: 3rem; flex: none; border-radius: 50%; background: var(--g50); border: 1px solid var(--g100); display: grid; place-items: center; color: var(--g700); font-weight: 800; font-size: .875rem; letter-spacing: .02em; }
.partner .logo { width: 8rem; flex: none; }
.partner h3 { font-size: .9375rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }

/* Footer */
.site-footer { background: var(--g900); color: var(--g100); }
.site-footer .shell { padding-block: 3.5rem; } @media (min-width: 768px) { .site-footer .shell { padding-block: 4rem; } }
.site-footer .cols { display: grid; gap: 3rem; } @media (min-width: 1024px) { .site-footer .cols { grid-template-columns: 1.4fr 2fr; } }
.site-footer .links { display: grid; gap: 2rem; } @media (min-width: 640px) { .site-footer .links { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 { color: var(--gold400); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .625rem; }
.site-footer a { color: var(--g100); font-size: .875rem; text-decoration: none; overflow-wrap: anywhere; } .site-footer a:hover { color: var(--gold400); }
.site-footer .contact { margin-top: 3rem; border-top: 1px solid var(--g700); padding-top: 2rem; display: grid; gap: 1.5rem; } @media (min-width: 768px) { .site-footer .contact { grid-template-columns: repeat(3, 1fr); } }
.site-footer .law { margin-top: 2.5rem; border-top: 1px solid var(--g700); padding-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; font-size: .6875rem; color: var(--g300); letter-spacing: .02em; }
@media (min-width: 768px) { .site-footer .law { flex-direction: row; justify-content: space-between; align-items: center; } }
.site-footer .demo { margin-top: 2.5rem; border-left: 2px solid rgba(242,169,0,.4); background: var(--g800); border-radius: .375rem; padding: .75rem 1rem; font-size: .78rem; line-height: 1.6; }

/* ── Auth pages ─────────────────────────────────────────────────────── */
.auth-wrap { background: var(--g50); padding: 3rem 0 4rem; } @media (min-width: 768px) { .auth-wrap { padding: 5rem 0; } }
.auth-card { max-width: 30rem; margin-inline: auto; background: var(--paper); border: 1px solid var(--g100); border-radius: .75rem; padding: 1.75rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .auth-card { padding: 2.5rem; } }
.auth-card.wide { max-width: 40rem; }
.auth-card .badge { width: 4rem; height: 4rem; margin-inline: auto; }
.auth-card h1 { margin-top: 1.25rem; text-align: center; color: var(--g700); font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { text-align: center; margin-top: .375rem; color: var(--ink-faint); font-size: .875rem; }
.qr { display: grid; place-items: center; background: #fff; border: 1px solid var(--g100); border-radius: .5rem; padding: 1rem; }
.qr canvas, .qr img { width: 11rem; height: 11rem; image-rendering: pixelated; }
.secret { font: 600 .9375rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .08em; background: var(--warm); border: 1px dashed var(--g200); border-radius: .375rem; padding: .625rem .75rem; text-align: center; overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; font: 600 .875rem/1 ui-monospace, Consolas, monospace; }
.codes span { background: var(--warm); border: 1px solid var(--g100); border-radius: .25rem; padding: .5rem; text-align: center; }

/* ── Admin console ──────────────────────────────────────────────────── */
.console { display: grid; min-height: 100dvh; background: var(--warm); }
@media (min-width: 1024px) { .console { grid-template-columns: 16rem minmax(0, 1fr); } }
.side { background: var(--g900); color: var(--g100); display: flex; flex-direction: column; }
.side .top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--g800); }
.side .brand .w { color: #fff; } .side .brand .s { display: block; color: var(--g300); }
.side nav { padding: .75rem; display: flex; flex-direction: column; gap: .125rem; }
.side nav .grp { margin: 1rem .75rem .375rem; font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold400); }
.side nav a, .side nav span.soon { display: flex; align-items: center; gap: .625rem; padding: .5rem .75rem; border-radius: .375rem; font-size: .84rem; color: var(--g100); text-decoration: none; }
.side nav a:hover { background: var(--g800); color: #fff; }
.side nav a.active { background: var(--g700); color: #fff; box-shadow: inset 2px 0 0 var(--gold500); }
.side nav span.soon { color: var(--g300); opacity: .7; cursor: default; justify-content: space-between; }
.side nav span.soon em { font-style: normal; font-size: .625rem; border: 1px solid var(--g600); border-radius: .25rem; padding: 0 .3rem; white-space: nowrap; flex: none; }
.side nav span.soon > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side nav svg { width: 1rem; height: 1rem; flex: none; opacity: .85; }
.side .count { margin-left: auto; background: var(--gold500); color: var(--ink); border-radius: 999px; font-size: .6875rem; font-weight: 700; padding: 0 .45rem; }
.side .me { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid var(--g800); font-size: .8125rem; }
.side .me .n { color: #fff; font-weight: 600; } .side .me .r { color: var(--g300); font-size: .75rem; margin-top: .125rem; }
.side-toggle svg { width: 1.25rem; height: 1.25rem; }
.header-account svg { width: 1.125rem; height: 1.125rem; }
.side-toggle { display: inline-flex; border: 1px solid var(--g700); background: transparent; color: #fff; border-radius: .375rem; padding: .375rem; cursor: pointer; line-height: 0; }
@media (max-width: 1023px) { .side nav, .side .me { display: none; } .side.open nav, .side.open .me { display: flex; } .side.open .me { display: block; } }
@media (min-width: 1024px) { .side-toggle { display: none; } .side { position: sticky; top: 0; height: 100dvh; overflow-y: auto; } }
.workspace { min-width: 0; }
/* With the 16rem sidebar, two-column panels need a wide screen. */
@media (min-width: 1024px) and (max-width: 1319px) {
  .workspace .lg-split, .workspace .lg-split-r { grid-template-columns: minmax(0, 1fr); }
}
.profile-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.profile-row > .kv { flex: 1 1 16rem; min-width: 0; }
.ws-head { background: var(--paper); border-bottom: 1px solid var(--g100); }
.ws-head .in { padding: 1.25rem 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
@media (min-width: 768px) { .ws-head .in { padding: 1.5rem 2rem; } }
.ws-head h1 { color: var(--g700); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.ws-head .crumb { font-size: .75rem; color: var(--ink-faint); margin-bottom: .25rem; } .ws-head .crumb a { color: var(--ink-faint); }
.ws-body { padding: 1.25rem 1rem 3rem; } @media (min-width: 768px) { .ws-body { padding: 1.75rem 2rem 4rem; } }
.panel { background: var(--paper); border: 1px solid var(--g100); border-radius: var(--radius); }
.panel > .ph { padding: 1rem 1.25rem; border-bottom: 1px solid var(--g100); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.panel > .ph h2 { font-size: .9375rem; font-weight: 700; color: var(--g700); letter-spacing: -.01em; }
.panel > .pb { padding: 1.25rem; }
.panel > .table-wrap { border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.kpi { background: var(--paper); border: 1px solid var(--g100); border-radius: var(--radius); padding: 1.125rem 1.25rem; }
.kpi .v { font-size: 1.75rem; font-weight: 800; color: var(--g700); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .78rem; color: var(--ink-soft); font-weight: 600; margin-top: .25rem; }
.kpi.warn { border-left: 2px solid var(--gold500); } .kpi.bad { border-left: 2px solid var(--danger); }
.filters { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.filters .field { width: auto; min-width: 10rem; padding: .5rem .75rem; font-size: .875rem; }
.filters input.field { min-width: 14rem; flex: 1; }
.pager { display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: .875rem 1.25rem; border-top: 1px solid var(--g100); font-size: .8125rem; color: var(--ink-faint); }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--g100); margin-bottom: 1.5rem; }
.tabs a { padding: .625rem .875rem; font-size: .875rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--g700); border-bottom-color: var(--gold500); }
.tabs a:hover { color: var(--g700); }
.msg { white-space: pre-wrap; font-size: .9375rem; line-height: 1.65; color: var(--ink); background: var(--warm); border: 1px solid var(--g100); border-radius: .375rem; padding: 1rem 1.25rem; }
.json { font: .75rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--warm); border-radius: .25rem; padding: .5rem; margin-top: .375rem; max-height: 12rem; overflow: auto; }
.empty { border: 1px dashed var(--g200); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; color: var(--ink-faint); font-size: .875rem; }
.dl-actions form { display: inline; }
details.inline summary { cursor: pointer; color: var(--g700); font-size: .8125rem; font-weight: 600; }

/* ── Phase 3: field operations ──────────────────────────────────────── */
.level-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.level-pick .opts { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .375rem; }
@media (min-width: 640px) { .level-pick.compact .opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .level-pick .opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.level-pick .lv { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: .75rem .875rem; border: 1px solid var(--g200); border-left-width: 4px; border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.level-pick .lv input { position: absolute; opacity: 0; pointer-events: none; }
.level-pick .lv .t { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.level-pick .lv .h { font-size: .75rem; line-height: 1.35; color: var(--ink-soft); }
.level-pick .lv-low { border-left-color: #5b8f7b; } .level-pick .lv-moderate { border-left-color: var(--gold500); }
.level-pick .lv-high { border-left-color: #d1495b; } .level-pick .lv-critical { border-left-color: var(--danger-strong); }
.level-pick .lv:has(input:checked) { background: var(--g50); border-color: var(--g600); box-shadow: 0 0 0 1px var(--g600); }
.level-pick .lv-critical:has(input:checked) { background: var(--danger-soft); border-color: var(--danger-strong); box-shadow: 0 0 0 1px var(--danger-strong); }
.level-pick .lv:has(input:focus-visible) { outline: 2px solid var(--g600); outline-offset: 2px; }
.rapid-cats { border: 0; padding: 0; margin: 0; min-width: 0; }
.rapid-cats .opts { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .375rem; }
@media (min-width: 640px) { .rapid-cats .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rapid-cats label { position: relative; display: flex; align-items: center; min-height: 3.25rem; padding: .625rem .75rem; border: 1px solid var(--g200); border-radius: var(--radius); background: var(--paper); font-size: .875rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.rapid-cats input { position: absolute; opacity: 0; pointer-events: none; }
.rapid-cats label:has(input:checked) { background: var(--g700); border-color: var(--g700); color: #fff; }
.rapid-cats label:has(input:focus-visible) { outline: 2px solid var(--gold500); outline-offset: 2px; }
.safe-box { padding: .875rem 1rem; border: 1px solid var(--gold500); background: var(--gold100); border-radius: var(--radius); }
.timeline { list-style: none; display: flex; flex-direction: column; gap: .875rem; border-left: 2px solid var(--g100); padding-left: 1rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -1.375rem; top: .3rem; width: .625rem; height: .625rem; border-radius: 50%; background: var(--g300); border: 2px solid var(--paper); }
.timeline li.hl::before { background: var(--gold500); }
.timeline li p { margin-top: .125rem; }
.ev-picked { list-style: none; display: flex; flex-direction: column; gap: .25rem; margin-top: .5rem; }
.ev-picked li { padding: .375rem .625rem; background: var(--g50); border-radius: .25rem; overflow-wrap: anywhere; }
.pu-map { margin: 0; }
.pu-map svg { width: 100%; height: auto; display: block; }
.pu-map .bg { fill: var(--g50); stroke: var(--g100); }
.pu-map .grid { stroke: var(--g100); stroke-width: 1; }
.pu-map circle { cursor: pointer; }
.pu-map a:focus-visible circle { stroke: var(--ink); stroke-width: 3; }
.pu-map figcaption { margin-top: .75rem; color: var(--ink-soft); }
td .tnum[title="SHA-256"] { overflow-wrap: anywhere; }

/* Receipt (print) */
.receipt { max-width: 40rem; margin: 0 auto; background: var(--paper); border: 1px solid var(--g100); border-top: 3px solid var(--gold500); border-radius: var(--radius); padding: 2rem; }
@media print {
  .side, .ws-head .actions, .no-print, .site-header, .strip, .site-footer { display: none !important; }
  .console { display: block; background: #fff; } .ws-body { padding: 0; } .receipt { border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
