/* ============================================================
   Propelr Adaptive Learning — design system (Part 2 tokens)
   Grounded in the Propelr brand. Yellow = active/frontier only.
   Fonts: self-hosted woff2, latin subset (Part 8) — no external CDN.
   Inter is variable (one file, full weight axis); Poppins & Space Mono
   are static per-weight. font-display:swap avoids invisible-text FOIT.
   ============================================================ */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+2013-2014,U+2018-201F,U+2026;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-500.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+2013-2014,U+2018-201F,U+2026;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+2013-2014,U+2018-201F,U+2026;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+2013-2014,U+2018-201F,U+2026;}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/space-mono-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+2013-2014,U+2018-201F,U+2026;}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/space-mono-700.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+2013-2014,U+2018-201F,U+2026;}
:root {
  color-scheme: light;
  /* palette — light */
  --surface: #F7F7F7;
  --surface-2: #FFFFFF;
  --ink: #2C2C2C;
  --ink-2: #6A6A6A;
  --accent: #FFD700;
  --on-accent: #2C2C2C;
  --pos: #28A745;
  --warn: #F5A623;
  --err: #D92D20;
  --line: #D9D9D9;
  --line-strong: #A8A8A8;
  --fog: rgba(44,44,44,.06);

  /* type */
  --font-display: "Poppins", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-data: "Space Mono", ui-monospace, "SFMono-Regular", "Courier New", monospace;

  /* spacing (8px) */
  --s1:4px; --s2:8px; --s3:16px; --s4:24px; --s5:32px; --s6:40px; --s7:48px; --s8:64px; --s9:80px;
  /* radius */
  --r-ctl:12px; --r-card:16px; --r-dialog:20px; --r-pill:999px;
  /* shadow — one level */
  --shadow: 0 6px 16px rgba(44,44,44,.08);
  /* motion */
  --fast:120ms; --base:240ms; --move:480ms;
  --ease: cubic-bezier(.2,0,0,1);
  /* focus */
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface:#0C0C0C; --surface-2:#1A1A1A; --ink:#FFFFFF; --ink-2:#B5B5B5;
    --accent:#FFD700; --on-accent:#2C2C2C; --pos:#34C759; --warn:#FF9500; --err:#FF453A;
    --line:#2F2F2F; --line-strong:#555; --fog:rgba(255,255,255,.05); --shadow:0 8px 24px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface:#0C0C0C; --surface-2:#1A1A1A; --ink:#FFFFFF; --ink-2:#B5B5B5;
  --accent:#FFD700; --on-accent:#2C2C2C; --pos:#34C759; --warn:#FF9500; --err:#FF453A;
  --line:#2F2F2F; --line-strong:#555; --fog:rgba(255,255,255,.05); --shadow:0 8px 24px rgba(0,0,0,.4);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); background: var(--surface); color: var(--ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* type scale */
.t-display { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.75rem); letter-spacing: -0.02em; line-height: 1.05; }
h1, .t-h1 { font-size: 2rem; }
h2, .t-h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
h3, .t-h3 { font-size: 1.25rem; font-weight: 600; }
.t-body-lg { font-size: 1.125rem; }
.t-caption { font-size: 0.75rem; }
.muted { color: var(--ink-2); }
.reading { max-width: 68ch; }

/* the instrument voice — mono, uppercase, for all progress data */
.data, .instrument {
  font-family: var(--font-data); font-size: 0.8125rem; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--ink-2);
}
.instrument b, .instrument strong { color: var(--ink); font-weight: 700; }
.instrument .hot { color: var(--ink); }

