/* Shared surfaces derived from Heute. Navigation and daily layout remain in today.css. */
:root{--paper:#eaf2f4;--ink:#142126;--muted:#52656d;--line:#dbe6e9;--blue:#276578;--surface:#fff;--accent:#a4d7e4;--radius:24px}
body{background:var(--paper);color:var(--ink)}
body header.app-header{width:100%;background:transparent;flex-shrink:0}
body header.app-header>span{color:var(--muted);font-weight:650}
body header.app-header>.app-refresh{margin-left:auto;color:var(--ink)}
h1,h2,h3{color:var(--ink);letter-spacing:-.03em}
.title h1,.workspace-heading h1,.lead-heading h1{font-weight:700}
.title,.lead-heading,.directory-heading{gap:16px;margin-bottom:24px}
.title h1{font-size:clamp(1.75rem,6vw,2.25rem)}
.eyebrow{color:var(--muted);font-size:.8125rem}
button,input,select,textarea{font-family:inherit}
.primary,.secondary{font-weight:650;min-height:48px;border-radius:16px;padding:12px 20px;line-height:1.4}
.primary{background:var(--accent);color:var(--ink);border:1px solid transparent;box-shadow:none}
.secondary{background:var(--surface);border:1px solid var(--line);color:var(--ink);box-shadow:none}
.textbutton,.back{font-size:.875rem;font-weight:650;color:#276578}
button:disabled{opacity:.45;cursor:not-allowed}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #276578;outline-offset:3px}
input:focus,select:focus,textarea:focus{outline:2px solid #276578;outline-offset:2px}
.card,#app:has(.workspace-heading) .card,#app:has(.lead-heading) .card{border:0;border-radius:var(--radius);background:var(--surface);box-shadow:none}
.card.formcard{padding:24px;margin-block:20px}
.field{gap:8px;font-size:.875rem;font-weight:650;color:#344b54}
.fields{gap:22px}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{min-width:0;max-width:100%;font-size:1rem;font-weight:550;background:#f4f8f9;border:1px solid var(--line);border-radius:14px;min-height:50px;padding:13px 14px;color:var(--ink)}
textarea{min-height:100px;resize:vertical}
input::placeholder,textarea::placeholder{color:#72838a;opacity:1}
input[type=checkbox],input[type=radio]{accent-color:#276578}
.note,.detail-page>.note,.detailrow>span{color:var(--muted);font-size:.875rem;line-height:1.65}
.note{margin-block:14px}
.actions{gap:12px;flex-wrap:wrap;margin-top:22px}
.actions>button{min-width:0}
.empty,.connection-note{background:#f4f8f9;border:1px solid var(--line);border-radius:20px;padding:22px;color:var(--muted);font-size:.9375rem;line-height:1.6}
.empty:empty{display:none}
.skeleton-stack{background:#fff;border-radius:24px}
.skeleton-stack span{background:#eaf2f4;border-radius:14px}
#toast{background:#142126;color:white;border-radius:20px;box-shadow:0 8px 28px #14212620;font-size:.9375rem;line-height:1.55}
/* Lists and filters */
#lead-list-pane>.search{width:100%;background:white;margin-bottom:16px;border:0;border-radius:18px}
.list-toolbar{gap:14px;margin-block:16px}
.list-toolbar>span{font-weight:550;color:var(--muted)}
.active-filters button{background:#dcecf0;border-radius:12px;color:#244e5c}
.filter-count{background:#276578;border-radius:8px}
#app:has(.lead-heading) .summary{margin:20px 2px 8px;color:var(--muted);font-weight:600}
.list-day{color:var(--muted);padding-top:22px;font-weight:650}
#rows .leadrow{padding:20px;gap:14px;min-height:86px;border-color:var(--line)}
#rows .leadrow b{font-weight:700}
#rows .leadrow small{color:var(--muted)}
.badge,.member-state{font-weight:650;line-height:1.45}
#rows .badge{font-weight:650}
#app:has(.lead-heading) .export-panel{background:white;border-radius:22px;padding:18px 20px;border:0;margin:18px 0}
.seg,.directory-tabs{background:#dfe9ec;border-radius:18px;padding:5px;gap:5px}
.seg button,.directory-tabs button{border-radius:14px;background:transparent;min-height:44px;color:var(--muted);font-weight:650;border:0}
.seg button.active,.directory-tabs button.selected{background:#fff;color:var(--ink);box-shadow:none}
.directory-tabs{display:flex;overflow-x:auto;overscroll-behavior-x:contain;flex-wrap:nowrap}
.directory-tabs button{white-space:nowrap;padding:10px 14px;flex-shrink:0}
.directory-tabs button span{margin-left:6px;font-variant-numeric:tabular-nums}
.directory-filters{background:#fff;border-radius:24px;padding:20px;gap:16px;margin:20px 0}
#member-rows .leadrow{padding:20px;gap:16px;border-color:var(--line)}
#member-rows .leadrow>span:first-child{min-width:0}
#member-rows .leadrow b{font-size:1.0625rem;font-weight:700}
#member-rows .leadrow small{overflow-wrap:anywhere}
#directory-count{margin:14px 4px}
/* Administration and billing */
#app .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;background:transparent;padding:0;border-radius:0;box-shadow:none;margin:24px 0;color:var(--ink)}
#app .metrics .metric{background:white;border:0;border-radius:24px;padding:24px 18px;color:var(--ink);min-width:0}
#app .metrics .metric:first-child{background:var(--accent)}
#app .metrics .metric strong{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.2;font-weight:750;letter-spacing:-.04em;color:var(--ink);overflow-wrap:anywhere}
#app .metrics .metric span{display:block;color:#344b54;font-size:.875rem!important;line-height:1.5;margin-top:10px;font-weight:600}
.workspace-links{gap:14px}
.workspace-links button{background:#fff;border:0;border-radius:24px;padding:24px;color:var(--ink)}
.workspace-links b{font-weight:700}.workspace-links span{color:var(--muted)}
.billing-period,.billing-rules{background:white;padding:12px 20px;border-radius:20px;margin-block:14px}
.billing-period>summary,.billing-rules>summary{font-weight:650;font-size:.875rem}
.billing-group-title{font-size:1.125rem;font-weight:700;margin:28px 4px 14px}
.range-shortcuts>button.selected{background:var(--accent);color:var(--ink)}
/* Profile, invitations and onboarding */
.identity{padding:20px 4px;margin-bottom:16px}.identity b{font-weight:750}.identity small{color:var(--muted);margin-top:6px}
.settingsrow{padding:20px;min-height:64px;border-color:var(--line);font-weight:600}
.settingsrow:first-child{border-top-left-radius:24px;border-top-right-radius:24px}
.settingsrow:last-child{border-bottom-left-radius:24px;border-bottom-right-radius:24px}
.permissionrow{gap:16px;padding-block:16px;font-size:.9375rem;line-height:1.55}
.auth-panel{border-radius:28px;border-color:var(--line);box-shadow:0 12px 40px #14212608}
.logout-link{margin-top:20px}
.danger,.textbutton.danger{color:#a13746}
button.primary.danger{background:#fae7eb;color:#962c3c}
/* Shared sheets and the callcenter */
dialog{border:1px solid var(--line);border-radius:28px;background:#fff;padding:26px;color:var(--ink);box-shadow:0 20px 70px #14212626}
dialog::backdrop{background:#14212670;backdrop-filter:blur(4px)}
dialog .title h2{font-size:1.6rem;font-weight:700}
dialog .title>button{min-width:44px;min-height:44px;border-radius:50%;background:#eaf2f4}
.detailrow{padding:16px 0;border-color:var(--line);gap:20px}
.detailrow>b{font-weight:650}
.call-workspace .customer-panel,.call-workspace .testflow{background:#eaf2f4;border:0;border-radius:24px;padding:22px}
.call-workspace .testflow .actions{background:transparent}
.call-workspace h2,.appointment-picker h3{font-weight:700;margin-bottom:18px}
.appointment-picker{border-color:var(--line);padding-top:24px}
.ap-slot{background:#fff;border:1px solid var(--line);border-radius:16px;min-width:94px;margin:5px;padding:14px 18px}
.ap-slot.selected{background:var(--accent);color:var(--ink);border:2px solid #276578}
.ap-slot small{font-weight:550}
#dispatch-status{background:#fff;border-radius:24px}
.dispatch-line{gap:16px;flex-wrap:wrap}
.dispatch-line>span{font-weight:650}
.filter-sheet .actions{background:white;border-color:var(--line)}
/* Capture */
.steps{gap:7px;margin-block:20px}
.steps span{height:5px;border-radius:5px;background:#dbe6e9}
.steps span.active,.steps span.done{background:#276578}
.capture-heading .pill{background:#dcecf0;color:#244e5c;border-radius:12px;padding:8px 12px;font-weight:650}
.housepanel,.map-page .housepanel{background:#fffffff5;border-radius:26px;box-shadow:0 8px 28px #14212618}
.map-page .fieldheader{border-radius:20px;background:#fffffff2;box-shadow:0 4px 16px #1421260d}
.locate{background:var(--accent);color:var(--ink);border-radius:14px}
.housepanel h2{font-weight:700}.houseaddress input{background:#f4f8f9}
.visit-actions{gap:8px}.visit-actions button{background:#eaf2f4;border:0;border-radius:14px;padding:14px 16px;font-weight:600}
.visited-before{background:#eaf2f4;border:0;border-radius:16px;padding:16px}
.map-page .locationbar{background:#eaf2f4;color:var(--muted)}
@media(hover:hover){.primary:hover:not(:disabled){background:#b7e0eb}.secondary:hover:not(:disabled),.settingsrow:hover,#member-rows .leadrow:hover{background:#f0f7f9}.workspace-links button:hover{background:#dceef3}}
@media(max-width:650px){.card.formcard{padding:22px 18px}.directory-heading{align-items:center}.directory-heading .primary{padding:12px 16px}.directory-filters{padding:18px}.detail-page,.member-page{border-radius:0;border:0}.filter-sheet{border-radius:28px 28px 0 0}.actions>button{flex:1 1 130px}.call-workspace .customer-panel,.call-workspace .testflow{padding:20px}.detailrow{gap:14px}#app .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#app .metrics .metric{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){button,dialog[open]{animation:none;transition:none}}
/* Sales leads: tabs carry the title; keep filters without duplicate counters. */
#app:has(#lead-tabs)>.lead-heading,
#lead-list-pane>#count,
#lead-list-pane>input.search{display:none}
/* Capture keeps its idle controls small; address form appears after selection. */
body.map-page:has(#nav:not(:empty))>#app{padding:0;overflow:hidden;max-width:none}
.map-page #fieldmap{height:100%;min-height:0;max-height:none}
.map-page .fieldheader{top:12px;left:auto;right:14px;width:auto;padding:0;background:transparent;box-shadow:none}
.map-page .fieldheader .locate{width:46px;height:46px;background:white;box-shadow:0 3px 14px #14212620}
.map-page .locationbar{position:absolute;top:70px;left:14px;right:14px;bottom:auto;z-index:500;width:fit-content;max-width:calc(100% - 28px);padding:8px 12px;border-radius:14px;background:#fffffff0;font-size:.8125rem;line-height:1.4}
.map-page .housepanel{bottom:calc(112px + env(safe-area-inset-bottom,0px));max-height:48%;padding:16px 18px}
.map-page .housepanel:has(.map-idle-actions){width:auto;left:50%;right:auto;transform:translateX(-50%);padding:4px 10px;border-radius:20px;max-width:calc(100% - 28px)}
.map-idle-actions{display:flex;gap:8px;white-space:nowrap}
.map-idle-actions button{padding:10px 14px;min-height:44px}
.map-page .housepanel .sheet-handle{display:none}
.map-page .housetitle{margin-bottom:10px}
.map-page .housepanel .map-limit{margin:8px 0;font-size:.8125rem}
.map-page .housepanel .visit-picker{margin:6px 0}
.map-page .leaflet-bottom{bottom:100px}
.team-filter-panel{background:#fff;border-radius:20px;margin:0 0 20px;padding:4px 18px}
.team-filter-panel>summary{font-size:.9375rem;font-weight:650;padding:12px 0}
.team-filter-panel .directory-tabs{margin:8px 0 16px}
.team-filter-panel .directory-filters{padding:0;margin:16px 0}
#member-rows .leadrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,36%);align-items:center;min-height:70px;padding:16px 18px;gap:14px}
#member-rows .leadrow b{font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
#member-rows .member-state{text-align:right;font-size:.8125rem;color:#52656d;font-weight:600}
#directory-count{font-size:.875rem;margin:16px 4px 10px}
/* Callcenter: one working record, legible appointment choices, details on demand. */
.cc-section-tabs,.cc-days{display:flex;gap:8px;overflow-x:auto;padding:4px 0 16px}.cc-days button{flex-shrink:0;min-height:44px}.cc-slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cc-slot-grid button{display:flex;flex-direction:column;gap:6px;min-height:96px;padding:12px 6px}.cc-slot-grid b{font-size:21px}.cc-slot-grid span,.cc-slot-grid small{font-size:12px}.ap-slot.selected{background:#bee8f1!important;border:2px solid #24708a!important}.cc-partner{display:flex;flex-direction:column;gap:4px;background:#e0f3f7;border-radius:18px;padding:14px 18px;margin-bottom:16px}.cc-partner span{font-size:12px;font-weight:600;color:#385c6b}.cc-partner strong{font-size:18px}.cc-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.cc-metrics div{display:flex;flex-direction:column;gap:6px}.cc-metrics strong{font-size:30px}.cc-metrics span{font-size:13px;font-weight:600}.cc-agent{display:flex;flex-direction:column;gap:6px;padding:14px 0;border-bottom:1px solid #dde5e9}.cc-agent span,.cc-agent small{font-size:13px}.cc-handoff,.cc-followup{margin-top:18px;padding-top:14px;border-top:1px solid #dde5e9}.appointment-picker h2{font-size:22px}.cc-section-tabs .secondary{min-height:44px}

/* Keep the final Leads layout in place while its data arrives. */
.lead-loading{padding:20px}.lead-loading-label{display:block;font-size:14px;font-weight:600;color:#586b75;margin-bottom:12px}.lead-placeholder{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:80px}.lead-placeholder>div{flex:1;display:grid;gap:10px}.lead-placeholder i{display:block;background:#e9f1f4;border-radius:8px;height:14px;width:60%;animation:lead-loading-pulse 1.6s ease-in-out infinite}.lead-placeholder>div i+i{width:38%;height:10px}.lead-placeholder>i{width:68px;height:25px;border-radius:20px;flex-shrink:0}@keyframes lead-loading-pulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.lead-placeholder i{animation:none}}

#map-loading{position:absolute;inset:0;z-index:450;display:flex;align-items:center;justify-content:center;padding:24px;background:#edf3f5;color:#536b78;font-size:15px;font-weight:600;pointer-events:none}#map-loading[hidden]{display:none}#fieldmap{background:#edf3f5}.houseaddress input:disabled{background:#edf3f5;color:#71838c}.map-page .housepanel{transition:none}
/* One aligned map control column and compact status in the opposite corner. */
.map-page #fieldmap .leaflet-top.leaflet-right{top:12px;right:14px}
.map-page #fieldmap .leaflet-control-zoom{margin:0;border:0;border-radius:15px;overflow:hidden;box-shadow:0 3px 14px #14212620}
.map-page #fieldmap .leaflet-control-zoom a{width:46px;height:44px;line-height:44px;background:#fffffff0;color:#142126;font-size:23px}
.map-page .fieldheader{position:absolute;top:112px;right:14px;left:auto;transform:none;z-index:600}
.map-page .fieldheader .locate{border:1px solid #ffffffb3;border-radius:15px;background:#fffffff0}
.map-page .locationbar{top:12px;left:14px;right:auto;bottom:auto;transform:none;margin:0;max-width:calc(100% - 88px);text-align:left;border:1px solid #ffffffa6;background:#ffffffde;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:13px;color:#29424f}
.map-page .housepanel:has(.map-idle-actions){background:#ffffffc9;border:1px solid #ffffffb3;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 6px 24px #1421261a;padding:5px;border-radius:22px}
.map-idle-actions{gap:4px;align-items:center}
.map-idle-actions button{border-radius:17px;padding:10px 18px;font-size:14px;font-weight:650;color:#233c49;text-decoration:none}
.map-idle-actions button:hover,.map-idle-actions button:active{background:#ffffffb8}
.map-idle-actions button:focus-visible{outline:2px solid #3183a3;outline-offset:-2px}
/* Compact team overview: spacing and aligned figures instead of separators. */
#vp-summary .day-team-breakdown{padding:6px 10px 12px;border:0}
#vp-summary .day-team-breakdown>summary{padding:12px 10px;border:0}
#vp-summary .team-compact-head,#vp-summary .day-person{grid-template-columns:minmax(0,1fr) 60px 88px;gap:8px;padding:10px;border:0}
#vp-summary .team-compact-head{font-size:14px;font-weight:500;color:#637780;padding-top:8px;padding-bottom:12px}
#vp-summary .day-person{min-height:44px;border-radius:12px}
#vp-summary .day-person>b{font-size:14px;font-weight:600;line-height:1.4}
#vp-summary .day-person-counts strong{font-size:16px;font-weight:650}
#vp-summary .day-person-counts>span:last-child{color:#245c70}
#vp-summary .day-team-breakdown h3{padding:14px 10px 4px;font-size:13px}
@media(max-width:360px){#vp-summary .team-compact-head,#vp-summary .day-person{padding-inline:6px;gap:6px;grid-template-columns:minmax(0,1fr) 56px 82px}}

.lead-period-toolbar{display:flex;align-items:stretch;gap:10px;margin:8px 0 18px}.lead-date-box{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;padding:14px 18px;background:white;border:0;border-radius:18px;color:#203c49}.lead-date-box>span{font-size:13px;font-weight:550;color:#627883}.lead-date-box>strong{font-size:15px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums}.lead-filter-icon{position:relative;flex:0 0 52px;display:grid;place-items:center;background:white;border:0;border-radius:18px;color:#29424f}.lead-filter-icon svg{width:23px;height:23px}.lead-filter-icon b{position:absolute;right:4px;top:4px;background:#dceef3;border-radius:50%;min-width:18px;height:18px;font-size:11px;display:grid;place-items:center}.lead-date-box:focus-visible,.lead-filter-icon:focus-visible{outline:2px solid #3183a3;outline-offset:2px}

#perf-panel .perf-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#perf-panel .perf-stats>div{background:#fff;border-radius:22px;padding:22px 18px;display:flex;flex-direction:column;gap:8px}#perf-panel .perf-stats strong{font-size:clamp(30px,8vw,44px);font-weight:750;line-height:1.15;letter-spacing:-1px}#perf-panel .perf-stats span{font-size:14px;font-weight:550;color:#58707a}#perf-detail .perf-pace{padding:16px 4px 24px;line-height:1.5}#perf-panel .perf-section-title{font-size:19px;line-height:1.35;margin:8px 0 14px}.perf-presets{display:flex;gap:8px;margin-top:16px}.perf-presets button{flex:1;min-height:44px;padding:8px;background:#ffffff80;border:0;border-radius:13px;font-size:14px;font-weight:650;color:#203c49}.perf-presets button[aria-pressed=true]{background:#203c49;color:white}#perf-panel .perf-history{background:#fff;padding:18px;border-radius:20px;margin-top:24px}#perf-panel .perf-history summary{min-height:26px}#perf-panel .perf-money{border:0;padding-top:8px}.perf-presets button:focus-visible{outline:2px solid #203c49;outline-offset:2px}

/* Shared working surfaces: one rhythm across sales, calls and administration. */
:root{--surface-radius:24px;--control-radius:16px;--surface-space:20px;--body-weight:500;--label-weight:600}
body{font-weight:var(--body-weight)}
button,input,select,textarea{font-family:inherit}
.note,small,.detailrow>span,.period label,.permissionrow,.settingsrow small,.leadrow small{font-weight:var(--body-weight)}
.note,.leadrow small,.settingsrow small,.member-state,.cc-slot-grid span,.cc-slot-grid small,.cc-agent span,.cc-agent small,.period label{font-size:.875rem;line-height:1.5}
.note,small{color:#526771}
.card,.formcard{border-radius:var(--surface-radius)}
.formcard{padding:var(--surface-space)}
.field,.period label{font-weight:var(--label-weight);color:#344b54}
.fields{gap:20px}
.field input,.field select,.field textarea,.period input{margin-top:0}
textarea{font-size:1rem;font-weight:500;border-radius:var(--control-radius);padding:14px;line-height:1.5}
form>.field+ .field,form>.fields+ .field{margin-top:20px}
form>.primary,form>.secondary{margin-top:20px}
.title{gap:16px;align-items:center}
.title h1,.title h2{min-width:0;overflow-wrap:anywhere}
.title>button{flex-shrink:0;min-width:44px;min-height:44px;border-radius:50%;background:#edf4f6}
.settings-label,.sectionhead h2,.billing-group-title{font-weight:650;letter-spacing:-.02em}
.settings-label{font-size:.9375rem;margin:24px 6px 10px;color:#344b54}
.identity{background:white;border-radius:var(--surface-radius);padding:20px;margin-bottom:24px}
.identity b{font-size:1.25rem}.identity small{font-size:.875rem;margin-top:6px}
.settingsrow{gap:16px;min-height:60px}
.settingsrow>span:first-child{min-width:0}.settingsrow b{font-weight:650}.settingsrow small{margin-top:5px}
.leadrow{gap:16px;align-items:center;padding:16px 18px}
.leadrow b{font-weight:650;font-size:1rem}.leadrow small{margin-top:5px}
.member-state{background:#edf4f6;border-radius:12px;padding:7px 10px;max-width:140px;flex-shrink:0}
#directory-count{margin:12px 6px;font-size:.875rem;font-weight:600}
.list-day{padding:16px 18px 8px;margin:0;font-size:.875rem;font-weight:650;color:#344b54}
#modal{background:#f0f5f6;line-height:1.55}
#modal>.title{margin-bottom:20px}
#modal>details,#modal>.lead-overview,#modal>.lead-timeline,#modal>.testflow,#modal>.appointment-picker,#modal>.form-section,.payout-summary{background:white;border:0;border-radius:var(--surface-radius);padding:20px;margin:16px 0}
#modal>details>summary{font-size:1rem;font-weight:650;min-height:28px;cursor:pointer}
#modal>details[open]>summary{margin-bottom:16px}
#modal .detailrow{border:0;padding:10px 0;gap:20px;align-items:baseline;font-size:.9375rem}
#modal .detailrow b{font-weight:600}
#modal .lead-overview h3,#modal .lead-timeline h3{font-size:1rem;margin:0 0 10px;font-weight:650}
#modal .lead-timeline>div{border:0;gap:16px;padding:10px 0;flex-wrap:wrap}
#modal .lead-timeline time{font-weight:500;font-size:.875rem}
#modal .badge{display:inline-block;padding:7px 12px;border-radius:12px;background:#dceef3;text-align:left;max-width:100%;font-size:.875rem}
#modal .customer-panel{background:white}
#modal .testflow h2,#modal .appointment-picker h2{font-size:1.25rem;margin-bottom:16px}
#modal .testflow:has(#call-form){background:#e1f1f5}
#modal .actions{gap:10px;flex-wrap:wrap;margin-top:20px}
#modal .actions>button{min-height:48px;flex:1}
#modal .permissionrow{border:0;gap:16px;padding:14px 0;align-items:flex-start;font-size:.9375rem}
#modal .permissionrow input{margin-top:2px}
.payout-summary>span{display:block;font-size:.875rem;color:#526771}
.payout-summary>strong{display:block;font-size:2rem;font-weight:750;letter-spacing:-.04em;margin:8px 0 20px;font-variant-numeric:tabular-nums}
.iban-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;user-select:all}
.period-step{flex:0 0 44px;background:white;border-radius:18px;font-size:1.75rem;min-height:48px}
.billing-rules,.billing-period{padding:18px 20px}
.billing-rules summary{font-weight:600}
#rate-form .note{font-size:.875rem}
.cc-slot-grid button{border:2px solid transparent;min-height:108px;gap:8px;border-radius:18px}
.ap-slot.selected{border:2px solid #24708a!important}
.cc-slot-grid b{font-size:1.5rem;font-weight:700}
.cc-slot-grid span{font-weight:600}.cc-slot-grid small{font-size:.8125rem}
.cc-section-tabs{background:#dfeaec;border-radius:18px;padding:5px;gap:5px;margin:0 0 20px}
.cc-section-tabs button{flex:1;border-radius:14px}
.cc-days{padding:4px 0 12px}.cc-days button{font-weight:600}
.cc-agent{border:0;background:#f2f7f8;padding:14px 16px;border-radius:16px;margin:8px 0}
.cc-handoff,.cc-followup{border:0;background:#f2f7f8;padding:16px;border-radius:18px;margin-top:16px}
.cc-handoff button{margin-top:10px}.cc-handoff p{overflow-wrap:anywhere}
.cc-metrics div{background:#edf5f7;border-radius:18px;padding:14px 12px;gap:8px}
.cc-metrics span{font-size:.875rem}.cc-metrics strong{font-variant-numeric:tabular-nums}
#dispatch-status{background:white;border-radius:24px;padding:18px 20px;margin:16px 0}
#dispatch-status:empty{display:none}
.dispatch-line{font-weight:650;gap:16px}
.appointment-date-control{background:white;border-radius:18px;padding:16px 18px;margin:20px 0;display:flex;align-items:center;gap:20px}
.appointment-date-control .field{flex:1}.appointment-date-control>span{font-size:.875rem;color:#526771}
.perf-history summary{font-weight:650;font-size:1rem;min-height:28px}
.perf-session{border:0;padding:14px 0;gap:12px}.perf-session>span{font-weight:600;font-size:.9375rem}.perf-session small{font-size:.875rem}
.perf-pace{font-weight:550}.perf-timer-head b{font-weight:650}.perf-timer-head>span{font-weight:650}
#flowform{border-radius:24px}.flowsteps{margin-bottom:24px}
#flowform .note{background:#eaf3f6;padding:16px;border-radius:16px}
#flowform .permissionrow{border:0;padding:16px 0;align-items:flex-start}
.auth-panel .note{font-size:.9375rem;line-height:1.6}.auth-panel input[type=file]{padding:14px;background:#eef5f7;height:auto;white-space:normal}
.auth-panel input[type=file]::file-selector-button{font:inherit;border:0;border-radius:10px;background:#d8edf3;padding:10px;margin-right:10px}
.auth-panel [role=status]:empty,#modal [role=status]:empty,#modal [role=alert]:empty{display:none}
[role=alert]:not(:empty){color:#9b3030;background:#fff0ee;padding:14px 16px;border-radius:14px;font-weight:600}
.skeleton-stack{display:grid;gap:12px;padding:18px;background:white;border-radius:24px}
.skeleton-stack>span{display:block;min-height:64px;border-radius:16px;background:linear-gradient(100deg,#edf3f5 25%,#f7fafb 45%,#edf3f5 65%);background-size:200% 100%;animation:surface-loading 1.8s ease-in-out infinite}
@keyframes surface-loading{to{background-position:-200% 0}}
@media(max-width:540px){
 :root{--surface-space:18px}
 .member-state{max-width:112px;font-size:.8125rem;padding:7px 8px}
 #modal>.title{gap:10px}#modal .detailrow{gap:12px}
 #modal .detailrow>span{flex:1;min-width:0}#modal .detailrow>b{max-width:60%}
 .cc-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .appointment-date-control{align-items:flex-start;flex-direction:column;gap:8px}.appointment-date-control .field{width:100%}
 .lead-period-toolbar{gap:6px}.period-step{flex-basis:36px}.lead-period-toolbar .lead-date-box{padding:14px}
 .lead-date-box>strong{font-size:.9375rem}
 .cc-metrics{gap:6px}.cc-metrics div{padding:12px 8px}.cc-metrics strong{font-size:1.625rem}
 .cc-metrics span{font-size:.8125rem}
}
@media(prefers-reduced-motion:reduce){.skeleton-stack>span{animation:none}}
.queue-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}
.queue-counts>div{display:flex;flex-direction:column;gap:6px;background:#edf5f7;padding:14px 10px;border-radius:16px}
.queue-counts strong{font-size:1.625rem;font-weight:700;font-variant-numeric:tabular-nums}
.queue-counts span{font-size:.875rem;font-weight:600;color:#526771;overflow-wrap:anywhere}
@media(max-width:400px){.queue-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Sales accents: white working surfaces, pale blue for emphasis and selection. */
body[data-workspace="sales"]:has(#nav:not(:empty)){--sales-tint:#e4f2f6;--sales-accent:#a4d7e4;--sales-accent-ink:#214d5c}
body[data-workspace="sales"] .today-metric:not(.today-metric-primary){background:#fff}
body[data-workspace="sales"] .today-metric:not(.today-metric-primary) .today-metric-icon{background:#e4f2f6;color:#214d5c}
body[data-workspace="sales"] #lead-tabs button.active{background:var(--sales-accent);color:#142126;box-shadow:0 2px 8px #214d5c0a}
body[data-workspace="sales"] .active-filters button{background:var(--sales-tint);color:var(--sales-accent-ink);border:1px solid #c7e5ed}
body[data-workspace="sales"] #vp-summary .day-person-counts>span:last-child strong{display:inline-block;min-width:32px;padding:3px 8px;border-radius:10px;background:var(--sales-tint);color:var(--sales-accent-ink)}
body[data-workspace="sales"] #perf-panel .perf-projection{background:#a4d7e4}
body[data-workspace="sales"] .perf-presets button[aria-pressed="true"]{background:var(--sales-accent);color:#142126}
body[data-workspace="sales"] #app>.steps .done{background:var(--sales-accent)}
body[data-workspace="sales"] .capture-heading .pill{background:var(--sales-tint);color:var(--sales-accent-ink)}
body[data-workspace="sales"] #flowform .primary{background:var(--sales-accent);color:#142126}
body[data-workspace="sales"] #flowform select:focus,body[data-workspace="sales"] #flowform input:focus{background:#f0f8fa;border-color:#5b9caf;outline-color:#5b9caf}
body[data-workspace="sales"] #flowform input[type="checkbox"]{accent-color:#317a90}
.profile-accent-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:13px;background:#e4f2f6;color:#214d5c}
.profile-accent-icon svg{width:21px;height:21px}
.settings-row-label{flex:1;text-align:left}

/* Each day owns its rounded surface; row backgrounds stay clipped inside it. */
#app #rows:has(>.lead-day-group){background:transparent;border:0;box-shadow:none;overflow:visible}
#rows>.lead-day-group{background:transparent;margin:0;padding:0}
#rows .lead-day-card{background:var(--surface,#fff);border-radius:var(--surface-radius,24px);overflow:hidden;isolation:isolate}
#rows .lead-day-card>.leadrow{border-radius:0;margin:0;width:100%;box-shadow:none}
#rows .lead-day-card>.leadrow:last-child{border-bottom:0}

