/* The theme control is shared; light content retains its approved palette. */
.portal-header .theme-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:76px;min-width:76px;height:44px;min-height:44px;padding:4px;border:0;border-radius:30px;background:transparent;direction:ltr;cursor:pointer;touch-action:manipulation}
.theme-toggle-track{position:relative;display:flex;align-items:center;justify-content:space-between;gap:0;width:68px;height:36px;border:1px solid #d7cdbc;border-radius:24px;background:#ebe5db;box-shadow:inset 0 1px 3px #40301809;padding:0 8px;color:#74634d;isolation:isolate}
.theme-toggle-thumb{position:absolute;left:3px;top:3px;width:28px;height:28px;border-radius:50%;background:#fffdf9;box-shadow:0 2px 6px #35250e1a;z-index:-1;transition:transform .22s cubic-bezier(.2,.8,.2,1),background .2s}
.theme-toggle svg{width:16px;height:16px;flex:none;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.theme-toggle .theme-sun{color:#8f601e}.theme-toggle .theme-moon{color:#746d64}
.theme-toggle:hover .theme-toggle-track{border-color:#b58a48}
.theme-toggle:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.theme-toggle[aria-checked=true] .theme-toggle-thumb{transform:translateX(31px);background:linear-gradient(135deg,#f4d49c,#dbaa63);box-shadow:0 2px 10px #0004}
.theme-toggle[aria-checked=true] .theme-moon{color:#252a2c}.theme-toggle[aria-checked=true] .theme-sun{color:#b6b1a9}

:root[data-theme=dark]{color-scheme:dark;--cream:#14181b;--paper:#22272b;--ink:#f3eee6;--muted:#b8b7b2;--amber:#edbb78;--gold:#e1b87a;--line:#414447;--dark:#101416;--bg:#14181b;--theme-soft:#1c2125;--theme-raised:#2a3035;--theme-selected:#3b3123;scrollbar-color:#716451 #14181b}
:root[data-theme=dark] body[data-portal]{background:#14181b;color:var(--ink)}
:root[data-theme=dark] .portal-header{background:rgba(20,24,27,.96);border-color:#393c3d;box-shadow:0 2px 20px #00000012}
:root[data-theme=dark] .theme-toggle-track{background:#1a1f22;border-color:#555046;box-shadow:inset 0 1px 4px #0003}
:root[data-theme=dark] .theme-toggle:hover .theme-toggle-track{border-color:#d6ad6c}
:root[data-theme=dark] .portal-banner{background:linear-gradient(115deg,#292e32,#1e2327);border-color:#514735;box-shadow:0 10px 36px #0002,inset 0 1px 0 #f4d29908}
:root[data-theme=dark] .portal-card{background:#22272b;border-color:#414346;box-shadow:0 4px 16px #0002}
:root[data-theme=dark] .portal-card:hover{border-color:#b79460;background:#292e32;box-shadow:0 10px 28px #0004}
:root[data-theme=dark] .portal-card-title{color:#f3eee6}
:root[data-theme=dark] .portal-card-media,:root[data-theme=dark] .portal-card.is-contained .portal-card-media{background:#282c2e}
:root[data-theme=dark] .portal-card-arrow{background:#171d21e8;color:#f4e8d4;border:1px solid #c3a16d75;box-shadow:0 2px 6px #0003}
:root[data-theme=dark] .portal-card.is-contained .portal-card-number{color:#e4c68f}
:root[data-theme=dark] :is(.portal-promise,.portal-back,.stat-strip strong,.handwritten,.eyebrow,.small-label,.step-number,.material-copy dt,.large-seal b,.quality-seal small,.budget-previews button>span,.draft-video-caption>span,.innovation-process li span){color:var(--gold)}
:root[data-theme=dark] .portal-card.is-icon .portal-card-media{background:radial-gradient(ellipse at 70% 25%,#323638,#23282c)}
:root[data-theme=dark] .portal-card-icon{color:var(--gold)}
:root[data-theme=dark] .button-dark{background:#e0b16f;background-image:linear-gradient(135deg,#edc88f,#d8aa68);color:#191e21;box-shadow:inset 0 1px 0 #fff4;}
:root[data-theme=dark] .button-dark:hover{background:#f1ce97}
:root[data-theme=dark] .button-amber{background:#edbb78;color:#191e21}
:root[data-theme=dark] .button-amber:hover{background:#f3ce9b}
:root[data-theme=dark] .button-outline{border-color:#8b806e;color:var(--ink)}
:root[data-theme=dark] .language-picker nav{background:#242a2e;border-color:#50504b;box-shadow:0 14px 44px #0007}
:root[data-theme=dark] .language-picker nav :is(a:hover,a[aria-current]){background:#3d3427;color:#f5d49f}
:root[data-theme=dark] .visual-label{background:#171d21eb;border:1px solid #c3a16d75;color:#f8f0e4;box-shadow:0 3px 15px #0003}
:root[data-theme=dark] .compare-line{background:#efd4a3;box-shadow:0 0 0 1px #1b1f2166}
:root[data-theme=dark] .compare-handle{background:#252b2f;color:#f0c68a;border-color:#d5b17a;box-shadow:0 2px 12px #0005}
:root[data-theme=dark] .hero-comparison:is(:hover,.is-dragging,:focus-within) .compare-handle{background:#393329;box-shadow:0 3px 18px #0006}
:root[data-theme=dark] :is(.portal-story>figure,.dialog-media,.dialog-media figcaption,.empty-video,.gallery-thumbs img,.passport-rooms span,.home-status span,.estimate-highlights div,#request-summary,.finance-banner,.included-project,.hero-promo){background:#282e32;border-color:var(--line)}
:root[data-theme=dark] :is(.explore-section,.materials-section,.life-section,.result-poster,.document-section,.contact-section){background:#1a2024}
:root[data-theme=dark] .developers-section{background:#20262a}
:root[data-theme=dark] :is(.product-section,.partnership-section){background:#101619;color:var(--ink)}
:root[data-theme=dark] :is(.phone-preview,.screen-nav button,.image-dialog){color:var(--ink)}
:root[data-theme=dark] :is(.product-section .section-description,.partnership-section .section-description,.partnership-section .fine-print){color:var(--muted)}
:root[data-theme=dark] .phone-preview .screen-enlarge{background:#252c30f5;border-color:#8b7654;color:#f4e8d4}
:root[data-theme=dark] :is(.topic-card,.material-tab,.zone-button,.innovation-selector,.innovation-shot img,.innovation-advantages article){border-color:var(--line)}
:root[data-theme=dark] :is(.step-tab.active,.material-tab.active,.zone-button.active,.material-inspect-tabs .active,.home-scene-tabs .active,.passport-subtabs [aria-pressed=true],.dialog-tabs button.active,.innovation-tabs button[aria-selected=true],.gallery-thumbs button[aria-pressed=true],.audience-link.active){background:#3b3123;color:#f0cc96;border-color:#bd985e}
:root[data-theme=dark] :is(.zone-symbol,.role-options){background:#191f23}
:root[data-theme=dark] .role-options input:checked+span{background:#403426;color:#f3d2a0;box-shadow:inset 0 0 0 1px #b69058}
:root[data-theme=dark] .form-card :is(input:not([type=radio]),textarea){background:#171d21;color:var(--ink);border-color:#7b766b;caret-color:var(--amber)}
:root[data-theme=dark] .form-card :is(input,textarea)::placeholder{color:#aba9a1;opacity:1}
:root[data-theme=dark] .form-card input[type=radio]{accent-color:var(--gold)}
:root[data-theme=dark] .field-error{color:#ffb6a9}
:root[data-theme=dark] .form-card [aria-invalid=true]{border-color:#efa59a}
:root[data-theme=dark] .form-card #request-status{color:#b4dba5}
:root[data-theme=dark] :is(.text-tags button:hover,.text-tags a:hover){background:#393125}
:root[data-theme=dark] .document-card figure{background:#2a3034}
:root[data-theme=dark] .eco-feature{background:linear-gradient(125deg,#252d27,#202729);border-color:#495344}
:root[data-theme=dark] .robot-banner.robot-feature{background:linear-gradient(125deg,#2d2c29,#22292d);border-color:#514a3d}
:root[data-theme=dark] .robot-steps span{border-color:#807056}
:root[data-theme=dark] .innovation-section{background:linear-gradient(125deg,#282c2b,#1b2125);border-color:#544937}
:root[data-theme=dark] :is(.innovation-process li,.innovation-details details){background:#252c30;border-color:#55524a}
:root[data-theme=dark] .innovation-details summary:after{color:var(--gold)}
:root[data-theme=dark] .draft-video-thumb{background:#1b2024}
:root[data-theme=dark] .developer-poster:after{background:linear-gradient(90deg,#151b1ff7 0%,#151b1fe8 32%,#151b1f30 63%,transparent 78%)}
:root[data-theme=dark][dir=rtl] .developer-poster:after{background:linear-gradient(270deg,#151b1ff7 0%,#151b1fe8 32%,#151b1f30 63%,transparent 78%)}
:root[data-theme=dark] :is(.developer-poster .section-description,.hero-promo .hero-description){color:var(--muted)}
:root[data-theme=dark] .fridge-inset{border-color:#41494e}
:root[data-theme=dark] footer{background:#171d21}
:root[data-theme=dark] dialog{background:#22282c;border-color:#565248;box-shadow:0 25px 90px #0008}
:root[data-theme=dark] dialog::backdrop{background:#090d11c9;backdrop-filter:blur(5px)}
:root[data-theme=dark] .dialog-close{background:#2c3337;color:#f3e8d8;border-color:#6d6556}
:root[data-theme=dark] .image-dialog{background:#14191d}
:root[data-theme=dark] .image-dialog figcaption{color:var(--muted)}
:root[data-theme=dark] .skip-link{background:#292f33;color:var(--ink)}
:root[data-theme=dark] ::selection{background:#775c37;color:#fff7eb}

@media(max-width:760px){
 .portal-header .header-actions{gap:7px}
 .portal-header .theme-toggle{width:68px;min-width:68px;padding-inline:0}
 .portal-header .language-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .portal-header .language-picker summary{gap:5px;min-width:37px;min-height:44px;justify-content:center}
 .portal-header .menu-toggle{width:36px;padding:7px}
 .portal-header .header-inner{gap:10px}
}
@media(max-width:350px){
 .portal-header .header-inner{padding-inline:12px;gap:5px}
 .portal-header .logo{gap:7px}
 .portal-header .header-actions{gap:4px}
 .portal-header .logo b{font-size:17px}
 .portal-header .theme-toggle{width:66px;min-width:66px}
 .portal-header .menu-toggle{width:32px;padding-inline:5px}
}
@media(prefers-reduced-motion:reduce){.theme-toggle-thumb{transition:none}}
