.mode-play .left-sidebar,.mode-play .right-sidebar,.mode-play .canvas-toolbar,.mode-play .canvas-label,.mode-play .view-controls,.mode-play .canvas-bottom,.mode-play .mobile-nav{display:none}.mode-play .workspace{grid-template-columns:minmax(0,1fr)}.play-overlay{position:absolute;inset:0;z-index:8;pointer-events:none}.play-overlay button{min-height:44px;min-width:44px;touch-action:manipulation}.play-top{position:absolute;top:16px;left:16px;right:16px;display:flex;gap:8px;align-items:center;pointer-events:auto;z-index:3}.play-top>div{margin-right:auto;background:#ffffffed;padding:10px 14px;border-radius:12px;box-shadow:0 2px 12px #152c3a12}.play-top strong,.play-top small{display:block}.play-top small{margin-top:4px;color:#52626a;font-size:12px}.play-look{position:absolute;inset:0;touch-action:none;pointer-events:auto}.play-crosshair{position:absolute;left:50%;top:50%;font-size:24px;color:#405662aa;transform:translate(-50%,-50%)}.play-hint{position:absolute;top:96px;left:50%;transform:translate(-50%);font-size:13px;white-space:nowrap;background:#ffffffdf;padding:8px 14px;border-radius:20px}.play-stick{position:absolute;bottom:max(88px,env(safe-area-inset-bottom));left:max(28px,env(safe-area-inset-left));width:126px;height:126px;border-radius:50%;background:#fffa;border:2px solid #ffffff;box-shadow:0 3px 20px #26333f26;display:grid;place-items:center;pointer-events:auto;touch-action:none;user-select:none}.play-stick span{width:66px;height:66px;background:#334852;color:#fff;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:600}.play-actions{position:absolute;bottom:108px;right:max(28px,env(safe-area-inset-right));display:grid;grid-template-columns:repeat(2,60px);gap:10px;pointer-events:auto}.play-actions button{height:60px;border-radius:50%;touch-action:none;background:#fff;box-shadow:0 3px 20px #26333f20}.play-actions button[aria-pressed=true]{background:#334852;color:#fff}.play-bottom{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);display:flex;gap:8px;pointer-events:auto;white-space:nowrap}.play-menu{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 32px));padding:24px;border-radius:18px;background:#fffffff5;box-shadow:0 15px 60px #20333f30;pointer-events:auto;display:grid;gap:12px}.play-menu h2,.play-menu p{margin:0}.play-message{position:absolute;bottom:80px;left:50%;transform:translate(-50%);max-width:70%;background:#fff0d8;padding:10px;border-radius:10px;font-size:13px}@media(max-width:1100px){.mode-play .workspace{padding-bottom:0}.play-hint,.play-mouse-lock{display:none}.play-look:after{content:"Drag here to look";position:absolute;right:28px;bottom:220px;color:#334852;background:#fffb;border-radius:16px;padding:7px 12px;font-size:13px}}@media(max-width:480px){.play-top{top:10px;left:10px;right:10px;gap:5px;flex-wrap:wrap}.play-top>div{flex-basis:100%;padding:8px 12px}.play-top small{font-size:12px}.play-top button{padding:7px 14px}.play-stick{left:18px;width:110px;height:110px;bottom:95px}.play-actions{right:18px;bottom:105px;grid-template-columns:repeat(2,52px);gap:7px}.play-actions button{height:52px;padding:4px}.play-bottom{width:calc(100% - 24px);bottom:18px}.play-bottom button{flex:1;font-size:12px;padding:8px}.play-look:after{right:18px;bottom:205px}.play-intro{max-height:calc(100% - 24px);overflow:auto}}.play-overlay.is-paused .play-look:after{display:none}.mode-play .mobile-panel{display:none!important}.play-mechanism{position:absolute;top:92px;left:16px;width:min(300px,calc(100% - 32px));max-height:calc(100% - 330px);overflow:auto;padding:0 12px;border-radius:12px;background:#fffffff2;box-shadow:0 3px 20px #26333f20;pointer-events:auto;z-index:2}.play-mechanism summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}.play-mechanism label{display:block;margin:10px 0}.play-mechanism input{width:100%;min-height:44px}.play-mechanism p{font-size:12px}.play-drive-buttons{display:flex;gap:8px;margin-bottom:12px}.play-drive-buttons button{flex:1;touch-action:none}@media(max-width:480px){.play-mechanism{top:132px;left:10px;width:calc(100% - 20px);max-height:calc(100% - 360px)}}.play-key-settings{min-width:0}.play-key-settings summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}.play-key-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}.play-key-settings input{min-width:0;width:110px;min-height:44px}.play-key-settings p{font-size:12px;line-height:1.5;margin:8px 0}.play-key-buttons{display:flex;flex-wrap:wrap;gap:8px}.play-menu{max-height:calc(100% - 24px);overflow:auto}.play-menu{max-height:calc(100% - 240px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.play-settings{min-width:0}.play-settings details{min-width:0;border-top:1px solid #ccd6db}.play-settings details details{margin-top:12px}.play-settings summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650}.play-settings p{margin:10px 0;line-height:1.5;font-size:13px}.play-settings button{margin:6px 0}.play-setting{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px;align-items:center;margin:8px 0;font-size:13px}.play-setting input{min-width:0;width:100%;min-height:44px;border:1px solid #a9b8c0;border-radius:8px;padding:8px}@media(max-height:600px){.play-menu{max-height:calc(100% - 110px)}}.play-settings summary:after{content:"+";margin-left:auto;font-size:20px;font-weight:400}.play-settings details[open]>summary:after{content:"−"}.play-world-settings{min-width:0;margin:12px 0}.play-world-settings summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}.play-world-settings label{font-size:14px;line-height:1.4;color:var(--ink, #354c5b);display:flex;gap:10px;align-items:center;min-height:44px;margin:4px 0}.play-world-settings input{width:22px;height:22px;flex-shrink:0}.play-world-settings p{font-size:13px;line-height:1.5}.play-interaction{position:absolute;bottom:245px;left:50%;transform:translate(-50%);width:min(340px,calc(100% - 24px));padding:10px;border-radius:12px;background:#fffffff2;pointer-events:auto;text-align:center;box-shadow:0 3px 20px #26333f20}.play-interaction button{width:100%}.play-interaction small{display:block;margin-top:6px;overflow-wrap:anywhere}.play-interaction kbd{margin-left:12px;border:1px solid #a9b8c0;border-radius:4px;padding:2px 6px}.play-mechanism select{width:100%;min-height:44px;margin-top:6px}.play-mechanism summary{position:sticky;top:0;z-index:1;background:#fff;gap:10px}.play-mechanism summary:after{content:"+";margin-left:auto;font-size:20px}.play-mechanism[open] summary:after{content:"−"}.play-mechanism .play-remote-note{font-size:13px;color:var(--ink)}.play-interaction .play-seat-remote{margin-top:10px;min-height:44px}.seat-authoring{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.seat-authoring summary{min-height:44px;cursor:pointer;font-weight:600}.seat-authoring label{display:grid;gap:5px;margin:8px 0}.seat-authoring input,.seat-authoring select,.seat-authoring button{min-height:44px;min-width:0;max-width:100%}.seat-authoring input,.seat-authoring select{width:100%}.seat-authoring fieldset{min-width:0;margin:12px 0;padding:8px;border:1px solid var(--line);border-radius:8px}.seat-authoring p{overflow-wrap:anywhere}.play-overlay.is-seated .play-interaction{top:84px;bottom:auto}@media(max-width:640px){.play-overlay.is-seated .play-interaction{top:126px}}:root{--paper: #f7f9fa;--ink: #354c5b;--secondary: #607481;--line: #e4e9ec;--accent: #d87c43}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px}button,input,select{font:inherit}button{cursor:pointer;min-height:44px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);transition:background .15s,border-color .15s}button:hover{background:#f2f4f5;border-color:#b3bec4}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #eea66c;outline-offset:2px}input,select{min-width:0;min-height:44px;border:1px solid var(--line);border-radius:6px;padding:9px 10px;background:#fff;color:var(--ink)}input[type=checkbox]{min-height:18px;width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}input[type=range]{width:100%;accent-color:var(--accent)}h1,h2,h3,p{margin-top:0}h2{font-size:15px;font-weight:650}h3{font-size:13px;font-weight:650;margin:20px 0 12px}p{line-height:1.65;color:var(--secondary)}a{color:inherit}small{font-size:11px;color:var(--secondary)}.app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.header{height:72px;flex-shrink:0;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 25px;gap:40px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:23px;font-weight:750;letter-spacing:-1px}.brand-light{font-weight:400;color:#63717a}.brand-icon{display:grid;place-items:center;width:35px;height:35px;background:var(--accent);color:#fff;border-radius:9px;font-size:28px;line-height:1}.mode-tabs{display:flex;gap:5px;height:100%;align-items:center}.mode-tabs button{border:0;border-radius:5px;font-weight:500;color:#737d85;background:transparent;position:relative;padding:10px 15px}.mode-tabs button.active{background:#f6f2ee;color:#ab5424}.mode-tabs button.active:after{position:absolute;content:"";bottom:-14px;height:3px;background:var(--accent);left:17px;right:17px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:25px}.local-badge{font-size:11px;color:var(--secondary);white-space:nowrap}.local-badge i,.live-dot{display:inline-block;width:6px;height:6px;background:#4b8d73;border-radius:50%;margin-right:7px}.primary{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600;box-shadow:0 2px 3px #87320012}.primary:hover{background:#c56630;border-color:#c56630}.header-actions .primary{min-width:105px;display:flex;justify-content:space-between;gap:20px}.project-bar{height:56px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 25px;background:#fcfcfc;border-bottom:1px solid var(--line)}.project-bar>div{display:flex;align-items:center;gap:12px}.project-icon{font-size:20px;color:#82919a}.project-bar input{background:transparent;border:0;width:220px;font-weight:600;padding:0}.save-state{font-size:11px;color:var(--secondary);border-left:1px solid var(--line);padding-left:14px}.project-bar>button{border:0;background:transparent;font-size:12px}.workspace{display:flex;flex:1;min-height:0}.left-sidebar{width:264px;flex-shrink:0;border-right:1px solid var(--line);background:#fdfdfd;padding:23px 19px;overflow:auto}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}.panel-title h2{margin:0}.panel-title>span{color:var(--secondary);font-size:11px}.count{background:#f0f3f4;padding:4px 7px;border-radius:4px}.search{display:flex;align-items:center;border:1px solid var(--line);background:#fff;border-radius:6px;gap:6px;padding:0 9px;margin-bottom:24px}.search>span{font-size:23px;color:#89969e}.search input{border:0;padding:5px 0;width:100%;font-size:11px;outline:none}.search kbd{font-size:11px;color:#9ca7ad}.eyebrow{font-size:9px;font-weight:650;letter-spacing:1.6px;color:#87959c;display:block;margin-bottom:15px}.eyebrow span{float:right;font-size:8px;letter-spacing:.5px;color:#608872}.part-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.part-card{position:relative;display:flex;align-items:flex-start;flex-direction:column;min-width:0;padding:9px;background:#f7f8f8;border-color:#edf0f1;min-height:124px;border-radius:8px}.part-card.chosen{border-color:#d98450;background:#fff7f0;box-shadow:0 0 0 1px #d9845026}.part-card svg{width:100%;height:72px;display:block}.part-card strong{font-size:10px;font-weight:550;margin:4px 0}.part-card small{font-size:9px;color:#909ba1}.part-check{position:absolute;top:5px;right:7px;color:var(--accent);font-size:12px}.color-title{margin-top:28px;margin-bottom:14px}.swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.swatches button{min-height:44px;border-radius:6px;color:#fff;text-shadow:0 1px 4px #000;box-shadow:inset 0 0 0 1px #00000010;border:3px solid #fff}.swatches button.chosen{outline:1px solid #d17844;border-color:#fff}.muted{font-size:11px;color:#8a969d;line-height:1.7;margin:14px 0}.library-note{margin-top:28px;padding:18px 0;border-top:1px solid var(--line);display:flex;gap:10px;color:#84949d}.library-note>span{font-size:20px}.library-note strong{font-size:11px;color:#586b76;font-weight:500}.library-note p{font-size:10px;line-height:1.7;margin:6px 0}.canvas-shell{flex:1;min-width:0;position:relative;background:#e9edef;overflow:hidden}.viewport{position:absolute;inset:0;touch-action:none}.viewport canvas{display:block;width:100%;height:100%}.canvas-toolbar{position:absolute;top:17px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:7px;z-index:2;white-space:nowrap;padding:5px;border:1px solid #dce2e6;background:#ffffffed;border-radius:9px;box-shadow:0 5px 15px #3246530b}.canvas-toolbar button{border:0;background:transparent;min-height:40px;padding:7px 10px;font-size:11px;color:#5f717d}.canvas-toolbar button.active{background:#f6e9de;color:#b36231}.canvas-toolbar button>span{font-size:17px;margin-right:5px}.canvas-toolbar>button>span{font-size:11px}.tool-segment{display:flex;align-items:center;padding-right:6px;border-right:1px solid var(--line);gap:3px}.tool-segment:last-of-type button{font-size:22px;padding:0 9px}.canvas-label{position:absolute;top:92px;left:24px;font-size:9px;letter-spacing:1.4px;color:#758b97;pointer-events:none}.canvas-label small{display:block;font-size:9px;letter-spacing:.1px;margin-top:9px;color:#97a5ae}.canvas-label .live-dot{background:#9aafb9;width:5px;height:5px}.view-controls{position:absolute;right:18px;top:88px;display:flex;background:#ffffffb0;border:1px solid #d9e0e4;border-radius:6px;padding:2px}.view-controls button{border:0;background:transparent;font-size:10px;min-height:33px;padding:5px 9px;color:#788a95}.welcome{position:absolute;top:27%;left:50%;transform:translate(-50%);width:390px;text-align:center;pointer-events:none}.welcome .eyebrow{color:#8c9ba4;font-size:9px}.welcome h1{font-size:43px;line-height:1.15;font-weight:550;letter-spacing:-1.8px;color:#526977;margin:20px 0}.welcome p{font-size:13px;color:#81939f;line-height:1.9}.welcome button{pointer-events:auto}.welcome .primary{padding:12px 18px;font-size:12px;margin-top:10px}.text-button{display:block;border:0;background:transparent;font-size:11px;margin:9px auto;color:#7b8b95}.canvas-bottom{position:absolute;left:20px;right:20px;bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#778e9c}.canvas-bottom button{font-size:11px;background:#ffffffd9;border-color:#d8e0e4;color:#617985}.canvas-bottom b,.status-bar b{font-weight:400;padding:0 9px}.right-sidebar{width:252px;flex-shrink:0;background:#fdfdfd;border-left:1px solid var(--line);padding:0 17px 20px;overflow:auto}.right-tabs{display:flex;border-bottom:1px solid var(--line);margin:0 -17px 22px;padding:0 16px;gap:15px}.right-tabs button{background:transparent;border:0;border-radius:0;padding:17px 4px;color:#83919a;font-size:12px}.right-tabs button.active{color:#364e5c;border-bottom:2px solid var(--accent)}.right-sidebar .panel-title{margin-bottom:13px}.panel-title button{min-height:35px;font-size:18px;border:0;background:transparent}.layer-row{display:flex;align-items:center;gap:0;border:1px solid transparent;border-radius:6px;margin:7px -5px}.layer-row.active{background:#edf2f5;border-color:#e1e8ec}.layer-row button{background:transparent;border:0;padding:5px 7px;font-size:13px;min-width:30px;color:#7c8e9a}.layer-row .layer-name{display:flex;align-items:center;gap:7px;flex:1;text-align:left;font-size:11px;color:#496272;padding-left:10px;overflow:hidden}.layer-name small{margin-left:auto;font-size:9px}.layer-dot{width:7px;height:7px;background:#839bad;border-radius:2px;flex-shrink:0}.check{display:flex;gap:9px;align-items:center;font-size:11px;line-height:1.5;color:#71828d;margin:17px 0}.wide{width:100%;margin:6px 0;font-size:12px}.workplane{margin-top:30px;border-top:1px solid var(--line);padding-top:4px}.number-field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.number-field>span{font-size:10px;color:#8a98a1;letter-spacing:.2px}.number-field input{width:100%;padding:8px;font-size:12px;background:#fafbfb;min-height:39px}.numeric-row{display:flex;gap:8px;margin:14px 0}.status-bar{height:31px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-top:1px solid var(--line);background:#fdfdfd;font-size:10px;color:#8a979f;gap:20px}.status-bar>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar>span:last-child{white-space:nowrap}.placement-card{position:absolute;bottom:78px;left:50%;transform:translate(-50%);background:#fff;border:1px solid var(--line);box-shadow:0 8px 32px #23364415;border-radius:10px;display:flex;align-items:center;gap:9px;padding:14px;width:calc(100% - 40px);max-width:640px;flex-wrap:wrap}.placement-card>div:first-child{min-width:110px;flex:1}.placement-card strong{display:block;font-size:12px}.placement-card span{display:block;font-size:10px;color:#94a0a7;margin-top:5px}.placement-values{display:flex;gap:5px;width:195px}.placement-card button{font-size:11px;padding:9px 10px}.placement-values span{margin:0}.mode-card{position:absolute;top:145px;left:25px;max-height:calc(100% - 220px);overflow:auto;width:340px;max-width:calc(100% - 50px);background:#fffffff5;border:1px solid #dce3e7;border-radius:12px;padding:25px;box-shadow:0 10px 40px #29435512}.mode-card h2{font-size:25px;letter-spacing:-.7px;font-weight:550;line-height:1.25}.mode-card p{font-size:12px}.button-row{display:flex;gap:7px;margin:10px 0;flex-wrap:wrap}.button-row button{flex:1;font-size:11px;white-space:nowrap}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.template-grid button{font-size:11px}.mode-card details{margin-top:24px;font-size:11px;color:#84949e;line-height:1.7}.mode-card details summary{cursor:pointer}.empty-inspector{text-align:center;color:#8a9aa4;padding:55px 10px}.empty-inspector>span{font-size:35px;font-weight:300}.empty-inspector h3{font-weight:500}.empty-inspector p{font-size:11px}.selection-summary{text-align:center;background:#f5f7f8;border:1px solid #edf0f2;border-radius:9px;padding:15px}.selection-summary svg{width:130px;height:85px;display:block;margin:auto}.selection-summary strong,.selection-summary small{display:block;font-size:12px;margin-top:8px}.selection-summary small{font-size:10px}.danger{color:#b86154}.modal-backdrop{position:fixed;inset:0;background:#20354166;backdrop-filter:blur(3px);z-index:30;display:flex;align-items:center;justify-content:center;padding:20px}.dialog{background:#fff;border-radius:14px;max-width:100%;width:480px;max-height:calc(100dvh - 40px);overflow:auto;padding:27px;box-shadow:0 24px 100px #20354145}.inventory-dialog{width:650px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.dialog-heading h2{font-size:26px;font-weight:550;letter-spacing:-.7px;margin:0}.dialog-heading .eyebrow{margin-bottom:9px}.dialog-heading>button{background:#f5f7f8;border:0}.dialog p{font-size:12px}.export-shortcuts{display:flex;gap:10px;margin:20px 0 25px}.export-shortcuts button{flex:1;text-align:left;padding:15px;background:#f7f9fa}.export-shortcuts strong{display:block;font-size:12px}.export-shortcuts small{display:block;font-size:10px;margin-top:7px;font-weight:400}.form-row{display:flex;gap:15px}.form-row label{display:flex;flex-direction:column;gap:7px;flex:1;font-size:11px;color:#7c8e99}.form-row select{font-size:12px}.inventory-stats{display:flex;gap:10px;justify-content:space-between;border:1px solid var(--line);border-radius:8px;background:#f9fafb;margin:20px 0;padding:15px}.inventory-stats strong{font-size:25px;font-weight:500;display:block}.inventory-stats span{font-size:10px;color:#8a99a2}.table-scroll{overflow:auto;max-height:200px}table{border-collapse:collapse;width:100%;font-size:11px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:10px}th{color:#8a99a2;font-weight:500}.diagnostics{max-height:170px;overflow:auto;margin:15px 0}.diagnostics button{display:block;width:100%;text-align:left;font-size:10px;border:1px solid #eed6bc;border-radius:8px;background:#fff8ed;margin:5px 0}.diagnostics strong,.diagnostics span{display:block;line-height:1.5}.diagnostics span{margin-top:3px;color:#8e7a61}.warning{background:#fff5e9;border-color:#eed6bc;color:#a2662e}.resolution{padding:15px;background:#f7f9fa}.resolution input{width:48%;margin:0 1% 10px}.resolution button{font-size:11px;width:100%}.mobile-sheet-head,.mobile-nav{display:none}@media(min-width:1800px){.left-sidebar{width:295px;padding:25px}.right-sidebar{width:280px}.part-card{min-height:140px}.part-card svg{height:90px}}@media(max-width:1200px){.header{gap:20px;padding:0 18px}.header-actions{gap:15px}.local-badge{display:none}.left-sidebar{width:230px;padding:20px 14px}.right-sidebar{width:220px;padding:0 13px 20px}.canvas-toolbar{gap:3px}.canvas-toolbar button{padding:8px 7px}.canvas-toolbar>button{display:none}.canvas-label{top:85px}.view-controls{top:120px}.placement-card{bottom:80px}.mode-tabs button{padding:10px 12px}.welcome{width:320px}.welcome h1{font-size:37px}}@media(max-width:1100px){.header{height:65px;gap:20px}.brand{font-size:21px}.mode-tabs{margin-left:auto;gap:0}.mode-tabs button{padding:10px}.header-actions{margin-left:0}.header-actions .primary{min-width:85px;gap:10px}.workspace{display:block;position:relative}.canvas-shell{height:100%;width:100%}.mobile-panel{display:none;position:absolute;bottom:0;left:0;right:0;width:100%;height:54%;z-index:10;border-top:1px solid var(--line);border-radius:16px 16px 0 0;box-shadow:0 -12px 40px #28455215;padding:18px 25px;overflow:auto;background:#fff}.mobile-panel.mobile-open{display:block}.mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.mobile-sheet-head button{font-size:11px}.mobile-panel .part-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-panel .part-card{min-height:130px}.mobile-panel .swatches{grid-template-columns:repeat(8,1fr)}.mobile-panel .library-note{margin-top:15px}.mobile-nav{display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:5px 8px max(5px,env(safe-area-inset-bottom));z-index:11}.mobile-nav button{flex:1;border:0;background:transparent;font-size:12px;color:#8396a1}.mobile-nav button.active{background:#fff1e6;color:#b96534}.canvas-toolbar{top:17px}.canvas-toolbar button{min-height:44px;padding:9px 15px;font-size:12px}.view-controls{top:89px}.view-controls button{min-height:44px}.canvas-label{top:91px}.welcome{top:29%;width:430px}.welcome h1{font-size:51px}.welcome p{font-size:14px}.status-bar{height:34px}.mode-card{top:148px;width:420px;padding:28px}.mode-card h2{font-size:28px}.mode-card p{font-size:14px}.part-card strong{font-size:12px}.part-card small{font-size:11px}.right-sidebar .right-tabs{margin:0 0 20px;padding:0}.right-sidebar .layer-list{max-width:700px}.layer-row button{min-width:44px;min-height:44px}.number-field input{min-height:44px}.placement-card{max-width:700px;bottom:80px}.mobile-panel .panel-title{margin-bottom:16px}.tool-segment:last-of-type button{min-width:44px}}@media(max-width:650px){.header{height:auto;min-height:103px;flex-wrap:wrap;padding:12px 13px 0;gap:6px}.brand{font-size:20px}.brand-icon{width:30px;height:30px;font-size:25px}.header-actions{margin-left:auto}.header-actions .primary{min-height:38px;font-size:12px}.mode-tabs{order:3;width:100%;justify-content:space-between;height:44px}.mode-tabs button{min-height:40px;font-size:11px;padding:8px}.mode-tabs button.active:after{bottom:-2px;left:8px;right:8px}.project-bar{height:48px;padding:0 13px}.project-bar>div{gap:6px;min-width:0}.project-bar input{width:155px;font-size:12px;min-height:40px}.project-bar .save-state{display:none}.project-bar>button{padding:5px;font-size:10px;white-space:nowrap}.project-icon{font-size:16px}.canvas-toolbar{top:12px;width:calc(100% - 22px);justify-content:center;padding:3px;gap:0}.canvas-toolbar button{min-height:44px;padding:6px 7px;font-size:10px}.canvas-toolbar button>span{font-size:17px;display:block;margin:0 0 2px}.tool-segment{padding-right:2px;gap:0}.tool-segment:last-of-type{border:0;padding:0}.tool-segment:last-of-type button{min-width:33px;font-size:22px}.canvas-label{top:87px;left:16px;font-size:8px;letter-spacing:.8px}.canvas-label small{font-size:8px}.view-controls{right:12px;top:135px}.view-controls button{padding:5px 9px;min-height:44px;font-size:10px}.welcome{top:30%;width:300px}.welcome h1{font-size:37px;margin:16px 0}.welcome p{font-size:12px}.welcome .eyebrow{font-size:8px;letter-spacing:1.2px}.welcome .primary{font-size:11px;min-height:44px}.canvas-bottom{left:12px;right:12px;bottom:10px;font-size:9px}.canvas-bottom>span:last-child{display:none}.canvas-bottom button{font-size:10px}.placement-card{left:10px;right:10px;transform:none;width:auto;padding:11px;gap:7px;bottom:65px}.placement-card>div:first-child{flex-basis:100%}.placement-values{flex:1;min-width:150px}.placement-card>button{flex:1}.placement-card>button[aria-label]{flex:0;min-width:63px}.placement-values .number-field span{font-size:9px}.mobile-panel{height:59%;padding:16px}.mobile-panel .part-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-panel .swatches{grid-template-columns:repeat(4,1fr)}.mobile-panel .search{margin-bottom:18px}.mobile-sheet-head{margin-bottom:13px}.mobile-nav button{font-size:11px;padding:8px 4px;min-height:44px}.status-bar{font-size:9px;padding:0 12px;height:30px}.status-bar>span:last-child{display:none}.mode-card{left:12px;max-width:calc(100% - 24px);top:192px;padding:20px;max-height:calc(100% - 253px);background:#fff}.mode-card h2{font-size:24px}.mode-card p{font-size:12px}.dialog{padding:20px 15px;border-radius:12px;max-height:calc(100dvh - 20px)}.modal-backdrop{padding:10px}.dialog-heading h2{font-size:23px}.dialog .eyebrow{font-size:8px}.export-shortcuts{gap:5px}.export-shortcuts button{padding:12px 8px}.export-shortcuts strong{font-size:10px}.export-shortcuts small{font-size:9px;line-height:1.4}.form-row{gap:9px}.form-row select{font-size:11px;padding:8px 5px;width:100%}.form-row label:first-child{flex:1.8}.inventory-stats{gap:7px;padding:12px 9px}.inventory-stats strong{font-size:22px}.inventory-stats span{font-size:8px}.dialog .check{font-size:10px}.dialog .wide{font-size:11px}.button-row button,.panel-title button{min-height:44px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media(max-width:1100px){.mobile-panel{overscroll-behavior:contain;scroll-padding-top:76px}.mobile-sheet-head{position:sticky;top:-18px;z-index:2;margin:-18px -25px 16px;padding:12px 25px;background:#fff;border-bottom:1px solid var(--line);gap:8px}.mobile-sheet-head strong{margin-right:auto}.mobile-sheet-head button{font-size:12px;flex-shrink:0}.mobile-nav button,.canvas-toolbar button,.view-controls button,.right-tabs button,.layer-row .layer-name{color:#425c6c;font-size:12px}.muted,.check,.number-field>span,.form-row label,.inventory-stats span,th,.export-shortcuts small,.part-card small,.panel-title>span,.canvas-label,.canvas-label small,.placement-card span,.status-bar{color:#586d7b}.number-field>span,.check,.muted,.form-row label,.dialog .check,.export-shortcuts small{font-size:12px}.dialog{overscroll-behavior:contain;scroll-padding-bottom:20px}.dialog-heading{position:sticky;top:-27px;background:#fff;z-index:2;padding:12px 0;margin-top:-12px;border-bottom:1px solid var(--line)}.dialog-heading>button,.view-controls button{min-width:44px;min-height:44px}.inventory-stats span,.dialog table,.export-shortcuts strong,.dialog .wide{font-size:12px}.dialog p{font-size:13px}.check{min-height:44px}}@media(max-width:650px){.header{min-height:96px;padding-top:6px}.header-actions .primary,.mode-tabs button{min-height:44px}.mode-tabs button{font-size:12px}.project-bar{height:44px}.project-bar input{width:145px}.project-bar>button{font-size:12px}.canvas-toolbar{top:8px;width:calc(100% - 16px)}.canvas-toolbar .tool-segment:first-child{flex:1}.canvas-toolbar .tool-segment:first-child button{flex:1;padding:4px}.tool-segment:last-of-type button{min-width:44px;padding:0}.canvas-label{top:70px;font-size:10px;letter-spacing:.3px}.canvas-label small{display:none}.view-controls{top:92px}.view-controls button{padding:5px 8px;font-size:12px}.welcome{top:32%}.welcome h1{font-size:32px;margin:12px 0}.welcome p{font-size:13px;line-height:1.6}.welcome .eyebrow{font-size:10px;color:#586d7b}.mobile-panel{height:66%}.mobile-sheet-head{top:-16px;margin:-16px -16px 14px;padding:8px 16px}.mobile-sheet-head button{padding:8px}.mobile-panel .part-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.mobile-panel .part-card{min-height:104px;padding:6px}.mobile-panel .part-card svg{height:52px}.mobile-panel .part-card strong,.mobile-panel .part-card small{font-size:11px}.mobile-panel .search{margin-bottom:12px}.mobile-panel .search input,.mobile-panel .number-field input,.placement-values input,.dialog input,.dialog select{font-size:16px}.mobile-panel .eyebrow{font-size:10px;margin-bottom:10px;color:#586d7b}.color-title{margin-top:16px}.placement-card{bottom:62px;padding:10px}.placement-card>div:first-child{flex-basis:auto}.placement-card strong,.placement-card button,.placement-card span{font-size:12px}.placement-values{flex-basis:100%}.placement-values .number-field span{font-size:11px}.placement-values .number-field input{padding:5px 8px}.canvas-bottom button,.mobile-nav button,.button-row button{font-size:12px}.status-bar{font-size:11px}.mode-card{top:146px;max-height:calc(100% - 204px)}.dialog-heading{top:-20px}.dialog .eyebrow{font-size:10px}.export-shortcuts{flex-wrap:wrap}.export-shortcuts button{min-width:90px}.inventory-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-row{flex-wrap:wrap}.form-row label{min-width:120px}.form-row select{font-size:14px}}@media(max-width:1100px){.mobile-panel>.right-tabs{display:none}.mobile-panel>.panel-title{margin-bottom:12px}.left-sidebar.mobile-panel>.panel-title{display:none}}.selected-colour{display:block;margin-top:4px;font-size:12px;font-weight:400;color:#586d7b}@media(hover:none){.mobile-nav button{transition:none}.mobile-nav button:hover{background:transparent}.mobile-nav button.active,.mobile-nav button.active:hover{background:#fff1e6;color:#a74c20}}.layer-removal{padding:12px;background:#f7f9fa;border:1px solid var(--line);border-radius:8px}.layer-removal input[type=radio]{width:18px;height:18px;min-height:18px;flex-shrink:0;accent-color:var(--accent)}.layer-removal h3{margin-top:0}.save-conflict{padding:12px 18px;background:#fff0d8;display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px}.save-conflict span{flex:1 1 250px}.saved-project{padding:12px 0;border-bottom:1px solid var(--line)}.mode-card details>summary,.clipboard-tools details>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px;color:#425c6c;cursor:pointer}.mode-card details>summary:before,.clipboard-tools details>summary:before{content:"▸"}.mode-card details[open]>summary:before,.clipboard-tools details[open]>summary:before{content:"▾"}summary:focus-visible{outline:3px solid #eea66c;outline-offset:2px}@media(max-width:1100px){:is(.mode-photo,.mode-instructions,.mode-project) :is(.canvas-toolbar,.canvas-label,.canvas-bottom,.mobile-nav,.mobile-panel,.view-controls){display:none}:is(.mode-photo,.mode-instructions,.mode-project) .mode-card{top:16px;left:16px;max-height:calc(100% - 32px);max-width:calc(100% - 32px)}.right-sidebar.mobile-panel>.panel-title h2{display:none}.right-sidebar.mobile-panel>.panel-title{justify-content:flex-end;margin-bottom:10px}.right-sidebar.mobile-panel>.panel-title button{font-size:13px;border:1px solid var(--line);padding:8px 12px}}.selection-region{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}.selection-region polygon{fill:#df7c3830;stroke:#a34718;stroke-width:2;stroke-dasharray:5 3}.selection-tools{margin:12px 0}.selection-tools summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}.selection-tools label{display:grid;gap:6px;margin:10px 0}.selection-tools select{width:100%;min-height:44px}.selection-match{display:flex;flex-wrap:wrap;gap:6px}.selection-match button{min-height:44px;flex:1 1 110px}.layer-folders>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#425c6c}.layer-folders>summary:before{content:"▸";margin-right:8px}.layer-folders[open]>summary:before{content:"▾"}.layer-folders .number-field,.layer-folders .layer-removal{margin:10px 0}.layer-folder-path{display:block;font-size:11px;font-weight:400;overflow:hidden;text-overflow:ellipsis}.selection-tools>summary:before{content:"▸";margin-right:8px}.selection-tools[open]>summary:before{content:"▾"}.face-pick-card{position:absolute;top:70px;left:50%;transform:translate(-50%);z-index:6;width:min(420px,calc(100% - 24px));padding:12px;border-radius:12px;background:#fff;box-shadow:0 6px 24px #26394426;display:flex;gap:10px;align-items:center}.face-pick-card button{min-height:44px;flex-shrink:0}@media(max-width:600px){.face-pick-card{flex-direction:column;align-items:stretch}}.shortcut-settings>summary{min-height:44px;cursor:pointer;display:flex;align-items:center;font-weight:600}.shortcut-settings>summary:before{content:"▸";margin-right:8px}.shortcut-settings[open]>summary:before{content:"▾"}.shortcut-settings label{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,1fr);align-items:center;gap:8px;margin:6px 0}.shortcut-settings input,.shortcut-settings button{min-height:44px;min-width:0}.shortcut-settings button{margin:6px 6px 0 0}.workplane .panel-tabs button[aria-pressed=true]{background:var(--accent-soft, #f9e2cd);border-color:var(--accent, #ba542d);color:#74301a;box-shadow:inset 0 -3px 0 var(--accent, #ba542d);font-weight:700}.instruction-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.instruction-actions button{min-height:44px;white-space:normal}.instruction-notes{display:grid;gap:8px;margin:12px 0}.instruction-notes textarea{min-height:100px;width:100%;resize:vertical}.instruction-parts{max-height:250px;overflow:auto;border:1px solid #b8c7cd;padding:8px}.instruction-parts .check{min-height:44px}.model-tools label{display:grid;gap:6px;margin:10px 0;min-width:0}.model-tools input,.model-tools select{width:100%;min-width:0;min-height:44px}.model-tools .field-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end}@media(max-width:520px){.model-tools .field-row{grid-template-columns:minmax(0,1fr);gap:0}.model-tools .field-row label{grid-template-columns:minmax(0,1fr) 88px;align-items:center}}.rig-authoring{margin:16px 0;min-width:0}.rig-authoring summary{min-height:44px;cursor:pointer;align-content:center;font-weight:600}.rig-authoring label{display:grid;gap:6px;margin:10px 0;min-width:0}.rig-authoring input,.rig-authoring select,.rig-authoring button{min-height:44px;min-width:0}.rig-authoring input,.rig-authoring select{width:100%}.rig-authoring fieldset{min-width:0;border:1px solid var(--line);padding:10px;margin:12px 0}.rig-authoring legend{max-width:100%;font-size:13px}.rig-vector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rig-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rig-actions{display:grid;gap:6px;margin-top:8px}.rig-group,.rig-preview{padding:10px;margin:12px 0;background:var(--paper);border:1px solid var(--line)}.rig-authoring .rig-check{display:flex;gap:10px;align-items:center;min-height:44px}.rig-authoring .rig-check input{width:22px;min-height:22px;flex-shrink:0}.rig-parts{max-height:240px;overflow:auto;border:1px solid var(--line);padding:8px;margin:8px 0}.rig-parts label{overflow-wrap:anywhere}.fill-options{margin:12px 0}.fill-options .check-row{display:flex;align-items:center;gap:10px;min-height:44px}.fill-options input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.fill-options fieldset{margin:12px 0;border:1px solid #ccd6db;border-radius:8px}.fill-options label:not(.check-row){display:grid;gap:6px;margin:10px 0}.fill-options select,.fill-options textarea{width:100%;min-height:44px}.fill-options summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.rig-part-description{display:grid;gap:4px;min-width:0}.rig-part-detail{font-size:12px;line-height:1.4;color:var(--ink)}.resource-profile fieldset{margin:12px 0;border:1px solid #ccd6db;border-radius:8px}.resource-profile .check{min-height:44px;margin:0;font-size:12px;color:var(--ink)}.resource-profile input[type=radio],.resource-profile input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.resource-profile .table-scroll{max-height:none}.resource-warning{border:1px solid #eed6bc;border-radius:8px;padding:4px 14px 12px;font-size:12px;line-height:1.5}.inspector-properties{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:12px 0;font-size:12px;line-height:1.45}.inspector-properties dt{color:var(--secondary)}.inspector-properties dd{margin:0;color:var(--ink);overflow-wrap:anywhere}.affine-matrix summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:12px}.affine-matrix td{font-variant-numeric:tabular-nums;padding:6px}.affine-matrix td:last-child{border-left:1px solid var(--line)}.part-card-wrap{position:relative;min-width:0}.part-card-wrap .part-card{width:100%}.part-favourite{position:absolute;top:2px;left:2px;width:44px;height:44px;padding:0;border:0;background:transparent;color:#5f707a;font-size:19px;line-height:1}.part-favourite[aria-pressed=true]{color:var(--accent)}.part-filters,.part-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}.part-filters button,.part-chips button{min-height:36px;padding:0 12px;border-radius:18px;font-size:11px}.part-filters button[aria-pressed=true],.part-chips button[aria-pressed=true]{border-color:#d98450;background:#fff7f0;color:#a4552a}.empty-parts{padding:14px;margin-bottom:12px;border:1px dashed #ccd6db;border-radius:8px;font-size:12px;color:var(--secondary)}@media(pointer:coarse){.part-filters button,.part-chips button{min-height:44px}}.related-title{margin-top:18px}.replace-panel{margin:6px 0;border:1px solid var(--line);border-radius:8px;padding:0 12px}.replace-panel[open]{padding-bottom:10px}.replace-panel summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:12px}.replace-panel>label:not(.check){display:grid;gap:6px;font-size:12px}.replace-panel select{width:100%;min-height:44px}.replace-panel fieldset{margin:10px 0;border:1px solid #ccd6db;border-radius:8px}.replace-panel .check{min-height:44px;margin:0}.replace-panel input[type=radio],.replace-panel input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.replace-preview{font-size:12px;line-height:1.5}.warning-text{color:#a2662e}input[type=radio],input[type=checkbox]{accent-color:var(--accent)}.resource-warning p{color:#5a3a1c}.confirm-risk:not(:disabled){background:#b5561f;border-color:#b5561f;color:#fff}.replace-panel>summary,.affine-matrix>summary,.limited-source details>summary{gap:8px}.replace-panel>summary{justify-content:center}.replace-panel>summary:before,.affine-matrix>summary:before,.limited-source details>summary:before{content:"▸"}.replace-panel[open]>summary:before,.affine-matrix[open]>summary:before,.limited-source details[open]>summary:before{content:"▾"}.replace-done{font-size:12px;color:#2f6b45;margin:4px 0 10px}.inspector-properties dd small{display:block}.affine-matrix th{font-weight:600;color:var(--secondary);padding:6px}.inspector-properties dd small.size-ldu{margin-top:2px;font-size:11px;line-height:1.3}:root{--paper: #f4f1ea;--ink: #1d2230;--secondary: #4f5a6e;--line: #e2dccf;--accent: #2e7d43;--hud: rgba(29, 34, 48, .92);--hud-line: rgba(244, 241, 234, .16);--chalk: #f4f1ea;--grass: #5bb56a;--sun: #ffd166;--hud-mute: #b9c0cf;--scene: #dfe6ea}::selection{background:#ffd16688;color:var(--ink)}body{background:var(--scene);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-variant-numeric:tabular-nums}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--sun);outline-offset:2px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#266a38;border-color:#266a38}.icon{flex-shrink:0;display:block}.app{position:relative;display:block;height:100dvh;overflow:hidden;background:var(--scene)}.workspace{position:absolute;inset:0;display:block}.canvas-shell{position:absolute;inset:0;background:var(--scene)}.hud-slab{background:var(--hud);border:2px solid var(--hud-line);border-radius:14px;box-shadow:0 6px 18px #1418243d;color:var(--chalk)}.hud-el{transition:opacity .15s ease-out,transform .2s ease-out}.hud-dim .hud-el,.hud-dim .canvas-toolbar,.hud-dim .left-sidebar,.hud-dim .right-sidebar,.hud-dim .mode-card{opacity:.18;pointer-events:none}.left-sidebar,.right-sidebar,.canvas-toolbar,.mode-card{transition:opacity .15s ease-out}.hud-top{position:absolute;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;z-index:20;display:flex;align-items:center;gap:8px;pointer-events:none}.hud-top>*{pointer-events:auto}.mode-tabs{display:flex;gap:2px;height:auto;padding:4px;margin:0}.mode-tabs button{display:flex;align-items:center;gap:7px;min-height:40px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--hud-mute);font-weight:600;font-size:13px}.mode-tabs button:hover{background:#f4f1ea14;color:var(--chalk)}.mode-tabs button.active{background:var(--chalk);color:var(--ink)}.mode-tabs button.active:after{content:none}.project-bar{display:flex;align-items:center;gap:10px;height:48px;min-width:0;padding:0 14px}.project-bar .brand{display:inline;font-size:13px;font-weight:500;letter-spacing:0;color:var(--hud-mute);white-space:nowrap}.project-bar .brand b{color:var(--chalk);font-weight:750}.save-dot{width:8px;height:8px;border-radius:50%;background:var(--grass);flex-shrink:0}.project-bar input{width:200px;min-height:36px;padding:0 6px;border:0;border-radius:8px;background:transparent;color:var(--chalk);font-weight:650}.project-bar input:hover,.project-bar input:focus{background:#f4f1ea14}.project-bar .save-state{border:0;padding:0;font-size:12px;color:var(--hud-mute);white-space:nowrap}.header-actions{margin-left:auto;display:flex;gap:8px}.header-actions button{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;font-weight:650}.header-actions .hud-slab:hover{background:#2a3044;border-color:var(--hud-line)}.header-actions .primary{min-width:0;justify-content:center;border-radius:14px;box-shadow:0 6px 18px #1418243d}.canvas-toolbar{top:auto;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);z-index:15;gap:4px;padding:6px;background:var(--hud);border:2px solid var(--hud-line);border-radius:16px;box-shadow:0 8px 22px #14182442}.canvas-toolbar button{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border-radius:10px;background:transparent;color:var(--chalk);font-size:13px;font-weight:600}.canvas-toolbar button:hover{background:#f4f1ea1a}.canvas-toolbar button.active{background:var(--grass);color:#10240f}.canvas-toolbar button:disabled{opacity:.35}.tool-segment{gap:2px;padding-right:6px;border-right:2px solid var(--hud-line)}.tool-segment:last-of-type{border-right:0;padding-right:0}.tool-segment:last-of-type button{font-size:13px;padding:0 12px}.views-toggle{display:none!important}.view-controls{position:absolute;top:74px;right:326px;z-index:14;display:flex;gap:2px;padding:4px;background:var(--hud);border:2px solid var(--hud-line);border-radius:12px}.view-controls button{min-height:36px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--chalk);font-size:12px;font-weight:600}.view-controls button:hover{background:#f4f1ea1a}.left-sidebar,.right-sidebar{position:absolute;top:74px;bottom:90px;z-index:12;width:300px;padding:18px 16px;overflow:auto;background:var(--paper);border:0;border-radius:16px;box-shadow:0 10px 30px #14182438;overscroll-behavior:contain}.left-sidebar{left:12px}.right-sidebar{right:12px;width:310px}.part-card{background:#fff;border:2px solid var(--line);border-radius:12px}.part-card.chosen{border-color:var(--grass);background:#fff;box-shadow:inset 0 0 0 1px var(--grass)}.part-check{color:var(--accent)}.part-filters button[aria-pressed=true],.part-chips button[aria-pressed=true],.right-tabs button.active{background:var(--ink);border-color:var(--ink);color:var(--chalk)}.part-favourite[aria-pressed=true]{color:#b7791f}.parts-heading{display:flex;justify-content:space-between;align-items:baseline;margin:18px 0 10px;font-size:13px;font-weight:700;color:var(--ink)}.offline-tag{font-size:12px;font-weight:600;color:var(--accent)}.canvas-bottom{position:absolute;left:324px;right:auto;bottom:24px;z-index:13;display:flex;gap:12px;align-items:center;height:34px;padding:0 12px;border-radius:17px;font-size:12px;font-weight:600;color:var(--chalk);background:var(--hud)}.canvas-bottom b,.status-bar b{color:var(--hud-mute)}.canvas-bottom .grid-state{color:var(--hud-mute);font-weight:500}.status-bar{position:absolute;right:12px;bottom:24px;z-index:13;height:34px;max-width:min(520px,calc(100% - 24px));padding:0 14px;gap:12px;border:0;border-radius:17px;background:var(--hud);color:var(--chalk);font-size:12px;display:flex;align-items:center}.status-bar>span:first-child{color:var(--chalk);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-bar>span:last-child{color:var(--hud-mute);white-space:nowrap}.status-bar button{min-height:28px;padding:0 10px}.placement-card,.welcome,.mode-card{z-index:16}.placement-card{bottom:88px}.mode-card{top:74px;left:12px;background:var(--paper);border:0;box-shadow:0 10px 30px #14182438}.mode-build .mode-card{display:none}.welcome{background:var(--paper);border-radius:18px;padding:28px;box-shadow:0 10px 30px #1418242e}.app:not(.mode-build) .left-sidebar,.app:not(.mode-build) .right-sidebar{display:none}.app:not(.mode-build) .canvas-bottom{left:12px}@media(max-width:1400px)and (min-width:1101px){.project-bar .brand,.project-bar .save-state{display:none}}@media(max-width:1100px){.app{height:100dvh}.workspace{position:absolute}.canvas-toolbar{inset:50% 10px auto auto;transform:translateY(-50%);flex-direction:column;width:auto;padding:5px;gap:3px}.tool-segment{flex-direction:column;gap:3px;padding:0 0 5px;border-right:0;border-bottom:2px solid var(--hud-line)}.tool-segment:last-of-type{border-bottom:0;padding:0}.canvas-toolbar button,.tool-segment:last-of-type button{width:46px;min-width:46px;min-height:46px;padding:0;justify-content:center}.canvas-toolbar button>span,.tool-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.views-toggle{display:flex!important}.view-controls{display:none;top:50%;right:72px;transform:translateY(-50%);flex-direction:column}.view-controls.open{display:flex}.view-controls button{min-height:44px;min-width:72px}.header-actions .tool-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.header-actions button{width:48px;padding:0;justify-content:center}.project-bar .brand{display:none}.mobile-panel,.left-sidebar.mobile-panel,.right-sidebar.mobile-panel{display:none;top:auto;left:0;right:0;bottom:calc(82px + env(safe-area-inset-bottom));width:auto;height:min(56dvh,calc(100dvh - 170px));padding:6px 16px 18px;border-radius:18px 18px 0 0;background:var(--paper);box-shadow:0 -10px 30px #1418243d;z-index:18}.sheet-full .mobile-panel{height:calc(100dvh - 152px - env(safe-area-inset-bottom))}.mobile-panel.mobile-open{display:block}.mobile-sheet-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;position:sticky;top:-6px;z-index:2;margin:0 -16px 12px;padding:0 16px 8px;background:var(--paper)}.mobile-sheet-head strong{font-size:17px;margin-right:auto}.sheet-handle{flex-basis:100%;min-height:22px;height:22px;padding:0;border:0;background:transparent;display:grid;place-items:center}.sheet-handle:after{content:"";width:44px;height:5px;border-radius:3px;background:#c9c4b8}.sheet-open .canvas-bottom,.sheet-open .view-controls{display:none}.mobile-nav{position:absolute;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:19;display:flex;gap:5px;height:64px;padding:6px;border-top:0}.mobile-nav button{position:relative;flex:1;min-width:0;min-height:48px;padding:4px 2px 3px;display:grid;justify-items:center;align-content:center;gap:2px;border:2px solid rgba(244,241,234,.16);border-radius:10px;background:#f4f1ea0d;color:var(--chalk);font-size:12px;font-weight:650}.mobile-nav button>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-nav button.active,.mobile-nav button.chosen{border-color:var(--sun);background:#ffd1661f;color:var(--chalk)}.canvas-bottom{left:12px;bottom:calc(86px + env(safe-area-inset-bottom));height:30px;font-size:12px}.canvas-bottom .grid-state{display:none}.status-bar{left:auto;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));height:30px;max-width:55%;font-size:12px}.status-bar>span:last-child{display:none}.placement-card{bottom:calc(84px + env(safe-area-inset-bottom))}.mode-card{top:70px;max-height:calc(100% - 170px)}}@media(max-width:650px){.hud-top{gap:6px}.mode-tabs{padding:3px}.mode-tabs button{min-height:40px;min-width:40px;padding:0 9px;justify-content:center}.mode-tabs button:not(.active) .mode-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.project-bar{position:absolute;top:54px;left:0;height:30px;padding:0 10px;gap:6px;border-radius:15px}.project-bar input{width:150px;min-height:26px;font-size:12px}.project-bar .save-state{display:none}.header-actions button{width:44px;min-height:44px;border-radius:12px}.mode-card{top:96px;max-height:calc(100% - 196px)}.status-bar{max-width:50%}}@media(max-width:380px){.mode-tabs button{padding:0 7px}}.mode-tabs{order:0;width:auto;margin-left:0;justify-content:flex-start}.canvas-toolbar button>span,.canvas-toolbar>button>span{font-size:inherit;margin:0}.right-tabs{display:flex;gap:4px;padding:4px;margin:0 0 16px;border-radius:12px;background:#e9e4d8}.right-tabs button{flex:1;min-height:40px;border:0;border-radius:9px;background:transparent;font-weight:650;color:var(--secondary)}@media(min-width:1101px){.canvas-bottom{left:12px}.canvas-toolbar button{padding:0 10px}}@media(max-width:1100px){.status-bar:not(.fresh){opacity:0;pointer-events:none}}@media(max-width:650px){.mode-tabs{order:0;height:auto}.header-actions{margin-left:auto}.project-bar input{width:min(58vw,240px)}}@media(max-width:380px){.mode-tabs button.active .mode-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mode-tabs button{min-width:40px}}details>summary:before{content:""!important;display:inline-block;flex-shrink:0;width:6px;height:6px;margin-right:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s ease-out}details[open]>summary:before{transform:rotate(45deg)}summary{list-style:none}summary::-webkit-details-marker{display:none}button .icon,a .icon{display:inline-block;vertical-align:-3px}.part-check{top:6px;right:6px}.swatches button .icon{margin:auto}.library-note .icon{color:var(--accent)}.mode-chevron{display:none}.status-bar:not(.fresh){opacity:0;pointer-events:none}.status-bar>span:last-child{display:none}.views-toggle{display:flex!important}.view-controls{display:none}.view-controls.open{display:flex}@media(min-width:1101px){.view-controls{inset:auto auto 88px 50%;transform:translate(-50%)}}.save-chip{display:none}@media(max-width:1100px){.app .mobile-nav button.active,.app .mobile-nav button.chosen{border-color:var(--sun);background:#ffd16624;color:var(--chalk);transform:translateY(-3px);box-shadow:0 6px 12px #0a0c1459}.mobile-nav button{transition:transform .18s ease-out,box-shadow .18s ease-out,border-color .15s}.hotbar-colour-slot{flex:0 0 52px!important}.hotbar-swatch{width:30px;height:30px;border-radius:8px;border:2px solid rgba(255,255,255,.85);box-shadow:inset 0 -3px #0000002e}.hotbar-part svg:not(.icon){width:34px;height:22px}.mobile-panel.mobile-open{animation:sheet-rise .2s cubic-bezier(.2,.8,.2,1)}.sheet-open .welcome{display:none}.app .mode-card{inset:auto 0 0;width:auto;max-width:none;max-height:min(52dvh,calc(100dvh - 120px));overflow:auto;border-radius:18px 18px 0 0;padding:26px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px #1418243d}.app .mode-card:before{content:"";position:absolute;top:9px;left:50%;width:44px;height:5px;margin-left:-22px;border-radius:3px;background:#c9c4b8}.app .mode-card h2{font-size:22px}}@keyframes sheet-rise{0%{transform:translateY(28px);opacity:.6}to{transform:none;opacity:1}}@media(pointer:coarse){.play-key-settings{display:none}}@media(min-width:651px)and (max-width:1100px){.mobile-panel,.left-sidebar.mobile-panel,.right-sidebar.mobile-panel{left:12px;right:auto;width:min(680px,calc(100% - 96px));border-radius:18px;bottom:calc(86px + env(safe-area-inset-bottom))}.mobile-panel .part-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mobile-panel .part-card{min-height:118px}.mobile-nav{right:auto;width:min(680px,calc(100% - 20px))}.app .mode-card{left:12px;right:auto;width:min(620px,calc(100% - 24px));border-radius:18px;bottom:12px}}@media(max-width:650px){.project-bar{display:none}.mode-tabs:not(.open) button:not(.active){display:none}.mode-tabs button.active .mode-label{position:static;width:auto;height:auto;clip-path:none}.mode-chevron{display:block;margin-left:-2px;color:var(--secondary)}.mode-tabs.open{position:absolute;top:0;left:0;flex-direction:column;align-items:stretch;min-width:190px}.mode-tabs.open button{justify-content:flex-start;min-height:46px}.mode-tabs.open button .mode-label{position:static;width:auto;height:auto;clip-path:none}.mode-tabs.open .mode-chevron{transform:rotate(180deg)}.header-actions .hud-slab{width:auto;padding:0 12px;gap:6px}.save-chip{display:inline;font-size:13px;font-weight:650}.header-actions .hud-slab .icon{color:var(--grass)}.app .mode-card{max-height:min(56dvh,calc(100dvh - 90px))}}@media(prefers-reduced-motion:reduce){.mobile-panel.mobile-open{animation:none}}.part-card .icon,.part-card-wrap .icon{width:16px;height:16px}.part-favourite .icon{width:20px;height:20px;margin:auto}@media(max-width:1600px){.canvas-bottom .grid-state{display:none}}.diagnostics button{border:1px solid #eed6bc;border-radius:8px;font-size:12px;padding:8px 10px}@media(max-width:650px){.sheet-open .canvas-toolbar{display:none}}.app:has(.play-overlay) .hud-top,.app:has(.play-overlay) .mobile-nav,.app:has(.play-overlay) .canvas-toolbar,.app:has(.play-overlay) .canvas-bottom,.app:has(.play-overlay) .view-controls,.app:has(.play-overlay) .status-bar{display:none}.save-conflict{position:absolute;top:74px;left:50%;transform:translate(-50%);z-index:30;width:min(760px,calc(100% - 24px));border-radius:14px;box-shadow:0 10px 30px #1418243d;color:var(--ink)}@media(max-width:650px){.save-conflict{top:66px}}.checkpoint-form{display:grid;gap:8px;margin:10px 0 14px}.checkpoint-form label{display:grid;gap:6px;font-size:12px;font-weight:600}.checkpoint-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}.checkpoint-list li{padding:10px 12px;border:2px solid var(--line);border-radius:12px;background:#fff}.checkpoint-list li>div:first-child{display:grid;gap:2px;margin-bottom:8px}.checkpoint-list small{font-size:12px;color:var(--secondary)}.checkpoint-list .button-row button[aria-label]{flex:0 0 44px;padding:0;display:grid;place-items:center}.checkpoint-confirm{margin-top:10px;padding:10px 12px;border:1px solid #eed6bc;border-radius:10px;font-size:12px}.checkpoint-report{padding:12px;border-radius:12px;background:#e9e4d8;font-size:12px;line-height:1.5}.checkpoint-report p{color:var(--ink)}.health-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px}.health-list li{display:grid;grid-template-columns:24px 1fr;gap:8px;padding:10px 12px;border-radius:12px;background:#fff;border:2px solid var(--line)}.health-list p{margin:2px 0 6px;font-size:12px;line-height:1.5;color:var(--secondary)}.health-mark{width:22px;height:22px;border-radius:50%;display:grid;place-items:center}.health-ok .health-mark{background:#dff1e3;color:var(--accent)}.health-warning .health-mark{background:#fdecd2;color:#9a5b12}.health-unknown .health-mark{background:#e7e9ef;color:var(--secondary)}.health-basis{font-weight:500;color:var(--secondary)}.bookmark-form,.camera-collections{display:grid;gap:8px;margin:12px 0}.bookmark-form label,.camera-collections label{display:grid;gap:6px;font-size:12px;font-weight:600}.view-controls{flex-wrap:wrap;align-items:center;max-width:min(560px,calc(100vw - 24px))}.section-control{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-left:6px;border-left:2px solid var(--hud-line);color:var(--chalk);font-size:12px}.section-control button[aria-pressed=true]{background:var(--grass);color:#10240f}.section-control label{display:flex;align-items:center;gap:8px}.section-control input[type=range]{width:160px;min-height:36px;accent-color:var(--grass)}@media(max-width:1100px){.section-control{border-left:0;border-top:2px solid var(--hud-line);padding:6px 0 0;flex-direction:column;align-items:stretch}.section-control label{flex-direction:column;align-items:stretch}.section-control input[type=range]{width:140px}}@media(min-width:1101px){.view-controls{top:74px;bottom:auto}}@media(max-width:1100px){.view-controls{top:70px;right:12px;transform:none}}@media(max-width:650px){.view-controls{top:66px;right:72px;left:auto;max-width:200px}}.measure-chip{position:absolute;left:50%;bottom:96px;transform:translate(-50%);z-index:17;max-width:calc(100% - 24px);padding:8px 14px;border-radius:16px;font-size:13px;font-weight:650;text-align:center}@media(max-width:1100px){.measure-chip{top:70px;bottom:auto}}@media(max-width:650px){.measure-chip{top:66px;left:12px;right:72px;transform:none}}