/* layout helpers */
.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--s4); }
.stack > * + * { margin-top: var(--s3); }
.section { margin-top: var(--s7); }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--shadow); }
.rule { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* ---- REGISTER 1 · INSTANT (press / hover / focus) ---- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: var(--r-ctl);
}
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-ctl);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; cursor: pointer;
  text-decoration: none; transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--secondary { --btn-bg: var(--surface-2); --btn-fg: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.btn--sm { min-height: 36px; padding: 0 var(--s3); font-size: 0.875rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn__i { width: 18px; height: 18px; }

.swatch-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.swatch { width: 88px; }
.swatch__chip { height: 44px; border-radius: 10px; border: 1px solid var(--line); }
.swatch__l { margin-top: 6px; }

/* tier ramp — monochrome elevation, never colour alone */
.tier-ramp { display: flex; gap: var(--s2); flex-wrap: wrap; }
.tierchip { display: inline-flex; align-items: center; gap: var(--s2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; }
.tierchip__fill { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink); background: linear-gradient(to top, var(--ink) var(--lvl), transparent var(--lvl)); }
.tierchip__l { font-family: var(--font-data); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }

/* ---- REGISTER 2 · CONFIRMATION (toast + undo) ---- */
#px-toasts { position: fixed; left: 0; right: 0; bottom: var(--s4); display: flex; flex-direction: column; align-items: center; gap: var(--s2); z-index: 60; pointer-events: none; padding: 0 var(--s3); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: var(--s3);
  background: var(--ink); color: var(--surface-2); border-radius: var(--r-ctl);
  padding: var(--s3) var(--s3) var(--s3) var(--s4); box-shadow: var(--shadow); max-width: 480px; width: 100%;
  transform: translateY(8px); opacity: 0; transition: transform var(--base) var(--ease), opacity var(--base) var(--ease);
}
:root[data-theme="dark"] .toast, :root:not([data-theme="light"]) .toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.toast.is-in { transform: none; opacity: 1; }
.toast__msg { flex: 1; font-size: 0.9375rem; }
.toast__undo { background: transparent; border: 1px solid color-mix(in srgb, var(--surface-2) 40%, transparent); color: inherit; border-radius: var(--r-pill); min-height: 32px; padding: 0 var(--s3); font-weight: 700; font-family: var(--font-data); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.toast__undo:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---- REGISTER 3 · EVALUATIVE (answer response) ---- */
.evalcard { border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--r-card); padding: var(--s4); background: var(--surface-2); }
.evalcard.is-correct { border-left-color: var(--pos); }
.evalcard.is-wrong { border-left-color: var(--warn); }
.evalcard__hd { display: flex; align-items: center; gap: var(--s2); font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.evalcard__ic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.evalcard.is-correct .evalcard__ic { background: color-mix(in srgb, var(--pos) 18%, transparent); color: var(--pos); }
.evalcard.is-wrong .evalcard__ic { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.evalcard__ic svg { width: 15px; height: 15px; }
.evalcard__what { margin-top: var(--s3); font-weight: 600; }
.evalcard__why { margin-top: var(--s2); color: var(--ink-2); }
.evalcard__next { margin-top: var(--s4); }

/* ---- REGISTER 4 · PROGRESSIVE (atlas node fill + avatar) ---- */
.miniatlas { position: relative; }
.hexnode { transition: transform var(--fast) var(--ease); }
.hexnode__ring { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.hexnode__fill { fill: var(--ink); transition: clip-path var(--move) var(--ease); }
.hexnode.is-frontier .hexnode__ring { stroke: var(--accent); }
.hexnode.is-frontier { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
.atlas-trail { stroke: var(--line); stroke-width: 3; fill: none; }
.atlas-trail.is-done { stroke: var(--accent); }
.atlas-avatar { transition: transform var(--move) var(--ease); }
.atlas-avatar circle { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }

/* small helpers */
.row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* ---- Baseline flow (Part 4) ---- */
.bl2 { max-width: 640px; margin: 0 auto; }
.bl-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.bl-dots { display: flex; gap: 6px; }
.bl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.bl-dot.is-done { background: var(--ink); }
.bl-dot.is-cur { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.bl-q { font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.2; margin-bottom: var(--s5); }
.bl-opts { display: grid; gap: var(--s2); }
.bl-opt { display: flex; align-items: center; gap: var(--s3); text-align: left; min-height: 56px; padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; cursor: pointer; transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease), background var(--fast) var(--ease); }
.bl-opt:hover { border-color: var(--ink); }
.bl-opt:active, .bl-opt.is-picked { transform: scale(.99); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.bl-opt__k { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-data); font-size: 13px; color: var(--ink-2); }
.bl-segs { display: flex; gap: var(--s2); flex-wrap: wrap; }
.bl-seg { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font-family: var(--font-data); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
.bl-seg .tierchip__fill { width: 14px; height: 14px; }
.bl-seg:hover { border-color: var(--ink); }
.bl-seg.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }

/* ---- Adaptation directives + debug (Part 5) ---- */
.tierbar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.directive { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4); margin-top: var(--s3); background: var(--surface-2); }
.directive--up { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.directive--rem { border-left: 4px solid var(--pos); }
.directive--alt { border-left: 4px solid var(--ink-2); }
.directive--recall { border-left: 4px solid var(--warn); }
.directive__h { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: var(--s2); }
.directive__b { margin-top: var(--s2); color: var(--ink-2); }
.directive .row { margin-top: var(--s3); }

.debug-toggle { position: fixed; right: var(--s3); bottom: var(--s3); z-index: 71; }
.debug-panel { position: fixed; right: var(--s3); bottom: calc(var(--s3) + 52px); width: min(400px, 92vw); max-height: 66vh; overflow: auto; background: var(--ink); color: #F7F7F7; border-radius: var(--r-card); padding: var(--s4); box-shadow: var(--shadow); z-index: 70; }
:root[data-theme="dark"] .debug-panel, :root:not([data-theme="light"]) .debug-panel { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.debug-panel h4 { font-family: var(--font-data); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--s2); }
.debug-panel pre { font-family: var(--font-data); font-size: 11px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; margin: 0; }

/* ---- Lesson blocks (Part 6) — ONE tagged tree, tier-shaped ---- */
.lesson { max-width: 720px; }
.lb { margin-top: var(--s5); }
.lb.is-first { margin-top: 0; }
.lb.is-pending { display: none; }
.lb__role { display: inline-block; margin-bottom: var(--s2); }
.lb--define { border-left: 3px solid var(--line-strong); padding-left: var(--s3); }
.lb--define h4 { font-size: 1.05rem; }
.lb--define p { color: var(--ink-2); margin-top: 4px; }
.lb--example { background: var(--fog); border-radius: var(--r-card); padding: var(--s4); }
.lb--example p { color: var(--ink); }
.lb--transfer { border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: var(--s4); }
.lb--transfer textarea { width: 100%; margin-top: var(--s3); min-height: 84px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 1rem; padding: var(--s3); resize: vertical; }
.lvideo__frame { aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r-card); display: grid; place-items: center; text-align: center; color: #F7F7F7; padding: var(--s4); }
.lvideo__frame .data { color: rgba(247,247,247,.7); }
.lvideo__ttl { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-top: 6px; }
.lvideo__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s2); flex-wrap: wrap; }
.lb--practice .lopts { margin-top: var(--s3); }
.lhint { margin-top: var(--s3); color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: var(--s3); }
.lhint .data { color: var(--ink-2); }
.leval { margin-top: var(--s3); }

.enrich { margin-top: var(--s7); border-top: 1px solid var(--line); padding-top: var(--s5); }
.enrich > .data { display: block; margin-bottom: var(--s3); }
.disc { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--s3) var(--s4); background: var(--surface-2); margin-top: var(--s2); }
.disc > summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); list-style: none; display: flex; align-items: center; gap: var(--s2); }
.disc > summary::-webkit-details-marker { display: none; }
.disc > summary::before { content: "+"; font-family: var(--font-data); color: var(--ink-2); width: 1ch; }
.disc[open] > summary::before { content: "\2013"; }
.disc__tag { margin-left: auto; font-family: var(--font-data); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.disc__body { margin-top: var(--s3); color: var(--ink-2); }
.reslist { display: grid; gap: var(--s2); margin-top: var(--s2); }
.res { display: flex; align-items: center; gap: var(--s3); justify-content: space-between; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--s3) var(--s4); text-decoration: none; color: var(--ink); background: var(--surface-2); min-height: 44px; }
.res:hover { border-color: var(--ink); background: var(--fog); }
.res__ex { font-family: var(--font-data); font-size: 12px; color: var(--ink-2); white-space: nowrap; }

.plan-readout { display: grid; gap: 6px; }
.plan-readout .kv { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: baseline; }
.plan-readout .kv > span:first-child { min-width: 92px; }
.plan-readout .kv b { color: var(--ink); font-family: var(--font-data); font-weight: 700; }

/* ---- VideoBlock (Part 7) — facade → nocookie embed, reserved 16:9 ---- */
.vblock { margin-top: var(--s2); }
.vstage { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--r-card); overflow: hidden; background: var(--ink); }
.vframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vposter { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: var(--s2); text-align: left; padding: var(--s5); cursor: pointer; border: 0; color: #F7F7F7; background: radial-gradient(120% 120% at 20% 0%, #3a3a3a 0%, var(--ink) 60%); }
.vposter:hover .vposter__play, .vposter:focus-visible .vposter__play { background: var(--accent); color: var(--on-accent); transform: scale(1.06); }
.vposter__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(247,247,247,.14); backdrop-filter: blur(2px); display: grid; place-items: center; color: #F7F7F7; transition: transform var(--fast) var(--ease), background var(--fast) var(--ease); }
.vposter__meta { display: flex; flex-direction: column; gap: 2px; z-index: 1; }
.vposter__meta .data { color: rgba(247,247,247,.72); }
.vposter__ttl { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.vposter__hint { color: rgba(247,247,247,.55) !important; z-index: 1; }
.vposter:focus-visible { outline: none; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent); }

.vctrls { margin-top: var(--s3); display: flex; flex-direction: column; gap: var(--s3); }
.vchapters { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.vchapters > .data { width: 100%; }
.vchip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font-family: var(--font-body); font-size: 0.9375rem; cursor: pointer; }
.vchip:hover { border-color: var(--ink); background: var(--fog); }
.vchip__t { font-family: var(--font-data); font-size: 12px; color: var(--ink-2); }
.vmeta { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.vspeed { display: inline-flex; align-items: center; gap: var(--s2); }
.vspeed__sel { min-height: 36px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink); font-family: var(--font-body); padding: 0 var(--s2); }
.vspeed__sel:disabled { opacity: .5; }
.valt:empty { display: none; }
.vfallback { margin-top: var(--s3); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--r-card); padding: var(--s4); background: var(--surface-2); }
.vfallback .data { margin-bottom: var(--s2); }
.vfallback__idea { margin: var(--s2) 0 var(--s3); }
.vstage .vfallback { position: absolute; inset: 0; margin: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }

