/* Light remains the default. Dark uses explicit surface/text colors, never image inversion. */
:root{color-scheme:light}
.appearance-toggle{width:36px;height:40px;flex-shrink:0;border:1px solid transparent;color:var(--muted)}
.appearance-toggle:hover{border-color:var(--line);color:var(--green)}
.appearance-toggle .icon{width:18px;height:18px}
.appearance-toggle .theme-icon-sun{display:none}
html[data-theme=dark] .appearance-toggle .theme-icon-sun{display:block}
html[data-theme=dark] .appearance-toggle .theme-icon-moon{display:none}
.site-footer .brand-rf{color:inherit}
@media(max-width:600px){.header-tools{gap:6px}.appearance-toggle{width:34px}.header-inner{gap:10px}.brand>span{font-size:25px}}
@media(max-width:360px){.header-inner{gap:8px}.brand>span{font-size:23px}.brand>img{width:34px}.header-tools{gap:4px}.header-tools .icon-button{width:32px}.language-switch{gap:5px;font-size:10px}}
@media screen {
html[data-theme=dark]{color-scheme:dark;--green:#80d59b;--ink:#e5ebe8;--muted:#a8b7b0;--line:#35433c;--soft:#202a24;--dark:#101713;--surface:#1d2621;--raised:#26322b}
html[data-theme=dark] body{background:#151c19;color:var(--ink)}
html[data-theme=dark] .utility-bar{background:#111915;border-color:#2b3831;color:#abb8b1}
html[data-theme=dark] .site-header{background:rgba(24,33,28,.98)}
html[data-theme=dark] .brand,html[data-theme=dark] .brand-rf{color:#edf3ef}
html[data-theme=dark] .brand>img{background:#fff;border-radius:2px}
html[data-theme=dark] .mega-menu,html[data-theme=dark] .main-nav.open{background:var(--surface);box-shadow:0 18px 32px #0003}
html[data-theme=dark] .language-switch a{color:#b4c0b9}
html[data-theme=dark] .language-switch a[aria-current=true],html[data-theme=dark] .language-switch a:hover{color:var(--green)}
html[data-theme=dark] .language-switch>span{color:#72877b}
html[data-theme=dark] .hero,html[data-theme=dark] .page-heading{background:var(--surface)}
html[data-theme=dark] .hero-selector,html[data-theme=dark] .detail-nav{background:#19231d}
html[data-theme=dark] .hero-tab:hover,html[data-theme=dark] .hero-tab.active{background:#233128}
html[data-theme=dark] .hero-rotation{background:#26372c;color:#d9e6de;border-color:#4b6254}
html[data-theme=dark] .hero-rotation:hover{color:var(--green);border-color:var(--green)}
html[data-theme=dark] .system-feature,html[data-theme=dark] .application-panels,html[data-theme=dark] .contact-banner,html[data-theme=dark] .detail-aside,html[data-theme=dark] .contact-information{background:var(--surface)}
html[data-theme=dark] .application-tab{background:#18211c}
html[data-theme=dark] .application-tab.active{background:#26392b}
html[data-theme=dark] .feature-values,html[data-theme=dark] .spec-table{border-color:var(--line)}
html[data-theme=dark] .button-dark,html[data-theme=dark] .page-navigator .current a,html[data-theme=dark] .protected input[type=submit]{background:#80d59b;color:#102217;border-color:transparent}
html[data-theme=dark] .button-dark:hover,html[data-theme=dark] .protected input[type=submit]:hover{background:#a1e6b5;color:#102217}
html[data-theme=dark] .button-outline{border-color:#6a7e71}
html[data-theme=dark] .skip-link{background:#80d59b;color:#102217}
html[data-theme=dark] .hero-footnote,html[data-theme=dark] .product-caption,html[data-theme=dark] .tab-number,html[data-theme=dark] .image-caption,html[data-theme=dark] .breadcrumbs,html[data-theme=dark] .catalog-status,html[data-theme=dark] .article-meta,html[data-theme=dark] .archive-language,html[data-theme=dark] .resource-number{color:#a8b7b0}
html[data-theme=dark] .hero-footnote>span{color:#8c9e92}
html[data-theme=dark] .product-caption span+span{border-color:#54675a}
/* Retain light product stages for dark chassis and white technical diagrams. */
html[data-theme=dark] .product-media,html[data-theme=dark] .product-picture,html[data-theme=dark] .gallery-thumbnails>a{background:#eef2ef;color-scheme:light;border-radius:2px}
html[data-theme=dark] .product-media img,html[data-theme=dark] .gallery-thumbnails img{filter:none;mix-blend-mode:multiply}
html[data-theme=dark] .hero-visual>.product-media,html[data-theme=dark] .system-visual .product-media{border:1px solid #c6d0c9}
html[data-theme=dark] .product-caption{padding-top:10px}
html[data-theme=dark] .spec-table dt,html[data-theme=dark] .prose pre,html[data-theme=dark] .prose blockquote{background:#202c24}
html[data-theme=dark] .spec-table dd{background:#17201a}
html[data-theme=dark] .prose p{color:#bdc9c1}
html[data-theme=dark] .search-form input,html[data-theme=dark] .protected input{background:#202c24;color:var(--ink)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#9cad9f;opacity:1}
html[data-theme=dark] .original-label{color:#e5c378}
html[data-theme=dark] .translation-notice{background:#342e1f;color:#eddbad;border-color:#b8a66f}
html[data-theme=dark] .sample-notice{background:#22382a;color:#c8dfce;border-color:#6f9c79}
html[data-theme=dark] .footer-contact p,html[data-theme=dark] .footer-bottom{color:#a3b4a9}
html[data-theme=dark] .footer-bottom{border-color:#34473b}
@media(max-width:800px){html[data-theme=dark] .main-nav,html[data-theme=dark] .mega-menu{background:var(--surface)}}
}
@media print{.appearance-toggle{display:none!important}:root{color-scheme:light!important}}

@media screen and (max-width:360px){.section-heading{flex-wrap:wrap;gap:12px}.section-heading>div{min-width:0}.section-heading>.text-link{padding-top:0;max-width:none}}
