/* TeklifAI v131.2 — UI Foundation Consolidation
   Single authority for shell, navigation, search hierarchy, scroll ownership and overlays. */
:root{
  --tka-header:60px;--tka-nav:72px;--tka-nav-expanded:236px;--tka-context:286px;
  --tka-portfolio:372px;--tka-bg:#f6f8fb;--tka-surface:#fff;--tka-line:#e5e9f0;
  --tka-line-strong:#d8dee8;--tka-text:#111827;--tka-muted:#667085;--tka-brand:#4f46e5;
  --tka-brand-soft:#eef2ff;--tka-ai:linear-gradient(135deg,#6366f1,#a855f7);
  --z-header:900;--z-nav:700;--z-popover:1100;--z-backdrop:1800;--z-drawer:1810;--z-modal:1900;--z-copilot:1250
}
html,body{height:100%;font-family:"Plus Jakarta Sans",Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--tka-bg);color:var(--tka-text)}
body{overflow:hidden}
#appView.app-shell{display:grid!important;grid-template-columns:var(--tka-nav) minmax(0,1fr) var(--tka-context)!important;grid-template-rows:var(--tka-header) minmax(0,1fr)!important;width:100%;height:100vh;min-height:0;overflow:hidden;background:var(--tka-bg);transition:grid-template-columns .18s ease}
#appView.tka-clean-nav-expanded{--tka-nav:var(--tka-nav-expanded)}
#appView>.sidebar{display:none!important}

