/* A single light/dark treatment for the whole shell, plus SUGOIÁS blue palettes. */
@media screen {
 :root[data-theme=light]{--nav:#f6fafc;--nav-hover:#e6f0f5}
 :root[data-theme-variant=light-blue]{--bg:#eaf2f7;--panel:#fff;--field:#f8fbfd;--ink:#203a50;--muted:#4b687b;--line:#bed3e0;--nav:#e7f1f6;--secondary:#e0edf4;--secondary-ink:#234d66;--hover:#dcecf4;--focus:#1e6081}
 :root[data-theme-variant=dark-blue]{--bg:#0e1e30;--panel:#172d41;--field:#11263a;--ink:#e3edf5;--muted:#aec3d2;--line:#304e63;--nav:#152c41;--secondary:#203c53;--secondary-ink:#c7dfeb;--hover:#25465d;--focus:#9bd6e9}
 html[data-theme=light] body.visualCompact :is(#portalSidebar,.statusbar),
 html[data-theme=light] body.platformSideNavigation #portalSidebar{
  --ink:#203a50;--muted:#506b7e;--line:#c8dbe6;--focus:#1d6587;--hover:#e2f0f6;--secondary:#edf5f9;--active:#d9eaf3;
  background:var(--nav);color:var(--ink)
 }
 html[data-theme=light] body.visualCompact #portalSidebar nav{--menu-current:#d9eaf3;--menu-group:#e6f1f6;--menu-hover:#e2f0f6;--menu-rail:#bfd3df;--menu-accent:#1d6587}
 html[data-theme=light] body.platformSideNavigation #portalSidebar nav :is(.platformNavLink,.platformSubgroup>summary)>.platformItemIcon{color:#557d92}
 html[data-theme=light] .statusbar :is(.themeToggle,.miniBtn,#accountButton,.fontControls button,.sidebarCollapse,.mobileMenuToggle){color:#294e63;border-color:#bdd2df}
 html[data-theme=light] .statusbar .fontControls{border-color:#bdd2df}
 html[data-theme=light] .statusbar .fontControls button+button{border-color:#bdd2df}
 html[data-theme=light] .statusbar #accountButton>svg,html[data-theme=light] .statusbar #accountRoleLabel{color:#557587}
 html[data-theme=light] .statusbar #workUnitControl{background:#e5f2f7;border-color:#b2cfdd;color:#205c78}
 html[data-theme=light] .statusbar #workUnitControl>.unitMonogram{background:#cfe5ef;color:#245b77}
 html[data-theme=light] .statusbar #workUnitDocument{color:#537787}
 html[data-theme=light] .statusbar #boardUnitControl{--bdLine:#b2cfdd;--bdPanel:#f6fbfd;--bdBg:#e5f2f7;--bdText:#25495e}
 html[data-theme=light] .statusbar #boardUnitControl summary,html[data-theme=light] .statusbar #boardUnitControl .bdOptions{background:#edf7fa;border-color:#b2cfdd;color:#25495e}
 html[data-theme=light] .statusbar #boardUnitControl summary b{color:#205c78}
 html[data-theme=light] .statusbar #boardUnitControl .bdOptions small{color:#557587}
 html[data-theme=light] .platformNavFlyout{--muted:#506b7e;--ink:#203a50;--focus:#1d6587;--hover:#e2f0f6;--active:#d9eaf3;background:#f6fafc;border-color:#c8dbe6}
 html[data-theme=light] .platformNavFlyout .platformItemIcon{color:#557d92}
 html[data-theme-variant=dark-blue] body.platformSideNavigation #portalSidebar{background:var(--nav);--muted:#c0d2df;--ink:#edf5fa;--line:#36556b;--focus:#9bd6e9;--hover:#28495e;--active:#294d64}
 html[data-theme-variant=dark-blue] .platformNavFlyout{background:#152c41}
 .themePicker{position:relative;flex:none}
 .themePicker>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:36px;height:36px;border:1px solid var(--line);border-radius:4px;color:var(--ink);font-size:1.05rem}
 .themePicker>summary::-webkit-details-marker{display:none}
 .themePicker>summary:hover{background:var(--hover)}
 .themePicker>summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
 .themePickerOptions{position:absolute;z-index:110;right:0;top:calc(100% + 6px);width:174px;padding:7px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:6px;box-shadow:var(--dialog-shadow)}
 .themePickerOptions strong{display:block;padding:5px 8px;font-size:.72rem}
 .themePickerOptions button{display:block;width:100%;min-height:34px;padding:7px 9px;border:0;border-radius:4px;text-align:left;background:transparent;color:var(--ink);font:500 .8rem var(--font-ui);cursor:pointer}
 .themePickerOptions button:hover,.themePickerOptions button:focus-visible{background:var(--hover)}
 .themePickerOptions button[aria-checked=true]{background:var(--secondary);font-weight:700}
 .themePickerOptions button[aria-checked=true]::after{content:' ✓';float:right}
}
@media screen and (max-width:900px){.themePicker>summary{width:40px;height:40px}.themePickerOptions button{min-height:44px}}
@media screen and (max-width:600px){
 body.visualCompact .statusbar{grid-template-columns:minmax(0,1fr) 38px 38px 34px 45px}
 .statusbar .accountActions>.themeToggle{grid-column:2}
 .statusbar .accountActions>.themePicker{grid-row:1;grid-column:3}
 .statusbar .themePicker>summary{width:38px;height:40px}
 .statusbar #accountButton{grid-column:4}
 .statusbar #logoutBtn{grid-column:5}
 .statusbar #headerUnitSlot{grid-column:1/4}
 .statusbar .fontControls{grid-column:4/6}
}
