:root{--navy-950:#081326;--navy-900:#0c1930;--navy-800:#132440;--ink-950:#172033;--ink-800:#2b374d;--ink-700:#445169;--ink-600:#5e6b81;--ink-500:#7c879a;--line:#dfe5ec;--line-soft:#e9edf2;--surface:#fff;--surface-subtle:#f8fafc;--canvas:#f2f5f8;--blue:#2f74e8;--blue-dark:#205fc8;--blue-soft:#eaf2ff;--green:#179b62;--green-soft:#e7f8f0;--amber:#b96b08;--amber-soft:#fff4da;--red:#c34444;--red-soft:#ffeded;--violet:#7655d6;--violet-soft:#f1edff;--cyan:#167e97;--cyan-soft:#e7f7fb;--shadow-sm:0 1px 2px #111f340d;--shadow-md:0 8px 24px #14274114;--radius:10px;--text-micro:10px;--text-meta:11px;--text-dense:12px;--text-body:13px;--text-subtitle:14px;--text-section:16px}*{box-sizing:border-box}html,body{min-height:100%}html{background:var(--canvas)}body{color:var(--ink-950);background:var(--canvas);text-rendering:optimizelegibility;margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px;line-height:1.5}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}::selection{color:#fff;background:#2f74e8}.crm-shell{min-height:100vh}.desktop-sidebar{z-index:30;width:232px;position:fixed;inset:0 auto 0 0}.crm-sidebar{color:#cbd7e9;background:var(--navy-950);border-right:1px solid #ffffff0d;flex-direction:column;width:232px;height:100%;display:flex}.brand-block{border-bottom:1px solid #ffffff12;align-items:center;gap:10px;min-height:64px;padding:12px 16px;display:flex}.brand-mark{color:#fff;background:var(--blue);border-radius:7px;place-items:center;width:32px;height:32px;font-size:16px;font-weight:800;display:grid;box-shadow:inset 0 0 0 1px #ffffff2e}.brand-block>div:nth-child(2){flex-direction:column;line-height:1.15;display:flex}.brand-block strong{color:#fff;letter-spacing:.06em;font-size:15px}.brand-block span{color:#8393aa;letter-spacing:.12em;text-transform:uppercase;margin-top:4px;font-size:11px;font-weight:700}.sidebar-close{color:#9ca9bc;background:0 0;border:0;place-items:center;margin-left:auto;padding:5px;display:grid}.workspace-switcher{background:#ffffff0e;border:1px solid #ffffff0f;border-radius:9px;grid-template-columns:31px 1fr auto;align-items:center;gap:9px;margin:14px 12px 6px;padding:10px;display:grid}.workspace-avatar,.user-avatar,.topbar-avatar{color:#fff;background:#7549d9;border-radius:50%;flex:none;place-items:center;font-size:10px;font-weight:800;display:grid}.workspace-avatar{width:31px;height:31px}.workspace-switcher>div:nth-child(2),.sidebar-user>div:nth-child(2),.system-health>div{flex-direction:column;min-width:0;display:flex}.workspace-switcher strong,.sidebar-user strong,.system-health strong{color:#edf4ff;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650;overflow:hidden}.workspace-switcher span,.sidebar-user span,.system-health span{color:#8290a5;margin-top:2px;font-size:11px}.sidebar-nav{scrollbar-width:thin;flex:1;padding:3px 9px 18px;overflow-y:auto}.nav-group{margin-top:17px}.nav-group-label{color:#607089;letter-spacing:.13em;text-transform:uppercase;margin:0 9px 7px;font-size:10px;font-weight:800}.nav-link{color:#9eacc0;border-radius:7px;align-items:center;gap:10px;min-height:37px;margin:2px 0;padding:8px 10px;font-size:13px;font-weight:550;transition:color .14s,background .14s;display:flex}.nav-link:hover{color:#edf4ff;background:#ffffff0d}.nav-link.active{color:#fff;background:#2d73df;box-shadow:inset 0 0 0 1px #ffffff14,0 4px 12px #16499947}.nav-link svg{flex:none}.nav-count{color:#cdd9ea;text-align:center;background:#ffffff14;border-radius:999px;min-width:19px;margin-left:auto;padding:1px 5px;font-size:10px;line-height:16px}.nav-link.active .nav-count{color:#fff;background:#ffffff2b}.sidebar-bottom{border-top:1px solid #fff1;padding:9px}.system-health,.sidebar-user{align-items:center;gap:9px;padding:9px;display:flex}.system-health{color:#51d49e;background:#28be7f14;border:1px solid #39ce9121;border-radius:7px;margin-bottom:4px}.sidebar-user svg{color:#586981;margin-left:auto}.user-avatar{width:30px;height:30px}.crm-main{min-width:0;min-height:100vh;margin-left:232px}.crm-topbar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;justify-content:space-between;align-items:center;gap:18px;height:64px;padding:0 24px;display:flex;position:sticky;top:0}.topbar-left,.topbar-actions{align-items:center;gap:10px;display:flex}.global-search{width:min(450px,38vw);height:37px;color:var(--ink-500);background:#f7f9fb;border:1px solid #e2e7ed;border-radius:7px;align-items:center;gap:8px;padding:0 10px;display:flex}.global-search:focus-within{background:#fff;border-color:#98b9ef;box-shadow:0 0 0 3px #2f74e817}.global-search input{min-width:0;color:var(--ink-800);background:0 0;border:0;outline:0;flex:1;font-size:13px}.global-search input::placeholder{color:#9ca6b5}.global-search kbd{color:#8792a4;white-space:nowrap;background:#fff;border:1px solid #dce2e9;border-bottom-color:#cbd3dd;border-radius:4px;padding:2px 6px;font-family:inherit;font-size:10px}.icon-button,.mobile-menu-button{width:36px;height:36px;color:var(--ink-600);border:1px solid var(--line);background:#fff;border-radius:7px;place-items:center;padding:0;display:grid}.mobile-menu-button{display:none}.notification-button{position:relative}.notification-button span{background:#e95454;border:1.5px solid #fff;border-radius:50%;width:6px;height:6px;position:absolute;top:7px;right:7px}.topbar-avatar{background:#172846;width:34px;height:34px}.agent-label{color:#59677b;white-space:nowrap;background:#f2f4f7;border:1px solid #dce2eb;border-radius:999px;align-items:center;gap:6px;min-height:30px;padding:5px 9px;font-size:11px;font-weight:750;display:inline-flex}.agent-pulse{background:#25a76f;border-radius:50%;width:6px;height:6px;box-shadow:0 0 0 3px #25a76f1f}.crm-content{width:100%;padding:28px}.page-header{justify-content:space-between;align-items:flex-start;gap:20px;min-height:62px;margin-bottom:24px;display:flex}.page-header h1{color:var(--ink-950);letter-spacing:-.025em;margin:2px 0 4px;font-size:clamp(28px,2.2vw,32px);line-height:1.15}.page-header p{max-width:760px;color:var(--ink-600);margin:0;font-size:14px;line-height:1.55}.eyebrow{color:var(--blue);letter-spacing:.12em;text-transform:uppercase;font-size:10px;font-weight:800}.page-header-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;box-shadow:var(--shadow-sm)}.button{white-space:nowrap;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:9px 14px;font-size:12px;font-weight:700;line-height:1.15;transition:transform .12s,box-shadow .12s,background .12s;display:inline-flex}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.55}.button-primary{color:#fff;background:var(--blue);border-color:var(--blue);box-shadow:0 2px 5px #2f74e833}.button-primary:hover:not(:disabled){background:var(--blue-dark)}.button-secondary{color:var(--ink-800);background:#fff;border-color:#d6dde6}.button-ghost{color:var(--ink-600);background:0 0;border-color:#0000}.button-danger{color:var(--red);background:var(--red-soft);border-color:#f5cece}.badge{color:#556277;white-space:nowrap;background:#eef1f5;border:1px solid #e0e5eb;border-radius:999px;justify-content:center;align-items:center;min-height:24px;padding:3px 8px;font-size:10px;font-weight:750;line-height:1.2;display:inline-flex}.badge-blue{color:#2861b8;background:var(--blue-soft);border-color:#cfe0fb}.badge-green{color:#16764e;background:var(--green-soft);border-color:#c9eddb}.badge-amber{color:#9a5a09;background:var(--amber-soft);border-color:#f5dda9}.badge-red{color:#ac3f3f;background:var(--red-soft);border-color:#f3cfcf}.badge-violet,.badge-purple{color:#6547bd;background:var(--violet-soft);border-color:#ddd4fa}.badge-cyan,.badge-teal{color:#156d81;background:var(--cyan-soft);border-color:#cbe9ef}.section-heading{justify-content:space-between;align-items:flex-start;gap:14px;padding:18px 20px 16px;display:flex}.section-heading h2{color:var(--ink-950);margin:0;font-size:16px;line-height:1.3}.section-heading p{color:var(--ink-500);margin:4px 0 0;font-size:12px;line-height:1.45}.ai-recommendation{color:#32405b;background:#f4f1ff;border:1px solid #ded6fb;border-radius:8px;gap:12px;padding:14px 15px;font-size:12px;line-height:1.5;display:flex}.ai-recommendation-icon{color:#6e4fd0;background:#e6dfff;border-radius:6px;flex:none;place-items:center;width:30px;height:30px;display:grid}.ai-recommendation strong{color:#4c348f;margin-bottom:2px;font-size:12px;display:block}.ai-recommendation-copy{color:#625b79}.approval-banner{color:#78500f;background:var(--amber-soft);border:1px solid #efd89f;border-radius:8px;align-items:flex-start;gap:11px;padding:13px 15px;font-size:12px;line-height:1.45;display:flex}.approval-banner-blue{color:#285caa;background:var(--blue-soft);border-color:#cbdefa}.approval-banner-green{color:#176b49;background:var(--green-soft);border-color:#c5ead7}.approval-banner>svg{flex:none}.approval-banner strong{margin-bottom:1px;font-size:12px;display:block}.stat-card{min-height:130px;padding:18px;position:relative;overflow:hidden}.stat-card:before{content:"";background:var(--blue);width:3px;position:absolute;inset:0 auto 0 0}.stat-card.stat-green:before{background:var(--green)}.stat-card.stat-amber:before{background:#d98920}.stat-card.stat-red:before{background:var(--red)}.stat-card.stat-violet:before{background:var(--violet)}.stat-card.stat-cyan:before{background:var(--cyan)}.stat-topline{color:var(--ink-500);letter-spacing:.04em;text-transform:uppercase;justify-content:space-between;align-items:center;font-size:11px;font-weight:800;display:flex}.stat-icon{color:#9aa6b8}.stat-value{color:var(--ink-950);letter-spacing:-.03em;margin:10px 0 9px;font-size:29px;font-weight:760;line-height:1}.stat-footline{color:var(--ink-500);align-items:center;gap:7px;font-size:11px;line-height:1.35;display:flex}.empty-state{min-height:210px;color:var(--ink-500);text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:30px;display:flex}.empty-state svg{color:var(--green);margin-bottom:9px}.empty-state strong{color:var(--ink-800)}.empty-state p{max-width:360px;margin:4px 0 13px;font-size:13px}.mobile-sidebar-layer{display:none}.loading-heading{flex-direction:column;gap:8px;margin-bottom:22px;display:flex}.loading-heading span,.loading-grid span,.loading-panel{background:linear-gradient(90deg,#e8edf2 25%,#f5f7f9 50%,#e8edf2 75%) 0 0/200% 100%;animation:1.5s infinite crm-shimmer}.loading-heading span:first-child{border-radius:6px;width:230px;height:26px}.loading-heading span:last-child{border-radius:5px;width:min(560px,75%);height:12px}.loading-grid{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.loading-grid span{border-radius:var(--radius);border:1px solid #e3e8ed;height:112px}.loading-panel{border-radius:var(--radius);border:1px solid #e3e8ed;height:350px;margin-top:20px}.route-error{min-height:370px;color:var(--ink-600);text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:40px;display:flex}.route-error>svg{color:var(--amber)}.route-error h1{color:var(--ink-950);margin:12px 0 3px;font-size:24px}.route-error p{max-width:470px;margin:0 0 17px;font-size:13px}@keyframes crm-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width:1120px){.desktop-sidebar{display:none}.crm-main{margin-left:0}.mobile-menu-button{display:grid}.mobile-sidebar-layer{z-index:80;display:block;position:fixed;inset:0}.mobile-sidebar-layer .crm-sidebar{z-index:2;position:relative;box-shadow:18px 0 48px #030b1940}.mobile-sidebar-scrim{z-index:1;background:#050c1961;border:0;position:absolute;inset:0}}@media (max-width:760px){.crm-topbar{height:58px;padding:0 14px}.crm-content{padding:18px}.global-search{width:min(48vw,360px)}.global-search kbd,.topbar-actions>.badge,.topbar-actions .agent-label{display:none}.page-header{flex-direction:column;margin-bottom:16px}.page-header-actions{justify-content:flex-start;width:100%}.loading-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.global-search{width:44px}.global-search input{display:none}}