/* Header */
#appView>main{grid-column:2;grid-row:2;display:grid;grid-template-rows:34px minmax(0,1fr);min-width:0;min-height:0;overflow:hidden;background:var(--tka-bg)}
#appView>.topbar{grid-column:1/4;grid-row:1;position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-width:0!important;width:100%!important;height:var(--tka-header)!important;padding:0 20px!important;background:#fff!important;border-bottom:1px solid var(--tka-line)!important;z-index:var(--z-header)!important;box-shadow:0 1px 2px rgba(15,23,42,.025)!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;margin:0!important}
.topbar-left{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important;flex:1 1 auto!important}.topbar-brand{display:flex!important;align-items:center!important;gap:9px!important;flex:0 0 132px!important}.topbar-brand-mark{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:var(--tka-ai)!important;color:#fff!important}.topbar-brand strong{font-size:13px!important;font-weight:800!important;color:#111827!important}.topbar-brand strong span{color:#6d5dfc!important}
#appView .global-search{position:relative!important;display:flex!important;align-items:center!important;flex:0 1 500px!important;width:min(500px,36vw)!important;min-width:270px!important;height:38px!important;border:1px solid var(--tka-line-strong)!important;border-radius:9px!important;background:#f8fafc!important;box-shadow:none!important;overflow:visible!important}
#appView .global-search:focus-within{background:#fff!important;border-color:#a5b4fc!important;box-shadow:0 0 0 3px rgba(79,70,229,.08)!important}
#appView .global-search>svg{position:absolute!important;left:12px!important;width:15px!important;height:15px!important;stroke:#94a3b8!important;fill:none!important}.global-search input{width:100%!important;height:100%!important;border:0!important;background:transparent!important;outline:0!important;padding:0 92px 0 36px!important;font-size:11px!important;color:#1f2937!important}.global-search input::placeholder{color:#98a2b3!important}.global-search kbd{position:absolute!important;right:8px!important;padding:3px 6px!important;border:1px solid #dce2ea!important;border-radius:5px!important;background:#fff!important;color:#64748b!important;font-size:8px!important;font-weight:700!important}.global-search-submit{display:none!important}
#appView .global-search-results{position:absolute!important;left:0!important;top:calc(100% + 7px)!important;right:auto!important;transform:none!important;width:min(660px,calc(100vw - 120px))!important;min-width:100%!important;max-height:min(64vh,620px)!important;overflow:auto!important;border:1px solid #dfe5ed!important;border-radius:12px!important;background:#fff!important;box-shadow:0 18px 48px rgba(15,23,42,.16)!important;z-index:var(--z-popover)!important}.global-search-results.hidden{display:none!important}
.topbar-productivity{display:flex!important;gap:7px!important;margin-left:auto!important}.topbar-utility,.topbar-action{height:34px!important;border-radius:8px!important;border:1px solid #edf0f4!important;background:#f8fafc!important;color:#475467!important;font-size:9px!important;font-weight:700!important;padding:0 10px!important}.user-menu{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;margin-left:12px!important}.user-menu .avatar{width:30px!important;height:30px!important}.user-menu strong{font-size:9px!important}.user-menu small{font-size:7.5px!important;color:#98a2b3!important}
.contextbar{grid-row:1;display:flex!important;align-items:center!important;min-height:34px!important;padding:0 18px!important;background:#fff!important;border-bottom:1px solid #edf0f4!important;font-size:8px!important;color:#98a2b3!important}.contextbar .context-status{display:none!important}
#pageContent{grid-row:2;min-width:0;min-height:0;overflow:auto!important;padding:0!important;overscroll-behavior:contain;scrollbar-gutter:stable}
body[data-crm-page="customers"] #pageContent{overflow:hidden!important}

/* Clean global navigation — isolated from all legacy sidebar selectors */
.tka-clean-nav{grid-column:1;grid-row:2;position:relative!important;top:auto!important;height:calc(100vh - var(--tka-header))!important;min-width:0;background:#fff;border-right:1px solid var(--tka-line);display:flex;flex-direction:column;z-index:var(--z-nav);overflow:hidden;font-family:inherit}
.tka-clean-nav:before{display:none!important;content:"✦";display:grid;place-items:center;width:34px;height:34px;min-height:34px;margin:13px auto 10px;border-radius:10px;background:var(--tka-ai);color:#fff;font-size:16px;box-shadow:0 6px 15px rgba(99,102,241,.2)}
.tka-clean-nav__scroll{flex:1;min-height:0;overflow:auto hidden;padding:5px 8px 10px;scrollbar-width:none}.tka-clean-nav__scroll::-webkit-scrollbar{display:none}.tka-clean-nav__group{display:grid;gap:5px}.tka-clean-nav__group+.tka-clean-nav__group{margin-top:10px;padding-top:10px;border-top:1px solid #f1f3f7}.tka-clean-nav__group-title{display:none;color:#98a2b3;font-size:9px;font-weight:800;letter-spacing:.09em;padding:2px 10px 5px;white-space:nowrap}
.tka-clean-nav__btn{position:relative;width:52px!important;height:46px!important;min-height:46px!important;margin:0 auto!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:11px;border:0!important;border-radius:11px!important;background:transparent!important;color:#718096!important;cursor:pointer;transition:background .12s ease,color .12s ease,box-shadow .12s ease}.tka-clean-nav__btn:hover{background:#f5f7fb!important;color:#4338ca!important}.tka-clean-nav__btn.active{background:var(--tka-brand-soft)!important;color:#4338ca!important;box-shadow:inset 3px 0 0 var(--tka-brand)!important}.tka-clean-nav__btn svg{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}.tka-clean-nav__label{display:none!important}.tka-clean-nav__badge{position:absolute!important;top:6px!important;right:7px!important;width:7px!important;height:7px!important;border:2px solid #fff!important;border-radius:50%!important;background:#f43f5e!important;color:transparent!important;overflow:hidden!important;display:none!important}.tka-clean-nav__badge.show{display:block!important}.tka-clean-nav__tip{position:fixed!important;left:80px!important;z-index:1700!important;pointer-events:none!important;background:#111827!important;color:#fff!important;border-radius:7px!important;padding:6px 8px!important;font-size:10px!important;font-weight:650!important;white-space:nowrap!important;opacity:0!important;transition:opacity .1s ease!important}.tka-clean-nav__tip.show{opacity:1!important}
.tka-clean-nav__footer{padding:8px;border-top:1px solid #edf0f5;display:grid;gap:5px;background:#fff}.tka-clean-nav__settings-panel{position:fixed!important;left:78px!important;bottom:14px!important;width:350px!important;max-height:calc(100vh - 86px)!important;overflow:auto!important;background:#fff!important;border:1px solid #e4e8ef!important;border-radius:14px!important;box-shadow:0 20px 60px rgba(15,23,42,.18)!important;z-index:1700!important;padding:13px!important;display:none!important}.tka-clean-nav__settings-panel.open{display:block!important}
#appView.tka-clean-nav-expanded .tka-clean-nav__group-title{display:block!important}#appView.tka-clean-nav-expanded .tka-clean-nav__btn{width:calc(100% - 8px)!important;justify-content:flex-start!important;margin:0 4px!important;padding:0 13px!important}#appView.tka-clean-nav-expanded .tka-clean-nav__label{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;font-weight:650!important}#appView.tka-clean-nav-expanded .tka-clean-nav__badge{position:static!important;margin-left:auto!important;width:auto!important;height:auto!important;min-width:18px!important;padding:2px 5px!important;border:0!important;color:#be123c!important;background:#fff1f2!important;font-size:8px!important;font-weight:800!important}#appView.tka-clean-nav-expanded .tka-clean-nav__settings-panel{left:242px!important}

/* Right context center */
#appView>#crmContextCenter{grid-column:3;grid-row:2;width:var(--tka-context)!important;height:calc(100vh - var(--tka-header))!important;min-height:0!important;padding:18px 15px!important;overflow:auto!important;background:#fff!important;border-left:1px solid var(--tka-line)!important;z-index:650!important;transition:width .18s ease,padding .18s ease!important}.crm-context-header{min-height:48px!important;margin:0 0 15px!important;padding:0 0 13px!important;border-bottom:1px solid #eef1f5!important}.crm-context-collapse{width:28px!important;height:28px!important;border:1px solid #e6eaf0!important;border-radius:8px!important;background:#fff!important}.crm-context-actions button{min-height:36px!important;border-radius:8px!important;font-size:9px!important}.crm-context-actions .primary-action{background:#172033!important;color:#fff!important;border-color:#172033!important}.crm-system-state{border-radius:9px!important;background:#fafbfc!important}
body.crm-context-collapsed{--tka-context:46px}body.crm-context-collapsed #crmContextCenter{padding:14px 8px!important}body.crm-context-collapsed #crmContextCenter .crm-context-header>div,body.crm-context-collapsed #crmContextCenter .crm-context-section{display:none!important}body.crm-context-collapsed .crm-context-collapse{transform:rotate(180deg)}

/* v131.4 right context center visual contract */
.crm-context-center{box-sizing:border-box!important}
.crm-context-header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;min-height:52px!important;margin:0 0 16px!important;padding:0 0 14px!important;border-bottom:1px solid #edf0f4!important}
.crm-context-header>div{display:grid!important;gap:3px!important;min-width:0!important}
.crm-context-header small{display:block!important;color:#6366f1!important;font-size:8px!important;font-weight:800!important;letter-spacing:.08em!important;line-height:1.2!important}
.crm-context-header strong{display:block!important;margin:0!important;color:#172033!important;font-size:13px!important;font-weight:750!important;line-height:1.3!important}
.crm-context-collapse{flex:0 0 28px!important;display:grid!important;place-items:center!important;padding:0!important;color:#64748b!important;font-size:18px!important;line-height:1!important}
.crm-context-section{display:block!important;padding:0 0 18px!important;margin:0 0 18px!important;border-bottom:1px solid #edf0f4!important}
.crm-context-section:last-child{margin-bottom:0!important;border-bottom:0!important}
.crm-context-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0 0 9px!important}
.crm-context-section-head strong{color:#344054!important;font-size:10px!important;font-weight:750!important;line-height:1.3!important}
.crm-context-section-head span{flex:0 0 auto!important;min-width:18px!important;height:18px!important;display:grid!important;place-items:center!important;padding:0 5px!important;border-radius:5px!important;background:#f2f4f7!important;color:#667085!important;font-size:8px!important;font-weight:700!important}
.crm-context-items{display:grid!important;gap:0!important;min-width:0!important}
.crm-context-item{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:start!important;gap:9px!important;min-width:0!important;padding:10px 0!important;border-bottom:1px solid #f1f3f6!important;cursor:pointer!important}
.crm-context-item:last-child{border-bottom:0!important}
.crm-context-item>i{width:26px!important;height:26px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#ecfdf3!important;color:#039855!important;font-style:normal!important;font-size:10px!important}
.crm-context-item.warn>i{background:#fff7ed!important;color:#f79009!important}.crm-context-item.danger>i{background:#fff1f3!important;color:#f04438!important}
.crm-context-item span{min-width:0!important}.crm-context-item strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#344054!important;font-size:9.5px!important;font-weight:700!important;line-height:1.35!important}.crm-context-item small{display:block!important;margin-top:2px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#98a2b3!important;font-size:8px!important;line-height:1.35!important}
.crm-context-empty{padding:12px 0!important;color:#98a2b3!important;font-size:9px!important;line-height:1.5!important}
.crm-context-actions{display:grid!important;gap:7px!important}.crm-context-actions button{width:100%!important;min-height:36px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;padding:0 10px!important;border:1px solid #e4e7ec!important;border-radius:8px!important;background:#fff!important;color:#344054!important;font-size:9px!important;font-weight:650!important;text-align:left!important;white-space:nowrap!important}.crm-context-actions button:hover{background:#f8fafc!important;border-color:#d0d5dd!important}.crm-context-actions button.primary-action{background:#172033!important;color:#fff!important;border-color:#172033!important}
.crm-system-state{display:grid!important;grid-template-columns:8px minmax(0,1fr)!important;align-items:start!important;gap:8px!important;padding:11px!important;border:1px solid #e8ecf1!important;border-radius:9px!important;background:#fafbfc!important}.crm-system-state>i{width:8px!important;height:8px!important;margin-top:3px!important;border-radius:50%!important;background:#12b76a!important}.crm-system-state span{display:grid!important;gap:2px!important}.crm-system-state strong{font-size:9px!important;color:#344054!important}.crm-system-state small{font-size:7.5px!important;color:#98a2b3!important}

/* Customer portfolio: local search visually subordinate to global search */
.customer-crm-v1303{--customer-directory-width:var(--tka-portfolio)!important;grid-template-columns:var(--customer-directory-width) minmax(0,1fr)!important;height:100%!important;min-height:0!important;background:var(--tka-bg)!important}.customer-directory-v1303{width:auto!important;min-width:0!important;min-height:0!important;padding:17px 14px 10px!important;background:#fff!important;border-right:1px solid var(--tka-line)!important}.customer-search-v1303{position:relative!important;height:38px!important;border:1px solid #e0e5ec!important;border-radius:8px!important;background:#f8fafc!important;box-shadow:none!important}.customer-search-v1303:focus-within{background:#fff!important;border-color:#c7d2fe!important;box-shadow:0 0 0 3px rgba(79,70,229,.06)!important}.customer-search-v1303 input{padding-right:10px!important;font-size:10px!important}.customer-search-v1303:after{content:none!important}.customer-directory-list{min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable}.customer-directory-row{min-height:74px!important;padding:10px 10px 9px 12px!important}.customer-directory-row strong{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10px!important}.customer-directory-row[title]{cursor:pointer}.customer-workspace-v1303{min-width:0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;background:var(--tka-bg)!important}

/* PDF slide-over: one focused surface, no context rail/copilot competition */
.preview-backdrop{position:fixed!important;left:0!important;right:0!important;top:var(--tka-header)!important;bottom:0!important;background:rgba(15,23,42,.34)!important;backdrop-filter:blur(1px)!important;z-index:var(--z-backdrop)!important;opacity:0;visibility:hidden;transition:opacity .18s ease!important}.preview-backdrop.open{opacity:1!important;visibility:visible!important}
.pdf-drawer{position:fixed!important;right:0!important;top:var(--tka-header)!important;height:calc(100vh - var(--tka-header))!important;width:min(980px,72vw)!important;min-width:min(720px,100vw)!important;display:grid!important;grid-template-rows:56px minmax(0,1fr) 58px!important;background:#fff!important;border-left:1px solid #dbe1e8!important;border-radius:0!important;box-shadow:-22px 0 60px rgba(15,23,42,.2)!important;z-index:var(--z-drawer)!important;transform:translateX(102%)!important;transition:transform .22s ease!important;overflow:hidden!important}.pdf-drawer.open{transform:none!important}.pdf-drawer>header{display:flex!important;align-items:center!important;justify-content:space-between!important;min-width:0!important;padding:0 16px!important;border-bottom:1px solid #e5e9f0!important;background:#fff!important}.pdf-drawer>header>div{min-width:0!important}.pdf-drawer>header small{display:block!important;color:#6366f1!important;font-size:8px!important;font-weight:800!important;letter-spacing:.08em!important}.pdf-drawer>header h2{max-width:680px!important;margin:2px 0 0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;font-weight:750!important}.pdf-drawer iframe{width:100%!important;height:100%!important;border:0!important;background:#525b67!important}.pdf-drawer>footer{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:10px 14px!important;border-top:1px solid #e5e9f0!important;background:#fff!important}.preview-loading{inset:56px 0 58px!important;z-index:2!important}
body.pdf-preview-open #crmContextCenter{visibility:hidden!important;pointer-events:none!important}body.pdf-preview-open .global-copilot-launcher{display:none!important}body.pdf-preview-open #appView{pointer-events:none!important}body.pdf-preview-open #appView>.topbar{pointer-events:auto!important}body.pdf-preview-open .pdf-drawer,body.pdf-preview-open .preview-backdrop{pointer-events:auto!important}

/* Global surface hierarchy */
.global-copilot-launcher{z-index:var(--z-copilot)!important;right:calc(var(--tka-context) + 18px)!important;bottom:18px!important}.crm-context-collapsed .global-copilot-launcher{right:64px!important}.form-drawer-backdrop,.product-drawer-backdrop,.quote-builder-backdrop,.v125-preview-backdrop{z-index:var(--z-backdrop)!important}.form-drawer,.product-drawer,.quote-builder,.v125-preview{z-index:var(--z-drawer)!important}.command-palette-backdrop,.action-confirm-backdrop{z-index:var(--z-modal)!important}

/* Data density, spacing, focus */
#appView .panel,#appView .tw-card,#appView .dashboard-card,#appView .metric-card,#appView .card{border-color:#e2e7ee!important;box-shadow:none!important}#appView table{font-size:10px!important}#appView table thead th{background:#f8fafc!important;color:#667085!important;font-size:8px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.04em!important}#appView table tbody tr:hover{background:#f8faff!important}#appView :focus-visible{outline:2px solid rgba(79,70,229,.55)!important;outline-offset:2px!important}

@media(max-width:1450px){:root{--tka-context:250px;--tka-portfolio:340px}.topbar-brand{flex-basis:112px!important}#appView .global-search{width:min(440px,31vw)!important;flex-basis:440px!important}.user-menu small{display:none!important}}
@media(max-width:1180px){:root{--tka-context:0px;--tka-portfolio:320px}#appView.app-shell{grid-template-columns:var(--tka-nav) minmax(0,1fr)!important}#crmContextCenter{display:none!important}.global-copilot-launcher{right:18px!important}.topbar-productivity .topbar-utility span{display:none!important}.topbar-utility{width:34px!important;padding:0!important}.pdf-drawer{width:min(920px,86vw)!important}}
@media(max-width:860px){body{overflow:auto}#appView.app-shell{display:block!important;height:auto!important;min-height:100vh!important}#appView>main{display:block!important;min-height:calc(100vh - var(--tka-header))!important;overflow:visible!important}.tka-clean-nav{position:fixed!important;left:-76px!important;top:var(--tka-header)!important;width:72px!important;height:calc(100vh - var(--tka-header))!important;z-index:1600!important;transition:left .16s ease!important}body.menu-open .tka-clean-nav{left:0!important}.topbar-brand{flex-basis:auto!important}.topbar-brand strong{display:none!important}#appView .global-search{width:min(430px,55vw)!important;min-width:220px!important}.contextbar{display:none!important}#pageContent{overflow:visible!important}.customer-crm-v1303{grid-template-columns:1fr!important;height:auto!important}.customer-directory-v1303{max-height:360px!important;border-right:0!important;border-bottom:1px solid var(--tka-line)!important}.pdf-drawer{top:0!important;height:100vh!important;width:100vw!important;min-width:0!important}.preview-backdrop{top:0!important}}
@media(max-width:620px){#appView .global-search{display:none!important}.topbar-productivity{display:none!important}.user-menu>div:not(.avatar){display:none!important}}
@media(prefers-reduced-motion:reduce){#appView.app-shell,.tka-clean-nav,.pdf-drawer,.preview-backdrop{transition:none!important}}


/* v131.3 DASHBOARD VISUAL CONTRACT
   Restores the dashboard-only styles that were accidentally removed during v131.2 consolidation.
   These rules intentionally live in the single foundation stylesheet; app-shell-v130.css remains disabled. */
/* Dashboard visual system (consolidated) */
.crm130-dashboard{max-width:1500px;margin:0 auto;display:grid;gap:18px}.crm130-dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:2px 2px 0}.crm130-dashboard-hero h1{margin:3px 0 4px;font-size:27px;line-height:1.08;letter-spacing:-.04em;color:#141a22}.crm130-dashboard-hero p{margin:0;color:#7b8592;font-size:10.5px}.crm130-hero-actions{display:flex;gap:7px}.crm130-ghost{height:34px;padding:0 11px;border:1px solid #dce2e8;border-radius:8px;background:#fff;color:#465365;font-size:10px;font-weight:650;cursor:pointer}.crm130-ghost:hover{background:#f8fafb;border-color:#cdd6df}
.crm130-revenue{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(0,2.28fr);border:1px solid #dce2e8;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 4px 16px rgba(28,40,58,.035)}.crm130-revenue-main{padding:18px 20px;background:#f8fafb;border-right:1px solid #e3e7eb;display:flex;flex-direction:column;justify-content:center}.crm130-revenue-main small,.crm130-card header small{font-size:8px;letter-spacing:.08em;font-weight:750;color:#9aa3ae}.crm130-revenue-main strong{font-size:27px;letter-spacing:-.045em;color:#131a23;margin:3px 0}.crm130-revenue-main span{font-size:9px;color:#8a949f}.crm130-kpi-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.crm130-kpi-strip article{position:relative;min-height:105px;padding:16px 13px 12px;display:grid;grid-template-columns:28px minmax(0,1fr) 66px;align-items:center;gap:9px;border-right:1px solid #e7eaee;overflow:hidden}.crm130-kpi-strip article:last-child{border-right:0}.crm130-kpi-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800}.crm130-kpi-icon.teal{background:#e8f6f4;color:#57aaa4}.crm130-kpi-icon.amber{background:#fff4e3;color:#e3a23b}.crm130-kpi-icon.coral{background:#fff0ed;color:#e87867}.crm130-kpi-strip small{display:block;font-size:8.5px;color:#84909c}.crm130-kpi-strip strong{display:block;font-size:18px;letter-spacing:-.03em;margin:2px 0;color:#1b232d}.crm130-kpi-strip span{font-size:8px;color:#98a1ab}.crm-mini-spark{height:40px;display:flex;align-items:flex-end;gap:3px}.crm-mini-spark i{width:4px;min-height:4px;border-radius:3px 3px 1px 1px;background:#7bc5bf;opacity:.72}.crm-mini-spark.amber i{background:#f1b755}.crm-mini-spark.coral i{background:#ee897b}
.crm130-card{border:1px solid #dfe4e9;border-radius:10px;background:#fff;box-shadow:0 4px 16px rgba(28,40,58,.03);overflow:hidden}.crm130-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px 10px}.crm130-card>header h2{font-size:15px;margin:2px 0 2px;letter-spacing:-.025em;color:#1b222b}.crm130-card>header p{font-size:9px;color:#919ba6;margin:0}.crm130-chart-legend{display:flex;gap:11px;font-size:8px;color:#7c8793;padding-top:4px}.crm130-chart-legend span{display:flex;align-items:center;gap:5px}.crm130-chart-legend i{width:8px;height:8px;border-radius:3px;background:#78c5c0}.crm130-chart-legend i.won{background:#f1a7a0}.crm130-chart{position:relative;height:230px;margin:2px 18px 18px;padding:13px 6px 22px;display:grid;grid-template-columns:repeat(8,minmax(24px,1fr));gap:9px;border-top:1px solid #f0f2f4}.crm130-chart-grid{position:absolute;inset:15px 0 24px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}.crm130-chart-grid i{height:1px;background:#edf0f3}.crm130-chart-col{position:relative;z-index:1;display:grid;grid-template-rows:1fr 18px;align-items:end;text-align:center}.crm130-bars{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px}.crm130-bars i{width:min(15px,34%);min-height:2px;border-radius:3px 3px 0 0;background:#81c7c2;transition:height .2s ease}.crm130-bars i.won{background:#f2ada6}.crm130-chart-col>span{font-size:8px;color:#89939e;text-transform:capitalize}
.crm130-recent>header{border-bottom:1px solid #edf0f2}.crm130-link{border:0;background:transparent;color:#4e5e72;font-size:9px;font-weight:650;cursor:pointer}.crm130-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:13px 16px 17px;background:#fbfcfd}.crm130-board-col{display:grid;align-content:start;gap:7px}.crm130-board-title{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 5px;color:#5f6975;font-size:9px;font-weight:700}.crm130-board-title b{min-width:18px;height:18px;display:grid;place-items:center;border-radius:5px;background:#edf1f4;color:#66717e;font-size:8px}.crm130-quote-tile{display:grid;gap:4px;text-align:left;padding:10px 11px;border:1px solid #e1e6eb;border-radius:8px;background:#fff;cursor:pointer;transition:border-color .14s ease,transform .14s ease,box-shadow .14s ease}.crm130-quote-tile:hover{border-color:#cbd4dd;transform:translateY(-1px);box-shadow:0 4px 10px rgba(30,43,61,.045)}.crm130-quote-tile strong{font-size:9.5px;color:#252d37;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm130-quote-tile small{font-size:8px;color:#98a1aa}.crm130-quote-tile span{font-size:9px;font-weight:700;color:#5a6674}.crm130-board-empty{height:55px;border:1px dashed #dfe4e9;border-radius:8px;display:grid;place-items:center;color:#a1a9b2;font-size:8px}
.crm130-dashboard .today-focus{margin:0!important;border:1px solid #dfe4e9!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}.crm130-dashboard .today-focus-head{padding:15px 17px!important}.crm130-dashboard .today-focus-metrics{border-top:1px solid #edf0f2!important;background:#fbfcfd!important}.crm130-dashboard .today-focus-metrics article{border-color:#e9edf0!important;background:transparent!important}
.crm130-analytics-tools{border:1px solid #dfe4e9;border-radius:10px;background:#f9fafb;overflow:hidden}.crm130-analytics-tools>summary{list-style:none;cursor:pointer;padding:12px 15px;display:flex;align-items:center;gap:10px;color:#4c5867}.crm130-analytics-tools>summary::-webkit-details-marker{display:none}.crm130-analytics-tools>summary:before{content:'›';font-size:17px;color:#87919d;transition:transform .15s ease}.crm130-analytics-tools[open]>summary:before{transform:rotate(90deg)}.crm130-analytics-tools>summary span{font-size:10px;font-weight:700}.crm130-analytics-tools>summary small{font-size:8.5px;color:#9ba3ac}.crm130-analytics-body{padding:0 13px 14px;border-top:1px solid #e8ecef}.crm130-widget-actions{justify-content:flex-end;padding:9px 0}.crm130-dashboard .dashboard-filter-bar{margin:12px 0!important;box-shadow:none!important;border-color:#e0e5ea!important}.crm130-dashboard .dashboard-bento-grid{margin-top:0}
@media(max-width:1180px){.crm130-revenue{grid-template-columns:1fr}.crm130-revenue-main{border-right:0;border-bottom:1px solid #e4e8ec}.crm130-kpi-strip article{min-height:90px}.crm130-chart{height:205px}.topbar-utility span{display:none}.topbar-utility{width:34px;padding:0}.crm130-board{grid-template-columns:1fr}}
@media(max-width:800px){#appView.app-shell{padding:0}.crm130-kpi-strip{grid-template-columns:1fr}.crm130-kpi-strip article{border-right:0;border-bottom:1px solid #e8ecf0}.crm130-dashboard-hero{align-items:flex-start;flex-direction:column}.crm130-hero-actions{width:100%}.crm130-hero-actions button{flex:1}.crm130-chart{overflow-x:auto;grid-template-columns:repeat(8,70px)}#appView .global-search{min-width:0}.topbar-productivity{display:none}}


/* v131.3 dashboard hardening */
.crm130-dashboard{padding:18px 20px 28px;min-width:0}
.crm130-dashboard>*{min-width:0}
.crm130-dashboard .primary,.crm130-dashboard .secondary,.crm130-dashboard button{font-family:inherit}
.crm130-dashboard .crm130-revenue,.crm130-dashboard .crm130-card,.crm130-dashboard .crm130-analytics-tools{width:100%;min-width:0}
@media(max-width:1024px){.crm130-dashboard{padding:14px}.crm130-dashboard-hero h1{font-size:24px}.crm130-kpi-strip article{grid-template-columns:28px minmax(0,1fr) 52px}}
@media(max-width:640px){.crm130-dashboard{padding:10px;gap:12px}.crm130-dashboard-hero h1{font-size:22px}.crm130-revenue-main{padding:15px}.crm130-board{padding:10px}.crm130-card>header{padding:14px 14px 9px}}

/* v131.5 — Modular, simplified dashboard. Dashboard content is widget-first. */
.crm130-dashboard.dash-modular{max-width:1480px;gap:14px;padding:18px 20px 30px}
.dash-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:2px 2px 4px;min-width:0}
.dash-page-heading>div:first-child{min-width:0}.dash-page-heading h1{margin:2px 0 3px;font-size:25px;line-height:1.12;letter-spacing:-.035em;color:#111827}.dash-page-heading p{margin:0;font-size:10px;color:#7b8794}.dash-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.dash-page-actions button{min-height:34px;border-radius:8px!important;box-shadow:none!important;font-size:10px!important}
.dash-modular .dashboard-bento-grid{gap:12px!important;align-items:start!important}.dash-modular .dashboard-widget{border-radius:10px!important;box-shadow:none!important;background:#fff!important}.dash-modular .dashboard-widget:hover{transform:none!important;box-shadow:0 5px 18px rgba(15,23,42,.035)!important}.dash-modular .dashboard-widget-header{min-height:54px!important;padding:11px 14px!important;background:#fff!important}.dash-modular .dashboard-widget-header h2{font-size:12px!important;letter-spacing:-.01em}.dash-modular .dashboard-widget-header p{font-size:9px!important;margin-top:1px!important}.dash-modular .dashboard-widget-body{padding:14px!important}.dash-modular .bento-more{width:30px;height:28px;border-radius:7px}
.dash-simple-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.dash-simple-kpis article{min-width:0;padding:10px 17px;border-right:1px solid #edf0f3}.dash-simple-kpis article:last-child{border-right:0}.dash-simple-kpis small{display:block;margin-bottom:5px;font-size:8px;line-height:1.2;letter-spacing:.07em;font-weight:750;color:#8d98a5}.dash-simple-kpis strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:21px;line-height:1.1;letter-spacing:-.035em;color:#17202b}.dash-simple-kpis span{display:block;margin-top:5px;font-size:8.5px;color:#8e99a6}
.dash-widget-chart{position:relative}.dash-widget-legend{position:absolute;right:5px;top:-3px;z-index:3;display:flex;gap:10px;font-size:8px;color:#7c8793}.dash-widget-legend span{display:flex;align-items:center;gap:5px}.dash-widget-legend i{width:7px;height:7px;border-radius:3px;background:#78c5c0}.dash-widget-legend i.won{background:#f1a7a0}.dash-modular .dash-widget-chart .crm130-chart{height:190px;margin:0;padding:18px 2px 18px;border-top:0}.dash-modular .dash-widget-chart .crm130-chart-grid{inset:18px 0 21px}
.dash-modular .dash-board-compact{padding:0;background:#fff;gap:10px}.dash-modular .crm130-board-title{padding-top:0}.dash-modular .crm130-quote-tile{padding:9px 10px;box-shadow:none}.dash-modular .crm130-quote-tile:hover{transform:none;background:#fafbfc}
.dash-modular .today-focus{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.dash-modular .today-focus-compact .today-focus-metrics{border:0!important;background:#fff!important;grid-template-columns:repeat(2,minmax(0,1fr))}.dash-modular .today-focus-compact .today-focus-metrics article{min-height:68px;padding:10px 12px;background:#fafbfc!important;border:1px solid #edf0f3!important;border-radius:8px!important}.dash-modular .today-focus-compact .today-priority-list{padding:10px 0 0!important;border-top:0!important}.dash-modular .today-focus-compact .today-focus-clear{margin:10px 0 0!important}.dash-modular .workspace-operational{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.dash-modular .workspace-operational-head{display:none!important}.dash-modular .workspace-operational-grid{padding:0!important}.dash-modular .dashboard-widget-body>.dashboard-card{border:0!important;border-radius:0!important;box-shadow:none!important}.dash-modular .dashboard-widget-body>.dashboard-card>header{display:none!important}.dash-modular .sales-performance-grid{margin-top:10px}
.dash-editor-footer{display:flex;justify-content:flex-end;gap:8px;padding:0 2px}.dash-editor-footer button{font-size:9px!important}.dash-modular .dashboard-designer-shelf{margin:0;padding:11px 13px;border-radius:9px}
.dash-modular .system-readiness{margin:0}
@media(max-width:1180px){.dash-simple-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-simple-kpis article:nth-child(2){border-right:0}.dash-simple-kpis article:nth-child(-n+2){border-bottom:1px solid #edf0f3}}
@media(max-width:800px){.crm130-dashboard.dash-modular{padding:13px;gap:11px}.dash-page-heading{align-items:flex-start;flex-direction:column}.dash-page-actions{width:100%;justify-content:flex-start}.dash-page-heading h1{font-size:22px}.dash-simple-kpis{grid-template-columns:1fr}.dash-simple-kpis article{border-right:0!important;border-bottom:1px solid #edf0f3}.dash-simple-kpis article:last-child{border-bottom:0}.dash-modular .today-focus-compact .today-focus-metrics{grid-template-columns:1fr}.dash-widget-legend{position:static;justify-content:flex-end;margin-bottom:4px}}

/* v131.6 — Settings navigation + global search focus stabilization */
/* Search uses the rounded container as the only focus affordance. Never draw a square native outline on the input. */
#appView .global-search:focus-within{
  border-color:#c7d2fe!important;
  background:#fff!important;
  box-shadow:none!important;
}
#appView .global-search input,
#appView .global-search input:focus,
#appView .global-search input:focus-visible{
  outline:none!important;
  outline-offset:0!important;
  box-shadow:none!important;
  border:0!important;
  border-radius:0!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
#appView .global-search input::-webkit-search-decoration,
#appView .global-search input::-webkit-search-cancel-button,
#appView .global-search input::-webkit-search-results-button,
#appView .global-search input::-webkit-search-results-decoration{display:none!important}

/* Settings flyout is part of the clean navigation foundation. It is appended to <body>,
   therefore it must not depend on legacy sidebar styles. */
.tka-clean-nav__settings-panel{
  position:fixed!important;
  left:calc(var(--tka-nav) + 10px)!important;
  bottom:14px!important;
  width:360px!important;
  max-width:calc(100vw - 104px)!important;
  max-height:min(720px,calc(100vh - var(--tka-header) - 28px))!important;
  display:none!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  overflow:auto!important;
  padding:10px!important;
  border:1px solid #e2e7ee!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 18px 48px rgba(15,23,42,.14)!important;
  z-index:var(--z-popover)!important;
  color:#1f2937!important;
  font-family:"Plus Jakarta Sans",Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  scrollbar-width:thin;
}
.tka-clean-nav__settings-panel.open{display:block!important}
#appView.tka-clean-nav-expanded ~ .tka-clean-nav__settings-panel,
body:has(#appView.tka-clean-nav-expanded) .tka-clean-nav__settings-panel{left:calc(var(--tka-nav-expanded) + 10px)!important}
.tka-clean-nav__settings-head{
  position:sticky!important;top:-10px!important;z-index:2!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  min-height:48px!important;padding:10px 10px 9px!important;margin:-10px -10px 4px!important;
  border-bottom:1px solid #edf0f4!important;background:#fff!important
}
.tka-clean-nav__settings-head strong{font-size:13px!important;font-weight:750!important;letter-spacing:-.01em!important;color:#111827!important}
.tka-clean-nav__settings-close{
  width:30px!important;height:30px!important;display:grid!important;place-items:center!important;
  border:0!important;border-radius:8px!important;background:#f5f7fa!important;color:#667085!important;
  font-size:17px!important;line-height:1!important;box-shadow:none!important;outline:none!important
}
.tka-clean-nav__settings-close:hover{background:#eef2f6!important;color:#344054!important}
.tka-clean-nav__settings-section{display:grid!important;gap:3px!important;padding:10px 2px 4px!important}
.tka-clean-nav__settings-section+ .tka-clean-nav__settings-section{border-top:1px solid #f0f2f5!important;margin-top:5px!important}
.tka-clean-nav__settings-section h4{
  margin:0 8px 5px!important;color:#98a2b3!important;font-size:8.5px!important;font-weight:800!important;
  letter-spacing:.08em!important;text-transform:uppercase!important
}
.tka-clean-nav__settings-item{
  width:100%!important;min-height:38px!important;display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;
  align-items:center!important;gap:10px!important;padding:8px 9px!important;margin:0!important;
  border:0!important;border-radius:9px!important;background:transparent!important;color:#475467!important;
  text-align:left!important;box-shadow:none!important;outline:none!important
}
.tka-clean-nav__settings-item:hover{background:#f7f8fb!important;color:#4338ca!important}
.tka-clean-nav__settings-item.active{background:#eef2ff!important;color:#4338ca!important}
.tka-clean-nav__settings-item svg{
  width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;stroke-linecap:round!important;stroke-linejoin:round!important
}
.tka-clean-nav__settings-item span{
  display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  color:inherit!important;font-size:10.5px!important;font-weight:600!important;line-height:1.25!important
}
.tka-clean-nav__settings-item:focus-visible,.tka-clean-nav__settings-close:focus-visible{
  outline:0!important;box-shadow:0 0 0 2px rgba(79,70,229,.14)!important
}
@media(max-width:860px){
  .tka-clean-nav__settings-panel{left:80px!important;bottom:10px!important;width:min(350px,calc(100vw - 92px))!important;max-height:calc(100vh - 82px)!important}
  body:has(#appView.tka-clean-nav-expanded) .tka-clean-nav__settings-panel{left:80px!important}
}


/* v132.2 Account profile menu ------------------------------------------------ */
#appView .user-menu{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
#appView .profile-menu-wrap{position:relative!important;min-width:0!important}
#appView .profile-trigger{display:grid!important;grid-template-columns:30px minmax(0,1fr) 16px!important;align-items:center!important;gap:8px!important;min-width:188px!important;max-width:260px!important;height:44px!important;padding:4px 8px 4px 5px!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:#0f172a!important;text-align:left!important;box-shadow:none!important;outline:none!important}
#appView .profile-trigger:hover,#appView .profile-trigger[aria-expanded="true"]{background:#f8fafc!important;border-color:#e5eaf0!important}
#appView .profile-trigger .avatar{width:30px!important;height:30px!important;display:grid!important;place-items:center!important;margin:0!important;border-radius:50%!important;background:#eef2ff!important;color:#4f46e5!important;font-size:11px!important;font-weight:800!important}
#appView .profile-trigger-copy{display:grid!important;min-width:0!important;gap:1px!important}
#appView .profile-trigger-copy strong{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#172033!important;font-size:10.5px!important;font-weight:750!important;line-height:1.25!important}
#appView .profile-trigger-copy small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#98a2b3!important;font-size:8.5px!important;line-height:1.25!important}
#appView .profile-chevron{width:14px!important;height:14px!important;fill:none!important;stroke:#98a2b3!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#appView .profile-dropdown{position:absolute!important;right:0!important;top:calc(100% + 8px)!important;width:284px!important;padding:8px!important;border:1px solid #e4e9f0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 20px 48px rgba(15,23,42,.15)!important;z-index:var(--z-popover)!important}
#appView .profile-dropdown.hidden{display:none!important}
#appView .profile-dropdown-head{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:10px!important}
#appView .profile-menu-avatar{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:linear-gradient(135deg,#eef2ff,#f5f3ff)!important;color:#4f46e5!important;font-size:12px!important;font-weight:800!important}
#appView .profile-dropdown-head>div:last-child{display:grid!important;min-width:0!important;gap:2px!important}
#appView .profile-dropdown-head strong{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#101828!important;font-size:11px!important}
#appView .profile-dropdown-head small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#98a2b3!important;font-size:9px!important}
#appView .profile-dropdown>button{width:100%!important;display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:9px 10px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#475467!important;text-align:left!important;box-shadow:none!important;outline:none!important}
#appView .profile-dropdown>button:hover{background:#f7f8fa!important;color:#344054!important}
#appView .profile-dropdown>button svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#appView .profile-dropdown>button span{display:grid!important;gap:1px!important}
#appView .profile-dropdown>button b{font-size:10.5px!important;font-weight:700!important}
#appView .profile-dropdown>button small{color:#98a2b3!important;font-size:8.5px!important;font-weight:500!important}
#appView .profile-dropdown .profile-logout{color:#b42318!important}
#appView .profile-dropdown .profile-logout:hover{background:#fff4f2!important;color:#b42318!important}
#appView .profile-dropdown-separator{height:1px!important;margin:5px 4px!important;background:#eef1f5!important}
/* legacy logout button must not participate in layout; logout now lives inside profile dropdown */
#appView .topbar-logout{display:none!important}

.account-modal{position:fixed!important;inset:0!important;z-index:calc(var(--z-modal) + 20)!important;display:grid!important;place-items:center!important;padding:24px!important}
.account-modal.hidden{display:none!important}
.account-modal-backdrop{position:absolute!important;inset:0!important;background:rgba(15,23,42,.42)!important;backdrop-filter:blur(2px)!important}
.account-modal-card{position:relative!important;width:min(480px,calc(100vw - 32px))!important;overflow:hidden!important;border:1px solid #e2e8f0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 30px 80px rgba(15,23,42,.22)!important}
.account-modal-card>header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:20px!important;padding:22px 22px 17px!important;border-bottom:1px solid #eef2f6!important}
.account-modal-kicker{display:block!important;margin-bottom:5px!important;color:#4f46e5!important;font-size:8.5px!important;font-weight:800!important;letter-spacing:.08em!important}
.account-modal-card h2{margin:0!important;color:#101828!important;font-size:17px!important;font-weight:750!important}
.account-modal-card header p{margin:5px 0 0!important;color:#667085!important;font-size:10px!important}
.account-modal-close{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border:1px solid #e4e7ec!important;border-radius:9px!important;background:#fff!important;color:#667085!important;font-size:20px!important;line-height:1!important}
.account-modal-card form{display:grid!important;gap:14px!important;padding:20px 22px 22px!important}
.account-modal-card form label{display:grid!important;gap:6px!important;color:#344054!important;font-size:10px!important;font-weight:700!important}
.account-modal-card form input{width:100%!important;height:40px!important;padding:0 12px!important;border:1px solid #d9e0e8!important;border-radius:9px!important;background:#fff!important;color:#101828!important;font-size:11px!important;outline:none!important;box-shadow:none!important}
.account-modal-card form input:focus{border-color:#a5b4fc!important;box-shadow:0 0 0 3px rgba(99,102,241,.08)!important}
.account-modal-error{min-height:16px!important;color:#b42318!important;font-size:10px!important}
.account-modal-card form footer{display:flex!important;justify-content:flex-end!important;gap:8px!important;padding-top:2px!important}
.account-modal-card form footer button{min-height:38px!important;padding:8px 14px!important;border-radius:9px!important;font-size:10px!important;font-weight:700!important}
@media(max-width:760px){#appView .profile-trigger{min-width:38px!important;width:38px!important;grid-template-columns:30px!important;padding:4px!important}.profile-trigger-copy,#appView .profile-chevron{display:none!important}#appView .profile-dropdown{right:-4px!important;width:min(284px,calc(100vw - 24px))!important}}

/* v132.5 - customer portfolio AI action + local search alignment */
.customer-search-v1303{position:relative!important;display:flex!important;align-items:center!important;width:100%!important;box-sizing:border-box!important;height:38px!important;padding:0!important;gap:0!important;overflow:hidden!important;border:1px solid var(--tka-line-strong)!important;border-radius:9px!important;background:#f8fafc!important}
.customer-search-v1303>svg{position:absolute!important;left:12px!important;top:50%!important;transform:translateY(-50%)!important;width:15px!important;height:15px!important;z-index:1!important;pointer-events:none!important;color:#94a3b8!important}
.customer-search-v1303 input,.customer-search-v1303 input:focus,.customer-search-v1303 input:focus-visible{display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;height:100%!important;box-sizing:border-box!important;margin:0!important;padding:0 12px 0 36px!important;border:0!important;border-radius:9px!important;background:transparent!important;outline:0!important;box-shadow:none!important;font-size:10px!important}
.customer-directory-entry{display:flex!important;align-items:stretch!important;min-width:0!important}
.customer-directory-entry .customer-directory-row{flex:1 1 auto!important;min-width:0!important}
.customer-directory-entry .customer-ai-mini{align-self:center!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;flex:0 0 auto!important;width:38px!important;height:30px!important;margin:0 7px 0 3px!important;padding:0!important;border:1px solid #d9defb!important;border-radius:8px!important;background:#fff!important;color:#4f46e5!important;font-size:9px!important;font-weight:800!important;opacity:.72!important}
.customer-directory-entry .customer-ai-mini svg{width:12px!important;height:12px!important}
.customer-directory-entry:hover .customer-ai-mini,.customer-directory-entry .customer-ai-mini:hover,.customer-directory-entry .customer-ai-mini:focus-visible{opacity:1!important;background:#eef2ff!important;border-color:#c7d2fe!important;outline:0!important}
/* v134 Copilot modes + understood context */
.global-copilot-modes{display:flex;gap:6px;padding:10px 14px 0}.global-copilot-modes button{flex:1;border:1px solid var(--border,#e5e7eb);background:#fff;border-radius:10px;padding:8px;font-size:12px;font-weight:700}.global-copilot-modes button.active{border-color:#6d5dfc;background:#f4f2ff;color:#5145cd}.copilot-understood{margin:8px 0 12px;padding:12px;border:1px solid #e8e5ff;background:#faf9ff;border-radius:12px;display:grid;gap:4px}.copilot-understood small{font-size:10px;font-weight:800;color:#6d5dfc}.copilot-understood span{font-size:12px;color:#64748b}.product-rule-box{padding:12px;border:1px solid #e8e5ff;border-radius:12px;background:#faf9ff}

/* v139.1 — Realtime Work Center */
.crm-context-live{border-top:1px solid #eef1f5!important;padding-top:14px!important}
.crm-realtime-badge{display:inline-flex!important;align-items:center;min-height:20px;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:9px!important;font-weight:800;letter-spacing:.02em}
.crm-realtime-badge.connected{background:#ecfdf5;color:#047857}.crm-realtime-badge.error,.crm-realtime-badge.disconnected{background:#fff7ed;color:#c2410c}
.crm-realtime-items{display:grid;gap:7px}.crm-realtime-event{display:grid;grid-template-columns:8px minmax(0,1fr);gap:8px;align-items:start;padding:8px 9px;border:1px solid #edf0f4;border-radius:9px;background:#fff}.crm-realtime-event>i{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#64748b}.crm-realtime-event.copilot>i{background:#6366f1}.crm-realtime-event.pdf>i{background:#0ea5e9}.crm-realtime-event.quote>i{background:#10b981}.crm-realtime-event strong,.crm-realtime-event small{display:block}.crm-realtime-event strong{font-size:10px;color:#334155}.crm-realtime-event small{margin-top:2px;font-size:9px;line-height:1.35;color:#94a3b8}.crm-realtime-event time{display:block;margin-top:3px;font-size:8px;color:#c0c7d2}.crm-system-state.realtime-offline>i{background:#f59e0b!important}

/* v141.3 Adaptive Copilot: user-facing mode selection removed. */
.global-copilot-adaptive{display:flex;align-items:center;gap:10px;margin:10px 14px 2px;padding:9px 11px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;color:#1e3a8a}
.global-copilot-adaptive>span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#eff6ff;color:#2563eb;font-weight:800}
.global-copilot-adaptive div{display:grid;gap:1px}.global-copilot-adaptive strong{font-size:12px}.global-copilot-adaptive small{font-size:10px;color:#64748b;line-height:1.35}