/* ---- Install prompt + app shell (Part 8) ---- */
.install-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; padding: var(--s3); pointer-events: none; }
.install-dock .install-card { pointer-events: auto; }
.install-card { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; max-width: 560px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--shadow-2, 0 8px 30px rgba(0,0,0,.12)); padding: var(--s4); }
.install-card__body { flex: 1 1 220px; }
.install-card__ttl { font-family: var(--font-display); font-weight: 600; }
.install-card__actions { display: flex; gap: var(--s2); }

.appbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.appbar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); row-gap: var(--s2); flex-wrap: wrap; padding: var(--s3) var(--s4); max-width: 1080px; margin: 0 auto; }
.appbar__actions { margin-left: auto; }
.wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.25rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); }
.wordmark__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.appbar__actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; }
.offline-pill { display: none; align-items: center; gap: 6px; font-family: var(--font-data); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); border: 1px solid var(--warn); border-radius: var(--r-pill); padding: 3px 10px; }
body.is-offline .offline-pill { display: inline-flex; }

.conceptgrid { display: grid; gap: var(--s3); grid-template-columns: 1fr; margin-top: var(--s4); }
@media (min-width: 720px) { .conceptgrid { grid-template-columns: 1fr 1fr; } }
.concept-card { display: flex; flex-direction: column; gap: var(--s2); text-align: left; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s4); cursor: pointer; color: var(--ink); transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.concept-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.concept-card__area { color: var(--ink-2); }
.concept-card__meta { margin-top: auto; display: flex; align-items: center; gap: var(--s2); }
.concept-card__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--fog); overflow: hidden; }
.concept-card__fill { height: 100%; background: var(--accent); width: var(--p, 0%); }

