:root{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--bg:#151719;--ink:#edf0f4;--muted:#b1b7c2;--line:#41464e;--red:#ff7884;--red-dark:#bd1421;--surface:#202328;--raised:#2b3037;--tint:#39252b;background:var(--bg);color:var(--ink)}
.theme-controls{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:12px 0;font:14px/1.5 'Segoe UI',Arial,sans-serif}
.theme-controls label{margin:0;color:inherit;font-size:14px}
.theme-controls select{font:inherit;width:auto;max-width:180px;min-height:44px;padding:8px 12px;border:1px solid #a0a5ad;border-radius:8px;background:#fff;color:#27282a}
.theme-controls select:focus-visible{outline:3px solid #eb1826;outline-offset:3px}
@media screen {
html[data-theme=dark] :is(body,.auth){background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(.panel,.stat,.sidebar,.topbar,.auth-form,.login-card,.admin-header,.metric,.global-results,.more-links,.catalog-options,#service-suggestions,.offline-card,.confirmation-dialog,.legal-skip){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,select,textarea,.catalog-review select,.theme-controls select){background-color:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#aab1bd}
html[data-theme=dark] :is(.cost-box,.service-icon,.empty-icon,.attachment-grid img,th,.nav-item:hover,.secondary:hover,.button.secondary:hover,tbody tr:hover){background:var(--raised);color:var(--ink)}
html[data-theme=dark] :is(.button.secondary,.secondary,.plan-tabs a,.legal-tabs a,.service-suggestions button){background:var(--surface);color:var(--ink);border-color:var(--line)}
/* Keep white text on a sufficiently dark red; links use the lighter accent. */
html[data-theme=dark] .button:not(.secondary),html[data-theme=dark] .offline-card a{background:#c81025;color:#fff}
html[data-theme=dark] .button:not(.secondary):hover{background:#ac1020}
html[data-theme=dark] :is(.muted,.stat>span,.stat small,.stat em,.service-row small,.car-card p,.small-empty,.history-summary>span,.nav-item,.nav-label,.text-button,.footer,.breadcrumb,.care-status,.catalog-custom small,.catalog-empty,.legal-intro,.legal-date,.legal-footer,.admin-brand small,.metric>span,.metric>small,.result-heading>span,.pagination,.empty,.admin-footer,.pwa-tools,.care-panel small,.confirmation-dialog #delete-confirmation-message,.auth-form>.auth-divider){color:var(--muted)}
html[data-theme=dark] .chart-note{background:#171a1f;color:var(--muted)}html[data-theme=dark] .chart-axis{stroke:var(--line)}html[data-theme=dark] .admin-chart text{fill:var(--muted)}html[data-theme=dark] .chart-point{fill:var(--surface)}html[data-theme=dark] .period-tabs a{color:var(--ink);border-color:var(--line)}html[data-theme=dark] .period-tabs a[aria-current=page]{color:#fff;border-color:#d61120}
html[data-theme=dark] .growth-summary article{border-color:var(--line)}html[data-theme=dark] .growth-summary :is(span,small){color:var(--muted)}
html[data-theme=dark] .adoption-list article{border-color:var(--line)}html[data-theme=dark] .adoption-list span{color:var(--muted)}html[data-theme=dark] .adoption-list progress{background:#2a2e35}
html[data-theme=dark] .activity-summary article{border-color:var(--line)}html[data-theme=dark] :is(.activity-summary span,.activity-summary small,.activity-legend){color:var(--muted)}
html[data-theme=dark] .health-grid article{border-color:var(--line)}html[data-theme=dark] :is(.health-grid span,.health-grid small){color:var(--muted)}
html[data-theme=dark] .maintenance-grid article{border-color:var(--line)}html[data-theme=dark] :is(.maintenance-grid span,.maintenance-grid small){color:var(--muted)}
html[data-theme=dark] .fuel-grid article{border-color:var(--line)}html[data-theme=dark] :is(.fuel-grid span,.fuel-grid small){color:var(--muted)}
html[data-theme=dark] .attention-grid :is(article,a){border-color:var(--line)}html[data-theme=dark] .attention-grid a:hover{background:#24191b;border-color:#d61120}html[data-theme=dark] :is(.attention-grid span,.attention-grid small){color:var(--muted)}
html[data-theme=dark] :is(.pill,.badge,.avatar,.nav-item.active,.plan-tabs a[aria-current],.legal-tabs a[aria-current],.catalog-options .is-active,.catalog-options [role=option]:hover,#service-suggestions .is-active,#service-suggestions [role=option]:hover,.part-context,.provider-notice,.catalog-custom,.confirmation-symbol,.global-results>a:hover,.global-results>a:focus,.more-links a[aria-current],.mobile-more[open] summary){background:var(--tint);color:#ff9ba4;border-color:#79434c}
html[data-theme=dark] :is(.error,.alert:not(.success)){background:#3d242b;color:#ffb9c0;border-color:#87505a}
html[data-theme=dark] :is(.success,.catalog-success){background:#173c2f;color:#b5edca;border-color:#42755b}
html[data-theme=dark] .pwa-tools .pwa-status{background:#3c301b;color:#ffdc9b;border-color:#8a7040}
html[data-theme=dark] .pwa-install-card,html[data-theme=dark] .pwa-install-actions details p{background:#23262b;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .pwa-install-copy strong{color:var(--ink)}
html[data-theme=dark] .pwa-install-copy span,html[data-theme=dark] .pwa-install-copy small{color:var(--muted)}
html[data-theme=dark] .pwa-install-disclaimer{color:var(--muted)}html[data-theme=dark] .pwa-install-actions details p>strong{color:var(--ink)}
html[data-theme=dark] .pwa-install-dialog{background:#23262b;color:var(--muted);border-color:var(--line)}html[data-theme=dark] .pwa-install-dialog>strong{color:var(--ink)}html[data-theme=dark] .pwa-dialog-close{background:#34383f;color:var(--ink)}
html[data-theme=dark] .notification-count{background:#c81025;color:#fff}
html[data-theme=dark] .care-panel{background:var(--surface)}
html[data-theme=dark] :is(.auth-brand,.vehicle-hero){background:#202328;color:var(--ink)}
html[data-theme=dark] :is(.auth-brand p,.vehicle-hero p,.dark-label,.hero-km span,.hero-art span,.auth-note,.sidebar-bottom p){color:var(--muted)}
html[data-theme=dark] :is(.eyebrow,.legal-document a,.care-status.due,.danger,.admin-tabs a,.back-link,.admin-footer a,.pagination a,.legal-links a){color:#ff9ba4}
html[data-theme=dark] .admin-brand{color:var(--ink)}
html[data-theme=dark] .delete-account-form{background:var(--tint);color:var(--ink);border:1px solid #79434c}
html[data-theme=dark] .account-actions summary{color:#ff9ba4}
html[data-theme=dark] :is(td,th,.catalog-review,.service-row,.form-footer,.history-details,.cost-total,.sidebar-bottom,.admin-footer,.confirmation-actions,.global-results>a){border-color:var(--line)}
/* The current official SVG keeps its original colors in both themes. */
html[data-theme=dark] img.epicar-logo{background:#fff;border-radius:50%}
html[data-theme=dark] .auth-divider::before,html[data-theme=dark] .auth-divider::after{background:var(--line)}
}
@media print{.theme-controls{display:none}html[data-theme]{color-scheme:light;--bg:#fff;--ink:#27282a;--muted:#636872;--line:#ddd;--red:#b80e1c;background:white;color:#27282a}}

.profile-appearance{margin-top:20px}
html[data-theme=dark] .care-status.due{background:#c81025;color:#fff}

img.epicar-logo{object-fit:contain;background:#fff;border-radius:50%;aspect-ratio:1}.auth-logo.epicar-logo{width:160px;height:160px}.brand img.epicar-logo{width:100px;height:100px}.legal-header img.epicar-logo{width:96px;height:96px}.admin-brand img.epicar-logo{width:76px;height:76px}@media(max-width:760px){.auth-logo.epicar-logo{width:112px;height:112px}.brand img.epicar-logo{width:72px;height:72px}}
.brand img.epicar-logo{width:120px;height:120px}
