/* Theme switch is always the rightmost header action. */
.theme-toggle{display:inline-grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);cursor:pointer;transition:background-color .18s,border-color .18s}
.theme-toggle[hidden]{display:none}
.theme-toggle:hover{background:#edf1e8;border-color:#bdcbb5}
.theme-toggle svg{grid-area:1/1;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:opacity .24s ease,transform .34s ease}
.theme-toggle .theme-sun{opacity:0;transform:rotate(-40deg) scale(.65)}
[data-theme=dark] .theme-toggle .theme-sun{opacity:1;transform:none}
[data-theme=dark] .theme-toggle .theme-moon{opacity:0;transform:rotate(40deg) scale(.65)}
@media(max-width:640px){.nav-wrap{gap:10px}.theme-toggle{width:36px;height:36px}.theme-toggle svg{width:18px;height:18px}}

html[data-theme=dark]{--ink:#e3e9df;--muted:#a2af9b;--line:#2b3d2e;--paper:#101a14;--white:#17241b;--green:#24563f;--deep:#0c1912;color-scheme:dark}
[data-theme=dark] .header{background:#153e2d}
[data-theme=dark] .theme-toggle:hover{background:#253626;border-color:#4d6346}
[data-theme=dark] .quick-links,[data-theme=dark] .car-card,[data-theme=dark] .visit,[data-theme=dark] .filter-panel,[data-theme=dark] .detail-summary,[data-theme=dark] .contacts-grid{background:#17241b}
[data-theme=dark] .quick-links>a:hover{background:#213121}
[data-theme=dark] .quick-links b,[data-theme=dark] .car-name>span,[data-theme=dark] .circle-arrow{color:#a7c594}
[data-theme=dark] .car-picture,[data-theme=dark] .detail-photo{background:#1b281f}
[data-theme=dark] .car-specs{color:#a7b59e;border-color:var(--line)}
[data-theme=dark] .car-specs span+span:before{color:#73836b}
[data-theme=dark] .eyebrow,[data-theme=dark] .breadcrumbs{color:#a4b399}
[data-theme=dark] .light{color:#b7cbb7}
[data-theme=dark] .text-link{border-color:#607655}
[data-theme=dark] .outlined{border-color:#53684a;color:var(--ink)}
[data-theme=dark] .outlined:hover{background:#253626}
[data-theme=dark] .tabs .active{background:#315f40;border-color:#315f40}
[data-theme=dark] .tabs a:hover{border-color:#769568}
[data-theme=dark] .service-card{background:#1c2c1f;border-color:#2d402c}
[data-theme=dark] .service-card:hover{background:#253825}
[data-theme=dark] .service-card p,[data-theme=dark] .service-number,[data-theme=dark] .contact-inner p{color:#a9b89e}
[data-theme=dark] .circle-arrow{border-color:#4f6747}
[data-theme=dark] .contact-strip,[data-theme=dark] .service-aside{background:#1a2b1d;border-color:#2d412d}
[data-theme=dark] .import-section{background:#163b29}
[data-theme=dark] .stock-notice{background:#322e20;border-color:#4a4230;color:#d3c39a}
[data-theme=dark] .badge:not(.badge-green){background:#18271fe6;color:#dce7d4}
[data-theme=dark] .reserved-badge{background:#4a3820;color:#ebcd9e}
[data-theme=dark] .spec-list>div{border-color:var(--line)}
[data-theme=dark] .empty{border-color:#45583d}
[data-theme=dark] .pagination a{border-color:#799a68}
[data-theme=dark] input,[data-theme=dark] select{background:#1b2a1f;border-color:var(--line);color:var(--ink);color-scheme:dark}
[data-theme=dark] input::placeholder{color:#8f9e85}
[data-theme=dark] .quiet-select .quiet-select-trigger,[data-theme=dark] input.quiet-suggestion-input{background-color:#1d2e21;border-color:#354a32;color:#d2dfc8}
[data-theme=dark] .quiet-select .quiet-select-trigger:hover,[data-theme=dark] input.quiet-suggestion-input:hover,[data-theme=dark] .quiet-select .quiet-select-trigger[aria-expanded=true],[data-theme=dark] input.quiet-suggestion-input[aria-expanded=true]{background-color:#293d2b;border-color:#527148}
[data-theme=dark] .quiet-select-arrow{border-color:#a1b695}
[data-theme=dark] .quiet-select-menu{background:#1b2b20;border-color:#354a32;color:#c5d6ba;box-shadow:0 8px 24px #0003}
[data-theme=dark] .quiet-select-option.is-active{background:#2a3f2a;color:#e0ecd6}
[data-theme=dark] .quiet-select-option[aria-selected=true]{color:#b8d3a7}
[data-theme=dark] .quiet-select-option[aria-selected=true]:after{color:#91b47b}
[data-theme=dark] .quiet-select-menu{scrollbar-color:#4a6242 transparent}
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle { view-transition-name: theme-switch; }
  ::view-transition { pointer-events: none; }
  ::view-transition-group(root) { animation-duration: .34s; }
  ::view-transition-group(theme-switch),
  ::view-transition-new(theme-switch) { animation: none; }
  ::view-transition-old(theme-switch) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle, .theme-toggle svg { transition: none; }
}
@media(max-width:380px){
  .header .brand{gap:7px}
  .header .brand img{width:40px;height:40px}
  .header .brand>span{font-size:14px}
  .header .brand small{font-size:5px;letter-spacing:.08em}
  .nav-wrap{gap:8px}
  .menu-toggle{font-size:20px;padding:7px}
  .theme-toggle{width:34px;height:34px}
}

/* Green header keeps the original silver logo visible in either theme. */
.header{border-bottom-color:#ffffff24}
.header .brand small,.header-phone small{color:#c4d6ca}
.header .brand b,.header .nav a span,.header .nav a:hover,.header .nav a[aria-current]{color:var(--orange)}
.header .menu-toggle,.header .theme-toggle{color:#f2f5ef;border-color:#ffffff45}
.header .nav{border-top-color:#ffffff30}
.header .theme-toggle:hover,.header .menu-toggle:hover{background:#ffffff14;border-color:#ffffff75}
