:root{color-scheme:light;font-family:ui-rounded,Avenir Next,Avenir,Segoe UI,sans-serif;color:#26231d;background:#d8d0be;font-synthesis:none;--ink: #26231d;--ink-soft: #625b4f;--paper: #f6f0df;--paper-bright: #fffaf0;--paper-deep: #e7dcc3;--desk: #d8d0be;--coral: #d95c4a;--teal: #397d75;--gold: #d29a2e;--shadow: rgba(46, 38, 26, .18);--line: rgba(38, 35, 29, .2);--accent: var(--coral);--accent-text: #11100d}*{box-sizing:border-box}html,body,#root{margin:0;min-width:100%;min-height:100%}body{min-height:100vh;min-height:100svh;overflow-x:hidden;background:radial-gradient(circle at 15% 8%,rgba(255,255,255,.54),transparent 28%),linear-gradient(145deg,var(--desk),#c9c0ad)}button{font:inherit}button:focus-visible{outline:4px solid var(--ink);outline-offset:3px}.app{--accent: var(--coral);--accent-text: #11100d;width:min(100%,880px);min-height:100vh;min-height:100svh;margin:0 auto;padding:max(14px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom))}.app.accent-teal{--accent: var(--teal);--accent-text: var(--paper-bright)}.app.accent-gold{--accent: var(--gold);--accent-text: var(--ink)}.masthead{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 3px 12px}.eyebrow{margin:0 0 2px;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.16em;line-height:1.4;text-transform:uppercase}h1{margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(30px,9vw,44px);line-height:1.1;letter-spacing:-.04em}.subtitle{max-width:245px;margin:0 0 3px;color:var(--ink-soft);font-size:14px;font-weight:650;line-height:1.35;text-align:right}.mechanism-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.tab-button,.part-button,.run-button,.close-button{min-width:48px;min-height:48px;border:2px solid var(--ink);color:var(--ink);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.tab-button{border-radius:14px 14px 6px 6px;background:var(--paper-deep);box-shadow:0 3px 0 var(--ink);font-size:13px;font-weight:850;line-height:1.15}.tab-button[aria-pressed=true]{color:var(--accent-text);background:var(--accent);transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}.tab-button:active,.part-button:active,.run-button:active,.close-button:active{transform:translateY(2px)}.workspace{position:relative;display:grid;gap:10px;padding:10px;border:2px solid var(--ink);border-radius:25px;background:linear-gradient(rgba(38,35,29,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(38,35,29,.035) 1px,transparent 1px),var(--paper);background-size:22px 22px;box-shadow:0 10px #26231d1f,0 22px 34px var(--shadow);overflow:hidden}.object-button{position:relative;display:grid;width:100%;min-width:0;min-height:282px;padding:10px 8px 8px;border:0;border-radius:18px;color:var(--ink);background:#fffaf0d1;cursor:pointer;touch-action:manipulation;overflow:hidden}.object-button:focus-visible{outline-offset:-5px}.object-label{position:absolute;z-index:2;top:12px;left:14px;display:inline-flex;min-height:28px;align-items:center;padding:5px 10px;border:1.5px solid var(--ink);border-radius:999px;color:var(--paper-bright);background:var(--ink);font-size:12px;font-weight:800;line-height:1.2}.diagram-frame{position:relative;display:grid;min-width:0;place-items:center}.mechanism-diagram{display:block;width:100%;max-height:255px;overflow:visible}.paper-sheet{fill:var(--paper-bright);stroke:var(--ink);stroke-width:3}.workbench-line{fill:none;stroke:var(--line);stroke-width:4;stroke-linecap:round}.mechanism-ink{opacity:0;transition:opacity .18s ease .13s}.mechanism-ink path,.mechanism-ink rect,.mechanism-ink circle{fill:var(--paper-deep);stroke:var(--ink);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.mechanism-ink path:not(.solid):not(.accent-fill):not(.cutaway-outline),.mechanism-ink .spring{fill:none}.mechanism-ink .solid{fill:var(--ink)}.mechanism-ink .accent-fill{fill:var(--accent)}.mechanism-ink .heavy{fill:none;stroke-width:11}.mechanism-ink .spring{stroke:var(--accent);stroke-width:6}.mechanism-ink .cutaway-outline{fill:none;stroke:var(--accent);stroke-width:3;stroke-dasharray:8 10;opacity:.75}.diagram-part{transform-box:fill-box;transform-origin:center;transition:filter .16s ease,opacity .16s ease,transform .16s ease}.diagram-part.is-emphasized{filter:drop-shadow(0 0 7px var(--accent));transform:scale(1.06)}.shell-group{transform-box:fill-box;transform-origin:center}.shell-group path,.shell-group rect,.shell-group circle{fill:var(--accent);stroke:var(--ink);stroke-width:6;stroke-linecap:round;stroke-linejoin:round}.shell-group .shell-detail{fill:var(--paper-deep);stroke-width:4}.shell-group .shell-seam{fill:var(--ink)}.shell-group .shell-hardware{fill:var(--gold)}.shell-piece{transform-box:fill-box;transform-origin:center;transition:transform .56s cubic-bezier(.2,.8,.2,1),opacity .5s ease}.mechanism-diagram.is-revealed .mechanism-ink{opacity:1}.mechanism-diagram.is-revealed .shell-upper{opacity:.28;transform:translateY(-62px) rotate(-4deg)}.mechanism-diagram.is-revealed .shell-lower{opacity:.28;transform:translateY(62px) rotate(4deg)}.mechanism-diagram.is-revealed .shell-left{opacity:.28;transform:translate(-82px) rotate(-5deg)}.mechanism-diagram.is-revealed .shell-right{opacity:.28;transform:translate(82px) rotate(5deg)}.mechanism-diagram.is-revealed .shell-group>:not(.shell-piece){opacity:0;transition:opacity .18s ease}.is-operating .pen-button{animation:pen-button .9s ease-in-out both}.is-operating .pen-cam{animation:pen-cam .9s ease-in-out both}.is-operating .pen-refill{animation:pen-refill .9s ease-in-out both}.zipper-channel,.zipper-tape-guide{fill:none!important}.zipper-tape-guide{stroke:var(--line)!important;stroke-width:9!important}.zipper-tooth{transform-box:fill-box;transform-origin:center}.mechanism-diagram.has-operated .zipper-pull,.mechanism-diagram.has-operated .zipper-slider{transform:translate(210px)}.mechanism-diagram.has-operated .zipper-top-tooth{transform:translateY(52px)}.mechanism-diagram.has-operated .zipper-bottom-tooth{transform:translateY(-52px)}.is-operating .zipper-pull,.is-operating .zipper-slider{animation:zipper-travel .9s cubic-bezier(.22,.72,.2,1) both}.is-operating .zipper-top-tooth{animation:zipper-top-mesh .66s ease-in-out both;animation-delay:calc(var(--tooth-index) * 40ms)}.is-operating .zipper-bottom-tooth{animation:zipper-bottom-mesh .66s ease-in-out both;animation-delay:calc(var(--tooth-index) * 40ms)}.is-operating .latch-handle{animation:handle-turn .9s ease-in-out both}.is-operating .latch-cam{animation:cam-turn .9s ease-in-out both}.is-operating .latch-bolt{animation:bolt-pull .9s ease-in-out both}.object-instruction{align-self:end;margin-top:-4px;color:var(--ink-soft);font-size:12px;font-weight:760;line-height:1.3}.idle-nudge{position:absolute;top:43%;left:calc(50% + 116px);width:28px;height:28px;pointer-events:none;transform-origin:2px 14px;animation:object-settle .9s cubic-bezier(.2,.75,.28,1) .28s 1 both;transition:opacity .14s ease}.idle-nudge:before,.idle-nudge:after{position:absolute;top:12px;left:0;width:20px;height:3px;border-radius:999px;background:var(--accent);content:""}.idle-nudge:before{transform:translateY(-7px) rotate(-24deg)}.idle-nudge:after{transform:translateY(7px) rotate(24deg)}.idle-nudge.is-hidden{opacity:0;animation:none}.control-card{min-width:0;min-height:132px;padding:10px;border:2px dashed var(--line);border-radius:17px;background:#fffaf0b3}.part-list{display:grid;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.part-button{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:5px;padding:6px;max-width:100%;border-radius:10px;background:var(--paper-bright);font-size:11px;font-weight:800;line-height:1.15;overflow-wrap:anywhere;text-align:left;white-space:normal}.part-button span{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;color:var(--paper-bright);background:var(--ink);font-size:11px}.part-button[aria-pressed=true]{color:var(--accent-text);background:var(--accent)}.causal-copy{min-height:43px;margin:9px 2px 8px;color:var(--ink-soft);font-size:13px;font-weight:650;line-height:1.35}.action-row{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px}.run-button{width:100%;border-radius:13px;color:var(--accent-text);background:var(--accent);box-shadow:0 4px 0 var(--ink);font-size:14px;font-weight:900}.run-button:disabled{cursor:wait;border-style:dashed;box-shadow:0 2px 0 var(--ink)}.run-button span{display:inline-block;margin-right:7px}.close-button{width:100%;margin:0;border-color:var(--ink);border-radius:12px;color:var(--ink);background:var(--paper-bright);font-size:13px;font-weight:900}.closed-note{display:grid;min-height:108px;place-items:center;align-content:center;gap:3px;color:var(--ink-soft);font-size:13px;line-height:1.3;text-align:center}.closed-note strong{color:var(--ink);font-family:Georgia,Times New Roman,serif;font-size:21px}.peel-mark{display:grid;width:35px;height:35px;place-items:center;border:2px solid var(--ink);border-radius:50%;color:var(--accent-text);background:var(--accent);font-size:20px}@keyframes object-settle{0%{transform:translateY(0) rotate(0)}28%{transform:translateY(-5px) rotate(-9deg)}55%{transform:translateY(2px) rotate(4deg)}78%{transform:translateY(-1px) rotate(-2deg)}to{transform:translateY(0) rotate(0)}}@keyframes pen-button{0%,to{transform:translate(0)}25%,65%{transform:translate(18px)}}@keyframes pen-cam{0%,18%{transform:rotate(0)}46%,72%{transform:rotate(36deg)}to{transform:rotate(0)}}@keyframes pen-refill{0%,38%{transform:translate(0)}70%{transform:translate(24px)}to{transform:translate(0)}}@keyframes zipper-travel{0%{transform:translate(0)}to{transform:translate(210px)}}@keyframes zipper-top-mesh{0%,15%{transform:translateY(0)}to{transform:translateY(52px)}}@keyframes zipper-bottom-mesh{0%,15%{transform:translateY(0)}to{transform:translateY(-52px)}}@keyframes handle-turn{0%,to{transform:rotate(0)}55%,72%{transform:rotate(20deg)}}@keyframes cam-turn{0%,20%,to{transform:rotate(0)}58%,76%{transform:rotate(30deg)}}@keyframes bolt-pull{0%,38%,to{transform:translate(0)}68%,80%{transform:translate(-48px)}}@media(max-width:559px)and (max-height:620px){.app{padding:max(7px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))}.masthead{margin-bottom:6px}.subtitle{display:none}.eyebrow{font-size:9px}h1{font-size:27px}.mechanism-tabs{gap:5px;margin-bottom:6px}.tab-button{min-height:48px;padding:3px;font-size:11px}.workspace{gap:6px;padding:6px;border-radius:18px}.object-button{min-height:225px;padding:5px}.mechanism-diagram{max-height:202px}.idle-nudge{left:calc(50% + 96px)}.object-label{top:7px;left:8px}.control-card{min-height:96px;padding:6px}.closed-note{min-height:76px}.closed-note span:last-child{display:none}.part-button{font-size:9px}.causal-copy{min-height:35px;margin:5px 2px;font-size:11px}.action-row{grid-template-columns:minmax(0,1fr) 82px;gap:5px}}@media(min-width:560px)and (max-height:520px)and (min-aspect-ratio:4 / 3)and (max-aspect-ratio:3 / 1){.app{width:min(100%,960px);min-height:100vh;padding:8px 12px}.masthead{display:none}.mechanism-tabs{max-width:520px;margin:0 auto 6px}.tab-button{min-height:48px}.workspace{grid-template-columns:minmax(0,1.45fr) minmax(245px,.75fr);align-items:stretch;gap:8px;padding:7px}.object-button{min-height:220px;max-height:none;padding:4px}.mechanism-diagram{max-height:205px}.control-card{min-height:0}.part-list{grid-template-columns:repeat(2,minmax(0,1fr))}.part-button{min-height:48px}.causal-copy{min-height:35px;margin:5px 2px;font-size:11px}.action-row{grid-template-columns:minmax(0,1fr) 82px;gap:5px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;transition-delay:0ms!important}}
