/* Every light surface has a matching readable foreground. */
.theme-toggle{flex:none;width:auto;min-height:36px;border:1px solid #435966;border-radius:8px;padding:7px 12px;background:#10232e;color:#f7fafb;font:inherit;font-size:12px;cursor:pointer}
:root.dark{color-scheme:dark}
:root.light{color-scheme:light;color:#191a17;background:#fcfaf7;--background:#fcfaf7;--bg:#fcfaf7;--card:#fffdfb;--surface:#fffdfb;--surface-2:#e7efe5;--surface-3:#f1ede6;--foreground:#191a17;--text:#191a17;--muted:#575b53;--border:#cfcec5;--border-strong:#8c968e;--primary:#087a50;--green:#087a50;--pink:#bd174d;--danger:#bd174d}
:root.light body{background:#fcfaf7;color:#191a17}
:root.light :is(.sidebar,.site-header,.topbar,.integral-topbar,body>header){background:#f7f4ee;color:#191a17;border-color:#cfcec5}
:root.light :is(.metric,.panel,.mini-card,.scope-grid>div,.integral-metric-card,.dashboard-filter,.form-card,.aside,body>main section){background:#fffdfb;color:#191a17;border-color:#cfcec5;box-shadow:0 4px 18px rgb(25 26 23 / 5%)}
:root.light :is(.brand strong,.metric strong,.scope-grid strong,.integral-metric-hero strong,.integral-metric-content strong,.profile-name,.topbar-title,.mobile-brand,.entry-form label,.field label,.panel h2,.overview h1,.intro h1,.form-card h2,.aside h2){color:#191a17}
:root.light :is(.subtitle,.muted,.brand small,.nav-caption,.metric span,.metric small,.scope-grid span,.mini-card span,.counter,.empty,.empty p,td small,th,.integral-metric-hero p,.integral-metric-content>p,.field label span,.choice-card small,.footnote,.aside>p:not(.eyebrow),.intro>p:last-child,.footer,.success p){color:#575b53}
:root.light :is(.eyebrow,.choice-icon,.brand strong span,.aside li strong,.header-link,.integral-state-mark){color:#087a50}
:root.light .choice-icon.pink{color:#bd174d}
:root.light :is(.side-nav a,.user-chip,.role-chip,.profile-chip,.category-select select,.top-search input,.top-actions a,.top-actions button,.top-search,.search-box){color:#191a17;border-color:#b7c1b8;background:#fffdfb}
:root.light .side-nav a:hover,:root.light .side-nav a.active{background:#dff4e8;color:#176540}
:root.light :is(input,select,textarea){background:#fffdfb;color:#191a17;border-color:#929e93}
:root.light :is(input,textarea)::placeholder{color:#666b62;opacity:1}
:root.light :is(input,select,textarea):disabled{color:#666b62;background:#f1ede6}
:root.light :is(td,th,.user-chip,.counter,.empty,.mini-card,.scope-grid>div,.territory-summary>div,.status-order,.choice-card,.aside li){border-color:#cfcec5}
:root.light :is(.notice,.status,.territory,.secondary,.choice-card:has(input:checked)){background:#dff4e8;color:#176540;border-color:#6c9479}
:root.light .choice-card{background:#fffdfb;color:#191a17}
:root.light .choice-card:has(input[value=revendedor]:checked){background:#fbe5eb;color:#7c2941}
:root.light :is(.logout button,.status-chip,.dashboard-actions button,.dashboard-actions select,.map-controls button,.theme-toggle){background:#e7efe5;color:#294331;border-color:#9aab9d}
:root.light .error{background:#fbe5eb;color:#8b173b}
:root.light .brazil-map path.selected{stroke:#191a17}

:root.light :is(.module-grid a,.warehouse-card,.scope-banner,.integral-scope-banner,.dg-card,.ops-grid article){background:#fffdfb;color:#191a17;border-color:#cfcec5}
:root.light :is(.module-grid span,.warehouse-card p,.warehouse-card small,.scope-banner small,.filter-heading p,.filter-heading a,.notice-item p,.notice-item small,.map-legend,.territory-locations small,.metric-icon){color:#575b53}
:root.light :is(.menu-toggle,.top-category select){color:#191a17;background:#fffdfb;border-color:#929e93}
:root.light :is(.state-mark,.scope-banner>span:first-child){color:#087a50}
