:root{color-scheme:light;--surface:#fff;--action:#075aa8}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);cursor:pointer}
.theme-toggle svg{display:block;flex-shrink:0}
.header-inner{flex-wrap:wrap;padding-block:12px;gap:16px}
.header-inner nav{margin-left:auto}
.manager-header .theme-toggle{margin-left:auto}
@media(max-width:850px){.header-inner .brand{margin-right:auto}.header-inner .theme-toggle{order:2;margin-left:10px}.header-inner .menu-toggle{order:1}.header-inner nav{order:3}.manager-header .theme-toggle{margin-left:0}}
@media(max-width:390px){.header-inner .theme-toggle{font-size:.75rem;padding:8px;margin-left:6px}.header-inner .menu-toggle{padding:8px}.header-inner{gap:6px}}
@media screen{
  :root[data-theme=dark]{color-scheme:dark;--surface:#14283a;--white:#0c1b29;--paper:#101f2e;--sky:#1a354b;--ink:#e7eff7;--muted:#aebfcf;--line:#365064;--blue:#85c7ff;--action:#1267ad}
  [data-theme=dark] body{background:var(--white);color:var(--ink)}
  [data-theme=dark] .manage{background:var(--paper)}
  [data-theme=dark] :is(.header,.card,.button.secondary,.menu-toggle,.sticky-contact,.vehicle-choices,.manager-toolbar,.manager-panel,.manager-nav button,.photo-item button,.sales-card,.sale-actions,dialog,.skip){background:var(--surface);color:var(--ink);border-color:var(--line)}
  [data-theme=dark] :is(input,select,textarea){background:#0d1e2d;color:var(--ink);border-color:#5c758b}
  [data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#aebfcf;opacity:1}
  [data-theme=dark] :is(.brand,.strip strong,.card h3 a){color:var(--ink)}
  [data-theme=dark] .hero{background:linear-gradient(#142e43,var(--white))}
  [data-theme=dark] .placeholder-art{background:linear-gradient(140deg,#1a354b,#14283a)}
  [data-theme=dark] .button:not(.secondary):not(.danger){background:var(--action);border-color:var(--action);color:white}
  [data-theme=dark] .button:hover,[data-theme=dark] .theme-toggle:hover{background:#244860;color:white;border-color:#85c7ff}
  [data-theme=dark] .manager-nav button[aria-current]{background:#1d4a6b;color:white;border-color:#85c7ff}
  [data-theme=dark] :is(.muted,details p){color:var(--muted)}
  [data-theme=dark] :is(.sale-record,.sale-actions,#person-form){border-color:var(--line)}
  [data-theme=dark] :is(.error,#sales-status.error,.danger){color:#ffb1a9}
  [data-theme=dark] :is(.success,#sales-status.success){color:#92dfb2}
  [data-theme=dark] .danger{background:#38272d;border-color:#c78079}
  [data-theme=dark] .danger:hover{background:#83372f;color:#fff}
  [data-theme=dark] .about-logo{background:white}
}
@media print{.theme-toggle{display:none!important}:root[data-theme]{color-scheme:light}}