/* ---- Auth (invite-only login) + profile ---- */
body:not(.authed) .needs-auth { display: none !important; }
.authwrap { max-width: 440px; margin: var(--s7) auto 0; display: grid; gap: var(--s4); }
.authcard { border: 1px solid var(--line); border-radius: var(--r-dialog); background: var(--surface-2); padding: var(--s6); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 40px -20px rgba(0,0,0,.22); }
.authcard--soft { background: var(--fog); box-shadow: none; }
.authcard__eyebrow { display: inline-block; margin-bottom: var(--s3); }
.authcard__title { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.authcard__subtitle { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.authcard__sub { color: var(--ink-2); margin: 8px 0 0; font-size: .95rem; }
.field { display: block; margin-top: var(--s4); }
.field__l { display: block; font-family: var(--font-data); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 8px; }
.input { width: 100%; min-height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 1rem; padding: 0 var(--s4); transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.input::placeholder { color: var(--ink-2); opacity: .7; }
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn--lg { min-height: 52px; font-size: 1rem; padding: 0 var(--s5); }
.btn--block { width: 100%; justify-content: center; }
.invite-row { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.invite-row .input { flex: 1 1 200px; }
.invite-row .btn { flex: 0 0 auto; }
.auth-err { margin-top: var(--s3); color: var(--err); font-size: .92rem; }
.auth-err:empty { display: none; }
.auth-msg { margin-top: var(--s3); font-size: .92rem; }
.auth-msg.is-ok { color: var(--pos); }
.auth-msg.is-err { color: var(--err); }
.auth-msg:empty { display: none; }

/* ---- logged-out landing: public pitch beside the auth ---- */
.lander { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: center; margin: var(--s5) auto 0; }
.lander__pitch { min-width: 0; }
.lander__eyebrow { color: var(--ink-2); }
.lander__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.06;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin: var(--s2) 0 0; }
.lander__hl { color: var(--on-accent); background: var(--accent); padding: 0 .16em; border-radius: 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lander__lead { font-size: 1.125rem; color: var(--ink-2); max-width: 52ch; margin-top: var(--s4); }
.lander__points { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.lpoint { display: flex; gap: var(--s3); align-items: flex-start; }
.lpoint__i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.lpoint__i svg { width: 20px; height: 20px; }
.lpoint__t { color: var(--ink); font-weight: 600; }
.lpoint__b { color: var(--ink-2); }
.lander__auth { display: grid; gap: var(--s4); width: 100%; max-width: 440px; justify-self: end; }
@media (max-width: 900px) {
  .lander { grid-template-columns: 1fr; gap: var(--s5); margin-top: var(--s2); }
  .lander__auth { justify-self: stretch; max-width: 560px; }
}
.iconbtn { padding: 0; width: 40px; min-width: 40px; display: inline-grid; place-items: center; }
.iconbtn svg { width: 18px; height: 18px; }

.profilebtn { display: inline-flex; align-items: center; gap: var(--s2); border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-pill); padding: 4px 10px 4px 4px; cursor: pointer; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .9rem; max-width: 40vw; }
.profilebtn:hover { border-color: var(--ink); }
.profilebtn .avatar { width: 30px; height: 30px; }
.profilebtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--ink); color: #F7F7F7; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 96px; height: 96px; font-size: 2rem; }
.profile-head { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.gallery__item { position: relative; aspect-ratio: 1; border-radius: var(--r-ctl); overflow: hidden; border: 1px solid var(--line); background: var(--fog); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.gallery__add { display: grid; place-items: center; aspect-ratio: 1; border: 1px dashed var(--line-strong); border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink-2); cursor: pointer; font-family: var(--font-data); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.gallery__add:hover { border-color: var(--ink); color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.avpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.avpick__i { padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--fog); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.avpick__i img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avpick__i:hover { border-color: var(--line-strong); }
.avpick__i.is-sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---- Menu dropdown ---- */
.menu { position: relative; }
#menuBtn { display: inline-flex; align-items: center; gap: 6px; }
#menuBtn svg { width: 16px; height: 16px; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 55; min-width: 270px; max-width: 88vw; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 16px 44px -16px rgba(0,0,0,.34); padding: var(--s2); }
.menu__panel[hidden] { display: none; }
.menu__label { font-family: var(--font-data); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); padding: var(--s2) var(--s3) 4px; margin: 0; }
.menu__item { display: flex; gap: var(--s3); align-items: center; padding: 10px var(--s3); border-radius: var(--r-ctl); text-decoration: none; color: var(--ink); background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: var(--font-body); font-size: .95rem; }
.menu__item:hover, .menu__item:focus-visible { background: var(--fog); outline: none; }
.menu__item > svg { flex: none; width: 18px; height: 18px; color: var(--ink-2); }
.menu__item b { font-weight: 600; display: block; line-height: 1.2; }
.menu__sub { display: block; font-size: .78rem; color: var(--ink-2); margin-top: 1px; }
.menu__sep { border: 0; border-top: 1px solid var(--line); margin: var(--s2) 6px; }
.menu__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); }
.menu__k { font-family: var(--font-data); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
/* On narrow screens the button isn't at the edge — drop a full-width sheet instead of a clipped panel. */
@media (max-width: 520px) {
  .menu__panel { position: fixed; left: 12px; right: 12px; width: auto; min-width: 0; max-width: none; top: 72px; }
}

/* ---- Roadmap / How-it-works / Showcase / Flashcards ---- */
.rmap { display: grid; gap: var(--s3); margin-top: var(--s4); }
.rmap__row { display: flex; gap: var(--s3); align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s4); }
.rmap__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--fog); color: var(--ink); display: grid; place-items: center; font-family: var(--font-data); font-weight: 700; }
.rmap__row.is-done .rmap__n { background: var(--accent); color: var(--on-accent); }
.rmap__bar { height: 6px; border-radius: 999px; background: var(--fog); overflow: hidden; margin-top: var(--s2); max-width: 220px; }
.rmap__fill { height: 100%; background: var(--accent); }

.how { display: grid; gap: var(--s3); margin-top: var(--s4); }
.how__item { display: flex; gap: var(--s4); align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s4); }
.how__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--fog); display: grid; place-items: center; }
.how__ic svg { width: 20px; height: 20px; color: var(--ink); }
.how__item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.how__item p { margin: 0; color: var(--ink-2); }

