:root{font-family:Inter,'Avenir Next',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#173b34;background:#f1f4ed;font-synthesis:none;--border:#d8e1d4;--muted:#718170;--paper:#fbfcf8}*{box-sizing:border-box}body{margin:0}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);border-radius:10px;background:var(--paper);color:#244b41;min-height:44px;padding:10px 14px;transition:background .15s,border-color .15s}button:hover{background:#e5efe1;border-color:#8bae92}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #bf964d;outline-offset:3px}button:disabled{opacity:.5;cursor:default}button.primary{background:#214c3e;color:#fff;border-color:#214c3e}button.primary:hover{background:#326a55}.danger{background:#944d3b;color:white;border-color:#944d3b}.danger-text{color:#985849}.wide{width:100%;margin-top:15px}input:not([type=color]):not([type=file]),select,textarea{width:100%;min-width:0;min-height:44px;padding:11px 12px;color:#244b41;border:1px solid var(--border);border-radius:8px;background:#f4f6f0}textarea{resize:vertical;line-height:1.5}.control-label{display:block;font-size:12px;color:#627b68;margin:17px 0}.control-label input,.control-label select,.control-label textarea{display:block;margin-top:7px;font-size:15px}p{line-height:1.65}h1,h2,h3{font-weight:500;letter-spacing:-1px}h1{font-size:clamp(32px,4vw,54px);line-height:1.08;margin:16px 0 20px}h2{font-size:25px;margin:15px 0}h3{font-size:20px}.muted{font-size:12px;color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:#738773}.badge{font-size:8px;letter-spacing:1px;border:1px solid var(--border);padding:5px;border-radius:4px;color:#849184}.app-header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--border);background:var(--paper);gap:24px}.brand{font-size:18px;font-weight:700;letter-spacing:2px;text-decoration:none;color:#173b34;display:flex;align-items:center;gap:5px;flex-shrink:0}.brand>span:last-child{font-weight:400}.logo{background:#1c4b3e;color:#d8edd3;border-radius:12px;padding:4px 10px;font-size:30px;margin-right:8px;display:inline-block}.project-status{min-width:0;margin-left:auto;max-width:40%;text-align:right}.project-status button{font-size:13px;font-weight:500;background:none;border:0;min-height:28px;padding:2px 0;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.project-status button:disabled{opacity:1}.project-status small{display:block;font-size:10px;color:#7a8b75;margin-top:3px}.header-actions{display:flex;gap:8px}.header-actions button{font-size:12px}.app-nav{height:62px;display:flex;align-items:stretch;gap:25px;padding:0 36px;background:var(--paper);border-bottom:1px solid var(--border)}.app-nav button{border:0;border-radius:0;background:none;font-size:12px;padding:0 6px;position:relative;display:flex;align-items:center;gap:9px;color:#7b8876}.app-nav button span{font-size:20px;color:#8b9a83}.app-nav button.active{color:#214c3e;font-weight:650}.app-nav button.active:after{content:'';position:absolute;height:3px;background:#35654e;bottom:-1px;left:5px;right:5px;border-radius:3px 3px 0 0}.app-nav button.active span{color:#35654e}.page{max-width:1240px;margin:0 auto;padding:40px 38px 45px}.home-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:12px 0 40px;gap:50px;border-bottom:1px solid var(--border)}.home-hero h1{font-size:clamp(40px,5vw,64px);letter-spacing:-2.6px}.home-hero p{font-size:13px;color:var(--muted);margin:0 0 25px;max-width:340px}.home-hero .primary{padding:13px 25px}.hero-drawing{max-width:400px;justify-self:center;width:100%;transform:rotate(-3deg)}.hero-drawing svg{display:block;width:100%;height:auto}.hero-drawing>span{font:9px monospace;letter-spacing:2px;color:#8b9b80;display:block;text-align:center;margin-top:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 20px}.section-heading h2{font-size:26px;margin:7px 0 0}.section-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.counter{font-size:12px;color:#7c8d77;border:1px solid var(--border);padding:3px 7px;border-radius:7px;vertical-align:middle;margin-left:7px;letter-spacing:0}.project-tools{display:flex;gap:10px;align-items:center}.project-tools input{font-size:12px;width:180px!important}.project-tools button{font-size:12px;white-space:nowrap}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{background:var(--paper);border:1px solid var(--border);border-radius:15px;overflow:hidden}.card-open{border:0;border-radius:0;background:none;width:100%;padding:0 0 17px;text-align:left;display:block}.card-open img,.card-placeholder{display:block;width:100%;height:180px;object-fit:cover;background:#e8eee3}.card-placeholder{background:radial-gradient(ellipse at 50% 60%,#d8e6d0,transparent 80%),#eaf0e4;display:flex;align-items:center;justify-content:center;color:#8aac8b;font-size:60px;font-weight:200}.card-open strong{display:block;margin:16px 18px 6px;font-size:15px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-open>span{display:block;margin:0 18px;color:#829079;font-size:10px}.card-actions{display:flex;border-top:1px solid #e6ebe1;justify-content:space-between;padding:5px 9px}.card-actions button{border:0;background:none;font-size:10px;padding:8px;min-height:40px}.empty-state{padding:40px 24px;text-align:center;border:1px dashed #cedbc7;border-radius:15px;background:#f8faf4;color:#738670}.empty-state>span{font-size:40px;color:#89a17d;font-weight:200}.empty-state h3{margin:10px 0;color:#395740}.empty-state p{font-size:12px}.empty-state button{font-size:12px;margin:6px}.home-paths{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:30px}.path-card{padding:20px;display:flex;align-items:center;gap:15px;text-align:left;background:#e9eee2;border-color:#dce4d4}.path-card strong{font-size:13px;font-weight:550}.path-card p{font-size:10px;color:#7e8a72;margin:5px 0 0}.path-icon{font-size:28px;color:#5d8062}.path-card>span:last-child{margin-left:auto}.privacy-note{font-size:10px;color:#809277;margin:24px 0 0}.page-heading{margin:8px 0 30px}.page-heading h1{font-size:40px;letter-spacing:-1.6px}.page-heading>p{font-size:13px;color:var(--muted)}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;min-height:calc(100dvh - 144px)}#viewport{position:relative;min-height:600px;overflow:hidden;background:#e9eee7;height:calc(100dvh - 144px);position:sticky;top:0}canvas{display:block;touch-action:none}#viewport>canvas{width:100%;height:100%}.scene-title{position:absolute;top:28px;left:28px;pointer-events:none}.scene-title .eyebrow{font-size:8px}.scene-title p{font-size:13px;margin:8px 0;color:#78906f}.viewtools{position:absolute;right:22px;top:23px;display:flex;gap:5px}.viewtools button{font-size:11px;padding:8px 12px;min-height:38px;background:#f9fcf7e6}.scale{position:absolute;bottom:25px;left:25px;font-size:10px;color:#6d8071}.scale span{margin:0 8px}.hint{position:absolute;bottom:25px;right:22px;font-size:9px;color:#718576}aside{background:var(--paper);padding:26px 25px;border-left:1px solid var(--border);overflow:auto}aside h2{font-size:23px;margin:22px 0 14px}.panel-heading{display:flex;justify-content:space-between;align-items:center}.shapes{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:18px 0 25px}.shapes button{display:flex;flex-direction:column;align-items:center;font-size:10px;padding:10px 3px;gap:7px}.shapes b{font-size:27px;font-weight:400}.section-label{font-size:10px;letter-spacing:1.5px;color:#6c8575;margin:20px 0 10px;display:flex;justify-content:space-between}.section-label span{letter-spacing:0}.object{display:flex;align-items:center;width:100%;text-align:left;margin-bottom:6px;gap:10px;font-size:12px;overflow-wrap:anywhere}.object.active{background:#e8f1e6;border-color:#749a7b}.dot{width:10px;height:10px;border-radius:3px;flex-shrink:0}.object small{margin-left:auto;color:#7d8a7c;font-size:9px;flex-shrink:0}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.fields label{font-size:10px;color:#738575}.fields input{display:block;margin-top:5px;padding:10px 7px!important;background:#f1f4ed!important;font-size:14px}.color-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-top:20px}input[type=color]{width:55px;height:35px;border:0;background:none}.actions{display:flex;gap:8px;margin-top:15px}.actions button{flex:1;font-size:12px}.filetools{display:flex;gap:6px;border-top:1px solid #dce3d8;padding-top:20px;margin-top:25px}.filetools button{font-size:11px;flex:1;padding:8px}.secondary-tools{border:0;margin:7px 0;padding:0}.footnote{font-size:10px;color:#8a9586;margin-top:20px}.sketch-start{width:100%}.hole-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;padding:4px 0;gap:10px}.hole-row button{min-height:36px;padding:3px 12px;font-size:20px}#hole-add{width:100%;font-size:12px}#hole-help{font-size:10px}#loading{position:absolute;top:45%;left:15%;width:70%;font-size:14px;line-height:1.7}dialog{border:1px solid #cdd9cd;border-radius:20px;background:var(--paper);color:#173b34;padding:25px;width:min(600px,calc(100vw - 24px));max-height:92dvh;overflow:auto;box-shadow:0 20px 100px #173b3433}dialog::backdrop{background:#122f2966;backdrop-filter:blur(3px)}dialog h2{font-size:24px;margin-top:4px}dialog p{font-size:13px}#sketch-dialog{width:min(650px,calc(100vw - 24px))}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.dialog-heading h2{margin:10px 0 18px}.dialog-heading button{font-size:23px;line-height:1}.profile-tools{display:flex;gap:8px}.profile-tools button{flex:1}.profile-tools .active{background:#e1efdf;border-color:#6a9674}#sketch-canvas{width:100%;height:auto;aspect-ratio:5/3;border:1px solid #d4dfce;border-radius:12px}.canvas-caption{font-size:10px;color:#7d8a7c;margin:7px 0 18px}#sketch-form>.primary{width:100%;margin-top:8px}#sketch-summary{font-size:12px;min-height:20px;margin-bottom:8px}.invalid{color:#a54f37!important}#sketch-form input{font-size:16px}#sketch-instruction{font-size:12px}.export-size{display:flex;justify-content:space-between;gap:15px;background:#e9f0e3;padding:16px;border-radius:9px;font-size:12px}.export-size strong{font-weight:550}#export-checks{font-size:12px;line-height:1.8;padding-left:20px}.recovery-item{display:block;width:100%;text-align:left;margin:8px 0;font-size:13px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}.module-card,.settings-card{background:var(--paper);border:1px solid var(--border);border-radius:14px;padding:24px}.module-card h2{font-size:22px}.module-card p{font-size:12px;color:#74836d}.module-card .muted{font-size:10px;border-top:1px solid var(--border);padding-top:15px}.notice{background:#e7eee0;border:1px solid #d8e3cd;border-radius:12px;padding:20px}.notice strong{font-size:13px;font-weight:600}.notice p{font-size:12px;color:#6f8067;margin:7px 0 0}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:start}.settings-card>p{font-size:13px;color:#71806a}.settings-card>p.muted{font-size:12px}.settings-card h2{margin-top:0;font-size:23px}.photo-layout{display:grid;grid-template-columns:1.3fr 1fr;gap:30px}.photo-workspace,.photo-details{background:var(--paper);border:1px solid var(--border);border-radius:15px;padding:24px}.photo-workspace>.section-label,.photo-details>.section-label{margin-top:0}.photo-placeholder{min-height:270px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px dashed #cddbc5;margin-top:20px;border-radius:12px;background:#f0f4e9}.photo-placeholder>span{font-size:42px;color:#92a385}.photo-placeholder>p{text-align:center;font-size:12px;color:#819076}.photo-workspace .actions{margin-top:12px}#photo-preview{margin-top:20px}#photo-canvas{width:100%;height:auto;border-radius:10px;object-fit:contain}.photo-details .notice{margin-top:20px}.photo-details .fields{margin:20px 0}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#173b34;color:white;font-size:13px;border-radius:12px;padding:13px 22px;z-index:100;max-width:90vw;box-shadow:0 4px 30px #0002;line-height:1.5}dialog:has(~#toast:not([hidden]))~#toast{z-index:100}.boot{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px}.boot .logo{margin:0}.boot p{font-size:13px;color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.hero-drawing{max-width:340px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scene-title{top:20px;left:23px}.viewtools{top:auto;bottom:60px}.hint{display:none}.module-grid{gap:12px}.module-card{padding:20px}}
@media(max-width:800px){.app-header{padding:0 22px;gap:14px}.brand{font-size:15px;letter-spacing:1px}.app-nav{padding:0 22px;gap:20px}.page{padding:30px 24px}.home-hero{gap:10px}.hero-drawing{max-width:300px}.home-hero h1{font-size:45px}.home-hero p{font-size:12px}.section-heading{align-items:flex-start;flex-direction:column;gap:16px}.project-tools{width:100%}.project-tools input{width:100%!important;flex:1}.project-tools button{flex-shrink:0}.photo-layout,.settings-layout{grid-template-columns:1fr}.photo-layout{gap:20px}.module-grid{grid-template-columns:1fr}.home-paths{gap:10px}.path-card{padding:17px;gap:10px}.path-card p{font-size:9px}.editor-layout{grid-template-columns:minmax(0,1fr) 310px}aside{padding:23px 18px}.scene-title p{font-size:11px}}
@media(max-width:650px){body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}.app-header{height:78px;padding:0 15px;gap:12px}.brand{font-size:12px;letter-spacing:.6px;gap:2px}.logo{font-size:24px;padding:3px 8px;margin-right:4px;border-radius:10px}.project-status{margin-left:auto;max-width:43%;text-align:right}.project-status button{font-size:11px}.project-status small{font-size:8px;line-height:1.4}.header-actions #header-backup{display:none}.header-actions button{font-size:10px;min-height:40px;padding:7px 10px}.app-nav{position:fixed;bottom:0;left:0;right:0;padding:0 7px env(safe-area-inset-bottom);height:calc(68px + env(safe-area-inset-bottom));z-index:30;gap:0;border-top:1px solid var(--border);border-bottom:0;box-shadow:0 -3px 20px #173b3406}.app-nav button{flex:1;flex-direction:column;justify-content:center;gap:4px;font-size:9px;min-width:0;padding:0 2px}.app-nav button span{font-size:22px;line-height:1}.app-nav button.active:after{bottom:auto;top:0;left:25%;right:25%;height:2px;border-radius:0 0 3px 3px}.page{padding:26px 20px}.home-hero{padding:4px 0 28px;grid-template-columns:1fr;position:relative;gap:0}.home-hero>div:first-child{position:relative;z-index:1}.home-hero h1{font-size:47px;letter-spacing:-2px;margin:13px 0 18px}.home-hero p{max-width:225px;font-size:11px;margin-bottom:22px}.home-hero .primary{font-size:12px;padding:12px 20px}.hero-drawing{position:absolute;right:-10px;bottom:24px;width:45%;opacity:.55;pointer-events:none}.hero-drawing>span{display:none}.home-hero .eyebrow{font-size:8px;letter-spacing:1.4px}.section-heading{margin:25px 0 17px}.section-heading h2{font-size:24px}.section-heading .eyebrow{font-size:7px;letter-spacing:1.1px}.project-tools{gap:7px}.project-tools input{font-size:12px!important}.project-tools button{padding:9px 10px;font-size:10px}.project-grid{grid-template-columns:1fr;gap:15px}.card-open img,.card-placeholder{height:190px}.card-actions button{font-size:11px}.home-paths{grid-template-columns:1fr;margin-top:20px}.path-card{padding:16px}.path-card p{font-size:10px}.privacy-note{font-size:9px;margin-top:20px}.empty-state{padding:28px 16px}.empty-state h3{font-size:18px}.empty-state p{font-size:11px}.editor-layout{display:flex;flex-direction:column;min-height:0}#viewport{height:48dvh;min-height:310px;max-height:500px;position:relative;top:auto}.scene-title{top:18px;left:20px}.scene-title .eyebrow{font-size:7px}.scene-title p{font-size:10px}.viewtools{bottom:16px;right:13px;gap:4px}.viewtools button{padding:7px 9px;font-size:10px;min-height:40px}.scale{bottom:66px;left:20px;font-size:9px}aside{border-left:0;border-top:1px solid var(--border);padding:23px 20px 35px}.panel-heading .eyebrow{font-size:9px}aside h2{font-size:24px;margin:17px 0}.shapes{margin:16px 0}.shapes button{padding:9px}.fields input{font-size:16px!important}.control-label input,.control-label select,.control-label textarea{font-size:16px}dialog{padding:20px;border-radius:16px;max-height:calc(100dvh - 28px);margin:auto}dialog h2{font-size:22px}#sketch-dialog{padding:17px}.dialog-heading h2{font-size:20px}.dialog-heading .eyebrow{font-size:8px}#sketch-form .fields{gap:6px}.page-heading{margin:4px 0 26px}.page-heading h1{font-size:32px}.page-heading>p{font-size:12px}.page-heading .eyebrow{font-size:8px}.settings-card,.photo-workspace,.photo-details{padding:20px}.photo-layout{gap:15px}.photo-placeholder{min-height:210px}.module-card{padding:20px}.module-card h2{font-size:21px}.export-size{flex-direction:column;gap:7px}#toast{bottom:calc(82px + env(safe-area-inset-bottom));font-size:12px;max-width:calc(100vw - 32px);width:max-content;padding:11px 17px}.settings-layout{gap:15px}.notice{padding:17px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.save-error{background:#fff0d8;border-bottom:1px solid #e3c7a0;padding:16px 36px}.save-error p{font-size:12px;margin:0;color:#79522b}.save-error .actions{max-width:650px;margin-top:10px}.save-error button{font-size:11px;background:#fff8ed;border-color:#e3cfb4}@media(max-width:650px){.save-error{padding:13px 17px}.save-error .actions{gap:5px}.save-error button{font-size:10px;padding:7px}}
.pick-modes{display:flex;gap:5px}.pick-modes button{flex:1;padding:8px;font-size:11px}.pick-modes .active{background:#e2eedc;border-color:#6c9674}.cad-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cad-actions button{font-size:10px;padding:9px}.edge-picker{font-size:11px;margin:16px 0;border:1px solid #d8e1d4;border-radius:8px;padding:12px}.edge-picker summary{cursor:pointer;min-height:22px}#cad-edge-list{max-height:220px;overflow:auto;margin-top:10px}#cad-edge-list label,.check-label{display:flex;gap:10px;align-items:center;min-height:44px;font-size:12px}input[type=checkbox]{width:19px!important;min-height:19px!important;height:19px;accent-color:#326a55;flex-shrink:0}#cad-error{font-size:12px;line-height:1.6}#cad-panel{border-bottom:1px solid #d8e1d4;padding-bottom:15px;margin-bottom:20px}#cad-metrics{font-size:10px}#cad-status{font-size:10px;line-height:1.6}#cad-status[data-state=loading],#cad-status[data-state=working]{color:#9c723b}#cad-cancel{font-size:11px;width:100%;margin-bottom:12px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}#cad-profile-canvas{width:100%;height:auto;aspect-ratio:5/3;border-radius:10px;border:1px solid #d8e1d4}#cad-feature-dialog{width:min(650px,calc(100vw - 24px))}[data-cad-cancel]{font-size:11px;min-height:36px}#cad-dimension-note{font-size:10px}input:disabled{opacity:.6}@media(max-width:650px){.cad-actions button{font-size:12px}.two-fields{gap:8px}#cad-feature-dialog{padding:17px}.two-fields .control-label{font-size:11px}}

.mesh-notice{padding:15px;background:#e8f0e1;border:1px solid #d3dfcb;border-radius:10px;margin:18px 0}.mesh-notice strong{font-size:12px;font-weight:550}.mesh-notice p{font-size:11px;color:#6b8066}.mesh-notice .check-label{font-size:10px;line-height:1.5}.stl-preview{display:flex;flex-direction:column;gap:9px;padding:18px;background:#e8f0e1;border-radius:12px}.stl-preview>span{font-size:11px;color:#70826a}.stl-preview strong{font-size:20px;font-weight:500}#stl-loading,#stl-error{font-size:12px;line-height:1.6}#stl-dialog .control-label input{font-size:16px}.project-tools{flex-wrap:wrap}.project-tools input{flex:1;min-width:120px!important}@media(max-width:650px){.project-tools input{flex-basis:100%}.project-tools button{flex:1}.stl-preview strong{font-size:19px}}

/* Compact editor controls reuse the same inputs on phone and desktop. */
.mobile-toolbar,.mobile-sheet-toggle{display:none}
#selection-chip{position:absolute;top:64px;right:22px;z-index:4;max-width:min(75%,300px);min-height:44px;padding:9px 13px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f9fcf7ed;box-shadow:0 3px 12px #173b3410}
#selection-choice{position:absolute;top:114px;right:22px;z-index:8;max-width:min(85%,320px);max-height:280px;overflow:auto;background:#fcfdf8;border:1px solid #ceddca;border-radius:12px;padding:8px;box-shadow:0 8px 30px #173b3420}
#selection-choice button{display:block;width:100%;min-height:44px;text-align:left;margin:3px 0;font-size:13px}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){
 body.mobile-editor{padding-bottom:0;overflow:hidden;--mobile-toolbar-height:calc(72px + env(safe-area-inset-bottom));--mobile-sheet-height:48px}
 body.mobile-editor.mobile-sheet-open{--mobile-sheet-height:min(43dvh,390px)}
 body.mobile-editor #app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 body.mobile-editor .app-header{height:68px;min-height:68px;flex-shrink:0;padding:0 12px;gap:8px}
 body.mobile-editor .app-header .brand{font-size:10px;letter-spacing:.3px}
 body.mobile-editor .app-header .logo{font-size:22px;padding:3px 7px}
 body.mobile-editor .project-status{max-width:45%;flex:1}
 body.mobile-editor .project-status small{font-size:9px}
 body.mobile-editor .header-actions button{min-height:44px;padding:8px 12px;font-size:11px}
 body.mobile-editor #editor-screen{flex:1;min-height:0;padding-bottom:var(--mobile-toolbar-height)}
 body.mobile-editor #editor-content{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body.mobile-editor #viewport{flex:1;min-height:165px;max-height:none;height:auto;position:relative;top:auto}
 body.mobile-editor .scene-title{top:13px;left:14px}
 body.mobile-editor .scene-title p{display:none}
 body.mobile-editor .viewtools{bottom:12px;right:12px;gap:5px}
 body.mobile-editor .viewtools button{min-height:44px;min-width:44px;font-size:11px;padding:7px 10px}
 body.mobile-editor .scale{left:14px;bottom:67px;font-size:9px}
 body.mobile-editor #selection-chip{top:35px;right:12px;max-width:72%;font-size:12px}
 body.mobile-editor #selection-choice{top:84px;right:12px;max-width:85%;max-height:220px}
 body.mobile-editor #mobile-sheet{height:var(--mobile-sheet-height);flex:0 0 var(--mobile-sheet-height);min-height:48px;padding:0 16px 18px;border:1px solid #cfddc9;border-bottom:0;border-radius:19px 19px 0 0;overflow:auto;overscroll-behavior:contain;box-shadow:0 -5px 24px #173b3410;scroll-padding-top:54px;background:#fbfcf7}
 body.mobile-editor .mobile-sheet-toggle{position:sticky;top:0;z-index:9;display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% + 32px);margin:0 -16px 10px;min-height:48px;border:0;border-bottom:1px solid #e2e9dc;border-radius:18px 18px 0 0;padding:14px 17px 7px;background:#fbfcf7;touch-action:none;font-size:12px;font-weight:600;text-align:left}
 body.mobile-editor .sheet-grip{position:absolute;left:calc(50% - 17px);top:5px;width:34px;height:3px;border-radius:3px;background:#bacbb2}
 body.mobile-editor .sheet-chevron{font-size:20px;line-height:1;transform:rotate(180deg)}
 body.mobile-editor.mobile-sheet-open .sheet-chevron{transform:none}
 body.mobile-editor:not(.mobile-sheet-open) #mobile-sheet>:not(.mobile-sheet-toggle){display:none!important}
 body.mobile-editor .mobile-panel-hidden{display:none!important}
 body.mobile-editor #mobile-sheet>.panel-heading,body.mobile-editor #mobile-sheet>h2{display:none}
 body.mobile-editor #mobile-sheet .section-label:first-child{margin-top:8px}
 body.mobile-editor #mobile-sheet .shapes{margin:12px 0 8px}
 body.mobile-editor #mobile-sheet .shapes button{min-height:70px;font-size:12px}
 body.mobile-editor #mobile-sheet .control-label{font-size:13px;margin:13px 0}
 body.mobile-editor #mobile-sheet .fields label{font-size:12px}
 body.mobile-editor #mobile-sheet input:not([type=color]):not([type=checkbox]),body.mobile-editor #mobile-sheet select{min-height:48px}
 body.mobile-editor #mobile-sheet .object{min-height:52px;font-size:14px}
 body.mobile-editor #mobile-sheet .object small{font-size:11px}
 body.mobile-editor #mobile-sheet #cad-panel{margin:0;padding:0 0 12px}
 body.mobile-editor #mobile-sheet #cad-status{font-size:11px}
 body.mobile-editor #mobile-sheet .pick-modes button{min-height:48px;font-size:13px}
 body.mobile-editor #mobile-sheet .filetools{margin-top:14px;padding-top:14px}
 body.mobile-editor #mobile-sheet .secondary-tools{margin-top:8px;padding-top:0}
 body.mobile-editor .mobile-toolbar{display:flex;position:fixed;z-index:35;bottom:0;left:0;right:0;height:var(--mobile-toolbar-height);padding:3px 7px env(safe-area-inset-bottom);border-top:1px solid #cbdcc5;background:#f9fcf5;box-shadow:0 -2px 12px #173b3408;gap:4px}
 body.mobile-editor .mobile-toolbar button{position:relative;flex:1;min-width:0;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;border-radius:10px;font-size:10px;min-height:55px;color:#72866b}
 body.mobile-editor .mobile-toolbar button span{font-size:24px;line-height:1.1}
 body.mobile-editor .mobile-toolbar button.active{background:#e2eedc;color:#214c3e;font-weight:650}
 body.mobile-editor .app-nav{display:none;bottom:var(--mobile-toolbar-height);height:76px;padding:0 7px;z-index:36;border-top:1px solid #ccdbc6;border-radius:15px 15px 0 0;box-shadow:0 -6px 25px #173b3420}
 body.mobile-editor .app-nav button{flex:1;flex-direction:column;justify-content:center;gap:4px;font-size:10px;min-width:0;padding:0 2px}body.mobile-editor .app-nav button span{font-size:22px;line-height:1}body.mobile-editor.mobile-nav-open .app-nav{display:flex}
 body.mobile-editor.mobile-nav-open #mobile-sheet{visibility:hidden}
 body.mobile-editor .save-error{flex-shrink:0;max-height:25dvh;overflow:auto;padding:8px 12px}
 body.mobile-editor #toast{bottom:calc(var(--mobile-toolbar-height) + 12px);z-index:80}
 body.mobile-editor dialog #toast{bottom:14px}
}
@media(max-height:520px){body.mobile-editor.mobile-sheet-open{--mobile-sheet-height:min(40dvh,calc(100dvh - 54px - var(--mobile-toolbar-height) - 130px))}body.mobile-editor #viewport{min-height:130px}body.mobile-editor .app-header{height:54px;min-height:54px}body.mobile-editor .scale{display:none}}

#viewport-status{position:absolute;top:110px;left:50%;transform:translateX(-50%);z-index:6;max-width:calc(100% - 28px);padding:9px 13px;border:1px solid #b5cdaa;border-radius:11px;background:#f8fcf3f2;color:#365c3e;font-size:12px;text-align:center;line-height:1.5;box-shadow:0 3px 18px #173b3412;pointer-events:none}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){body.mobile-editor .project-status button{font-size:13px;min-height:28px}body.mobile-editor #mobile-sheet .mesh-notice>button{min-height:44px;margin:4px 3px 0 0;font-size:12px}}
@media(max-height:520px){body.mobile-editor #viewport-status{top:80px}}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){
 body.mobile-editor .app-header{height:calc(68px + env(safe-area-inset-top));min-height:calc(68px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 body.mobile-editor .mobile-toolbar{padding-left:max(7px,env(safe-area-inset-left));padding-right:max(7px,env(safe-area-inset-right))}
 body.mobile-editor .viewtools,body.mobile-editor #selection-chip,body.mobile-editor #selection-choice{right:max(12px,env(safe-area-inset-right))}
}
@media(max-height:520px){body.mobile-editor .app-header{height:calc(54px + env(safe-area-inset-top));min-height:calc(54px + env(safe-area-inset-top))}body.mobile-editor.mobile-sheet-open{--mobile-sheet-height:min(40dvh,calc(100dvh - 54px - env(safe-area-inset-top) - var(--mobile-toolbar-height) - 130px))}}

#mobile-empty-edit{display:none;font-size:13px;line-height:1.7;color:#6d8067}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){body.mobile-editor #mobile-empty-edit{display:block}}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){body.mobile-editor:not(.mobile-sheet-open) #mobile-sheet{padding-bottom:0;overflow:hidden}body.mobile-editor:not(.mobile-sheet-open) .mobile-sheet-toggle{margin-bottom:0}}
#selection-choice button{overflow-wrap:anywhere}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){body.mobile-editor #toast{pointer-events:none}}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){body.mobile-editor #selection-choice{top:12px;max-height:calc(100% - 24px)}}

.brand-mark{width:40px;height:40px;object-fit:contain;flex-shrink:0}.boot .brand-mark{width:112px;height:112px;margin-bottom:10px}
