:root { color-scheme:light; }
html,body,#modes { margin:0; width:100%; height:100%; overflow:hidden; background:#f2f4f1; }
#switch-dock { position:fixed; top:0; left:0; width:0; height:0; z-index:2; pointer-events:none; }
html[data-mode="wind"], html[data-mode="wind"] body,
html[data-mode="wind"] #modes { background:#1c1e21; color:#eeeff0; color-scheme:dark; }
#switch-slot { position:fixed; top:calc(16px + env(safe-area-inset-top, 0px)); left:calc(16px + env(safe-area-inset-left, 0px)); width:44px; height:44px; pointer-events:none; }
#apex-mode-switch { box-sizing:border-box; display:block; width:44px; height:44px; padding:4px; margin:0; border:0; border-radius:8px; background:var(--switch-background,#f5f4f0); color:#1c1e21; cursor:pointer; touch-action:manipulation; pointer-events:auto; }
#apex-mode-switch:hover { box-shadow:inset 0 0 0 22px rgb(128 128 128 / .12); }
#apex-mode-switch:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
#apex-mode-switch svg { display:block; width:36px; height:36px; }
.mode-frame { position:fixed; inset:0; border:0; width:100%; height:100%; background:#f2f4f1; }
.mode-frame[hidden] { display:none; }
#shell-status { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); font:16px system-ui,sans-serif; color:inherit; }
#shell-status[hidden] { display:none; }
#apex-mode-switch[hidden] { display:none; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