.sc-form { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s5); margin-top: var(--s4); }
.sc-form textarea { width: 100%; min-height: 96px; margin-top: 0; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 1rem; padding: var(--s3); resize: vertical; }
.sc-list { display: grid; gap: var(--s3); margin-top: var(--s5); }
.sc-post { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s4); }
.sc-post__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.sc-post__by { color: var(--ink-2); }
.sc-post h3 { margin: var(--s2) 0 4px; }
.sc-post__link { display: inline-block; margin-top: var(--s2); font-family: var(--font-data); font-size: 12px; }
.sc-empty { border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: var(--s6); text-align: center; color: var(--ink-2); margin-top: var(--s5); }
.sc-check { display: grid; gap: 6px; margin: var(--s2) 0 var(--s4); }
.sc-check__i { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.sc-check__i.is-ok { color: var(--ink); }
.sc-check__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: #fff; }
.sc-check__dot svg { width: 12px; height: 12px; }
.sc-check__i.is-ok .sc-check__dot { background: var(--pos); border-color: var(--pos); }
.sc-meta { margin: var(--s2) 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s3); }
.sc-meta dt { font-family: var(--font-data); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.sc-meta dd { margin: 0; color: var(--ink); }
.pts { display: grid; gap: 0; margin: 0; }
.pts__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.pts__row:last-child { border-bottom: 0; }
.pts__row dt { margin: 0; }
.pts__row dd { margin: 0; font-weight: 700; color: var(--ink); }

.fc-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; margin-top: var(--s4); }
@media (min-width: 720px) { .fc-grid { grid-template-columns: 1fr 1fr; } }
.fc-topic { display: flex; flex-direction: column; gap: var(--s2); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s4); }
.fc-topic.is-locked { opacity: .72; }
.fc-topic__lock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-data); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.fc-topic__lock svg { width: 14px; height: 14px; }
.flashcard { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s7) var(--s5); min-height: 220px; display: grid; place-items: center; text-align: center; cursor: pointer; margin-top: var(--s4); }
.flashcard__side { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.flashcard__side .data { display: block; font-family: var(--font-data); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: var(--s3); }
.flashcard__hint { position: absolute; bottom: var(--s3); left: 0; right: 0; font-family: var(--font-data); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.fc-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); }
.fc-count { font-family: var(--font-data); color: var(--ink-2); }

