.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid #dce4ee;background:#fff;color:#344b65;border-radius:9px;padding:9px 12px;cursor:pointer;font:600 12px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;white-space:nowrap}.theme-toggle-track{position:relative;width:34px;height:20px;border-radius:15px;background:#bcc9da;flex-shrink:0}.theme-toggle-track:after{content:'';position:absolute;top:3px;left:3px;background:white;border-radius:50%;width:14px;height:14px;transition:transform .15s}.theme-toggle[aria-checked=true] .theme-toggle-track{background:#628dff}.theme-toggle[aria-checked=true] .theme-toggle-track:after{transform:translateX(14px)}.theme-toggle:focus-visible{outline:3px solid #ef9a63;outline-offset:3px}.auth-theme{display:flex;justify-content:flex-end;margin:-12px -12px 22px}.retomas-header-actions{display:flex;align-items:center;gap:22px}.retomas-header-actions>span{letter-spacing:3px;font-size:11px;font-weight:750;color:#728095}
html[data-theme=dark]{--navy:#e6edf8;--blue:#8aafff;--bg:#0d1522;--line:#2c3b50;--muted:#a5b4c9;--green:#6bd6a6;--amber:#e8be76;--red:#ff9caa;background:#0d1522;color-scheme:dark}
html[data-theme=dark] body,html[data-theme=dark] .retomas-public{background:#0d1522;color:#dce5f3}
html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] .brand,html[data-theme=dark] .retomas-wordmark,html[data-theme=dark] .retoma-price,html[data-theme=dark] .metric,html[data-theme=dark] .stock-sales strong{color:#edf3fc}
html[data-theme=dark] .panel,html[data-theme=dark] .modal-card,html[data-theme=dark] .auth,html[data-theme=dark] .retoma-card,html[data-theme=dark] .retoma-body,html[data-theme=dark] .retoma-detail{background:#172335;border-color:#2c3b50;color:#dce5f3;box-shadow:0 8px 28px #0002}
html[data-theme=dark] .auth-brand,html[data-theme=dark] .retomas-public-footer strong{color:#edf3fc}
html[data-theme=dark] .sub,html[data-theme=dark] .muted,html[data-theme=dark] label,html[data-theme=dark] .label,html[data-theme=dark] .retoma-description,html[data-theme=dark] .retoma-detail-description,html[data-theme=dark] .retoma-spec,html[data-theme=dark] .retomas-hero>p:last-child,html[data-theme=dark] .retomas-public-footer p,html[data-theme=dark] #publicRetomaStatus,html[data-theme=dark] .retoma-publish small,html[data-theme=dark] .vehicle-model,html[data-theme=dark] .annual-profit,html[data-theme=dark] .annual-profit strong{color:#a8b8ce}
html[data-theme=dark] .field,html[data-theme=dark] input[type=search],html[data-theme=dark] .financebox .field,html[data-theme=dark] .view-mode input:disabled,html[data-theme=dark] .view-mode select:disabled{background:#101b2b;color:#e3ecf9;border-color:#3b4b63}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#899cb7}
html[data-theme=dark] .primary{background:#426ee4;color:#fff}html[data-theme=dark] .secondary,html[data-theme=dark] .retoma-button{background:#253650;color:#d3e2ff;border-color:#40516d}html[data-theme=dark] .danger{background:#472733;color:#ffb9c3}
html[data-theme=dark] .note,html[data-theme=dark] .financebox,html[data-theme=dark] .retoma-share,html[data-theme=dark] .retoma-publish{background:#1c2b40;border-color:#34455e;color:#bfcee3}
html[data-theme=dark] .table th,html[data-theme=dark] .table td{border-color:#2c3b50}html[data-theme=dark] .table th{background:#1b2a3e;color:#a8b8ce}html[data-theme=dark] .vehicle-table tr,html[data-theme=dark] .vehicle-table tbody tr:hover{background:#172335;border-color:#2c3b50}
html[data-theme=dark] .stock-heading,html[data-theme=dark] .stock-search,html[data-theme=dark] .stock-panel,html[data-theme=dark] .car-editor-header{background:#172335;border-color:#2c3b50}html[data-theme=dark] .status-tabs button{color:#a8b8ce}html[data-theme=dark] .status-tabs button.active{background:#253b62;color:#b9d0ff;border-color:#37518a}
html[data-theme=dark] .badge.ok,html[data-theme=dark] .retoma-state.is-published{background:#153e32;color:#8fe3bd}html[data-theme=dark] .badge.warn{background:#453b27;color:#f1d295}html[data-theme=dark] .badge.bad{background:#492b36;color:#ffb3c0}html[data-theme=dark] .status-count,html[data-theme=dark] .retoma-state{background:#2a3a51;color:#bdcce1}
html[data-theme=dark] .buyer-suggestions,html[data-theme=dark] .buyer-suggestions button{background:#172335;color:#dce5f3;border-color:#34455e}html[data-theme=dark] .buyer-suggestions button:hover,html[data-theme=dark] .buyer-suggestions button.selected{background:#2a3e60}
html[data-theme=dark] .retomas-public-header,html[data-theme=dark] .retomas-public-toolbar,html[data-theme=dark] .retomas-public-footer,html[data-theme=dark] .retoma-empty,html[data-theme=dark] .stock-sales{border-color:#2c3b50}html[data-theme=dark] .retoma-cover,html[data-theme=dark] .vehicle-photo-cover,html[data-theme=dark] .retoma-gallery>img{background:#101b2b}html[data-theme=dark] .retoma-placeholder{color:#a8b8ce}
html[data-theme=dark] .theme-toggle{background:#233249;color:#e0eafb;border-color:#40516d}html[data-theme=dark] .retomas-header-actions>span{color:#a8b8ce}html[data-theme=dark] .theme-toggle-track{background:#4b5d77}
@media(max-width:600px){.retomas-header-actions{gap:10px}.retomas-header-actions>span{display:none}.theme-toggle{font-size:11px;padding:8px 10px}.auth-theme{margin:-8px -6px 18px}}
@media(prefers-reduced-motion:reduce){.theme-toggle-track:after{transition:none}}
