:root{color:#173a35;background:#f6f7ee;font:16px/1.5 system-ui,sans-serif;--line:#c6d7c7;--green:#195b4e;--paper:#fff}
*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}.wrap{width:min(1160px,calc(100% - 2rem));margin:auto}
header{background:white;border-bottom:1px solid var(--line)}header nav,.brand{display:flex;align-items:center;gap:.65rem;justify-content:space-between;min-height:62px}.brand{text-decoration:none;font-weight:800}a{color:inherit}.skip{position:absolute;top:-100px;background:white;padding:.7rem}.skip:focus{top:0}
.intro{display:grid;grid-template-columns:1.6fr 1fr;align-items:center;gap:1rem;padding:1.5rem 0}.intro h1{font-size:clamp(2.3rem,6vw,4rem);line-height:1.05;margin:.25rem 0}.intro p{max-width:42ch}.intro img{width:100%;height:auto;max-height:140px;object-fit:cover;border-radius:14px}
.eyebrow{font-size:.83rem;font-weight:800;color:#365f51;margin:0}.projects,.actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.projects{padding-bottom:1rem;border-bottom:1px solid var(--line)}
button,select,input{font:inherit;color:inherit}button,select{min-height:44px;border:1px solid #a4bbad;border-radius:8px;background:white;padding:.42rem .72rem}button{cursor:pointer;font-weight:700}button:disabled{opacity:.56;cursor:default}.primary,.projects [aria-current],#timeline [aria-current]{background:var(--green);color:white;border-color:var(--green)}:focus-visible{outline:3px solid #9a6019;outline-offset:2px}
.project-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem 0}.project-heading h2{margin:.1rem 0}.badge{background:#e4eddb;border-radius:8px;padding:.35rem .6rem;font-weight:700}
.workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:1rem;align-items:start}.stage-panel,.panel{border:1px solid var(--line);border-radius:14px;background:white;padding:.85rem;min-width:0}.stage-header{display:flex;justify-content:space-between;align-items:center;gap:.4rem;flex-wrap:wrap;margin-bottom:.6rem}.checkbox{display:flex;align-items:center;gap:.4rem;min-height:44px}
canvas{display:block;width:100%;height:auto;background:#f8f3e7;border-radius:7px}#stage{touch-action:none;border:1px solid var(--line)}
.timeline-panel{margin-top:.7rem}#timeline{display:flex;gap:.45rem;overflow-x:auto;padding:.55rem .2rem;scrollbar-color:#759b89 #edf2e8}#timeline button{padding:.25rem;min-width:84px;text-align:center}#timeline canvas{width:75px}
.export-row{margin-top:.6rem}.export-row p{margin:.2rem;font-size:.86rem;color:#3c5e50}.panel+.panel{margin-top:.8rem}.panel h3{margin:0 0 .5rem}.panel>label{display:flex;align-items:center;justify-content:space-between;gap:.45rem;margin:.4rem 0}.panel .actions{margin:.45rem 0}.panel input[type=color]{width:44px;height:44px}.panel input[type=range]{max-width:100px}.object-actions button{min-width:44px}.guide ol,.guide ul{padding-left:1.25rem}.guide li{margin:.3rem 0}.guide .done{color:#205b40;font-weight:650}.demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin-bottom:.45rem}.demo-grid strong{font-size:.83rem}summary{cursor:pointer;min-height:44px;padding-top:.5rem}#status{min-height:1.5em}.reveal{background:#f5eacb}
@media(max-width:780px){.workspace{grid-template-columns:1fr}.intro img{max-height:110px}}@media(max-width:500px){.intro{grid-template-columns:1fr}.intro img{display:none}.project-heading{align-items:start}}

.onion-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}
#onion-help{border:0;background:transparent;padding:.3rem .45rem;color:var(--green);text-decoration:underline;font-size:.88rem}
#onion-dialog{width:min(29rem,calc(100% - 2rem));max-height:calc(100% - 2rem);padding:1.2rem;border:1px solid var(--line);border-radius:14px;color:inherit}
#onion-dialog::backdrop{background:#173a3577}
#onion-dialog h2{margin:0}
#onion-dialog li+li{margin-top:.4rem}
#onion-dialog form{display:flex;justify-content:flex-end}

.finish-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem 1rem;background:#e8efe1;border:1px solid var(--line);border-radius:10px;padding:.65rem .8rem;margin-bottom:.75rem}
.finish-bar p{flex:1 1 16rem;margin:0;color:#274b3d}

.scene-packs[hidden],#pose-control[hidden]{display:none!important}
.scene-packs{margin:.6rem 0;border:1px solid #bbcfb4;border-radius:9px;background:#f3f7ef;padding:.2rem .6rem .45rem}
.scene-packs summary{cursor:pointer;min-height:44px;align-content:center;font-weight:750;color:#19483c}
.scene-packs summary:focus-visible{outline:3px solid #9b6b16;outline-offset:-2px}
.scene-packs p{margin:.25rem 0 .55rem}
.scene-pack{border-top:1px solid #d1deca;padding:.1rem 0 .3rem}
.scene-props button{min-height:44px}

.resize-hint{margin:.2rem 0 .55rem;font-size:.85rem;color:#465a4e}
#scale-value{font-variant-numeric:tabular-nums;min-width:3.5ch}
