:root{color-scheme:light}
.footer-copyright{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}.workspace-footer{align-items:center}.workspace-footer [data-website-upload-note][hidden]{display:none}.footer-appearance{display:flex;align-items:center;gap:10px;margin-left:auto}.theme-toggle{display:inline-flex;gap:9px;align-items:center;min-height:44px;padding:0 4px;background:transparent;border:0;color:inherit;font:inherit;cursor:pointer}.theme-toggle-track{display:inline-flex;align-items:center;width:34px;height:20px;padding:3px;border-radius:20px;background:#ccd6e3}.theme-toggle-track>span{width:14px;height:14px;border-radius:50%;background:white;transition:transform .15s}.theme-toggle[aria-checked=true] .theme-toggle-track{background:#5b9bff}.theme-toggle[aria-checked=true] .theme-toggle-track>span{transform:translateX(14px)}.fos-phone-link{color:var(--fb-blue);text-underline-offset:3px;overflow-wrap:anywhere}.fos-phone-link.phone-number-blocked{color:#991b1b}.phone-open-saved{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;margin-top:6px}.calendar-next-holiday{font-size:11px;color:inherit}
html[data-theme=dark]{color-scheme:dark;--fb-snow:#0e1723;--fb-white:#172334;--fb-text:#e1eaf5;--fb-muted:#a8b8cc;--fb-border:#344459;--fb-blue:#8db7ff;--fb-success:#72dba2;--fb-danger:#ff9c9c;--fb-shadow:0 14px 35px #0004;--fos-surface:#172334;--fos-raised:#203047;--fos-text:#e1eaf5;--fos-muted:#a8b8cc;--fos-line:#344459}
html[data-theme=dark] body,html[data-theme=dark] .app-shell,html[data-theme=dark] .area-shell{background:#0e1723;color:var(--fos-text)}
html[data-theme=dark] :is(h1,h2,h3,h4,strong,legend){color:inherit}
html[data-theme=dark] :is(.card,.workspace-header,.calendar-popover,.calendar-day-cell,.calendar-editor,.update-entry,.notification-bar,dialog,.settings-section,.sales-lead-card,.accounts-chart-panel,.tool-cost-card,.receipt-reader,.receipt-preview,.wb-panel,.wb-toolbar,.wb-dialog,.wb-popover){background:var(--fos-surface);color:var(--fos-text);border-color:var(--fos-line)}
html[data-theme=dark] :is(.muted,.small.muted,.eyebrow,.cell-detail,.workspace-top,.workspace-footer,.breadcrumb,.header-meta,.workspace-clock-row,.sidebar-account .small,.phone-caller,.phone-timer,.phone-backspace,.phone-uk-clock span,.phone-contact-info dt,.phone-activity-item small,.calendar-options,.calendar-status,.calendar-help,.calendar-weekday,.calendar-event-time,.accounts-chart-fallback,.accounts-compact-label,.wb-muted){color:var(--fos-muted)}
html[data-theme=dark] :is(label,.phone-select-label,.phone-search label,.phone-note-form label,.twilio-urls label,.phone-digits label,.phone-number,.phone-context p,.calendar-day-number,.calendar-popover-heading button,.area-shell .workspace-header .brand,.saved-view-editor summary,.pipeline-loss-fields summary){color:var(--fos-text)}
html[data-theme=dark] :is(a,.btn-link){color:#8db7ff}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){background:#101c2c;color:var(--fos-text);border-color:#425571}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9aabc1;opacity:1}
html[data-theme=dark] :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:#7cacff}
html[data-theme=dark] :is(.btn,.calendar-toolbar button,.calendar-retry,.calendar-widget [data-calendar-add]){background:#23364f;color:var(--fos-text);border-color:#435774}
html[data-theme=dark] :is(.btn-primary,.crm-shell .btn-primary){background:#bf4d16;color:#fff;border-color:#e27943}
html[data-theme=dark] :is(.btn-secondary,.calendar-view-controls button[aria-pressed=true]){background:#345b90;color:#fff;border-color:#7394c1}
html[data-theme=dark] :is(.btn:disabled,button:disabled){opacity:.5}
html[data-theme=dark] .area-shell .area-sidebar{background:#111d2b;border-color:var(--fos-line);color:var(--fos-text)}
html[data-theme=dark] :is(.area-shell .area-sidebar .nav-link,.area-shell .account-settings,.area-shell .logout-button,.area-shell .sidebar-account .small){color:var(--fos-muted)}
html[data-theme=dark] .area-shell .area-sidebar .nav-link:hover{background:#23364f;color:#fff}
html[data-theme=dark] .area-shell .area-sidebar .nav-link.active{background:#284a74;color:#fff}
html[data-theme=dark] :is(.brand-logo){filter:brightness(0) invert(1)}
html[data-theme=dark] :is(th,thead,.calendar-weekday,.calendar-other-month,.sales-column,.accounts-metrics>div,.accounts-projection-stat,.tax-computation,.tax-highlight,.setup-summary,.accountant-cost-group,.wb-inspector,.wb-library){background:#122032;color:var(--fos-muted);border-color:var(--fos-line)}
html[data-theme=dark] :is(td,th,tr,.sidebar-account,.workspace-navigation,.area-tabs,.lead-tabs,.timeline article,.sales-task,.phone-log,.phone-record-links,.phone-followup,.phone-call-outcome,.phone-activity-item,.phone-search-result,.calendar-grid,.calendar-day-cell,.calendar-widget-footer,.form-actions,.saved-view-editor,.pipeline-move,.accountant-cost-row,.launch-check,.tool-cost-card,.update-entry,.notification-actions){border-color:var(--fos-line)}
html[data-theme=dark] :is(tbody tr:hover,.calendar-is-today,.accounts-ranking>li:hover){background:#203652}
html[data-theme=dark] :is(.calendar-day-number[aria-current=date],.lead-tabs a[aria-current=page]){background:#345b90;color:#fff}
html[data-theme=dark] :is(.calendar-day-number,.calendar-more,.phone-search-result>button:first-child){color:var(--fos-text)}
html[data-theme=dark] :is(.calendar-event.calendar-appointment){background:#203d62;color:#c7ddff}
html[data-theme=dark] :is(.calendar-event.calendar-holiday){background:#472936;color:#ffc1c1}
html[data-theme=dark] :is(.pill,.status-new,.status-active){background:#263b54;color:#dce8f7}
html[data-theme=dark] :is(.phone-check-checked,.pill.twilio-enabled,.phone-connection-ready,.notice.success,.payment-paid,.status-completed,.setup-done){background:#153c30;color:#9aebbb}
html[data-theme=dark] :is(.phone-check-blocked,.notice.error,.sales-blocked,.phone-number-blocked,.fos-phone-link.phone-number-blocked,.payment-overdue,.overdue-text){color:#ffb0b0}
html[data-theme=dark] :is(.phone-check-blocked,.notice.error,.payment-overdue){background:#482631;border-color:#8e4b5a}
html[data-theme=dark] :is(.phone-check-required,.phone-connection-active){background:#253d5a;color:#c3daf9}
html[data-theme=dark] :is(.notice,.demo-notice,.launch-notice,.tax-review-notice,.receipt-warnings,.accounts-status-warning,.notification-error,.local-accounts-notice){background:#3b3020;color:#f5d3a0;border-color:#725734}
html[data-theme=dark] .phone-key{background:#293c55;color:var(--fos-text)}
html[data-theme=dark] .phone-key:active{background:#3b5678}
html[data-theme=dark] .phone-call-button{background:#168444;color:#fff}
html[data-theme=dark] .phone-call-button:disabled{background:#273749;color:#9aaec6}
html[data-theme=dark] :is(.phone-block,.phone-hangup:not(:disabled)){background:#482631;color:#ffb0b0;border-color:#8e4b5a}
html[data-theme=dark] :is(.phone-heading-tools,.phone-contact-info,.calendar-widget){color:var(--fos-text)}
html[data-theme=dark] :is(.phone-search-result small,.calendar-other-month .calendar-day-number){color:var(--fos-muted)}
html[data-theme=dark] :is(.time-comparison,.time-comparison-popup,.time-comparison-table,.notification-message,.accounts-insight-grid>div,.setup-step,.wb){background:var(--fos-surface);color:var(--fos-text);border-color:var(--fos-line)}
html[data-theme=dark] :is(.time-working,.time-row-working,.uk-working){background:#163a2d;color:#a1e8c0}
html[data-theme=dark] :is(.time-outside,.time-row-outside,.uk-nonworking){background:#402731;color:#ffc3c3}
html[data-theme=dark] :is(.time-warning,.calendar-time-early){background:#45351e;color:#ffddac}
html[data-theme=dark] :is(code,pre){background:#101b29;color:#dce8f7;border-color:var(--fos-line)}
html[data-theme=dark] dialog::backdrop{background:#0009}
html[data-theme=dark] :is(.account-settings-actions .btn,.sales-form-actions .btn,.lead-form-actions .btn){color:#dce8f7}
@media(max-width:600px){.workspace-footer{gap:8px 16px}.footer-copyright{max-width:100%}.calendar-next-holiday{max-width:100%;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.theme-toggle-track>span{transition:none}}

html[data-theme=dark] .time-comparison-table :is(.time-too-early,.time-too-early td){background:#45351e;color:#ffddac}
html[data-theme=dark] .time-comparison-table :is(.time-outside-hours,.time-outside-hours td){background:#402731;color:#ffc3c3}
html[data-theme=dark] .time-comparison-table :is(.time-working-hours,.time-working-hours td){background:#163a2d;color:#a1e8c0}
html[data-theme=dark] .time-comparison-table :is(.time-selected td,tbody tr:hover td,tbody tr:focus td){background:#2b4267;color:#e1eaf5}

html[data-theme=dark] :is(.notification-message>span,.notification-message p,.notification-navigation>span,.notification-bar button){color:var(--fos-muted)}
html[data-theme=dark] .notification-bar button:hover{background:#2d405a;color:#fff}
html[data-theme=dark] .notification-bar [data-notice-action]{background:#345b90;color:#fff}
html[data-theme=dark] :is(.sales-metrics,.source-tag span,.quick-links a,.sidebar-toggle,.header-popup-button,.calendar-editor-actions>button:not(.btn)){background:var(--fos-surface);color:var(--fos-text);border-color:var(--fos-line)}
html[data-theme=dark] :is(.sales-metrics strong,.balance,.sales-lead-card,.section-heading){color:var(--fos-text)}
html[data-theme=dark] :is(.sales-metrics span,.time-comparison-note,.workspace-time,.wb-label,.wb-tip,.wb-top a,.wb-publish-note,.wb-shared,.wb-global-intro,.wb-viewport-label,.wb [data-context],.wb [data-save-status]){color:var(--fos-muted)}
html[data-theme=dark] :is(.workspace-tabs,.sales-metrics>div,.source-tag span,.stage-track>* ){border-color:var(--fos-line)}
html[data-theme=dark] .uk-clock time{color:#94dfb2}
html[data-theme=dark] .uk-closed .uk-clock time{color:#ffb0b0}
html[data-theme=dark] .wb{--wb-line:#344459;--wb-green:#285b47}
html[data-theme=dark] :is(.wb-pages,.wb-source-panel,.wb-search-preview,.wb-social-preview,.wb-media-thumb,.wb-canvas){background:#101c2c;color:var(--fos-text);border-color:var(--fos-line)}
html[data-theme=dark] .wb button{background:#23364f;color:var(--fos-text);border-color:#435774}
html[data-theme=dark] .wb :is(button[aria-current=page],button[aria-pressed=true],.wb-top h1 span){background:#193f32;color:#a6ebc3;border-color:#457d62}
html[data-theme=dark] .wb [data-save]{background:#285b47;color:#fff}
html[data-theme=dark] .wb :is(label,h1,h2,h3){color:var(--fos-text)}
html[data-theme=dark] .wb-alert{background:#45351e;color:#ffddac;border-color:#725734}
html[data-theme=dark] .crm-shell .btn.btn-primary{background:#bf4d16;color:#fff;border-color:#e27943}
html[data-theme=dark] .crm-shell .btn.btn-secondary{background:#345b90;color:#fff;border-color:#7394c1}
html[data-theme=dark] [data-lead-details].prospect-form .btn.btn-primary{background:#245fd0;color:#fff;border-color:#8db7ff}
html[data-theme=dark] [data-lead-details] .btn.btn-secondary{background:transparent;color:#bfd5f5;border-color:#8ba5c5}
html[data-theme=dark] .uk-hours-remaining{color:var(--fos-text);border-color:var(--fos-line)}

html[data-theme=dark] .pill.sales-stage-interested { background:#153c30; color:#9aebbb; }
