/* Light mode leaves the established design intact. No filters on logos or photos. */
html[data-maki-theme="light"]{color-scheme:light}
html[data-maki-theme="dark"]{color-scheme:dark;--navy:#e6eff9;--ink:#e6eff9;--muted:#afc1d2;--line:#395068;--soft:#192b3e;--white:#152437;--paper:#111d2b;--mint:#183c35;--blue:#8dc8ff;--green:#64d4af;--shadow:0 12px 35px #0004;background:#0c1520}
html body .maki-theme-toggle.maki-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;flex:0 0 auto!important;width:64px!important;min-width:64px!important;min-height:44px!important;height:44px!important;padding:6px!important;border:1px solid #8aaac5!important;border-radius:24px!important;background:#e3eef8!important;color:#244965!important;box-shadow:none!important;cursor:pointer;line-height:1;order:0;margin:0 0 0 4px;text-decoration:none!important}
html body .maki-theme-toggle.maki-theme-toggle svg{display:block;width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.45}
html[data-maki-theme="light"] .maki-theme-toggle .theme-sun{opacity:1;stroke:#7b4b00}
html[data-maki-theme="dark"] body .maki-theme-toggle{background:#263e55!important;color:#e6eff9!important;border-color:#6586a5!important}
html[data-maki-theme="dark"] .maki-theme-toggle .theme-moon{opacity:1;stroke:#b6d9ff}
html body .maki-theme-toggle.maki-theme-toggle:focus-visible{outline:3px solid #bc760d!important;outline-offset:3px!important}
html[data-maki-theme="dark"] body{background:#0c1520!important;color:#e6eff9!important}
html[data-maki-theme="dark"] body :is(.admin-top,.topbar,.header,.admin-sidebar,.panel,.auth-card,.single-card,.dossier-nav,.ux-guide,.search-panel,.language-options,.language-picker summary,.project-language-options,dialog,.card,.review,.step,.reason,.faq details,.facebook-panel,.map-box,.chat,.chat-answer,.privacy-center,.cookie-panel,.cookie-banner){background:#152437!important;color:#e6eff9!important;border-color:#395068!important;box-shadow:0 4px 18px #0002}
html[data-maki-theme="dark"] body :is(.hero,.auth-wrap,.auth-side,.dashboard-head,.portal-hero,.section.light,.contact,.story,.ux-fieldset,.portal-notice,.profile-grid){background:#111f30!important;color:#e6eff9!important;border-color:#395068!important}
html[data-maki-theme="dark"] body :is(h1,h2,h3,h4,h5,legend,label,summary,dt,dd,.ux-location strong,.admin-title h1,.admin-title p,.admin-title .eyebrow,.ux-orientation p,.ux-location,.ux-guide-label,.ux-form-state,.nav-label,.eyebrow,.lead,.muted,.note,.photo-note,.privacy-hint,.empty,.empty-state,.form-status,.textlink){color:#d3e2f1!important}
html[data-maki-theme="dark"] body :is(p,small,td){color:inherit}
html[data-maki-theme="dark"] body :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea){background:#0e1b2a!important;color:#edf4fc!important;border-color:#658098!important}
html[data-maki-theme="dark"] body input::placeholder,html[data-maki-theme="dark"] body textarea::placeholder{color:#a8bdd0!important;opacity:1}
html[data-maki-theme="dark"] body :is(.list-search,.filter-form,.fact-grid>div,.portal-kpis article,.portal-contract-card,.cost-panel,.document-row,.request-row,.cc-document-entry,.stat-card,.stat,.stat-grid>*,.ui-step,.ui-next-step,.flash-info,.language-options a[aria-current]){background:#1a3045!important;color:#e6eff9!important;border-color:#426079!important}
html[data-maki-theme="dark"] body :is(table,tbody tr){background:#152437!important;color:#e6eff9!important}
html[data-maki-theme="dark"] body th{background:#20384f!important;color:#e6eff9!important;border-color:#426079!important}
html[data-maki-theme="dark"] body td{border-color:#30465c!important}
html[data-maki-theme="dark"] body tbody tr:nth-child(even){background:#192b3e!important}
html[data-maki-theme="dark"] body tbody tr:hover{background:#25415a!important}
html[data-maki-theme="dark"] body :is(a[href],.admin-sidebar a[href],.dossier-nav a[href],summary,.category-filters button){color:#abd5ff!important;border-color:#466783!important}
html[data-maki-theme="dark"] body :is(main a[href]:not(.brand):not(.button),.admin-sidebar a[href],.dossier-nav a[href],.filter-tabs a,.team-tabs a,.bd-tabs a,.ux-guide a,summary,.category-filters button){background:#20384f!important}
html[data-maki-theme="dark"] body :is(button,.button,.btn,.nav-button,input[type=submit]){background:#1763a4!important;color:#fff!important;border-color:#4386ba!important}
html[data-maki-theme="dark"] body :is(.button.secondary,.btn.secondary,button.secondary,.ux-secondary,.text-button,.photo-controls button){background:#263f57!important;color:#e9f3ff!important;border-color:#6486a4!important}
html[data-maki-theme="dark"] body :is(.ui-success,.ux-submit,.button.success,.customer-login,.chat-toggle){background:#08694f!important;color:#fff!important;border-color:#3dba92!important}
html[data-maki-theme="dark"] body :is(.ui-danger,.ux-risk,.button.danger,.mini-delete){background:#8c2c3b!important;color:#fff!important;border-color:#d47e89!important}
html[data-maki-theme="dark"] body :is(.admin-sidebar a.active,.dossier-nav a.active,.filter-tabs a.active,.team-tabs a.active,.bd-tabs a.active,.category-filters button.active){background:#1763a4!important;color:#fff!important;border-color:#8dc8ff!important}
html[data-maki-theme="dark"] body :is(button:disabled,input:disabled,.button[aria-disabled=true]){background:#293746!important;color:#aebfce!important;border-color:#5c7183!important;opacity:1}
html[data-maki-theme="dark"] body :is(.flash-success,.status-active,.status-completed){background:#143e33!important;color:#b1f3d7!important;border-color:#3d896e!important}
html[data-maki-theme="dark"] body :is(.flash-error,.status-cancelled){background:#4c2630!important;color:#ffd6df!important;border-color:#ae6a78!important}
html[data-maki-theme="dark"] body :is(.status-pending,.status-open){background:#203f5b!important;color:#c4e4ff!important}
html[data-maki-theme="dark"] body :is(.status-waiting,.priority-high,.flash-warning){background:#4b3b1d!important;color:#ffe4ac!important}
html[data-maki-theme="dark"] body :is(.brand img,.project-brand-main,.project-brand-maki,.maki-login-brand img){background:#fff;border-radius:5px}
html[data-maki-theme="dark"] body :is(.topbar nav a,.header .navlinks a,.language-options a,.sidebar-bottom a){background:transparent!important}
html[data-maki-theme="dark"] body footer{background:#111d2b!important;color:#c9d9e8!important;border-color:#395068!important}
html[data-maki-theme="dark"] body :is(.cc-summary,.ux-actions,.ux-fieldset,.sidebar-bottom){border-color:#395068!important}
@media(max-width:760px){html body .maki-theme-toggle.maki-theme-toggle{width:54px!important;min-width:54px!important;gap:2px;margin-left:0}.header .wrap.nav{grid-template-columns:minmax(90px,1fr) 28px 40px 44px!important;gap:8px!important}.header .maki-login-brand{grid-column:2!important;grid-row:1!important}.header .brand{grid-column:1!important;grid-row:1!important}.header .menu{grid-column:3!important;grid-row:1!important}.header .language-picker{grid-column:4!important;grid-row:1!important}.header .customer-login{grid-column:1/4!important;grid-row:2!important;justify-self:end}.header .maki-theme-toggle{grid-column:4!important;grid-row:2!important;justify-self:end}.header .navlinks{grid-column:1/-1!important;grid-row:3!important}.header .nav{padding-top:8px;padding-bottom:8px}.admin-top .maki-theme-toggle{margin-left:auto;order:0}header.topbar nav{flex-wrap:wrap}}
@media print{html[data-maki-theme] body,html[data-maki-theme] body :is(.panel,.auth-card,.hero,.header,table,tbody tr,th,td,.document-row,.portal-contract-card,.fact-grid>div){background:#fff!important;color:#111!important;box-shadow:none!important}.maki-theme-toggle{display:none!important}}
html[data-maki-theme="dark"] body .maki-theme-toggle{background:#263e55!important;color:#e6eff9!important;border-color:#6586a5!important}
html[data-maki-theme="dark"] body :is(.legal-page,.footer,.privacy-links,.privacy-center section){color:#d3e2f1!important;border-color:#395068!important}
@media print{html body .maki-theme-toggle.maki-theme-toggle{display:none!important}}
