.studio-nav{display:flex;gap:8px;padding:9px 20px;background:#edf1e8;border-bottom:1px solid #d2dacb}.workspace{height:calc(100vh - 120px)}.studio-dialog{width:min(1000px,95vw);max-height:90vh;border:1px solid #d2dacb;border-radius:16px;padding:24px}.studio-dialog::backdrop{background:#17231799}.studio-content{padding-top:16px}.studio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:16px}.studio-grid article{border:1px solid #d2dacb;padding:12px;border-radius:12px;display:flex;flex-direction:column;gap:8px}.studio-grid img{width:100%;height:170px;object-fit:contain;background:#f2f3f0}.studio-grid article div{display:flex;gap:5px;flex-wrap:wrap}#packageOverlay{position:fixed;inset:0;z-index:100;background:#f4f5f0;display:flex;flex-direction:column}#packageOverlay[hidden]{display:none}.package-bar{padding:10px 20px;display:flex;justify-content:space-between;align-items:center;background:#edf1e8;border-bottom:1px solid #ccd5c3}#packageOverlay iframe{width:100%;flex:1;border:0}.studio-dialog .server-record{gap:8px;padding:12px;border-bottom:1px solid #ddd}.studio-dialog .server-record span{flex:1}@media(max-width:700px){.studio-nav{padding:8px;flex-wrap:wrap}.workspace{height:auto}.studio-dialog{padding:14px}}
/* Sidebar tabs replace the lower placement strip. */
.sidebar-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:none;padding:4px;background:#f0f3ed;border-radius:9px;margin-bottom:16px}.sidebar-tabs button{border:0;background:transparent;padding:10px 4px;font-size:13px;border-radius:6px;white-space:nowrap;color:#687466}.sidebar-tabs button[aria-selected=true]{background:#fff;color:#263d17;box-shadow:0 1px 5px #29351d18}.sidebar-tabs span{display:inline-block;min-width:19px;padding:1px 4px;margin-left:3px;border-radius:4px;background:#e7eedf;font-size:11px}#catalogPanel{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}#catalogPanel>.section-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.products #groupsPanel{flex:1;min-height:0;border:0;background:transparent;padding:0;display:flex;flex-direction:column}.products #groupsPanel .section-head{display:block;margin:0 0 12px}.products #groupsPanel h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.products #groupsPanel #groupSearch{width:100%;max-width:none;margin:0;padding:10px 11px}.products #groupList{flex:1;display:flex;flex-direction:column;flex-wrap:nowrap;overflow:auto;min-height:0;max-height:none;gap:7px;align-content:start}.products .group-chip{flex:none;width:100%;padding:12px 9px;border-radius:8px;background:#f7f8fa;border-color:transparent}.products .group-chip.active{background:#f0f7e7;border-color:#86aa53;box-shadow:inset 3px 0 #85aa4f}.products .group-chip img{width:29px;height:38px}.products .group-chip span{min-width:0;overflow-wrap:anywhere}.products .group-chip small{line-height:1.5;font-size:11px}#scene .selection-overlay{pointer-events:none}#scene.realistic .selection-outline{opacity:1!important;stroke-opacity:1!important}#scene.realistic .selection-halo{stroke-opacity:.85!important}.package-loading{padding:20px;text-align:center;color:#66735f}.package-bar{flex:0 0 auto;min-height:56px}#packageOverlay iframe{display:block;flex:1 1 0;min-height:0;height:0}body.package-open{overflow:hidden}
@media(min-width:851px){body{display:flex;flex-direction:column;height:100dvh}header,.studio-nav{flex:0 0 auto}.workspace{flex:1 1 0;height:auto;min-height:0;width:100%}.products{height:100%;min-height:0}.studio-nav{padding:8px 16px;align-items:center}.studio-nav button{font-size:13px;padding:8px 12px}.workspace main{min-height:0}#viewport{flex:1 1 0;min-height:0}.canvas-toolbar{gap:8px}}
@media(max-width:850px){.products{height:330px;min-height:230px;max-height:45dvh}.sidebar-tabs{margin-bottom:10px}.products #groupsPanel{max-height:none}.workspace main{height:auto}#viewport{height:54dvh;min-height:320px}.package-bar{gap:12px;padding:8px 12px;font-size:13px}.package-bar button{font-size:12px}.canvas-toolbar>div{gap:7px}}

/* One shared header for both workspaces. */
body>header{position:relative;z-index:101;min-height:72px;height:auto;padding:12px 20px;gap:20px;flex-wrap:wrap;background:#fff;border-bottom:1px solid #dde3da}
body>header .brand{flex-shrink:0}body>header .brand strong{font-size:17px}body>header .brandmark{width:32px;height:32px;object-fit:contain}
.workspace-switch{display:flex;gap:4px;padding:4px;background:#f0f3ee;border-radius:10px;flex-shrink:0}.workspace-switch button{border:0;background:transparent;padding:9px 20px;white-space:nowrap;color:#697367}.workspace-switch button[aria-current=page]{background:#fff;color:#294f40;box-shadow:0 1px 4px #182c1517;font-weight:700}
body>header .event-picker{margin-left:auto}body>header .file-actions{gap:6px;flex-wrap:wrap}body>header button{font-size:12px}body>header .header-library{order:1}
#packageOverlay{position:relative;inset:auto;flex:1 1 0;min-height:0;width:100%;z-index:1}#packageOverlay[hidden]{display:none!important}
body.package-open>.workspace{display:none}body.package-open>header .event-picker,body.package-open>header .file-actions{display:none}body.package-open>header .header-library{margin-left:auto}
@media(max-width:1100px){body>header{gap:10px;padding:10px 14px}body>header .file-actions{margin-left:auto}body>header .event-picker{margin-left:0}.workspace-switch button{padding:8px 14px}}
@media(max-width:850px){body.package-open{height:100dvh;display:flex;flex-direction:column}body>header .brand .studio,body>header .brand-divider{display:none}.workspace-switch{margin-left:auto}body>header .header-library{margin-left:0}body>header .file-actions{width:100%;margin-left:0}#packageOverlay iframe{width:100%}}

body>header .brand strong,body>header .brand .studio{color:#263b31}body>header .brand-divider{color:#879187}

/* Shared action row: no editor-specific second header. */
body>header .header-library{order:0;margin-left:0}body.package-open>header .header-library{margin-left:0}
.mockup-actions{display:none;align-items:center;gap:6px;margin-left:auto}body.package-open .mockup-actions{display:flex}body>header .mockup-actions button{font:inherit;font-size:12px}
body>header .file-actions{margin-left:0}body>header .event-picker{margin-left:auto}
@media(max-width:1100px){body>header .file-actions{margin-left:auto}.mockup-actions{flex-wrap:wrap}}
@media(max-width:850px){body.package-open .mockup-actions{width:100%;margin-left:0}.workspace-switch{margin-left:0}body>header .header-library{margin-left:auto}body.package-open>header .header-library{margin-left:auto}}

.catalog-bulk{display:flex;gap:5px;align-items:center;margin:8px 0}.catalog-bulk select{min-width:0;flex:1;padding:7px;margin:0}.catalog-bulk button{font-size:11px;padding:7px;white-space:nowrap}

.server-project-info{display:flex;flex-direction:column;gap:6px}.server-project-info strong{font-size:14px}.server-project-info time{color:#758078;font-size:12px}.is-saving{display:inline-flex;align-items:center;justify-content:center;gap:8px}.is-saving::before{content:'';width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:studio-spin .7s linear infinite}@keyframes studio-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.is-saving::before{animation-duration:1.8s}}

.asset-loading{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:200;display:flex;align-items:center;gap:10px;background:#243a30;color:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 4px 20px #0002;font-size:13px;pointer-events:none}.asset-loading::before{content:'';width:14px;height:14px;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:studio-spin .8s linear infinite}.asset-loading[hidden]{display:none}

.legacy-server-history{border-top:1px solid #dce3db;margin-top:22px;padding-top:18px}.legacy-server-history h3{font-size:15px;margin-bottom:16px}.legacy-server-history h4{font-size:13px;margin:16px 0 8px}

.server-save-group{display:flex;gap:2px;position:relative}.server-save-menu{position:relative}.server-save-menu>summary{list-style:none;cursor:pointer;border-radius:5px;background:#252e36;color:white;padding:11px 7px;height:100%;display:flex;align-items:center}.server-save-menu>summary::-webkit-details-marker{display:none}.server-save-menu>button{position:absolute;top:calc(100% + 6px);left:0;z-index:110;white-space:nowrap;box-shadow:0 5px 18px #0002}
#scene.realistic .selection-overlay polygon{fill-opacity:1!important;stroke-opacity:1!important}#bannerFields label{display:block;margin-top:12px}#miscPanel .misc-card{line-height:1.6}#bannerFields select{width:100%}
#objectPlacementFields,#bentoFields{margin:15px 0;padding:12px;background:#f4f7ef;border:1px solid #dce5d1;border-radius:8px}#objectPlacementFields label,#bentoFields label{display:block;margin:9px 0}#objectPlacementFields select,#objectPlacementFields input,#bentoFields input{width:100%}#objectQuantity{font-weight:650;font-size:13px}.admin-storage-menu{position:relative;white-space:nowrap}.admin-storage-menu summary{cursor:pointer;padding:11px 12px;border:1px solid #b2bba9;border-radius:7px;font-size:12px;list-style:none;color:#435137;background:#f7faf3}.admin-storage-menu[open]{z-index:30}.admin-storage-menu>button{display:block;position:absolute;right:0;top:100%;width:160px;background:#fff!important;color:#25321f!important;border:1px solid #d5ddce!important;box-shadow:0 6px 14px #26302018}.admin-storage-menu>button+button{top:calc(100% + 42px)}

.studio-grid .mockup-saved-time{font-size:11px;line-height:1.5;color:var(--muted,#687482);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
