/* Shared workspace toolbar; existing product fonts, tokens and action nodes. */
.am-header-primary,.am-header-secondary,.am-header-more-panel,.am-header-account-icon,.am-header-action-label{display:none}
#renderUnreleasedEffects[hidden],#renderAdvancedContent[hidden]{display:none!important}
#renderAdvanced .fsr-advanced-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;margin:0;min-height:44px;padding:10px;box-sizing:border-box;background:var(--mv2-panel,var(--carbon))!important;color:var(--tx-ink,var(--paper))!important;border:1px solid var(--mv2-line-strong,var(--line-2))}
#renderAdvancedToggle{accent-color:var(--codex-accent,var(--instrument));width:16px;height:16px;flex:none}
#renderAdvancedContent{padding-top:14px}
#renderAdvancedContent .metric-grid{margin-bottom:14px}
#renderAdvancedContent #renderMasks{border-bottom:0;padding-bottom:0}
@media(max-width:980px){
body.mv2.am-has-mobile-header{--mv2-appbar-h:104px!important}
body.autopark-page.am-has-mobile-header{--autopark-appbar-h:104px!important}
body.mv2.am-has-mobile-header .mv2-body{height:calc(100dvh - var(--mv2-appbar-h));min-height:0}
body.autopark-page.am-has-mobile-header .app-shell{height:calc(100dvh - var(--autopark-appbar-h));margin-top:var(--autopark-appbar-h);min-height:0}
.am-mobile-header{height:104px!important;min-height:104px!important;max-height:none!important;overflow:visible!important;padding:0!important;z-index:120!important}
.am-mobile-header>.site-header__inner{position:relative!important;display:block!important;width:100%!important;max-width:none!important;height:104px!important;padding:0 8px!important;box-sizing:border-box!important;overflow:visible!important;gap:0!important}
.am-mobile-header>.site-header__inner> :not(.am-header-primary):not(.am-header-secondary):not(.am-header-more-panel){display:none!important}
.am-mobile-header .am-header-primary,.am-mobile-header .am-header-secondary{display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-width:0;height:52px;width:100%}
.am-mobile-header .am-header-secondary{border-top:1px solid var(--mv2-line,var(--line-2));box-sizing:border-box}
.am-mobile-header .am-header-primary .logo{display:flex!important;position:static!important;flex:0 1 auto;min-width:0;max-width:145px;gap:8px;margin:0!important;padding:0!important;transform:none!important}
.am-mobile-header .logo__mark{width:26px;height:26px;flex:none}
.am-mobile-header .logo__word{display:block!important;font-size:12px!important;letter-spacing:.13em!important;white-space:nowrap}
.am-mobile-header .am-header-utilities,.am-mobile-header .am-header-edits{display:flex;align-items:center;gap:4px;flex:0 0 auto;min-width:0}
.am-mobile-header .am-header-utilities>button,.am-mobile-header .am-header-utilities>a,.am-mobile-header .am-header-edits>button{position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;flex:0 0 44px!important;border-radius:0!important;box-sizing:border-box;font-family:inherit}
.am-mobile-header .am-header-utilities>[data-header-account]{margin:0!important}
.am-mobile-header .am-header-utilities>[data-header-account]>span,.am-mobile-header .am-header-utilities>[data-theme-toggle]>span,.am-mobile-header .codex-project-tip,.am-mobile-header .project-action__tip,.am-mobile-header .codex-mode-tip{display:none!important}
.am-mobile-header .am-header-utilities svg,.am-mobile-header .am-header-edits svg{width:19px!important;height:19px!important;flex:none!important}
.am-mobile-header .am-header-account-icon{display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.am-mobile-header .am-header-more{border:1px solid var(--mv2-line-strong,var(--line-2));background:transparent;color:var(--tx-ink,var(--paper));cursor:pointer}
.am-mobile-header .am-header-more:hover,.am-mobile-header .am-header-more[aria-expanded="true"]{background:var(--codex-active,var(--graphite))}
.am-mobile-header .codex-mode-center,.am-mobile-header .autopark-mode-center{position:static!important;transform:none!important;left:auto!important;top:auto!important;display:flex!important;flex:0 0 auto;padding:0!important;margin:0!important;border-radius:0!important;min-width:0}
.am-mobile-header .canvas-mode-switch{position:static!important;transform:none!important;display:flex!important;align-items:center;gap:0!important;padding:0!important;margin:0!important}
.am-mobile-header .canvas-mode-btn,.am-mobile-header .mode-button{min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;box-sizing:border-box!important;font-size:11px!important;border-radius:0!important}
.am-mobile-header .canvas-mode-sep{display:none!important}
.am-mobile-header .am-header-more-panel:not([hidden]){position:absolute;display:grid!important;top:50px;right:8px;width:min(300px,calc(100vw - 16px));max-height:calc(100dvh - 64px);overflow-y:auto;overscroll-behavior:contain;z-index:200;padding:6px;border:1px solid var(--mv2-line-strong,var(--line-2));background:var(--mv2-panel,var(--carbon));color:var(--tx-ink,var(--paper));box-shadow:0 10px 28px rgba(0,0,0,.22);box-sizing:border-box}
.am-mobile-header .am-header-more-panel[hidden]{display:none!important}
.am-mobile-header .am-header-more-panel>button{display:flex!important;align-items:center;justify-content:flex-start!important;gap:12px;width:100%!important;min-width:0!important;height:auto!important;min-height:44px!important;padding:10px 12px!important;margin:0!important;flex:none!important;border:0!important;border-radius:0!important;background:transparent;color:inherit;font:500 13px/1.4 var(--f-display);text-transform:none!important;letter-spacing:normal!important;text-align:left;white-space:normal}
.am-mobile-header .am-header-more-panel>button:hover:not(:disabled){background:var(--codex-active,var(--graphite))}
.am-mobile-header .am-header-more-panel>button svg{width:18px;height:18px;flex:none}
.am-mobile-header .am-header-more-panel>button>span{display:none!important}
.am-mobile-header .am-header-more-panel>button>.am-header-action-label{display:block!important;position:static!important;transform:none!important;opacity:1!important;visibility:visible!important;background:none!important;padding:0!important;white-space:normal!important;color:inherit!important;font:inherit!important}
.am-mobile-header button:focus-visible,.am-mobile-header a:focus-visible{outline:2px solid var(--codex-accent,var(--instrument));outline-offset:-3px}
}



/* Compact view tabs share one visual rhythm with the edit/save controls. */
@media(max-width:980px){
.am-mobile-header .canvas-mode-btn,.am-mobile-header .mode-button{height:32px!important;min-height:32px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.am-mobile-header .am-header-more-panel>button,.am-mobile-header .am-header-more-panel>#fdaHeaderBtn{font:500 13px/1.4 var(--f-display)!important;letter-spacing:normal!important;text-transform:none!important;color:var(--tx-ink,var(--paper))!important;opacity:1!important}
.am-mobile-header .am-header-more-panel>button>svg{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;flex:0 0 18px!important;margin:0!important;opacity:1!important;stroke-width:1.8!important}
.am-mobile-header .am-header-more-panel>button>.am-header-action-label{font:500 13px/1.4 var(--f-display)!important;letter-spacing:normal!important;text-transform:none!important}
}
/* AutoPark's rail width now controls the actual grid column, with stable text. */
body.autopark-page .app-shell{--autopark-inspector-w:min(var(--fsi-rail-right-w,253px),calc(100vw - 56px))!important;--fsi-rail-right-scale:1!important}
body.autopark-page .inspector-content{zoom:1!important;min-width:0}
body.autopark-page .fsi-rail-resizer{touch-action:none}

/* Reserve a separate slot for Pan in Massing's positioned tool rail. */
html body.mv2 .mv2-viewer{--am-rail-top:10px}
html body.mv2 .mv2-viewer #amPanBtn{top:calc(var(--am-rail-top) + 1 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #amSelectBtn{top:calc(var(--am-rail-top) + 2 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #amMoveBtn{top:calc(var(--am-rail-top) + 3 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #amRotateBtn{top:calc(var(--am-rail-top) + 4 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #dimensionsToggleBtn{top:calc(var(--am-rail-top) + 5 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #measureToggleBtn{top:calc(var(--am-rail-top) + 6 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #measureDeleteBtn{top:calc(var(--am-rail-top) + 6 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #mv2FullscreenBtn{top:calc(var(--am-rail-top) + 7 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #globalSnapToggleBtn{top:calc(var(--am-rail-top) + 8 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #gridToggleBtn{top:calc(var(--am-rail-top) + 9 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #blueprintToggleBtn{top:calc(var(--am-rail-top) + 10 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #zoomControlBtn{top:calc(var(--am-rail-top) + 11 * var(--fsi-pitch))!important}
html body.mv2 .mv2-viewer #amPanBtn{z-index:104}
html body.mv2 .mv2-viewer #apartmentLibraryBtn{top:calc(var(--am-rail-top) + 12 * var(--fsi-pitch))}
html body.mv2 .mv2-viewer .basement-extend-btn{top:calc(var(--am-rail-top) + 12 * var(--fsi-pitch) + 13px)!important}
@media(max-height:620px){html body.mv2 .mv2-viewer{--am-rail-top:8px}}

/* The collapsed rail must fit inside its own border at every viewport width. */
body.autopark-page .side-panel.is-collapsed{grid-template-columns:minmax(0,1fr)!important}
body.autopark-page .side-panel.is-collapsed .inspector-tabs{width:100%!important;min-width:0;max-width:100%;justify-self:stretch}
body.autopark-page .inspector-tabs .inspector-tab{width:100%!important;max-width:100%;box-sizing:border-box}
