:root{--bg:#F6F3EE;--surface:#FFFFFF;--fg:#1F1A17;--muted:#6B625B;--line:#E3DCD3;--accent:#B85C12;--on-accent:#FFFFFF;--tint:#FBEAD9;--good:#2E7D4F;--warn:#9A6B00;
--bad:#B3261E;--radius:18px;--radius-sm:12px;--shadow:0 6px 24px rgba(40,25,10,.08);--sans:"Atkinson Hyperlegible","Helvetica Neue",Arial,sans-serif;--mono:"Atk\
inson Hyperlegible Mono",ui-monospace,"SF Mono",Menlo,monospace;--font:var(--sans)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#171412;
--surface:#221E1A;--fg:#F3EEE8;--muted:#A89E95;--line:#36302B;--accent:#F0944A;--on-accent:#1A120A;--tint:#2E2219;--good:#7CC79A;--warn:#E6B65C;--bad:#F08C84;color-scheme:dark}}
:root[data-theme=dark]{--bg:#171412;--surface:#221E1A;--fg:#F3EEE8;--muted:#A89E95;--line:#36302B;--accent:#F0944A;--on-accent:#1A120A;--tint:#2E2219;--good:#7CC79A;
--warn:#E6B65C;--bad:#F08C84;color-scheme:dark}:root[data-font=dyslexic]{--font:"OpenDyslexic","Atkinson Hyperlegible",Arial,sans-serif}@font-face{font-family:OpenDyslexic;
src:url(https://cdn.jsdelivr.net/gh/antijingoist/opendyslexic@master/compiled/OpenDyslexic-Regular.woff2) format("woff2");font-weight:400;font-display:swap}*{box-sizing:border-box}
[hidden]{display:none!important}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font);font-size:17px;line-height:1.5;
-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}:root[data-font=dyslexic] body{font-size:16px;line-height:1.6}.frame{max-width:520px;margin:0 auto;
min-height:100%;display:flex;flex-direction:column;background:var(--bg)}@media(min-width:600px){body{background:color-mix(in srgb,var(--bg) 82%,var(--fg) 6%)}.frame{
min-height:100vh;box-shadow:var(--shadow);border-left:1px solid var(--line);border-right:1px solid var(--line)}}.skip{position:absolute;left:-999px;top:8px;background:var(--accent);
color:var(--on-accent);padding:8px 12px;border-radius:8px;z-index:50}.skip:focus{left:8px}.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;display:flex;
align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 16px;background:var(--bg);border-bottom:1px solid var(--line)}.wordmark{font-weight:700;
font-size:1.25rem;text-decoration:none;color:var(--fg);display:flex;align-items:center;gap:7px}.mark{width:18px;height:18px;color:var(--accent);flex:0 0 auto}.tools{
display:flex;gap:6px}.icon-btn{min-width:44px;min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:14px;font:inherit;
font-size:.9rem;padding:0 10px;cursor:pointer;white-space:nowrap}:root[data-font=dyslexic] .icon-btn{font-size:.8rem;padding:0 8px}.icon-btn[aria-pressed=true]{
background:var(--tint);border-color:var(--accent)}main{flex:1;padding:16px 16px 32px;display:flex;flex-direction:column;gap:16px}h1,h2,h3{margin:0;line-height:1.15;
text-wrap:balance}h1{font-size:1.9rem;font-weight:700}h2{font-size:1.35rem;font-weight:700}h3{font-size:1.05rem;font-weight:700}p{margin:0}.lede{color:var(--muted);
font-size:1.05rem;max-width:36ch}.eyebrow{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}.stack{display:flex;
flex-direction:column;gap:12px}.stack.tight{gap:6px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);
display:flex;flex-direction:column;gap:10px}.door{text-decoration:none;color:inherit;display:grid;grid-template-columns:1fr auto;gap:8px 14px;align-items:center}
.door .arrow{font-size:1.6rem;color:var(--accent);grid-row:1/3}.door p{color:var(--muted);font-size:.95rem}:is(a,button,input,select,output,[tabindex]):focus-visible{
outline:3px solid var(--accent);outline-offset:2px}h1[tabindex]:focus-visible,h2[tabindex]:focus-visible{outline:none}.btn{display:inline-flex;align-items:center;
justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;
font-weight:700;cursor:pointer;text-decoration:none}.btn.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.btn.block{width:100%}
.btn[disabled]{opacity:.5;cursor:default}.row{display:flex;gap:10px;flex-wrap:wrap}.row>*{flex:1 1 140px;min-width:0}.field{display:flex;flex-direction:column;gap:6px;
min-width:0}.field label{font-weight:700;font-size:.95rem}.field small{color:var(--muted);font-size:.85rem}.field input,.field select{font:inherit;font-size:1.05rem;
min-height:48px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--fg);width:100%;font-variant-numeric:tabular-nums}
.field input[aria-invalid=true]{border-color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad)}.field .err{color:var(--bad);font-size:.85rem}.seg{display:inline-flex;
border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}.seg button{font:inherit;font-weight:700;min-height:44px;padding:0 16px;
border:0;background:transparent;color:var(--muted);cursor:pointer}.seg button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}.stepper{display:flex;
align-items:center;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface)}.stepper button{font:inherit;font-size:1.3rem;min-width:48px;
min-height:48px;border:0;background:transparent;color:var(--fg);cursor:pointer}.stepper output{flex:1;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px
10px;text-align:center}.tile b{display:block;font-size:1.6rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1}.tile span{font-size:.8rem;color:var(--muted)}
.section{width:100%;height:auto;max-width:100%;display:block}.dim{font-family:var(--mono);font-size:9px;fill:var(--muted)}.shape{width:100%;max-width:100%;height:auto}
table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:right;padding:10px 8px;border-bottom:1px solid var(--line);font-size:.95rem;
vertical-align:top}th:first-child,td:first-child{text-align:left}th{color:var(--muted);font-weight:700;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}
td{font-family:var(--mono)}td.t{font-family:var(--font)}.tablewrap{overflow-x:auto}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{font:inherit;font-weight:700;
min-height:44px;padding:0 16px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--fg);cursor:pointer}.chip[aria-pressed=true]{
background:var(--tint);border-color:var(--accent)}.note{font-size:.9rem;color:var(--muted)}.notice{border-left:4px solid var(--warn);padding:8px 12px;background:var(--tint);
border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-size:.95rem}.notice.bad{border-color:var(--bad)}.foot{padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px));
border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.85rem;color:var(--muted)}.foot a{color:var(--muted)}
.sheet{position:fixed;inset:0;background:#0006;display:flex;align-items:flex-end;justify-content:center;z-index:20;padding:0 0 env(safe-area-inset-bottom,0px)}.sheet
.card{width:100%;max-width:520px;border-radius:var(--radius) var(--radius) 0 0}input[type=range]{width:100%;accent-color:var(--accent)}.range-val{font-weight:700;
font-variant-numeric:tabular-nums}.sw{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin-right:6px;border:1px solid rgba(0,0,0,.15)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(prefers-reduced-motion:no-preference){.btn,.chip,.icon-btn{
transition:background .15s,border-color .15s}}.editor-card{padding:10px;touch-action:manipulation}.sec{display:block;width:100%;aspect-ratio:1/1;max-height:70vh;
touch-action:none;user-select:none;-webkit-user-select:none;border-radius:var(--radius-sm)}.sec .paper{fill:var(--surface)}.sec .g-minor{stroke:var(--line);stroke-width:.5;
opacity:.6}.sec .g-major{stroke:var(--line);stroke-width:1}.sec .blank{stroke:var(--line);stroke-width:.7;opacity:.55}.sec .blank.newring{opacity:.3;stroke-dasharray:3
3}.sec .ghostring{fill:none;stroke:var(--muted);stroke-dasharray:3 3}.sec .fin{fill:var(--bg);stroke:var(--fg);stroke-width:1.6;stroke-linejoin:round;opacity:.92}
.sec .axis{stroke:var(--muted);stroke-dasharray:6 4;stroke-width:.8}.sec .ringno{font-family:var(--mono);font-size:10px;fill:var(--muted)}.sec .dim{stroke:var(--muted);
stroke-width:1}.sec .dimbg{fill:var(--surface);stroke:var(--line)}.sec .dimtxt,.sec .guide-lbl{font-family:var(--mono);font-size:10px;fill:var(--fg)}.sec .prof{
fill:none;stroke:var(--accent);stroke-width:2.2}.sec .curvehit{fill:none;stroke:transparent;stroke-width:28;cursor:crosshair}.sec .guide{stroke:var(--accent);stroke-width:1;
stroke-dasharray:4 3}.sec .guide.free{stroke:var(--muted)}.sec .guide-ref{stroke:var(--muted);stroke-width:.8}.sec .guide-arc{fill:none;stroke:var(--accent);stroke-width:1}
.sec .guide-arc.free{stroke:var(--muted)}.sec .handle{cursor:grab;outline:none}.sec .hhit{fill:transparent}.sec .hdot{fill:var(--surface);stroke:var(--accent);stroke-width:2.5}
.sec .hdot.on{fill:var(--accent)}.sec .handle:focus-visible .hdot{stroke:var(--fg);stroke-width:3}.sec .callout{fill:var(--fg);opacity:.92}.sec .callout.warn{fill:var(--accent)}
.sec .callout-t{font-family:var(--mono);font-size:11px;fill:var(--bg)}.sec .callout.warn~.callout-t{fill:var(--on-accent)}.sec .callout-t.strong{font-weight:700}
.toolbar{margin-top:8px}.btn.small{min-height:40px;padding:0 12px;font-size:.9rem}.btn[aria-pressed=true]{background:var(--tint);border-color:var(--accent)}.flabel{
font-weight:700;font-size:.95rem}.check{display:flex;gap:10px;align-items:center;font-weight:700;min-height:44px}.check input{width:22px;height:22px;accent-color:var(--accent)}
#toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);background:var(--fg);color:var(--bg);font-size:.95rem;
padding:10px 16px;border-radius:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:40;max-width:calc(100vw - 32px)}#toast.on{opacity:1;
transform:translate(-50%)}:root{--stage-top:calc(env(safe-area-inset-top,0px) + var(--top-h,65px) + 8px)}.render-card{padding:12px}#viz{position:sticky;top:var(--stage-top);
z-index:3}#viz .roll-head .seg{flex:1 1 auto;min-width:0}#viz .roll-head .seg button{flex:1 1 auto;padding:0 8px}#viz .roll-sum{display:none}.gl-wrap{touch-action:manipulation;
position:relative;height:28vh;border-radius:var(--radius-sm);overflow:hidden;background:var(--bg);border:1px solid var(--line);margin-top:10px}#gl-note{display:none}
.gl-wrap canvas{display:block;width:100%;height:100%;touch-action:none}.gl-tools{position:absolute;right:8px;bottom:8px;display:flex;gap:6px}.gl-tools .btn{background:var(--surface);
opacity:.92}.map-card{padding:12px}.map-wrap{margin-top:8px}#map,#elev{width:100%;height:auto;display:block;touch-action:pan-y;user-select:none;-webkit-user-select:none}
#map .mc{cursor:crosshair;stroke:var(--surface);stroke-width:.8}#map .map-sel,#elev .map-sel{fill:none;stroke:var(--accent);stroke-width:3;pointer-events:none}#map
.map-lbl,#elev .map-lbl{font-family:var(--mono);fill:var(--muted);font-size:22px;cursor:pointer}#map .map-lbl .map-n{font-size:14px}#map .map-lbl.on,#elev .map-lbl.on{
fill:var(--accent);font-weight:700}#map .msp{pointer-events:none}#map .msg{fill:var(--fg);opacity:.55;pointer-events:none}#elev .ep,#elev .eb{stroke:#00000059;stroke-width:.45;
cursor:pointer}#elev .es{pointer-events:none}#elev .erim{stroke:var(--accent);stroke-width:1;stroke-dasharray:6 3;pointer-events:none}.map-brush{display:flex;gap:6px;
flex-wrap:wrap;align-items:center}.map-brush-name{font-size:.85rem;color:var(--muted);margin-left:4px}.swb{width:36px;height:36px;padding:3px;border:2px solid var(--line);
background:var(--surface);cursor:pointer;border-radius:10px}.swb i{display:block;width:100%;height:100%;border-radius:6px}.swb[aria-pressed=true]{border-color:var(--accent);
box-shadow:0 0 0 2px var(--tint)}.map-tools{align-items:center}.map-tools .flabel{flex:1 1 100%}#g-seq{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.seq-row{display:grid;grid-template-columns:1fr 70px 44px;gap:6px;align-items:center}.seq-row select,.seq-row input{font:inherit;min-height:44px;padding:0 10px;
border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--fg);min-width:0}.seq-row button{min-height:44px;border:1px solid
var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--fg);font:inherit;cursor:pointer}.seq-foot{display:flex;justify-content:space-between;
align-items:center;gap:8px;margin-top:6px}.sheet-body{display:flex;flex-direction:column;gap:14px}.sheet-head{display:flex;justify-content:space-between;align-items:baseline;
gap:12px;flex-wrap:wrap;border-bottom:2px solid var(--fg);padding-bottom:6px}.sheet-head .wm{font-weight:700;font-size:1.3rem;display:inline-flex;align-items:center;
gap:7px}.sheet-head .wm .mark{width:19px;height:19px}.sheet-head .when{font-family:var(--mono);font-size:.8rem;color:var(--muted)}.sheet-sec{display:flex;flex-direction:column;
gap:6px}.sheet-sec h2{font-size:1.1rem;border-bottom:1px solid var(--line);padding-bottom:4px}.sheet-sec table{font-size:.9rem}.sheet-sec th,.sheet-sec td{padding:6px}
.sheet-sec .section{max-width:420px}.sheet-sec svg.sheet-map{width:100%;height:auto}.sheet-foot{font-family:var(--mono);font-size:.78rem;color:var(--muted);border-top:1px
solid var(--line);padding-top:6px}@media print{:root{--bg:#fff;--surface:#fff;--fg:#000;--muted:#444;--line:#999;--accent:#000;--tint:#eee;--shadow:none}html,body{
height:auto;background:#fff}body{font-size:9.5pt;line-height:1.35}.frame{max-width:none;border:0;box-shadow:none;min-height:0}#sheet{max-width:none}.top,.foot,.no-print,
#toast,.skip{display:none!important}main{padding:0}#sheet{display:block!important}.sheet-body{display:grid;grid-template-columns:1fr 1fr;gap:3mm 8mm;align-items:start}
.sheet-body>*{grid-column:1/-1}.sheet-head{padding-bottom:3px}.sheet-head .wm{font-size:1.1rem}.sheet-body h1{font-size:1.5rem}.sheet-body .lede{font-size:10pt;
max-width:none}.sheet-section,.sheet-rings{grid-column:auto}.sheet-sec,.sheet-sec table,.sheet-sec tr{break-inside:avoid;gap:3px}.sheet-sec th,.sheet-sec td{white-space:nowrap}
.sheet-sec td br{display:none}.sheet-sec td small{margin-left:6px}.sheet-sec td .sw{margin-left:8px}.sheet-sec td .sw:first-child{margin-left:0}.sheet-sec h2{break-after:avoid;
font-size:10.5pt;padding-bottom:2px}.sheet-sec .section{max-width:100%;max-height:62mm;display:block;margin:0 auto}.sheet-sec table{font-size:8.5pt}.sheet-sec th,
.sheet-sec td{padding:3px 5px}.sheet-sec .note,.sheet-foot{font-size:8pt}.sheet-sec svg.sheet-map{max-height:80mm;width:auto;max-width:100%;margin:0 auto;display:block}
.tile b{font-size:1.2rem}a{color:inherit;text-decoration:none}@page{margin:12mm}}.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.85rem;
margin:4px 0}.or i{flex:1;border-top:1px solid var(--line)}.btn .pv{width:18px;height:18px;flex:0 0 auto}.btn.link{min-height:40px;border:0;background:transparent;
font-weight:400;color:var(--accent);text-decoration:underline}.notice.good{border-color:var(--good)}.sheet .card{max-height:calc(100vh - 24px);overflow-y:auto}.design-row{
display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center}.design-row h2{font-size:1.05rem;grid-column:1}.design-row .meta{grid-column:1;font-size:.85rem;
color:var(--muted)}.design-row .badge{grid-column:2;grid-row:1/3;font-size:.78rem;font-weight:700;color:var(--accent);background:var(--tint);border-radius:999px;
padding:4px 10px;white-space:nowrap}.design-row .row{grid-column:1/3;margin-top:4px}.design-row .row>*{flex:1 1 90px}.danger summary{cursor:pointer;font-weight:700;
min-height:44px;display:flex;align-items:center}.legal h2{font-size:1.05rem;margin-top:6px}.legal p{line-height:1.55}#doc-status{min-height:1.2em}.note a,.legal
a,.sheet .note a{color:var(--accent)}.chips.folders{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.chips.folders
.chip{white-space:nowrap;flex:0 0 auto}.design-row .meta .fold{color:var(--accent);font-weight:700}#pick-list .btn[aria-pressed=true]{background:var(--tint);border-color:var(--accent)}
#pick-list .btn.bad{color:var(--bad)}.foot-fig{display:block;width:100%;max-width:360px;height:auto;margin:2px auto 0}.foot-fig .base{stroke:var(--fg);stroke-width:1.5;
stroke-linejoin:round}.foot-fig .jaw{fill:var(--muted);opacity:.6;stroke:var(--fg);stroke-width:1;stroke-linejoin:round}.foot-fig .arr{stroke:var(--accent);stroke-width:2;
fill:none}.foot-fig .head{fill:var(--accent)}.foot-fig .dim{stroke:var(--muted);stroke-width:1}.foot-fig .lbl{font-family:var(--mono);font-size:11px;fill:var(--fg)}
.foot-fig .cap{font-size:10.5px;fill:var(--muted)}.edge-row{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;align-items:center}.edge-row label{grid-column:1/3;
font-weight:700;font-size:.95rem}.edge-row label small{display:block;font-weight:400}.edge-row input,.edge-row select{font:inherit;font-size:1.05rem;min-height:48px;
padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--fg);min-width:0;width:100%;font-variant-numeric:tabular-nums}
.edge-row input[aria-invalid=true]{border-color:var(--bad)}:root[data-level=simple] .adv{display:none!important}.lvl-toggle{margin-left:auto;font:inherit;font-size:.8rem;
font-weight:700;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);cursor:pointer;white-space:nowrap}
.lvl-toggle[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:var(--tint)}.roll-head{display:flex;align-items:center;gap:10px;min-width:0}
.roll-head h2{flex:0 0 auto;max-width:70%}.roll-sum{flex:1 1 auto;min-width:0;font-size:.85rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
text-align:right}.roll-btn{flex:0 0 auto;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);cursor:pointer;
display:inline-flex;align-items:center;justify-content:center;padding:0}.roll-btn svg{width:16px;height:16px}.card.rolled .roll-btn svg{transform:rotate(-90deg)}
.card.rolled>:not(.roll-head){display:none!important}.card.rolled{gap:0}@media(prefers-reduced-motion:no-preference){.roll-btn svg{transition:transform .15s}}.eyebrow-row{
display:flex;gap:14px;align-items:baseline}.help-link{font-size:.85rem;font-weight:700;color:var(--accent)}.help-toc{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:2px 16px;padding:12px 18px}.help-toc a{color:var(--accent);min-height:40px;display:flex;align-items:center}.help-sec{scroll-margin-top:calc(env(safe-area-inset-top,0px)
+ var(--top-h,65px) + 16px)}main>section{scroll-margin-top:calc(env(safe-area-inset-top,0px) + var(--top-h,65px) + 24px)}.help-sec h2{font-size:1.3rem;margin-top:0}
.help-sec h3{font-size:1.05rem;margin-top:8px}.help-sec ul{margin:0;padding-left:1.2em;line-height:1.55;display:flex;flex-direction:column;gap:6px}.help-sec dl{
margin:0;line-height:1.5}.help-sec dt{font-weight:700;margin-top:6px}.help-sec dd{margin:0}mark{background:var(--tint);color:inherit;border-radius:3px;padding:0
1px;box-shadow:0 0 0 1px var(--tint)}.help-search input{font-size:1rem}.with-shot{display:flex;flex-direction:column;gap:10px}figure.shot{margin:0;max-width:380px}
.shot img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.shot img{display:none}:root[data-shot=in-light]
.shot .in-light,:root[data-shot=in-dark] .shot .in-dark,:root[data-shot=mm-light] .shot .mm-light,:root[data-shot=mm-dark] .shot .mm-dark{display:block}[data-in],
[data-mm]{display:none}:root[data-units=in] [data-in],:root[data-units=mm] [data-mm]{display:inline}.mark-logo{align-items:center}.mark-logo .note{flex:1 1 120px;
overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip .n{font-weight:400;color:var(--muted)}.chip[aria-pressed=true] .n{color:inherit}.shot figcaption{
font-size:.82rem;color:var(--muted);margin-top:4px}@media(min-width:900px){.with-shot{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px 20px;align-items:start}}
kbd{font-family:var(--mono);font-size:.85em;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;padding:0 5px;background:var(--surface)}.region,
.tabpane{display:contents}.tabs{display:none}#plan>.head{order:-2}#plan .tabpane>*{order:-1}#pattern #ring-card{order:1}#pattern #elev-card{order:2}#pattern #maker{
order:3}#pattern #pattern-actions{order:4}@media(min-width:900px){.frame{max-width:1280px}.top{padding:10px 24px}main{padding:24px 24px 48px}.foot{padding-left:24px;
padding-right:24px}h1{font-size:2.2rem}.region{display:flex;flex-direction:column;gap:16px;min-width:0}#start,#size,#shape,#cuts,#sheet,#designs,#help,#privacy,
#terms,#about{width:100%;max-width:760px;margin:0 auto}#start{max-width:960px}.doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.doors .door{align-content:start}#size,#shape{max-width:640px}.work main{padding-bottom:16px}.work .foot{display:none}.screen{display:grid;grid-template-columns:minmax(0,1fr)
minmax(0,1fr);grid-template-areas:"head head" "viz viz" "stage side";gap:16px 24px;align-items:start}.screen>#viz{grid-area:viz}.screen>.head{grid-area:head}.screen>
.stage,.screen>.side{position:sticky;top:var(--stage-top);height:calc(100vh - var(--stage-top) - 16px)}.screen>.stage{grid-area:stage}.screen>.side{grid-area:side;
display:flex;flex-direction:column;gap:12px;min-width:0}.side>.aside,.side>.more{display:contents}#plan{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}#edit{
grid-template-columns:minmax(0,11fr) minmax(0,9fr)}#pattern{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;
background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex:0 0 auto}.tab{flex:1 1 auto;display:flex;flex-direction:column;
align-items:flex-start;gap:1px;min-height:48px;padding:5px 12px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--fg);font:inherit;
font-weight:700;font-size:.95rem;cursor:pointer;min-width:0;text-align:left}.tab small{font-weight:400;font-size:.74rem;color:var(--muted);max-width:100%;overflow:hidden;
text-overflow:ellipsis;white-space:nowrap}.tab[aria-selected=true]{background:var(--tint);border-color:var(--accent);color:var(--accent)}.side [data-tab]{display:none}
.side [data-tab].tab-on{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0;overflow-y:auto}.side .tabpane.tab-on{background:var(--surface);border:1px
solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.side .roll-btn{display:none}.side>.aside>.row,.side>.more>.row{flex:0 0 auto}
:root{--stage-top:calc(env(safe-area-inset-top,0px) + var(--top-h,65px) + 16px)}#viz{position:static;z-index:auto;width:100%}#viz .roll-sum,#gl-note{display:block}
.gl-wrap{height:38vh;aspect-ratio:auto;max-height:none}#plan #section-card{flex:1 1 auto;min-height:0;align-items:center;justify-content:center}#plan .section{flex:1
1 auto;min-height:0;max-height:none;width:100%;height:auto}#edit .gl-wrap{height:32vh}#edit #gl-note{display:none}#edit .editor-card{flex:1 1 auto;min-height:0}
#edit .sec{flex:1 1 auto;min-height:140px;max-height:none;aspect-ratio:auto;height:auto}.editor-card .toolbar>*{flex:1 1 90px}#pattern .gl-wrap{height:30vh}#pattern
#map-card{flex:1 1 auto;min-height:0}#pattern .map-wrap{flex:1 1 auto;min-height:0;display:flex;justify-content:center}#pattern #map-card .map-wrap{min-height:160px}
#map{flex:1 1 auto;min-height:0;max-height:none;height:auto;width:100%}#pattern #elev-card{flex:0 1000 auto;min-height:48px;overflow:hidden}#elev{flex:0 1 auto;
min-height:0;max-height:22vh}.screen>.stage{overflow-y:auto}.map-tools .flabel{flex:0 0 auto}.sheet{align-items:center;padding:24px}.sheet .card{border-radius:var(--radius);
max-height:calc(100vh - 48px)}}@media(min-width:900px)and (max-height:800px){.gl-wrap{height:30vh}#edit .gl-wrap,#pattern .gl-wrap{height:24vh}#map-aux{display:none}}
.face-card{padding:10px}.face{display:block;width:100%;height:auto;aspect-ratio:1/1;max-height:70vh;touch-action:none;user-select:none;-webkit-user-select:none}
.face .paper{fill:var(--surface)}.face .piece{stroke:var(--fg);stroke-width:.8;stroke-linejoin:round;stroke-opacity:.55}.face .piece.strip{stroke-opacity:.3}.face
.grain{stroke:#0000002e;stroke-width:.6}.face .block0{stroke:var(--muted);stroke-dasharray:3 3;fill:none;stroke-width:.8}.face .rim{fill:none;stroke:var(--accent);
stroke-width:1.8;stroke-dasharray:6 4}.face .round{fill:none;stroke:var(--fg);stroke-width:1;stroke-dasharray:2 3;opacity:.7}.face .swing{fill:none;stroke:var(--bad);
stroke-width:1;stroke-dasharray:2 3;opacity:.8}.face .axis{stroke:var(--fg);stroke-width:1;opacity:.6}.face .lean{stroke:var(--accent);stroke-width:2}.face .lean-tip{
fill:var(--accent)}.face .handle{cursor:grab;outline:none}.face .hhit{fill:transparent}.face .hdot{fill:var(--surface);stroke:var(--accent);stroke-width:2.5}.face
.hdot.axis-dot{fill:var(--accent)}.face .hdot.turn{stroke:var(--fg)}.face .handle:focus-visible .hdot{stroke:var(--fg);stroke-width:3}.face .lbl{font-family:var(--mono);
font-size:10px;fill:var(--muted)}.face .no{font-family:var(--mono);font-size:11px;font-weight:700;fill:var(--fg)}.face .nobg{fill:var(--surface);stroke:var(--line)}
.face .dim{font-family:var(--mono);font-size:10px;fill:var(--fg)}.face .mark{stroke:var(--fg);stroke-width:1.2}.cut{border:1px solid var(--line);border-radius:var(--radius-sm);
padding:10px 12px;display:flex;flex-direction:column;gap:8px}.cut .cut-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.cut .cut-head
b{font-size:1rem}.cut.off{border-color:var(--bad)}.glue-step{font-family:var(--mono);color:var(--muted)}.tile.bad b,tr.off td{color:var(--bad)}@media(min-width:900px){
#blank,#corner{grid-template-columns:minmax(0,11fr) minmax(0,9fr)}#corner #corner-section{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center}
#corner .section{flex:1 1 auto;min-height:0;max-height:none;width:100%;height:auto}#blank .face-card{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
#blank .face{flex:1 1 auto;min-height:200px;max-height:none;aspect-ratio:auto;height:auto}}.is-blank .rings-only{display:none!important}body:not(.is-blank) .blk{
display:none!important}body.big-view{overflow:hidden}body.big-view .top{visibility:hidden}body.big-view .gl-wrap{position:fixed;inset:0;z-index:100;height:100vh;
height:100dvh;max-height:none;aspect-ratio:auto;margin:0;border:0;border-radius:0;background:var(--bg)}body.big-view .gl-tools{bottom:calc(env(safe-area-inset-bottom,0px)
+ 12px)}body.big-view #toast{z-index:70}
