/* R50: readable collapsed navigation, compact chrome and unobstructed actions. */
body.crm-unified .app-main>.topbar{min-height:54px;padding:6px 16px;gap:8px}
body.crm-unified .topbar :is(button,summary,a.button){min-height:36px}
body.crm-unified .topbar .global-search{min-height:36px}
body.crm-unified .topbar .global-search input{padding-block:7px}
body.crm-unified .module-layout>.content{padding:14px 20px 64px 16px!important}
body.crm-unified .module-navigation{top:68px;margin-top:14px;max-height:calc(100dvh - 82px)}
body.crm-unified .module-navigation-toggle{min-height:36px}
body.crm-unified :is(.module-view-tabs,.module-section-links)>a,body.crm-unified .module-direct-actions>a{display:flex;align-items:center;gap:9px;position:relative;min-height:38px;padding:8px!important;text-align:left}
body.crm-unified .module-nav-icon{display:grid;place-items:center;width:19px;height:19px;flex:0 0 19px;margin:0;color:var(--crm-accent)}
body.crm-unified .module-nav-label{min-width:0;flex:1;line-height:1.3}
body.crm-unified .module-nav-count{display:inline-grid;place-items:center;flex:0 0 auto;min-width:23px;height:21px;padding:0 5px;border-radius:7px;background:#e2eeea;color:#365c5a;font-size:11px;font-style:normal;font-variant-numeric:tabular-nums}
body.crm-unified .module-direct-actions{margin-top:10px}
body.crm-unified .module-nav-caption{margin-top:12px}
body.crm-unified .module-switcher-panel{width:min(500px,calc(100vw - 28px));max-height:min(560px,calc(100dvh - 82px));padding:10px}
body.crm-unified .module-primary{gap:2px 6px}
body.crm-unified .module-primary .nav-search{padding-bottom:8px}
body.crm-unified .module-primary>a{min-height:34px;padding:6px 8px!important}
body.crm-unified .module-primary .module-group-title{grid-column:1/-1;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;margin:9px 5px 4px;padding-top:8px;color:var(--crm-muted);border-top:1px solid var(--crm-line)}
body.crm-unified .module-primary .module-group-title[hidden]{display:none!important}
.module-rail-tooltip{position:fixed;z-index:120;max-width:240px;padding:7px 11px;border-radius:8px;background:#193d43;color:#fff;font:italic 13px/1.4 Calibri,Carlito,"Segoe UI",sans-serif;box-shadow:0 4px 16px #193d4330;pointer-events:none}
@media(min-width:851px){
 body.crm-unified .module-layout.module-nav-collapsed{grid-template-columns:76px minmax(0,1fr)}
 body.crm-unified .module-nav-collapsed .module-navigation{margin-left:10px;padding:6px;width:60px;border-radius:12px;scrollbar-width:none}
 body.crm-unified .module-nav-collapsed .module-navigation-toggle{justify-content:center;padding:8px!important}
 body.crm-unified .module-nav-collapsed .module-navigation-toggle svg{transform:rotate(180deg)!important}
 body.crm-unified .module-nav-collapsed :is(.module-nav-title,.module-nav-caption,.module-nav-label){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.crm-unified .module-nav-collapsed :is(.module-view-tabs,.module-section-links)>a,body.crm-unified .module-nav-collapsed .module-direct-actions>a{justify-content:center;min-height:42px;padding:9px!important}
 body.crm-unified .module-nav-collapsed .module-nav-count{position:absolute;right:0;top:0;min-width:16px;height:16px;padding:0 3px;font-size:9px;border:1px solid #f9fcfa}
 body.crm-unified .module-nav-collapsed .module-section-links{margin-top:12px;border-top:1px solid var(--crm-line);padding-top:8px}
}
body.crm-unified #main-content :is(.executive-header,.page-head){padding:12px 16px!important}
body.crm-unified #main-content .executive-header .header-copy{display:grid;gap:3px}
body.crm-unified #main-content .executive-header .header-copy>*{margin:0!important}
body.crm-unified #main-content .executive-header .eyebrow{font-size:10px;line-height:1.3;letter-spacing:.12em}
body.crm-unified #main-content .dashboard-header .header-copy{grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;align-items:baseline}
body.crm-unified #main-content .dashboard-header .eyebrow{grid-column:1/-1}
body.crm-unified #main-content .dashboard-header h1{grid-column:1;grid-row:2;font-size:23px}
body.crm-unified #main-content .dashboard-header .header-copy>small{grid-column:2;grid-row:2;color:var(--crm-muted);font-size:11px}
body.crm-unified #main-content .dashboard-header .header-copy>p:not(.eyebrow){grid-column:1/-1;grid-row:3}
body.crm-unified #personal-dashboard .pd-toolbar{margin:8px 0}
body.crm-unified #personal-dashboard .pd-grid{gap:10px}
body.crm-unified #personal-dashboard .panel-head{min-height:34px;padding:6px 10px}
body.crm-unified #personal-dashboard .panel-head h2{font-size:15px}
body.crm-unified #personal-dashboard .pd-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:7px;padding:8px 10px}
body.crm-unified #personal-dashboard .pd-shortcut{align-items:stretch}
body.crm-unified #personal-dashboard .pd-shortcut>a{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 9px!important;font-size:12px;line-height:1.25;white-space:normal}
body.crm-unified #personal-dashboard .pd-shortcut .crm-action-icon{margin:0;color:var(--crm-accent);flex:0 0 20px}
body.crm-unified #personal-dashboard [data-widget=metrics] .pd-columns>a{border-top:3px solid var(--crm-accent);padding:7px 9px;background:#fcfefd}
body.crm-unified #personal-dashboard [data-widget=metrics] .pd-columns>a:nth-child(2){border-top-color:#7662aa}
body.crm-unified #personal-dashboard [data-widget=metrics] .pd-columns>a:nth-child(3){border-top-color:#b18731}
body.crm-unified #personal-dashboard [data-widget=metrics] .pd-columns>a:nth-child(4){border-top-color:#b9715b}
/* The notes launcher now lives in the topbar; no persistent strip over page actions. */
body.crm-unified .sticky-hanger{position:relative;inset:auto!important;bottom:auto;top:auto;width:auto;height:auto;max-height:none;display:block;margin:0;pointer-events:auto;z-index:65}
body.crm-unified .sticky-hanger[hidden]{display:none!important}
body.crm-unified .hanger-toggle{display:flex;flex-direction:row;align-items:center;justify-content:center;width:auto;min-width:40px;min-height:36px;gap:6px;padding:6px 8px!important;font-size:12px}
body.crm-unified .hanger-toggle .hanger-icon{display:grid;place-items:center;width:19px;height:19px}
body.crm-unified .hanger-toggle .hanger-count{min-width:18px;height:18px;display:grid;place-items:center;border-radius:6px;background:#d8ebe5;color:#285b52;font-size:10px;font-style:normal}
body.crm-unified .hanger-panel{position:absolute;top:calc(100% + 10px);right:0;width:280px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 86px);overflow:auto;padding:12px;border:1px solid var(--crm-line);border-radius:12px;background:#f9fcfa;box-shadow:0 12px 32px #193d4326;display:grid;gap:9px}
body.crm-unified .hanger-panel[hidden]{display:none!important}
body.crm-unified .hanger-panel-title{font-size:14px}
body.crm-unified .hanger-list{display:grid;width:auto;padding:0;gap:6px;max-height:300px;overflow:auto}
body.crm-unified .hanger-list:before,body.crm-unified .hanger-leaf:after{display:none}
body.crm-unified .hanger-leaf{width:100%;min-height:38px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px!important;border:1px solid var(--crm-line)!important;border-left:3px solid var(--leaf,#8dc8b4)!important;border-radius:8px!important;box-shadow:none!important;animation:none!important;transform:none!important;text-align:left}
body.crm-unified .hanger-leaf span{display:block;width:auto;min-width:0;flex:1;font-size:12px;white-space:normal;overflow-wrap:anywhere}
body.crm-unified .hanger-leaf strong{font-size:10px;color:var(--crm-muted);font-style:normal}
body.crm-unified .hanger-add{width:100%;min-height:34px;font-size:12px;padding:6px 9px!important}
body.crm-unified .hanger-all{font-size:12px;color:var(--crm-accent);padding:6px 0}
body.crm-unified .hanger-empty{font-size:12px;color:var(--crm-muted);margin:4px 0}
body.crm-unified .hanger-panel small:empty{display:none}
body.crm-unified .hanger-panel small{font-size:12px;overflow-wrap:anywhere}
body.crm-unified .floating-chat-launcher{width:48px;height:48px;right:18px;bottom:18px}
/* Distinct section accents from the existing home palette, on shared light surfaces. */
#workspace-home .dh-banner{border-top:3px solid var(--dh-accent)!important}
#workspace-home .dh-banner:nth-child(2){--dh-accent:#6e5bb4;--dh-wash:#f0edfa}
#workspace-home .dh-banner:nth-child(3){--dh-accent:#187db0;--dh-wash:#eaf5fc}
#workspace-home .dh-banner:nth-child(4){--dh-accent:#b17a1d;--dh-wash:#fff6e5}
#workspace-home .dh-banner:nth-child(5){--dh-accent:#5265ae;--dh-wash:#f0f3fc}
#workspace-home .dh-banner:nth-child(6){--dh-accent:#2f827a;--dh-wash:#edf7f4}
#workspace-home .dh-banner .dh-button-icon{color:var(--dh-accent)}
@media(prefers-reduced-motion:no-preference){.module-nav-icon .crm-line-icon{animation:r36-icon-wave 3.4s ease-in-out infinite}.module-nav-icon .crm-icon-accent{animation:crm-icon-detail 3s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){.module-nav-icon .crm-line-icon{animation:none!important}}
@media(max-width:1200px){body.crm-unified .topbar .user-menu summary>span:last-child,body.crm-unified .hanger-label{display:none}}
@media(max-width:850px){
 body.crm-unified .app-main>.topbar{padding:6px 10px;gap:6px}
 body.crm-unified .module-layout.has-module-nav{display:block}
 body.crm-unified .module-navigation{width:auto;position:static;margin:10px 12px 0;max-height:40dvh}
 body.crm-unified .module-navigation-toggle{padding:7px 9px!important}
 body.crm-unified .module-layout>.content{padding:12px 12px 66px!important}
 body.crm-unified .module-switcher-panel{top:60px;max-height:calc(100dvh - 76px)}
 body.crm-unified .hanger-panel{position:fixed;top:60px;right:12px;width:280px}
 body.crm-unified #main-content .dashboard-header .header-copy{display:grid;grid-template-columns:1fr}
 body.crm-unified #main-content .dashboard-header .header-copy>small{grid-column:1;grid-row:4}
 body.crm-unified #main-content .executive-header{padding:10px 12px!important}
}
