:root{color-scheme:light;--ink:#213231;--muted:#5d6f69;--paper:#f6f7f2;--surface:#ffffff;--edge:#dce1d8;--accent:#1e7877;--accent-soft:#e6f1eb;--warm:#eee8d9}
    *{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
    main{max-width:1480px;margin:auto;padding:30px 34px 42px}h1,h2,h3,p{margin:0}h1{font-size:clamp(24px,3vw,36px);font-weight:650;letter-spacing:-.04em;line-height:1.15}
    .eyebrow{font-size:11px;letter-spacing:.15em;text-transform:uppercase;font-weight:750;color:var(--accent);margin-bottom:9px}
    .heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.subhead{max-width:750px;margin-top:10px;color:var(--muted)}
    .version{text-align:right;font-size:12px;white-space:nowrap;color:var(--muted)}.version strong{color:var(--ink);font-weight:650}
    .status{border-left:3px solid #bd9260;padding:11px 16px;background:var(--warm);font-size:13px;margin-bottom:22px;line-height:1.5}.status strong{font-weight:700}
    .workbench{display:grid;grid-template-columns:minmax(0,1fr) 312px;gap:20px;align-items:start}.workspace{min-width:0}
    .toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:13px;align-items:end}.field{display:flex;flex-direction:column;gap:5px;min-width:140px;flex:1;font-size:12px;font-weight:650;letter-spacing:.01em}
    select,button{font:inherit;color:var(--ink);background:var(--surface);border:1px solid #c6d1c7;border-radius:7px;min-height:40px}select{width:100%;padding:8px 31px 8px 11px;font-size:14px;font-weight:450}button{padding:7px 13px;font-size:13px;cursor:pointer}button:hover{border-color:var(--accent);background:#f0f5ed}button:disabled,select:disabled{opacity:.43;cursor:default}input{accent-color:var(--accent)}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #79adaa;outline-offset:2px}
    .toolbar .units{flex:0 0 90px;min-width:90px}.stage{min-width:240px!important;flex-basis:100%!important}
    .scene-wrap{position:relative;background:var(--paper);border:1px solid var(--edge);border-radius:10px;overflow:hidden}.scene-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:13px 16px 0;font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.02em}.scene-top span:first-child{color:var(--accent)}
    canvas{display:block;width:100%;height:clamp(470px,48vw,650px);touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.scene-hint{font-size:11px;color:var(--muted);min-height:37px;padding:0 16px 11px;text-align:center}
    .scene-tools{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:12px 0 5px;font-size:12px}.check{display:flex;gap:7px;align-items:center;min-height:29px;line-height:1.2;font-weight:500}.check input{margin:0;width:16px;height:16px}.zoom{display:flex;gap:5px;margin-left:auto}.zoom button{min-height:33px;padding:4px 11px;font-size:14px}.step-buttons{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
    .opening{border-top:1px solid var(--edge);margin-top:10px;padding-top:14px}.opening-label{display:flex;justify-content:space-between;font-size:12px;font-weight:650;margin-bottom:7px}.opening output{font-weight:450;color:var(--muted);font-variant-numeric:tabular-nums}.opening-controls{display:flex;gap:13px;align-items:center}.opening input{min-width:0;flex:1}.opening button{min-width:107px;background:var(--accent);color:#fff;border-color:var(--accent);font-weight:650}.opening-note{margin-top:6px;color:var(--muted);font-size:11px}
    .side{display:flex;flex-direction:column;gap:16px}.panel{background:var(--surface);border:1px solid var(--edge);border-radius:10px;padding:20px}.panel h2{font-size:15px;line-height:1.35;font-weight:650;letter-spacing:-.015em}.panel p{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.65}.panel .part-size{font-size:20px;line-height:1.4;font-weight:650;color:var(--accent);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:11px;letter-spacing:-.015em}.panel .axis{font-size:11px;margin-top:5px;line-height:1.4}.panel .part-id{font-size:9px;letter-spacing:.03em;overflow-wrap:anywhere;color:#7b8980;margin-top:12px}.part-field{margin-bottom:18px}.measure{display:grid;grid-template-columns:1fr auto;gap:8px 15px;margin-top:16px;font-size:12px;line-height:1.4}.measure dt{color:var(--muted)}.measure dd{margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}.legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-top:15px;font-size:11px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:7px}.swatch{width:11px;height:11px;display:inline-block;border:1px solid #0002;border-radius:2px}.timber{background:#c59d6b}.plywood{background:#efede0}.inside{background:#e0dac4}.foam{background:#89bbcc}.trim{background:#fbfaf3}.gasket{background:#2c3332}
    .reference{margin-top:32px;border-top:1px solid var(--edge);padding-top:27px}.reference h2{font-size:19px;line-height:1.3;letter-spacing:-.025em}.reference-intro{font-size:13px;color:var(--muted);margin-top:8px}.reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:20px}.reference h3{font-size:13px;margin-bottom:10px}.reference table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}.reference th,.reference td{padding:8px 0;border-bottom:1px solid var(--edge);vertical-align:top}.reference th{font-weight:500;color:var(--muted);width:49%;padding-right:16px}.reference td{font-variant-numeric:tabular-nums}.reference .small{font-size:11px;color:var(--muted);margin-top:10px;line-height:1.6}.footer{margin-top:27px;color:var(--muted);font-size:11px;max-width:950px;line-height:1.65}
    [hidden]{display:none!important}
    @media(max-width:1000px){main{padding:24px 24px 35px}.workbench{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.panel{padding:17px}.toolbar{gap:9px}.field{min-width:128px}.toolbar .units{flex-basis:78px;min-width:78px}canvas{height:540px}.scene-top{font-size:10px}.scene-top span:last-child{display:none}}
    @media(max-width:760px){main{padding:22px 17px 30px}.heading{align-items:start}.version{font-size:10px}.workbench{display:block}.side{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:21px}.side .overview{grid-column:1/-1}.reference-grid{gap:22px}canvas{height:500px}.status{font-size:12px}.field{min-width:145px}.toolbar .units{flex:0 0 86px}.panel p{font-size:12px}}
    @media(max-width:470px){main{padding:19px 12px 27px}.heading{gap:9px;margin-bottom:18px}.version{display:none}.subhead{font-size:13px}.status{font-size:11px;padding:10px 12px;margin-bottom:18px}.toolbar{gap:8px}.field{min-width:124px;font-size:11px}.toolbar .units{flex:1 1 82px;min-width:82px}select,button{font-size:14px;min-height:44px}.scene-top{padding:11px 11px 0;font-size:10px}canvas{height:410px}.scene-hint{font-size:10px;padding:0 10px 10px}.scene-tools{gap:8px 14px;font-size:11px}.check{min-height:34px}.zoom{margin-left:0}.zoom button{min-height:39px}.side{display:flex}.panel{padding:17px}.reference-grid{grid-template-columns:1fr;gap:23px}.reference{margin-top:25px;padding-top:22px}.reference th{width:48%}}

/* Public Maker page layout. Geometry and drawing coordinates are unchanged. */
html,body{max-width:100%;overflow-x:clip}
body{font-size:16px}
main,.workspace,.side,.panel,.toolbar,.field{min-width:0}
.eyebrow,.version,.status,.field,.scene-top,.scene-hint,.scene-tools,.check,.opening-label,.opening-note,.panel .axis,.panel .part-id,.measure,.legend,.reference-intro,.reference table,.reference .small,.footer{font-size:14px}
.subhead,.panel p,.reference-intro{font-size:16px;line-height:1.55}
.panel h2{font-size:18px}
.panel .part-size{font-size:21px}
.field{flex:1 1 140px;min-width:0}
.toolbar .units{flex:0 1 100px;min-width:0}
.stage{min-width:0!important}
select,button{min-height:44px;font-size:16px;max-width:100%}
select{min-width:0}
.scene-top{flex-wrap:wrap;line-height:1.4}
.scene-hint{line-height:1.4;min-height:44px;padding-top:4px}
.check{min-height:44px}
.check input{width:18px;height:18px;flex-shrink:0}
.zoom button{min-width:44px;min-height:44px}
.opening-controls{flex-wrap:wrap}
.opening-controls input{min-height:44px;flex:1 1 140px}
.opening-controls button{flex:0 0 auto}
.measure{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 12px}
.measure dt,.measure dd{overflow-wrap:anywhere}
.legend{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.reference th,.reference td{overflow-wrap:anywhere}
.standalone-nav{max-width:1480px;margin:0 auto;padding:16px 34px 0;font-size:14px}
.standalone-nav a{color:var(--accent);text-underline-offset:3px}
.is-embedded .heading,.is-embedded .reference,.is-embedded .footer,.is-embedded .standalone-nav{display:none}
.is-embedded main{max-width:none;padding:16px}
.is-embedded .status{margin-bottom:16px;padding:10px 12px}
.is-embedded .workbench{grid-template-columns:minmax(0,1fr) 280px;gap:16px}
.is-embedded .panel{padding:16px}
.is-embedded .toolbar{gap:10px;margin-bottom:12px}
.is-embedded canvas{height:clamp(470px,48vw,610px)}
@media(max-width:1000px){
 .is-embedded .workbench{grid-template-columns:minmax(0,1fr) 260px;gap:14px}
 .is-embedded canvas{height:520px}
 .scene-top span:last-child{display:none}
}
@media(max-width:850px){
 .is-embedded .workbench{display:block}
 .is-embedded .side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:18px}
 .is-embedded .side .overview{grid-column:1/-1}
 .is-embedded canvas{height:480px}
}
@media(max-width:600px){
 .is-embedded main{padding:12px}
 .is-embedded .side{display:flex;flex-direction:column}
 .is-embedded canvas{height:410px}
 .is-embedded .field{flex-basis:130px}
 .is-embedded .workspace > .toolbar:first-child > .field:first-child{flex:1 1 100%}
 .is-embedded .toolbar .units{flex-basis:100px}
 .panel{padding:16px}
 .scene-top,.scene-hint{font-size:14px}
 .scene-top{padding:10px 12px 0}
 .scene-hint{padding:6px 12px 12px}
 .scene-tools{gap:6px 14px}
 .reference-grid{grid-template-columns:1fr}
 .standalone-nav{padding:14px 12px 0}
}
@media(max-width:380px){
 .is-embedded main{padding:8px}
 .is-embedded .panel{padding:13px}
 .opening-label{gap:8px;flex-wrap:wrap}
 .opening-controls button{flex:1 1 100%}
 .legend{gap:9px}
}

