/* Product workspace: same warm paper, cobalt accents and typography as the website. */
:root{--bg:#f3f4ee;--panel:#fcfcf8;--panel-soft:#f7f7f2;--text:#202b25;--muted:#788178;--line:#dce1d6;--line-strong:#bac5b7;--accent:#335bff;--accent-soft:#e9eeff;--shadow:0 7px 24px #2639250b}
body{font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}.app-shell{grid-template-rows:78px 1fr}.topbar{display:grid;grid-template-columns:minmax(205px,1fr) auto minmax(255px,1fr);grid-template-rows:none;gap:20px;padding:0 25px;background:#f7f7f2;backdrop-filter:none}.brand{grid-column:auto;grid-row:auto}.brand-mark,.brand-mark img{width:34px;height:34px}.brand-copy>strong{font-size:25px;letter-spacing:-1px}.brand-copy .project-switcher{margin-top:4px}.project-switcher #projectNameTop{font-size:11px;font-weight:400;color:#73806e;max-width:205px}.stage-tabs{grid-row:auto;grid-column:auto;justify-self:center;background:transparent;border:0;border-radius:0;gap:3px;padding:0;margin:0;height:100%;box-shadow:none}.stage-tab{height:100%;font-size:12px;font-weight:500;padding:0 13px;border-radius:0;position:relative;white-space:nowrap}.stage-tab.active{background:transparent;color:#244de9;box-shadow:none}.stage-tab.active:after{position:absolute;bottom:0;left:13px;right:13px;content:'';height:2px;background:#335bff}.stage-tab.ai-tab{margin-left:9px;color:#30544a}.ai-tab b{font-weight:400;color:#335bff;margin-left:5px}.top-actions{grid-column:auto;grid-row:auto;gap:6px}.top-actions .icon-btn{background:none;border:0;color:#586a59;font-size:20px;width:30px}.top-actions>.btn{font-size:12px;padding:0 15px;height:37px}.top-actions>.btn.primary{background:#28392d;border-color:#28392d}.top-actions .separator{display:none}.workspace-file-menu{position:relative;font-size:12px}.workspace-file-menu summary{list-style:none;cursor:pointer;padding:11px 12px;white-space:nowrap}.workspace-file-menu summary::-webkit-details-marker{display:none}.workspace-file-menu summary span{margin-left:7px;color:#8a9684}.workspace-menu{position:absolute;top:44px;right:0;width:210px;padding:6px;background:#fcfcf8;border:1px solid var(--line);box-shadow:0 12px 35px #22371f1f;border-radius:5px;display:flex;flex-direction:column;z-index:160;gap:2px}.workspace-menu .btn.ghost{display:flex!important;justify-content:flex-start;font-size:12px!important;border:0;background:transparent;height:37px;padding-inline:12px;text-decoration:none}.workspace-menu .btn:hover{background:#edf1e6}.stage-host{margin:0}.canvas-wrap{background:#f3f4ee}.canvas-wrap:after{box-shadow:none}.sheet{fill:#f7f8f2;stroke:#dfe5d8}.grid-small{stroke:#e5eadd;stroke-width:.6}.grid-large{stroke:#d8e0d1;stroke-width:.8}.wall-base{stroke:#6e796e}.wall-inner{stroke:#f0f2e9}.wall-accent{stroke:#83957d;opacity:.4}.door-line{stroke:#7f8d80}.door-arc{stroke:#a7b3a0}.object rect.object-body{stroke:#52604b;stroke-width:1.5}.object text{font-weight:500}.toolrail{background:#f7f7f2;border-right:1px solid #dce2d4;padding:18px 10px;gap:7px;overflow-y:auto}.tool{border-radius:4px;min-height:55px;color:#6d7a68;padding:6px 4px;gap:5px}.tool svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.tool span{font-size:9px;font-weight:400}.tool.active{background:#e8eee0;color:#405b35}.tool:hover{background:#edf1e6;color:#354e30}.ai-tool{background:#eaf0ff!important;color:#335bff!important}.rail-spacer{min-height:12px;max-height:25px}.canvas-status{top:20px;left:22px;gap:8px}.canvas-status span{background:#f9faf4c9;box-shadow:none;border-color:#dbe2d4;border-radius:4px;font-size:10px;padding:7px 9px}.canvas-status #baseWallBadge{display:none}.canvas-status #baseScaleBadge{color:#67765e;background:#f3f6ed}.view-dock{border-radius:5px;background:#fbfcf7e8;border:1px solid #d6dfce;box-shadow:0 5px 15px #253e2208;bottom:22px}.view-dock button{color:#53644c;border-radius:3px}.view-dock span{font-size:11px}.inspector{background:#fcfcf8;border-left:1px solid #dce1d6;box-shadow:none}.inspector-head{padding:24px 22px;border-bottom:1px solid #e2e7db}.inspector-head .eyebrow{font-size:9px;letter-spacing:.13em;color:#89947e;font-weight:500}.inspector-head h2{font-size:21px;letter-spacing:-.6px;font-weight:500;margin-top:7px}.inspector-body{padding:22px}.section-title{font-size:10px;font-weight:500;color:#87947b;letter-spacing:.08em;margin-top:23px;padding-top:21px}.field{gap:8px;margin-bottom:15px}.field>span{font-size:11px;font-weight:400;color:#65765c}.field input,.field select,.field textarea{border-radius:4px;background:#fff;border-color:#dce3d4;font-size:13px;font-weight:400}.field input,.field select{height:40px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#8ba1e8;box-shadow:none}.field-grid{gap:12px}.unit-input em{font-size:10px}.switch-row{padding-block:11px;font-size:12px;color:#66745f}.switch-row input:checked+i{background:#56764c}.hint,.muted{font-size:10px;line-height:1.7;color:#8b9482}.btn,.icon-btn{border-radius:4px}.inspector .btn{font-size:12px;height:39px}.base-inspector .section-title{margin-top:24px}.btn.primary{background:#335bff;border-color:#335bff}.save-state{border:0;background:#f9faf2d9;font-size:10px;padding:7px 11px;color:#849079;bottom:10px;right:13px}.inventory-shell{max-width:1300px;padding:46px 38px}.inventory-title h1{font-size:36px;letter-spacing:-1.5px;font-weight:500;color:#25352a}.inventory-title p{font-size:13px;color:#829075;line-height:1.6}.inventory-toolbar{background:transparent;border:0;border-radius:0;padding:0 0 24px;margin-top:30px;border-bottom:1px solid var(--line);box-shadow:none}.inv-card{border-color:#d9e0d0;background:#fcfcf8;border-radius:5px;padding:18px;box-shadow:none}.inv-title strong{font-size:15px;font-weight:500}.inv-fields input,.inv-fields select{font-size:12px;border-radius:4px}.inv-meta span{font-size:10px}.inv-fields label{font-size:10px}.tour-topbar{top:18px;left:22px;right:22px;background:#fcfcf4eb;border-color:#d7e0ce;border-radius:5px;backdrop-filter:blur(10px);box-shadow:0 8px 25px #253e2208;padding:12px 15px;gap:8px}.tour-topbar small{display:none}.tour-topbar>div:first-child{min-width:90px}.tour-topbar strong{font-size:13px;font-weight:500}.tour-topbar .btn{height:33px;font-size:11px}.segmented{border:1px solid #dce2d5;background:#edf1e7;border-radius:4px}.segmented button{font-size:11px}.segmented button.active{background:#fff;box-shadow:none}.tour-help{background:#fcfcf2db;border:1px solid #dde4d4;border-radius:5px;box-shadow:none;color:#64755a}.tour-help span{font-size:10px}.tour-help strong{font-weight:500}.tour-minimap{background:#fcfcf6e6;border:1px solid #dae3d0;box-shadow:none;border-radius:5px;width:210px}.tour-drive-pad button{border-radius:4px!important}.tour-object-card{border-radius:5px;background:#fcfcf8;border-color:#d9e2d1}.tour-object-card h3{font-size:20px;font-weight:500;letter-spacing:-.6px}.ai-workspace{overflow:auto;padding:44px max(35px,calc((100% - 1250px)/2));background:#f7f7f2}.ai-workspace-heading{display:flex;align-items:end;justify-content:space-between;gap:70px;margin-bottom:31px}.ai-workspace-heading .eyebrow{color:#335bff;letter-spacing:.12em;font-size:10px;margin:0 0 17px}.ai-workspace h1{font-size:36px;letter-spacing:-1.2px;line-height:1.09;font-weight:500;margin:0}.ai-workspace-heading>p{max-width:260px;font-size:13px;line-height:1.7;color:#7b8871;margin:0}.custom-object-entry{display:flex;align-items:center;gap:24px;margin-top:30px;padding-block:22px;border-top:1px solid #dce2d4}.custom-object-entry strong{font-size:14px;font-weight:500}.custom-object-entry p{font-size:11px;color:#7b8871;margin:8px 0 0}.custom-object-entry a{margin-left:auto;font-size:12px;color:#526b43;white-space:nowrap}.custom-object-entry button{font-size:12px}.dialog-card,.project-dialog-card{background:#fcfcf8;border-radius:6px;padding:26px}.dialog-head h2,.project-dialog-head h2{font-size:25px;letter-spacing:-.8px;font-weight:500}.object-library-card{border-radius:4px;box-shadow:none;background:#f5f7ed}.object-library-block{background:#f7f9f0}.setup-dialog{border-radius:6px}.setup-heading h2{font-weight:500}.embed-mode .tour-topbar,.embed-mode .tour-help,.embed-mode .tour-minimap,.embed-mode .tour-drive-pad,.embed-mode .tour-object-card{display:none!important}
@media(min-width:851px){#stage-base.active,#stage-plan.active{grid-template-columns:79px minmax(0,1fr) 310px}.mobile-controls{display:none}.top-actions .btn.ghost{display:flex}}
@media(min-width:851px) and (max-width:1180px){.app-shell{grid-template-rows:118px 1fr}.topbar{grid-template-columns:1fr auto;grid-template-rows:68px 49px;gap:0 20px;padding:0 22px}.stage-tabs{grid-column:1/-1;grid-row:2}.brand{grid-column:1;grid-row:1}.top-actions{grid-column:2;grid-row:1}.stage-tab{padding:0 22px}.stage-tab.active:after{left:22px;right:22px}.ai-workspace{padding:35px 25px}}
@media(max-width:850px){.app-shell{grid-template-rows:70px 1fr}.topbar{display:flex;gap:8px;padding:0 12px;height:70px}.brand-copy>strong{font-size:23px}.brand-mark,.brand-mark img{width:30px;height:30px}.project-switcher #projectNameTop{max-width:165px;font-size:10px}.mobile-controls{display:flex}.mobile-controls button{background:#f9faf3;border-color:#d5dfcc}.top-actions{display:none}.top-actions.mobile-open{top:70px;background:#fcfcf7;padding:12px}.workspace-menu{left:0;right:auto}.stage-tabs{position:fixed;left:0;right:0;top:auto;bottom:0;transform:none;height:57px;display:grid;grid-template-columns:repeat(5,1fr);padding:0 4px;gap:0;background:#fbfcf6f5;border-top:1px solid #d9e2cf;z-index:100;backdrop-filter:blur(10px);width:100%;margin:0}.stage-tab{font-size:10px;padding:0 5px;height:56px}.stage-tab.ai-tab{margin:0}.ai-tab b{display:none}.stage-tab.active:after{bottom:auto;top:0;left:12px;right:12px}.stage-host{margin-bottom:57px}.toolrail{padding:5px 3px;top:49px;left:7px;bottom:70px;width:49px;border-radius:4px}.tool{min-height:46px;padding:4px 2px;gap:3px}.tool svg{width:19px;height:19px}.tool span{font-size:7px}.canvas-status{left:8px;top:9px}.canvas-status span{font-size:9px;padding:6px 8px}.inspector{top:49px;bottom:10px;right:8px;max-width:calc(100vw - 70px)}.inspector-head{padding:17px}.inspector-body{padding:17px}.inspector-head h2{font-size:19px}.show-properties .stage.active .inspector{display:block}.view-dock{bottom:16px}.save-state{bottom:66px;font-size:9px}.ai-workspace{padding:30px 14px 25px}.ai-workspace-heading{display:block;margin-bottom:23px}.ai-workspace h1{font-size:30px}.ai-workspace-heading>p{font-size:12px;margin-top:17px;max-width:100%}.custom-object-entry{flex-wrap:wrap;gap:17px;margin-top:20px}.custom-object-entry>div{width:100%}.custom-object-entry a{margin:0}.custom-object-entry .btn{font-size:11px}.inventory-shell{padding:30px 16px}.inventory-title h1{font-size:29px}.inventory-title p{font-size:12px}.inv-card{padding:16px}.tour-topbar{top:9px;left:8px;right:8px;padding:8px;gap:5px}.tour-topbar>div:first-child{display:none}.tour-topbar .btn{font-size:9px;height:29px;padding:0 7px}.segmented button{font-size:9px}.tour-minimap{width:135px!important}.tour-help{bottom:10px;left:8px;max-width:65%}}

.embed-mode.embed-interactive .tour-drive-pad{display:grid!important}body[data-stage=ai] #mobile-properties,body[data-stage=inventory] #mobile-properties{display:none}

/* Visual inventory: one object, one clear action. */
.inventory-shell{max-width:1400px;padding:46px 48px 70px}.inventory-head{margin-bottom:30px;align-items:end}.inventory-head h1{font-size:36px;letter-spacing:-1.3px;font-weight:500;margin:10px 0 0}.inventory-head .eyebrow{color:#6b766b}.inventory-progress{display:flex;align-items:baseline;gap:6px;background:none;border:0;padding:0;color:#788073}.inventory-progress strong{font-size:14px;font-weight:400}.inventory-progress span{font-size:12px}.inventory-toolbar{padding:0 0 26px;border:0;background:none;gap:14px;box-shadow:none}.inventory-toolbar .search-box{max-width:340px;background:#fff;border:1px solid #dce0d8;height:42px;padding:0 12px;gap:9px;border-radius:4px}.inventory-toolbar .search-box svg{width:17px;height:17px;fill:none;stroke:#7d867c;stroke-width:1.5}.inventory-toolbar input{font-size:13px}.inventory-toolbar>.btn{margin-left:auto;height:42px;font-size:12px;background:#29372e;border-color:#29372e}.inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:26px 20px;align-items:start}.inventory-grid>.inv-card{display:block;text-align:left;padding:0;border:0;border-radius:5px;overflow:hidden;background:none;box-shadow:none;cursor:pointer;width:100%;color:#29312b;font-family:inherit;transition:transform .18s}.inv-card:hover{transform:translateY(-3px)}.inv-card:focus-visible{outline:2px solid #335bff;outline-offset:4px}.inv-card .inv-preview{width:100%;height:auto;aspect-ratio:1.4;display:block;background:#eeefe7;border:1px solid #e0e3da;border-radius:5px;overflow:hidden}.inv-preview svg{width:100%;height:100%;display:block}.inv-card .inv-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 1px 3px}.inv-card .inv-title strong{font-size:14px;line-height:1.45;font-weight:500;white-space:normal}.inv-title>span{color:#8b9387;font-size:14px}.inventory-empty{grid-column:1/-1;padding:65px 20px;text-align:center;color:#798170}.inventory-empty button{display:block;margin:20px auto 0}.catalog-object-grid,.object-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.catalog-object,.object-library-card{display:flex;flex-direction:column;padding:0 0 12px;background:#f2f3ec;border:1px solid #e0e3d9;border-radius:4px;color:#27312a;cursor:pointer;font-family:inherit;text-align:left;overflow:hidden;gap:0}.catalog-object svg,.object-library-card svg{width:100%;height:125px;display:block}.catalog-object span,.object-library-card strong{font-size:12px;line-height:1.4;padding:0 12px;font-weight:500}.catalog-object:hover,.object-library-card:hover{background:#e9eddf;border-color:#b1bba4}.object-library-block{padding:0;border:0;background:none;margin-top:25px}.object-library-block:has(.object-library-grid:empty){display:none}.object-library-head{margin-bottom:12px}.custom-object-form{margin-top:25px;border-top:1px solid #dce0d5;padding-top:20px}.custom-object-form summary{cursor:pointer;font-size:13px;margin-bottom:18px}.custom-object-form .field{margin-top:14px}#newObjectDialog{max-width:730px;width:calc(100vw - 30px)}#newObjectDialog .dialog-card{width:auto;max-width:none}.template-options{grid-template-columns:repeat(3,1fr)}
@media(max-width:850px){.inventory-shell{padding:25px 16px 30px}.inventory-head h1{font-size:29px}.inventory-head{gap:10px;margin-bottom:24px}.inventory-toolbar{gap:10px;flex-wrap:wrap;padding-bottom:22px}.inventory-toolbar .search-box{max-width:none;min-width:0;flex:1}.inventory-toolbar>.btn{font-size:11px;padding-inline:10px;white-space:nowrap}.inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.inv-card .inv-title strong{font-size:12px}.catalog-object-grid,.object-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-object svg,.object-library-card svg{height:110px}}

#stage-inventory{background:#f7f7f2}.inventory-progress{min-width:0;min-height:0;box-shadow:none;backdrop-filter:none;flex-direction:row;justify-content:flex-end;border-radius:0}.inventory-progress span{text-transform:none;letter-spacing:0}.inventory-progress:before,.inventory-progress:after{display:none}

.inventory-progress{width:auto;height:auto}.inv-preview:after{display:none}.inv-card:hover{box-shadow:none}.inventory-toolbar{backdrop-filter:none;position:static;margin:0 0 10px}

/* Standalone editor shell. Navigation and projects take priority over branding. */
:root{--bg:#f5f5f5;--panel:#fff;--panel-soft:#fafafa;--text:#232323;--muted:#757575;--line:#e5e5e5;--line-strong:#c8c8c8}
.app-shell{grid-template-rows:64px 1fr}.topbar{padding:0 20px;background:#fff;border-bottom:1px solid #e5e5e5;gap:16px}.brand{gap:10px}.brand-mark,.brand-mark img{width:26px;height:26px}.brand-copy>strong{font-size:13px;font-weight:500;letter-spacing:-.2px;color:#666}.editor-badge{font-size:10px;font-weight:400;border-left:1px solid #ddd;padding-left:8px;margin-left:7px;color:#888}.brand-copy .project-switcher{margin-top:3px}.project-switcher #projectNameTop{font-size:14px;color:#222;max-width:230px;font-weight:500}.stage-tab{font-size:12px;padding-inline:12px}.stage-tab.ai-tab{color:#444;margin-left:0}.top-actions>.btn.primary{background:#292929;border-color:#292929}.toolrail,.inspector{background:#fff;border-color:#e5e5e5}.canvas-wrap{background:#f7f7f7}.sheet{fill:#fafafa;stroke:#e7e7e7}.grid-small{stroke:#ededed}.grid-large{stroke:#ddd}.tool{color:#6b6b6b}.tool.active{background:#ededed;color:#222}.tool:hover{background:#f4f4f4;color:#222}.inspector-head{border-color:#e8e8e8}.field>span,.section-title{color:#737373}.field input,.field select,.field textarea{border-color:#dedede}.inventory-shell,.ai-workspace,#stage-inventory{background:#fafafa}.inventory-head h1,.ai-workspace h1{font-size:28px;letter-spacing:-.8px}.ai-workspace-heading{margin-bottom:24px}.ai-workspace{padding-top:32px}.tour-topbar{background:#fffffff0;border-color:#e1e1e1;backdrop-filter:none}.tour-help,.tour-minimap{background:#ffffffed;border-color:#e5e5e5;backdrop-filter:none}.tour-help{max-width:calc(100% - 260px)}.tour-drive-pad button{font-family:inherit;cursor:pointer;touch-action:none}.tour-drive-pad .active{background:#e7ecff;border-color:#335bff}.workspace-menu{background:#fff;border-color:#e5e5e5}.workspace-menu .btn:hover{background:#f4f4f4}.save-state{background:#ffffffda;color:#777}
@media(min-width:851px) and (max-width:1180px){.app-shell{grid-template-rows:104px 1fr}.topbar{grid-template-rows:58px 45px}}
@media(max-width:850px){.app-shell{grid-template-rows:60px 1fr}.topbar{height:60px;padding:0 12px}.brand-copy>strong{font-size:12px}.project-switcher #projectNameTop{font-size:12px;max-width:170px}.brand-mark,.brand-mark img{width:24px;height:24px}.editor-badge{font-size:9px}.top-actions.mobile-open{top:60px;background:#fff}.stage-tabs{background:#fffffff2;border-color:#e5e5e5}.stage-tab{font-size:10px;padding-inline:4px}.tour-topbar{flex-wrap:wrap;justify-content:flex-start}.tour-help{max-width:calc(100% - 160px);bottom:12px}.tour-help span{font-size:9px}.inventory-head h1{font-size:26px}.mobile-controls button{background:#fff;border-color:#ddd}}
[hidden]{display:none!important}.brand-copy .editor-badge{display:inline}.brand-copy>strong{display:block}.brand-copy #projectNameTop{font-size:13px;color:#262626}.tour-drive-pad{bottom:80px!important}.tour-drive-pad .drive-key{background:#fffffff0;color:#444;border:1px solid #d5d5d5;backdrop-filter:none}.tour-drive-pad .drive-key.active{background:#e8edff;color:#244de9;border-color:#839cff}

.brand .project-switcher #projectNameTop{font-size:13px!important;color:#252525!important;font-weight:500}.brand .brand-mark{display:grid;margin:0;overflow:visible}.editor-badge{vertical-align:baseline}
@media(max-width:850px){.brand .project-switcher #projectNameTop{font-size:12px!important}.tour-drive-pad{left:8px!important;right:auto!important;bottom:90px!important;transform-origin:bottom left}.tour-minimap{bottom:14px!important}.tour-help{max-width:calc(100% - 160px)}}
