/* Final CRM palette. Partner-branded public consent pages do not load this file. */
:root{--brand:#a8d5e5;--brand-hover:#95c9dd;--brand-soft:#deeff5;--brand-pale:#edf6f9;--brand-ink:#173c50}
body,body[data-workspace="sales"]:has(#nav:not(:empty)){--accent:var(--brand);--blue:var(--brand);--today-accent:var(--brand);--today-paper:#f3f5f6;--paper:#f3f5f6;--sales-accent:var(--brand);--sales-tint:var(--brand-soft);--sales-accent-ink:var(--brand-ink)}
body{background:var(--paper)}
body .primary:not(.danger),body .perf-controls button.primary,body[data-workspace="sales"] #flowform .primary{background:var(--brand);color:var(--brand-ink)}
body #nav button.active>span,body[data-workspace="sales"] #lead-tabs button.active,body[data-workspace="sales"] .perf-presets button[aria-pressed="true"],body .range-shortcuts>button.selected{background:var(--brand);color:var(--brand-ink)}
body .today-metric-primary,body .admin-day-grid>div:first-child,body #perf-panel .perf-stats>div:first-child,body #app .metrics .metric:first-child{background:var(--brand);color:var(--brand-ink)}
body .today-metric-primary :is(.today-metric-label,strong,.today-metric-unit),body #perf-panel .perf-stats>div:first-child span,body #app .metrics .metric:first-child :is(strong,span){color:var(--brand-ink)}
body .today-metric-primary .today-metric-icon{background:#ffffffde;color:#075b89}
body[data-workspace="sales"] .today-metric:not(.today-metric-primary) .today-metric-icon,body .profile-accent-icon{background:var(--brand-pale);color:#075b89}
body .today-rank-item.rank-self{background:var(--brand-soft);color:var(--brand-ink)}
body .rank-self :is(.today-place,.today-you,.today-rank-values){color:#365c71}
body .rank-self .today-rank-values b{color:var(--brand-ink)}
body #perf-panel .perf-projection,body[data-workspace="sales"] #perf-panel .perf-projection,body .perf-estimate{background:var(--brand-soft);color:var(--brand-ink)}
body .perf-projection .perf-estimate{background:transparent}
body .cc-partner,body .queue-counts>div{background:var(--brand-pale)}
body .ap-slot.selected{background:var(--brand-soft)!important;border-color:var(--brand)!important;color:var(--brand-ink)}
body .steps span.active,body .steps span.done,body[data-workspace="sales"] #app>.steps .done,body .filter-count{background:var(--brand);color:var(--brand-ink)}
body .locate{background:var(--brand-soft);color:var(--brand-ink)}
body input[type="checkbox"],body input[type="radio"],body #perf-extra,body[data-workspace="sales"] #flowform input[type="checkbox"]{accent-color:var(--brand)}
body :is(button,a,input,select):focus-visible{outline-color:var(--brand)}
body[data-workspace="sales"] #flowform input:focus,body[data-workspace="sales"] #flowform select:focus{background:var(--brand-pale);border-color:var(--brand);outline-color:var(--brand)}
@media(hover:hover){body .primary:not(.danger):hover:not(:disabled),body .perf-controls button.primary:hover:not(:disabled),body[data-workspace="sales"] #flowform .primary:hover:not(:disabled),body #nav button.active:hover>span{background:var(--brand-hover);color:var(--brand-ink)}}

/* Shared component contract: 8 / 16 / 24 spacing; 24px surfaces, 16px controls. */
:root{--surface-radius:24px;--control-radius:16px;--surface-space:20px;--space-small:8px;--space-item:16px;--space-section:24px;--brand-button:#a8d5e5}
body{font-family:Manrope,'DM Sans',sans-serif;font-weight:500}
body :is(.card,.formcard,.admin-card,.auth-panel,.perf-card,.perf-history,.today-metric,.today-support,.identity,.skeleton-stack,.empty,.connection-note,.perf-projection,.perf-estimate){border-radius:var(--surface-radius)}
body :is(.formcard,.admin-card,.perf-card,.perf-history,.today-metric,.today-support,.identity,.skeleton-stack,.empty,.connection-note,.perf-projection){padding:var(--surface-space)}
body .admin-day-grid>div,body #perf-panel .perf-stats>div{border-radius:var(--surface-radius);padding:var(--surface-space)}
body :is(.admin-tasks,.admin-operations){padding:4px 20px}
body #app .today-ranking{--ranking-radius:var(--surface-radius)}
body :is(.title,.lead-heading,.directory-heading){margin-bottom:24px;gap:16px}
body :is(.admin-section,.perf-card){margin-bottom:24px}
body :is(.fields,.actions){gap:16px}
body :is(.field,.period label){font-size:14px;font-weight:600;gap:8px}
body :is(.note,small,.member-state,.cc-slot-grid small,.cc-slot-grid span,.admin-person small,.admin-capacity small,.partner-account small,.lead-date-box>span){font-size:14px;line-height:1.5;font-weight:500}
body :is(.primary,.secondary){min-height:48px;border-radius:var(--control-radius);font-size:15px;font-weight:650;padding:12px 20px}
body .primary:not(.danger),body .perf-controls button.primary,body[data-workspace="sales"] #flowform .primary{background:var(--brand-button);color:var(--brand-ink)}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border-radius:var(--control-radius);font-size:16px;min-height:48px}
body :is(.lead-date-box,.lead-filter-icon,.period-step,.cc-slot-grid button,.admin-capacity,.admin-attention,.admin-unavailable){border-radius:var(--control-radius)}
body :is(.seg,.directory-tabs,.lead-tabs,.cc-section-tabs,.partner-tabs){background:#e7ecef;border-radius:20px;padding:4px;gap:4px;margin-bottom:24px}
body :is(.seg,.directory-tabs,.lead-tabs,.cc-section-tabs,.partner-tabs)>button{border:0;border-radius:16px;min-height:44px;padding:10px 12px;font-size:14px;font-weight:650;box-shadow:none;background:transparent;color:#526771}
body :is(.seg,.directory-tabs,.lead-tabs,.cc-section-tabs,.partner-tabs)>button:is(.active,.selected,.primary,[aria-selected=true]),body[data-workspace="sales"] #lead-tabs button.active{background:var(--brand-button);color:var(--brand-ink)}
body .range-shortcuts>button.selected{background:var(--brand-button);color:var(--brand-ink)}
body :is(.textbutton,.back,.admin-link){color:#08618f;min-height:44px}
body :is(.admin-task>strong,.lead-filter-icon b,.profile-accent-icon){background:var(--brand-soft);color:var(--brand-ink)}
body :is(.admin-info,.title>button){min-width:44px;min-height:44px}
body .icon,body .ui-symbol{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
body .title>button:has(.ui-symbol){display:inline-grid;place-items:center}
body #modal{background:var(--paper)}
body #modal>:is(details,.lead-overview,.lead-timeline,.testflow,.appointment-picker,.form-section){border-radius:var(--surface-radius);padding:20px;margin:16px 0}
body #modal>.title{margin-bottom:24px}
body #modal .actions{gap:16px;margin-top:24px}
body #modal .testflow:has(#call-form){background:var(--brand-pale)}
body .empty,body .connection-note{background:white;border:0;color:#526771}
body .ui-loading{display:grid;gap:16px;background:white;border-radius:24px;padding:20px}
body .ui-loading>span{font-size:14px;font-weight:600;color:#526771}
body .ui-loading-lines{display:grid;gap:8px}
body .ui-loading-lines i{height:16px;border-radius:8px;background:linear-gradient(100deg,#e7edf0 25%,#f5f8fa 45%,#e7edf0 65%);background-size:200% 100%;animation:surface-loading 1.8s ease-in-out infinite}
body .ui-loading-lines i:last-child{width:65%}
body [role=alert]:not(:empty){color:#902d3d}
body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--brand);outline-offset:3px}
body button:disabled{opacity:.45;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){body .ui-loading-lines i{animation:none}}
@media(max-width:360px){:root{--surface-space:16px}body .primary,body .secondary{padding-inline:12px}}
/* Small labels on the brighter brand surface use dark ink for readable contrast. */
body .today-metric-primary .today-metric-label,body .today-metric-primary .today-metric-unit,body .admin-day-grid>div:first-child span,body #perf-panel .perf-stats>div:first-child span,body #app .metrics .metric:first-child span{color:#102d40}
/* Profile and administration menu icons share a stable column. */
body .menu-icon{display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:13px;background:var(--brand-pale);color:#08618f}
body .menu-icon .icon{width:21px;height:21px}
body .settingsrow:has(.menu-icon),body .permissionrow:has(.menu-icon){display:flex;align-items:center;gap:16px}
body .settings-row-label{flex:1;min-width:0;text-align:left}
body .settingsrow.danger .menu-icon{background:#fae7eb;color:#962c3c}
body .admin-operation .menu-icon{flex:0 0 38px}
body .secondary:has(>.menu-icon),body .textbutton:has(>.menu-icon){display:inline-flex;align-items:center;gap:12px}

/* Center icon artwork independently of label padding and text baselines. */
body .menu-icon,body .profile-accent-icon,body .today-metric-icon{display:inline-grid;place-items:center;padding:0;line-height:1;background:var(--brand);color:var(--brand-ink)}
body .permissionrow>.menu-icon{padding:0;align-self:center}
body .menu-icon>svg,body .profile-accent-icon>svg,body .today-metric-icon>svg,body #nav button>span>svg{display:block;margin:0;flex-shrink:0}
body .settingsrow.danger .menu-icon{background:var(--brand);color:var(--brand-ink)}
body[data-workspace="sales"] .today-metric:not(.today-metric-primary) .today-metric-icon,body .today-metric-primary .today-metric-icon{background:var(--brand);color:var(--brand-ink)}
body .permissionrow:has(>.menu-icon){align-items:center}
body .permissionrow:has(>.menu-icon)>input{margin:0;align-self:center}
body :is(.primary,.secondary){text-align:center;justify-content:center;align-items:center}
body .perf-controls{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
body .perf-controls>button{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;padding:12px 4px;text-align:center;line-height:1.3;font-size:14px;white-space:normal;overflow-wrap:normal}
body :is(.app-refresh,.admin-info,.lead-filter-icon,.locate){display:inline-grid;place-items:center;padding:0;line-height:1}
body :is(.app-refresh,.admin-info,.lead-filter-icon,.locate)>svg{display:block;margin:0}
body .title>button:has(>.ui-symbol){padding:0;line-height:1}

/* Lead outcomes: clear semantic colors, including the detail dialog. */
body .badge.offen,body #rows .badge.offen,body #modal .badge.offen{color:#725400;background:#fff0a8!important}
body .badge.bestätigt,body #rows .badge.bestätigt,body #modal .badge.bestätigt{color:#08783c;background:#d9f7e5!important}
body .badge.abgelehnt,body #rows .badge.abgelehnt,body #modal .badge.abgelehnt{color:#c02232;background:#ffe1e5!important}
body .badge:is(.offen,.bestätigt,.abgelehnt),body #rows .badge:is(.offen,.bestätigt,.abgelehnt){padding:6px 10px;border-radius:12px;font-weight:650;line-height:1.4;text-align:center}
body .badge.offen:before{background:#e5b500}
body .badge.bestätigt:before{background:#0ca451}
body .badge.abgelehnt:before{background:#e33446}