/* ---- Badges ---- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s4); }
.badge.is-locked { opacity: .55; }
.badge__ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--fog); color: var(--ink-2); margin-bottom: 2px; }
.badge.is-earned .badge__ic { background: var(--accent); color: var(--on-accent); }
.badge__ic svg { width: 26px; height: 26px; }
.badge__name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.badge__desc { font-size: .78rem; color: var(--ink-2); }

/* ---- Session-complete celebration ---- */
.celebrate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--s4); background: color-mix(in srgb, var(--ink) 48%, transparent); backdrop-filter: blur(2px); }
.celebrate__card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-dialog); box-shadow: 0 24px 64px -20px rgba(0,0,0,.5); padding: var(--s7) var(--s5) var(--s6); text-align: center; animation: cpop .34s var(--ease) both; }
.celebrate__badge { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin: 0 auto var(--s4); box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--accent) 70%, transparent); animation: cbounce .5s var(--ease) both; }
.celebrate__badge svg { width: 40px; height: 40px; }
.celebrate__card h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 6px 0 var(--s2); }
.celebrate__card .row { justify-content: center; margin-top: var(--s5); flex-wrap: wrap; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -16px; width: 8px; height: 13px; opacity: .95; animation: cfall linear forwards; }
@keyframes cpop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cbounce { 0% { transform: scale(0); } 60% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes cfall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---- Levels ---- */
.levelbadge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-pill); padding: 3px 12px 3px 3px; cursor: pointer; color: var(--ink); }
.levelbadge:hover { border-color: var(--ink); }
.levelbadge img { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; }
.levelbadge__t { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.levelbadge__t b { font-family: var(--font-display); font-size: .82rem; }
.levelbadge__t span { font-family: var(--font-data); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.levelbadge.is-pulse { animation: lvpulse .7s var(--ease); }
@keyframes lvpulse { 0% { transform: scale(1); } 30% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-width: 560px) { .levelbadge__t { display: none; } .levelbadge { padding: 3px; } }

.levelup { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--s4); background: color-mix(in srgb, var(--ink) 55%, transparent); backdrop-filter: blur(3px); }
.levelup__card { position: relative; width: 100%; max-width: 420px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-dialog); box-shadow: 0 24px 70px -20px rgba(0,0,0,.6); padding: var(--s6) var(--s5); text-align: center; animation: cpop .34s var(--ease) both; }
.levelup__icon { width: 168px; height: 168px; margin: 0 auto var(--s3); animation: lvIn .6s var(--ease) both; }
.levelup__icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0,0,0,.3)); }
.levelup__card h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 6px 0 var(--s2); }
.levelup__card .row { justify-content: center; margin-top: var(--s5); }
@keyframes lvIn { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }

