/* C154 workspace presentation only; authentication and permissions stay in JS. */
body:has(.crm-workspace:not([hidden])){display:block;min-height:100svh;padding:24px;background:#edf2f8}
.crm-workspace{box-sizing:border-box;width:min(1160px,100%);min-width:0;margin:0 auto;padding:28px;color:#172b46;color-scheme:light;background:#f7f9fc;border:1px solid #dce4ef;border-radius:20px;box-shadow:0 10px 36px #163a6110;font-family:Inter,Arial,sans-serif;line-height:1.5;overflow-wrap:anywhere}
.crm-workspace[hidden]{display:none}.crm-workspace *{box-sizing:border-box}
.crm-workspace h1,.crm-workspace h2,.crm-workspace h3,.crm-workspace p{letter-spacing:normal}
.crm-workspace h1{font-size:21px;line-height:1.25;white-space:normal;margin:0;font-weight:750;color:#102b4a}
.crm-workspace h2{font-size:26px;line-height:1.3;margin:0 0 12px;font-weight:700;color:#102b4a}
.crm-workspace h3{font-size:16px;line-height:1.4;margin:0 0 10px;font-weight:650;color:#183754}
.crm-workspace p{font-size:14px;line-height:1.6;margin:0 0 12px;color:#52647a}
.crm-workspace .crm-app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 22px;margin:0 0 26px;border-bottom:1px solid #dce4ef;flex-wrap:nowrap}
.crm-workspace .crm-brand{display:flex;align-items:center;gap:13px;min-width:0}
.crm-workspace .crm-brand img{display:block;width:48px;height:48px;object-fit:contain;flex:0 0 48px}
.crm-workspace .crm-brand-copy{min-width:0}.crm-workspace .crm-brand-copy p{font-size:12px;line-height:1.4;margin:4px 0 0;color:#63758a}
.crm-workspace .crm-env-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:4px 9px;border:1px solid #dfc78b;border-radius:6px;color:#785310;background:#fff8e6;font-size:10px;font-weight:750;letter-spacing:.08em;line-height:1.4}
.crm-workspace .crm-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
.crm-workspace .crm-page-heading h1{font-size:27px;margin:4px 0 6px}
.crm-workspace .crm-eyebrow{margin:0;font-size:10px;line-height:1.5;font-weight:750;letter-spacing:.13em;text-transform:uppercase;color:#6b7d92}
.crm-workspace .crm-role{margin:0;font-size:13px;color:#65768a}
.crm-workspace nav{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:20px 0}
.crm-workspace .crm-page-actions{margin:0;flex:0 0 auto;gap:8px}
.crm-workspace button{max-width:100%;min-height:44px;padding:10px 17px;border-radius:9px;border:1px solid #173c64;background:#14395f;color:#fff;font:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s}
.crm-workspace button:hover:not(:disabled){background:#204d77;border-color:#204d77}.crm-workspace button:disabled{cursor:wait;opacity:.65}
.crm-workspace button:focus-visible,.crm-workspace input:focus-visible,.crm-workspace select:focus-visible,.crm-workspace textarea:focus-visible{outline:3px solid #e5aa37;outline-offset:3px}
.crm-workspace .crm-page-actions button,.crm-workspace .crm-loading-actions button{background:#fff;border-color:#c9d5e3;color:#29455f}
.crm-workspace .crm-page-actions button:hover:not(:disabled),.crm-workspace .crm-loading-actions button:hover:not(:disabled){background:#eaf0f7;border-color:#a8bcd1}
.crm-workspace .crm-page-actions button:last-child{background:#edf2f8;border-color:#edf2f8;color:#52647a}
.crm-workspace .crm-platform{display:grid;gap:20px}
.crm-workspace .crm-platform-intro{position:relative;padding:28px;border:1px solid #203f64;border-radius:15px;background:linear-gradient(115deg,#102c4d,#173d63);color:#fff;overflow:hidden}
.crm-workspace .crm-platform-intro:after{content:"";position:absolute;right:-60px;top:-100px;width:250px;height:250px;border:1px solid #ffffff12;border-radius:50%;pointer-events:none}
.crm-workspace .crm-platform-intro .crm-eyebrow{color:#d7bb77}.crm-workspace .crm-platform-intro h2{font-size:25px;margin:8px 0 10px;color:#fff}
.crm-workspace .crm-platform-intro p:not(.crm-eyebrow){max-width:680px;margin-bottom:18px;color:#c7d6e7}
.crm-workspace .crm-connection-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid #82bc9f55;border-radius:6px;background:#2364474d;color:#d6f0e0;font-size:11px;font-weight:650}
.crm-workspace .crm-connection-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#8ed7aa;flex:none}
.crm-workspace .crm-readiness-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.crm-workspace .crm-readiness-card{min-width:0;padding:23px;background:#fff;border:1px solid #dce4ef;border-radius:14px}
.crm-workspace .crm-readiness-card h3{margin-bottom:12px;font-size:15px}.crm-workspace .crm-readiness-card p:last-child{margin-bottom:0;max-width:430px;font-size:13px}
.crm-workspace .crm-state-badge{display:inline-flex;align-items:center;gap:6px;width:fit-content;padding:4px 9px;margin:0 0 12px;border-radius:6px;font-size:11px;font-weight:700;background:#fff4dc;color:#78510d}
.crm-workspace .crm-state-badge[data-available=true]{background:#e7f4ec;color:#226044}.crm-workspace .crm-state-badge[data-available=false]{background:#fff4dc;color:#78510d}
.crm-workspace .crm-platform-note{margin:18px 0 0;padding:13px 16px;border-left:3px solid #b5c6d9;border-radius:0 7px 7px 0;background:#eef3f8;font-size:12px;color:#60738a}
.crm-workspace .crm-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin:0 0 24px}
.crm-workspace .crm-summary article{min-width:0;padding:20px;background:#fff;border:1px solid #dce4ef;border-radius:13px;box-shadow:0 2px 5px #1d416504}
.crm-workspace .crm-summary h3{font-size:12px;line-height:1.5;font-weight:600;color:#65768a;margin:0 0 10px}.crm-workspace .crm-summary p{font-size:29px;line-height:1.1;font-weight:700;letter-spacing:-.025em;color:#173754;margin:0}
.crm-workspace .crm-lead-workspace{margin-top:8px}.crm-workspace .crm-lead-workspace nav{gap:7px;margin:0 0 22px;padding:0 0 15px;border-bottom:1px solid #dce4ef}
.crm-workspace .crm-lead-workspace nav button{min-height:44px;padding:9px 15px;font-size:12px}.crm-workspace .crm-lead-workspace button[aria-pressed=false]{background:#fff;color:#496179;border-color:#d3ddea}
.crm-workspace .crm-lead-workspace h2{font-size:21px}
.crm-workspace .crm-priority,.crm-workspace .crm-lead-list article,.crm-workspace .crm-lead-details:not(:empty),.crm-workspace .crm-operation-panel article{border-color:#dce4ef;border-radius:13px;padding:20px;box-shadow:0 2px 5px #1d416504}
.crm-workspace .crm-lead-list article p{font-size:13px;color:#65768a}.crm-workspace .crm-lead-details dt,.crm-workspace .crm-operation-panel dt{font-size:12px;font-weight:650;color:#60738a}.crm-workspace .crm-lead-details dd,.crm-workspace .crm-operation-panel dd{font-size:13px;color:#203e59}
.crm-workspace form{display:grid;gap:17px;max-width:640px;margin-top:20px;padding-top:18px;border-top:1px solid #e0e7f0}
.crm-workspace form label{display:grid;gap:7px;min-width:0;font-size:12px;font-weight:650;line-height:1.5;color:#4d647d}
.crm-workspace .crm-create-source-form{align-items:start}
.crm-workspace .crm-create-source-form label{align-content:start;grid-template-rows:auto auto}
.crm-workspace .crm-create-source-form input,.crm-workspace .crm-create-source-form select{height:44px;min-height:44px}
.crm-workspace .crm-mobile-controls{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:8px;min-width:0}
.crm-workspace .crm-mobile-controls select{padding-inline:8px;font-size:14px;text-overflow:ellipsis}
.crm-workspace form input,.crm-workspace form select,.crm-workspace form textarea{display:block;width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #bdcbdc;border-radius:8px;background:#fff;color:#172b46;font:inherit;font-size:14px;line-height:1.5;box-shadow:0 1px 2px #193c6005}
.crm-workspace form input,.crm-workspace form select,.crm-workspace form textarea{font-weight:400}
@media(min-width:761px){.crm-workspace form input,.crm-workspace form select,.crm-workspace form textarea{font-size:14px!important}}
@media(max-width:760px){.crm-workspace form input,.crm-workspace form select,.crm-workspace form textarea{font-size:16px!important}}
.crm-workspace form textarea{min-height:112px;resize:vertical}.crm-workspace form :disabled{background:#edf1f6;color:#52647c;opacity:1}.crm-workspace form button{justify-self:start;max-width:100%;margin-top:2px}.crm-workspace form p[role=status]{margin:0;font-size:13px;font-weight:500}
.crm-workspace .crm-draft-notice{padding:16px;border:1px solid #dfc58e;border-radius:10px;background:#fffbef}.crm-workspace .crm-draft-notice[hidden]{display:none}
.crm-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;padding:16px;border:1px solid #dce4ef;border-radius:10px;font-size:12px}
.crm-workspace--loading,.crm-workspace--unavailable{width:min(540px,100%);margin:clamp(24px,9vh,88px) auto;padding:27px;background:#fff;border-radius:18px;box-shadow:0 15px 50px #12395b12}
.crm-workspace--loading .crm-app-header,.crm-workspace--unavailable .crm-app-header{padding-bottom:20px;margin-bottom:0}
.crm-workspace .crm-loading-body{display:grid;justify-items:center;text-align:center;padding:32px 8px 25px}.crm-workspace .crm-loading-body h1{font-size:23px;line-height:1.3;margin:19px 0 9px}.crm-workspace .crm-loading-body p{max-width:350px;font-size:13px;margin:0;color:#64768b}
.crm-workspace .crm-loading-icon{width:39px;height:39px;border:3px solid #e5ebf3;border-top-color:#c38a26;border-right-color:#173e65;border-radius:50%;animation:crm-spin .9s linear infinite}
.crm-workspace--unavailable .crm-loading-icon{display:grid;place-items:center;animation:none;border:1px solid #e4c98b;background:#fff5dd;border-radius:11px;color:#8a5c11}.crm-workspace--unavailable .crm-loading-icon:after{content:"!";font-size:23px;font-weight:700}
.crm-workspace .crm-skeleton{display:grid;width:min(350px,100%);grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:20px 0 6px}.crm-workspace .crm-skeleton-card{display:block;height:57px;border:1px solid #edf1f6;border-radius:9px;background:linear-gradient(100deg,#f2f5f9 25%,#e8eef5 45%,#f2f5f9 65%);background-size:250% 100%;animation:crm-shimmer 1.5s ease-in-out infinite}.crm-workspace .crm-skeleton-line{display:block;grid-column:1/-1;height:9px;width:70%;margin-top:2px;border-radius:4px;background:#edf2f7}
.crm-workspace .crm-loading-actions{justify-content:center;gap:10px;margin:0;padding-top:17px;border-top:1px solid #edf1f6}.crm-workspace .crm-loading-actions button{font-size:12px;min-height:44px;padding:9px 16px}.crm-workspace--unavailable .crm-loading-actions button:first-child{background:#14395f;border-color:#14395f;color:#fff}
@keyframes crm-spin{to{transform:rotate(360deg)}}@keyframes crm-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(max-width:760px){body:has(.crm-workspace:not([hidden])){padding:16px}.crm-workspace{padding:22px;border-radius:16px}.crm-workspace .crm-page-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}.crm-workspace .crm-page-heading h1{font-size:24px}.crm-workspace .crm-page-actions{margin:0}.crm-workspace .crm-app-header{gap:12px;margin-bottom:22px}.crm-workspace .crm-brand img{width:42px;height:42px;flex-basis:42px}.crm-workspace h1{font-size:18px}.crm-workspace .crm-readiness-grid{gap:14px}.crm-workspace .crm-platform-intro{padding:23px}}
@media(max-width:520px){body:has(.crm-workspace:not([hidden])){padding:10px}.crm-workspace{padding:18px 15px;border-radius:14px}.crm-workspace .crm-app-header{padding-bottom:18px;gap:10px}.crm-workspace .crm-brand{gap:9px}.crm-workspace .crm-brand img{width:38px;height:38px;flex-basis:38px}.crm-workspace h1{font-size:17px}.crm-workspace .crm-brand-copy p{font-size:11px}.crm-workspace .crm-env-badge{font-size:9px;padding:4px 6px}.crm-workspace .crm-page-heading{margin-bottom:20px;gap:14px}.crm-workspace .crm-page-heading h1{font-size:23px}.crm-workspace .crm-page-actions{width:100%}.crm-workspace .crm-page-actions button{flex:1}.crm-workspace .crm-readiness-grid{grid-template-columns:1fr}.crm-workspace .crm-platform-intro{padding:22px 19px}.crm-workspace .crm-platform-intro h2{font-size:23px}.crm-workspace .crm-readiness-card{padding:20px}.crm-workspace .crm-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crm-workspace .crm-summary article{padding:16px}.crm-workspace .crm-summary p{font-size:25px}.crm-workspace .crm-lead-workspace nav{gap:6px}.crm-workspace .crm-lead-workspace nav button{padding:9px 11px;flex:1 0 auto}.crm-workspace .crm-priority,.crm-workspace .crm-lead-list article,.crm-workspace .crm-lead-details:not(:empty),.crm-workspace .crm-operation-panel article{padding:16px}.crm-workspace form{max-width:100%}.crm-workspace form button{width:100%}.crm-workspace--loading,.crm-workspace--unavailable{margin:clamp(18px,6vh,54px) auto;padding:21px 18px}.crm-workspace .crm-loading-body{padding:28px 4px 23px}.crm-workspace .crm-loading-body h1{font-size:21px}.crm-workspace .crm-skeleton{gap:8px}.crm-workspace .crm-skeleton-card{height:48px}}
@media(prefers-reduced-motion:reduce){.crm-workspace *{animation:none!important;transition:none!important}.crm-workspace .crm-loading-icon{border-color:#dce5ef;border-top-color:#173e65}}

/* C156: sales shell, scoped lead lists and accessible detail presentation. */
.crm-workspace [hidden]{display:none!important}
.crm-workspace .crm-lead-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start;margin-top:8px}
.crm-workspace .crm-sales-content{min-width:0}
.crm-workspace .crm-lead-workspace nav.crm-sales-nav{display:flex;flex-wrap:nowrap;gap:6px;max-width:100%;margin:0;padding:5px;background:#fff;border:1px solid #dce4ef;border-radius:11px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.crm-workspace .crm-lead-workspace .crm-sales-nav button{flex:0 0 auto;min-height:44px;padding:10px 15px;border:1px solid transparent;border-radius:7px;background:transparent;color:#526b84;font-size:12px;white-space:nowrap;text-align:left}
.crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]{background:#173d63;color:#fff;border-color:#173d63}
.crm-workspace .crm-lead-workspace .crm-sales-nav button:hover:not(:disabled){background:#edf3f9;color:#173d63}
.crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]:hover:not(:disabled){background:#204b74;color:#fff}
.crm-workspace .crm-sales-content>h2:first-child{margin-top:0}
.crm-workspace .crm-lead-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 18px;padding:15px;background:#fff;border:1px solid #dce4ef;border-radius:11px}
.crm-workspace .crm-lead-filters label{display:grid;gap:6px;min-width:0;flex:1 1 160px;font-size:12px;font-weight:600;color:#60738a}
.crm-workspace .crm-lead-filters input,.crm-workspace .crm-lead-filters select{box-sizing:border-box;min-width:0;min-height:44px;width:100%;padding:10px 12px;border:1px solid #bdcbdc;border-radius:8px;background:#fff;color:#172b46;font:inherit;font-size:14px;line-height:1.5}
.crm-workspace .crm-lead-filters>input{flex:1 1 240px;width:auto}
.crm-workspace .crm-lead-filters>select{flex:1 1 150px;width:auto}
.crm-workspace .crm-lead-table{max-width:100%;overflow-x:auto;border:1px solid #dce4ef;border-radius:12px;background:#fff}
.crm-workspace .crm-lead-table table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.5}
.crm-workspace .crm-lead-table th{padding:13px 14px;border-bottom:1px solid #dce4ef;background:#f0f4f9;color:#5c7188;font-size:10px;font-weight:750;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
.crm-workspace .crm-lead-table td{padding:10px 14px;border-bottom:1px solid #e7edf4;color:#344e67;vertical-align:middle;overflow-wrap:anywhere}
.crm-workspace .crm-lead-table tbody tr:last-child td{border-bottom:0}
.crm-workspace .crm-lead-table tbody tr:hover{background:#f7faff}
.crm-workspace .crm-lead-table td button{min-height:44px;padding:8px 0;border:0;border-radius:4px;background:transparent;color:#14395f;text-align:left;font-size:13px;line-height:1.5;font-weight:650;white-space:normal}
.crm-workspace .crm-lead-table td button:hover:not(:disabled){background:transparent;color:#28618f;text-decoration:underline;text-underline-offset:3px}
.crm-workspace .crm-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 22px}
.crm-workspace .crm-chart{min-width:0;padding:20px;background:#fff;border:1px solid #dce4ef;border-radius:12px}
.crm-workspace .crm-chart h3{font-size:14px;margin:0 0 17px}
.crm-workspace .crm-chart-row{display:grid;grid-template-columns:minmax(75px,.9fr) minmax(50px,1.5fr) minmax(20px,auto);align-items:center;gap:12px;margin:11px 0;font-size:12px;color:#526b84}
.crm-workspace .crm-chart-row meter{appearance:none;width:100%;height:8px;min-width:0;border:0;border-radius:4px;background:#edf2f7;overflow:hidden}
.crm-workspace .crm-chart-row meter::-webkit-meter-bar{height:8px;border:0;border-radius:4px;background:#edf2f7}
.crm-workspace .crm-chart-row meter::-webkit-meter-optimum-value{border-radius:4px;background:#2b628e}
.crm-workspace .crm-chart-row meter::-moz-meter-bar{border-radius:4px;background:#2b628e}
.crm-workspace .crm-chart-row>:last-child{text-align:right;font-weight:700;color:#1d3b58;font-variant-numeric:tabular-nums}
.crm-workspace .crm-today-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.crm-workspace .crm-today-section{min-width:0;padding:20px;border:1px solid #dce4ef;border-radius:12px;background:#f3f6fa}
.crm-workspace .crm-today-section>h3{font-size:13px;margin:0 0 14px;color:#48647f}
.crm-workspace .crm-today-section .crm-priority{padding:16px;margin:10px 0;background:#fff}
.crm-workspace .crm-today-section .crm-priority:last-child{margin-bottom:0}
.crm-workspace .crm-today-section p{font-size:12px}
/* Fixed drawer stays outside sales grid sizing. Its existing JS owns focus/close. */
.crm-workspace .crm-lead-details[role=dialog]:not([hidden]){position:fixed;inset:0 0 0 auto;z-index:1000;display:block;width:min(600px,calc(100vw - 24px));height:100dvh;max-height:100dvh;min-width:0;margin:0;padding:30px 28px 40px;border:0;border-left:1px solid #cbd8e6;border-radius:0;background:#f8fafc;box-shadow:-18px 0 45px #0c274b26,0 0 0 100vmax #071a314d;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.crm-workspace .crm-lead-details[role=dialog]>h2{max-width:calc(100% - 54px);margin:0 0 22px;font-size:22px;line-height:1.4}
.crm-workspace .crm-lead-details[role=dialog] .crm-detail-close{position:absolute;top:19px;right:18px;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #cbd7e5;border-radius:8px;background:#fff;color:#456079;font-size:12px}
.crm-workspace .crm-lead-details[role=dialog] .crm-detail-close:hover:not(:disabled){background:#eaf0f7;border-color:#a9bdd2;color:#173c63}
.crm-workspace .crm-lead-details[role=dialog] dl{grid-template-columns:minmax(105px,150px) minmax(0,1fr);gap:11px 16px;padding:18px;border:1px solid #e0e7f0;border-radius:10px;background:#fff}
.crm-workspace .crm-lead-details[role=dialog]>button:not(.crm-detail-close){margin:5px 6px 5px 0;min-height:44px}
.crm-workspace .crm-lead-details[role=dialog] form{max-width:none}
body:has(.crm-lead-details[role=dialog]:not([hidden])){overflow:hidden}
@media(min-width:1000px){
 .crm-workspace .crm-lead-workspace{grid-template-columns:184px minmax(0,1fr);gap:26px}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{position:sticky;top:24px;display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:12px;margin:0;min-height:292px;border-color:#173b61;background:#102c4d;overflow:visible}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button{width:100%;padding:11px 13px;background:transparent;color:#d3e0ee;text-align:left;white-space:normal}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]{background:#fff;color:#173d63;border-color:#fff;box-shadow:0 3px 9px #061b3224}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button:hover:not(:disabled){background:#244b70;color:#fff}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]:hover:not(:disabled){background:#f0f5fb;color:#173d63}
}
@media(max-width:760px){
 .crm-workspace .crm-chart-grid,.crm-workspace .crm-today-grid{grid-template-columns:1fr;gap:14px}
 .crm-workspace .crm-chart,.crm-workspace .crm-today-section{padding:18px}
 .crm-workspace .crm-lead-filters{gap:10px;padding:12px}
 .crm-workspace .crm-lead-filters>input,.crm-workspace .crm-lead-filters>select,.crm-workspace .crm-lead-filters label{flex-basis:100%;width:100%}
}
@media(max-width:600px){
 .crm-workspace .crm-lead-table{border:0;background:transparent;overflow:visible}
 .crm-workspace .crm-lead-table table,.crm-workspace .crm-lead-table tbody{display:block;width:100%}
 .crm-workspace .crm-lead-table thead{display:none}
 .crm-workspace .crm-lead-table tr{display:block;margin:0 0 12px;padding:6px 14px;border:1px solid #dce4ef;border-radius:11px;background:#fff}
 .crm-workspace .crm-lead-table td{display:grid;grid-template-columns:minmax(86px,.65fr) minmax(0,1.35fr);gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #edf2f7;font-size:12px}
 .crm-workspace .crm-lead-table td::before{content:attr(data-label);color:#647a90;font-size:11px;font-weight:600}
 .crm-workspace .crm-lead-table td:last-child{border-bottom:0}
 .crm-workspace .crm-lead-table td button{width:100%;padding:4px 0;font-size:13px}
 .crm-workspace .crm-lead-details[role=dialog]:not([hidden]){inset:0; width:100%;padding:24px 18px 36px;border:0;box-shadow:none;scrollbar-gutter:auto}
 .crm-workspace .crm-lead-details[role=dialog]>h2{font-size:21px;margin-bottom:19px}
 .crm-workspace .crm-lead-details[role=dialog] .crm-detail-close{top:15px;right:14px}
 .crm-workspace .crm-lead-details[role=dialog] dl{grid-template-columns:1fr;gap:4px;padding:15px}
 .crm-workspace .crm-lead-details[role=dialog] dd{margin:0 0 12px}
 .crm-workspace .crm-lead-details[role=dialog] dd:last-child{margin-bottom:0}
 .crm-workspace .crm-lead-details[role=dialog]>button:not(.crm-detail-close){width:100%;margin:5px 0}
 .crm-workspace .crm-lead-details[role=dialog] form{gap:15px}
 .crm-workspace .crm-lead-details[role=dialog] .crm-draft-notice{padding:13px}
}
@media(max-width:360px){
 .crm-workspace .crm-chart-row{grid-template-columns:minmax(65px,1fr) minmax(35px,1fr) 20px;gap:8px;font-size:11px}
 .crm-workspace .crm-lead-table td{grid-template-columns:76px minmax(0,1fr);gap:8px}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button{padding-inline:12px}
}
@media(max-width:600px){.crm-workspace form input,.crm-workspace form select,.crm-workspace form textarea,.crm-workspace .crm-lead-filters input,.crm-workspace .crm-lead-filters select{font-size:16px}}

/* C157: the existing create form follows the active Today/Leads heading. */
.crm-workspace .crm-context-create{margin:0 0 18px}
.crm-workspace .crm-context-create .crm-create-lead>button{background:#955e0a;border-color:#895608;color:#fff}
.crm-workspace .crm-context-create .crm-create-lead>button:hover:not(:disabled){background:#784b08;border-color:#784b08}

/* Keep the mobile table name available to assistive technology without a
   table-caption box collapsing beside block-layout cards. */
@media(max-width:600px){.crm-workspace .crm-lead-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}

/* A03 existing record editors: block labels, bounded controls and responsive fields. */
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor){min-width:0;margin-top:24px}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor) label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;line-height:1.5}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor) :is(input,select,textarea){display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #7e8ea3;border-radius:8px;background:#fff;color:#192d45;font:inherit;font-size:16px}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor) textarea{min-height:96px;resize:vertical}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor) :is(input,select,textarea):focus-visible{outline:3px solid #173e65;outline-offset:2px}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor) :is(input,select,textarea):disabled{background:#f3f5f8;color:#596a7d;cursor:not-allowed}
.crm-workspace .crm-finance-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.crm-workspace .crm-finance-editor>:is(h3,p,div){grid-column:1/-1;min-width:0;overflow-wrap:anywhere}
.crm-workspace .crm-finance-editor>div:first-of-type,.crm-workspace .crm-inventory-editor-form,.crm-workspace .crm-inventory-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.crm-workspace .crm-inventory-editor-form>div,.crm-workspace .crm-inventory-editor-form>label:has(textarea),.crm-workspace .crm-inventory-editor-fields>label:has(textarea),.crm-workspace .crm-finance-editor>div:first-of-type>label:has(textarea){grid-column:1/-1}
.crm-workspace .crm-inventory-editor-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor) button{min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){
 .crm-workspace .crm-finance-editor,.crm-workspace .crm-finance-editor>div:first-of-type,.crm-workspace .crm-inventory-editor-form,.crm-workspace .crm-inventory-editor-fields{grid-template-columns:minmax(0,1fr)}
 .crm-workspace .crm-finance-editor>button,.crm-workspace .crm-inventory-editor-actions>button{width:100%}
}

/* Disabled permission/preview controls are not evidence of an in-flight save. */
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor) button:disabled{cursor:not-allowed}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor)[aria-busy="true"] button:disabled{cursor:wait}

/* DEV sales navigation: visible from the first viewport, independent of summary height. */
@media(min-width:1000px){
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:26px;align-items:start}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>*{grid-column:2;min-width:0}
 .crm-workspace .crm-lead-workspace:has(> .crm-sales-nav){display:contents}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{grid-column:1;grid-row:1 / span 5;align-self:start;position:sticky;top:37px;margin:-16px 0 0;gap:4px;padding:8px;min-height:0;max-height:calc(100vh - 49px);max-height:calc(100dvh - 49px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 .crm-workspace .crm-sales-content{grid-column:2;min-width:0}
}

/* A03 visual batch 1: shell presentation only; scope, forms and handlers retained. */
.crm-workspace{width:min(1440px,100%);color:#102443;background:#f7faff;box-shadow:0 8px 32px #10244308}
.crm-workspace .crm-app-header{margin-bottom:22px;padding-bottom:18px}
.crm-workspace .crm-brand{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.crm-workspace .crm-brand-title{margin:0;line-height:0}
.crm-workspace .crm-brand-title picture{display:block}
.crm-workspace .crm-brand-title img{display:block;width:auto;height:42px;max-width:100%;object-fit:contain;flex:none}
.crm-workspace .crm-brand-copy p{margin:0;color:#536882;font-size:12px}
.crm-workspace .crm-page-heading{margin-bottom:20px}
.crm-workspace .crm-page-heading h1{font-size:26px;letter-spacing:-.025em}
.crm-workspace .crm-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
.crm-workspace .crm-summary article{padding:17px 18px;border-radius:11px;box-shadow:none}
.crm-workspace .crm-summary h3{color:#536882;margin-bottom:8px}
.crm-workspace .crm-summary p{font-size:28px;font-variant-numeric:tabular-nums}
.crm-workspace .crm-context-create .crm-create-lead>button{background:#1769f2;border-color:#1769f2}
.crm-workspace .crm-context-create .crm-create-lead>button:hover:not(:disabled){background:#1258ce;border-color:#1258ce}
.crm-workspace .crm-lead-filters,.crm-workspace .crm-lead-table{box-shadow:none;border-radius:10px}
.crm-workspace .crm-lead-table th{color:#536882;background:#f0f4fa}
.crm-workspace .crm-lead-command-center{margin:18px 0 20px;padding:20px;border:1px solid #dce4ef;border-radius:11px;background:#fff}
.crm-workspace .crm-lead-command-center h3{font-size:15px;margin-bottom:3px}
.crm-workspace .crm-lead-command-center>p{font-size:12px;margin-bottom:14px}
.crm-workspace .crm-lead-command-center>p:last-child{margin:14px 0 0;padding-top:12px;border-top:1px solid #e7edf4;color:#536882}
.crm-workspace .crm-lead-command-center dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 18px;margin:0;padding:0}
.crm-workspace .crm-lead-command-center dt{grid-row:1;font-size:12px;line-height:1.5;color:#536882}
.crm-workspace .crm-lead-command-center dd{grid-row:2;margin:0;font-size:25px;line-height:1.3;font-weight:700;color:#102443;font-variant-numeric:tabular-nums}
@media(max-width:760px){.crm-workspace .crm-lead-command-center{padding:16px}.crm-workspace .crm-lead-command-center dl{grid-template-columns:minmax(0,1fr) auto;gap:0;align-items:center}.crm-workspace .crm-lead-command-center dt,.crm-workspace .crm-lead-command-center dd{grid-row:auto;padding:9px 0;border-bottom:1px solid #edf2f7}.crm-workspace .crm-lead-command-center dd{padding-left:14px;font-size:19px;text-align:right}}
@media(min-width:1000px){
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){grid-template-columns:216px minmax(0,1fr);column-gap:28px}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{background:#08182f;border-color:#08182f;border-radius:12px;padding:12px 10px;gap:3px}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav::before{content:'';display:block;flex:0 0 48px;width:100%;min-height:48px;margin:4px 0 14px;background:url('/assets/brand/logo/crm-sidebar-on-dark.png') center/contain no-repeat}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button{font-size:13px;line-height:1.45;font-weight:550;border-radius:7px;padding:11px 13px;min-height:44px;color:#dbe7f5}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]{background:#fff;color:#102443;border-color:#fff;box-shadow:inset 3px 0 #ff7b21}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button:hover:not(:disabled){background:#183451;color:#fff}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]:hover:not(:disabled){background:#edf3fc;color:#102443}
}
@media(min-width:1280px){.crm-workspace .crm-summary{grid-template-columns:repeat(6,minmax(0,1fr))}.crm-workspace .crm-summary article{padding:17px 14px}}
@media(max-width:600px){
 .crm-workspace .crm-brand-title img{height:32px;width:auto;max-width:100%}
 .crm-workspace .crm-brand-copy p{font-size:11px}
 .crm-workspace .crm-page-heading h1{font-size:23px}
 .crm-workspace .crm-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .crm-workspace .crm-summary article{padding:15px}.crm-workspace .crm-summary p{font-size:25px}
}

/* Inventory filter controls: bound long project/mandate options on small screens. */
.crm-workspace .crm-inventory-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0;min-width:0;padding:16px;border:1px solid #dce4ef;border-radius:12px;background:#fff}
.crm-workspace .crm-inventory-filters label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;color:#52647a}
.crm-workspace .crm-inventory-filters :is(input,select){box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #bdcbdc;border-radius:8px;background:#fff;color:#172b46;font:inherit;font-size:16px}
@media(max-width:600px){.crm-workspace .crm-inventory-filters{grid-template-columns:minmax(0,1fr);padding:14px}}

/* A03 Team presentation: stable class hooks, no data or permission changes. */
.crm-workspace .crm-team-workspace>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;margin-bottom:16px}
.crm-workspace .crm-team-workspace>header h2{margin:0}
.crm-workspace .crm-team-workspace>header button{flex:0 1 auto;white-space:normal}
.crm-workspace .crm-team-search{display:grid;gap:7px;max-width:640px;margin:18px 0;padding:15px;border:1px solid #dce4ef;border-radius:10px;background:#fff;color:#536882;font-size:12px;font-weight:600}
.crm-workspace .crm-team-search input{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #bdcbdc;border-radius:8px;background:#fff;color:#172b46;font:inherit;font-size:16px;line-height:1.5}
.crm-workspace .crm-team-summary:not(:empty){display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:18px 0;padding:18px;border:1px solid #dce4ef;border-radius:11px;background:#fff}
.crm-workspace .crm-team-summary>p{min-width:0;margin:0;font-size:14px;font-weight:600;color:#203e59}
.crm-workspace .crm-team-summary>p:nth-child(n+3){font-size:12px;font-weight:400;color:#536882}
.crm-workspace .crm-team-workspace>details{margin:0 0 22px;border:1px solid #dce4ef;border-radius:10px;background:#fff;padding:0 14px}
.crm-workspace .crm-team-workspace>details>summary{min-height:44px;padding:12px 0;font-size:13px;font-weight:600;color:#29455f;cursor:pointer}
.crm-workspace .crm-team-workspace>details>summary:focus-visible{outline:3px solid #e5aa37;outline-offset:3px;border-radius:4px}
.crm-workspace .crm-team-workspace>details>div{padding-bottom:4px}
.crm-workspace .crm-team-workspace>section{margin-top:24px;min-width:0}
.crm-workspace .crm-team-workspace>section>h3{margin:0 0 6px;font-size:16px}
.crm-workspace .crm-team-workspace>section>p{font-size:12px}
.crm-workspace .crm-team-workspace .crm-priority{min-width:0;margin:0 0 12px;background:#fff}
.crm-workspace .crm-team-workspace .crm-priority h4{margin:0 0 8px;color:#102443;font-size:15px;line-height:1.5;font-weight:650}
.crm-workspace .crm-team-workspace .crm-priority p{margin:0 0 7px;font-size:13px;line-height:1.6}
.crm-workspace .crm-team-workspace .crm-priority p:last-child{margin-bottom:0}
@media(min-width:1100px){.crm-workspace .crm-team-workspace>section>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.crm-workspace .crm-team-workspace .crm-priority{margin-bottom:0}}
@media(max-width:600px){.crm-workspace .crm-team-workspace>header{align-items:flex-start}.crm-workspace .crm-team-workspace>header button{width:100%}.crm-workspace .crm-team-search{padding:12px}.crm-workspace .crm-team-summary:not(:empty){padding:15px}.crm-workspace .crm-team-workspace>section{margin-top:20px}}

/* Existing Today workspace refinement: one bounded queue, stable shell rows. */
.crm-workspace .crm-app-header{margin-bottom:12px;padding-bottom:10px}
.crm-workspace .crm-page-heading{margin-bottom:12px;gap:10px}
.crm-workspace .crm-page-heading h1{font-size:22px;margin:0 0 3px}
.crm-workspace .crm-eyebrow{display:none}
.crm-workspace .crm-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.crm-workspace .crm-summary article{padding:10px 12px}
.crm-workspace .crm-summary h3{margin-bottom:4px;font-size:11px}
.crm-workspace .crm-summary p{font-size:24px}
.crm-workspace .crm-role-readiness{margin:0 0 10px;font-size:12px}
.crm-workspace .crm-role-readiness>summary{cursor:pointer;min-height:28px}
.crm-workspace .crm-today>h2{margin:0 0 8px;font-size:18px}
.crm-workspace .crm-queue-filters{margin:0 0 8px;padding:0;gap:6px;border:0}
.crm-workspace .crm-queue-filters button{padding:8px 12px;min-height:44px}
.crm-workspace .crm-action-queue{overflow-x:auto;border:1px solid #dce4ef;border-radius:8px;background:#fff}
.crm-workspace .crm-action-queue table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}
.crm-workspace .crm-action-queue caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.crm-workspace .crm-action-queue th{padding:9px 10px;background:#f0f4fa;color:#536882;font-size:11px}
.crm-workspace .crm-action-queue td{padding:7px 10px;border-top:1px solid #e7edf4;font-size:12px;vertical-align:middle;overflow-wrap:anywhere}
.crm-workspace .crm-action-queue th:nth-child(3){width:30%}
.crm-workspace .crm-action-queue th:last-child{width:82px}
.crm-workspace .crm-action-queue button{padding:8px 10px;min-height:44px}
.crm-workspace .crm-today>p{font-size:11px;margin:6px 0}
.crm-workspace .crm-today>nav[aria-label='Work queue pages']{margin:8px 0;padding:0;border:0}
.crm-workspace .crm-recent-compact{margin-top:16px;padding-top:12px;border-top:1px solid #dce4ef}
.crm-workspace .crm-recent-compact h3{font-size:14px;margin-bottom:6px}
.crm-workspace .crm-recent-compact p{font-size:12px;margin:0;padding:5px 0;border-bottom:1px solid #edf2f7}
@media(min-width:1000px){
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){grid-template-rows:auto auto auto auto minmax(0,1fr)}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-app-header{grid-row:1}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-page-heading{grid-row:2}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-summary{grid-row:3}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-role-readiness{grid-row:4}
 .crm-workspace .crm-sales-content{grid-row:5}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{grid-row:1 / span 5;top:24px;margin:0;max-height:calc(100dvh - 48px);align-self:start}
}
@media(max-width:999px){
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior:contain;max-width:100%;padding:8px;gap:6px;background:#08182f;border-radius:8px}
 .crm-workspace .crm-sales-nav button{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:600px){
 body:has(.crm-workspace:not([hidden])){padding:8px}
 .crm-workspace{padding:14px;border-radius:12px}
 .crm-workspace .crm-page-heading{align-items:flex-start;flex-wrap:wrap}
 .crm-workspace .crm-page-actions button{padding:8px 12px}
 .crm-workspace .crm-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .crm-workspace .crm-summary article{padding:8px 10px}
 .crm-workspace .crm-action-queue{overflow:visible;border:0;background:transparent}
 .crm-workspace .crm-action-queue table,.crm-workspace .crm-action-queue tbody{display:block;width:100%}
 .crm-workspace .crm-action-queue thead{display:none}
 .crm-workspace .crm-action-queue tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:10px;margin:0 0 7px;border:1px solid #dce4ef;border-radius:8px;background:#fff}
 .crm-workspace .crm-action-queue td{display:block;border:0;padding:0;font-size:12px}
 .crm-workspace .crm-action-queue td:first-child{font-weight:700;font-size:14px}
 .crm-workspace .crm-action-queue td:nth-child(2){font-size:10px;text-align:right}
 .crm-workspace .crm-action-queue td:nth-child(3){grid-column:1/-1}
 .crm-workspace .crm-action-queue td:nth-child(4){align-self:center;color:#536882}
 .crm-workspace .crm-action-queue td:last-child{grid-column:2;grid-row:3}
 .crm-workspace .crm-action-queue td:nth-child(3)::before{content:'Next: ';font-weight:600}
 .crm-workspace .crm-action-queue td:nth-child(4)::before{content:'Due: '}
}
@media(max-width:999px){
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){display:flex;flex-direction:column}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>*{width:100%;min-width:0}
 .crm-workspace .crm-lead-workspace:has(> .crm-sales-nav){display:contents}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{order:-1;margin:0 0 12px;align-self:stretch}
}

/* Collapsed activity disclosure; native details supplies keyboard semantics. */
.crm-workspace details.crm-recent-compact{margin-top:12px;padding:0 12px;border:1px solid #dce4ef;border-radius:8px;background:#fff}
.crm-workspace .crm-recent-compact>summary{min-height:44px;padding:11px 0;color:#29455f;font-size:13px;font-weight:600;cursor:pointer}
.crm-workspace .crm-recent-compact>summary:focus-visible{outline:3px solid #e5aa37;outline-offset:2px}
.crm-workspace .crm-recent-compact>a{display:inline-flex;align-items:center;min-height:44px;margin:4px 0;color:#173e65;font-size:13px;font-weight:600;text-underline-offset:3px}
@media(min-width:1000px){
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){align-content:start}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{grid-column:1;grid-row:1 / span 5;align-self:start;justify-content:flex-start;margin-block:0;overflow-y:auto;overscroll-behavior-y:contain}
 .crm-workspace .crm-sales-nav>button{flex-shrink:0}
}
/* Desktop nav remains at its initial shell inset during document scrolling. */
@media(min-width:1000px){
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{position:fixed;top:53px;left:max(53px,calc((100% - 1440px)/2 + 29px));width:216px;max-height:calc(100dvh - 77px);margin:0;z-index:20}
}

/* Compact work table; restriction stays separate from server urgency. */
.crm-workspace .crm-queue-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.35;font-weight:600}
.crm-workspace .crm-contact-restriction{display:inline-block;margin-top:3px;padding:1px 5px;border:1px solid #d4dce7;border-radius:4px;background:#f1f4f8;color:#475b73;font-size:10px;line-height:1.4}
.crm-workspace .crm-urgency-badge{display:inline-block;padding:2px 6px;border-radius:4px;font-size:11px;line-height:1.45;color:#496179;background:#edf2f7}
.crm-workspace .crm-urgency-badge[data-urgency=URGENT]{color:#9f2334;background:#fff0f1}
.crm-workspace .crm-urgency-badge[data-urgency=HIGH]{color:#8b5600;background:#fff5df}
.crm-workspace .crm-action-queue td[data-due=overdue]{color:#a32536;font-weight:600}
.crm-workspace .crm-action-queue td[data-due=today]{color:#8b5600;font-weight:600}
@media(min-width:601px){
 .crm-workspace .crm-action-queue th:first-child{width:27%}
 .crm-workspace .crm-action-queue th:nth-child(2){width:12%}
 .crm-workspace .crm-action-queue th:nth-child(3){width:34%}
 .crm-workspace .crm-action-queue th:nth-child(4){width:17%}
 .crm-workspace .crm-action-queue th:last-child{width:10%}
 .crm-workspace .crm-action-queue td{padding:7px 10px;font-size:12px;line-height:1.4}
 .crm-workspace .crm-action-queue tr{height:56px}
 .crm-workspace .crm-action-queue button{min-height:32px;min-width:54px;padding:5px 9px;font-size:12px;border-radius:6px}
}
@media(max-width:600px){.crm-workspace .crm-action-queue button{min-height:44px}.crm-workspace .crm-action-queue .crm-queue-name{font-size:14px}.crm-workspace .crm-action-queue td:nth-child(2){align-self:start}}

@media(min-width:601px){
 .crm-workspace .crm-action-queue td{padding-block:5px}
 .crm-workspace .crm-action-queue .crm-queue-name{line-height:1.25}
 .crm-workspace .crm-action-queue .crm-contact-restriction{margin-top:2px;line-height:1.2}
}

/* H1 reuses workspace colours and compact form controls. */
.crm-hrms {min-width:0;padding:16px}.crm-hrms-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.crm-hrms label{display:flex;flex-direction:column;gap:6px;font-size:14px}.crm-hrms input,.crm-hrms select{min-width:0;width:100%;min-height:44px;font-size:14px;font-weight:400;padding:8px;box-sizing:border-box}.crm-hrms input[type=checkbox]{width:24px;min-height:24px}.crm-hrms details{margin:12px 0}.crm-hrms summary{cursor:pointer;padding:8px 0}.crm-hrms-staff article{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:12px;border-bottom:1px solid #dce5f0;padding:10px 0;font-size:14px}.crm-hrms nav{display:flex;gap:8px}.crm-hrms button{min-height:44px}.crm-hrms [role=status]{min-height:24px}@media(max-width:700px){.crm-hrms-form{grid-template-columns:1fr}.crm-hrms-staff article{grid-template-columns:1fr;gap:4px}.crm-hrms input,.crm-hrms select{font-size:16px}.crm-hrms{padding:10px}.crm-hrms .crm-priority{overflow-wrap:anywhere}}

/* Organization cards use their actual field labels, independently of next-action queues. */
@media(max-width:600px){
 .crm-workspace .crm-hrms table[aria-label="Business organization directory"] tbody tr{grid-template-columns:minmax(0,1fr);gap:6px}
 .crm-workspace .crm-hrms table[aria-label="Business organization directory"] td:nth-child(n){grid-column:1;grid-row:auto;text-align:left;align-self:auto;font-size:13px;overflow-wrap:anywhere}
 .crm-workspace .crm-hrms table[aria-label="Business organization directory"] td:nth-child(n)::before{content:attr(data-label) ": ";font-weight:600;color:#536882}
}

/* CRM167 premium workspace foundation. Presentation only; no data or history synthesis. */
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav){background:#f5f7fc;color:#12213d;border-color:#e2e8f2;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-app-header{border-color:#dfe6f1;padding-bottom:16px;margin-bottom:20px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-page-heading{gap:16px;margin-bottom:22px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-page-heading h1{font-size:clamp(26px,2.7vw,38px);letter-spacing:-.035em;line-height:1.15;margin:0 0 7px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article{background:#fff;border:1px solid #dfe6f1;border-radius:16px;padding:20px;box-shadow:0 3px 10px #12213d05;min-width:0}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary h3{color:#4d5e78;font-size:13px;line-height:1.5;margin-bottom:12px;font-weight:600}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary p{font-size:34px;font-weight:750;letter-spacing:-.035em;font-variant-numeric:tabular-nums;line-height:1.15}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-today>h2{font-size:23px;letter-spacing:-.025em;margin-bottom:18px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-queue-filters{gap:8px;margin-bottom:16px;flex-wrap:wrap}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-queue-filters button{background:#fff;color:#334561;border-color:#d7dfed;border-radius:10px;min-height:44px;padding:10px 15px;font-weight:600}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-queue-filters button[aria-pressed=true]{background:#142e54;color:#fff;border-color:#142e54}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue{border:1px solid #dfe6f1;border-radius:14px;background:#fff;box-shadow:0 3px 12px #12213d05}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue th{background:#f0f3fa;color:#4c5c75;padding:13px 14px;font-size:12px;font-weight:650}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue td{padding:11px 14px;border-top-color:#e8edf5;font-size:13px;line-height:1.5}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue tbody tr:hover{background:#f8faff}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue button{background:#142e54;color:#fff;border-color:#142e54;border-radius:8px;min-height:44px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) button:focus-visible,.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(min-width:1000px){
 body:has(.crm-workspace:not([hidden])> .crm-lead-workspace .crm-sales-nav){padding:0;background:#f5f7fc;display:block}
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){width:100%;max-width:none;min-height:100svh;margin:0;padding:26px 28px;grid-template-columns:232px minmax(0,1fr);column-gap:24px;border:0;border-radius:0;box-shadow:none}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{position:fixed;inset:0 auto 0 0;width:256px;max-height:100dvh;height:100dvh;min-height:0;margin:0;padding:26px 14px;gap:5px;border:0;border-radius:0;background:#08172f;z-index:20;overflow-y:auto;overscroll-behavior:contain}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav::before{margin:3px 0 24px;flex:0 0 48px}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button{padding:12px 15px;min-height:46px;border-radius:9px;color:#dbe7f5;background:transparent;border-color:transparent;box-shadow:none;font-size:14px}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]{background:#1d4ed8;border-color:#3b6ce5;color:#fff;box-shadow:none}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button:hover:not(:disabled){background:#183354;color:#fff}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]:hover:not(:disabled){background:#234fc5;color:#fff}
 .crm-workspace .crm-lead-workspace .crm-sales-nav button:focus-visible{outline-color:#fff;outline-offset:2px}
}
@media(min-width:1000px) and (max-width:1199px){
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){grid-template-columns:192px minmax(0,1fr);gap:20px;padding:22px 20px}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{width:212px;padding:22px 12px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:999px){
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article{padding:16px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary p{font-size:30px}
}
@media(max-width:600px){
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav){padding:16px 12px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary{gap:10px;margin-bottom:20px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article{padding:14px 12px;border-radius:12px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary h3{font-size:12px;margin-bottom:8px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue{border:0;background:transparent;box-shadow:none;overflow:visible}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue td{padding:0;border:0;font-size:12px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue td:first-child{font-size:14px}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue tr{padding:13px;border-radius:12px}
}

/* CRM169: readable inactive navigation labels on the existing mobile navy surface. */
@media(max-width:999px){.crm-workspace .crm-lead-workspace .crm-sales-nav button:not(:disabled){color:#dbe7f5}.crm-workspace .crm-lead-workspace .crm-sales-nav button[aria-pressed=true]{color:#fff}.crm-workspace .crm-lead-workspace .crm-sales-nav button:focus-visible{outline-color:#fff}}

/* CRM170: actual authorized queue focus, never fabricated appointment times. */
.crm-today-focus{background:#fff;color:#12213d;border:1px solid #dfe6f1;border-radius:16px;padding:20px;align-self:start}
.crm-today-focus h2{font-size:21px;margin:0 0 8px}.crm-today-focus>p{color:#4d5e78;font-size:13px}.crm-today-focus article{padding:16px 0;border-top:1px solid #e8edf5}.crm-today-focus h3{font-size:14px;margin:0 0 7px;overflow-wrap:anywhere}.crm-today-focus article p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.crm-today-focus article span{display:block;font-size:12px;color:#4d5e78;margin:8px 0}.crm-today-focus button{min-height:44px;background:#142e54;color:#fff;border-color:#142e54;border-radius:8px}
@media(min-width:1200px){.crm-today{display:grid;grid-template-columns:minmax(0,1fr) 280px;column-gap:20px;align-items:start}.crm-today>*{grid-column:1;min-width:0}.crm-today>.crm-today-focus{grid-column:2;grid-row:1/span 12}.crm-today[hidden]{display:none}}
@media(max-width:1199px){.crm-today-focus{margin-top:20px}}

/* CRM171: focus ring is distinct from the selected blue page. */
.crm-workspace .crm-lead-workspace .crm-sales-nav button:focus-visible{outline:3px solid #fff;outline-offset:-4px;text-decoration:underline;text-underline-offset:4px}

/* CRM172: compact premium Today presentation, all values remain actual authorized data. */
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-app-header{padding-bottom:14px;margin-bottom:20px;min-height:48px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-brand-copy p{color:#12213d;font-size:16px;font-weight:700}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-page-heading{margin-bottom:18px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article{position:relative;padding:18px;min-height:112px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary p{font-size:32px;margin:0}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article:nth-child(3) p{color:#b42318}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article:nth-child(4) p{color:#6d28d9}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue table{width:100%;table-layout:fixed}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue td{overflow-wrap:anywhere}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue th:nth-child(1){width:29%}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue th:nth-child(2){width:13%}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue th:nth-child(3){width:28%}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue th:nth-child(4){width:17%}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue th:nth-child(5){width:13%}
.crm-today-focus{padding:18px}.crm-today-focus>h2{line-height:1.25;margin:0 0 8px}.crm-today-focus>p{margin:0 0 16px;line-height:1.5}.crm-today-focus article{padding:12px 0}.crm-today-focus article p{margin:5px 0}.crm-today-focus article button{margin-top:7px}
.crm-loaded-status{border-top:1px solid #dfe6f1;padding-top:18px;margin-top:14px}.crm-loaded-status h3{margin:0 0 8px;font-size:17px}.crm-loaded-status>p{font-size:12px;color:#4d5e78;line-height:1.5}.crm-loaded-status svg{display:block;width:160px;height:160px;max-width:100%;margin:14px auto;color:#12213d}.crm-loaded-status svg text{fill:currentColor;font-size:24px;font-weight:700}.crm-loaded-status ul{list-style:none;padding:0;margin:0}.crm-loaded-status li{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:7px 0;overflow-wrap:anywhere}.crm-loaded-status li strong{white-space:nowrap}.crm-history-availability{border-top:1px solid #e8edf5;padding-top:12px}
@media(min-width:1000px){.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-app-header .crm-brand-title{display:none}.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-app-header .crm-brand{min-height:32px}.crm-workspace .crm-lead-workspace .crm-sales-nav button{min-height:44px;padding:10px 14px}}
@media(min-width:1200px){.crm-today{column-gap:18px;grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:600px){.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-action-queue table{table-layout:auto}.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article{min-height:100px;padding:13px 12px}.crm-today-focus{padding:16px}}

/* CRM173: remove empty implicit rows and compact real Focus without changing operations. */
@media(min-width:1200px){.crm-today>.crm-today-focus{grid-row:1/span 8}}
.crm-workspace .crm-today-focus>h2{margin:0 0 8px;font-size:20px;line-height:1.25}
.crm-workspace .crm-today-focus article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:12px 0}
.crm-workspace .crm-today-focus article h3{grid-column:1/-1;margin:0;font-size:14px;line-height:1.4}
.crm-workspace .crm-today-focus article p{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5}
.crm-workspace .crm-today-focus article p:nth-child(3){grid-column:1;grid-row:3;color:#4d5e78}
.crm-workspace .crm-today-focus article span{grid-column:1;grid-row:4;margin:0;font-size:11px;line-height:1.5}
.crm-workspace .crm-today-focus article button{grid-column:2;grid-row:3/span 2;align-self:center;margin:0;padding:8px 10px;font-size:12px;min-height:44px}
.crm-workspace .crm-loaded-status h3{font-size:16px;margin:0 0 8px}
.crm-workspace .crm-loaded-status svg{width:144px;height:144px;margin:12px auto}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article::after{content:'';position:absolute;right:14px;top:16px;width:30px;height:30px;background-color:#eaf1ff;border-radius:8px;background-position:center;background-repeat:no-repeat;background-size:18px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article:nth-child(1)::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2m20%200v-2a4%204%200%200%200-3-3.87M16%203a4%204%200%200%201%200%208%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3C%2Fsvg%3E")}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article:nth-child(2)::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23334155%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%203v4M8%203v4M3%2011h18%22%2F%3E%3C%2Fsvg%3E")}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article:nth-child(3)::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b42318%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%2010%2018H2L12%203Z%20M12%209v4m0%204h.01%22%2F%3E%3C%2Fsvg%3E")}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary article:nth-child(4)::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236d28d9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010c0%206-8%2012-8%2012S4%2016%204%2010a8%208%200%201%201%2016%200Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E")}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button::before{content:"";display:inline-block;vertical-align:-3px;width:17px;height:17px;margin-right:10px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E");pointer-events:none}}

/* CRM174 shell: sidebar participates in the root grid from document top. */
@media(min-width:1000px){
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){padding:0 28px 26px 0;grid-template-columns:256px minmax(0,1fr);column-gap:28px;min-height:100dvh}
 .crm-workspace .crm-lead-workspace nav.crm-sales-nav{position:sticky;inset:0 auto auto 0;grid-column:1;grid-row:1/span 5;width:256px;height:100dvh;max-height:100dvh;margin:0;align-self:start;border-radius:0}
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-app-header{padding-top:20px;margin-bottom:16px}
}
@media(min-width:1000px) and (max-width:1199px){.crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){padding-right:20px;grid-template-columns:212px minmax(0,1fr);column-gap:20px}.crm-workspace .crm-lead-workspace nav.crm-sales-nav{width:212px}}
.crm-workspace .crm-sales-content>section:not([hidden]):has(> .crm-lead-filters){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start}
.crm-workspace .crm-sales-content>section:has(> .crm-lead-filters)>h2{grid-column:1;grid-row:1;margin:0;align-self:center;font-size:20px}
.crm-workspace .crm-sales-content>section:has(> .crm-lead-filters)>.crm-context-create{grid-column:2;grid-row:1;margin:0}
.crm-workspace .crm-sales-content>section:has(> .crm-lead-filters)>.crm-context-create:has(form:not([hidden])){grid-column:1/-1;grid-row:2}
.crm-workspace .crm-sales-content>section:has(> .crm-lead-filters)>.crm-lead-filters,.crm-workspace .crm-lead-table,.crm-workspace .crm-lead-footer{grid-column:1/-1;min-width:0}
.crm-workspace .crm-lead-filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:10px;padding:12px;margin:0;align-items:center;border-color:#dfe6f1;border-radius:12px;box-shadow:0 2px 8px #12213d05}
.crm-workspace .crm-lead-filters>input,.crm-workspace .crm-lead-filters>select{width:100%;min-width:0;height:44px;padding:9px 12px;border-color:#d7dfed;font-size:13px}
.crm-workspace .crm-lead-filters>button{height:44px;background:#f3f6fc;border-color:#d7dfed;color:#334561;white-space:nowrap}
.crm-workspace .crm-lead-table{margin:0;background:#fff;border:1px solid #dfe6f1;border-radius:12px;box-shadow:0 3px 12px #12213d05}
.crm-workspace table.crm-lead-rows{width:100%;table-layout:fixed;border-collapse:collapse}
.crm-workspace .crm-lead-rows th{padding:12px 10px;background:#f0f3fa;color:#4c5c75;font-size:11px;font-weight:650;text-align:left}
.crm-workspace .crm-lead-rows td{padding:12px 10px;border-top:1px solid #e8edf5;font-size:12px;line-height:1.5;vertical-align:middle;overflow-wrap:anywhere}
.crm-workspace .crm-lead-rows th:nth-child(1){width:22%}.crm-workspace .crm-lead-rows th:nth-child(2){width:13%}.crm-workspace .crm-lead-rows th:nth-child(3){width:15%}.crm-workspace .crm-lead-rows th:nth-child(4){width:10%}.crm-workspace .crm-lead-rows th:nth-child(5){width:12%}.crm-workspace .crm-lead-rows th:nth-child(6){width:14%}.crm-workspace .crm-lead-rows th:nth-child(7){width:14%}
.crm-workspace .crm-lead-rows td:first-child button{display:block;width:100%;text-align:left;white-space:normal;padding:4px 0;min-height:44px;border:0;background:transparent;color:#142e54;font-size:12px;font-weight:650}
.crm-workspace .crm-lead-rows tbody tr:hover{background:#f8faff}
.crm-workspace .crm-lead-status-badge{display:inline-block;padding:3px 7px;border:1px solid #d9e4fa;border-radius:6px;background:#edf3ff;color:#254b85;font-size:11px;font-weight:600;line-height:1.4}
.crm-workspace .crm-lead-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 0;border-top:1px solid #dfe6f1}
.crm-workspace .crm-lead-footer>p{margin:0 auto 0 0;color:#4d5e78;font-size:12px}
.crm-workspace .crm-lead-footer>button{min-height:44px;padding:8px 12px;background:#fff;border-color:#d7dfed;color:#334561;font-size:12px}
@media(max-width:999px){.crm-workspace .crm-lead-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.crm-workspace .crm-lead-filters>input{grid-column:1/-1}}
@media(max-width:600px){.crm-workspace .crm-lead-filters>input,.crm-workspace .crm-lead-filters>select{font-size:16px}.crm-workspace .crm-lead-footer{flex-wrap:wrap}.crm-workspace .crm-lead-footer>p{flex-basis:100%}.crm-workspace .crm-lead-rows,.crm-workspace .crm-lead-rows tbody{display:block;width:100%}.crm-workspace .crm-lead-rows th{width:auto}.crm-workspace .crm-lead-rows td{padding:4px 0}.crm-workspace .crm-lead-table{border:0;background:transparent;box-shadow:none}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Today"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207v11h-6v-7H9v7H3Z%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Workspace leads"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2021v-2a7%207%200%200%201%2014%200v2m3-13a4%204%200%200%201%200%208m0%201a6%206%200%200%201%203%204%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Team leads"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2021v-2a7%207%200%200%201%2014%200v2m3-13a4%204%200%200%201%200%208m0%201a6%206%200%200%201%203%204%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Assigned leads"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021v-2a8%208%200%200%201%2016%200v2%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Dashboard"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2021h18M5%2017V9h3v8m4%200V3h3v14m4%200v-5h3v5%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Site visits"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%203v4m8-4v4M3%2011h18m-8%204-3%203-2-2%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Tasks"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m7%2012%203%203%207-7%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Recent activity"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204v6h6M3%2010a9%209%200%201%201%200%205m9-8v6l4%202%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Inventory & mandates"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%2010%206-10%206L2%208Zm-10%2010%2010%206%2010-6M2%2016l10%206%2010-6%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Finance"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2215%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M2%209h20m-6%205h6M5%205V2h14v3%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Brokers & referrals"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m2%209%205-5%205%203%205-3%205%205-10%2012Zm3%202%204%204m6-4-4%204%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Team & performance"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%226%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%227%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M2%2020v-3a6%206%200%200%201%2012%200v3m3%200v-3a5%205%200%200%200-2-4%22%2F%3E%3C%2Fsvg%3E")}}
@media(min-width:1000px){.crm-workspace .crm-lead-workspace .crm-sales-nav button[data-nav-label="Availability & leave"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dbe7f5%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%203v4m8-4v4M3%2011h18m-6%204h4%22%2F%3E%3C%2Fsvg%3E")}}

/* CRM174b observed QA corrections: keep sticky parent bottom aligned and allow headings to wrap. */
@media(min-width:1000px){.crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){padding-bottom:0}.crm-workspace .crm-sales-content{padding-bottom:26px}}
.crm-workspace .crm-lead-rows th{white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.crm-workspace .crm-lead-rows caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* CRM176: stationary branding and independently scrollable native nav. */
.crm-workspace .crm-lead-workspace:has(> .crm-sidebar-shell){display:contents}
.crm-workspace .crm-sidebar-shell{min-width:0}
@media(min-width:1000px){
 .crm-workspace .crm-sidebar-shell{grid-column:1;grid-row:1/span 5;position:sticky;top:0;align-self:start;width:256px;height:100dvh;background:#08172f;display:flex;flex-direction:column;padding:24px 0 0}
 .crm-workspace .crm-sidebar-shell::before{content:'';display:block;flex:0 0 48px;min-height:48px;margin:4px 14px 20px;background:url('/assets/brand/logo/crm-sidebar-on-dark.png') center/contain no-repeat}
 .crm-workspace .crm-lead-workspace .crm-sidebar-shell nav.crm-sales-nav{position:static;inset:auto;width:100%;height:auto;max-height:none;min-height:0;flex:1 1 0;padding:0 14px 18px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;grid-area:auto}
 .crm-workspace .crm-sidebar-shell nav.crm-sales-nav::before{content:none;display:none}
}
@media(min-width:1000px) and (max-width:1199px){.crm-workspace .crm-sidebar-shell{width:212px}.crm-workspace .crm-lead-workspace .crm-sidebar-shell nav.crm-sales-nav{padding-inline:12px}}
@media(max-width:999px){.crm-workspace .crm-sidebar-shell{order:-1;width:100%}.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-app-header{position:sticky;top:0;z-index:30;background:#f5f7fc;padding-top:8px}.crm-workspace .crm-sidebar-shell::before{display:none}}
/* Executive dashboard has its own analytical overview; Today remains unchanged. */
.crm-workspace[data-sales-view=Dashboard]>.crm-summary{display:none}
.crm-workspace .crm-executive-dashboard>h2{margin:0 0 6px;font-size:22px}.crm-workspace .crm-executive-dashboard>p{font-size:13px}
.crm-exec-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.crm-exec-kpis article,.crm-exec-stage,.crm-management-attention,.crm-team-workload,.crm-exec-quality>article,.crm-exec-performance{padding:18px;background:#fff;border:1px solid #dfe6f1;border-radius:14px;box-shadow:0 3px 12px #12213d05;min-width:0}
.crm-workspace .crm-exec-kpis h3{font-size:13px;margin:0 0 10px}.crm-workspace .crm-exec-kpis strong{display:block;font-size:30px;line-height:1.2;color:#12213d}.crm-workspace .crm-exec-kpis p{font-size:11px;margin:8px 0 0}.crm-workspace .crm-exec-kpis [data-metric=overdue] strong,.crm-workspace .crm-exec-kpis [data-metric=leakage] strong{color:#b42318}
.crm-exec-health,.crm-exec-quality{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin:18px 0}
.crm-exec-health>.crm-lead-command-center:not([hidden]){display:contents}.crm-exec-health>.crm-lead-command-center[hidden]{display:none}
.crm-exec-stage{grid-column:1;grid-row:1}.crm-management-attention{grid-column:2;grid-row:1}.crm-team-workload,.crm-exec-team-link{grid-column:1/-1}
.crm-workspace .crm-exec-health h3,.crm-workspace .crm-exec-quality h3,.crm-workspace .crm-exec-performance h3{font-size:17px;margin:0 0 8px}.crm-workspace .crm-exec-health p,.crm-workspace .crm-exec-quality p,.crm-workspace .crm-exec-performance p{font-size:12px;line-height:1.5}
.crm-exec-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;margin:16px 0;font-size:12px}.crm-exec-bar meter{grid-column:1/-1;width:100%;height:14px}.crm-exec-bar strong{color:#254b85}
.crm-workspace .crm-management-attention dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 10px;margin:16px 0}.crm-workspace .crm-management-attention dt{grid-row:auto;font-size:12px}.crm-workspace .crm-management-attention dd{grid-row:auto;margin:0;font-size:20px;color:#b42318;text-align:right}
.crm-workspace .crm-team-workload table{width:100%;table-layout:fixed;border-collapse:collapse}.crm-workspace .crm-team-workload th{background:#f0f3fa;text-align:left;font-size:12px;padding:10px;white-space:normal}.crm-workspace .crm-team-workload td{font-size:13px;padding:11px 10px;border-top:1px solid #e8edf5;overflow-wrap:anywhere}.crm-team-workload th:first-child{width:40%}.crm-exec-team-link{justify-self:start}
.crm-exec-quality ul,.crm-exec-quality ol{padding-left:20px;margin:10px 0;font-size:12px}.crm-exec-quality li{padding:5px 0;overflow-wrap:anywhere}.crm-exec-quality details{margin-top:12px;font-size:12px}.crm-exec-quality summary{cursor:pointer;min-height:44px;padding-block:12px;color:#254b85}
.crm-workspace .crm-exec-performance dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.crm-exec-performance dt{grid-row:1;font-size:12px}.crm-exec-performance dd{grid-row:2;margin:0;font-size:24px;font-weight:700;color:#142e54}
@media(max-width:1199px){.crm-exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.crm-exec-health,.crm-exec-quality{grid-template-columns:minmax(0,1fr)}.crm-exec-stage,.crm-management-attention,.crm-team-workload,.crm-exec-team-link{grid-column:1;grid-row:auto}.crm-exec-kpis{gap:10px}.crm-exec-kpis article{padding:14px}.crm-workspace .crm-exec-performance dl{grid-template-columns:minmax(0,1fr) auto}.crm-exec-performance dt,.crm-exec-performance dd{grid-row:auto}.crm-workspace .crm-team-workload th,.crm-workspace .crm-team-workload td{padding:8px 5px;font-size:11px}}

.crm-exec-bar meter::-webkit-meter-optimum-value{background:#2563eb}.crm-exec-kpis article{position:relative}.crm-exec-kpis article::after{content:"";position:absolute;right:14px;top:14px;width:22px;height:22px;background:center/20px no-repeat}
.crm-exec-kpis article[data-metric=total]::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2021v-2a6%206%200%200%201%2012%200v2m3-14a4%204%200%200%201%200%208m1%202%204%204%22%2F%3E%3C%2Fsvg%3E")}
.crm-exec-kpis article[data-metric=overdue]::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%2010%2019H2L12%202Zm0%207v5m0%203h.01%22%2F%3E%3C%2Fsvg%3E")}
.crm-exec-kpis article[data-metric=leakage]::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2022V3m0%201h15l-3%205%203%205H4%22%2F%3E%3C%2Fsvg%3E")}
.crm-exec-kpis article[data-metric=qualified]::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m7%2012%203%203%207-7%22%2F%3E%3C%2Fsvg%3E")}

.crm-sidebar-profile{display:none}@media(min-width:1000px){.crm-sidebar-profile{display:grid;gap:3px;flex:0 0 auto;min-width:0;margin:0 14px;padding:14px 0;border-top:1px solid #29405e;color:#dbe7f5;font-size:12px;overflow-wrap:anywhere}.crm-sidebar-profile strong{font-size:13px;color:#fff}.crm-sidebar-profile span{font-size:11px}}
/* Reusable account dialog; nav scroll cannot clip its sibling footer/popover. */
.crm-sidebar-profile{position:relative;z-index:90;overflow:visible}
.crm-account{position:relative;min-width:0}.crm-workspace .crm-account-trigger{display:flex;gap:10px;align-items:center;width:100%;min-height:52px;padding:4px 0;background:transparent;color:#fff;border:0;text-align:left}
.crm-account-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border:1px solid #6786b0;border-radius:50%;background:#173960;color:#fff;font-weight:700}
.crm-account-copy{display:grid;gap:3px;min-width:0}.crm-account-copy strong{font-size:13px}.crm-account-copy>span{font-size:11px;color:#dbe7f5}
.crm-workspace .crm-account-popover{position:absolute;bottom:calc(100% + 12px);left:0;z-index:90;width:min(330px,calc(100vw - 28px));max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;background:#fff;color:#12213d;border:1px solid #dce4ef;border-radius:14px;padding:16px;box-shadow:0 14px 40px #08172f30;scrollbar-gutter:stable}
.crm-account-popover[hidden]{display:none}.crm-workspace .crm-account-popover header{padding:0 0 12px;border-bottom:1px solid #e8edf5}.crm-workspace .crm-account-popover strong{color:#12213d;font-size:15px}.crm-workspace .crm-account-popover p{font-size:12px;color:#52647a;margin:5px 0;line-height:1.5}.crm-workspace .crm-account-popover h2{font-size:18px;margin:0 0 10px}.crm-account-options{display:grid;margin-top:8px}
.crm-workspace .crm-account-popover button{width:100%;text-align:left;min-height:44px;border:0;border-radius:8px;background:#fff;color:#142e54;padding:11px;font-size:13px}.crm-workspace .crm-account-popover button:hover{background:#edf3ff;color:#1747a0}.crm-workspace .crm-account-popover .crm-account-signout{margin-top:8px;border-top:1px solid #e8edf5;color:#b42318}.crm-workspace .crm-account-popover :focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
.crm-workspace .crm-account-popover dl{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:14px 0}.crm-workspace .crm-account-popover dt{font-size:11px;color:#52647a}.crm-workspace .crm-account-popover dd{margin:0 0 8px;font-size:13px;overflow-wrap:anywhere}.crm-account-popover a{display:inline-block;min-height:44px;padding:12px 8px;font-size:12px;color:#1747a0}
@media(max-width:999px){.crm-workspace .crm-sidebar-profile{display:block;position:fixed;bottom:12px;right:12px;left:auto;width:48px;margin:0;padding:0;border:0;z-index:90}.crm-workspace .crm-account-trigger{min-height:48px;width:48px;padding:0;justify-content:center;background:#142e54;border-radius:50%;box-shadow:0 3px 12px #08172f30}.crm-account-copy{display:none}.crm-account-avatar{width:40px;height:40px;flex-basis:40px}.crm-workspace .crm-account-popover{left:auto;right:0;bottom:60px;max-height:calc(100dvh - 100px)}.crm-workspace .crm-sales-content{padding-bottom:80px}}

/* CRM178: execution KPIs belong to Today; Dashboard has its own executive overview. */
.crm-workspace[data-sales-view]:not([data-sales-view="Today"])>.crm-summary{display:none}

/* CRM178b: consolidate only when the shared guarded account menu is mounted; fallback remains. */
.crm-workspace:has(.crm-account-trigger) .crm-page-actions button[data-account-action="sign-out"]{display:none}

/* CRM179: shared page-title compactness; no routing or data changes. */
.crm-workspace .crm-module-actionbar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:12px}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-page-heading{margin-bottom:12px}
.crm-workspace .crm-executive-dashboard>p:first-child{margin:0 0 12px;color:#526783}

/* CRM180 — compact density pass. Only existing DEV sales workspace.
   Preserve at least 44px interactive controls, accessible focus, responsive grids,
   independently scrollable sidebar and actual page-heading ownership. */
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-app-header{
  min-height:42px;padding-top:10px;padding-bottom:10px;margin-bottom:10px;
}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-brand-copy p{
  font-size:14px;line-height:1.35;margin:0;
}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-page-heading{
  margin:0 0 12px;align-items:center;gap:12px;
}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-page-heading h1{
  font-size:clamp(27px,2.45vw,34px);line-height:1.18;margin:0;
  font-weight:750;letter-spacing:-.03em;
}
.crm-workspace .crm-sales-content{min-width:0;margin:0;}
.crm-workspace .crm-sales-content>section:not([hidden]){min-width:0;margin-top:0;}
.crm-workspace .crm-sales-content>section:not([hidden])>p:first-of-type{margin:0 0 10px;}
.crm-workspace .crm-operation-panel>div>article{
  margin:0 0 10px;padding:14px 16px;border-radius:12px;
}
.crm-workspace .crm-operation-panel>div>article h3{
  margin:0 0 10px;font-size:17px;line-height:1.35;
}
.crm-workspace .crm-operation-panel>div>article dl{
  display:grid;grid-template-columns:minmax(96px,175px) minmax(0,1fr);
  gap:7px 14px;margin:0 0 10px;
}
.crm-workspace .crm-operation-panel>div>article :is(dt,dd){margin:0;line-height:1.45;min-width:0;}
.crm-workspace .crm-module-actionbar{margin:0 0 10px;min-height:44px;}
.crm-workspace .crm-inventory-filters{
  margin:10px 0 12px;padding:13px;gap:10px 12px;
}
.crm-workspace .crm-team-workspace>header{margin-bottom:8px;}
.crm-workspace .crm-team-search{margin:10px 0 12px;padding:12px;}
.crm-workspace .crm-team-summary:not(:empty){margin:12px 0;padding:14px;}
.crm-workspace .crm-team-workspace>details{margin-bottom:14px;}
.crm-workspace .crm-team-workspace>section{margin-top:16px;}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor){margin-top:14px;}
.crm-workspace .crm-finance-editor,
.crm-workspace .crm-finance-editor>div:first-of-type,
.crm-workspace .crm-inventory-editor-form,
.crm-workspace .crm-inventory-editor-fields{gap:12px;}
.crm-workspace .crm-executive-dashboard>p:first-child{margin:0 0 10px;}
.crm-workspace .crm-exec-kpis{gap:12px;margin-bottom:14px;}
.crm-workspace .crm-exec-kpis article{padding:14px 16px;}
.crm-workspace .crm-exec-kpis h3{margin-bottom:6px;}
.crm-workspace .crm-exec-kpis p{margin-top:6px;}
.crm-workspace .crm-exec-health,
.crm-workspace .crm-exec-quality{gap:12px;margin-bottom:14px;}
.crm-workspace .crm-exec-health article,
.crm-workspace .crm-exec-quality article,
.crm-workspace .crm-exec-performance{padding:16px;}
.crm-workspace .crm-lead-filters{gap:10px;padding:12px;margin-bottom:12px;}
.crm-workspace .crm-lead-table th{padding:11px 12px;}
.crm-workspace .crm-lead-table td{padding:9px 12px;}
.crm-workspace .crm-lead-footer{margin-top:10px;}
.crm-workspace .crm-summary{margin-bottom:12px;}
.crm-workspace .crm-today-focus article{padding-block:10px;}
.crm-workspace .crm-sidebar-shell{padding-top:18px;}
.crm-workspace .crm-sidebar-shell::before{margin-bottom:12px;}
.crm-workspace .crm-lead-workspace .crm-sidebar-shell nav.crm-sales-nav{
  gap:3px;padding-bottom:12px;
}
.crm-workspace .crm-lead-workspace .crm-sales-nav button{
  min-height:44px;padding-block:9px;
}
@media(min-width:1000px){
 .crm-workspace:not([hidden]):has(> .crm-lead-workspace .crm-sales-nav){
   column-gap:24px;padding-right:22px;
 }
}
@media(max-width:999px){
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-app-header{
   padding-top:8px;margin-bottom:10px;
 }
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav)>.crm-page-heading{
   margin-bottom:10px;
 }
 .crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-page-heading h1{
   font-size:clamp(23px,4vw,30px);
 }
 .crm-workspace .crm-operation-panel>div>article{padding:12px;}
}
@media(max-width:600px){
 .crm-workspace .crm-operation-panel>div>article dl{
   grid-template-columns:minmax(80px,.72fr) minmax(0,1.28fr);gap:7px 10px;
 }
 .crm-workspace .crm-exec-kpis article{padding:12px;}
 .crm-workspace .crm-lead-filters{padding:10px;}
 .crm-workspace .crm-sales-content{padding-bottom:80px;}
}

/* CRM181: finish existing spacing and bounded contextual Help presentation. */
.crm-workspace .crm-account-popover{
  width:min(430px,calc(100vw - 28px));padding:18px;
  overflow-x:hidden;scroll-padding-block:12px;
}
.crm-workspace .crm-account-popover h2{line-height:1.3;margin-bottom:12px;}
.crm-workspace .crm-account-popover .crm-help-intro{margin:0 0 12px;line-height:1.55;}
.crm-workspace .crm-help-guides{display:grid;gap:8px;min-width:0;margin:0 0 14px;}
.crm-workspace .crm-help-guides details{
  min-width:0;border:1px solid #dce4ef;border-radius:9px;background:#fff;
  padding:0 12px;
}
.crm-workspace .crm-help-guides summary{
  min-height:44px;padding:12px 0;color:#142e54;font-size:13px;
  line-height:1.5;font-weight:650;cursor:pointer;overflow-wrap:anywhere;
}
.crm-workspace .crm-help-guides details[open] summary{margin-bottom:4px;border-bottom:1px solid #e8edf5;}
.crm-workspace .crm-help-guides :is(p,ul,ol){margin:8px 0 12px;font-size:13px;line-height:1.55;}
.crm-workspace .crm-help-guides :is(ul,ol){padding-left:20px;}
.crm-workspace .crm-help-guides li{margin:6px 0;}
.crm-workspace .crm-help-report{min-width:0;margin:14px 0;padding-top:14px;border-top:1px solid #e8edf5;}
.crm-workspace .crm-help-report label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#29455f;}
.crm-workspace .crm-help-report textarea{
  display:block;width:100%;max-width:100%;min-width:0;min-height:96px;
  padding:10px 12px;border:1px solid #bdcbdc;border-radius:8px;
  background:#fff;color:#172b46;font:inherit;font-size:14px;line-height:1.5;resize:vertical;
}
.crm-workspace .crm-help-report button{margin-top:8px;border:1px solid #dce4ef;}
.crm-workspace .crm-help-links{display:flex;flex-wrap:wrap;gap:0 12px;margin:12px 0 4px;padding-top:8px;border-top:1px solid #e8edf5;}
.crm-workspace .crm-help-links a{display:inline-flex;align-items:center;min-width:0;min-height:44px;padding:8px 0;line-height:1.5;overflow-wrap:anywhere;}
.crm-workspace :is(.crm-finance-editor,.crm-inventory-editor) label{justify-content:space-between;}
.crm-workspace .crm-inventory-editor-actions{align-items:stretch;gap:8px;margin-top:12px;}
.crm-workspace .crm-finance-editor>button{align-self:end;white-space:normal;}
.crm-workspace .crm-hrms-form{max-width:100%;align-items:end;}
.crm-workspace .crm-hrms summary{min-height:44px;line-height:1.5;padding-block:11px;}
.crm-workspace .crm-hrms summary:focus-visible{outline:3px solid #2563eb;outline-offset:2px;border-radius:4px;}
.crm-workspace:has(> .crm-lead-workspace .crm-sales-nav) .crm-summary h3{padding-right:34px;}
@media(max-width:999px){
 .crm-workspace .crm-account-popover{max-height:calc(100dvh - 100px);padding:16px;}
 .crm-workspace .crm-page-heading>div{min-width:0;}
}
@media(max-width:600px){
 .crm-workspace .crm-help-report textarea{font-size:16px;}
 .crm-workspace .crm-account-popover{border-radius:12px;}
 .crm-workspace .crm-lead-filters{gap:8px;}
 .crm-workspace .crm-inventory-editor-actions>button{flex:1 1 100%;}
 .crm-workspace .crm-inventory-editor-fields>label{justify-content:flex-start;}
 .crm-workspace .crm-page-actions{width:auto;}
 .crm-workspace .crm-page-actions button{flex:0 0 auto;}
}
/* Keep the account popup above sibling content inside the desktop grid. */
@media(min-width:1000px){.crm-workspace .crm-sidebar-shell{z-index:100;}}
/* Contact actions remain usable without a configured mailto handler. */
.crm-workspace .crm-support-contact{margin:12px 0;padding-top:12px;border-top:1px solid #e8edf5;min-width:0;overflow-wrap:anywhere;}
.crm-workspace .crm-support-contact a{margin-right:10px;}
.crm-workspace .crm-support-contact button{border:1px solid #dce4ef;margin:6px 0;}
.crm-workspace .crm-support-contact input{box-sizing:border-box;width:100%;min-height:44px;}
