/* Approved Customers directory, desktop workspace, and field workspace. */
.customer-reference-shell .customer-reference-topbar{display:none!important}
.customer-reference-shell>main{grid-template-rows:minmax(0,1fr)!important}
.customer-reference-shell>main>section.content{height:100%!important;padding:0!important;overflow:hidden!important;scrollbar-width:none;-ms-overflow-style:none}
@media (min-width:901px){
  .premium-app.customer-reference-shell:not(.sidebar-collapsed){grid-template-columns:260px minmax(0,1fr)!important}
  .premium-app.customer-reference-shell:not(.sidebar-collapsed)>.crm-sidebar{width:260px!important}
}
.customer-canonical-workspace-host-v8{display:contents!important}
.customers-page-v8{--c8-bg:#030b14;--c8-surface:#071524;--c8-surface-2:#0a1b2d;--c8-line:#25384b;--c8-text:#f5f7fb;--c8-muted:#aab8ca;--c8-orange:#ff7a00;--c8-cyan:#19b8ff;--c8-green:#21d779;--c8-violet:#bd6cff;color:var(--c8-text);background:radial-gradient(circle at 72% 14%,rgba(0,91,151,.12),transparent 34%),var(--c8-bg);min-height:100vh;overflow:hidden;font-synthesis:none;text-rendering:optimizeLegibility;text-shadow:none}
.customers-page-v8 *{box-sizing:border-box}
.customers-page-v8 button,.customers-page-v8 a,.customers-page-v8 input,.customers-page-v8 textarea,.customers-page-v8 summary{font:inherit}
.customers-page-v8 button:focus-visible,.customers-page-v8 a:focus-visible,.customers-page-v8 input:focus-visible,.customers-page-v8 textarea:focus-visible,.customers-page-v8 summary:focus-visible{outline:2px solid var(--c8-orange)!important;outline-offset:2px}
.customer-live-v8{position:fixed;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
.customer-directory-screen-v8{height:100vh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.customer-directory-header-v8{position:relative;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:16px 20px;border-bottom:1px solid var(--c8-line);background:rgba(3,11,20,.94);overflow:visible}
.customer-directory-header-v8>div:first-child{display:flex;align-items:center;gap:14px;min-width:210px}
.customer-directory-header-v8>div:first-child>svg{width:34px;height:34px;color:var(--c8-cyan)}
.customer-directory-header-v8 h1{font-size:25px;line-height:1.1;margin:0;color:#fff}
.customer-directory-header-v8 small{display:block;margin-top:4px;font-size:14px;color:var(--c8-muted)}
.customer-directory-view-toggle-v8{display:flex;align-items:center;gap:5px;margin-left:4px}
.customer-directory-view-toggle-v8 button{width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid var(--c8-line);border-radius:7px;background:#0a1726;color:#aebdce}
.customer-directory-view-toggle-v8 button.active{border-color:var(--c8-cyan);color:var(--c8-cyan);background:rgba(25,184,255,.08)}
.customer-directory-view-toggle-v8 svg{width:18px;height:18px}
.customer-directory-header-actions-v8{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.customer-directory-header-actions-v8>label:first-child{position:relative;width:min(360px,31vw)}
.customer-directory-header-actions-v8>label:first-child svg{position:absolute;left:13px;top:50%;translate:0 -50%;width:19px;color:#91a3b7}
.customer-directory-header-actions-v8 input{width:100%;height:44px;padding:0 14px 0 42px;border:1px solid var(--c8-line);border-radius:7px;background:#071422;color:#fff}
.customer-directory-header-actions-v8 .primary,.customer-directory-header-actions-v8 .btn{height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 17px;border-radius:7px;white-space:nowrap}
.customer-directory-header-actions-v8 .customer-search-clear-v8{width:44px;padding:0}
.customer-directory-header-actions-v8 .primary{background:var(--c8-orange);border-color:var(--c8-orange);color:#090b0e;font-weight:800}
.customer-directory-header-actions-v8 .btn{background:#0a1726;border:1px solid var(--c8-line);color:#fff}
.customer-directory-header-actions-v8 .primary,
.customer-directory-header-actions-v8 .btn,
.customer-directory-header-actions-v8 .customer-inline-upload,
.customer-list-title-actions-v9 .primary,
.customer-list-title-actions-v9 .btn,
.customer-list-title-actions-v9 .customer-inline-upload{
  text-transform:none;
  letter-spacing:0;
}
.customer-directory-header-actions-v8 svg{width:19px}
.customer-directory-header-actions-v8 details{position:relative;z-index:100}
.customer-directory-header-actions-v8 summary{list-style:none;cursor:pointer}
.customer-directory-header-actions-v8 summary::-webkit-details-marker{display:none}
.customer-directory-header-actions-v8 details>div{position:absolute;right:0;top:50px;z-index:120;min-width:178px;padding:6px;background:#081522;border:1px solid var(--c8-line);border-radius:7px;box-shadow:0 18px 40px #000b}
.customer-directory-header-actions-v8 details button{display:flex;align-items:center;gap:10px;width:100%;padding:11px;border:0;background:transparent;color:#fff;text-align:left;border-radius:5px}
.customer-directory-header-actions-v8 details button:hover{background:#102238}
.customer-directory-layout-v8{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:0}
.customer-directory-layout-v8.is-full-list{grid-template-columns:minmax(0,1fr)}
.customer-directory-layout-v8.is-full-list .customer-directory-panel-v8{border-right:0}
.customer-directory-layout-v8.is-full-list .customer-directory-row-v8{grid-template-columns:54px minmax(180px,.78fr) minmax(510px,2fr) 126px;min-height:94px;padding:12px 24px;column-gap:18px}
.customer-directory-layout-v8.is-full-list .customer-directory-copy-v8{display:flex}
.customer-directory-layout-v8.is-full-list .customer-directory-copy-v8 strong{font-size:16px}
.customer-directory-layout-v8.is-full-list .customer-directory-copy-v8 small{font-size:13px}
.customer-directory-contact-v8{display:none;min-width:0}
.customer-directory-layout-v8.is-full-list .customer-directory-contact-v8{display:grid;grid-template-columns:minmax(145px,.85fr) minmax(210px,1.35fr) minmax(115px,.7fr);align-items:center;gap:18px}
.customer-directory-contact-v8>span{display:grid;min-width:0;gap:4px}
.customer-directory-contact-v8 small{color:#7f93a9;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.customer-directory-contact-v8 b{overflow:hidden;color:#e8eef5;font-size:12.5px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.customer-directory-panel-v8{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;border-right:1px solid var(--c8-line);background:#061321}
.customer-directory-panel-v8>nav{display:grid;grid-template-columns:.75fr 1.55fr 1.15fr .75fr;border-bottom:1px solid var(--c8-line)}
.customer-directory-panel-v8>nav button{position:relative;min-height:54px;padding:8px 4px;border:0;background:transparent;color:#bdc9d8;font-size:11.5px;font-weight:700;white-space:nowrap}
.customer-directory-panel-v8>nav button.active{color:var(--c8-orange)}
.customer-directory-panel-v8>nav button.active:after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:3px;background:var(--c8-orange)}
.customer-directory-panel-v8>nav b{margin-left:4px;color:inherit}
.customer-directory-scroll-v8{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none}
.customer-directory-row-v8{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr) 82px;align-items:center;gap:8px;width:100%;min-height:94px;padding:12px 12px 12px 16px;border:0;border-bottom:1px solid #203246;background:#071625;color:#fff;text-align:left;cursor:pointer}
.customer-directory-row-v8:hover{background:#0b2034}
.customer-directory-row-v8.active{background:#0c2237;box-shadow:inset 4px 0 var(--c8-orange)}
.customer-initials-v8,.customer-preview-identity-v8>span,.customer-workspace-person-v8>span{color:var(--c8-orange);font-weight:800;letter-spacing:.02em}
.customer-initials-v8{font-size:28px;text-align:center}
.customer-directory-copy-v8{display:flex;min-width:0;flex-direction:column;gap:4px}
.customer-directory-copy-v8 strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-directory-copy-v8 small{font-size:12px;color:#bec9d7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-directory-copy-v8 em{font-size:12px;font-style:normal;font-weight:800;color:var(--c8-orange)}
.tone-appointment-set .customer-directory-copy-v8 em{color:var(--c8-cyan)}
.tone-active-job .customer-directory-copy-v8 em,.tone-completed-customer .customer-directory-copy-v8 em{color:var(--c8-green)}
.tone-balance-due .customer-directory-copy-v8 em{color:#ffbf37}
.customer-directory-meta-v8{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px;color:#bdc9d8;text-align:right}
.customer-directory-meta-v8 time,.customer-directory-meta-v8 b{grid-column:1;font-size:12px}
.customer-directory-meta-v8>svg{grid-column:2;width:17px;color:#9cb0c3}
.customer-directory-meta-v8>svg:first-of-type{color:var(--c8-cyan)}
.customer-directory-panel-v8>footer{height:56px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--c8-line);color:#adbbcb;font-size:13px}
.customer-directory-panel-v8>footer button,.customer-inline-action-v8,.customer-card-heading-v8 button,.customer-preview-card-v8 button,.customer-workspace-rail-v8 button{border:0;background:transparent;color:var(--c8-orange);font-weight:800;cursor:pointer}
.customer-directory-panel-v8>footer button{display:flex;align-items:center;gap:6px}
.customer-directory-empty-v8,.customer-empty-v8{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:25px;text-align:center;color:var(--c8-muted)}
.customer-directory-empty-v8 svg,.customer-empty-v8 svg{width:32px;height:32px;color:var(--c8-cyan)}
.customer-quick-preview-v8{min-width:0;overflow-y:auto;background:rgba(3,11,20,.55)}
.customer-quick-preview-v8.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}
.customer-preview-hero-v8{display:grid;grid-template-columns:minmax(230px,1fr) auto auto;align-items:center;gap:8px 12px;padding:10px 20px;border-bottom:1px solid var(--c8-line)}
.customer-preview-identity-v8{display:flex;align-items:center;gap:15px}
.customer-preview-identity-v8>span{font-size:36px;line-height:1}
.customer-preview-identity-v8 h2{margin:0 0 4px;font-size:24px}
.customer-preview-identity-v8 strong{color:var(--c8-orange);font-size:15px}
.customer-open-workspace-v8{grid-column:3;grid-row:1;align-self:center;min-width:164px;height:40px;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:7px;background:var(--c8-orange)!important;color:#090b0e!important;font-weight:800}
.customer-preview-actions-v8 .customer-preview-build-project-v10{
  align-self:center;
  min-width:164px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:7px;
  border:1px solid rgba(255,171,61,.58);
  background:rgba(7,20,34,.62);
  color:var(--c8-orange);
  font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(255,171,61,.08);
  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.customer-preview-actions-v8 .customer-preview-build-project-v10:hover,
.customer-preview-actions-v8 .customer-preview-build-project-v10:focus-visible{
  background:rgba(229,106,16,.14);
  border-color:rgba(255,171,61,.82);
  color:#ffd2a0;
  box-shadow:inset 0 0 0 1px rgba(255,171,61,.16),0 0 0 3px rgba(229,106,16,.12);
}
.customer-preview-actions-v8 .customer-preview-build-project-v10:active{
  background:rgba(229,106,16,.22);
  transform:translateY(1px);
}
.customer-preview-actions-v8 .customer-preview-build-project-v10 svg{width:18px;height:18px;color:currentColor}
.customer-preview-contact-v8{grid-column:1/-1;grid-row:2;display:flex;gap:22px;min-width:0}
.customer-preview-contact-v8 a{display:flex;align-items:center;gap:8px;color:#d3dbe7;text-decoration:none;font-size:14px;min-width:0}
.customer-preview-contact-v8 a svg{width:18px;color:#aebdce;flex:0 0 auto}
.customer-preview-actions-v8{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(5,64px);align-items:center;justify-content:end;gap:14px}
.customer-preview-actions-v8 a,.customer-preview-actions-v8 button{width:64px;min-width:64px;display:grid;place-items:center;gap:3px;padding:0;border:0;background:transparent;color:#fff;text-decoration:none;cursor:pointer}
.customer-preview-actions-v8 a>span,.customer-preview-actions-v8 button>span{font-size:11px;font-weight:800;line-height:1;color:#eef3f8}
.customer-preview-actions-v8 svg{box-sizing:border-box;width:34px;height:34px;padding:7px;border:1.5px solid currentColor!important;border-radius:50%!important;background:#071523!important;box-shadow:none!important;filter:none!important}
.customer-preview-actions-v8 .action-call{color:#20bfff}
.customer-preview-actions-v8 .action-text{color:#21d779}
.customer-preview-actions-v8 .action-email{color:#c477ff}
.customer-preview-actions-v8 .action-map{color:#ffae32}
.customer-preview-actions-v8 .action-edit{width:64px;min-width:64px;color:var(--c8-orange)}
.customer-preview-actions-v8 a:hover svg,.customer-preview-actions-v8 button:hover svg{border-color:var(--c8-orange)!important;color:var(--c8-orange);background:#0c1b2b!important}
.customer-preview-journey-v8,.customer-workspace-journey-v8{padding:16px 28px;border-bottom:1px solid var(--c8-line);background:#061321}
.customer-journey-v8{display:grid;grid-template-columns:repeat(5,1fr);align-items:start}
.customer-journey-v8 span{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#96a6b9;font-size:12px;text-align:center}
.customer-journey-v8 span:before{content:"";position:absolute;top:15px;left:-50%;width:100%;height:1px;background:#405166}
.customer-journey-v8 span:first-child:before{display:none}
.customer-journey-v8 svg{position:relative;z-index:1;width:31px;height:31px;padding:6px;background:#061321;color:#91a1b4}
.customer-journey-v8 span.done svg{color:var(--c8-cyan)}
.customer-journey-v8 span.done:before{background:var(--c8-cyan)}
.customer-journey-v8 span.active{color:var(--c8-orange)}
.customer-journey-v8 span.active svg{color:var(--c8-orange)}
.customer-priority-grid-v8{margin:18px 28px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--c8-line);border-radius:7px;background:#071624}
.customer-priority-grid-v8>article{display:grid;grid-template-columns:32px 1fr;gap:12px;padding:17px 20px;min-width:0}
.customer-priority-grid-v8>article+article{border-left:1px solid var(--c8-line)}
.customer-priority-grid-v8>article>svg{width:25px;color:var(--c8-orange)}
.customer-priority-grid-v8>article:nth-child(2)>svg{color:var(--c8-cyan)}
.customer-priority-grid-v8>article:nth-child(3)>svg{color:var(--c8-green)}
.customer-priority-grid-v8 article div{display:flex;flex-direction:column;gap:6px;min-width:0}
.customer-priority-grid-v8 small{font-size:13px;font-weight:800;color:#fff}
.customer-priority-grid-v8 strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-priority-grid-v8 span{font-size:13px;color:var(--c8-muted)}
.customer-inline-action-v8{display:flex;align-items:center;gap:5px;width:max-content;padding:3px 0}
.customer-inline-action-v8 svg{width:15px}
.customer-preview-lower-v8{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.72fr);gap:18px;margin:0 28px 28px}
.customer-preview-lower-v8>aside{display:grid;gap:14px}
.customer-preview-card-v8,.customer-workspace-rail-v8>section{padding:18px;border:1px solid var(--c8-line);border-radius:7px;background:#071624}
.customer-card-heading-v8{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.customer-card-heading-v8 h3{display:flex;align-items:center;gap:9px;margin:0;font-size:17px}
.customer-card-heading-v8 h3 svg{width:22px;color:var(--c8-violet)}
.customer-preview-card-v8 p{margin:6px 0;color:#bac5d3;font-size:14px;line-height:1.5}
.customer-summary-button-v8{display:flex!important;align-items:center;gap:8px;margin-top:12px;padding:9px 12px!important;border:1px solid var(--c8-violet)!important;border-radius:6px;color:#d795ff!important}
.customer-preview-card-v8.recent article{display:grid;grid-template-columns:28px minmax(0,1fr) auto 16px;gap:12px;align-items:center;padding:11px 8px;border-top:1px solid #253649;border-radius:6px}
.customer-preview-card-v8.recent article.is-clickable{cursor:pointer;transition:background-color .15s ease,color .15s ease}
.customer-preview-card-v8.recent article.is-clickable:hover,.customer-preview-card-v8.recent article.is-clickable:focus-visible{outline:1px solid var(--c8-orange);outline-offset:-1px;background:#0b1e31}
.customer-preview-card-v8.recent article>svg{width:20px;height:20px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;filter:none;color:var(--c8-cyan)}
.customer-preview-card-v8.recent article.kind-proposal>svg,
.customer-preview-card-v8.recent article.kind-invoice>svg{color:var(--c8-orange)}
.customer-preview-card-v8.recent article.kind-sms>svg,
.customer-preview-card-v8.recent article.kind-message>svg,
.customer-preview-card-v8.recent article.kind-job>svg{color:var(--c8-green)}
.customer-preview-card-v8.recent article.kind-note>svg{color:var(--c8-violet)}
.customer-preview-card-v8.recent article.kind-appointment>svg,
.customer-preview-card-v8.recent article.kind-file>svg{color:var(--c8-cyan)}
.customer-preview-card-v8.recent article div{display:flex;min-width:0;flex-direction:column;gap:3px}
.customer-preview-card-v8.recent article span,.customer-preview-card-v8.recent article time{font-size:12px;color:var(--c8-muted)}
.customer-preview-card-v8.recent article>.customer-recent-chevron-v8{width:16px;height:16px;color:var(--c8-orange)}

.customer-workspace-backdrop-v8{position:fixed;inset:0;z-index:900;display:grid;place-items:center;padding:12px 14px;background:rgba(0,7,14,.78)}
html:has(.customer-workspace-backdrop-v8),
body:has(.customer-workspace-backdrop-v8){overflow:hidden!important}
.customer-workspace-dialog-v8{width:min(1540px,calc(100vw - 28px));height:min(920px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);display:grid;grid-template-rows:auto auto auto minmax(0,1fr);min-width:0;background:#04101b;border:1px solid #31465a;border-radius:18px;box-shadow:0 30px 100px rgba(0,0,0,.72),0 0 0 1px rgba(255,255,255,.03) inset;overflow:hidden}
.customer-workspace-backdrop-v8.expanded{padding:0}
.customer-workspace-backdrop-v8.expanded .customer-workspace-dialog-v8{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
.customer-workspace-header-v8{display:grid;grid-template-columns:minmax(270px,1fr) auto;align-items:center;gap:8px 18px;min-height:76px;padding:11px 20px;border-bottom:1px solid var(--c8-line);background:radial-gradient(circle at 65% 0,rgba(0,102,170,.12),transparent 35%),#051321}
.customer-workspace-person-v8{display:flex;align-items:center;gap:14px}
.customer-workspace-person-v8>span{font-size:31px}
.customer-workspace-person-v8 h1{margin:0;font-size:22px}
.customer-workspace-name-row-v8{display:flex;align-items:center;gap:8px}
.customer-workspace-name-row-v8>button{width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:transparent;color:var(--c8-orange)}
.customer-workspace-name-row-v8>button:hover,.customer-workspace-name-row-v8>button:focus-visible{outline:1px solid var(--c8-orange);outline-offset:1px;background:rgba(255,122,0,.08)}
.customer-workspace-name-row-v8>button svg{width:17px;height:17px}
.customer-workspace-person-v8 strong{display:block;margin-top:4px;color:var(--c8-orange);font-size:13px}
.customer-workspace-person-v8 strong b{color:#7f8da0;margin:0 5px}
.customer-workspace-contact-v8{display:flex;gap:20px;align-items:center}
.customer-workspace-contact-v8 a{display:flex;align-items:center;gap:7px;color:#cbd5e1;text-decoration:none;font-size:13px}
.customer-workspace-contact-v8 svg{width:17px}
.customer-workspace-head-actions-v8{grid-column:2;grid-row:1;display:flex;align-items:center;gap:12px}
.customer-workspace-head-actions-v8>button{box-sizing:border-box;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px}
.customer-workspace-head-actions-v8>.primary{width:184px;min-width:184px;flex:0 0 184px;padding:0 20px;background:var(--c8-orange);border-color:var(--c8-orange);color:#080b0e;font-weight:800}
.customer-workspace-head-actions-v8>.btn:not(.icon-only){width:184px;min-width:184px;flex:0 0 184px;padding:0 18px;border-color:#354a5f;background:#0a1827}
.customer-workspace-head-actions-v8>.icon-only{width:44px;min-width:44px;padding:0;border-color:#354a5f;background:#0a1827}
.customer-workspace-head-actions-v8>.btn:hover{border-color:var(--c8-orange);background:#102235}
.customer-workspace-contact-actions-v8{display:flex;align-items:center;gap:14px;margin-right:4px;padding-right:18px;border-right:1px solid #2b4052}
.customer-workspace-contact-actions-v8 a{width:50px;min-width:50px;display:grid;place-items:center;gap:4px;color:#fff;text-decoration:none;transition:transform .15s ease}
.customer-workspace-contact-actions-v8 a>span{color:#eef3f8;font-size:11px;font-weight:800;line-height:1}
.customer-workspace-contact-actions-v8 svg{box-sizing:border-box;width:36px;height:36px;padding:8px;border:1.5px solid currentColor;border-radius:50%;background:#071523;box-shadow:none;filter:none}
.customer-workspace-contact-actions-v8 .action-call{color:#20bfff}
.customer-workspace-contact-actions-v8 .action-text{color:#21d779}
.customer-workspace-contact-actions-v8 .action-email{color:#c477ff}
.customer-workspace-contact-actions-v8 .action-map{color:#ffae32}
.customer-workspace-contact-actions-v8 a:hover,.customer-workspace-contact-actions-v8 a:focus-visible{transform:translateY(-1px)}
.customer-workspace-contact-actions-v8 a:hover svg,.customer-workspace-contact-actions-v8 a:focus-visible svg{border-color:var(--c8-orange);color:var(--c8-orange);background:#0c1b2b}
.customer-workspace-mobile-back-v8,.customer-mobile-actions-v8,.customer-mobile-primary-v8,.customer-mobile-tabs-v8{display:none}
.customer-workspace-tabs-v8{display:flex;align-items:stretch;padding:0 20px;border-bottom:1px solid var(--c8-line);background:#061320;overflow-x:auto}
.customer-workspace-tabs-v8>button,.customer-workspace-tabs-v8>span>button{height:46px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;border:0;border-bottom:2px solid transparent;background:transparent;color:#aebacc;font-size:13px;white-space:nowrap}
.customer-workspace-tabs-v8 button.active{border-bottom-color:var(--c8-orange);color:var(--c8-orange)}
.customer-workspace-tabs-v8 svg{width:17px}
.customer-tab-mobile-label-v8{display:none}
.customer-desktop-tabs-v8{display:flex}
.customer-workspace-body-v8{min-height:0;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}
.customer-workspace-overview-v8,.customer-activity-workspace-v8{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;padding:18px}
.customer-workspace-overview-v8>main{min-width:0}
.customer-overview-metrics-v8{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px}
.customer-overview-metrics-v8 article{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--c8-line);border-radius:7px;background:#071624}
.customer-overview-metrics-v8 svg{width:24px;color:var(--c8-cyan)}
.customer-overview-metrics-v8 span{display:flex;flex-direction:column;gap:4px;color:var(--c8-muted);font-size:12px}
.customer-overview-metrics-v8 strong{color:#fff;font-size:18px}
.customer-workspace-rail-v8{display:flex;flex-direction:column;gap:12px;min-width:0;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}
.customer-workspace-rail-v8>section{display:flex;flex-direction:column;gap:8px}
.customer-workspace-rail-v8 h3{display:flex;align-items:center;gap:8px;margin:0;font-size:16px}
.customer-workspace-rail-v8 h3 svg{width:21px;color:var(--c8-orange)}
.customer-workspace-rail-v8 span,.customer-workspace-rail-v8 p{color:var(--c8-muted);font-size:13px;line-height:1.5;margin:0}
.customer-workspace-rail-v8 dl,.customer-workspace-rail-v8 dl div{margin:0}
.customer-workspace-rail-v8 dl div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-top:1px solid #26384b;font-size:12px}
.customer-workspace-rail-v8 dt{color:var(--c8-muted)}.customer-workspace-rail-v8 dd{margin:0;color:#fff;font-weight:700;text-align:right}
.customer-stage-card-v8{position:relative;overflow:visible!important}
.customer-stage-native-v8{position:absolute!important;inline-size:1px!important;block-size:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.customer-stage-dropdown-v8{position:relative;width:100%}
.customer-stage-trigger-v8{width:100%;height:40px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #596170;border-radius:7px;background:#07131e;color:#fff;font-weight:800;text-align:left}
.customer-stage-trigger-v8 svg{width:17px;height:17px;color:#c7d2df;transition:transform .14s ease}
.customer-stage-trigger-v8:hover,.customer-stage-trigger-v8:focus,.customer-stage-trigger-v8:focus-visible,.customer-stage-trigger-v8[aria-expanded="true"]{border-color:var(--c8-orange)!important;outline:2px solid var(--c8-orange)!important;outline-offset:2px!important;background:#07131e!important;box-shadow:none!important}
.customer-stage-trigger-v8[aria-expanded="true"] svg{transform:rotate(180deg);color:var(--c8-orange)}
.customer-stage-menu-v8{position:absolute;z-index:120;top:calc(100% + 7px);left:0;right:0;display:grid;gap:4px;max-height:300px;padding:6px;border:1px solid var(--c8-orange);border-radius:8px;background:#07131e;box-shadow:0 16px 32px rgba(0,0,0,.38);overflow-y:auto;scrollbar-width:none}
.customer-stage-menu-v8::-webkit-scrollbar{display:none}
.customer-stage-menu-v8[hidden]{display:none!important}
.customer-stage-menu-v8 button{width:100%;min-height:36px;padding:7px 10px;border:1px solid transparent;border-radius:6px;background:#07131e;color:#dbe5ef;font-weight:750;text-align:left}
.customer-stage-menu-v8 button:hover,.customer-stage-menu-v8 button:focus,.customer-stage-menu-v8 button:focus-visible{border-color:var(--c8-orange)!important;outline:0!important;background:#07131e!important;color:#fff!important;box-shadow:none!important}
.customer-stage-menu-v8 button[aria-selected="true"]{border-color:rgba(255,122,0,.48);background:#07131e;color:var(--c8-orange)}
.customer-activity-workspace-v8{padding:0 18px 18px}
.customer-activity-main-v8{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;border-right:1px solid var(--c8-line);padding-right:18px}
.customer-messages-workspace-v8{grid-template-columns:minmax(0,1fr)}
.customer-messages-workspace-v8 .customer-activity-main-v8{border-right:0;padding-right:0}
.customer-email-inbox-v8{margin:0 0 16px;border:1px solid #d8e4ef;border-radius:14px;background:#f8fbfd;padding:14px;color:#23384b}
.customer-email-inbox-v8.is-loading,.customer-email-inbox-v8.is-empty{display:flex;align-items:center;gap:9px;color:#657789;font-size:13px}
.customer-email-inbox-v8.is-loading svg{animation:customer-email-spin-v8 1s linear infinite}
@keyframes customer-email-spin-v8{to{transform:rotate(360deg)}}
.customer-email-inbox-heading-v8{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.customer-email-inbox-heading-v8>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e4f2f8;color:#176781}
.customer-email-inbox-heading-v8>div{display:grid;gap:1px}.customer-email-inbox-heading-v8 small{color:#718392;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.customer-email-inbox-heading-v8 strong{font-size:15px}
.customer-email-inbox-heading-v8 em{margin-left:auto;border-radius:999px;background:#e8f4ed;color:#267044;padding:4px 8px;font-size:11px;font-style:normal;font-weight:700}
.customer-email-inbox-list-v8{display:grid;gap:9px}.customer-email-inbox-list-v8 article{border:1px solid #dde7ee;border-radius:11px;background:#fff;padding:11px 12px}.customer-email-inbox-list-v8 article header{display:flex;justify-content:space-between;gap:10px;color:#6a7c8c;font-size:11px}.customer-email-inbox-list-v8 article header span{display:flex;align-items:center;gap:5px}.customer-email-inbox-list-v8 article>strong{display:block;margin-top:7px;color:#1e3447;font-size:14px}.customer-email-inbox-list-v8 article>small{display:block;margin-top:2px;color:#6a7c8c}.customer-email-inbox-list-v8 article>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 0;color:#344b5f;font-size:13px;line-height:1.45}.customer-email-inbox-list-v8 article>footer,.customer-email-inbox-limit-v8{display:flex;align-items:center;gap:6px;margin:9px 0 0;color:#8a641f;font-size:11px}.customer-email-inbox-empty-v8{display:flex;align-items:center;gap:8px;color:#6a7c8c;font-size:13px}
.customer-activity-main-v8>header{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:16px 0 10px}
.customer-activity-main-v8 h2{margin:0;font-size:20px}.customer-activity-main-v8 header p{margin:4px 0 0;color:var(--c8-muted);font-size:13px}
.customer-activity-main-v8 header nav{display:flex;gap:4px}
.customer-activity-main-v8 header nav button{height:34px;padding:0 10px;border:1px solid var(--c8-line);background:#071624;color:#b5c2d2}
.customer-activity-main-v8 header nav button.active{border-color:var(--c8-orange);color:var(--c8-orange)}
.customer-activity-scroll-v8{min-height:0;overflow-y:auto;padding:4px 9px 10px 1px;scrollbar-width:none;-ms-overflow-style:none}
.customer-activity-row-v8{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;padding:9px 0}
.customer-activity-row-v8:before{content:"";position:absolute;left:17px;top:43px;bottom:-8px;width:1px;background:#40536a}
.customer-activity-row-v8:last-child:before{display:none}
.customer-activity-row-v8>span{position:relative;z-index:1;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--c8-cyan);border-radius:50%;background:#061321;color:var(--c8-cyan)}
.customer-activity-row-v8.kind-note>span{border-color:var(--c8-green);color:var(--c8-green)}
.customer-activity-row-v8.kind-activity>span{border-color:var(--c8-orange);color:var(--c8-orange)}
.customer-activity-row-v8>span svg{width:18px}
.customer-activity-row-v8>div{padding:8px 12px;border:1px solid #294055;border-radius:7px;background:#0a1a29}
.customer-activity-row-v8 small{color:var(--c8-cyan);font-size:12.5px;font-weight:800}
.customer-activity-row-v8 strong{display:block;margin:2px 0;font-size:14.5px}.customer-activity-row-v8 p{margin:0;color:#d0d8e3;font-size:13.5px;line-height:1.45;white-space:pre-wrap}
.customer-activity-row-v8 time{display:flex;align-items:flex-end;flex-direction:column;padding-top:10px;color:#b9c5d4;font-size:11.5px;white-space:nowrap}
.customer-activity-row-v8.is-clickable{cursor:pointer}
.customer-activity-row-v8.is-clickable>div{transition:border-color .16s ease,background-color .16s ease}
.customer-activity-row-v8.is-clickable:hover>div,.customer-activity-row-v8.is-clickable:focus-visible>div{border-color:var(--c8-orange);background:#0d2235}
.customer-activity-row-v8.is-clickable:focus-visible{outline:2px solid var(--c8-orange);outline-offset:2px;border-radius:7px}
.customer-activity-open-v8{display:inline-flex;align-items:center;gap:3px;margin-top:5px;color:var(--c8-orange);font-size:10.5px;font-weight:800}
.customer-activity-open-v8 svg{width:13px;height:13px}
.customer-composer-v8{position:sticky;bottom:0;border:1px solid #32475b;border-radius:7px;background:#0a1a2a;box-shadow:0 -12px 25px rgba(3,11,20,.8)}
.customer-composer-v8>.core-ai-inline{margin:0;padding:7px 9px;border-bottom:1px solid #31465a;background:#071523;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.customer-composer-v8>.core-ai-inline::-webkit-scrollbar{display:none}
.customer-composer-v8>.core-ai-inline .core-ai-button{min-height:34px;padding:7px 11px;white-space:nowrap}
.customer-composer-v8>nav{display:flex;border-bottom:1px solid #31465a}
.customer-composer-v8>nav button{height:38px;min-width:132px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-right:1px solid #31465a;background:transparent;color:#b8c5d5}
.customer-composer-v8>nav button.active{box-shadow:inset 0 -2px var(--c8-orange);color:var(--c8-orange)}
.customer-composer-v8 textarea{display:block;width:100%;min-height:70px;max-height:110px;padding:12px;border:0;resize:vertical;background:#071523;color:#fff}
.customer-composer-v8>footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 10px;border-top:1px solid #31465a}
.customer-composer-v8>footer span{display:flex;align-items:center;gap:7px;color:#aebccd;font-size:11px}.customer-composer-v8>footer svg{width:16px}
.customer-composer-warning-v8{width:34px;height:34px;display:grid!important;place-items:center;border:1px solid #526476;border-radius:7px;color:var(--c8-orange)!important}
.customer-composer-warning-v8 svg{width:18px!important;height:18px}
.customer-composer-v8>footer button{height:38px;min-width:100px}
.customer-composer-v8>footer button:disabled{opacity:.45;cursor:not-allowed}
.customer-email-fields-v8{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px;padding:8px 10px;border-bottom:1px solid #31465a}
.customer-email-fields-v8 label{display:flex;align-items:center;gap:6px;color:#9eafc1;font-size:11px}.customer-email-fields-v8 input{min-width:0;width:100%;height:30px;padding:0 8px;border:1px solid #31465a;background:#06121e;color:#fff}
.customer-email-review-v8{margin:10px;border:1px solid #36556b;border-radius:8px;background:#0c2030;overflow:hidden}.customer-email-review-v8>header{display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid #2c485c}.customer-email-review-v8>header>span{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#14394a;color:#68d3e8}.customer-email-review-v8>header>div{display:grid;min-width:0;flex:1}.customer-email-review-v8>header small{color:#93a8ba}.customer-email-review-v8>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.customer-email-review-v8>header em{padding:4px 7px;border:1px solid #755d2a;border-radius:999px;color:#f5c76b;font-size:11px;font-style:normal}.customer-email-review-v8 dl{display:grid;gap:5px;margin:0;padding:10px 12px;border-bottom:1px solid #263f52}.customer-email-review-v8 dl div{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px}.customer-email-review-v8 dt{color:#8fa4b6}.customer-email-review-v8 dd{margin:0;color:#dce8f1;overflow-wrap:anywhere}.customer-email-review-v8>p{margin:0;padding:12px;white-space:pre-wrap;color:#dce8f1}.customer-email-review-v8>footer{display:flex;align-items:center;gap:7px;padding:8px 12px;background:#081724;color:#9eb1c2;font-size:11px}.customer-email-review-v8 svg{width:16px;height:16px}
.customer-email-review-blockers-v8{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 12px}.customer-email-review-blockers-v8 span{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #74592e;border-radius:999px;background:#241d12;color:#efc878;font-size:11px}.customer-email-review-blockers-v8 svg{width:13px;height:13px}
.customer-tab-records-v8{padding:24px;min-height:100%}
.customer-tab-records-v8>header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.customer-tab-records-v8 h2{margin:0;font-size:22px}.customer-tab-records-v8 header p{margin:5px 0 0;color:var(--c8-muted)}
.customer-tab-records-v8>h3{margin:25px 0 9px;color:#dce3ed}
.customer-record-list-v8{display:flex;flex-direction:column;border:1px solid var(--c8-line);border-radius:7px;overflow:hidden}
.customer-record-list-v8 article{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:15px;background:#071624;border-bottom:1px solid var(--c8-line)}
.customer-record-list-v8 article:last-child{border-bottom:0}.customer-record-list-v8 article>svg{width:22px;color:var(--c8-cyan)}
.customer-record-list-v8 article div{display:flex;flex-direction:column;gap:4px}.customer-record-list-v8 article span{color:var(--c8-muted);font-size:12px}.customer-record-list-v8 article button{border:0;background:transparent;color:var(--c8-orange);font-weight:800}
.customer-files-summary-v8{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.customer-files-summary-v8 article{display:flex;gap:13px;padding:18px;border:1px solid var(--c8-line);border-radius:7px;background:#071624}.customer-files-summary-v8 svg{width:24px;color:var(--c8-cyan);flex:0 0 auto}.customer-files-summary-v8 p{color:var(--c8-muted);line-height:1.5}

/* Add/Edit modals keep their actions visible while the fields scroll. */
.customers-page-v8 .customer-edit-modal-v7{align-items:center!important;overflow:hidden!important;padding:18px}
.customers-page-v8 .customer-edit-dialog-v7{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;max-height:calc(100vh - 36px)!important;overflow:hidden!important}
.customers-page-v8 .customer-edit-dialog-v7>form{min-height:0!important;overflow-y:auto!important;scrollbar-width:thin;overscroll-behavior:contain}
.customers-page-v8 .customer-edit-dialog-v7>form>footer{position:sticky!important;bottom:0;z-index:4;background:#06131f!important;box-shadow:0 -12px 25px rgba(2,8,14,.88)}
.lead-shared-customer-v8{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:10px;border-color:#ff7a00!important;color:#ff9a3d!important}

/* Approved customer identity rule: dark center, thin status outline, matching initials, no glow. */
.customer-initials-v8,
.customer-preview-identity-v8>span,
.customer-workspace-person-v8>span{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto;
  border:1px solid var(--customer-avatar-tone,#bd6cff)!important;
  border-radius:50%!important;
  background:#071827!important;
  background-image:none!important;
  color:var(--customer-avatar-tone,#bd6cff)!important;
  box-shadow:none!important;
  filter:none!important;
  text-shadow:none!important;
}
.tone-proposal-open{--customer-avatar-tone:#bd6cff}
.tone-appointment-set,.tone-contacted,.tone-new-lead{--customer-avatar-tone:#20c5ff}
.tone-active-job,.tone-completed-customer,.tone-won{--customer-avatar-tone:#21d779}
.tone-balance-due{--customer-avatar-tone:#ffbf37}
.customer-initials-v8{width:44px;height:44px;font-size:14px}
.customer-preview-identity-v8>span{width:54px;height:54px;font-size:16px}
.customer-workspace-person-v8>span{width:50px;height:50px;font-size:15px}
.customer-overview-metrics-v8 article>svg,
.customer-record-list-v8 article>svg,
.customer-files-summary-v8 article>svg{
  display:grid;
  box-sizing:content-box;
  flex:0 0 auto;
  padding:8px;
  border:1px solid currentColor;
  border-radius:50%;
  background:#071827;
  box-shadow:none;
  filter:none;
}
.customer-directory-header-v8>div:first-child>svg,
.customer-priority-grid-v8>article>svg,
.customer-card-heading-v8 h3>svg,
.customer-workspace-rail-v8 h3>svg{
  box-sizing:content-box;
  flex:0 0 auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:none;
}
.customer-directory-header-v8>div:first-child>svg{width:24px;height:24px;padding:9px;border:1px solid var(--c8-line);border-radius:6px;color:#20c5ff;background:#071422}
.customer-priority-grid-v8>article>svg{width:25px;height:25px}
.customer-priority-grid-v8>article:nth-child(1)>svg,
.customer-priority-grid-v8>article:nth-child(2)>svg,
.customer-priority-grid-v8>article:nth-child(3)>svg{background:transparent}
.customer-card-heading-v8 h3>svg{width:22px;height:22px;background:transparent}
.customer-overview-metrics-v8 article:nth-child(1)>svg{color:#20c5ff;background:rgba(32,197,255,.09)}
.customer-overview-metrics-v8 article:nth-child(2)>svg{color:#bd6cff;background:rgba(189,108,255,.09)}
.customer-overview-metrics-v8 article:nth-child(3)>svg{color:#21d779;background:rgba(33,215,121,.09)}
.customer-overview-metrics-v8 article:nth-child(4)>svg{color:#21d779;background:rgba(33,215,121,.09)}
.customer-overview-metrics-v8 article:nth-child(5)>svg{color:#ff9d37;background:rgba(255,157,55,.09)}
.customer-workspace-rail-v8 h3>svg{width:21px;height:21px}
.customer-workspace-rail-v8>section:nth-child(2) h3>svg{color:var(--c8-violet)}
.customer-record-list-v8 article>svg,.customer-files-summary-v8 article>svg{width:17px;height:17px;padding:7px}
.customer-journey-v8 svg{
  border:0;
  border-radius:0;
  background:#081725;
  box-shadow:none;
  filter:none;
}
.customer-journey-v8 span.done svg{background:#081725;filter:none}
.customer-journey-v8 span.active svg{background:#081725;filter:none}
.customer-mobile-actions-v8 a svg{
  box-sizing:content-box;
  padding:5px;
  border:1px solid currentColor;
  border-radius:50%;
  background:rgba(25,184,255,.08);
}
.customer-preview-actions-v8 a svg,
.customer-preview-actions-v8 button svg{box-shadow:none;filter:none}
.customer-activity-row-v8:before{display:none}
.customer-activity-row-v8>span{border:0;border-radius:0;background:transparent;color:var(--c8-cyan);box-shadow:none;filter:none}
.customer-activity-row-v8.kind-proposal>span,
.customer-activity-row-v8.kind-invoice>span{color:var(--c8-orange)}
.customer-activity-row-v8.kind-sms>span,
.customer-activity-row-v8.kind-message>span,
.customer-activity-row-v8.kind-job>span{color:var(--c8-green)}
.customer-activity-row-v8.kind-note>span{color:var(--c8-violet)}
.customer-activity-row-v8.kind-appointment>span,
.customer-activity-row-v8.kind-file>span{color:var(--c8-cyan)}
.customer-activity-row-v8.kind-proposal small,
.customer-activity-row-v8.kind-invoice small{color:var(--c8-orange)}
.customer-activity-row-v8.kind-sms small,
.customer-activity-row-v8.kind-message small,
.customer-activity-row-v8.kind-job small{color:var(--c8-green)}
.customer-activity-row-v8.kind-note small{color:var(--c8-violet)}
.customer-activity-row-v8.kind-appointment small,
.customer-activity-row-v8.kind-file small{color:var(--c8-cyan)}

.customer-reference-shell>main>section.content::-webkit-scrollbar,
.customers-page-v8::-webkit-scrollbar,
.customer-directory-screen-v8::-webkit-scrollbar,
.customer-directory-panel-v8::-webkit-scrollbar,
.customer-directory-scroll-v8::-webkit-scrollbar,
.customer-quick-preview-v8::-webkit-scrollbar,
.customer-workspace-dialog-v8::-webkit-scrollbar,
.customer-workspace-body-v8::-webkit-scrollbar,
.customer-workspace-rail-v8::-webkit-scrollbar,
.customer-activity-scroll-v8::-webkit-scrollbar,
.customer-tab-records-v8::-webkit-scrollbar,
.customer-workspace-overview-v8::-webkit-scrollbar,
.customer-activity-workspace-v8::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}

@media (max-width:1100px){
  .customer-directory-layout-v8{grid-template-columns:320px minmax(0,1fr)}
  .customer-preview-hero-v8{grid-template-columns:minmax(220px,1fr) auto}
  .customer-preview-actions-v8{grid-column:1/-1;grid-row:2;justify-content:flex-start}
  .customer-open-workspace-v8{grid-column:2;grid-row:1}
  .customer-preview-contact-v8{grid-column:1/-1;grid-row:3;flex-wrap:wrap}
  .customer-priority-grid-v8{grid-template-columns:1fr}.customer-priority-grid-v8>article+article{border-left:0;border-top:1px solid var(--c8-line)}
  .customer-preview-lower-v8{grid-template-columns:1fr}
  .customer-workspace-dialog-v8{width:calc(100vw - 40px)}
  .customer-workspace-contact-v8,.customer-workspace-contact-actions-v8{display:none}
  .customer-workspace-overview-v8,.customer-activity-workspace-v8{grid-template-columns:minmax(0,1fr) 310px}
}

@media (max-width:1300px){
  .customer-directory-header-actions-v8 .customer-directory-bulk-v8{display:none}
  .customer-directory-layout-v8.is-full-list .customer-directory-row-v8{grid-template-columns:54px minmax(170px,.75fr) minmax(420px,1.7fr) 110px;padding-left:18px;padding-right:18px;column-gap:14px}
  .customer-directory-layout-v8.is-full-list .customer-directory-contact-v8{grid-template-columns:minmax(135px,.8fr) minmax(170px,1.15fr) minmax(105px,.65fr);gap:12px}
}

@media (max-width:700px){
  .customers-page-v8{min-height:100dvh}.customer-directory-screen-v8{height:100dvh}
  .customer-directory-header-v8{padding:13px 15px;align-items:flex-start;flex-direction:column}
  .customer-directory-header-v8 h1{font-size:21px}.customer-directory-view-toggle-v8{margin-left:auto}.customer-directory-header-actions-v8{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto}
  .customer-directory-header-actions-v8>label:first-child{width:100%}.customer-directory-header-actions-v8>.customer-inline-upload,.customer-directory-header-actions-v8>details{display:none}
  .customer-directory-layout-v8{grid-template-columns:1fr}.customers-page-v8 main.customer-quick-preview-v8{display:none!important}.customer-directory-panel-v8{border-right:0}.customer-directory-panel-v8>nav button{font-size:11px}.customer-directory-layout-v8.is-full-list .customer-directory-row-v8{grid-template-columns:54px minmax(0,1fr) 82px;grid-template-rows:auto auto;min-height:138px;padding:12px 12px 12px 16px}.customer-directory-layout-v8.is-full-list .customer-directory-copy-v8{display:flex}.customer-directory-layout-v8.is-full-list .customer-directory-contact-v8{grid-column:2/4;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;padding:4px 2px 0}.customer-directory-layout-v8.is-full-list .customer-directory-contact-v8>span:nth-child(2){grid-column:1/-1}.customer-directory-layout-v8.is-full-list .customer-directory-meta-v8{grid-column:3;grid-row:1}
  .customer-workspace-backdrop-v8{padding:0;background:#030b14}
  .customer-workspace-dialog-v8{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;grid-template-rows:auto auto auto minmax(0,1fr)}
  .customer-workspace-header-v8{display:grid;grid-template-columns:1fr;padding:14px 14px 12px;gap:12px}
  .customer-workspace-mobile-back-v8{display:block;position:absolute;left:10px;top:13px}.customer-workspace-mobile-back-v8 button{display:flex;align-items:center;gap:2px;border:0;background:transparent;color:#fff;font-weight:700}
  .customer-workspace-mobile-back-v8 button span{display:none}
  .customer-workspace-person-v8{justify-content:center;padding:4px 56px 0}.customer-workspace-person-v8>span{font-size:15px}.customer-workspace-person-v8 h1{font-size:22px}.customer-workspace-person-v8 strong{font-size:13px}
  .customer-workspace-head-actions-v8,.customer-workspace-contact-v8{display:none}
  .customer-mobile-actions-v8{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
  .customer-mobile-actions-v8 a{height:74px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:1px solid #405166;border-radius:10px;color:#fff;text-decoration:none;font-size:14px}
  .customer-mobile-actions-v8 svg{width:29px;height:29px}.customer-mobile-actions-v8 a:nth-child(1) svg{color:#20bfff}.customer-mobile-actions-v8 a:nth-child(2) svg{color:#21d779}.customer-mobile-actions-v8 a:nth-child(3) svg{color:#c477ff}.customer-mobile-actions-v8 a:nth-child(4) svg{color:#ffae32}
  .customer-mobile-primary-v8{display:block}.customer-mobile-primary-v8 .primary{width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:9px;background:var(--c8-orange);border-color:var(--c8-orange);color:#090b0e;font-weight:900;font-size:16px}
  .customer-workspace-journey-v8{padding:14px 12px}.customer-journey-v8 span b{display:none}.customer-journey-v8 span.active b{display:block;position:absolute;top:-2px;left:50%;translate:-50% -100%;width:max-content;color:var(--c8-orange);font-size:10px}
  .customer-workspace-tabs-v8{display:grid;grid-template-columns:repeat(5,1fr);padding:0;overflow:visible}
  .customer-workspace-tabs-v8>button,.customer-workspace-tabs-v8>span>button{width:100%;height:49px;padding:0 3px;justify-content:center;font-size:13px}
  .customer-workspace-tabs-v8 svg{display:none}.customer-desktop-tabs-v8{display:none}.customer-mobile-tabs-v8{display:contents}
  .customer-tab-desktop-label-v8{display:none}.customer-tab-mobile-label-v8{display:inline}
  .customer-workspace-body-v8{overflow:hidden}
  .customer-workspace-overview-v8,.customer-activity-workspace-v8{display:block;height:100%;padding:12px;overflow-y:auto;scrollbar-width:none!important;-ms-overflow-style:none!important}
  .customer-workspace-overview-v8::-webkit-scrollbar,.customer-activity-workspace-v8::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
  .customer-workspace-overview-v8 .customer-workspace-rail-v8{display:flex;margin-top:12px;overflow:visible}
  .customer-overview-metrics-v8{grid-template-columns:repeat(2,1fr)}
  .customer-activity-main-v8{height:100%;padding:0;border:0;grid-template-rows:auto minmax(0,1fr) auto}
  .customer-activity-main-v8>header{display:block;padding-top:2px}.customer-activity-main-v8>header nav{margin-top:10px;overflow-x:auto}
  .customer-activity-main-v8>header nav button{min-width:68px}
  .customer-activity-workspace-v8>.customer-workspace-rail-v8{display:none}
  .customer-journey-v8 svg{border:1px solid currentColor;border-radius:50%;background:#081725}
  .customer-activity-row-v8{grid-template-columns:38px minmax(0,1fr)}.customer-activity-row-v8:before{display:block}.customer-activity-row-v8>span{border:1px solid currentColor;border-radius:50%;background:#061321}.customer-activity-row-v8 time{grid-column:2;padding-top:0;text-align:right}
  .customer-composer-v8>nav button{min-width:0;flex:1;font-size:12px}.customer-composer-v8>footer span{max-width:70%}
  .customer-composer-v8>.core-ai-inline{display:none!important}
  .customer-email-fields-v8{grid-template-columns:1fr}.customer-tab-records-v8{padding:14px;height:100%;overflow-y:auto}.customer-tab-records-v8>header{align-items:flex-start;flex-direction:column}
  .customer-record-list-v8 article{grid-template-columns:30px minmax(0,1fr) auto}.customer-record-list-v8 article>b{grid-column:2}.customer-record-list-v8 article button{grid-column:3;grid-row:1/3}
  .customer-files-summary-v8{grid-template-columns:1fr}
  .customers-page-v8 .customer-edit-modal-v7{padding:0}.customers-page-v8 .customer-edit-dialog-v7{width:100vw!important;max-height:100dvh!important;border-radius:0!important}
}

/* Approved extra-dark Customer canvas: match Dashboard and Command Center. */
.customers-page-v8{
  --c8-bg:#030507;
  --c8-surface:#080d12;
  --c8-surface-2:#0c131a;
  --c8-line:#29333e;
  background:linear-gradient(145deg,#05080c 0%,#020406 58%,#05080c 100%);
}
.customer-directory-header-v8{
  background:rgba(4,7,10,.98);
}
.customer-directory-view-toggle-v8 button,
.customer-directory-header-actions-v8 .btn{
  background:#0a1016;
}
.customer-directory-header-actions-v8 input,
.customer-directory-header-actions-v8 details>div{
  background:#070c11;
}
.customer-directory-header-actions-v8 details button:hover{
  background:#111820;
}
.customer-directory-panel-v8{
  background:#05090d;
}
.customer-directory-row-v8{
  border-bottom-color:#222c36;
  background:#080d12;
}
.customer-directory-row-v8:hover{
  background:#0d141b;
}
.customer-directory-row-v8.active{
  background:#111a23;
}
.customer-quick-preview-v8{
  background:linear-gradient(145deg,rgba(7,11,16,.98),rgba(2,4,7,.99));
}
.customer-preview-journey-v8,
.customer-workspace-journey-v8,
.customer-workspace-tabs-v8{
  background:#070c11;
}
.customer-journey-v8 svg,
.customer-journey-v8 span.done svg,
.customer-journey-v8 span.active svg{
  background:#070c11;
}
.customer-priority-grid-v8,
.customer-preview-card-v8,
.customer-workspace-rail-v8>section,
.customer-overview-metrics-v8 article,
.customer-record-list-v8 article,
.customer-files-summary-v8 article{
  background:#090f15;
}
.customer-preview-card-v8.recent article.is-clickable:hover,
.customer-preview-card-v8.recent article.is-clickable:focus-visible{
  background:#101820;
}
.customer-workspace-backdrop-v8{
  background:rgba(0,2,4,.86);
}
.customer-workspace-dialog-v8{
  background:#05090d;
  border-color:#303a45;
}
.customer-workspace-header-v8{
  background:linear-gradient(145deg,#080d12,#030609);
}
.customer-workspace-head-actions-v8>.btn:not(.icon-only),
.customer-workspace-head-actions-v8>.icon-only{
  background:#0a1016;
  border-color:#34404c;
}
.customer-workspace-head-actions-v8>.btn:hover{
  background:#111820;
}
.customer-activity-main-v8 header nav button{
  background:#090f15;
}
.customer-stage-trigger-v8,
.customer-stage-trigger-v8:hover,
.customer-stage-trigger-v8:focus,
.customer-stage-trigger-v8:focus-visible,
.customer-stage-trigger-v8[aria-expanded="true"],
.customer-stage-menu-v8,
.customer-stage-menu-v8 button,
.customer-stage-menu-v8 button:hover,
.customer-stage-menu-v8 button:focus,
.customer-stage-menu-v8 button:focus-visible,
.customer-stage-menu-v8 button[aria-selected="true"]{
  background:#080d12!important;
}
.customer-activity-row-v8>div{
  background:#0a1118;
  border-color:#2b3743;
}
.customer-activity-row-v8.is-clickable:hover>div,
.customer-activity-row-v8.is-clickable:focus-visible>div{
  background:#111922;
}
.customer-composer-v8{
  background:#090f16;
}
.customer-composer-v8>.core-ai-inline,
.customer-composer-v8 textarea{
  background:#070c11;
}
.customer-email-fields-v8 input{
  background:#070c11;
}
.customers-page-v8 .customer-edit-dialog-v7{
  background:#05090d!important;
  border-color:#303a45!important;
}
.customers-page-v8 .customer-edit-dialog-v7>header,
.customers-page-v8 .customer-edit-dialog-v7>form>footer{
  background:#070c11!important;
}
.customers-page-v8 .customer-edit-dialog-v7 input,
.customers-page-v8 .customer-edit-dialog-v7 select,
.customers-page-v8 .customer-edit-dialog-v7 textarea{
  background:#0a1016!important;
  border-color:#36424f!important;
}

/* Approved Customer typography clarity: crisp system rendering and readable metadata. */
.customers-page-v8,
.customers-page-v8 :where(h1,h2,h3,h4,p,span,small,strong,b,button,a,label,input,select,textarea,time,dt,dd,em){
  font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  -webkit-font-smoothing:auto!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}
.customer-directory-copy-v8 small,
.customer-directory-copy-v8 em,
.customer-directory-meta-v8 time,
.customer-directory-meta-v8 b{
  font-size:13px;
  font-weight:650;
  line-height:1.35;
}
.customer-directory-copy-v8 em{
  font-weight:800;
}
.customer-journey-v8 span{
  color:#b9c5d3;
  font-size:13px;
  font-weight:650;
  line-height:1.25;
}
.customer-workspace-tabs-v8>button,
.customer-workspace-tabs-v8>span>button{
  color:#c2ccd8;
  font-size:13.5px;
  font-weight:700;
}
.customer-workspace-rail-v8 span,
.customer-workspace-rail-v8 p{
  color:#c7d1dd;
  font-size:14px;
  font-weight:550;
  line-height:1.5;
}
.customer-workspace-rail-v8 dl div{
  font-size:13px;
  line-height:1.4;
}
.customer-workspace-rail-v8 dt{
  color:#b9c5d3;
  font-weight:600;
}
.customer-workspace-rail-v8 dd{
  font-weight:750;
}
.customer-activity-main-v8 header p{
  color:#c2ccd8;
  font-size:14px;
  font-weight:550;
}
.customer-activity-row-v8 small{
  font-size:13px;
  line-height:1.3;
}
.customer-activity-row-v8 strong{
  font-size:15px;
  line-height:1.35;
}
.customer-activity-row-v8 p{
  color:#dbe3ec;
  font-size:14px;
  font-weight:500;
  line-height:1.45;
}
.customer-activity-row-v8 time{
  color:#d4dde8;
  font-size:13px;
  font-weight:650;
  font-variant-numeric:tabular-nums;
  line-height:1.4;
}
.customer-activity-open-v8{
  margin-top:6px;
  font-size:12.5px;
  font-weight:850;
  line-height:1.3;
}

/* Customer activity records stay inside one continuous bordered row. */
@media (min-width:701px){
  .customer-activity-row-v8{
    grid-template-columns:38px minmax(0,1fr) minmax(150px,max-content);
    align-items:center;
    gap:12px;
    margin:8px 0;
    padding:10px 12px;
    border:1px solid #2b3743;
    border-radius:8px;
    background:#0a1118;
    transition:border-color .16s ease,background-color .16s ease;
  }
  .customer-activity-row-v8>div{
    min-width:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .customer-activity-row-v8 time{
    align-self:center;
    justify-self:end;
    align-items:flex-end;
    min-width:150px;
    padding:0;
    text-align:right;
  }
  .customer-activity-row-v8.is-clickable:hover,
  .customer-activity-row-v8.is-clickable:focus-visible{
    border-color:var(--c8-orange);
    background:#111922;
  }
  .customer-activity-row-v8.is-clickable:hover>div,
  .customer-activity-row-v8.is-clickable:focus-visible>div{
    border-color:transparent;
    background:transparent;
  }
}
@media (min-width:701px) and (max-width:950px){
  .customer-activity-row-v8{
    grid-template-columns:38px minmax(0,1fr);
  }
  .customer-activity-row-v8 time{
    grid-column:2;
    justify-self:start;
    align-items:flex-start;
    min-width:0;
    text-align:left;
  }
}
@media (max-width:700px){
  .customer-activity-row-v8{
    margin:8px 0;
    padding:10px 12px;
    border:1px solid #2b3743;
    border-radius:8px;
    background:#0a1118;
    transition:border-color .16s ease,background-color .16s ease;
  }
  .customer-activity-row-v8:before{
    left:29px;
    top:52px;
    bottom:-9px;
  }
  .customer-activity-row-v8>div{
    min-width:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .customer-activity-row-v8.is-clickable:hover,
  .customer-activity-row-v8.is-clickable:focus-visible{
    border-color:var(--c8-orange);
    background:#111922;
  }
  .customer-activity-row-v8.is-clickable:hover>div,
  .customer-activity-row-v8.is-clickable:focus-visible>div{
    border-color:transparent;
    background:transparent;
  }
}
.customer-record-list-v8 article span,
.customer-preview-card-v8.recent article span,
.customer-preview-card-v8.recent article time{
  color:#c3cedb;
  font-size:13px;
  font-weight:550;
  line-height:1.4;
}

/* Appointment rows open the exact shared Calendar record. */
.customer-record-list-v8 article.customer-record-row-v8.is-clickable{
  grid-template-columns:36px minmax(0,1fr) auto;
  cursor:pointer;
  transition:background-color .16s ease,outline-color .16s ease;
}
.customer-record-list-v8 article.customer-record-row-v8.is-clickable:hover,
.customer-record-list-v8 article.customer-record-row-v8.is-clickable:focus-visible{
  background:#111922;
  outline:2px solid var(--c8-orange);
  outline-offset:-2px;
}
.customer-record-open-v8{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:var(--c8-orange)!important;
  font-size:13px!important;
  font-weight:800;
  white-space:nowrap;
}
.customer-record-open-v8 b{color:#fff;font-size:15px}
.customer-record-open-v8 svg{width:16px;height:16px}
.customer-files-summary-v8 article.is-clickable{
  cursor:pointer;
  transition:background-color .16s ease,outline-color .16s ease;
}
.customer-files-summary-v8 article.is-clickable:hover,
.customer-files-summary-v8 article.is-clickable:focus-visible{
  background:#111922;
  outline:2px solid var(--c8-orange);
  outline-offset:-2px;
}
.customer-files-summary-v8 article.is-clickable>div{min-width:0}
.customer-files-summary-v8 article.is-clickable>div>span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:10px;
  color:var(--c8-orange);
  font-size:13px;
  font-weight:800;
}
.customer-files-summary-v8 article.is-clickable>div>span svg{width:16px;height:16px}
.customer-overview-activity-v8 .customer-card-heading-v8>span{
  color:#c3cedb;
  font-size:13px;
  font-weight:600;
}
.customers-page-v8 .customer-edit-modal-v7{z-index:1100}
@media(max-width:700px){
  .customer-record-list-v8 article.customer-record-row-v8.is-clickable{grid-template-columns:30px minmax(0,1fr) auto}
  .customer-record-open-v8{font-size:0!important}
  .customer-record-open-v8 svg{width:18px;height:18px}
  .customer-preview-actions-v8{grid-template-columns:repeat(5,minmax(44px,1fr));width:100%;gap:5px}
  .customer-preview-actions-v8 a,.customer-preview-actions-v8 button,.customer-preview-actions-v8 .action-edit{width:100%;min-width:0}
}
.customer-composer-v8>footer span,
.customer-email-fields-v8 label{
  color:#c2ccd8;
  font-size:12.5px;
  font-weight:600;
}

/* Dedicated customer, company, and crew notes workflow. */
.customer-notes-backdrop-v8{
  position:fixed;
  inset:0;
  z-index:1250;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(0,7,14,.84);
}
html:has(.customer-notes-backdrop-v8),
body:has(.customer-notes-backdrop-v8){overflow:hidden!important}
.customer-notes-dialog-v8{
  width:min(820px,calc(100vw - 36px));
  max-height:calc(100dvh - 36px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  margin:0;
  border:1px solid #3a4e62;
  border-radius:12px;
  background:#06131f;
  color:#f5f7fb;
  box-shadow:0 26px 80px rgba(0,0,0,.7);
  overflow:hidden;
}
.customer-notes-dialog-v8>header{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 42px;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  border-bottom:1px solid #293d50;
  background:#081724;
}
.customer-notes-title-icon-v8{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1.5px solid var(--c8-orange);
  border-radius:50%;
  color:var(--c8-orange);
  background:rgba(255,122,0,.06);
}
.customer-notes-title-icon-v8 svg{width:22px;height:22px}
.customer-notes-dialog-v8>header small,
.customer-note-editor-v8>header small{
  display:block;
  margin-bottom:3px;
  color:var(--c8-orange);
  font-size:11px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.customer-notes-dialog-v8 h2,
.customer-notes-dialog-v8 h3,
.customer-notes-dialog-v8 p{margin:0;text-shadow:none}
.customer-notes-dialog-v8 h2{font-size:21px;line-height:1.2}
.customer-notes-dialog-v8>header p{margin-top:4px;color:#aebccd;font-size:13px;line-height:1.45}
.customer-notes-close-v8{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #31465a;
  border-radius:8px;
  background:#0a1927;
  color:#d9e1ea;
}
.customer-notes-close-v8:hover{border-color:var(--c8-orange);color:var(--c8-orange)}
.customer-notes-close-v8 svg{width:19px;height:19px}
.customer-notes-body-v8{
  min-height:0;
  display:grid;
  gap:16px;
  padding:18px 20px 20px;
  overflow:auto;
}
.customer-note-destinations-v8{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.customer-note-destination-v8{
  min-height:78px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid #30465a;
  border-radius:9px;
  background:#091723;
  color:#eef3f8;
  text-align:left;
  cursor:pointer;
}
.customer-note-destination-v8:hover{border-color:#6f8295;background:#0c1d2b}
.customer-note-destination-v8.active{border-color:var(--c8-orange);background:#121a22}
.customer-note-destination-icon-v8{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  border-radius:50%;
  color:var(--c8-cyan);
}
.customer-note-destination-v8:nth-child(2) .customer-note-destination-icon-v8{color:var(--c8-violet)}
.customer-note-destination-v8:nth-child(3) .customer-note-destination-icon-v8{color:var(--c8-green)}
.customer-note-destination-icon-v8 svg{width:18px;height:18px}
.customer-note-destination-v8 strong,
.customer-note-destination-v8 small{display:block;min-width:0}
.customer-note-destination-v8 strong{color:#fff;font-size:14px;line-height:1.2}
.customer-note-destination-v8 small{margin-top:4px;color:#aab8c8;font-size:11px;line-height:1.25}
.customer-note-destination-v8 em{
  align-self:start;
  color:#8090a2;
  font-size:10px;
  font-style:normal;
  font-weight:800;
  text-transform:uppercase;
}
.customer-note-destination-v8.active em{color:var(--c8-orange)}
.customer-note-editor-v8{
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid #30465a;
  border-radius:9px;
  background:#07111b;
}
.customer-note-editor-v8>header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.customer-note-editor-v8 h3{font-size:18px}
.customer-note-editor-v8>header>span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#b9c7d6;
  font-size:11px;
  font-weight:700;
}
.customer-note-editor-v8>header>span svg{width:15px;height:15px;color:var(--c8-green)}
.customer-note-editor-v8>p{color:#afbdcc;font-size:13px;line-height:1.45}
.customer-note-editor-v8 textarea{
  width:100%;
  min-height:230px;
  resize:vertical;
  padding:14px 15px;
  border:1px solid #405468;
  border-radius:8px;
  background:#040c14;
  color:#fff;
  font-size:15px;
  line-height:1.55;
}
.customer-note-editor-v8 textarea::placeholder{color:#718295}
.customer-note-visibility-v8{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;color:#9eafc1;font-size:11.5px;line-height:1.4}
.customer-note-visibility-v8 svg{width:16px;height:16px;color:var(--c8-cyan)}
.customer-note-visibility-v8 small{color:#8293a6;white-space:nowrap}
.customer-notes-dialog-v8>footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 20px;
  border-top:1px solid #293d50;
  background:#081724;
}
.customer-notes-dialog-v8>footer>span{display:inline-flex;align-items:center;gap:7px;color:#aab8c8;font-size:12px}
.customer-notes-dialog-v8>footer>span svg{width:17px;height:17px;color:var(--c8-cyan)}
.customer-notes-dialog-v8>footer>div{display:flex;gap:9px}
.customer-notes-dialog-v8>footer button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border-radius:8px}
.customer-notes-dialog-v8>footer .btn{border:1px solid #405468;background:#0a1927;color:#fff}
.customer-notes-dialog-v8>footer .primary{border:1px solid var(--c8-orange);background:var(--c8-orange);color:#090b0e;font-weight:800}
.customer-notes-dialog-v8>footer button svg{width:17px;height:17px}
.customer-notes-dialog-v8>footer button:disabled{opacity:.65;cursor:wait}

@media(max-width:700px){
  .customer-notes-backdrop-v8{padding:0;background:#030b14}
  .customer-notes-dialog-v8{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}
  .customer-notes-dialog-v8>header{grid-template-columns:42px minmax(0,1fr) 40px;padding:14px 15px}
  .customer-notes-title-icon-v8{width:40px;height:40px}
  .customer-notes-dialog-v8 h2{font-size:18px}
  .customer-notes-dialog-v8>header p{display:none}
  .customer-notes-body-v8{padding:14px 15px 18px}
  .customer-note-destinations-v8{grid-template-columns:1fr;gap:8px}
  .customer-note-destination-v8{min-height:62px}
  .customer-note-editor-v8{padding:13px}
  .customer-note-editor-v8 textarea{min-height:250px}
  .customer-note-editor-v8>header{align-items:flex-start}
  .customer-note-editor-v8>header>span{max-width:115px;text-align:right}
  .customer-note-visibility-v8{grid-template-columns:18px minmax(0,1fr)}
  .customer-note-visibility-v8 small{grid-column:2}
  .customer-notes-dialog-v8>footer{position:sticky;bottom:0;flex-direction:column;align-items:stretch;padding:12px 15px calc(12px + env(safe-area-inset-bottom))}
  .customer-notes-dialog-v8>footer>span{display:none}
  .customer-notes-dialog-v8>footer>div{display:grid;grid-template-columns:1fr 1.35fr}
  .customer-notes-dialog-v8>footer button{width:100%;min-height:46px}
}


/* Customers workspace settling
   Keep the directory, customer record, and relationship context inside the
   usable canvas beside the shared navigation at every desktop width. */
@media (min-width: 901px) {
  .premium-app.customer-reference-shell:not(.sidebar-collapsed) {
    grid-template-columns: 300px minmax(0, 1fr) !important;
  }

  .premium-app.customer-reference-shell:not(.sidebar-collapsed) > .crm-sidebar {
    width: 300px !important;
  }
}

.customers-page-v8,
.customer-directory-screen-v8,
.customer-directory-header-v8,
.customer-directory-layout-v8,
.customer-directory-panel-v8,
.customer-quick-preview-v8,
.customer-preview-hero-v8,
.customer-priority-grid-v8,
.customer-preview-lower-v8 {
  min-width: 0 !important;
  max-width: 100% !important;
}

.customers-page-v8,
.customer-directory-screen-v8,
.customer-directory-header-v8,
.customer-directory-layout-v8,
.customer-quick-preview-v8 {
  width: 100% !important;
}

.customer-directory-screen-v8 {
  grid-template-columns: minmax(0, 1fr) !important;
}

.customer-directory-layout-v8 {
  grid-template-columns: minmax(290px, 320px) minmax(0, 1fr) !important;
  overflow: hidden !important;
}

/* Four long filter labels cannot remain readable in one narrow row. */
.customer-directory-panel-v8 > nav {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.customer-directory-panel-v8 > nav button {
  min-width: 0 !important;
  min-height: 44px !important;
  padding-right: 8px !important;
  padding-left: 8px !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

.customer-directory-panel-v8 > nav button.active::after {
  left: 10px !important;
  right: 10px !important;
}

.customer-preview-identity-v8,
.customer-preview-identity-v8 > div,
.customer-preview-actions-v8,
.customer-preview-contact-v8,
.customer-preview-lower-v8 > *,
.customer-priority-grid-v8 > article,
.customer-priority-grid-v8 article > div {
  min-width: 0 !important;
}

@media (min-width: 901px) and (max-width: 1500px) {
  .customer-directory-header-v8 {
    display: grid !important;
    grid-template-columns: minmax(210px, auto) minmax(0, 1fr) !important;
  }

  .customer-directory-header-actions-v8 {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .customer-directory-header-actions-v8 > label:first-child {
    width: auto !important;
    min-width: 150px !important;
    flex: 1 1 220px !important;
  }

  .premium-app.customer-reference-shell .customer-directory-header-actions-v8 :is(.customer-directory-bulk-v8) {
    display: none !important;
  }

  .customer-preview-hero-v8 {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .customer-open-workspace-v8 {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .customer-preview-actions-v8 {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px 12px !important;
  }

  .customer-preview-contact-v8 {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    flex-wrap: wrap !important;
  }

  .customer-preview-actions-v8 a,
  .customer-preview-actions-v8 button:not(.customer-preview-build-project-v10) {
    width: 48px !important;
    min-width: 48px !important;
  }
}

@media (min-width: 901px) and (max-width: 1400px) {
  .customer-preview-lower-v8 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .customer-directory-layout-v8 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