.lvhero { display: flex; align-items: center; gap: var(--s4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); padding: var(--s4); margin-top: var(--s4); }
.lvhero__icon { width: 96px; height: 96px; flex: none; object-fit: contain; }
.lvhero__body h2 { font-family: var(--font-display); }
.lvbar { height: 10px; border-radius: 999px; background: var(--fog); overflow: hidden; }
.lvbar__fill { display: block; height: 100%; background: var(--accent); }
.lvnext { display: flex; align-items: center; gap: var(--s3); }
.lvnext img { width: 46px; height: 46px; object-fit: contain; opacity: .9; }
.lvladder { display: grid; gap: var(--s2); }
.lvrow { display: flex; align-items: center; gap: var(--s3); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); padding: var(--s2) var(--s3); }
.lvrow img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.lvrow:not(.is-reached) img { filter: grayscale(1) opacity(.45); }
.lvrow__n { flex: 1; } .lvrow__n b { font-family: var(--font-display); }
.lvrow.is-current { border-color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---- first-run landing (how Propelr teaches) ---- */
.welcome { max-width: 960px; margin: 0 auto; }
.welcome__hero { text-align: center; padding: var(--s4) 0 var(--s2); }
.welcome__eyebrow { color: var(--ink-2); }
.welcome__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(2rem, 5.5vw, 3.25rem); margin: var(--s2) 0 0; }
.welcome__hl { color: var(--on-accent); background: var(--accent); padding: 0 .18em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.welcome__lede { font-size: 1.125rem; color: var(--ink-2); margin: var(--s3) auto 0; }
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s6); }
.wcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4); }
.wcard__i { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-ctl); background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.wcard__i svg { width: 22px; height: 22px; }
.wcard__t { font-size: 1.0625rem; font-weight: 600; margin: var(--s3) 0 var(--s1); }
.wcard__b { color: var(--ink-2); font-size: .95rem; }
.welcome__note { margin-top: var(--s5); border-left: 3px solid var(--accent);
  background: var(--fog); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; padding: var(--s3) var(--s4); }
.welcome__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin: var(--s6) 0 var(--s4); }
@media (max-width: 800px) { .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wgrid { grid-template-columns: 1fr; } .welcome__cta .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .confetti { display: none; }
}
