:root{--account-view-banner-height:0px}
.account-view-banner{position:fixed;inset:0 0 auto;z-index:2300;display:flex;align-items:center;justify-content:center;gap:12px;padding:7px 14px;border-bottom:1px solid #c6ad67;background:#fff3d1;color:#624a19;font:12px/1.4 'Segoe UI',Arial,sans-serif;box-sizing:border-box;box-shadow:0 1px 4px #493c2015}
.account-view-banner-text{min-width:0;overflow-wrap:anywhere}
.account-view-banner>button{flex:none;background:#fffaf0;color:#624a19;border:1px solid #c8ad69;border-radius:5px;padding:4px 8px;font:600 11px/1.3 'Segoe UI',Arial,sans-serif;cursor:pointer}
.account-view-open{white-space:nowrap;font-size:11px!important;padding:5px 8px!important}
.account-view-picker{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #b8cabb;border-radius:11px;color:#244135;background:#f8faf6;font:13px/1.4 'Segoe UI',Arial,sans-serif;overflow:auto;box-shadow:0 15px 65px #14351d40}
.account-view-picker::backdrop{background:#16372860}.account-view-picker h2{margin:0 0 8px;font-size:18px}.account-view-picker>p{margin:8px 0;color:#65766a}.account-view-picker>input{box-sizing:border-box;width:100%;padding:9px 10px;border:1px solid #c1cfbf;border-radius:6px;background:#fff;font:inherit}.account-view-targets{display:grid;gap:5px;max-height:50dvh;overflow:auto;margin:12px 0}.account-view-targets>button{display:grid;gap:2px;text-align:left;padding:10px;border:1px solid #d3dfd0;border-radius:6px;background:#fff;color:#234735;font:inherit;cursor:pointer}.account-view-targets>button:hover{background:#eaf3e8}.account-view-targets small{font-size:11px;color:#718174}.account-view-picker [role="alert"]{color:#a54c39}.account-view-picker>button{padding:7px 12px;border:1px solid #c8d5c6;border-radius:6px;background:white;color:#345941;cursor:pointer}
body.account-view-active{padding-top:var(--account-view-banner-height)}
body.account-view-active dialog:modal{top:var(--account-view-banner-height);max-height:calc(100dvh - 24px - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs{padding-top:0}
body.account-view-active.office-top-tabs .office-window-tabs-host{top:var(--account-view-banner-height)}
body.account-view-active.office-top-tabs .layout{margin-top:calc(var(--office-window-tabs-height) + var(--account-view-banner-height));min-height:calc(100dvh - var(--office-window-tabs-height) - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs .sidebar,body.account-view-active.office-top-tabs:has(#modal.workspace-card[open]) .sidebar{top:calc(var(--office-window-tabs-height) + var(--account-view-banner-height));height:calc(100dvh - var(--office-window-tabs-height) - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs #modal.workspace-card{top:calc(var(--office-window-tabs-height) + var(--account-view-banner-height));height:calc(100dvh - var(--office-window-tabs-height) - var(--account-view-banner-height));max-height:calc(100dvh - var(--office-window-tabs-height) - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs .deal-mail-window.is-expanded,body.account-view-active.office-top-tabs .document-window.is-expanded{top:calc(70px + var(--office-window-tabs-height) + var(--account-view-banner-height))!important;height:calc(100dvh - 94px - var(--office-window-tabs-height) - var(--account-view-banner-height))!important}
body.account-view-active :is(.max-messenger-window,.file-preview-dialog).is-expanded,body.account-view-active .mail-intake-window.is-expanded[open]{top:calc(8px + var(--office-window-tabs-height,0px) + var(--account-view-banner-height))!important;height:calc(var(--mail-viewport-height,100dvh) - 16px - var(--office-window-tabs-height,0px) - var(--account-view-banner-height))!important}
body.account-view-active .mail-compose-window.is-expanded[open]{top:calc(70px + var(--office-window-tabs-height,0px) + var(--account-view-banner-height));height:calc(var(--mail-viewport-height,100dvh) - 94px - var(--office-window-tabs-height,0px) - var(--account-view-banner-height));max-height:calc(var(--mail-viewport-height,100dvh) - 94px - var(--office-window-tabs-height,0px) - var(--account-view-banner-height))}
body.account-view-active:not(.office-top-tabs)>header{top:var(--account-view-banner-height)}
body.account-view-active #productionSidebar{top:var(--account-view-banner-height);height:calc(100dvh - var(--account-view-banner-height));max-height:calc(100dvh - var(--account-view-banner-height))}
body.account-view-active #production-tasks-frame{height:calc(100dvh - 110px - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs.tasks-workspace-active #page,body.account-view-active.office-top-tabs #task-workspace-shell{height:calc(100dvh - 84px - var(--office-window-tabs-height) - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs.compact-register-active #page .deal-register-table,body.account-view-active.office-top-tabs.compact-simple-active #page>.table-wrap{max-height:calc(100dvh - 145px - var(--office-window-tabs-height) - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs.compact-register-active #page .lead-register-table{max-height:calc(100dvh - 86px - var(--office-window-tabs-height) - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs.compact-section-active #page>.mail-workspace{height:calc(100dvh - 80px - var(--office-window-tabs-height) - var(--account-view-banner-height))}
body.account-view-active.office-top-tabs:has(.sales-stock-workspace) .main{height:calc(100dvh - var(--office-window-tabs-height) - var(--account-view-banner-height))}
@media(min-width:701px){body.account-view-active.office-top-tabs.tasks-workspace-active.compact-section-active #task-workspace-shell{height:calc(100dvh - 56px - var(--office-window-tabs-height) - var(--account-view-banner-height))}}
@media(max-width:800px){body.account-view-active #productionSidebar{top:auto;height:auto;max-height:none}}
/* Keep section actions on their own line when the account tools need more room. */
@media(max-width:1200px){
 body.office-top-tabs .topbar:has(.account-view-open),body.account-view-active.office-top-tabs .topbar{height:auto;min-height:56px;padding:8px 12px;flex-wrap:wrap;align-items:center;gap:8px}
 body.office-top-tabs .topbar:has(.account-view-open)>.section-toolbar,body.account-view-active.office-top-tabs .topbar>.section-toolbar{order:3;flex:1 0 100%;width:100%;min-width:0}
 body.office-top-tabs .topbar:has(.account-view-open)>.tel-quick,body.account-view-active.office-top-tabs .topbar>.tel-quick{order:1;margin:0;max-width:100%}
 body.office-top-tabs .topbar:has(.account-view-open)>.account,body.account-view-active.office-top-tabs .topbar>.account{order:2;margin-left:auto;max-width:100%;min-width:0;flex-wrap:wrap}
}
@media(max-width:700px){.account-view-banner{justify-content:space-between;gap:7px;padding:6px 9px;font-size:11px}.account-view-banner>button{font-size:10px;max-width:145px;white-space:normal}.account-view-picker{padding:15px}.account-view-open{max-width:150px;white-space:normal;line-height:1.15}
 body.account-view-active.office-top-tabs .sidebar,body.account-view-active.office-top-tabs:has(#modal.workspace-card[open]) .sidebar{height:auto}
 body.account-view-active.office-top-tabs #modal.workspace-card{top:max(var(--card-menu-top,111px),calc(var(--office-window-tabs-height) + var(--account-view-banner-height)));height:calc(100dvh - max(var(--card-menu-top,111px),calc(var(--office-window-tabs-height) + var(--account-view-banner-height))));max-height:calc(100dvh - max(var(--card-menu-top,111px),calc(var(--office-window-tabs-height) + var(--account-view-banner-height))))}
 body.account-view-active.office-top-tabs .deal-mail-window.is-expanded,body.account-view-active.office-top-tabs .document-window.is-expanded{top:calc(8px + var(--office-window-tabs-height) + var(--account-view-banner-height))!important;height:calc(100dvh - 16px - var(--office-window-tabs-height) - var(--account-view-banner-height))!important}
 body.account-view-active .mail-compose-window.is-expanded[open]{top:calc(12px + var(--office-window-tabs-height,0px) + var(--account-view-banner-height));height:calc(var(--mail-viewport-height,100dvh) - 32px - var(--office-window-tabs-height,0px) - var(--account-view-banner-height));max-height:calc(var(--mail-viewport-height,100dvh) - 32px - var(--office-window-tabs-height,0px) - var(--account-view-banner-height))}
 body.account-view-active #production-tasks-frame{height:calc(100dvh - 180px - var(--account-view-banner-height))}
 body.account-view-active.office-top-tabs.tasks-workspace-active #page,body.account-view-active.office-top-tabs #task-workspace-shell{height:calc(100dvh - 180px - var(--office-window-tabs-height) - var(--account-view-banner-height))}
 body.account-view-active.office-top-tabs.compact-register-active #page .deal-register-table{max-height:calc(100dvh - 290px - var(--office-window-tabs-height) - var(--account-view-banner-height))}
 body.account-view-active.office-top-tabs.compact-register-active #page .lead-register-table{max-height:calc(100dvh - 180px - var(--office-window-tabs-height) - var(--account-view-banner-height))}
 body.account-view-active.office-top-tabs:has(.sales-stock-workspace) .layout{height:calc(100dvh - var(--office-window-tabs-height) - var(--account-view-banner-height));min-height:0}
 body.account-view-active.office-top-tabs:has(.sales-stock-workspace) .main{height:auto}
}
