/* Isolated feature-flagged UI only. Does not affect Nomes/Modelos behavior. */
.primary-nav .name3d-navigation-group{position:relative;display:flex;align-items:center;gap:1px;min-width:0}
.primary-nav .name3d-nav-submenu{position:relative}
.primary-nav .name3d-nav-submenu>summary{cursor:pointer;display:grid;place-items:center;width:28px;height:29px;border-radius:8px;list-style:none;color:inherit}
.primary-nav .name3d-nav-submenu>summary::-webkit-details-marker{display:none}
.primary-nav .name3d-nav-submenu>summary:hover,.primary-nav .name3d-nav-submenu[open]>summary{background:#e3eef4;color:#07517a}
.primary-nav .name3d-nav-submenu-panel{position:absolute;top:100%;right:0;min-width:218px;z-index:99;display:grid;gap:3px;background:#fff;border:1px solid #d3e0e6;border-radius:12px;padding:8px;box-shadow:0 12px 25px rgba(11,35,46,.18)}
.primary-nav .name3d-nav-submenu-panel a{padding:9px;border-radius:8px;font-size:.82rem;white-space:nowrap}
.primary-nav a.name3d-structures-entry{font-weight:900}
.name3d-structures-wrap{max-width:100%;width:100%;box-sizing:border-box;margin-top:12px;padding:0 18px 24px}
.name3d-structures-hub .name3d-hub-links{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.name3d-structures-hub .name3d-hub-links a{display:inline-block;border:1px solid #c1d9e3;border-radius:9px;background:#fff;padding:9px 12px;color:#07517a;font-weight:850;text-decoration:none}
.structures-empty{max-width:720px;margin:8vh auto;padding:42px;border:1px solid #dce7ec;border-radius:24px;background:linear-gradient(145deg,#f8fcfd,#e9f3f7);text-align:center}
.structures-empty-icon{font-size:4rem;color:#0b729a}.structures-empty h1{color:#1b3c4a}.structures-empty>p{color:#59717c;line-height:1.55}.structures-empty-actions{display:flex;gap:10px;justify-content:center;margin:18px 0 12px;flex-wrap:wrap}.structures-empty>small{color:#718992}
.foundry-shell.name3d-unified-editor{padding:0 0 25px;max-width:none}
.name3d-unified-editor .structures-workspace-head{position:relative;padding:11px 14px 8px;border:1px solid #233b49;border-radius:14px 14px 0 0;background:#17252e;color:#eaf4f7}
.structures-workspace-mainline{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.structures-workspace-title{display:grid;gap:1px;min-width:160px}.structures-workspace-title strong{font-size:1rem;color:#fff}.structures-workspace-title small{font-size:.69rem;color:#a9c1ca}.structures-kicker{letter-spacing:.11em;font-size:.56rem;font-weight:950;color:#7fc6d6}
.structures-project-label{display:flex;align-items:center;gap:9px;color:#a9c1ca;font-size:.7rem;font-weight:800}.structures-project-label select{max-width:340px;padding:8px 12px;border:1px solid #415763;border-radius:8px;background:#263b47;color:#fff;font-size:.74rem}
.structures-workspace-actions{display:flex;gap:6px}.structures-tools-row{display:flex;gap:4px;align-items:center;flex-wrap:wrap;border-top:1px solid #2c444f;margin-top:10px;padding-top:8px}
.structures-tools-row button{border:1px solid transparent;border-radius:8px;padding:8px 11px;background:transparent;color:#bdced5;font:inherit;font-size:.72rem;font-weight:850;cursor:pointer}
.structures-tools-row button:hover,.structures-tools-row button.is-active{border-color:#4b7b8b;background:#274c5d;color:#fff}
.structures-tools-row .structures-spacer{flex:1}.structures-tools-row .structures-drawer-button{background:#263b47;color:#d3e2e7;border-color:#45616d}
.structures-mode-status{margin:7px 0 0;color:#9cb9c3;font-size:.69rem;min-height:1.25em}
.name3d-unified-editor .cad-editor-commandbar{border-radius:0;background:#f7fafb}
.name3d-unified-editor .cad-editor-workbench{min-height:min(74vh,860px);grid-template-columns:minmax(190px,220px) minmax(340px,1fr) minmax(265px,310px);border-radius:0 0 14px 14px}
.name3d-unified-editor .cad-editor-center{grid-template-rows:auto minmax(520px,1fr) auto;min-height:70vh}
.name3d-unified-editor .cad-editor-viewport{min-height:520px}
.name3d-unified-editor .cad-editor-inspector{min-height:0}
.name3d-unified-editor .structures-context-panel{padding:12px}.name3d-unified-editor .structures-context-panel[hidden]{display:none}
.name3d-unified-editor .structures-context-panel section{display:grid;gap:10px}.name3d-unified-editor .structures-context-panel section[hidden]{display:none}
.name3d-unified-editor .structures-context-panel h3{margin:4px 0;font-size:.87rem;color:#254554}
.name3d-unified-editor .structures-context-panel p{margin:0;font-size:.73rem;color:#607883;line-height:1.45}
.name3d-unified-editor .structures-context-panel a{display:block;border:1px solid #cbdce3;border-radius:8px;padding:9px;text-decoration:none;color:#0a6389;background:#fff;font-size:.75rem;font-weight:800}
.name3d-unified-editor #cad-editor-form[hidden]{display:none}
@media(max-width:1100px){.name3d-unified-editor .cad-editor-workbench{grid-template-columns:190px minmax(300px,1fr) 265px}}
@media(max-width:900px){
 .name3d-structures-wrap{padding:0 8px 18px}
 .structures-workspace-mainline{align-items:flex-start;flex-direction:column;gap:8px}.structures-project-label,.structures-project-label select{width:100%;max-width:none}
 .name3d-unified-editor .cad-editor-workbench{position:relative;display:grid;grid-template-columns:minmax(0,1fr)}
 .name3d-unified-editor .cad-editor-center{order:1;min-height:55vh}
 .name3d-unified-editor.name3d-structures-enhanced .cad-editor-outliner,.name3d-unified-editor.name3d-structures-enhanced .cad-editor-inspector{position:absolute;z-index:15;top:0;bottom:0;width:min(85vw,320px);height:100%;overflow:auto;background:#f7fbfd;box-shadow:0 10px 30px rgba(0,0,0,.24);display:none}
 .name3d-unified-editor.name3d-structures-enhanced .cad-editor-outliner{left:0}
 .name3d-unified-editor.name3d-structures-enhanced .cad-editor-inspector{right:0}
 .name3d-unified-editor.name3d-structures-enhanced .cad-editor-outliner[data-structures-open="true"],.name3d-unified-editor.name3d-structures-enhanced .cad-editor-inspector[data-structures-open="true"]{display:block}
}
@media(max-width:560px){.structures-tools-row{flex-wrap:nowrap;overflow-x:auto}.structures-tools-row button{white-space:nowrap}.name3d-unified-editor .cad-editor-viewport{min-height:420px}}
@media(prefers-reduced-motion:reduce){.name3d-unified-editor *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:800px){
  .topbar nav.primary-nav{overflow:visible;flex-wrap:wrap}
  .primary-nav .name3d-nav-submenu-panel{left:0;right:auto;min-width:min(240px,calc(100vw - 24px))}
}
.name3d-unified-editor .structures-tools-row button:focus-visible,
.primary-nav .name3d-nav-submenu>summary:focus-visible,
.name3d-unified-editor .structures-context-panel a:focus-visible{outline:2px solid #45b1da;outline-offset:2px}

/* RC4: single-canvas clay/PBR inspection, clear interaction and bounded mobile UI. */
.name3d-unified-editor #structures-clay-mode[aria-pressed="true"]{background:#d1e7eb;color:#173a48;border-color:#5b9fb1}
.name3d-unified-editor .cad-viewport-statusbar{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center}
.name3d-unified-editor #structures-render-status{font-size:.7rem;color:#68818c;white-space:normal}
.name3d-unified-editor .structures-mode[aria-pressed="true"]{outline-offset:1px}
@media(max-width:560px){
 .name3d-unified-editor .cad-editor-commandbar{display:flex;gap:9px;flex-wrap:wrap}
 .name3d-unified-editor .cad-editor-command-actions{display:flex;gap:6px;max-width:100%;flex-wrap:wrap}
 .name3d-unified-editor .cad-viewport-statusbar{padding:9px 12px}
 .name3d-unified-editor .cad-editor-center{min-width:0;width:100%}
 .name3d-unified-editor .cad-viewport-toolbar{overflow-x:auto}
}

/* RC4-D: explicit source/preview/approval boundary; no optimistic PASS UI. */
.name3d-unified-editor .structures-verification-strip{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;padding:9px 1px 2px;border-top:1px solid #2c444f;margin-top:9px;color:#d1e0e6;font-size:.72rem}
.name3d-unified-editor .structures-verification-strip span{min-width:0;overflow-wrap:anywhere}
.name3d-unified-editor #structures-draft-integrity[data-integrity="error"]{color:#ffb3a8;font-weight:800}
.name3d-unified-editor .structures-approval-status{color:#f9d7a1}
.name3d-unified-editor .structures-evidence-action{margin-left:auto;padding:7px 10px;background:#254657;color:#eef7fc;border:1px solid #537b89;border-radius:7px;font-weight:700;cursor:pointer}
.name3d-unified-editor .structures-evidence-action:focus-visible{outline:2px solid #45b1da;outline-offset:2px}
@media(max-width:700px){.name3d-unified-editor .structures-verification-strip{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;font-size:.7rem}.name3d-unified-editor .structures-evidence-action{margin-left:0;justify-self:start}}

/* RC4-E: mode carousel must not hide essential mobile viewer/drawer actions. */
.name3d-unified-editor .structures-mode-list{display:flex;gap:4px;align-items:center;min-width:0;flex-wrap:wrap}
.name3d-unified-editor .structures-tools-actions{display:flex;gap:4px;align-items:center;margin-left:auto;flex-wrap:wrap}
.name3d-unified-editor .structures-mode-swipe-hint{display:none;color:#b5d0dc;font-size:.65rem}
@media(max-width:560px){
 .name3d-unified-editor .structures-tools-row{flex-wrap:wrap;overflow:visible;gap:7px}
 .name3d-unified-editor .structures-mode-list{flex:0 0 100%;width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;scrollbar-color:#668996 #17252e;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
 .name3d-unified-editor .structures-mode-list button{flex-shrink:0;scroll-snap-align:start}
 .name3d-unified-editor .structures-tools-actions{flex:0 0 100%;width:100%;justify-content:space-between;margin-left:0}
 .name3d-unified-editor .structures-tools-actions button{flex:1;min-width:0;padding-inline:6px}
 .name3d-unified-editor .structures-mode-swipe-hint{display:block;margin:4px 0 0}
}
/* Shield controls from generic configurator rule `button{width:100%;margin-top:18px}`. */
.name3d-unified-editor .structures-tools-row button{width:auto;margin-top:0;flex:0 0 auto}
@media(max-width:560px){.name3d-unified-editor .structures-tools-actions button{flex:1 1 0;min-width:0}}
