:root{--bg:#f5f1e8;--surface:#fffdf8;--ink:#24221e;--muted:#6f685c;--line:#e2dccf;--accent:#a3650f;--accent-soft:#f3e3c4;--right:#3d7a4f;--right-soft:#e2efe3;--wrong:#a8452f;--wrong-soft:#f6e1da;--user-bg:#ebe4d6;--code-bg:#efe9dc;--serif:"Iowan Old Style", "Charter", "Source Serif Pro", Georgia, serif;--sans:-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;--mono:ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;--col:44rem;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#1d1c1a;--surface:#262421;--ink:#e9e3d7;--muted:#9b9384;--line:#36332e;--accent:#e8b65a;--accent-soft:#3b3122;--right:#8fc79b;--right-soft:#22322a;--wrong:#e89a86;--wrong-soft:#3a2723;--user-bg:#302d29;--code-bg:#2c2a26;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-text-size-adjust:100%;margin:0}button{font:inherit;cursor:pointer;background:var(--accent);color:var(--bg);border:none;border-radius:10px;padding:.55rem 1rem;font-weight:600}button:disabled{opacity:.45;cursor:default}button.ghost{color:var(--muted);background:0 0;padding:.3rem .5rem}.loading,.gate{text-align:center;min-height:100dvh;color:var(--muted);place-content:center;display:grid}.gate h1{font-family:var(--serif);color:var(--ink);margin:0 0 .25rem}.gate form{gap:.5rem;margin-top:1rem;display:flex}.gate input{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:.55rem .8rem}.app{flex-direction:column;min-height:100dvh;display:flex}.topbar{z-index:5;padding:calc(env(safe-area-inset-top) + .6rem) 1rem .6rem;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);align-items:center;gap:.75rem;display:flex;position:sticky;top:0}.topbar-title{min-width:0;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:.85rem;overflow:hidden}.progress-pill{background:var(--surface);color:var(--ink);border:1px solid var(--line);font-variant-numeric:tabular-nums;align-items:center;gap:.5rem;padding:.35rem .7rem;font-size:.8rem;display:flex}.progress-pill .bar{background:var(--line);border-radius:3px;width:3.5rem;height:5px;overflow:hidden}.progress-pill .bar span{background:var(--accent);height:100%;transition:width .6s;display:block}.transcript{width:100%;max-width:var(--col);flex-direction:column;flex:1;gap:1.1rem;margin:0 auto;padding:1.25rem 1.1rem 5.5rem;display:flex}.msg.tutor{font-family:var(--serif);font-size:1.12rem;line-height:1.62}.msg.user{background:var(--user-bg);border-radius:16px 16px 4px;align-self:flex-end;max-width:85%;padding:.6rem .95rem;font-size:1rem;line-height:1.5}.msg.error{color:var(--wrong);background:var(--wrong-soft);border-radius:10px;padding:.6rem .9rem;font-size:.9rem}.md>:first-child{margin-top:0}.md>:last-child{margin-bottom:0}.md p{margin:0 0 .75em}.md ul,.md ol{margin:0 0 .75em;padding-left:1.3em}.md li{margin:.2em 0}.md h1,.md h2,.md h3{margin:1.1em 0 .4em;font-size:1.05em}.md code{font-family:var(--mono);background:var(--code-bg);border-radius:5px;padding:.1em .35em;font-size:.84em}.md pre{font-family:var(--mono);background:var(--code-bg);border-radius:10px;padding:.85rem 1rem;font-size:.85rem;line-height:1.5;overflow-x:auto}.md pre code{font-size:inherit;background:0 0;padding:0}.md hr{border:none;border-top:1px solid var(--line);margin:1.2em 0}.md table{border-collapse:collapse;font-size:.92em}.md th,.md td{border:1px solid var(--line);padding:.3em .6em}.md blockquote{background:var(--code-bg);color:var(--muted);border-radius:8px;margin:0 0 .75em;padding:.5em .9em}.live>.md>:last-child:after{content:"";vertical-align:-.12em;background:var(--accent);width:.45em;height:1em;margin-left:2px;animation:1s steps(2,end) infinite blink;display:inline-block}@keyframes blink{50%{opacity:0}}.thinking{gap:5px;padding:.3rem 0;display:flex}.thinking span{background:var(--muted);border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite pulse}.thinking span:nth-child(2){animation-delay:.15s}.thinking span:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,to{opacity:.25}50%{opacity:.9}}.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1rem 1.05rem;font-size:1rem;line-height:1.5;animation:.25s ease-out rise}.card.active{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}@keyframes rise{0%{opacity:0;transform:translateY(6px)}}.card-code{font-family:var(--mono);background:var(--code-bg);white-space:pre;border-radius:10px;margin:.75rem 0 0;padding:.8rem .95rem;font-size:.85rem;line-height:1.5;overflow-x:auto}.options{flex-direction:column;gap:.5rem;margin-top:.85rem;display:flex}.option{text-align:left;background:var(--bg);color:var(--ink);border:1px solid var(--line);align-items:flex-start;gap:.7rem;padding:.7rem .85rem;font-weight:400;transition:border-color .15s,background .15s;display:flex}.option:disabled{opacity:1}.card.active .option:not(:disabled):hover{border-color:var(--accent)}.option .letter{background:var(--line);border-radius:7px;flex:none;place-content:center;width:1.6rem;height:1.6rem;font-size:.8rem;font-weight:700;display:grid}.option-text{flex:1;min-width:0;padding-top:.12rem}.option.picked.right{border-color:var(--right);background:var(--right-soft)}.option.picked.right .letter{background:var(--right);color:var(--surface)}.option.picked.wrong{border-color:var(--wrong);background:var(--wrong-soft)}.option.picked.wrong .letter{background:var(--wrong);color:var(--surface)}.card:not(.active) .option:not(.picked){opacity:.6}.feedback{border-radius:10px;margin-top:.8rem;padding:.7rem .85rem;font-size:.95rem}.feedback .md,.feedback .md p{display:inline}.feedback.right{background:var(--right-soft)}.feedback.right strong{color:var(--right)}.feedback.wrong{background:var(--wrong-soft)}.feedback.wrong strong{color:var(--wrong)}.editor{width:100%;font-family:var(--mono);background:var(--code-bg);color:var(--ink);border:1px solid var(--line);resize:vertical;tab-size:4;border-radius:10px;margin-top:.8rem;padding:.8rem .95rem;font-size:.88rem;line-height:1.55}.editor:focus{outline:2px solid var(--accent);outline-offset:-1px}.card-actions{justify-content:flex-end;align-items:center;gap:.8rem;margin-top:.6rem;display:flex}.card-actions .hint{color:var(--muted);font-size:.78rem}@media (pointer:coarse){.card-actions .hint{display:none}}.skillmap{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:.9rem 1rem}.skillmap.compact{animation:.25s ease-out rise}.skillmap-head{color:var(--muted);justify-content:space-between;gap:1rem;margin-bottom:.6rem;font-size:.82rem;display:flex}.skillmap-pct{font-variant-numeric:tabular-nums;color:var(--ink);font-weight:600}.skillmap ul{flex-direction:column;gap:.45rem;margin:0;padding:0;list-style:none;display:flex}.skillmap li{grid-template-columns:1fr auto auto;align-items:center;gap:.7rem;font-size:.92rem;display:grid}.skillmap li.focus .skill-name{color:var(--accent);font-weight:600}.skillmap li.done .skill-name{color:var(--right)}.skill-level{color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;width:2rem;font-size:.78rem}.pips{gap:3px;display:flex}.pips i{background:var(--line);border-radius:3px;width:14px;height:6px}.pips i.on{background:var(--accent)}.pips i.target:not(.on){box-shadow:inset 0 0 0 1px var(--accent);background:0 0}.checkpoint{text-align:center;color:var(--muted);align-self:center;max-width:32rem;font-size:.78rem}.checkpoint summary{cursor:pointer;border:1px dashed var(--line);border-radius:999px;padding:.3rem .8rem;list-style:none}.checkpoint summary::-webkit-details-marker{display:none}.checkpoint p{margin:.6rem 0 0;line-height:1.5}.composer{width:100%;max-width:var(--col);padding:.6rem 1rem calc(env(safe-area-inset-bottom) + .7rem);background:linear-gradient(to top, var(--bg) 75%, transparent);align-items:flex-end;gap:.5rem;margin:0 auto;display:flex;position:sticky;bottom:0}.composer textarea{font:inherit;resize:none;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;flex:1;max-height:240px;padding:.7rem .9rem;font-size:1rem;line-height:1.45}.composer textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}.composer button{border-radius:50%;flex:none;width:2.75rem;height:2.75rem;padding:0;font-size:1.2rem}.drawer-backdrop{z-index:10;background:#00000059;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{background:var(--bg);width:min(26rem,100%);height:100%;padding:calc(env(safe-area-inset-top) + 1rem) 1.1rem 2rem;flex-direction:column;gap:1.2rem;animation:.22s ease-out slide;display:flex;overflow-y:auto}@keyframes slide{0%{opacity:0;transform:translate(30px)}}.drawer header{align-items:flex-start;gap:.5rem;display:flex}.drawer h2{font-family:var(--serif);flex:1;margin:0;font-size:1.2rem;line-height:1.3}.drawer h3{text-transform:none;letter-spacing:0;color:var(--muted);margin:0 0 .4rem;font-size:.75rem;font-weight:600}.drawer section{font-size:.92rem;line-height:1.5}.drawer ol,.drawer ul{margin:0;padding-left:1.2em}.drawer li{margin:.3em 0}.drawer .terms{color:var(--muted);margin:0}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.eyebrow{color:var(--muted);letter-spacing:.02em;font-size:.72rem;font-weight:600}.hint{color:var(--muted);margin:0 0 .7rem;font-size:.85rem;line-height:1.45}code.command{font-family:var(--mono);color:var(--accent);background:var(--accent-soft);border-radius:6px;padding:.15em .45em;font-size:.86rem}button.quiet{background:var(--surface);color:var(--ink);border:1px solid var(--line);white-space:nowrap;padding:.4rem .75rem;font-size:.82rem;font-weight:500}button.quiet:hover:not(:disabled){border-color:var(--accent)}button.quiet.wide{width:100%;margin-top:.9rem}button.back{padding:0 .4rem .15rem;font-size:1.5rem;line-height:1}.topbar-title strong{color:var(--ink);font-weight:600}.topbar-title.brand{font-family:var(--serif);color:var(--ink);font-size:1.1rem}.loading.inline{min-height:12rem}.closed-note{text-align:center;color:var(--muted);padding:0 1rem 2rem;font-size:.85rem}.home{width:100%;max-width:var(--col);flex-direction:column;gap:2.4rem;margin:0 auto;padding:2.2rem 1.1rem 4rem;display:flex}.home h1{font-family:var(--serif);text-wrap:balance;margin:0 0 .6rem;font-size:clamp(1.7rem,5vw,2.3rem);font-weight:600;line-height:1.15}.home h2{color:var(--muted);margin:0 0 .6rem;font-size:.8rem;font-weight:600}.lede{color:var(--muted);max-width:36rem;margin:0 0 1.1rem;line-height:1.55}.lede.small{margin-bottom:.7rem;font-size:.88rem}.start textarea{width:100%;font:inherit;font-family:var(--serif);border:1px solid var(--line);background:var(--surface);color:var(--ink);resize:vertical;border-radius:14px;padding:.9rem 1rem;font-size:1.12rem;line-height:1.5}.start textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}.start-actions{justify-content:flex-end;align-items:center;gap:1rem;margin-top:.7rem;display:flex}.start-error{color:var(--wrong);font-size:.88rem}.project-list{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.project-card{text-align:left;background:var(--surface);width:100%;color:var(--ink);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:.45rem;padding:.9rem 1rem;font-weight:400;transition:border-color .15s;display:flex}.project-card:hover{border-color:var(--accent)}.project-top{justify-content:space-between;align-items:center;gap:1rem;display:flex}.project-top strong{font-family:var(--serif);font-size:1.08rem;font-weight:600}.project-meta{color:var(--muted);font-variant-numeric:tabular-nums;flex:none;align-items:center;gap:.4rem;font-size:.78rem;display:flex}.project-move{color:var(--muted);font-size:.9rem;line-height:1.4}.project-move .eyebrow{color:var(--accent);margin-right:.35rem}.dots{gap:3px;display:inline-flex}.dots i{background:var(--line);border-radius:50%;width:7px;height:7px}.dots i.done{background:var(--right)}.dots i.active{background:var(--accent)}.craft-station{color:var(--muted);margin-left:.35rem;font-size:.78rem}.trail{border-bottom:1px solid var(--line);scrollbar-width:none;gap:1.3rem;padding:.7rem 1rem .8rem;display:flex;overflow-x:auto}.trail::-webkit-scrollbar{display:none}.trail-phase{flex-direction:column;flex:none;gap:.35rem;display:flex}.trail-phase-label{color:var(--muted);padding-left:.2rem;font-size:.68rem;font-weight:600}.trail-stops{gap:.3rem;display:flex}.stop{color:var(--muted);background:0 0;border:1px solid #0000;border-radius:999px;align-items:center;gap:.4rem;padding:.25rem .7rem .25rem .3rem;font-size:.84rem;font-weight:500;display:flex}.stop-n{background:var(--line);font-variant-numeric:tabular-nums;border-radius:50%;place-content:center;width:1.45rem;height:1.45rem;font-size:.72rem;font-weight:700;display:grid}.stop.done{color:var(--ink)}.stop.done .stop-n{background:var(--right-soft);color:var(--right)}.stop.active{color:var(--ink)}.stop.active .stop-n{background:var(--accent);color:var(--bg)}.stop.locked{opacity:.6}.stop.current{background:var(--surface);border-color:var(--line);opacity:1}.stop:hover{border-color:var(--line)}.workbench{flex:1;grid-template-columns:minmax(0,1fr);width:100%;max-width:76rem;margin:0 auto;display:grid}.work{flex-direction:column;min-width:0;min-height:calc(100dvh - 7.5rem);display:flex}.side{display:none}.work .transcript{padding-top:.6rem}.station-head{width:100%;max-width:var(--col);margin:0 auto;padding:1.6rem 1.1rem .4rem}.station-head h1{font-family:var(--serif);text-wrap:balance;margin:.35rem 0 .55rem;font-size:clamp(1.45rem,4.2vw,1.95rem);font-weight:600;line-height:1.2}.station-head .why{color:var(--muted);max-width:38rem;margin:0 0 .7rem;line-height:1.5}.station-head .help{color:var(--muted);flex-wrap:wrap;align-items:center;gap:.55rem;margin:0 0 .8rem;font-size:.8rem;display:flex}.sheet-toggle{margin-bottom:.4rem}.locked-note,.onward{width:100%;max-width:var(--col);margin:0 auto;padding:1rem 1.1rem}.locked-note p,.onward p{color:var(--muted);margin:0 0 .9rem;line-height:1.5}.transcript .onward{flex-direction:column;align-items:flex-start;padding:.4rem 0 0;display:flex}@media (width>=62rem){.trail{z-index:4;background:var(--bg);position:sticky;top:3.05rem}.workbench{grid-template-columns:minmax(0,1fr) 24rem;gap:.5rem;padding:0 .5rem}.side{align-self:start;height:calc(100dvh - 9.4rem);padding:1rem .6rem 1rem 0;display:block;position:sticky;top:9.4rem}.side .panel{height:100%}.sheet-toggle{display:none}}.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;min-height:0;display:flex;overflow:hidden}.drawer .panel{background:0 0;border:none;overflow:visible}.tabs{border-bottom:1px solid var(--line);gap:.2rem;padding:.45rem;display:flex}.tabs button{color:var(--muted);font-variant-numeric:tabular-nums;background:0 0;border-radius:9px;flex:1;padding:.4rem .5rem;font-size:.82rem;font-weight:600}.tabs button.on{background:var(--accent-soft);color:var(--ink)}.panel-body{padding:.9rem 1rem 1.1rem;font-size:.92rem;line-height:1.5;overflow-y:auto}.panel-body h3{color:var(--muted);margin:1.2rem 0 .4rem;font-size:.74rem;font-weight:600}.panel-file{justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.8rem;display:flex}.panel-file code{font-family:var(--mono);color:var(--muted);font-size:.8rem}.artifact{font-family:var(--serif);font-size:1rem;line-height:1.55}.artifact .md h1{font-size:1.2em}.artifact .md table{display:block;overflow-x:auto}.card-code.template{color:var(--muted);white-space:pre-wrap;margin:0}ul.plain{margin:0;padding-left:1.15em}ul.plain li{margin:.3em 0}.gate-lines{flex-direction:column;gap:.55rem;margin:0;padding:0;list-style:none;display:flex}.gate-lines li{grid-template-columns:1.2rem 1fr;align-items:start;gap:.55rem;line-height:1.4;display:grid}.gate-lines .tick{border:1.5px solid var(--line);border-radius:50%;place-content:center;width:1.15rem;height:1.15rem;margin-top:.1rem;font-size:.7rem;font-weight:700;display:grid}.gate-lines li.met .tick{background:var(--right);border-color:var(--right);color:var(--surface)}.gate-lines em{color:var(--muted);margin-top:.15rem;font-size:.84em;display:block}.skill-cards{flex-direction:column;gap:1.1rem;margin:0;padding:0;list-style:none;display:flex}.skill-cards li{border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start;gap:.4rem;padding-bottom:1.1rem;display:flex}.skill-cards li:last-child{border-bottom:none;padding-bottom:0}.skill-cards p{margin:0}.skill-cards details{width:100%}.skill-cards summary{cursor:pointer;color:var(--muted);font-size:.82rem}.skill-cards .card-code{white-space:pre-wrap;max-height:16rem;overflow-y:auto}.handoff-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.8rem;display:flex}.handoff-why{margin:.6rem 0 .8rem}.prompt-box{background:var(--code-bg);border-radius:10px;padding:.8rem .95rem 2.9rem;position:relative}.prompt-box pre{font-family:var(--mono);white-space:pre-wrap;word-break:break-word;max-height:15rem;margin:0;font-size:.82rem;line-height:1.5;overflow-y:auto}.prompt-box button{position:absolute;bottom:.55rem;right:.55rem}.prompt-box.small{padding-bottom:.8rem;padding-right:4.6rem}.prompt-box.small button{top:.5rem;bottom:auto}.lookfor{margin-top:.9rem}.lookfor ul{margin:.3rem 0 0;padding-left:1.15em;font-size:.95rem}.lookfor li{margin:.25em 0}.pasted{color:var(--muted);margin-top:.8rem;font-size:.85rem}.pasted summary{cursor:pointer}.pasted .card-code{white-space:pre-wrap;max-height:14rem;color:var(--ink);overflow-y:auto}.gate-card.passed{border-color:var(--right);background:var(--right-soft)}.gate-head{justify-content:space-between;align-items:baseline;gap:.8rem;margin-bottom:.8rem;display:flex}.gate-card.passed .gate-head strong{color:var(--right)}.drawer.finder{width:min(32rem,100%)}.finder-input{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:.7rem .9rem;font-size:1rem}.finder-input:focus{outline:2px solid var(--accent);outline-offset:-1px}.finder-list{flex-direction:column;gap:.7rem;margin:0;padding:0;list-style:none;display:flex}.finder-list>li{background:var(--surface);border:1px solid var(--line);border-radius:14px;margin:0;padding:.85rem .95rem;font-size:.9rem;line-height:1.45}.finder-list>li.here{border-color:var(--accent)}.finder-list p{margin:.45rem 0 0}.finder-want{font-family:var(--serif);font-size:1.04rem;line-height:1.3}.finder-command{flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.45rem;display:flex}.finder-not{color:var(--muted)}.finder-list .prompt-box{margin-top:.6rem}.badge{color:var(--muted);border:1px solid var(--line);white-space:nowrap;border-radius:999px;padding:.1rem .5rem;font-size:.7rem;font-weight:600}.badge.warn{color:var(--wrong);border-color:var(--wrong)}.badge.here{color:var(--accent);border-color:var(--accent);font-family:var(--sans);vertical-align:.12em;margin-left:.5rem}.finder-where{color:var(--muted);font-size:.82rem}.home h2.sub{margin-top:1.6rem}.skillmap.craft li{grid-template-columns:1fr auto auto;row-gap:.1rem}.craft-help{color:var(--muted);grid-column:1/-1;font-size:.78rem}button.link{color:var(--accent);font-size:inherit;text-underline-offset:2px;background:0 0;border:none;padding:0;font-weight:600;text-decoration:underline}.fade{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:.9rem 1rem 1rem}.drawer .fade{background:0 0;border:none;padding:0}.fade-presets{align-items:center;gap:.3rem;margin-bottom:.6rem;display:flex}.fade-presets button{color:var(--muted);border:1px solid var(--line);background:0 0;padding:.4rem .95rem;font-size:.85rem;font-weight:600}.fade-presets button.on{background:var(--accent-soft);border-color:var(--accent);color:var(--ink)}.fade-presets button:disabled{opacity:1}.fade-presets .badge{margin-left:.3rem}.stairs{border-collapse:collapse;width:100%;font-size:.86rem}.stairs thead th{color:var(--muted);text-align:center;padding:0 .2rem .45rem;font-size:.7rem;font-weight:600;line-height:1.2}.stairs thead th:first-child,.stairs tbody th{text-align:left}.stairs tbody th{padding:.28rem .4rem .28rem 0;font-weight:400;line-height:1.25}.stairs-n{width:1.1rem;color:var(--muted);font-variant-numeric:tabular-nums;display:inline-block}.stairs td{text-align:center;width:17%;padding:.18rem .15rem}.step{background:var(--bg);border:1px solid var(--line);border-radius:7px;width:100%;height:1.5rem;padding:0}.step:hover:not(:disabled):not(.on){border-color:var(--accent)}.step.on{background:var(--accent);border-color:var(--accent)}.step:disabled{opacity:1;cursor:default}.fade-legend{color:var(--muted);margin:.9rem 0 0;padding:0;font-size:.8rem;line-height:1.45;list-style:none}.fade-legend strong{color:var(--ink);font-weight:600}.drawer .fade-legend{padding-left:0}.drawer .fade-legend li{margin:.25em 0}a.project-card{text-decoration:none}
