/* Antrepreneur demo: screens. Operate mode. White and soft grey panels, near-black buttons, one blue accent.
   Crumb and the garden scenes carry the personality; the interface stays calm and sits on panels, never straight on a busy image. */
html { background: #F1F2F4; }
body { min-height: 100dvh; background: #F1F2F4; }
body.noscroll { overflow: hidden; }
.phone { position: relative; width: 100%; max-width: 430px; height: 100dvh; margin: 0 auto; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 560px) { .phone { box-shadow: 0 0 0 1px rgba(14, 16, 19, .08), 0 30px 80px -30px rgba(20, 30, 50, .35); } }
@media (min-width: 960px) { .phone { max-width: none; box-shadow: none; } }
#app { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.visually-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: 14px; line-height: 1.4; }
.tint { color: var(--ink-2); }
.textbtn { appearance: none; background: none; border: 0; padding: 10px 2px; min-height: 44px; font: 500 15px var(--sans); color: var(--blue); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.textbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.textbtn .ic { width: 18px; height: 18px; }
h1.signface { font-size: 38px; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.4; margin-top: 10px; }
.h2 { display: flex; align-items: center; gap: 9px; font: 500 20px/1.2 var(--sans); letter-spacing: -.015em; margin-bottom: 10px; }
.h3 { font: 500 17px/1.25 var(--sans); letter-spacing: -.01em; margin: 14px 0 6px; }
.h-small { font: 500 17px var(--sans); margin: 22px 0 8px; }
.ic.mk { width: 22px; height: 22px; }
.crumb { display: block; width: auto; user-select: none; -webkit-user-drag: none; }

/* ---------- top bar, tabs ---------- */
.top { flex: none; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: #fff; box-shadow: 0 1px 0 var(--hair); }
.top .mark img { width: 34px; height: 34px; }
.top .mark b { font-size: 20px; }
.chips { display: flex; gap: 6px; }
.chip { appearance: none; border: 0; background: var(--panel); color: var(--ink); min-height: 44px; min-width: 44px; padding: 0 13px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 500 17px var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--panel-2); }
.chip.icon { padding: 0 10px; }
.chip .ic { width: 24px; height: 24px; }
.shell { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 22px; }
.tabs { flex: none; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: 0 -1px 0 var(--hair); padding: 0 0 env(safe-area-inset-bottom); }
.tabs.three { grid-template-columns: repeat(3, 1fr); }
.tabs button { appearance: none; border: 0; background: none; color: var(--ink-2); min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 500 12.5px var(--sans); cursor: pointer; position: relative; }
.tabs button .ic { width: 26px; height: 26px; }
.tabs button[aria-current="page"] { color: var(--blue); }
.tabs button[aria-current="page"] .ic { --lc: var(--blue); --tint: rgba(31, 107, 255, .2); }
.tabs .dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 10px; height: 10px; border-radius: 50%; background: var(--tang); box-shadow: 0 0 0 2px #fff; }
.tabs button:focus-visible { outline-offset: -4px; }

/* ---------- onboarding ---------- */
.ob { min-height: 100%; display: flex; flex-direction: column; padding: 26px 20px 24px; }
.ob-body { display: flex; flex-direction: column; gap: 6px; }
.ob-body h1 { margin-top: 18px; }
.welcome { padding: 0; background: #fff; }
.welcome .ob-photo { position: relative; margin: 0; height: 54dvh; min-height: 340px; flex: none; overflow: hidden; background: #8CC4F0; }
.welcome .ob-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.welcome .ob-body { position: relative; margin-top: -26px; border-radius: 26px 26px 0 0; background: #fff; padding: 24px 20px 26px; gap: 12px; flex: 1; }
.welcome h1 { margin: 0; font-size: 36px; }
.welcome p { font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.welcome .quiet { font-size: 14px; }
.quiet { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ob-list { display: grid; gap: 12px; margin: 24px 0; }
.bigopt { appearance: none; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair-2); min-height: 76px; font-size: 30px; cursor: pointer; text-align: left; padding: 0 22px; border-radius: var(--r-card); color: var(--ink); display: flex; align-items: center; }
.bigopt:hover { background: var(--panel); }
.bigopt.sel, .bigopt:active { box-shadow: inset 0 0 0 2px var(--ink); }
.chipset { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chipset.small { margin: 4px 0 18px; }
.pill { appearance: none; border: 0; cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair-2); min-height: 46px; padding: 0 16px; border-radius: 999px; font: 500 16px var(--sans); color: var(--ink); text-align: left; }
.pill:hover { background: var(--panel); }
.pill.sel { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); color: #0B3FA8; }
.chipset.small .pill { font-size: 14px; min-height: 44px; padding: 8px 14px; line-height: 1.2; border-radius: 12px; }
.ob-foot { margin-top: auto; padding-top: 20px; display: flex; gap: 10px; }
.btn.back { min-width: 56px; padding: 0 14px; background: var(--panel); color: var(--ink); }
.btn.grow, .grow { flex: 1; }
.ideas { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ideabtn { appearance: none; border: 0; width: 100%; text-align: left; background: #fff; box-shadow: var(--shadow-card); padding: 12px 14px 12px 74px; border-radius: var(--r-card); cursor: pointer; color: var(--ink); display: grid; gap: 3px; min-height: 76px; position: relative; }
.ideabtn:hover { background: #FAFAFB; }
.ideabtn .itile { position: absolute; left: 14px; top: 14px; }
.ideabtn .n { font: 500 18px/1.15 var(--sans); letter-spacing: -.01em; }
.ideabtn .l { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.ideabtn .matchtag { font-style: normal; font-size: 12px; font-weight: 500; color: var(--blue); }
.itile { width: 46px; height: 46px; border-radius: 12px; background: var(--panel); display: inline-grid; place-items: center; flex: none; }
.itile .ic { width: 28px; height: 28px; }
.ideaart { width: 84px; height: 84px; border-radius: 22px; background: var(--panel); display: grid; place-items: center; margin: 18px 0 4px; }
.ideaart .ic { width: 52px; height: 52px; --lc: var(--ink); --tint: rgba(31, 107, 255, .22); }
.idea-detail .lead { margin-top: 6px; }
.firststep { margin: 16px 0 4px; padding: 14px 16px; background: var(--panel); border-radius: var(--r-card); display: grid; gap: 4px; }
.firststep b { font-weight: 500; font-size: 14px; color: var(--blue); }
.steps { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.field { display: grid; gap: 6px; margin: 16px 0 0; }
.field > span { font-size: 14px; color: var(--ink-2); }
.field input, .field textarea, .bfield input, .bfield textarea, .slot textarea { font: 500 18px/1.3 var(--sans); color: var(--blue); background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px var(--hair-2); border-radius: var(--r-card); padding: 13px 14px; width: 100%; resize: none; min-height: 52px; }
.field input:focus, .field textarea:focus, .bfield input:focus, .bfield textarea:focus, .slot textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.field input::placeholder, .field textarea::placeholder, .bfield input::placeholder, .slot textarea::placeholder { color: var(--ink-3); font-weight: 400; }
.namesign { margin-top: 18px; min-height: 96px; border-radius: var(--r-panel); background: var(--panel); display: grid; place-items: center; padding: 14px; text-align: center; font-size: 30px; letter-spacing: -.02em; overflow-wrap: anywhere; }

/* ---------- the path: a garden trail Crumb walks. Chips are placed from the tile data, not by hand. ---------- */
.pathhead { padding: 12px 14px 4px; }
.pathrow { display: flex; gap: 8px; align-items: stretch; }
.level { flex: 1; min-width: 0; padding: 10px 14px 11px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); }
.lv { font-size: 15px; line-height: 1.25; }
.lv .signface { font-weight: 500; margin-right: 5px; }
.bar { height: 8px; border-radius: 8px; background: var(--hair); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 8px; background: var(--blue); transition: width .5s ease; }
.lvn { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }
.wardbtn { appearance: none; border: 0; cursor: pointer; width: 72px; flex: none; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 500 12px var(--sans); color: var(--ink); min-height: 64px; }
.wardbtn .ic { width: 28px; height: 28px; }
.wardbtn:hover { background: var(--panel); }
.ailegend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 8px 16px 6px; font-size: 13px; color: var(--ink-2); }
.ailegend li { display: inline-flex; align-items: center; gap: 5px; }
.ailegend .ic { width: 20px; height: 20px; }
.unit { margin-top: 10px; }
.unitsign { margin: 0 14px; padding: 12px 14px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); position: relative; z-index: 4; }
.unitsign h2 { font: 500 21px/1.2 var(--sans); letter-spacing: -.015em; }
.unitsign p { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; }
.unitsign .textbtn { padding: 4px 0 0; min-height: 36px; font-size: 14px; }
.unit.preview .unitsign, .unit.preview .unitline { margin-left: 14px; margin-right: 14px; width: calc(100% - 28px); }
.unitline { appearance: none; border: 0; cursor: pointer; width: calc(100% - 28px); margin: 8px 14px 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); border-radius: var(--r-card); min-height: 54px; padding: 8px 14px; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; text-align: left; color: var(--ink); }
.unitline:hover { background: var(--panel); }
.unitline .ul-t { font: 500 15.5px/1.25 var(--sans); grid-column: 1; }
.unitline .ul-d { font-size: 12.5px; color: var(--ink-2); grid-column: 1; }
.unitline .ic { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; }
.unitline.done .ul-t { color: var(--ink-2); }
.unitline.more { margin-top: 10px; }
.trail { position: relative; margin-top: 10px; }
.tile { position: relative; width: calc(100% - 28px); margin: 0 14px 18px; aspect-ratio: 2 / 3; }
.tile .tbg { position: absolute; inset: 0; border-radius: 22px; background-color: #9a7a4a; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(14, 16, 19, .08); }
.node { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border: 0; background: none; padding: 0; cursor: pointer; z-index: 3; color: var(--ink); text-align: left; }
.node .mkr { position: absolute; inset: 3px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px rgba(14, 16, 19, .1), 0 6px 12px -6px rgba(14, 16, 19, .55); }
.node .mkr .ic { width: 20px; height: 20px; }
.node.done .mkr { background: var(--ink); }
.node.done .mkr .ic { --lc: #fff; --sw: 2.2; }
.node.done .mkr .ic .f { display: none; }
.node.locked .mkr .ic, .node.soon .mkr .ic { --lc: #6B7078; --tint: rgba(107, 112, 120, .18); }
.node.out .mkr { background: var(--tang); }
.node.out .mkr .ic { --lc: #fff; }
.node.out .mkr .ic .f { display: none; }
.node .lab { position: absolute; top: 50%; transform: translateY(-50%); width: max-content; max-width: 160px; padding: 6px 10px 7px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(14, 16, 19, .08), 0 10px 22px -12px rgba(14, 16, 19, .6); font-size: 13px; line-height: 1.25; display: grid; gap: 2px; }
.node.r .lab { left: calc(100% + 2px); }
.node.l .lab { right: calc(100% + 2px); }
.node .lab .d { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; }
.node .lab .d .ic { width: 17px; height: 17px; }
.node .lab .t { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.node .lab .nm { display: none; }
.node.locked .lab, .node.soon .lab { color: #565B63; }
.node .lab .ms { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--blue); margin-top: 1px; }
.node .lab .ms .ic { width: 15px; height: 15px; --lc: var(--blue); }
.node .lab .skippill, .node .lab .outpill { font-size: 11.5px; font-weight: 600; color: #B34A00; }
.node .hole, .node .kinds, .node .donestamp, .node .go, .node .lk { display: none; }
.node.today .mkr { background: var(--blue); }
.node.today .mkr .ic { opacity: 0; }
.node.today .ring { position: absolute; left: 50%; top: 50%; width: 118px; height: 36px; border: 3px solid var(--blue); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; animation: ringp 2.6s ease-in-out infinite; }
.node.today .pc { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); height: 138px; width: auto; pointer-events: none; transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; filter: drop-shadow(0 8px 6px rgba(40, 20, 0, .3)); }
.node.today .lab { top: calc(100% + 12px); left: 50%; right: auto; transform: translateX(-50%); width: 218px; max-width: none; padding: 10px 10px 10px 14px; border-radius: 14px; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
.node.today .lab .tx { display: grid; gap: 1px; }
.node.today .lab .t { font-size: 16px; color: var(--ink); font-weight: 500; -webkit-line-clamp: 2; }
.node.today .lab .go-b { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; grid-row: 1 / span 2; grid-column: 2; }
.node.today .lab .go-b .ic { --lc: #fff; --sw: 2.2; width: 22px; height: 22px; }
.node.today .lab .go-b .ic .f { display: none; }
.node.today .lab .ms { grid-column: 1 / -1; }
.node.soon .pc { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); height: 124px; width: auto; pointer-events: none; filter: drop-shadow(0 8px 6px rgba(40, 20, 0, .3)); }
.node .aimk { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.node .aimk .ic { width: 16px; height: 16px; }
.aimk span, .aichip span { white-space: nowrap; }
.demonote { text-align: center; font-size: 13px; color: var(--ink-2); padding: 14px 20px 6px; }
.demonote .textbtn { display: inline; padding: 0; min-height: 0; font-size: 13px; }

/* the next real step card */
.outbar { margin: 12px 14px 0; padding: 14px 14px 12px; border-radius: var(--r-panel); background: var(--panel); }
.outbar.quiet { padding: 12px 16px; }
.outbar .h2 { font-size: 18px; margin-bottom: 6px; }
.ob-t { font-size: 16px; line-height: 1.3; }
.ob-d { color: var(--ink-2); margin: 4px 0 10px; }
.obtns { display: flex; flex-wrap: wrap; gap: 8px; }
.obtns .btn { min-height: 46px; padding: 0 16px; font-size: 15px; }
.outbar .more { margin-top: 8px; font-size: 14px; }
.outbar .more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--blue); font-weight: 500; }
.outbar .more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.outbar .more button { appearance: none; border: 0; background: #fff; border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; text-align: left; font: 400 14px var(--sans); cursor: pointer; }

/* ---------- today ---------- */
.sect { margin: 12px 14px 0; padding: 16px; border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-card); }
.sect.streak { background: var(--panel); box-shadow: none; }
.streakrow { display: flex; align-items: center; gap: 16px; }
.stepsmark { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; flex: none; }
.stepsmark .ic { width: 40px; height: 40px; --tint: rgba(31, 107, 255, .24); }
.bignum { font: 500 46px/1 var(--sans); letter-spacing: -.03em; }
.week { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week li { display: grid; gap: 5px; justify-items: center; font-size: 11.5px; color: var(--ink-2); }
.week .cell { width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--hair); }
.week .cell .ic { width: 20px; height: 20px; }
.week .done .cell { background: var(--ink); box-shadow: none; }
.week .done .cell .ic { --lc: #fff; --sw: 2.3; }
.week .done .cell .ic .f { display: none; }
.week .rest .cell { background: var(--blue-soft); box-shadow: none; }
.week .now .cell { box-shadow: inset 0 0 0 2px var(--blue); }
.week .now .dn { color: var(--blue); font-weight: 600; }
.quests { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.quests li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--panel); }
.qbox { width: 28px; height: 28px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair-2); display: grid; place-items: center; flex: none; }
.quests .done .qbox { background: var(--blue); box-shadow: none; }
.quests .done .qbox .ic { width: 18px; height: 18px; --lc: #fff; --sw: 2.6; }
.quests .done .qbox .ic .f { display: none; }
.qt { flex: 1; font-size: 16px; line-height: 1.25; }
.quests .done .qt { color: var(--ink-2); }
.qm { font-size: 14px; color: var(--ink-2); }
.qstamp { font-size: 14px; color: var(--blue); font-weight: 500; }
.realtag, .aimade { font-style: normal; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--tang-soft); color: #A04600; }
.mtitle { font: 500 19px/1.25 var(--sans); letter-spacing: -.01em; margin-bottom: 4px; }
.sect.mission p { color: var(--ink-2); }
.sect.mission .mtitle { color: var(--ink); }
.note.hand { display: block; margin: 10px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); font-size: 17px; }

/* ---------- business: a garden stall that grows, with Crumb beside it ---------- */
.bizscene { position: relative; height: 330px; overflow: hidden; background: #8CC4F0; }
.bizscene .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.bizscene .stg { position: absolute; right: 2%; bottom: 40px; width: 62%; max-width: 270px; height: auto; filter: drop-shadow(0 12px 8px rgba(50, 30, 0, .28)); transition: opacity .4s ease; }
.bizscene .pc { position: absolute; left: 3%; bottom: 36px; height: 208px; width: auto; filter: drop-shadow(0 10px 7px rgba(50, 30, 0, .3)); animation: breathe 3.6s ease-in-out infinite; }
.bizscene .salechip { position: absolute; right: 10px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-pop); font-size: 13px; font-weight: 500; }
.bizscene .salechip img { width: 30px; height: 30px; object-fit: contain; }
.bizname { position: relative; margin: -34px 14px 0; z-index: 4; padding: 12px 14px 12px 16px; border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 12px; }
.stallhead { flex: 1; min-width: 0; }
.stallhead .big { font: 500 23px/1.12 var(--sans); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.bizidea { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.rankchip { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--tang-soft); color: #9A4300; font-size: 12.5px; font-weight: 600; }
.rankchip .ic { width: 16px; height: 16px; --lc: #9A4300; --tint: rgba(242, 106, 18, .25); }
.wardlink { appearance: none; border: 0; cursor: pointer; width: 64px; min-height: 60px; border-radius: 16px; background: var(--panel); display: grid; place-items: center; gap: 0; padding: 6px 0 4px; font: 500 11.5px var(--sans); color: var(--ink); flex: none; }
.wardlink .ic { width: 26px; height: 26px; }
.stallwrap { margin: 0; }
.stagestrip { margin: 12px 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stg-t { position: relative; border-radius: 12px; background: var(--panel); padding: 8px 4px 8px; display: grid; justify-items: center; gap: 3px; font-size: 12px; font-weight: 500; text-align: center; min-height: 104px; align-content: end; }
.stg-t img { height: 56px; width: auto; max-width: 80%; object-fit: contain; }
.stg-t small { font-size: 11px; color: var(--ink-2); font-weight: 400; }
.stg-t.on { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.stg-t.off img { filter: grayscale(1) opacity(.35); }
.stg-t .lk { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; }
.stallnote { margin: 10px 18px 0; }
.stallnote .bar { margin-top: 8px; }
.ledger table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.ledger th { font-size: 12.5px; font-weight: 500; color: var(--ink-2); text-align: left; padding: 6px 0; box-shadow: inset 0 -1px 0 var(--hair); }
.ledger th.r, .ledger td.r { text-align: right; }
.ledger td { padding: 10px 0; vertical-align: top; box-shadow: inset 0 -1px 0 var(--hair); font-size: 15.5px; }
.ledger .when { display: block; font-size: 12.5px; color: var(--ink-2); }
.ledger tr.plan td:first-child { color: var(--ink-2); }
.empty { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.totals > div { background: var(--panel); border-radius: 12px; padding: 10px 12px; }
.totals dt { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.totals dt .ic { width: 20px; height: 20px; }
.totals dd { margin: 3px 0 0; font: 500 22px/1.1 var(--sans); letter-spacing: -.02em; }
.totals .profit dd { color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two .btn { min-height: 48px; font-size: 15px; padding: 0 12px; }
.fund .budgetline { font-size: 17px; }
.bar2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 8px; }
.bar2 i { display: block; height: 10px; border-radius: 6px; background: var(--hair); }
.bar2 i.on { background: var(--blue); }
.note-plain { padding: 12px 14px; border-radius: 12px; background: var(--panel); margin: 8px 0; font-size: 15px; line-height: 1.4; }
.fund .btn.block { margin-top: 10px; }
.madelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.madelist li { display: grid; gap: 4px; }
.madetext { font-size: 17px; }
.aimade { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); color: var(--ink-2); width: fit-content; }
.aimade .ic { width: 16px; height: 16px; }
.fnote { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--hair); }
.fnote:last-child { box-shadow: none; }
.fn-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fnote ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.fnote li.hand { font-size: 16px; line-height: 1.35; }
.fn-ok { font-size: 13px; color: var(--blue); font-weight: 600; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badges li { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border-radius: 12px; background: var(--panel); font-size: 14px; line-height: 1.2; color: var(--ink-2); }
.badges li.got { background: var(--blue-soft); color: var(--ink); }
.bstamp { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.bstamp .ic { width: 24px; height: 24px; }
.badges li:not(.got) .bstamp .ic { --lc: #8A8F97; --tint: rgba(138, 143, 151, .16); }
.badges li.realb.got { background: var(--tang-soft); }

/* ---------- wardrobe ---------- */
.ward { position: relative; min-height: 100%; display: flex; flex-direction: column; background: #B8793F; overflow: hidden; }
.ward .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ward .wtop { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.ward .wtop .back { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-pop); }
.ward .wtop .chip { background: #fff; box-shadow: var(--shadow-pop); }
.wtitle { position: relative; z-index: 3; text-align: center; padding: 0 14px; }
.wtitle h1 { display: inline-block; padding: 6px 18px 7px; border-radius: 999px; background: #fff; font: 500 22px/1.2 var(--sans); letter-spacing: -.015em; box-shadow: var(--shadow-pop); }
.wtitle .rk { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--tang-soft); color: #8A3C00; font-size: 13px; font-weight: 600; }
.wtitle .rk .ic { width: 18px; height: 18px; --lc: #8A3C00; --tint: rgba(242, 106, 18, .25); }
.wstage { position: relative; z-index: 2; flex: 1; min-height: 360px; display: grid; place-items: end center; padding-bottom: 6px; }
.wstage .big { height: min(52dvh, 440px); min-height: 300px; width: auto; max-width: 60%; object-fit: contain; filter: drop-shadow(0 16px 10px rgba(50, 25, 0, .35)); animation: breathe 3.8s ease-in-out infinite; }
.wrb { position: absolute; z-index: 4; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 500 12px var(--sans); color: #fff; text-shadow: 0 1px 8px rgba(60, 30, 0, .85); text-align: center; background: none; border: 0; padding: 0; cursor: pointer; }
.wrb .c { position: relative; width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 12px -4px rgba(60, 30, 0, .6); }
.wrb .c img { width: 46px; height: 46px; object-fit: contain; }
.wrb.on .c { box-shadow: 0 0 0 3px var(--blue), 0 6px 12px -4px rgba(60, 30, 0, .6); }
.wrb .ok { position: absolute; right: -3px; top: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.wrb .ok .ic { width: 13px; height: 13px; --lc: #fff; --sw: 2.8; }
.wrb .ok .ic .f { display: none; }
.wrb.lock .c img { filter: grayscale(1) opacity(.4); }
.wrb .lkb { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.wrb .lkb .ic { width: 13px; height: 13px; --lc: #fff; --sw: 2.2; }
.wrb .lkb .ic .f { display: none; }
.wrb small { font-size: 10.5px; font-weight: 400; opacity: .95; line-height: 1.2; max-width: 80px; }
.wrb.lt { left: 12px; } .wrb.rt { right: 12px; }
.wsheet { position: relative; z-index: 5; margin: 0 12px 14px; padding: 12px 14px; border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 12px; }
.wsheet > img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.wsheet .tx { flex: 1; min-width: 0; }
.wsheet b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.wsheet small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.3; margin-top: 2px; }
.wsheet .btn { min-height: 46px; padding: 0 16px; font-size: 15px; flex: none; }
.plainbtn { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 82px; }

/* ---------- lessons ---------- */
.lesson { min-height: 100%; display: flex; flex-direction: column; background: #fff; }
.lhead { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px 8px; position: sticky; top: 0; z-index: 10; background: #fff; }
.lhead .x { appearance: none; border: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; cursor: pointer; flex: none; }
.lhead .x:hover { background: var(--panel-2); }
.perf { flex: 1; display: flex; gap: 4px; }
.perf i { flex: 1; height: 10px; border-radius: 6px; background: var(--hair); }
.perf i.on { background: var(--blue); }
.perf i.cur { background: #A9C5FF; }
.aichip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 500; flex: none; }
.aichip .ic { width: 20px; height: 20px; }
.lbody { flex: 1; padding: 6px 18px 24px; }
.again { font-size: 13.5px; color: var(--blue); font-weight: 600; margin-bottom: 4px; }
.qhead { display: flex; align-items: flex-end; gap: 6px; margin: 4px 0 4px; }
.qhead .q { flex: 1; margin: 0 0 6px; }
.qc { width: 86px; flex: none; margin-bottom: 0; filter: drop-shadow(0 6px 5px rgba(40, 20, 0, .2)); }
.q { font: 400 26px/1.2 var(--sans); letter-spacing: -.02em; margin: 8px 0 14px; }
.exp { font-size: 17.5px; line-height: 1.45; margin: 12px 0 0; color: #2C3037; }
.photo { margin: 0 0 14px; border-radius: var(--r-card); overflow: hidden; }
.photo img { width: 100%; height: auto; }
.scene { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; padding: 10px 14px; border-radius: 16px; background: var(--panel); }
.scene svg.fig { width: 52px; height: 52px; flex: none; }
.scene .cap { flex: 1; display: grid; }
.scene .cap b { font-weight: 500; }
.scene .cap span { font-size: 13px; color: var(--ink-2); }
.scene .props { display: flex; gap: 4px; }
.scene .props .ic { width: 26px; height: 26px; }
.opts { display: grid; gap: 10px; margin-top: 12px; }
.opt { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 62px; padding: 12px 16px; border-radius: var(--r-card); border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); font: 400 17px/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.opt:hover { background: #FAFAFB; }
.opt.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.opt.right { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.opt.wrongo { background: var(--tang-soft); box-shadow: inset 0 0 0 2px var(--tang); }
.opt[disabled] { cursor: default; }
.opt .ic.mk { width: 24px; height: 24px; }
.opt.right .ic { --lc: var(--blue); } .opt.wrongo .ic { --lc: #B34A00; }
.note { margin: 14px 0 6px; padding: 14px 16px; border-radius: var(--r-card); line-height: 1.4; font-size: 16.5px; background: var(--panel); }
.note.good { background: var(--blue-soft); }
.note.bad { background: var(--tang-soft); }
.note.alt { background: var(--panel); }
.note b { font-weight: 600; }
.sortcard { margin: 12px 0; padding: 26px 18px; border-radius: var(--r-panel); background: var(--panel); text-align: center; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; min-height: 110px; display: grid; place-items: center; }
.count { margin-top: -4px; }
.buckets { margin-top: 8px; }
.bucket { appearance: none; border: 0; min-height: 60px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair-2); font: 500 16px var(--sans); color: var(--ink); cursor: pointer; padding: 8px 10px; }
.bucket:hover { background: var(--panel); }
.bucket.right { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.bucket.wrongo { background: var(--tang-soft); box-shadow: inset 0 0 0 2px var(--tang); }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.match .col { display: grid; gap: 8px; align-content: start; }
.mb { appearance: none; border: 0; min-height: 64px; padding: 8px 10px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair-2); font: 400 14.5px/1.25 var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.mb.sel { box-shadow: inset 0 0 0 2px var(--ink); background: var(--panel); }
.mb.ok { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.mb.bad { background: var(--tang-soft); box-shadow: inset 0 0 0 2px var(--tang); }
.numshow { margin: 12px 0; min-height: 86px; border-radius: var(--r-panel); background: var(--panel); display: grid; place-items: center; font-size: 44px; letter-spacing: -.02em; }
.numshow.right { background: var(--blue-soft); }
.numshow.wrongo { background: var(--tang-soft); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.keypad button { appearance: none; border: 0; min-height: 56px; border-radius: 12px; background: var(--panel); font: 500 24px var(--sans); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.keypad button:hover { background: var(--panel-2); }
.keypad button:active { background: #E2E4E8; }
.checks { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; gap: 8px; padding: 12px 14px; background: var(--panel); border-radius: var(--r-card); }
.yn { display: flex; gap: 8px; }
.yn .pill { min-height: 44px; }
.lfoot { position: sticky; bottom: 0; z-index: 10; flex: none; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--hair); display: grid; gap: 8px; }
.foothint { text-align: center; margin: 0; }
.ailine { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: var(--panel); }
.ailine .ic { width: 22px; height: 22px; margin-top: 1px; }

/* the real-world step: a tag Crumb carries out into the world */
.mtag { position: relative; margin: 6px 0 14px; padding: 18px 16px 16px; border-radius: var(--r-panel); background: var(--panel); display: grid; gap: 6px; overflow: hidden; }
.mtag .mt-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--blue); }
.mtag .mt-h .ic { width: 22px; height: 22px; --lc: var(--blue); }
.mtag .q { font-size: 28px; margin: 6px 0 4px; max-width: 62%; }
.mtag .actbody { font-size: 18px; line-height: 1.4; max-width: 66%; }
.mtag .pc { position: absolute; right: 2px; bottom: 0; height: 190px; width: auto; filter: drop-shadow(0 8px 6px rgba(40, 20, 0, .25)); }
.mtag.wide .q, .mtag.wide .actbody { max-width: none; }
.madeline { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); margin: 0 0 10px; font-size: 15px; }
.exp.tint { color: var(--ink-2); font-size: 15.5px; }
.slots { display: grid; gap: 10px; margin: 14px 0; }
.slot { display: grid; gap: 4px; }
.slot > span { font-size: 13.5px; color: var(--ink-2); }
.slot textarea { min-height: 56px; }
.tickrow { appearance: none; border: 0; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair-2); text-align: left; font: 400 16.5px/1.3 var(--sans); color: var(--ink); cursor: pointer; margin-top: 8px; }
.tickrow.on { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.tickbox { width: 28px; height: 28px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair-2); display: grid; place-items: center; flex: none; }
.tickrow.on .tickbox { background: var(--blue); box-shadow: none; }
.tickbox .ic { width: 18px; height: 18px; --lc: #fff; --sw: 2.6; }
.tickbox .ic .f { display: none; }

/* helper workbench: the helper's words sit in a grey box labelled as a draft, the child's words are blue */
.bfields { display: grid; gap: 10px; margin: 12px 0; }
.bfield { display: grid; gap: 5px; margin-top: 12px; }
.bfield > span { font-size: 14px; color: var(--ink-2); }
.bfields .bfield { margin-top: 0; }
.reqbox { padding: 12px 14px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); margin: 10px 0; }
.reqbox p { margin-top: 4px; font-size: 16px; line-height: 1.4; }
.reqbox.sent { background: var(--panel); box-shadow: none; }
.sample { display: inline-block; font-size: 12.5px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--panel); color: var(--ink-2); margin: -4px 0 8px; }
.draft { position: relative; margin: 10px 0; padding: 12px 14px 14px; border-radius: var(--r-card); background: var(--panel); }
.dlabel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.dlabel .ic { width: 20px; height: 20px; }
.dtext { font-size: 16px; line-height: 1.45; color: #2C3037; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick { appearance: none; border: 0; width: 100%; min-height: 50px; padding: 8px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); font: 400 17px var(--sans); text-align: left; cursor: pointer; color: var(--ink); }
.pick.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.segs { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { appearance: none; border: 0; padding: 8px 10px; min-height: 44px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); font: 400 16px var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.seg.looked { color: #8A8F97; text-decoration: line-through; text-decoration-color: #B8BCC3; }
.fixedseg { padding: 8px 10px; border-radius: 10px; background: var(--blue-soft); display: inline-flex; font-size: 16px; }
.foundstamp { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; }
.checkone { padding: 12px 14px; border-radius: var(--r-card); background: var(--blue-soft); display: grid; gap: 4px; font-size: 15px; line-height: 1.4; margin: 8px 0; }
.lookagain { color: #A04600; font-weight: 500; }
.benchhint { text-align: center; min-height: 18px; }

/* ---------- complete ---------- */
.donepage { min-height: 100%; display: flex; flex-direction: column; padding: 0 18px 24px; gap: 4px; }
.ctop { position: sticky; top: 0; margin: 0 -18px; padding: 10px 18px; }
.ctop .plus { color: var(--blue); font-weight: 600; font-size: 20px; margin-left: 4px; }
.stampwrap { display: grid; place-items: center; margin: 10px 0 0; }
.donehero { position: relative; display: grid; place-items: center; width: 100%; padding: 6px 0 0; }
.donehero .pc { height: 230px; width: auto; filter: drop-shadow(0 12px 8px rgba(40, 20, 0, .3)); animation: hop 1.6s ease-out 1; }
.donehero .badge { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 6px 18px 7px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px var(--sans); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.donehero .badge .ic { width: 20px; height: 20px; --lc: #fff; --sw: 2.4; }
.donehero .badge .ic .f { display: none; }
.donepage h1 { text-align: center; font-size: 34px; margin-top: 18px; }
.donepage .lead { text-align: center; margin-top: 4px; }
.newlook { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-card); background: var(--blue-soft); }
.newlook img { width: 56px; height: 56px; object-fit: contain; }
.newlook b { font-weight: 600; display: block; }
.back.out, .back { margin-top: 10px; padding: 14px 16px; border-radius: var(--r-card); background: var(--panel); }
.back .h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.wrote { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wrote li.hand { font-size: 16.5px; line-height: 1.35; }
.tallyline { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-card); background: var(--panel); }
.tallyline .stepsmark { width: 52px; height: 52px; border-radius: 16px; }
.tallyline .stepsmark .ic { width: 32px; height: 32px; }
.tallyline .bignum { font-size: 40px; }
.tagprev { position: relative; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair-2); display: grid; gap: 2px; }
.tagprev .hole { display: none; }
.tagprev .tp-l { font-size: 12.5px; color: var(--blue); font-weight: 600; }
.tagprev .d { font-size: 20px; font-weight: 500; }
.tagprev .t { font-size: 16px; }
.tagprev .nm { font-size: 13px; color: var(--ink-2); }
.ministall { margin: 14px 0 6px; padding: 12px; border-radius: var(--r-card); background: var(--panel); display: grid; gap: 4px; justify-items: center; }
.ministall img { height: 120px; width: auto; }
.donepage > .btn { margin-top: auto; }
.seq1, .seq2, .seq3 { animation: none; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(14, 16, 19, .5); }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 0 18px 24px; box-shadow: 0 -20px 60px -20px rgba(14, 16, 19, .5); }
@media (min-width: 560px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; } }
.shead { position: sticky; top: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 16px 0 10px; z-index: 2; }
.shead h2 { font-size: 24px; }
.shead .x { appearance: none; border: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; cursor: pointer; }
.sbody { display: grid; gap: 12px; align-content: start; }
.sbody p { line-height: 1.45; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--hair); }
.setrow > div { display: grid; gap: 2px; }
.setrow b { font-weight: 500; }
.setrow b.inl { display: inline-flex; align-items: center; gap: 6px; }
.setrow input[type="time"] { font: 500 18px var(--sans); border: 0; background: var(--panel); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.switch { appearance: none; border: 0; cursor: pointer; min-width: 84px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--panel-2); display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 14px var(--sans); color: var(--ink); }
.switch .sw-k { width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(14, 16, 19, .3); }
.switch[aria-checked="true"] { background: var(--blue); color: #fff; flex-direction: row-reverse; padding: 0 14px 0 6px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { appearance: none; border: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); font: 500 22px var(--sans); cursor: pointer; display: grid; place-items: center; }
.stepper output { min-width: 26px; text-align: center; font-weight: 500; font-size: 18px; }
.numshow .hand { color: var(--blue); }
.who { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who legend { width: 100%; margin-bottom: 6px; }
.sheet hr { border: 0; height: 1px; background: var(--hair); margin: 8px 0; width: 100%; }
.celeb { display: grid; justify-items: center; text-align: center; gap: 8px; padding-bottom: 6px; }
.celeb .pc { height: 200px; width: auto; filter: drop-shadow(0 10px 8px rgba(40, 20, 0, .3)); animation: hop 1.4s ease-out 1; }
.celeb .bigstamp { padding: 8px 22px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 20px var(--sans); letter-spacing: -.01em; }
.celeb .plus15 { font-size: 26px; color: var(--blue); font-weight: 500; }
.celeb .wrote.left { justify-items: start; text-align: left; width: 100%; }
.bigstamp small { display: block; font-size: 12px; font-weight: 400; opacity: .8; }


/* ---------- parent view: the calmest version. No scenes behind text. ---------- */
body.parent .phone { background: #fff; }
.ptop { flex: none; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; box-shadow: 0 1px 0 var(--hair); }
.ptop > div { display: grid; }
.ptop b { font: 500 20px var(--sans); letter-spacing: -.015em; }
.ptop span { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.ptop .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.pmain { padding: 12px 14px 30px; display: grid; gap: 12px; max-width: 760px; width: 100%; margin: 0 auto; }
.pcard { padding: 18px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); }
.pcard .h2 { font-size: 20px; }
.pcard p + p { margin-top: 6px; }
.req { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--panel); }
.gate { margin: 10px 0 12px; display: grid; gap: 10px; }
.gate dt { font-size: 13px; color: var(--ink-2); }
.gate dd { margin: 2px 0 0; font-size: 16.5px; }
.rsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rsteps li { display: grid; gap: 6px; padding-bottom: 14px; box-shadow: inset 0 -1px 0 var(--hair); }
.rsteps li:last-child { box-shadow: none; padding-bottom: 0; }
.rsteps b { font-weight: 500; }
.rsteps .btn { min-height: 46px; justify-self: start; font-size: 15px; }
.ailog { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.ailog li { padding: 12px 0; box-shadow: inset 0 1px 0 var(--hair); display: grid; gap: 6px; }
.ailog li b { font-weight: 500; }
.ailog .mine { font-size: 16px; }
.ailog .draft { margin: 2px 0; }
.rc { display: grid; gap: 0; margin: 10px 0; }
.rc > div { display: flex; justify-content: space-between; padding: 9px 0; box-shadow: inset 0 -1px 0 var(--hair); font-size: 16px; }
.rc dt { color: var(--ink-2); }
.rc dd { margin: 0; font-weight: 500; }
.rc .tot { box-shadow: none; font-weight: 500; }
.rc .tot dd { color: var(--blue); }
.learned { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.starter { font: 400 22px/1.3 var(--sans); letter-spacing: -.015em; }
.idxcard { background: var(--panel); box-shadow: none; }

/* ---------- desktop: path on the left, Today or Business beside it ---------- */
.shell.wide .panes { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(400px, 470px) minmax(0, 1fr); }
.shell.wide .pane { overflow-y: auto; min-height: 0; padding-bottom: 20px; }
.shell.wide .pane:first-child { box-shadow: 1px 0 0 var(--hair); }
.shell.wide .pane + .pane { max-width: 760px; width: 100%; margin: 0 auto; }
.shell.wide .tabs { grid-template-columns: repeat(4, 1fr); max-width: none; width: 100%; margin: 0; }
@media (min-width: 960px) { .welcome { flex-direction: row; } }

/* path chips stay compact: only today's stop carries its title; the others are a day number, and milestones ahead are flagged in blue */
.node:not(.today) .lab { max-width: 132px; padding: 5px 10px 6px; }
.node:not(.today) .lab .t, .node:not(.today) .lab .aimk { display: none; }
.node:not(.today) .lab .ms { white-space: normal; line-height: 1.2; max-width: 120px; }
.node.today { z-index: 6; }
.node.soon { z-index: 5; }
.photo { display: grid; place-items: center; padding: 14px; background: var(--panel); border-radius: var(--r-panel); }
.photo img { width: auto; max-width: 100%; height: 190px; object-fit: contain; }

.mflag { position: absolute; left: 50%; bottom: calc(100% + 1px); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px 11px 4px 8px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 12px/1.2 var(--sans); white-space: nowrap; box-shadow: 0 6px 12px -6px rgba(14, 16, 19, .6); pointer-events: none; }
.mflag .ic { width: 15px; height: 15px; --lc: #fff; --sw: 2; }
.mflag .ic .f { display: none; }
.wstage .big { height: min(44dvh, 380px); min-height: 280px; }
.wstage { padding-bottom: 12px; }

/* the parent gate (only when PAYMENTS_LIVE is on) */
.gatepage { min-height: 100%; display: flex; flex-direction: column; }
.gbody { padding: 10px 16px 40px; display: grid; gap: 12px; max-width: 560px; width: 100%; margin: 0 auto; }
.gcrumb { display: grid; place-items: center; padding-top: 6px; }
.gcrumb .crumb { height: 170px; width: auto; filter: drop-shadow(0 10px 8px rgba(40, 20, 0, .22)); }
.gbody h1 { text-align: center; font-size: 34px; }
.gbody .lead { text-align: center; margin-top: 0; }
.gmsg { min-height: 20px; margin-top: 10px; }
.gmsg.bad { color: #A04600; font-weight: 500; }
.gbody .btn.block { justify-content: space-between; }
.gbody #gatelist { margin-top: 10px; }

.wrb small { background: rgba(14, 16, 19, .74); padding: 2px 8px 3px; border-radius: 8px; text-shadow: none; opacity: 1; margin-top: 0; }
.ward .wtop .back .ic { width: 26px; height: 26px; }
.wsheet small .inl { min-height: 32px; padding: 0 2px; font-size: 13px; }
.wstage { min-height: 400px; }
.wrb .wl { background: rgba(14, 16, 19, .74); padding: 2px 10px 3px; border-radius: 999px; text-shadow: none; }

/* small phones: the top bar must fit three-digit stamp counts, and every tap target stays at least 44 px */
.top .mark { min-height: 44px; }
.demonote .textbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.wsheet small .inl { min-height: 44px; display: inline-flex; align-items: center; margin: -8px 0; }
@media (max-width: 400px) {
  .top { padding: 8px 10px; }
  .top .mark b { font-size: 17.5px; }
  .top .mark { gap: 6px; }
  .chips { gap: 4px; }
  .chip { padding: 0 10px 0 8px; gap: 5px; font-size: 16px; }
}

.obhead { display: flex; align-items: flex-end; gap: 6px; margin-top: 4px; }
.obhead h1 { flex: 1; margin: 0 0 6px; font-size: 34px; }
.obc { height: 112px; flex: none; filter: drop-shadow(0 6px 5px rgba(40, 20, 0, .2)); }
.ob-body .obhead + .lead { margin-top: 4px; }

/* ---- v3 ---- */
/* the toast is a row of its own: above the tab bar, or at the foot of a screen that has none. It never covers content. */
.toast { flex: none; height: 0; margin: 0 12px; overflow: hidden; opacity: 0; background: var(--ink); color: #fff; border-radius: 12px; font-size: 15px; line-height: 1.3; text-align: center; display: grid; place-items: center; pointer-events: none; transition: height .18s ease, opacity .18s ease, margin .18s ease; }
.toast.on { height: 46px; opacity: 1; margin: 6px 12px; }
.chip .cl { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ctop .chip .plus { color: var(--blue); font-weight: 600; font-size: 15px; margin: 0 0 0 2px; }
.gfield { display: grid; gap: 6px; }
.gfield .gl { font-size: 15px; }
.gfield .field { margin: 0; }
.gfield .chipset.small { margin: 0; }
.sbody > #gatesend { position: sticky; bottom: 0; box-shadow: 0 -14px 14px -4px #fff; }
.sheet { padding-bottom: 12px; }
.sbody { padding-bottom: 8px; }
/* day-4 gate: one screen, the unlock is the point */
.ghead { display: flex; align-items: flex-end; gap: 10px; }
.ghead .crumb { height: 118px; flex: none; filter: drop-shadow(0 8px 6px rgba(40, 20, 0, .2)); }
.ghead h1 { font-size: 32px; text-align: left; }
.ghead .small { margin-top: 2px; }
.gbody .gsum, .gbody .gbuy { padding: 14px 14px 14px; }
.gnums { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.gnums b { font: 500 24px var(--sans); color: var(--ink); margin-right: 3px; letter-spacing: -.02em; }
.gnums b ~ b { margin-left: 10px; }
.gsum .wrote li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; }
.gbody .gbuy .btn { margin-top: 4px; }
.gbody .h2 { margin-bottom: 6px; font-size: 18px; }
.gbody { gap: 10px; }

/* =========================================================================
   v3: the road, Today, the wardrobe tray, the lesson band, your words
   ========================================================================= */
/* ---- path head: where you are, and what is next ---- */
.pathhead { padding: 12px 14px 0; }
.level { padding: 11px 14px 12px; }
.lv { font-size: 16px; }
.lvd { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.nextup { list-style: none; margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-card); background: var(--panel); display: grid; gap: 8px; }
.nextup li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; }
.nextup img { width: 38px; height: 38px; object-fit: contain; }
.nextup .nui { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.nextup .nt { display: grid; gap: 1px; min-width: 0; }
.nextup b { font-weight: 500; font-size: 14.5px; line-height: 1.2; }
.nextup small { font-size: 12.5px; color: var(--ink-2); line-height: 1.25; }
.bar.sm { height: 6px; margin-top: 4px; }
.roadlabel { margin: 12px 14px 8px; padding: 10px 14px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); display: grid; gap: 2px; }
.roadlabel b { font: 500 18px/1.2 var(--sans); letter-spacing: -.015em; }
.roadlabel span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
/* ---- one continuous road: tiles run edge to edge and fade into the tile above ---- */
.unit.road { margin-top: 6px; }
.trail { margin-top: 0; }
.tile { width: 100%; margin: 0; aspect-ratio: 2 / 3; }
.tile.mid { aspect-ratio: 2 / 2.4; }
.tile + .tile { margin-top: -46px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px); mask-image: linear-gradient(to bottom, transparent 0, #000 64px); }
.tile .tbg { border-radius: 0; box-shadow: none; background-size: cover; background-position: 50% 100%; }
.tile.end .tbg { background-position: 50% 0; }
.node .mkr { inset: 3px; }
.node.today .mkr, .node.soon .mkr { opacity: 0; }
.node.today .ring { display: none; }
.node.today .pc, .node.soon .pc { bottom: 22px; filter: drop-shadow(0 0 1.5px rgba(255, 214, 150, .8)) saturate(1.05) contrast(1.03); animation: breathe 3.6s ease-in-out infinite; }
.cshadow { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(52, 26, 4, .55) 0, rgba(52, 26, 4, .3) 45%, rgba(52, 26, 4, 0) 72%); pointer-events: none; }
.node.today .lab { top: calc(100% + 18px); }
.node .lab .rw { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-top: 1px; white-space: nowrap; }
.node .lab .rw img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.node .lab .rw.st { color: var(--blue); }
.node.locked .lab .rw img { filter: grayscale(.2); }
.node:not(.today) .lab { max-width: 150px; }
/* ---- your year: every unit, in order, with the look it ends with ---- */
.year { margin: 18px 14px 0; padding-top: 6px; }
.year h2 { font-size: 24px; }
.units { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.unitrow { appearance: none; border: 0; width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; min-height: 64px; padding: 8px 10px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); text-align: left; cursor: pointer; color: var(--ink); }
.unitrow:hover { background: var(--panel); }
.units .here .unitrow { box-shadow: inset 0 0 0 2px var(--blue); }
.un { width: 34px; height: 34px; border-radius: 10px; background: var(--panel); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.units .done .un { background: var(--ink); color: #fff; }
.units .here .un { background: var(--blue); color: #fff; }
.ut { display: grid; gap: 1px; min-width: 0; }
.ut b { font-weight: 500; font-size: 15.5px; line-height: 1.2; }
.ut small { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.ur { display: grid; justify-items: center; gap: 0; width: 64px; }
.ur img { height: 46px; width: auto; max-width: 56px; object-fit: contain; filter: grayscale(1) opacity(.45); }
.ur.got img { filter: none; }
.ur small { font-size: 10.5px; color: var(--ink-2); text-align: center; line-height: 1.15; }
.yeartrail { margin: 8px -14px 0; }
/* ---- Today: the real step is the hero ---- */
.goal { display: flex; align-items: flex-start; gap: 8px; margin: 12px 14px 0; font-size: 15.5px; line-height: 1.35; }
.goal .ic { width: 22px; height: 22px; margin-top: 1px; --lc: var(--blue); }
.goal b { font-weight: 600; }
.herostep { position: relative; margin: 10px 14px 0; padding: 18px 16px 18px; border-radius: var(--r-panel); background: var(--panel); overflow: hidden; min-height: 330px; }
.herostep .hs-body { position: relative; z-index: 2; display: grid; gap: 6px; align-content: start; }
.herostep .hs-k, .herostep h2, .herostep .hs-t { max-width: 58%; }
.herostep .hs-k { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--blue); margin: 0; }
.herostep .hs-k .ic { width: 20px; height: 20px; --lc: var(--blue); }
.herostep h2 { font: 400 24px/1.15 var(--sans); letter-spacing: -.02em; }
.herostep .hs-t { font-size: 15px; line-height: 1.4; color: #2C3037; margin: 0; }
.herostep .btn { margin-top: 6px; min-height: 54px; }
.herostep .pc { position: absolute; right: -4px; top: 8px; height: 214px; width: auto; filter: drop-shadow(0 0 1.5px rgba(255, 214, 150, .8)) drop-shadow(0 10px 6px rgba(40, 20, 0, .25)); z-index: 1; }
.herostep.calm { min-height: 230px; }
.herostep .btn.block { margin-top: 46px; }
@media (max-width: 400px) { .herostep .btn.block { margin-top: 40px; } }
.hs-links { display: flex; gap: 14px; }
.linkbtn { appearance: none; background: none; border: 0; min-height: 44px; padding: 0 2px; font: 500 15px var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.herostep .more { position: relative; z-index: 2; grid-column: 1 / -1; }
.outbar .obtns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sect.streak { margin-top: 12px; padding: 12px 14px; }
.sect.streak .streakrow .bignum { font-size: 34px; }
.sect.streak .stepsmark { width: 48px; height: 48px; border-radius: 15px; }
.sect.streak .stepsmark .ic { width: 30px; height: 30px; }
/* ---- wardrobe: every look in a tray ---- */
.wstage { min-height: 250px; position: relative; padding-bottom: 0; }
.wstage .big { height: min(40dvh, 360px); min-height: 230px; max-width: 70%; filter: drop-shadow(0 0 2px rgba(255, 214, 150, .85)) saturate(1.04) contrast(1.03); }
.wshadow { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: min(58%, 250px); height: 36px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(52, 26, 4, .6) 0, rgba(52, 26, 4, .32) 46%, rgba(52, 26, 4, 0) 72%); z-index: 0; }
.wsheet { display: grid; gap: 8px; padding: 12px 12px 12px; margin: 0 10px 10px; }
.wnow { display: flex; align-items: center; gap: 10px; }
.wnow > img { width: 48px; height: 52px; object-fit: contain; flex: none; }
.wnow .tx { flex: 1; min-width: 0; }
.wnow .btn { min-height: 46px; padding: 0 16px; font-size: 15px; flex: none; }
.tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; max-height: 214px; overflow-y: auto; padding: 4px 0 2px; -webkit-overflow-scrolling: touch; }
.tray .wrb { position: static; width: auto; color: var(--ink); text-shadow: none; font-size: 11.5px; gap: 2px; }
.tray .wrb .c { width: 58px; height: 58px; box-shadow: inset 0 0 0 1.5px var(--hair); background: var(--panel); }
.tray .wrb .c img { width: 44px; height: 50px; object-fit: contain; }
.tray .wrb.on .c { box-shadow: 0 0 0 3px var(--blue); background: #fff; }
.tray .wrb .wl { background: none; padding: 0; color: var(--ink); font-weight: 500; line-height: 1.15; }
.tray .wrb small { background: none; color: var(--ink-2); padding: 0; font-size: 10.5px; line-height: 1.1; }
.tray .wrb .ok { right: -2px; top: -2px; }
/* ---- lessons: Crumb stands in a small scene band, questions are big ---- */
.lband { position: relative; height: 150px; margin: 6px 0 14px; border-radius: 20px; background: #7fae52 url(assets/scenes/band.jpg) center / cover; overflow: hidden; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; box-shadow: inset 0 0 0 1px rgba(14, 16, 19, .06); }
.lband .lbc { position: absolute; left: 12px; bottom: -2px; height: 146px; width: auto; filter: drop-shadow(0 0 1.5px rgba(255, 214, 150, .8)) drop-shadow(0 8px 5px rgba(40, 20, 0, .3)); }
.lbt { background: #fff; border-radius: 14px; padding: 8px 12px; display: grid; gap: 0; max-width: 62%; box-shadow: 0 8px 16px -10px rgba(14, 16, 19, .5); }
.lbt b { font-size: 13px; color: var(--blue); font-weight: 600; }
.lbt span { font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q { font: 400 28px/1.18 var(--sans); letter-spacing: -.022em; margin: 6px 0 16px; }
.exp { font-size: 18.5px; line-height: 1.45; }
.opt { min-height: 68px; font-size: 18px; }
.scene { margin: 0 0 12px; padding: 8px 14px 8px 8px; }
.scene .sc3 { width: 64px; height: 64px; object-fit: contain; flex: none; }
.lbody { padding-top: 4px; }
.lfoot .btn[disabled] { font-weight: 500; }
.mtag .q { font-size: 28px; }
/* ---- your words: dark ink on a lightly tinted ground, never link-blue ---- */
.hand { color: var(--ink); font-weight: 500; }
.field input, .field textarea, .bfield input, .bfield textarea, .slot textarea, textarea.hand, input.hand { color: var(--ink); background: #F1F5FF; }
.field input::placeholder, .bfield input::placeholder, .slot textarea::placeholder, textarea.hand::placeholder, input.hand::placeholder { color: #6F7580; }
li.hand, .note.hand, .wrote .hand, .fnote .hand, .gate dd.hand, p.hand, .mine .hand, .madetext .hand, span.hand { background: #EAF0FF; border-radius: 6px; padding: 1px 7px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.numshow .hand { background: none; padding: 0; }
.namesign { color: var(--ink); background: #F1F5FF; }
.slot > span::after, .bfield:has(.hand) > span::after { content: "your words"; margin-left: 8px; font-size: 11px; font-weight: 600; color: #2A52B8; background: #E1E9FF; padding: 1px 7px; border-radius: 999px; }
.slot > span, .bfield > span { display: flex; align-items: center; }
/* ---- ideas as 3D objects ---- */
.itile.big3d { width: 60px; height: 60px; background: var(--panel); border-radius: 16px; }
.itile.big3d img { width: 52px; height: 52px; object-fit: contain; }
.ideabtn { padding-left: 88px; min-height: 84px; }
.ideabtn .itile { left: 14px; top: 12px; }
.ideaart { width: 130px; height: 130px; border-radius: 28px; }
.ideaart img { width: 110px; height: 110px; object-fit: contain; }
/* ---- Crumb sits in his scenes: warm rim, contact shadow, never cut off ---- */
.crumb { filter: drop-shadow(0 0 1.5px rgba(255, 214, 150, .7)); }
.bizscene .cshadow { left: 15%; bottom: 30px; width: 130px; height: 28px; }
.bizscene .pc { left: 12px; height: 196px; bottom: 36px; filter: drop-shadow(0 0 1.5px rgba(255, 214, 150, .8)) saturate(1.04) contrast(1.03); }
.bizscene .stg { right: 1%; width: 60%; }
@media (max-width: 400px) { .herostep .hs-body { max-width: 60%; } .tray { gap: 8px 2px; } }

/* ---- v3 round 2 ---- */
.node .lab .rw:not(.st) { display: none; }
.node .rwb { position: absolute; right: -16px; top: -18px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(14, 16, 19, .12), 0 4px 8px -3px rgba(14, 16, 19, .5); display: grid; place-items: center; z-index: 2; }
.node .rwb img { width: 24px; height: 26px; object-fit: contain; filter: grayscale(.85) opacity(.8); }
.node .rwb.got img { filter: none; }
.node .rwb.got { box-shadow: 0 0 0 2px var(--blue), 0 4px 8px -3px rgba(14, 16, 19, .5); }
.herostep { min-height: 0; padding: 16px 16px 14px; }
.herostep .hs-top { display: grid; grid-template-columns: 1fr 138px; gap: 4px; align-items: end; min-height: 150px; }
.herostep .hs-tx { display: grid; gap: 6px; align-content: start; align-self: start; }
.herostep .hs-k, .herostep h2, .herostep .hs-t { max-width: none; }
.herostep .pc { position: static; height: 190px; width: auto; justify-self: end; align-self: end; margin: -26px -6px -6px 0; }
.herostep .btn.block { margin-top: 12px; }
.herostep .hs-t { margin-top: 2px; }
.opts { gap: 12px; }
.opt { min-height: 76px; font-size: 19px; }
.lband { height: 168px; }
.lband .lbc { height: 164px; }
.mtag { min-height: 300px; }
.mtag .pc { height: 240px; }
.mtag .q, .mtag .actbody { max-width: 58%; }
.herostep .hs-top { grid-template-columns: minmax(0, 1fr) 132px; min-height: 0; align-items: center; }
.herostep .pc { width: 132px; height: auto; margin: 0; }
.herostep h2 { font-size: 22px; }
.herostep .hs-k { white-space: nowrap; }

/* ---- v4 path: one fixed marker per stone, badges at fixed corners, words in a lane above and a sheet below ---- */
.tile { overflow: visible; }
.tile + .tile { margin-top: -34px; -webkit-mask-image: none; mask-image: none; }
.tile + .tile .tbg { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px); mask-image: linear-gradient(to bottom, transparent 0, #000 34px); }
.tile .tbg { background-repeat: no-repeat; }
.tile.first .tbg { border-radius: 0 0 22px 22px; }
.node { width: 46px; height: 46px; }
.node .mkr, .node.today .mkr, .node.soon .mkr { position: absolute; inset: 0; opacity: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .92), 0 8px 14px -6px rgba(14, 16, 19, .65); transition: transform .2s ease; }
.node .mkr b { font: 600 17px/1 var(--sans); letter-spacing: -.01em; }
.node.done .mkr { background: var(--ink); color: #fff; }
.node.out .mkr { background: var(--tang); color: #fff; }
.node.locked .mkr, .node.soon .mkr { background: #fff; color: #565B63; }
.node.today .mkr { background: var(--blue); color: #fff; }
.node .sb { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(14, 16, 19, .2); }
.node .sb .ic { width: 12px; height: 12px; --lc: var(--ink); --sw: 2.4; }
.node .sb .ic .f { display: none; }
.node.out .sb .ic { --lc: var(--tang); }
.node .rwb { position: absolute; right: -15px; top: -17px; left: auto; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(14, 16, 19, .14), 0 4px 8px -3px rgba(14, 16, 19, .5); z-index: 2; }
.node .rwb img { width: 24px; height: 26px; object-fit: contain; filter: grayscale(.85) opacity(.8); }
.node .rwb.got { box-shadow: 0 0 0 2px var(--blue), 0 4px 8px -3px rgba(14, 16, 19, .5); }
.node .rwb.got img { filter: none; }
.node .mfl { position: absolute; left: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; z-index: 2; }
.node .mfl .ic { width: 13px; height: 13px; --lc: #fff; --sw: 2.2; }
.node .mfl .ic .f { display: none; }
.node.today .pc, .node.soon .pc { left: 50%; bottom: 22px; }
.mslane { list-style: none; margin: 0 14px 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mslane li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--blue-soft); color: #0B3FA8; font-size: 13.5px; line-height: 1.2; }
.mslane .ic { width: 16px; height: 16px; --lc: var(--blue); }
.mslane .ic .f { display: none; }
.mslane b { font-weight: 600; }
.daysheet { position: sticky; bottom: 0; z-index: 8; margin: 14px 0 -22px; padding: 12px 14px 14px; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 26px -16px rgba(14, 16, 19, .55), 0 -1px 0 rgba(14, 16, 19, .08); display: flex; align-items: center; gap: 12px; }
.ds-tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ds-d { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.ds-t { font: 500 19px/1.2 var(--sans); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-m { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ds-m .aimk { font-size: 13px; }
.daysheet .btn { min-height: 52px; padding: 0 20px; flex: none; }
.ds-n { margin: 0; font-size: 14.5px; color: var(--ink-2); flex: none; }
.ds-m .aimk { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); }
.ds-m .aimk .ic { width: 16px; height: 16px; flex: none; }
.tile + .tile::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 56px; z-index: 1; pointer-events: none; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%, #000 60%, transparent 100%); }

/* ---- v4 wide layout: one centered window, so the nav spans the content and not the screen ---- */
@media (min-width: 960px) {
  .phone { max-width: 1200px; box-shadow: 0 0 0 1px rgba(14, 16, 19, .08), 0 30px 80px -30px rgba(20, 30, 50, .35); }
  .shell.wide .pane + .pane { max-width: none; padding: 0 28px 20px; }
  .shell.wide .herostep .hs-body { grid-template-columns: minmax(0, 1fr) 200px; column-gap: 24px; align-items: start; }
  .shell.wide .herostep .hs-top { display: contents; }
  .shell.wide .herostep .hs-tx { grid-column: 1; }
  .shell.wide .herostep .hs-t, .shell.wide .herostep .btn, .shell.wide .herostep .hs-links, .shell.wide .herostep .more { grid-column: 1; }
  .shell.wide .herostep .pc { grid-column: 2; grid-row: 1 / span 4; width: 200px; height: auto; align-self: center; justify-self: end; margin: 0; }
  .shell.wide .herostep h2 { font-size: 26px; }
}

/* ---- v4: consistency round ---- */
button, input, textarea, select { font-family: var(--sans); }
/* switch: the knob sits left when off and right when on */
.switch { flex-direction: row-reverse; padding: 0 14px 0 6px; }
.switch[aria-checked="true"] { flex-direction: row; padding: 0 6px 0 14px; }
.switch .sw-k { flex: none; }
/* the sample label is a quiet system note, not a pill */
.sample { display: block; padding: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 400; color: var(--ink-3); margin: -2px 0 10px; font-style: italic; }
/* single-choice answers wear radio marks, never check boxes */
.opt .rmk { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hair-2); display: grid; place-items: center; background: #fff; }
.opt .rmk svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: none; }
.opt.sel .rmk { box-shadow: inset 0 0 0 2px var(--ink); background: radial-gradient(circle at center, var(--ink) 0 5px, #fff 5.5px); }
.opt.right .rmk { box-shadow: none; background: var(--blue); }
.opt.right .rmk .rk { display: block; }
.opt.wrongo .rmk { box-shadow: none; background: var(--tang); }
.opt.wrongo .rmk .rx { display: block; }
.note.alt { background: var(--panel); }
/* out in the world: the title and Crumb share a row, the instruction gets its own full-width line */
.mtag { display: grid; grid-template-columns: minmax(0, 1fr) 112px; column-gap: 8px; min-height: 0; padding: 18px 16px 16px; }
.mtag .q { grid-column: 1; grid-row: 1; max-width: none; margin: 4px 0 0; font-size: 28px; }
.mtag .mt-day { grid-column: 1; grid-row: 2; margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.mtag .pc { position: static; grid-column: 2; grid-row: 1 / span 2; width: 112px; height: auto; align-self: end; justify-self: end; margin: 0 -2px -2px 0; }
.mtag .actbody { grid-column: 1 / -1; grid-row: 3; max-width: none; margin: 12px 0 0; font-size: 18px; line-height: 1.4; }
/* naming: the helper's names are chips, and the child's own field sits right under them */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks li { flex: 0 1 auto; }
.pick { width: auto; min-height: 46px; padding: 0 16px; border-radius: 999px; }
.bfield small { display: block; margin-top: -2px; }
/* complete: the pill sits under Crumb, never on his feet */
.donehero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; }
.donehero .badge { position: static; transform: none; bottom: auto; left: auto; }
/* day 4 gate */
.gchild { text-align: center; justify-items: center; align-content: start; padding-top: 18px; }
.gscene { display: grid; place-items: center; height: 230px; }
.gscene .crumb { height: 210px; width: auto; }
.gchild h1 { font-size: 34px; text-align: center; }
.gchild .lead { text-align: center; max-width: 340px; }
.gchild .btn { margin-top: 10px; }
.gatepage h1 { text-align: left; }
.gatepage .gchild h1 { text-align: center; }
.gbody > h1 { font-size: 30px; line-height: 1.1; }
.gprice { margin: 0 0 6px; font-size: 16.5px; line-height: 1.4; }
.gprice b { font-weight: 600; }
.gsum2 span { font-size: 20px; }
.gsum2 input { font-size: 26px; min-height: 60px; text-align: center; letter-spacing: .06em; }
/* Crumb: safe areas so he is never clipped */
.bizscene .pc { left: 26px; }
.bizscene .cshadow { left: 26px; }
.gsh { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(52, 26, 4, .5) 0, rgba(52, 26, 4, .26) 46%, rgba(52, 26, 4, 0) 72%); }

/* one size per scene type: path 150 (by stone), cards 150, lesson band 164, stall 196, celebration 210 */
.herostep .pc { width: auto; height: 150px; }
.herostep .hs-top { grid-template-columns: minmax(0, 1fr) 112px; }
.mtag .pc { width: auto; height: 150px; }
.mtag { grid-template-columns: minmax(0, 1fr) 106px; }
.shell.wide .herostep .pc { height: 170px; width: auto; }
.donehero .pc { height: 210px; }
.celeb .pc { height: 210px; }
.herostep .hs-body { max-width: none; }
.herostep h2 { font-size: 23px; }

/* ---- v4: phone-native feel ---- */
html, body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; touch-action: manipulation; }
body { overflow: hidden; }
input, textarea, select { font-size: 16px; }
.top { padding-top: calc(8px + env(safe-area-inset-top)); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
.tabs { padding-bottom: env(safe-area-inset-bottom); }
.main { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.a2hs { margin: 10px 14px 0; padding: 12px 14px; border-radius: var(--r-card); background: var(--blue-soft); display: grid; gap: 6px; font-size: 15px; line-height: 1.4; color: #0B2F7A; }
.a2hs b { font-weight: 600; }
.a2hs .textbtn { justify-self: start; min-height: 44px; }

.gatepage { height: 100%; }
.gatepage .gbody { flex: 1; min-height: 0; overflow-y: auto; width: 100%; }
.gfoot { flex: none; position: sticky; bottom: 0; z-index: 10; max-width: 560px; width: 100%; margin: 0 auto; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--hair), 0 -14px 20px -16px rgba(14, 16, 19, .3); display: grid; gap: 8px; }
.gfoot .field { margin: 0; }
.gfoot .gmsg { margin: 0; min-height: 0; }
.gfoot .gmsg:empty { display: none; }
.gchild { align-content: center; }
.bizscene .cshadow { left: 20px; transform: none; }
.donepage > .btn { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 12px #fff; z-index: 5; }
.gsum2 + .gmsg { text-align: left; }
.gatepage .gbody .lead { text-align: left; }
.gatepage .gchild .lead { text-align: center; }
