:root {
  /* Kulfé palette: mango + falooda rose */
  --ink: #141518;
  --comb: #141518;
  --comb-2: #1f2226;
  --honey: #E8A13D;
  --honey-soft: #FBEBD3;
  --honey-deep: #8A5300;
  --orange: #D96A8B;
  --orange-press: #C4567A;
  --surface: #f2f1ec;
  --panel: #fbfbf8;
  --rail: #ebeae4;
  --line: #d9d8d1;
  --line-strong: #bebdb5;
  --muted: #5e6169;
  --ok: #8A5300;
  --ok-soft: #FBEBD3;
  --warn: #b54708;
  --warn-soft: #fbeedd;
  --focus: #8A5300;
  --on-dark: #f2f1ec;
  --on-dark-2: #c9cbc4;
  --on-dark-3: #9fa29b;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "DM Sans", Inter, system-ui, sans-serif;
  --mono: "Space Mono", Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px; --s9: 64px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --gutter: 16px;

  --z-sticky: 10; --z-rail: 20; --z-overlay: 40; --z-sheet: 50; --z-toast: 60;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 900px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; text-wrap: balance; margin: 0; letter-spacing: -0.005em; line-height: 1.04; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--honey-deep); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s6);
  border: 0; border-radius: 6px; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #080808; }
.btn-primary:hover { background: var(--orange-press); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-text { white-space: nowrap; background: none; border: 0; padding: var(--s2) 0; color: var(--muted); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover { color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: .9375rem; }

/* ---------- welcome (drenched) ---------- */
.welcome {
  min-height: 100svh; background: var(--comb); color: var(--on-dark);
  display: grid; align-items: center; position: relative; overflow: hidden;
}
.welcome::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(var(--honey) 1px, transparent 1px), linear-gradient(90deg, var(--honey) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .05;
}
.welcome-inner {
  position: relative; width: 100%; max-width: 1120px; margin: 0 auto;
  padding: var(--s8) var(--gutter);
  display: grid; gap: var(--s8);
}
@media (min-width: 900px) { .welcome-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--s9); } }
.pair { display: flex; align-items: center; gap: var(--s3); font-weight: 600; font-size: .9375rem; color: var(--on-dark-2); }
.pair b { color: #fff; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.pair .x { color: var(--honey); }
.welcome h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 600; line-height: 1.02; margin-top: var(--s6); color: #fff; letter-spacing: -0.005em; }
.welcome .lede { font-size: 1.125rem; line-height: 1.55; max-width: 34em; margin-top: var(--s5); color: var(--on-dark-2); }
.promise { list-style: none; margin: var(--s7) 0 0; padding: 0; display: grid; gap: var(--s3); max-width: 34em; }
.promise li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); color: var(--on-dark); }
.promise svg { margin-top: 2px; }
.welcome .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s7); }
.welcome .cta-row .btn-text { color: var(--on-dark-2); }
.welcome .resume-note { color: var(--honey); font-weight: 600; font-size: .9375rem; }

