@font-face{font-family:Kalam;src:url('../assets/fonts/Kalam-Regular.ttf') format('truetype');font-display:swap}
:root{--ink:#202827;--muted:#526158;--green:#43684d;--dark:#263c2f;--orange:#b34c26;--paper:#faf8f2;--line:#d9d6cd;--bg:#e9e6dd;color:var(--ink);background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,label{touch-action:manipulation}button,a{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible,.file-button:focus-within{outline:3px solid var(--orange)}a{color:var(--dark)}button,.file-button{min-height:44px;cursor:pointer;border:1px solid #a9b4a6;border-radius:7px;padding:.7rem 1rem;background:var(--paper);color:var(--ink)}button:hover,.file-button:hover{background:#e6ecdf}button:disabled{cursor:default;opacity:.6}p{line-height:1.55}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:clamp(1.7rem,3vw,2.4rem);letter-spacing:-.035em;line-height:1.1;margin:.25rem 0}h2{font-size:1.5rem;line-height:1.18;letter-spacing:-.025em}h3{font-size:.9rem;margin:0}.eyebrow{color:var(--muted);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;margin:0}.shell{display:grid;grid-template-columns:82px minmax(0,1fr);min-height:100vh}.rail{background:#292f2e;display:flex;flex-direction:column;align-items:center;gap:1.5rem;padding:1.2rem .45rem;color:#d9e3d3}.rail a{color:#e0e8d8;text-align:center;font-size:.75rem;padding:.55rem .25rem;min-height:44px}.rail .brand{font-size:2rem;text-decoration:none;padding:0}.rail-label{font-size:.58rem;line-height:1.9;letter-spacing:.18em;text-align:center}.rail button{width:100%;padding:.5rem .2rem;background:transparent;border-color:#6f7b72;color:#f3f5eb;font-size:.72rem}.rail button:hover{background:#435045}.app{min-width:0}header{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--paper);border-bottom:1px solid var(--line);padding:1.25rem clamp(1rem,2.5vw,2.5rem)}.header-meta{display:flex;flex-direction:column;gap:.6rem;text-align:right;font-size:.72rem;color:var(--muted)}.pill{border:1px solid #becab7;border-radius:2rem;padding:.4rem .75rem;background:#edf2e9;color:var(--dark);font-weight:750;white-space:nowrap}main{max-width:1680px;margin:auto;padding:1.5rem clamp(1rem,2.5vw,2.5rem)}.top-grid,.bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:1.5rem}.scene{min-width:0;align-self:start}.frame{position:relative;border:9px solid var(--paper);box-shadow:0 12px 28px #32342b1c;background:#dbdbc9}.frame img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.frame>p{position:absolute;bottom:.7rem;left:.7rem;right:.7rem;width:fit-content;max-width:calc(100% - 1.4rem);margin:0;background:#faf8f2f2;font-size:.75rem;padding:.55rem .7rem;font-weight:750}.frame>p:before{content:'●';color:var(--orange);padding-right:.6rem}.scene-note{background:#dde3d5;border-left:4px solid var(--green);padding:1rem 1.15rem}.scene-note>p:last-child{font-family:Kalam,cursive;font-size:1.1rem;line-height:1.4;margin:.4rem 0 0}.work{background:var(--paper);padding:1.4rem;border:7px solid #3d4941;border-bottom-width:10px;border-radius:12px 12px 3px 3px;min-width:0;box-shadow:0 12px 28px #32342b1c}.panel-head{display:flex;align-items:center;gap:.5rem;font-size:.72rem;color:var(--muted);font-weight:750}.panel-head>span:first-child{color:var(--orange)}#sections{margin-left:auto}.work h2{margin:.7rem 0}.work>p{color:#48554d;font-size:.88rem;margin:.6rem 0 1rem}.artifact{border:1px solid #cecfc3;border-left:4px solid var(--green);background:#eeeee2;padding:1rem;box-shadow:3px 3px 0 #d9dbcc;font-family:Kalam,cursive;font-size:1.03rem;line-height:1.4;min-height:95px}.artifact p{margin:.4rem 0}.artifact strong{font-family:inherit}.artifact small{font-family:ui-sans-serif,system-ui;font-size:.72rem;color:#415345}.artifact ol{padding-left:1.3rem;margin:.6rem 0}.artifact li{margin:.35rem 0}.artifact progress{margin-top:.8rem}.actions{padding:1.1rem 0 0}#choices{display:grid;gap:.6rem;margin-top:.6rem}.choice{display:flex;flex-direction:column;text-align:left;gap:.3rem;padding:.8rem 1rem;background:#fafbf6;min-width:0}.choice strong{font-size:.87rem;line-height:1.3}.choice span{font-size:.76rem;line-height:1.4;color:#46594a}.choice .cost{font-weight:700;color:#344839}.choice.primary,.primary{background:#e3ecda;border-color:#8eaa81}.choice.unavailable{border:1px dashed #8e998b;padding:.8rem 1rem;border-radius:7px;background:#e7e8e0;font-size:.78rem}.optional-actions{display:flex;flex-wrap:wrap;gap:.5rem}.optional-actions .choice{flex:1 1 160px}.review-note,.warning{margin-top:1rem;padding:.85rem;background:#f7e7d8;border-left:4px solid var(--orange);font-size:.84rem;line-height:1.5}.warning{margin:0 0 1rem}.bottom-grid{margin-top:1.5rem}.card{background:#faf9f2;border:1px solid var(--line);border-radius:10px;padding:1.1rem 1.25rem}.resources{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:1rem}.resources>div{min-width:0}.resources p{font-size:.72rem;color:var(--muted);margin:.45rem 0}.metric-heading{display:flex;justify-content:space-between;gap:.6rem;align-items:baseline}.metric-heading strong{font-size:.9rem}.quality{grid-column:1/-1;border-top:1px solid var(--line);padding-top:.85rem}progress{display:block;width:100%;height:9px;appearance:none;border:0;border-radius:10px;overflow:hidden;background:#d6dccf;color:var(--green);margin-top:.6rem}progress::-webkit-progress-bar{background:#d6dccf}progress::-webkit-progress-value{background:var(--green)}progress::-moz-progress-bar{background:var(--green)}.record-heading{display:flex;justify-content:space-between;gap:1rem}.record-heading h2{font-size:1rem;margin:0}.record-heading span{font-size:.75rem;color:var(--muted)}#record{list-style:none;padding:0;max-height:255px;overflow:auto;scrollbar-gutter:stable;margin:.8rem 0 0}#record li{border-top:1px solid var(--line);padding:.75rem .65rem;font-size:.75rem;line-height:1.45}#record li strong{display:block;font-size:.8rem}#record li p{margin:.25rem 0}#record .milestone{background:#e4ecd9;border-left:4px solid var(--green);margin:.6rem .3rem .6rem 0;border-radius:3px}.milestone .tag{font-size:.6rem;letter-spacing:.12em;font-weight:850;color:#35513d;text-transform:uppercase}.skill{display:inline-block;font-size:.67rem;background:#e4ebda;border-radius:4px;padding:.3rem .4rem;margin:.2rem .2rem 0 0}.career-details{margin:1.4rem 0 0;background:#eeeee5;border:1px solid var(--line);padding:1rem;border-radius:8px}.career-details summary{cursor:pointer;font-size:.83rem;font-weight:700;min-height:30px}.career-details p{font-size:.8rem}.career-details ol{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.7rem 1.5rem;padding-left:1.3rem;font-size:.78rem}.career-details li.current{font-weight:800;color:var(--green)}#upgrade-list{display:grid;gap:.5rem}#upgrade-list p{margin:.2rem 0}.save-tools{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}.save-tools button,.file-button{font-size:.76rem}.file-button{position:relative;display:inline-flex;align-items:center;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.small{color:var(--muted)}footer{display:flex;justify-content:space-between;gap:1rem;margin-top:1rem;color:var(--muted);font-size:.72rem}dialog{width:min(540px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;border:1px solid #aeb4a6;border-radius:14px;padding:1.6rem;background:var(--paper);color:var(--ink);box-shadow:0 20px 80px #17251c66}dialog::backdrop{background:#1c2928a8}dialog h2{font-size:1.75rem;margin:.6rem 0 1rem}dialog p{font-size:.92rem}dialog img{width:100%;max-height:210px;object-fit:cover;border-radius:7px}#story-next{width:100%;font-weight:750}.dialog-actions{display:flex;gap:.65rem;flex-wrap:wrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:absolute;top:-100px;left:1rem;background:white;padding:.8rem;z-index:10}.skip:focus{top:1rem}[hidden]{display:none!important}
@media(min-width:1100px){.frame img{max-height:430px}.work{min-height:310px}}
@media(max-width:850px){.shell{grid-template-columns:1fr}.rail{flex-direction:row;padding:.5rem 1rem;gap:.8rem;justify-content:flex-start}.rail-label{display:none}.rail .brand{font-size:1.6rem}.rail a{font-size:.7rem}.rail button{width:auto;margin-left:auto;padding:.4rem .7rem}.rail button+button{margin-left:0}.top-grid,.bottom-grid{grid-template-columns:1fr}.scene{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1fr)}.frame{border-width:5px}.frame img{height:100%;aspect-ratio:1/1;min-height:180px}.frame>p{font-size:.65rem;bottom:.3rem;left:.3rem;padding:.3rem}.scene-note{padding:.8rem}.scene-note>p:last-child{font-size:1rem}header{padding:1rem;align-items:flex-start}.header-meta{font-size:.65rem;max-width:35%}main{padding:1rem}.work{padding:1rem}.career-details ol{grid-template-columns:1fr 1fr}.bottom-grid{margin-top:1rem;gap:1rem}#record{max-height:280px}footer{flex-direction:column}}
@media(max-width:420px){.scene{grid-template-columns:1fr}.frame img{height:200px;min-height:0;aspect-ratio:auto;object-position:center 43%}.scene-note>p:last-child{font-size:.97rem}.resources{grid-template-columns:1fr}.quality{grid-column:auto}.career-details ol{grid-template-columns:1fr}.header-meta{max-width:40%}.pill{white-space:normal}.rail{gap:.4rem}.rail button{font-size:.65rem}.rail a{font-size:.65rem}dialog{padding:1.15rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.card{min-width:0}.record li,.skill{overflow-wrap:anywhere}.skill{max-width:100%}
@media(max-width:420px){main,header{padding:12px}.rail{padding:8px}.work{padding:12px;border-width:5px}.artifact{padding:12px}.card{padding:14px}.scene-note{padding:12px}.career-details{padding:12px}dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:14px}.choice{padding:12px}.quality{padding-top:12px}.resources{gap:16px}}
@media(max-width:850px){.rail{flex-wrap:wrap}header{flex-wrap:wrap}.header-meta{max-width:100%}.optional-actions .choice{min-width:0}.dialog-actions>*{max-width:100%;overflow-wrap:anywhere}.panel-head,.metric-heading,.record-heading{flex-wrap:wrap}.panel-head>*{min-width:0}#sections{margin-left:0}}
@media(forced-colors:active){.choice,.card,.artifact,.work,.frame,dialog,.milestone,.pill{border:1px solid CanvasText}progress{forced-color-adjust:auto}.rail,.rail button,.rail a{background:Canvas;color:CanvasText}.tag,.choice span,.choice .cost{color:CanvasText}button:disabled{opacity:1;color:GrayText}}

.submitted-notes{margin-top:1rem;text-align:left;line-height:1.6;overflow-wrap:anywhere}.submitted-notes summary{cursor:pointer;font-weight:700;min-height:44px;padding:.5rem 0}.submitted-notes li{margin:.45rem 0;overflow-wrap:anywhere}.submitted-notes ol{padding-left:1.5em}
