:root{font-family:-apple-system,BlinkMacSystemFont,'Thonburi','Tahoma','Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#e9edf0;background:#161d24;font-size:16px;font-synthesis:none;--gold:#dec395;--muted:#8f9da9;--line:#303a44}*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #cb9458;outline-offset:3px}button:disabled{opacity:.4;cursor:default}button{transition:background .15s,color .15s}a{color:inherit}.app-header{height:80px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#192129}.brand{display:flex;gap:16px;align-items:center}.brand-mark{width:40px;height:42px;border:1px solid #877151;display:flex;align-items:center;justify-content:center;font-size:25px;color:var(--gold);font-family:Georgia,serif}.brand-mark span{font-size:20px;margin-left:-2px}h1{font-size:19px;letter-spacing:.09em;margin:0;font-weight:650}h1 span{color:var(--gold);font-size:12px;letter-spacing:.08em;border-left:1px solid #53606c;padding-left:10px;margin-left:8px}.brand p{margin:5px 0 0;font-size:13px;color:#a5b0b9}.header-actions{display:flex;gap:24px;align-items:center}.rev{font-size:14px;color:var(--gold);font-family:monospace}.rev span{color:#73838f;font-size:11px;margin-left:5px}.text-link{font-size:14px;text-decoration:none;border-bottom:1px solid #596775;padding:4px 0}.language{display:flex;padding:3px;border:1px solid #46505a;border-radius:7px}.language button{font-size:14px;padding:6px 11px;color:#b6c0c9;background:transparent;border-radius:4px}.language button[aria-pressed=true]{color:#1b252d;background:var(--gold)}.workspace{display:grid;grid-template-columns:236px minmax(300px,1fr) 320px;height:calc(100dvh - 114px);min-height:630px}.parts-panel{padding:26px 16px 18px;display:flex;flex-direction:column;border-right:1px solid var(--line);overflow:auto}.panel-heading{font-size:13px;color:#a0adb7;display:flex;justify-content:space-between;letter-spacing:.025em;margin-bottom:20px}.parts-panel .panel-heading{padding:0 12px}.muted{color:#71818d}#parts-list{display:flex;flex-direction:column;gap:4px}.part-button{text-align:left;display:flex;gap:12px;align-items:center;width:100%;border-radius:6px;padding:11px 10px;color:#aebbc6;background:transparent;font-size:14px;line-height:1.5;border:1px solid transparent}.part-button span:first-child{font:12px monospace;color:#627480;min-width:22px}.part-button:hover{background:#232e37;color:white}.part-button.active{background:#30332f;border-color:#766341;color:#ead8b7}.part-button.active span:first-child{color:var(--gold)}.part-button:first-child{margin-bottom:10px}.panel-foot{margin-top:auto;padding:25px 12px 0;display:flex;flex-direction:column;gap:7px}.panel-foot b{font:20px Georgia,serif;color:#b7c4cd}.panel-foot span{color:#a1adb7;font-size:13px}.panel-foot p{font-size:12px;color:#7e8d97;line-height:1.7;margin:5px 0 0}.stage{position:relative;background:#e2e7e9;overflow:hidden;min-width:0;color:#243642}.stage.night{background:#101923;color:#d3dee6}#canvas-wrap{position:absolute;inset:0}canvas{display:block;touch-action:none}.stage-top{position:absolute;top:22px;left:24px;right:24px;display:flex;gap:10px;justify-content:space-between;z-index:3;align-items:flex-start;pointer-events:none}.stage-top>div{pointer-events:auto}.mode-tabs,.light-switch{display:flex;padding:3px;background:#fffdf8e6;border:1px solid #c2cdd2;border-radius:7px;box-shadow:0 4px 14px #2a3a4610}.mode-tabs button,.light-switch button{font-size:13px;background:transparent;color:#4d616e;padding:8px 11px;border-radius:4px;white-space:nowrap}.mode-tabs button.active,.light-switch button.active{background:#253742;color:#f7f3eb}.light-switch button{padding:8px}.stage-caption{position:absolute;left:28px;top:96px;pointer-events:none}.eyebrow{font-size:11px;letter-spacing:.14em;color:#6e828e}.stage-caption h2{font-size:23px;font-weight:500;margin:8px 0}.stage-caption p{font-size:12px;color:#71828d;margin:0;max-width:190px;line-height:1.5}.zoom-tools{position:absolute;right:24px;top:115px;display:flex;flex-direction:column;gap:6px}.zoom-tools button{background:#f9fbfbd9;color:#395260;border:1px solid #b9c8ce;border-radius:5px;width:36px;height:36px;font-size:23px}.zoom-tools button:last-child{font-size:16px}.zoom-tools button:hover{background:white}.stage-bottom{position:absolute;bottom:18px;left:20px;right:20px;text-align:center}.camera-presets{display:inline-flex;max-width:100%;background:#fffdf8ed;border:1px solid #bac8d0;box-shadow:0 5px 18px #1b2d4110;border-radius:7px;padding:4px}.camera-presets button{padding:8px 12px;background:none;font-size:13px;color:#4d6472;border-radius:4px;white-space:nowrap}.camera-presets button.active{background:#e4e9e9;color:#182f3e;font-weight:600}.stage-bottom p{font-size:11px;color:#617988;margin:10px 0 0}.view-options{position:absolute;left:26px;bottom:110px;display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#4a6270}.view-options label{display:flex;align-items:center;gap:4px;cursor:pointer;padding:3px;background:#e7ececcc;border-radius:4px}.view-options input{accent-color:#364f5e;width:14px;height:14px}.explode-control{position:absolute;bottom:154px;left:28px;width:270px;background:#fffdf6ed;border:1px solid #c2cdd2;padding:14px;border-radius:7px;color:#425561}.explode-control div{display:flex;justify-content:space-between;font-size:13px}.explode-control input{width:100%;margin:12px 0 0;accent-color:#925f43}.explode-control p{font-size:11px;line-height:1.55;color:#78858b;margin-bottom:0}.night .eyebrow,.night .stage-caption p,.night .stage-bottom p{color:#8ca0ad}.detail-panel{padding:26px 24px;overflow:auto;border-left:1px solid var(--line);background:#1b242c}#part-number{font-family:monospace;color:var(--gold)}.detail-tag{font-size:11px;letter-spacing:.1em;color:#ba9c70;margin:4px 0 9px}.detail-panel h2{font-size:22px;line-height:1.45;font-weight:500;margin:0 0 15px}.description{font-size:14px;line-height:1.9;color:#acbac5;margin:0 0 20px}.detail-actions{display:flex;gap:7px;margin:18px 0 26px}.detail-actions button{font-size:13px;border-radius:5px;padding:9px 11px;background:#303e49;color:#d8e2e9;border:1px solid #4a5b69}.detail-actions button.isolated{background:#c2a371;color:#152630}.section-label{font-size:12px;color:#8b9ea9;margin:24px 0 12px}.dimension-item{padding:13px 0;border-bottom:1px solid var(--line)}.dimension-item b{font-size:21px;line-height:1.3;font-weight:500;color:#e4dbc9;display:block;letter-spacing:.02em}.dimension-item span{display:block;margin-top:6px;font-size:13px;color:#a9b7c0;line-height:1.65}.note-box{margin-top:25px;border-left:2px solid #9e7b4c;padding-left:13px}.note-box h3{font-size:13px;font-weight:500;color:var(--gold);margin:0 0 8px}.note-box p{font-size:13px;line-height:1.85;color:#a6b5c0;margin:0}.source-links{display:flex;gap:8px;flex-wrap:wrap}.source-links a{border:1px solid #435462;border-radius:4px;padding:7px 10px;font-size:12px;text-decoration:none;color:#b4c6d3}.source-links a:hover{border-color:#cfb181;color:#ead9bc}.selected-mesh{margin-top:20px;background:#24323c;padding:13px;border-radius:5px}.selected-mesh h3{font-size:12px;color:#a1b4c0;font-weight:400;margin:0 0 9px;line-height:1.6}.selected-mesh b{font-size:16px;color:#e4cfac}.selected-mesh p{font-size:11px;line-height:1.6;margin-bottom:0;color:#839aa9}.statusbar{height:34px;display:flex;align-items:center;gap:8px;padding:0 20px;border-top:1px solid var(--line);background:#141c23;font-size:12px;color:#b4a082}.status-icon{font-size:17px}.footer-source{margin-left:auto;font:11px monospace;color:#768691}.loading{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#e3e8eaf5;color:#2a424f}.loading[hidden]{display:none}.loading b{font-size:16px;font-weight:500}.loading progress{width:190px;height:4px;accent-color:#976743}.loading button{background:#263e4d;color:#fff;padding:10px 20px;border-radius:5px}.spinner{width:36px;height:36px;border:2px solid #b4c1c8;border-top-color:#9a6849;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#labels{position:absolute;inset:0;pointer-events:none}.dimension-label{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;color:#385562;background:#f6f7f5eb;border:1px solid #bdccd1;border-radius:4px;padding:4px 7px;font:12px monospace;box-shadow:0 2px 5px #2439460a}.night .dimension-label{background:#172b3be8;color:#c3d7e4;border-color:#496675}dialog{border:1px solid #4a5e6c;background:#202e39;color:#dee8ed;border-radius:10px;padding:30px;max-width:min(550px,90vw)}dialog::backdrop{background:#111a26aa}dialog h2{font-size:22px;margin-top:0}dialog p{white-space:pre-line;line-height:1.9;font-size:15px;color:#bdcbd4}.dialog-close{float:right;background:none;color:#d5dde3;font-size:26px;margin:-12px -12px 0 10px}.stage:fullscreen{width:100vw;height:100dvh}.stage:fullscreen .stage-top{top:26px}[hidden]{display:none!important}
@media(min-width:1600px){.workspace{grid-template-columns:250px minmax(300px,1fr) 355px}.detail-panel{padding:28px 30px}.stage-caption{top:110px}.stage-caption h2{font-size:28px}.mode-tabs button,.light-switch button,.camera-presets button{font-size:14px}}
@media(max-width:1250px){.workspace{grid-template-columns:208px minmax(260px,1fr) 282px}.stage-top{left:14px;right:14px;flex-wrap:wrap}.mode-tabs button{padding:7px 8px;font-size:12px}.light-switch button{font-size:12px}.stage-caption{top:116px;left:20px}.stage-caption h2{font-size:19px}.detail-panel{padding:24px 18px}.camera-presets button{font-size:12px;padding:8px}.parts-panel{padding-left:10px;padding-right:10px}.part-button{font-size:13px;gap:8px}.zoom-tools{right:14px;top:122px}}
@media(max-width:1000px){.workspace{grid-template-columns:190px 1fr;grid-template-rows:minmax(680px,calc(100dvh - 114px)) auto;height:auto;min-height:0}.detail-panel{grid-column:1/-1;border-top:1px solid var(--line);display:block;padding:26px;overflow:visible}#detail-content{max-width:900px;margin:auto}.detail-panel .panel-heading{max-width:900px;margin-left:auto;margin-right:auto}.detail-panel .description{max-width:720px}.statusbar{height:auto;min-height:34px;padding:8px 16px}.stage-caption{top:92px}.stage-top{flex-wrap:nowrap}.detail-panel h2{font-size:24px}.dimension-item{display:inline-block;vertical-align:top;min-width:200px;margin-right:24px}.header-actions{gap:16px}}
@media(max-width:640px){.app-header{height:76px;padding:0 14px}.brand{gap:10px}.brand-mark{width:30px;height:34px;font-size:19px}.brand-mark span{font-size:16px}h1{font-size:14px;letter-spacing:.04em}h1 span{font-size:10px;padding-left:5px;margin-left:3px}.brand p{font-size:10px;max-width:205px}.header-actions{gap:8px}.rev,.text-link{display:none}.language button{font-size:12px;padding:5px 7px}.workspace{display:flex;flex-direction:column}.parts-panel{order:1;overflow:visible;border:0;padding:15px 14px;background:#19242d}.parts-panel .panel-heading{margin:0 0 12px;padding:0;font-size:13px}#parts-list{display:grid;grid-template-columns:1fr 1fr;gap:4px}.part-button{font-size:13px;padding:9px 8px;gap:6px}.part-button:first-child{margin:0;grid-column:1/-1}.panel-foot{display:none}.stage{height:640px;min-height:540px;order:0}.stage-top{top:14px;left:12px;right:12px;gap:7px;flex-wrap:wrap}.mode-tabs button{font-size:12px;padding:8px}.light-switch button{font-size:12px;padding:8px}.light-switch button span{display:none}.stage-caption{top:78px;left:18px}.eyebrow{font-size:10px}.stage-caption h2{font-size:21px}.stage-caption p{max-width:175px;font-size:11px}.zoom-tools{top:87px;right:12px;gap:5px}.zoom-tools button{width:32px;height:32px;font-size:21px}.stage-bottom{left:10px;right:10px;bottom:14px}.camera-presets{width:100%;justify-content:center}.camera-presets button{font-size:11px;padding:9px 7px;flex:1}.stage-bottom p{font-size:10px}.view-options{left:15px;bottom:100px;font-size:11px;gap:12px}.explode-control{left:15px;bottom:140px;width:240px;padding:10px}.explode-control p{font-size:10px}.detail-panel{order:2;padding:24px 20px}.detail-panel h2{font-size:23px}.description{font-size:15px}.dimension-item{display:block;margin:0}.statusbar{font-size:11px;align-items:flex-start}.footer-source{display:none}.dimension-label{font-size:11px;padding:3px 5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.spinner{animation-duration:2s}}

@media(max-width:640px){.stage-caption{top:66px}.stage-caption h2{font-size:17px;margin:5px 0}.stage-caption p{display:none}.stage-caption .eyebrow{font-size:9px}}

/* Mobile controls stay beside the model; only an open sheet scrolls. */
.mobile-dock{display:none}
.mobile-sheet{width:min(600px,calc(100% - 16px));max-width:none;max-height:calc(100dvh - 20px);margin:auto auto 8px;padding:0;border-radius:18px;box-shadow:0 12px 60px #0006;overflow:hidden}
.mobile-sheet[open]{display:flex;flex-direction:column}
.mobile-sheet::backdrop{background:#0c17216b;backdrop-filter:blur(3px)}
.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 10px;flex:none}
.sheet-header h2{font-size:20px;margin:0;font-weight:550}
.sheet-header button{min-height:44px;padding:8px 16px;border:1px solid #69808f;border-radius:9px;background:#344956;color:#fff;font-size:15px;white-space:nowrap}
.sheet-hint{margin:0!important;padding:0 18px 12px;font-size:14px!important;line-height:1.6!important;flex:none}
.sheet-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:env(safe-area-inset-bottom,0px)}
.mobile-sheet .parts-panel{padding:0 10px 12px;border:0;background:transparent;overflow:visible;display:block}
.mobile-sheet .parts-panel .panel-heading,.mobile-sheet .panel-foot{display:none}
.mobile-sheet #parts-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mobile-sheet .part-button{min-height:62px;padding:10px;font-size:16px;gap:8px;background:#2a3b47;border-color:#415461;color:#edf2f5;line-height:1.45}
.mobile-sheet .part-button span:first-child{color:#b5a485;font-size:13px;min-width:20px}
.mobile-sheet .part-button:first-child{grid-column:1/-1;margin:0;min-height:50px}
.mobile-sheet .part-button.active{background:#4b4637;border-color:#dec395;color:#fff0d4}
.mobile-sheet .detail-panel{padding:8px 20px 24px;overflow:visible;border:0;background:transparent}
.mobile-sheet .detail-panel .panel-heading{display:none}
.mobile-sheet .description,.mobile-sheet .note-box p{font-size:16px;line-height:1.8}
.mobile-sheet .dimension-item{display:block;margin:0}
.mobile-sheet .detail-actions{position:sticky;top:0;background:#202e39;padding:8px 0;margin:10px 0}
.mobile-sheet .detail-actions button,.mobile-sheet .source-links a{min-height:44px;font-size:15px;display:flex;align-items:center;justify-content:center}
@media(max-width:1000px){
 html,body{height:100%;overflow:hidden}
 body{height:100dvh;display:flex;flex-direction:column}
 .app-header{height:64px;flex:none;padding:0 12px}.brand{gap:9px}.brand-mark{width:30px;height:34px;font-size:20px}.brand-mark span{font-size:16px}h1{font-size:14px;letter-spacing:.035em}h1 span{font-size:10px;padding-left:6px;margin-left:3px}.brand p{font-size:10px;max-width:205px}.header-actions{gap:6px}.rev,.text-link{display:none}.language button{font-size:13px;padding:8px;min-height:40px}
 .workspace{display:flex;flex:1;min-height:0;height:auto;overflow:hidden}.workspace>.parts-panel,.workspace>.detail-panel{display:none}
 .stage{width:100%;height:100%;min-height:0;flex:1;order:0}
 #canvas-wrap,#labels{inset:96px 0 194px}
 .stage-caption,.statusbar,.stage-bottom p{display:none}
 .stage-top{top:8px;left:10px;right:10px;gap:6px;flex-wrap:nowrap;align-items:center}
 .mode-tabs,.light-switch{padding:2px}.mode-tabs button{min-height:44px;padding:6px 8px;font-size:13px}.light-switch button{min-width:36px;min-height:44px;padding:6px;font-size:18px}.light-switch button span{display:none}
 .view-options{top:62px;bottom:auto;left:12px;gap:12px;font-size:12px}.view-options label{min-height:30px;padding:3px 5px}.view-options input{width:20px;height:20px}
 .zoom-tools{top:104px;right:10px;gap:6px}.zoom-tools button{width:44px;height:44px;font-size:26px}.zoom-tools #fullscreen,.zoom-tools #help{display:none}
 .stage-bottom{bottom:142px;bottom:calc(142px + env(safe-area-inset-bottom,0px));left:10px;right:10px}.camera-presets{display:flex;padding:2px;width:100%;justify-content:center}.camera-presets button{min-height:44px;padding:7px 4px;font-size:12px;flex:1}
 .mobile-dock{display:block;position:absolute;z-index:4;left:10px;right:10px;bottom:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));padding:7px;background:#192731f5;border:1px solid #52636c;border-radius:14px;box-shadow:0 6px 24px #07151f40;color:#edf2f5}
 .mobile-picker{display:flex;align-items:center;text-align:left;width:100%;gap:12px;min-height:58px;padding:7px 12px;border-radius:9px;background:#e1c79b;color:#1c2d37}.mobile-picker>span:nth-child(2){flex:1;min-width:0}.mobile-picker small{display:block;font-size:12px;line-height:1.4;color:#485047}.mobile-picker b{display:block;font-size:17px;line-height:1.6;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.picker-icon{font-size:26px}.picker-chevron{font-size:24px}
 .mobile-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin-top:6px}.mobile-actions button{min-height:44px;border:1px solid #465c6b;border-radius:8px;background:#2b414f;color:#f3f6f8;font-size:14px;padding:7px 4px}.mobile-actions button[aria-pressed=true]{border-color:#c3aa7d;color:#ffe4b8}
 .explode-control{bottom:auto;top:96px;left:12px;max-width:calc(100% - 80px);width:250px;padding:9px;z-index:3}.explode-control p{display:none}.explode-control input{height:26px;margin-top:4px}
 .dimension-label{font-size:11px;padding:3px 5px}
 #canvas-wrap,#labels{bottom:calc(194px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:370px){.brand-mark{display:none}.mode-tabs button{font-size:12px;padding:6px}.light-switch button{min-width:32px}.mobile-actions button{font-size:13px}.mobile-sheet .part-button{font-size:15px;padding:8px;gap:6px}}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
 .app-header{height:52px}.brand p{display:none}.stage-top{left:auto;right:10px;width:286px}.mode-tabs button{font-size:12px;padding:6px}.view-options{top:66px;bottom:auto;left:auto;right:10px;width:286px}.mobile-dock{left:auto;width:286px}.stage-bottom{left:auto;right:10px;width:286px;bottom:142px}.camera-presets button{font-size:11px}.zoom-tools{right:310px;top:8px}.zoom-tools button{width:44px;height:44px}#canvas-wrap,#labels{inset:0 306px 0 0}.mobile-sheet{max-height:calc(100dvh - 12px)}.explode-control{top:8px;left:12px;width:200px}
}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
 .stage-top{display:block}.mode-tabs button{flex:1}.stage-top .light-switch{position:absolute;right:0;top:56px}.view-options{right:96px;width:200px;gap:4px;top:64px}
}
