/* Shared navigation chrome; demo content keeps its own typography and layout. */
body:not(.editor-mode) .masthead.site-masthead .header{height:43px;min-height:43px;padding-block:2px;gap:12px}
body:not(.editor-mode) .masthead.site-masthead .header .brand{flex-basis:130px;min-width:0}
body:not(.editor-mode) .masthead.site-masthead .header .brand img{width:130px;max-height:37px}
body:not(.editor-mode) .masthead.site-masthead .header .compact{min-height:28px;padding:4px 9px;font-size:11px}
body:not(.editor-mode) .masthead.site-masthead .site-main-nav a{min-height:28px;padding:4px 7px;font-size:11px}
body:not(.editor-mode) .brand-home-label{font-size:7px;right:3px;bottom:1px;gap:2px}
body:not(.editor-mode) .brand-home-label i{width:4px;height:4px}
body:not(.editor-mode) .masthead.site-masthead .header>.showcase-header-title{font-size:16px;top:50%;bottom:auto;transform:translate(-50%,-50%)}
body.screen-mode.bottom-site-navigation{padding-bottom:33px}
body .screen-controls.with-site-nav{height:33px;padding:2px 12px;gap:10px}
body .screen-controls.with-site-nav button,body .screen-controls .screen-site-links a{height:28px;min-height:28px;padding:3px 7px;font-size:11px;border-radius:3px}
body .screen-page-navigation{gap:10px}
body .screen-controls output{font-size:11px}
body .screen-bottom-actions,body .screen-controls .screen-site-links{gap:5px}
@media(max-width:999px){
 body.screen-mode.bottom-site-navigation{padding-bottom:70px}
 body .screen-controls.with-site-nav{height:70px;grid-template-rows:26px 26px 10px;gap:2px;padding:2px 6px}
 body .screen-controls.with-site-nav button,body .screen-controls .screen-site-links a{height:26px;min-height:26px}
 body .screen-controls.with-site-nav>.screen-hint,body .screen-controls.with-site-nav>.showcase-total{font-size:9px;line-height:10px}
}
@media(max-width:600px){
 body:not(.editor-mode) .masthead.site-masthead .header:has(>.showcase-header-title){height:59px;min-height:59px;align-items:flex-start}
 body:not(.editor-mode) .masthead.site-masthead .header>.showcase-header-title{top:auto;bottom:3px;transform:translateX(-50%);font-size:12px}
 body:not(.editor-mode) .masthead.site-masthead .header .site-menu-toggle{min-height:30px;padding:4px 8px;font-size:11px}
}
/* All model types and their internal pages use the same single top toolbar. */
body.editor-mode.unified-workspace>.site-masthead{display:none}
body.editor-mode.unified-workspace>main.wrap{height:100dvh;max-height:100dvh}
body.unified-workspace main>.workspace-tools{position:relative;z-index:45;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;padding:2px 5px;margin:0 0 3px;min-height:43px;border-radius:3px;box-sizing:border-box}
body.unified-workspace .automation-workspace-brand{display:flex;align-items:center;flex:0 0 102px;height:36px;margin:0;padding:0;min-width:0}
body.unified-workspace .automation-workspace-brand img{width:102px;height:34px;object-fit:contain}
body.unified-workspace .automation-workspace-brand .brand-home-label{font-size:7px;right:2px;bottom:1px}
body.unified-workspace main>.workspace-tools .demo-page-controls{display:flex;flex:1 1 auto;flex-wrap:nowrap;gap:5px;width:auto;min-width:0}
body.unified-workspace main>.workspace-tools #workspace-title{font-size:11px;max-width:165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
body.unified-workspace main>.workspace-tools .demo-page-controls label{flex:0 1 auto;min-width:0;margin:0}
body.unified-workspace main>.workspace-tools .demo-page-controls label select{width:132px;max-width:132px;font-size:11px}
body.unified-workspace main>.workspace-tools .demo-page-controls>span{font-size:10px}
body.unified-workspace main>.workspace-tools .workspace-launch{gap:4px;flex:none}
body.unified-workspace main>.workspace-tools .preview-view-controls{width:auto;flex:none;gap:4px}
body.unified-workspace main>.workspace-tools .preview-view-controls label{font-size:0;gap:0}
body.unified-workspace main>.workspace-tools .preview-view-controls select{width:125px}
body.unified-workspace main>.workspace-tools :is(button,select),body.unified-workspace main>.workspace-tools .automation-return{height:28px;min-height:28px;padding:3px 6px;font-size:11px;border-radius:3px}
body.unified-workspace main>.workspace-tools .demo-page-controls>button{min-width:26px}
body.unified-workspace main>.workspace-tools .preview-zoom{gap:3px}
body.unified-workspace main>.workspace-tools .preview-zoom button{width:28px;min-width:28px}
body.unified-workspace main>.workspace-tools .preview-zoom svg{width:17px;height:17px}
body.unified-workspace main>.workspace-tools #preview-scale{height:28px;min-width:42px;font-size:11px}
body.unified-workspace main>.workspace-tools .preview-controls,body.unified-workspace main>.workspace-tools .preview-controls>div{gap:3px}
body.unified-workspace .automation-navigation{margin-left:auto;flex:none;font-size:11px}
body.unified-workspace .automation-navigation summary{height:28px;min-height:28px;padding:4px 7px;border-radius:3px}
body.unified-workspace .automation-navigation nav{z-index:55}
body.unified-workspace main>.workspace-actions{min-height:33px;padding:2px 0;gap:6px;flex-wrap:nowrap}
body.unified-workspace main>.workspace-actions .button,body.editor-mode.unified-workspace main>.workspace-actions #expand-preview{min-height:28px;height:28px;padding:3px 8px;font-size:11px;border-radius:3px;gap:4px;white-space:nowrap}
body.unified-workspace main>.workspace-actions #expand-preview svg{width:14px;height:14px}
body.unified-workspace main>.workspace-actions .workspace-note{font-size:10px}
@media(max-width:1199px){
 body.unified-workspace main>.workspace-tools #workspace-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.unified-workspace main>.workspace-actions .workspace-note{display:none}
}
@media(min-width:600px) and (max-width:850px){
 body.unified-workspace main>.workspace-tools{gap:4px}
 body.unified-workspace main>.workspace-tools .demo-page-controls label select{width:110px;max-width:110px}
 body.unified-workspace main>.workspace-tools .preview-view-controls select{width:108px}
 body.unified-workspace main>.workspace-tools .preview-controls button{padding-inline:4px;font-size:10px}
}
@media(max-width:599px){
 body.unified-workspace .automation-workspace-brand{flex-basis:92px}
 body.unified-workspace .automation-workspace-brand img{width:92px}
 body.unified-workspace main>.workspace-tools .demo-page-controls>button{display:none}
 body.unified-workspace main>.workspace-tools .demo-page-controls label{flex:1}
 body.unified-workspace main>.workspace-tools .demo-page-controls label select{width:100%;max-width:100%}
 body.unified-workspace main>.workspace-actions .button{min-height:32px;height:32px}
 body.unified-workspace .mobile-model-navigation:not([hidden]){margin:2px 0;font-size:11px}
 body.unified-workspace .mobile-model-navigation .button{min-height:28px;min-width:28px;padding:3px 8px}
}

body.unified-workspace .automation-navigation summary{font-size:11px}
body.editor-mode.unified-workspace.phone-browse main>.workspace-tools{padding:2px 5px;min-height:43px}
body.editor-mode.unified-workspace.phone-browse main>.workspace-tools .demo-page-controls select{height:30px;min-height:30px;font-size:11px}
body.unified-workspace .automation-navigation .mobile-model-navigation{position:static;min-width:0;width:auto;padding:8px 0 0;border:0;border-top:1px solid #718368;border-radius:0;box-shadow:none;background:none;gap:5px}
body.unified-workspace .automation-navigation .mobile-model-navigation a{padding:3px 8px}

body.editor-mode.unified-workspace.phone-browse main>.workspace-actions .button{height:32px;min-height:32px;padding:4px 8px;font-size:11px}
