html:root:not([data-theme="light"]){--theme-surface:#181819;--theme-ink:#eeeef0;--theme-muted:#aaaab4;--theme-border:#ffffff24;--theme-wash:#ffffff0a;background:#181819}
/* Explicit theme preference is applied before first paint. Default stays dark. */
html:root[data-theme="light"]{--theme-surface:#f5f6f7;--theme-image:#e5e8eb;--theme-ink:#20262c;--theme-muted:#56616b;--theme-border:#d5dbe0;--theme-wash:#20262c0a;--theme-fade:#f5f6f7e8;--red:#d9362d;--muted:#56616b;color-scheme:light;color:#20262c;background:#f5f6f7}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:44px;height:44px;padding:10px;flex-shrink:0;border:1px solid #8a949b55;border-radius:3px;background:transparent;color:inherit;cursor:pointer}
.theme-toggle:hover{border-color:var(--red);color:var(--red)}
.theme-toggle .theme-moon{display:none}
html[data-theme="light"] .theme-toggle .theme-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-moon{display:block}
.mobile-theme{width:100%;justify-content:flex-start;margin:0 0 24px;font-size:18px}
@media(max-width:750px){header>.theme-toggle{display:none}}
html[data-theme="light"] .brand-logo{filter:invert(1)}
html[data-theme="light"] :is(.button,.nav-cta){color:#fff;background:var(--red);border-color:var(--red)}
html[data-theme="light"] :is(.button,.nav-cta):hover{color:#fff;background:#bd2b24}
html[data-theme="light"] :is(.number,.eyebrow:before){color:var(--red)}
html[data-theme="light"] :is(input,textarea,select){color:#20262c!important;background:#fff!important;border-color:#aab4be!important}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#68737e}
html[data-theme="light"] :is(.technical-board,.part-sheet,.insert-sheet){box-shadow:0 12px 36px #24394c08;border-color:#d5dbe0}
/* Photography keeps its original lighting, with readable copy over its dark hero. */
html[data-theme="light"] .personal-hero-scene{--theme-surface:#151517;--theme-ink:#eeeef0;--theme-muted:#c4c8cf;color:#eeeef0}
html[data-theme="light"] .personal-hero-scene .breadcrumbs{color:#c4c8cf}
html[data-theme="light"] .personal-hero-scene p{color:#c4c8cf}
html[data-theme="light"] :is(.filters button,.gallery .filters button){color:#46515b;border-color:#bbc4cc}
html[data-theme="light"] :is(.filters button,.gallery .filters button)[aria-pressed="true"]{background:#26343f;color:#fff;border-color:#26343f}
html[data-theme="light"] :is(.language-options a:hover,.language-options a[aria-current="true"]){color:#20262c}
html[data-theme="light"] .hero-main::before,html[data-theme="light"] .product-hero::before,html[data-theme="light"] .technical-section::before,html[data-theme="light"] .color-studio::before,html[data-theme="light"] .pattern-library::before{filter:brightness(.55)}
html[data-theme="light"] :is(header>nav a,.text-link,.footer-resources a,.footer-legal a):hover{color:var(--red)}
html[data-theme="light"] .nav-cta:hover{color:#fff}
html[data-theme="light"] #cookie-dialog .cookie-actions button[data-consent="accept"],html[data-theme="light"] #cookie-dialog .cookie-actions button[data-consent="save"]{color:#fff;background:var(--red)}
html[data-theme="light"] :is(.gallery-dialog,.gallery-dialog .close){color:#20262c}
html[data-theme="light"] :is(.default-material h4,.sheet-kicker,.part-steps li>span){color:#b82f27}
html[data-theme="light"] :is(.acquisition,.print-guide,.case-compatibility){--theme-surface:#edf0f3}
html[data-theme="light"] .footer-legal button:hover{color:var(--red)}

.mobile-theme-options{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--theme-border,#ffffff24);border-radius:4px;margin-bottom:24px}.mobile-theme-options button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--theme-muted,#aaaab4);cursor:pointer}.mobile-theme-options button[aria-pressed="true"]{background:var(--theme-wash,#ffffff0a);border-color:var(--red);color:var(--theme-ink,#eeeef0)}
