/* Only reduce the taller owner/workspace headers. Public/customer headers retain their original styling. */
body>header.shell.header,body.focused-workspace>.global-head{box-sizing:border-box;min-height:56px;height:56px;padding-top:2px;padding-bottom:2px;margin-top:0;margin-bottom:0;align-items:center;row-gap:4px}
body>header.shell.header{flex-wrap:nowrap;gap:12px}
body>header.shell.header>.row{flex-wrap:nowrap;gap:8px;min-width:0}
body>header.shell.header #account{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.focused-workspace>.global-head{flex:0 0 56px}
body.focused-workspace>.global-head .workspace-view-brand{flex-wrap:nowrap;gap:8px}
body.focused-workspace>.global-head .header-right{flex-wrap:nowrap;gap:10px}
body.focused-workspace>.global-head .brand small{font-size:10px;line-height:1.2}
@media(min-width:901px){body>header.shell.header:has(.dashboard-workspace-link){display:flex;flex-wrap:nowrap;gap:12px}body>header.shell.header>.dashboard-workspace-link{order:0;margin-inline:0}}
@media(max-width:900px){body>header.shell.header,body.focused-workspace>.global-head{height:auto;min-height:56px;padding-top:3px;padding-bottom:3px;row-gap:4px}body.focused-workspace>.global-head{flex:0 0 auto}body>header.shell.header,body>header.shell.header:has(.dashboard-workspace-link){flex-wrap:wrap;gap:4px 10px}body>header.shell.header>.row{flex-wrap:wrap}body.focused-workspace>.global-head .header-right,body.focused-workspace>.global-head .workspace-view-brand{flex-wrap:wrap}}
@media(max-width:620px){body.focused-workspace>.global-head{padding:3px 12px;gap:4px 8px}body.focused-workspace>.global-head .brand small{display:none}}
/* The approved 56px workspace height applies throughout Fullience. */
body>.site-header{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;min-height:0}
body>.site-header>.nav,body>.dashboard-header,body>header.wrap.top,body>header:not([class]){box-sizing:border-box;height:56px;min-height:56px;padding-top:2px;padding-bottom:2px;margin-top:0;margin-bottom:0;align-items:center;row-gap:4px}
body>.site-header>.nav{flex-wrap:nowrap}
body>.dashboard-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px}
body>header.wrap.top{display:flex;justify-content:space-between;gap:10px;flex-wrap:nowrap}
body>.dashboard-header nav{gap:10px;flex-wrap:nowrap}
body>.dashboard-header .brand,body>.site-header .brand{line-height:1.2}
@media(max-width:900px){body>.site-header>.nav,body>.dashboard-header,body>header.wrap.top,body>header:not([class]){height:auto;min-height:56px;padding-top:3px;padding-bottom:3px;row-gap:4px}body>.site-header>.nav,body>.dashboard-header,body>header.wrap.top{flex-wrap:wrap}body>.dashboard-header{display:flex;gap:4px 10px;justify-content:space-between}body>.dashboard-header .owner-brand-group{flex:1 1 auto}body>.dashboard-header nav{flex:0 1 auto;flex-wrap:wrap;gap:6px}body>.dashboard-header>.dashboard-workspace-link{margin-inline:auto}}
/* Header calls to action scale with the approved compact header. */
body>.site-header .button,body>.site-header .btn,body>.site-header .button.small,body>.dashboard-header .dashboard-workspace-link,body>header.shell.header .dashboard-workspace-link,body.focused-workspace>.global-head .workspace-owner-access a,body>header.wrap.top .btn{box-sizing:border-box;min-height:32px;height:auto;padding:6px 12px;border-radius:7px;font-size:12px;line-height:1.35;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:620px){body>.site-header .button,body>.site-header .btn,body>.dashboard-header .dashboard-workspace-link,body>header.shell.header .dashboard-workspace-link,body.focused-workspace>.global-head .workspace-owner-access a,body>header.wrap.top .btn{padding:6px 10px;font-size:11px;min-height:32px}}

body>header.shell.header #refresh{box-sizing:border-box;min-height:32px;height:auto;padding:6px 12px;border-radius:7px;font:500 12px/1.35 system-ui;white-space:nowrap}

/* Preserve the full header rail inside the fixed dashboard flex layout. */
body.fixed-dashboard>header.shell.header{width:100%;max-width:1280px;margin-inline:auto;flex-shrink:0}
@media(min-width:901px){body.fixed-dashboard>header.shell.header:has(.dashboard-workspace-link){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}body.fixed-dashboard>header.shell.header>.row{justify-self:end;margin-block:0}}

/* Keep dashboard identity, account actions and workspace access on distinct mobile rows. */
@media(max-width:780px){
 body.customer-dashboard>.dashboard-header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;height:auto;padding-block:12px;align-items:center}
 body.customer-dashboard>.dashboard-header>.owner-brand-group{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-width:0;width:100%}
 body.customer-dashboard>.dashboard-header .owner-brand-group>.brand{grid-column:1;min-width:0;display:flex;flex-wrap:wrap;gap:6px;font-size:20px}
 body.customer-dashboard>.dashboard-header .brand img{flex:none}
 body.customer-dashboard>.dashboard-header .owner-view-label{flex-basis:100%;margin-left:40px;font-size:10px}
 body.customer-dashboard>.dashboard-header .owner-view-toggle{grid-column:2;grid-row:1;align-self:center;min-height:36px;padding:7px 9px}
 body.customer-dashboard>.dashboard-header #owner-release-view{grid-column:1/-1;min-width:0}
 body.customer-dashboard>.dashboard-header>nav{grid-column:1;grid-row:2;display:flex;flex-wrap:nowrap;justify-self:stretch;justify-content:space-between;gap:12px;min-width:0;width:100%;font-size:12px}
 body.customer-dashboard>.dashboard-header .signed-in-email{display:block;flex:1;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.customer-dashboard>.dashboard-header #home-signout{flex:none;min-height:40px;padding:8px 12px;white-space:nowrap}
 body.customer-dashboard>.dashboard-header>.dashboard-workspace-link{grid-column:1;grid-row:3;justify-self:stretch;width:100%;max-width:none;min-height:42px;margin:0;padding:10px 14px;font-size:13px}
}
@media(max-width:780px){
 body.fixed-dashboard>header.shell.header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;height:auto;padding-block:12px}
 body.fixed-dashboard>header.shell.header>.owner-brand-group{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:100%;min-width:0}
 body.fixed-dashboard>header.shell.header .brand{min-width:0;white-space:nowrap}
 body.fixed-dashboard>header.shell.header .owner-view-toggle{grid-column:2;grid-row:1;margin:0}
 body.fixed-dashboard>header.shell.header #owner-release-view{grid-column:1/-1}
 body.fixed-dashboard>header.shell.header>.row{grid-column:1;grid-row:2;display:flex;flex-wrap:nowrap;justify-content:space-between;width:100%;min-width:0;margin:0;gap:12px}
 body.fixed-dashboard>header.shell.header #account{flex:1;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.fixed-dashboard>header.shell.header #refresh{flex:none;min-height:40px}
 body.fixed-dashboard>header.shell.header>.dashboard-workspace-link{grid-column:1;grid-row:3;order:initial;justify-self:stretch;width:100%;max-width:none;min-height:42px;margin:0;padding:10px 14px;font-size:13px}
}