.unlocks { background: var(--comb-2); border-radius: var(--r-lg); padding: var(--s6); }
.unlocks h2 { font-size: 1.125rem; color: #fff; font-weight: 700; }
.unlocks p.sub { color: var(--on-dark-3); font-size: .9375rem; margin-top: var(--s2); }
.unlocks ul { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.unlocks li { display: flex; gap: var(--s3); align-items: baseline; color: var(--on-dark); font-size: .9375rem; }
.unlocks li::before { content: ""; flex: none; width: 10px; height: 11px; background: var(--honey); border-radius: 2px; transform: translateY(-1px); }
.welcome-comb { margin-bottom: var(--s6); }

/* ---------- honeycomb ---------- */
.comb { position: relative; width: 180px; height: 118px; }
.cell {
  position: absolute; width: 56px; height: 56px; border: 0; padding: 0; background: none; cursor: pointer;
  border-radius: 8px; overflow: hidden;
}
.cell .wax { position: absolute; inset: 0; background: var(--line); }
.cell .fill {
  position: absolute; inset: 0; background: var(--honey);
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease);
}
.cell .num { position: relative; display: grid; place-items: center; height: 100%; font: 700 .9375rem/1 var(--display); color: var(--muted); }
.cell .tick { position: absolute; inset: 0; display: none; place-items: center; color: var(--comb); }
.cell .mark { position: absolute; left: 50%; bottom: 11px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--honey-deep); display: none; }
/* done: solid gold with a tick */
.cell.done .fill { clip-path: inset(0 0 0 0); }
.cell.done .num { display: none; }
.cell.done .tick { display: grid; }
/* started, not done: a dot under the number */
.cell.partial .mark { display: block; }
/* current: solid dark with the number (a done current step keeps its tick, in gold) */
.cell.current .wax { background: var(--ink); }
.cell.current .fill { clip-path: inset(100% 0 0 0); transition: none; }
.cell.current .num { color: #fff; }
.cell.current .mark { background: var(--honey); }
.cell.current.done .tick { color: var(--honey); }
.cell:focus-visible { outline: none; }
.cell:focus-visible .wax { background: var(--orange); }
.dark .cell .wax { background: #2c3036; }
.dark .cell .num { color: var(--on-dark-3); }
.dark .cell .mark { background: var(--honey); }

/* ---------- app shell ---------- */
.app { display: grid; min-height: 100svh; }
@media (min-width: 900px) { .app { grid-template-columns: 300px 1fr; } }

.rail { display: none; }
@media (min-width: 900px) {
  .rail {
    display: flex; flex-direction: column; gap: var(--s6);
    position: sticky; top: 0; height: 100svh; overflow-y: auto;
    background: var(--rail); border-right: 1px solid var(--line);
    padding: var(--s7) var(--s6);
  }
}
.rail .pair { color: var(--muted); }
.rail .pair b { color: var(--ink); }
.rail .comb-wrap { padding-bottom: var(--s5); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps button {
  width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: var(--s3); align-items: center;
  text-align: left; background: none; border: 0; border-radius: var(--r-sm); padding: var(--s2) var(--s3); cursor: pointer;
  color: var(--ink); font-size: .9375rem; font-weight: 500;
}
.steps button:hover { background: #e2e1da; }
.steps button[aria-current="step"] { background: var(--panel); box-shadow: 0 0 0 1px var(--line); font-weight: 700; }
.steps .dot { width: 12px; height: 12px; background: var(--line-strong); border-radius: 3px; justify-self: center; }
.steps .done .dot { background: var(--honey); }
.steps .time { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.rail-foot { margin-top: auto; display: grid; gap: var(--s3); font-size: .875rem; color: var(--muted); }
.save-state { display: flex; align-items: center; gap: var(--s2); font-size: .8125rem; color: var(--muted); }
.save-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.save-state.saving i { background: var(--honey); }
.save-state.offline i { background: var(--warn); }

/* mobile top bar */
.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: var(--s3) var(--gutter);
  display: grid; gap: var(--s2);
}
@media (min-width: 900px) { .topbar { display: none; } }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: .875rem; }
.topbar-row b { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.strip { display: grid; grid-template-columns: repeat(var(--n, 9), 1fr); gap: 4px; }
.strip button { height: 10px; border: 0; padding: 0; background: var(--line); border-radius: 3px; cursor: pointer; position: relative; overflow: hidden; }
.strip button.done { background: var(--honey); }
.strip button.partial { background: var(--honey-soft); box-shadow: inset 0 -3px 0 var(--honey); }
.strip button[aria-current="step"] { box-shadow: 0 0 0 2px var(--ink) inset; }

/* ---------- step ---------- */
.main { min-width: 0; }
.step { max-width: 720px; margin: 0 auto; padding: var(--s7) var(--gutter) 140px; }
@media (min-width: 900px) { .step { padding: var(--s9) var(--gutter) 120px; } }
.step-head { display: grid; gap: var(--s3); margin-bottom: var(--s7); }
.step-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; color: var(--muted); font-size: .875rem; font-weight: 500; }
.step-meta .n { font: 700 .875rem var(--display); color: var(--honey-deep); }
.step h2 { font-size: clamp(2rem, 4.6vw, 2.75rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.005em; }
.step .why { font-size: 1.0625rem; color: var(--muted); max-width: 38em; }

.group { margin-top: var(--s8); }
.group:first-of-type { margin-top: 0; }
.group > h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.group > .hint { color: var(--muted); font-size: .9375rem; margin-top: var(--s1); max-width: 40em; }
.group > .fields { margin-top: var(--s5); }

.fields { display: grid; gap: var(--s6); }
.two { display: grid; gap: var(--s6); }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.field { display: grid; gap: var(--s2); min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: .9375rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.field .help { font-size: .875rem; color: var(--muted); }
.input, .textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  background: var(--panel); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #80838a; }
.input:hover, .textarea:hover { border-color: #9a9c9f; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217, 106, 139, .18); }
.money { position: relative; }
.money span { position: absolute; left: var(--s4); top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money .input { padding-left: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-weight: 500; font-size: .9375rem; transition: background-color .15s, box-shadow .15s, color .15s;
}
.chip:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.split { display: grid; gap: var(--s3); }
.split-bar { display: flex; height: 40px; border-radius: var(--r-sm); overflow: hidden; font-size: .8125rem; font-weight: 700; }
.split-bar div { display: flex; align-items: center; padding: 0 var(--s3); white-space: nowrap; min-width: 0; overflow: hidden; transition: flex-basis .2s var(--ease); }
.split-bar .a { background: var(--honey); color: var(--comb); }
.split-bar .b { background: var(--comb); color: #fff; justify-content: flex-end; }
.split input[type="range"] { width: 100%; accent-color: var(--orange); height: 28px; }
.split .unset { color: var(--muted); font-size: .875rem; }

.repeat { display: grid; gap: var(--s3); }
.repeat-row { display: grid; gap: var(--s2); grid-template-columns: 1fr auto; align-items: start; }
.repeat-row .cols { display: grid; gap: var(--s2); }
@media (min-width: 600px) { .repeat-row .cols { grid-template-columns: repeat(var(--c, 3), 1fr); } }
.icon-btn { width: 48px; height: 48px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--rail); color: var(--ink); }
.add-row { justify-self: start; }

.note { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); padding: var(--s4); background: var(--honey-soft); border-radius: var(--r-md); font-size: .9375rem; color: var(--comb); }
.note.plain { background: var(--rail); }

/* ---------- upload ---------- */
.drop {
  display: grid; gap: var(--s2); justify-items: start; padding: var(--s5);
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--panel);
  transition: border-color .15s, background-color .15s;
}
.drop.over { border-color: var(--orange); background: #fdf3e4; }
.drop .drop-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.drop small { color: var(--muted); font-size: .8125rem; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); width: 100%; }
.files li { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s2); background: var(--rail); border-radius: var(--r-sm); font-size: .875rem; }
.files .thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--line); display: grid; place-items: center; font-size: .6875rem; font-weight: 700; color: var(--muted); overflow: hidden; }
.files .meta { min-width: 0; }
.files .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.files .meta span { color: var(--muted); }
.files li.up .meta span { color: var(--honey-deep); }
.files li.err .meta span { color: var(--warn); }

/* ---------- access grants ---------- */
.grants { display: grid; gap: var(--s4); }
.grant { background: var(--panel); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.grant.is-done { box-shadow: 0 0 0 1.5px var(--honey); }
.grant-head { display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); padding: var(--s5); align-items: start; }
.grant-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rail); }
.grant-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.grant-title h3 { font: 700 1.0625rem/1.3 var(--body); letter-spacing: -0.01em; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--rail); color: var(--muted); }
.tag.must { background: var(--ink); color: #fff; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.call { background: var(--warn-soft); color: var(--warn); }
.grant-what { color: var(--muted); font-size: .9375rem; margin-top: var(--s1); }
.grant-body { padding: 0 var(--s5) var(--s5); display: grid; gap: var(--s4); }

.copyline { display: flex; align-items: stretch; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--rail); overflow: hidden; }
.copyline code { flex: 1; min-width: 0; padding: var(--s3) var(--s4); font: 600 .9375rem/1.4 var(--body); overflow-wrap: anywhere; display: flex; align-items: center; gap: var(--s2); }
.copyline code small { font-weight: 500; color: var(--muted); }
.copyline button { border: 0; background: var(--ink); color: #fff; font-weight: 700; padding: 0 var(--s4); cursor: pointer; min-width: 84px; font-size: .875rem; }
.copyline button.copied { background: var(--ok); }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--rail); border-radius: 999px; padding: 4px; }
.paths button { min-height: 44px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .9375rem; cursor: pointer; color: var(--muted); }
.paths button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(32, 22, 22, .12), 0 0 0 1px var(--line); }

