:root,[data-theme=dark]{color-scheme:dark;--ui-bg:#0b1220;--ui-panel:#121a2b;--ui-panel-border:#243047;--ui-text:#e8eefc;--ui-muted:#93a1bb;--ui-accent:#4f8cff;--ui-accent-soft:rgba(79,140,255,0.16);--ui-accent-gold:#f7b500;--ui-accent-cyan:#2db1e4;--ui-header-bg:linear-gradient(180deg,#101828,#0b1220);--ui-nav-bg:#0f1728;--ui-input-bg:rgba(15,23,40,0.92);--ui-shadow:rgba(0,0,0,0.28);--ui-sidebar-bg:linear-gradient(180deg,#101828,#0b1220);--ui-overlay-bg:linear-gradient(180deg,rgba(16,24,40,0.96),rgba(11,18,32,0.98));--ui-overlay-border:rgba(255,255,255,0.12);--ui-overlay-divider:rgba(255,255,255,0.08);--ui-surface-subtle:rgba(255,255,255,0.03);--ui-surface-hover:rgba(255,255,255,0.05);--ui-control-bg:rgba(255,255,255,0.04);--ui-control-border:rgba(255,255,255,0.08);--ui-control-hover-bg:rgba(255,255,255,0.08);--ui-control-hover-border:rgba(255,255,255,0.16);--ui-selected-bg:rgba(79,140,255,0.18);--ui-float-bg:rgba(11,18,32,0.9);--ui-float-border:rgba(255,255,255,0.08);--bg:var(--ui-bg);--panel:var(--ui-panel);--panel-border:var(--ui-panel-border);--text:var(--ui-text);--muted:var(--ui-muted);--accent:var(--ui-accent);--accent-soft:var(--ui-accent-soft);--danger:#ff7b7b;--success:#5fd38d}[data-theme=brand]{color-scheme:light;--ui-accent:#2288ff;--ui-accent-hover:#1a78e8;--ui-accent-soft:rgba(34,136,255,0.12);--ui-accent-gold:#f7b500;--ui-accent-cyan:#2db1e4;--ui-bg:#f4f7fb;--ui-panel:#ffffff;--ui-panel-border:#e2e8f0;--ui-text:#1a2b4a;--ui-muted:#64748b;--ui-header-bg:#2288ff;--ui-nav-bg:#2288ff;--ui-input-bg:#ffffff;--ui-shadow:rgba(26,43,74,0.08);--ui-sidebar-bg:#f4f7fb;--ui-overlay-bg:linear-gradient(180deg,#ffffff,#f8fafc);--ui-overlay-border:#e2e8f0;--ui-overlay-divider:#e2e8f0;--ui-surface-subtle:#f8fafc;--ui-surface-hover:rgba(34,136,255,0.06);--ui-control-bg:#f8fafc;--ui-control-border:#e2e8f0;--ui-control-hover-bg:rgba(34,136,255,0.08);--ui-control-hover-border:rgba(34,136,255,0.24);--ui-selected-bg:#e8f3ff;--ui-float-bg:rgba(255,255,255,0.96);--ui-float-border:#e2e8f0;--bg:var(--ui-bg);--panel:var(--ui-panel);--panel-border:var(--ui-panel-border);--text:var(--ui-text);--muted:var(--ui-muted);--accent:var(--ui-accent);--accent-soft:var(--ui-accent-soft);--danger:#e5484d;--success:#16a34a}[data-theme=brand] .eyebrow{color:var(--ui-accent-gold)}[data-theme=brand] .admin-header{background:var(--ui-header-bg);border-bottom-color:rgba(255,255,255,.18);box-shadow:none;color:#ffffff}[data-theme=brand] .admin-header .eyebrow{color:#ffffff}[data-theme=brand] .admin-header .label,[data-theme=brand] .admin-header__user,[data-theme=brand] .admin-header__user-caret,[data-theme=brand] .admin-header__user-sep{color:rgba(255,255,255,.92)}[data-theme=brand] .admin-header select{background:#ffffff;border-color:rgba(255,255,255,.35);color:var(--ui-text)}[data-theme=brand] .admin-header .alert-bell__trigger{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#ffffff}[data-theme=brand] .admin-header .alert-bell__trigger--active,[data-theme=brand] .admin-header .alert-bell__trigger:hover{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.22);color:#ffffff}[data-theme=brand] .admin-header__user-trigger:hover,[data-theme=brand] .admin-header__user-trigger[aria-expanded=true]{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.14);color:#ffffff}[data-theme=brand] .admin-nav{background:var(--ui-nav-bg);border-bottom-color:rgba(255,255,255,.18);box-shadow:none}[data-theme=brand] .admin-nav__link{color:rgba(255,255,255,.9)}[data-theme=brand] .admin-nav__link:hover{color:#ffffff;background:rgba(255,255,255,.14)}[data-theme=brand] .admin-nav__link--active{color:var(--ui-accent);background:#ffffff;font-weight:600}[data-theme=brand] .button-primary,[data-theme=brand] button.button-primary{background:var(--ui-accent);border-color:var(--ui-accent);color:#ffffff}[data-theme=brand] .button-primary:hover,[data-theme=brand] button.button-primary:hover{background:var(--ui-accent-hover);border-color:var(--ui-accent-hover)}[data-theme=brand] .button-secondary{background:#ffffff;border-color:var(--ui-accent);color:var(--ui-accent)}[data-theme=brand] .button-secondary:hover{background:rgba(34,136,255,.08);border-color:var(--ui-accent-hover);color:var(--ui-accent-hover)}[data-theme=brand] .button-secondary--danger{background:#ffffff;border-color:#f87171;color:#dc2626}[data-theme=brand] .button-secondary--danger:hover{background:#fef2f2;border-color:#ef4444;color:#b91c1c}[data-theme=brand] .button-danger{background:#dc2626;border-color:#dc2626;color:#ffffff}[data-theme=brand] .button-danger:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}[data-theme=brand] .settings-log-tab--active{border-color:var(--ui-accent);background:var(--ui-selected-bg);color:var(--ui-accent)}[data-theme=brand] .role-badge,[data-theme=brand] .status-badge{background:#f1f5f9;color:#475569}[data-theme=brand] .role-badge--admin{background:#dbeafe;color:#1d4ed8}[data-theme=brand] .role-badge--manager{background:#dcfce7;color:#15803d}[data-theme=brand] .role-badge--client{background:#e2e8f0;color:#475569}[data-theme=brand] .share-link-status--active,[data-theme=brand] .status-badge--active{background:#dcfce7;color:#15803d}[data-theme=brand] .alert-severity--info{background:#dbeafe;color:#1d4ed8}[data-theme=brand] .alert-severity--warning{background:#fef3c7;color:#b45309}[data-theme=brand] .alert-severity--critical{background:#fee2e2;color:#b42318}[data-theme=brand] .power-source-badge{background:#f1f5f9;color:#475569}[data-theme=brand] .power-source-badge--vehicle{background:#dbeafe;color:#1d4ed8}[data-theme=brand] .power-source-badge--battery{background:#fef3c7;color:#b45309}[data-theme=brand] .settings-log-pill--info{background:#dbeafe;color:#1d4ed8}[data-theme=brand] .settings-log-pill--warn{background:#fef3c7;color:#b45309}[data-theme=brand] .settings-log-pill--outbound{background:#dcfce7;color:#15803d}[data-theme=brand] .error-banner{color:#b42318}[data-theme=brand] .device-status--moving{background:#16a34a;color:#ffffff}[data-theme=brand] .device-status--online,[data-theme=brand] .device-status--parked{background:#dc2626;color:#ffffff}[data-theme=brand] .device-status--idle{background:#d97706;color:#ffffff}[data-theme=brand] .device-status--offline,[data-theme=brand] .device-status--waiting{background:#64748b;color:#ffffff}[data-theme=brand] .fleet-detail-overlay__meta--speed,[data-theme=brand] .fleet-detail-overlay__motion-speed{color:#15803d}[data-theme=brand] .track-timeline-item__badge{background:var(--ui-accent);color:#ffffff}[data-theme=brand] .track-timeline-item--stop .track-timeline-item__badge{background:#ea580c;color:#ffffff}[data-theme=brand] .track-timeline-item--idle .track-timeline-item__badge{background:#d97706;color:#ffffff}[data-theme=brand] .track-trip-card__badge{background:var(--ui-accent);color:#ffffff}[data-theme=brand] .track-stop-card__badge{background:#ea580c;color:#ffffff}[data-theme=brand] .track-trip-card__stats{color:var(--ui-text)}[data-theme=brand] .admin-header__user-trigger .muted{color:rgba(255,255,255,.82)}[data-theme=brand] .admin-header__user-menu{color:var(--ui-text)}[data-theme=brand] .admin-header__user-menu-item:hover{background:var(--ui-surface-hover)}[data-theme=brand] .admin-header__user-menu-item--danger{color:#dc2626}[data-theme=brand] .admin-header__user-menu-item--danger:hover{background:#fef2f2}[data-theme=brand] .alert-bell__menu{color:var(--ui-text)}[data-theme=brand] .alert-bell__item{background:var(--ui-surface-subtle)}[data-theme=brand] .alert-bell__item-meta,[data-theme=brand] .alert-bell__item-time,[data-theme=brand] .alert-bell__menu-count{color:var(--ui-muted)}[data-theme=brand] .alert-bell__item-message,[data-theme=brand] .alert-bell__menu-title{color:var(--ui-text)}[data-theme=brand] .login-card{border-color:var(--ui-panel-border);background:#ffffff;box-shadow:0 24px 64px rgba(26,43,74,.12),0 0 0 1px rgba(34,136,255,.08)}[data-theme=brand] .login-card h1{color:var(--ui-text)}[data-theme=brand] .login-card__header .eyebrow{color:var(--ui-accent)}[data-theme=brand] .login-card .label,[data-theme=brand] .login-card__subtitle{color:var(--ui-muted)}[data-theme=brand] .login-card input[type=email],[data-theme=brand] .login-card input[type=password]{background:#ffffff;border-color:var(--ui-panel-border);color:var(--ui-text)}[data-theme=brand] .login-card input::placeholder{color:#94a3b8}[data-theme=brand] .login-card input:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px rgba(34,136,255,.14)}[data-theme=brand] .login-card .button-primary,[data-theme=brand] .login-card__submit{box-shadow:0 10px 28px rgba(34,136,255,.22)}[data-theme=brand] .login-card .button-primary:not(:disabled):hover,[data-theme=brand] .login-card__submit:not(:disabled):hover{box-shadow:0 14px 32px rgba(34,136,255,.28)}[data-theme=brand] .account-sidebar__link,[data-theme=brand] .track-playback-bar__meta{color:var(--ui-text)}[data-theme=brand] .account-sidebar__link:hover{background:var(--ui-surface-hover)}[data-theme=brand] .account-sidebar__link--active{background:var(--ui-selected-bg);color:var(--ui-accent);font-weight:600}[data-theme=brand] .settings-section--danger .settings-section__title{color:#b42318}[data-theme=brand] .settings-card--danger{border-color:#fca5a5;background:#fef2f2}[data-theme=brand] .settings-card--danger h3{color:#991b1b}[data-theme=brand] .settings-card--danger .muted,[data-theme=brand] .settings-card--danger .settings-footnote{color:#7f1d1d}[data-theme=brand] .device-list{gap:.55rem;padding-bottom:.15rem}[data-theme=brand] .device-card{background:#ffffff;border-color:#dbe3ee;box-shadow:0 1px 2px rgba(26,43,74,.06)}[data-theme=brand] .device-card:hover{border-color:rgba(34,136,255,.4);background:#ffffff;box-shadow:0 2px 8px rgba(34,136,255,.1)}[data-theme=brand] .device-card--active{border-color:var(--ui-accent);background:#ffffff;box-shadow:0 0 0 1px rgba(34,136,255,.14),0 2px 10px rgba(34,136,255,.12)}[data-theme=brand] .device-card .device-battery-chip--high{color:#16a34a}[data-theme=brand] .device-card .device-battery-chip--medium{color:#ca8a04}[data-theme=brand] .device-card .device-battery-chip--low{color:#dc2626}[data-theme=brand] .device-card .device-battery-chip--offline{color:#64748b}[data-theme=dark] .device-card .device-battery-chip--high{color:#4ade80}[data-theme=dark] .device-card .device-battery-chip--medium{color:#facc15}[data-theme=dark] .device-card .device-battery-chip--low{color:#f87171}[data-theme=dark] .device-card .device-battery-chip--offline{color:#94a3b8}.admin-header{background:var(--ui-header-bg,var(--panel))}.admin-nav{background:var(--ui-nav-bg,var(--panel))}[data-theme=brand] .login-page:before{background:radial-gradient(circle at top right,rgba(247,181,0,.18),transparent 42%),radial-gradient(circle at bottom left,rgba(45,177,228,.16),transparent 40%),linear-gradient(180deg,#f4f7fb,#e8eef8)}.admin-header__brand-row{display:inline-flex;align-items:center;gap:.65rem;min-width:0}.admin-header__logo,.login-card__logo{display:block;width:2rem;height:2rem;object-fit:contain;flex:0 0 auto}.login-card__brand-row{display:flex;align-items:center;gap:.75rem;margin-bottom:.35rem}.theme-picker{display:grid;grid-gap:.75rem;gap:.75rem}.theme-picker__options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));grid-gap:.75rem;gap:.75rem}.theme-picker__option{display:grid;grid-gap:.55rem;gap:.55rem;padding:.85rem;border:1px solid var(--panel-border);border-radius:.85rem;background:var(--panel);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.theme-picker__option:hover{border-color:var(--accent)}.theme-picker__option--active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-picker__option input{position:absolute;opacity:0;pointer-events:none}.theme-picker__preview{display:flex;align-items:center;gap:.65rem}.theme-picker__preview-logo{width:2rem;height:2rem;object-fit:contain}.theme-picker__preview-chip{display:inline-flex;align-items:center;justify-content:center;min-width:4.5rem;padding:.2rem .55rem;border-radius:999px;font-size:.72rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.theme-picker__preview-chip--dark{background:#121a2b;color:#e8eefc}.theme-picker__preview-chip--brand{background:#2288ff;color:#ffffff;border:none}.theme-picker__label{font-weight:600}.theme-picker__description{color:var(--muted);font-size:.92rem;line-height:1.45}