/* Clear module context without an extra full-height title section. */
.module-ribbon.sb-module-shell{display:flex;align-items:center;gap:12px;padding:8px 10px}
.sb-module-shell .sb-module-title{flex:1 1 130px;min-width:0;margin:0;font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.sb-module-shell .module-ribbon-actions{flex:0 1 auto;min-width:0;padding:0;min-height:0}
.sb-web-mobile-view{display:none}
.sb-web-fold,.sb-device-options{border:1px solid var(--line,#ded8cf);border-radius:12px;margin:8px 0;background:var(--paper,#fff)}
.sb-web-fold>summary,.sb-device-options>summary,.sb-workspace-links>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:11px 12px;font-weight:700;line-height:22px}
.sb-web-fold>#webGlobalTools,.sb-web-fold>#webRecent{margin:0;padding:0 10px 10px;gap:6px}
.sb-web-fold[hidden]{display:none!important}
.sb-workspace-links{margin-top:10px;border-top:1px solid var(--line,#ded8cf)}
.sb-workspace-links>summary{padding-left:0;font-size:13px}
.sb-workspace-link{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line,#ded8cf)}
.sb-workspace-link>div{flex:1;min-width:0}.sb-workspace-link strong,.sb-workspace-link small{display:block;overflow-wrap:anywhere;line-height:1.4}
.sb-workspace-link small{color:var(--muted,#647080);font-size:12px}.sb-workspace-link button{flex:0 0 auto;min-height:44px;min-width:44px}
.sb-workspace-link button:disabled{opacity:.5;cursor:default}
.sb-web-notice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid #c28b51;border-radius:10px;margin:10px 0;font-size:14px}.sb-web-notice>span{flex:1;min-width:160px}
.sb-more-menu{max-height:calc(100dvh - 16px);overflow-y:auto;max-width:calc(100vw - 16px)}
.sb-more-menu [role=menuitem]:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
body[data-route=web] .sb-fab[data-sb-docked=true]{display:none!important}
body.theme-dark .sb-web-fold,body.theme-dark .sb-device-options{background:#1b232d;border-color:#3a4653;color:#e8eef4}
body.theme-dark .sb-workspace-links,body.theme-dark .sb-workspace-link{border-color:#3a4653}
@media(max-width:820px){
 .topbar button{min-height:44px!important;min-width:44px!important;flex-shrink:0}
 .topbar .top-actions{gap:2px}.topbar .global-search-wrap{min-width:0}
 .module-ribbon.sb-module-shell{padding:6px 8px;gap:8px;margin-bottom:10px}
 .sb-module-shell .sb-module-title{flex-basis:90px;font-size:18px}
 .sb-module-shell .module-ribbon-actions{gap:5px;overflow:visible;flex-wrap:wrap;justify-content:flex-end}
 .sb-module-shell .module-ribbon-action{flex-direction:row;min-width:44px;min-height:44px;gap:5px;padding:6px 8px;font-size:12px;line-height:1.2;white-space:normal}
 .sb-module-shell .module-ribbon-action.primary{min-width:64px}.sb-module-shell .module-ribbon-action .mailc-ic{color:currentColor}
 body[data-route=web] #view>.sb-web-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 0 10px;padding:0}
 .sb-web-head .module-head-main{min-width:0}.sb-web-head h1{font-size:18px!important;line-height:1.2;margin:0;overflow-wrap:anywhere}.sb-web-head p{display:none}
 body[data-route=web] .sb-web-head .module-actions{width:auto;min-width:0;gap:5px;margin:0;display:flex;flex-wrap:nowrap}
 .sb-web-head .module-actions>.sb-btn{flex:0 0 auto;min-width:44px;padding:8px 10px}.sb-web-head .sb-more{margin-left:0}
 .sb-web-mobile-view{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;font-size:13px;margin:8px 0}
 .sb-web-mobile-view select{min-height:44px;height:44px;width:100%;min-width:0}
 body[data-route=web] .web-chips{display:none!important}
 .sb-device-options .dashboard-device-strip{margin:0!important;padding-top:0}.sb-device-options .dashboard-device-copy>strong{display:none}
 .sb-web-fold>summary,.sb-device-options>summary{font-size:13px}
 .sb-workspace-links{margin-top:6px}.sb-workspace-link button{padding:8px 10px;max-width:42%;overflow-wrap:anywhere;white-space:normal}
}
@media(max-width:380px){html:not([data-ui-font-scale=large]):not([data-ui-font-scale=xlarge]) body[data-route=dashboard] .dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-kpi-txt small{overflow-wrap:anywhere}}
html[data-ui-font-scale=xlarge] .sb-module-shell .sb-module-title,html[data-ui-font-scale=large] .sb-module-shell .sb-module-title{font-size:20px}
html[data-ui-font-scale=xlarge] .sb-module-shell .module-ribbon-action{font-size:15px;min-height:44px}