.quick { display: grid; gap: var(--s4); }
.quick ol { margin: 0; padding-left: 1.25em; display: grid; gap: var(--s2); font-size: .9375rem; }
.quick ol li::marker { font-weight: 700; color: var(--honey-deep); }
.quick .go { justify-self: start; }

.status-row { display: grid; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); }
.status-row .label { font-size: .875rem; font-weight: 600; color: var(--muted); }

/* ---------- walkthrough ---------- */
.walk { display: grid; gap: var(--s3); }
.walk-stage { position: relative; }
.walk-cap { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; font-size: .9375rem; min-height: 48px; }
.walk-cap .pin { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font: 800 .875rem/28px var(--display); text-align: center; }
.walk-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.walk-dots { display: flex; gap: 6px; }
.walk-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.walk-dots i.on { background: var(--orange); width: 20px; border-radius: 4px; }
.walk .src { font-size: .8125rem; color: var(--muted); }

/* the recreated product screen */
.scr {
  --ui-bg: #f0f2f5; --ui-panel: #fff; --ui-ink: #1c2b33; --ui-muted: #65676b; --ui-line: #dadde1; --ui-accent: #0866ff; --ui-accent-ink: #fff;
  border-radius: var(--r-md); overflow: hidden; background: var(--ui-bg); color: var(--ui-ink);
  box-shadow: 0 0 0 1px var(--line-strong), 0 12px 32px -16px rgba(32, 22, 22, .35);
  font: 400 12px/1.4 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; user-select: none;
  aspect-ratio: 16 / 11; display: grid; grid-template-rows: auto 1fr; position: relative;
}
.scr.g { --ui-bg: #f8f9fa; --ui-ink: #202124; --ui-muted: #5f6368; --ui-line: #dadce0; --ui-accent: #1a73e8; font-family: Roboto, Arial, sans-serif; }
.scr.cl { --ui-bg: #f5f6f8; --ui-ink: #11162b; --ui-muted: #5a607a; --ui-line: #e1e3ea; --ui-accent: #3d53f5; }
.scr.sh { --ui-bg: #f1f1f1; --ui-ink: #303030; --ui-muted: #616161; --ui-line: #e3e3e3; --ui-accent: #303030; }
.scr-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #e8e6e3; border-bottom: 1px solid #d6d2cc; }
.scr-bar .dots { display: flex; gap: 4px; }
.scr-bar .dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9c4bc; }
.scr-bar .url { flex: 1; min-width: 0; background: #fff; border-radius: 5px; padding: 3px 8px; color: #5c5650; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-body { display: grid; grid-template-columns: 30% 1fr; min-height: 0; position: relative; }
.scr-body.nonav { grid-template-columns: 1fr; }
.scr-nav { background: var(--ui-panel); border-right: 1px solid var(--ui-line); padding: 8px 6px; display: grid; align-content: start; gap: 1px; min-width: 0; }
.scr-nav .brand { font-weight: 700; font-size: 11.5px; padding: 4px 6px 8px; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; }
.scr-nav .sec { color: var(--ui-muted); font-size: 10px; font-weight: 600; padding: 6px 6px 2px; white-space: nowrap; }
.scr-nav .it { position: relative; padding: 4px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.scr-nav .it.sub { padding-left: 14px; }
.scr-nav .it.on { background: color-mix(in srgb, var(--ui-accent) 12%, transparent); color: var(--ui-accent); font-weight: 600; }
.scr-main { padding: 12px 14px; display: grid; align-content: start; gap: 10px; min-width: 0; overflow: hidden; }
.scr-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scr-h b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px; font-weight: 600; font-size: 11px; white-space: nowrap; background: var(--ui-accent); color: var(--ui-accent-ink); }
.scr-btn.sec { background: #e4e6eb; color: var(--ui-ink); }
.scr.g .scr-btn.sec, .scr.cl .scr-btn.sec { background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line); color: var(--ui-accent); }
.scr-btn.fab { width: 30px; height: 30px; border-radius: 50%; justify-content: center; font-size: 18px; padding: 0; }
.scr-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--ui-line); font-size: 11px; color: var(--ui-muted); }
.scr-tabs span { padding: 4px 0; white-space: nowrap; }
.scr-tabs span.on { color: var(--ui-accent); box-shadow: inset 0 -2px 0 var(--ui-accent); font-weight: 600; }
.scr-card { background: var(--ui-panel); border-radius: 8px; box-shadow: 0 0 0 1px var(--ui-line); padding: 8px 10px; display: grid; gap: 6px; min-width: 0; }
.scr-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 3px 0; min-width: 0; }
.scr-row + .scr-row { border-top: 1px solid var(--ui-line); padding-top: 6px; }
.scr-row .av { width: 18px; height: 18px; border-radius: 50%; background: #d8dadf; }
.scr-row .t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-row .t small { display: block; color: var(--ui-muted); font-size: 10px; }
.scr-row .r { color: var(--ui-muted); font-size: 10px; white-space: nowrap; }
.scr-dim { position: absolute; inset: 0; background: rgba(20, 20, 20, .38); display: grid; place-items: center; padding: 10px; }
.scr-dialog { width: min(88%, 380px); max-height: 100%; overflow: hidden; background: var(--ui-panel); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); padding: 12px 14px; display: grid; gap: 8px; }
.scr-dialog .dt { font-size: 13px; font-weight: 700; }
.scr-dialog .dd { color: var(--ui-muted); font-size: 10.5px; }
.scr-field { display: grid; gap: 3px; }
.scr-field .fl { font-size: 10.5px; font-weight: 600; }
.scr-field .fi { border: 1px solid var(--ui-line); border-radius: 6px; padding: 5px 8px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.scr-opt { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; font-size: 11px; }
.scr-opt .o { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ui-muted); }
.scr-opt .o.sq { border-radius: 3px; }
.scr-opt.on .o { box-shadow: inset 0 0 0 4px var(--ui-accent); }
.scr-opt.on .o.sq { background: var(--ui-accent); box-shadow: none; }
.scr-opt small { display: block; color: var(--ui-muted); font-size: 10px; }
.scr-tog { width: 24px; height: 14px; border-radius: 7px; background: #c9ccd1; position: relative; }
.scr-tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.scr-tog.on { background: var(--ui-accent); }
.scr-tog.on::after { left: 12px; }
.scr-foot { display: flex; justify-content: flex-end; gap: 6px; padding-top: 2px; }
.scr-chip { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ui-accent) 12%, #fff); color: var(--ui-accent); font-size: 10.5px; font-weight: 600; }
.scr-ok { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; text-align: center; }
.scr-ok .ck { width: 34px; height: 34px; border-radius: 50%; background: #e6f4ea; color: #137333; display: grid; place-items: center; font-size: 18px; font-weight: 700; }

.hl { position: relative; z-index: 1; }
.hl::after {
  content: ""; position: absolute; inset: -4px; border-radius: 9px; pointer-events: none;
  box-shadow: 0 0 0 2.5px var(--orange), 0 0 0 7px rgba(217, 106, 139, .22);
  animation: ring 1.6s var(--ease) infinite;
}
.hl .pin-on {
  position: absolute; right: -10px; top: -12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); color: #fff; font: 800 11px/20px var(--display); text-align: center; z-index: 2;
}
@keyframes ring { 0% { box-shadow: 0 0 0 2.5px var(--orange), 0 0 0 4px rgba(217, 106, 139, .35); } 70% { box-shadow: 0 0 0 2.5px var(--orange), 0 0 0 10px rgba(217, 106, 139, 0); } 100% { box-shadow: 0 0 0 2.5px var(--orange), 0 0 0 10px rgba(217, 106, 139, 0); } }

@media (max-width: 520px) {
  .scr { aspect-ratio: auto; min-height: 300px; font-size: 11px; }
  .scr-body { grid-template-columns: 1fr; }
  .scr-nav { display: none; }
  .scr-nav.show-mobile { display: grid; border-right: 0; border-bottom: 1px solid var(--ui-line); grid-template-columns: 1fr 1fr; }
  .scr-nav.show-mobile .brand, .scr-nav.show-mobile .sec { grid-column: 1 / -1; }
}

/* ---------- action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--surface) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { .actionbar { left: 300px; } }
.actionbar-inner { max-width: 720px; margin: 0 auto; display: flex; gap: var(--s3); align-items: center; justify-content: space-between; }
.actionbar .btn-primary { flex: 1; max-width: 360px; }
@media (min-width: 600px) { .actionbar .btn-primary { flex: none; } }
.actionbar .left { display: flex; gap: var(--s4); align-items: center; }

/* ---------- review + finish ---------- */
.review { display: grid; gap: var(--s2); margin-top: var(--s6); }
.review button {
  display: grid; grid-template-columns: 22px 1fr auto; gap: var(--s3); align-items: center; text-align: left;
  padding: var(--s4); background: var(--panel); border: 0; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); cursor: pointer;
}
.review button:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.review .dot { width: 12px; height: 12px; background: var(--line-strong); border-radius: 3px; }
.review .done .dot { background: var(--honey); }
.review b { font-weight: 600; }
.review small { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
.review .st { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.review .done .st { color: var(--ok); }

.finish { min-height: 100svh; background: var(--comb); color: var(--on-dark); display: grid; place-items: center; padding: var(--s8) var(--gutter); text-align: center; position: relative; overflow: hidden; }
.finish-inner { max-width: 560px; display: grid; gap: var(--s5); justify-items: center; position: relative; }
.finish h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); font-weight: 600; line-height: 1.02; color: #fff; letter-spacing: -0.005em; }
.finish p { color: var(--on-dark-2); font-size: 1.0625rem; }
.finish .comb { margin-bottom: var(--s6); }
.finish .cell .fill { transition-duration: .9s; }
.finish .next { text-align: left; background: var(--comb-2); border-radius: var(--r-lg); padding: var(--s5) var(--s6); width: 100%; display: grid; gap: var(--s3); }
.finish .next h2 { font: 700 1rem var(--body); color: #fff; }
.finish .next ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); color: var(--on-dark); font-size: .9375rem; }
.finish .btn-text { color: var(--on-dark-2); }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px); opacity: 0; z-index: var(--z-toast);
  background: var(--ink); color: #fff; padding: var(--s3) var(--s5); border-radius: 999px; font-weight: 600; font-size: .9375rem;
  transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; max-width: calc(100vw - 40px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.gate { min-height: 100svh; display: grid; place-items: center; padding: var(--gutter); text-align: center; }
.gate h1 { font-size: 1.75rem; }
.gate p { color: var(--muted); margin-top: var(--s3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* label swaps */
.sm { display: none; }
@media (max-width: 599px) {
  .lg { display: none; }
  .sm { display: inline; }
  .copyline code { flex-direction: column; align-items: flex-start; gap: 2px; }
  .btn { white-space: nowrap; }
}
@media (max-width: 520px) {
  .scr-body.has-dialog > .scr-nav, .scr-body.has-dialog > .scr-main { display: none; }
  .scr-body.has-dialog .scr-dim { position: static; padding: 16px 12px; min-height: 260px; }
  .scr-dialog { width: 100%; }
}

/* ---------- Shared additions ---------- */
.step-meta .n { font: 400 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--honey-deep); }
.group > h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }
.unlocks h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }
.pair .x { font-family: var(--mono); font-weight: 400; }
.welcome .eyebrow { display: block; margin-top: var(--s6); font: 400 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--honey); }
.welcome h1 { margin-top: var(--s3); }
.welcome h1 .mark { color: var(--honey); }
.cell .num { font-family: var(--mono); font-weight: 400; }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips.facts { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.chips.facts .chip span { justify-content: flex-start; text-align: left; width: 100%; border-radius: var(--r-sm); padding-left: 40px; position: relative; min-height: 48px; }
.chips.facts .chip span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--panel); }
.chips.facts .chip input:checked + span { background: var(--honey-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--honey-deep); }
.chips.facts .chip input:checked + span::before { background: var(--honey-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: none; }
.field .req { color: var(--orange); font-weight: 700; }
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); max-width: 720px; margin: 0 auto; padding: var(--s6) var(--gutter) 120px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.site-foot .brand { display: flex; align-items: center; gap: var(--s3); }
.site-foot img { height: 32px; width: auto; }
.site-foot a { color: inherit; text-decoration: none; font-weight: 500; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.welcome .site-foot, .finish .site-foot { border-top-color: #2c3036; color: var(--on-dark-3); padding-bottom: var(--s6); max-width: 1120px; }
.finish .site-foot { width: 100%; max-width: 560px; padding-inline: 0; }
.welcome .site-foot a:hover, .finish .site-foot a:hover { color: #fff; }
.welcome { align-items: stretch; grid-template-rows: 1fr auto; }
.welcome-inner { align-self: center; }
.rail .foot-links { font-size: .8125rem; }
.rail .foot-links a { color: var(--muted); }
.step h2:focus:not(:focus-visible), .finish h1:focus:not(:focus-visible), .step h2[tabindex="-1"]:focus { outline: none; }
.welcome > .site-foot { width: calc(100% - 2 * var(--gutter)); }
.group .hint { white-space: pre-line; }
