:root{--accent:#1e40af;--accent2:#0c51bc}
.btn:focus-visible,.chip:focus-visible,.cbtn:focus-visible,.vchip:focus-visible,.stg:focus-visible,.toggle:focus-visible,.nerve:focus-visible,button:focus-visible{outline:3px solid #0063c9;outline-offset:3px}
#sevrow{flex-wrap:wrap}#sevval{width:48px!important}.illustration-note{font-size:11px;color:var(--muted);line-height:1.45;margin:6px 0 12px}
#info p{color:var(--txt)}.view-presets{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.view-presets button{font:inherit;font-size:12px;background:var(--panel);color:var(--txt);border:1px solid var(--stroke);border-radius:5px;padding:7px;cursor:pointer}
#info{scrollbar-gutter:stable}#copyright{pointer-events:none}
@media(max-width:1100px){.topbar .sub{display:none}}
@media(max-width:900px){.topbar h1{display:none}.topbar .badge{display:none}.navlinks{margin-left:0;gap:3px}.leftcol{width:215px!important}#info{width:240px}}
@media(max-width:1100px){
 .topbar{height:58px;padding:12px 10px 12px 64px!important;gap:0}.topbar .navlinks{font-size:11px;gap:0}.navlinks a{padding:5px 7px}.topbar h1{display:none}
 #menuBtn{display:flex!important}#themeBtn{width:30px;flex-shrink:0}#panel-wrap,.leftcol{position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(310px,87vw)!important;height:100dvh!important;padding:64px 12px 20px!important;max-height:none!important;background:var(--panel)!important;z-index:12!important;transform:translateX(-110%);overflow-y:auto!important}
 #panel-wrap .panel,.leftcol .panel{width:100%!important}body.nav-open .leftcol{transform:none!important}#menuBtn{z-index:15!important}.scrim{position:fixed!important;inset:0;z-index:11!important}body.nav-open #info{visibility:hidden}
 #info{top:auto!important;left:0!important;right:0!important;width:auto!important;max-height:43dvh!important;bottom:14px!important;padding:14px!important}#seqBottom{position:static!important}.view-presets{gap:3px}
 body:has(#wrap) #wrap{padding:12px;gap:12px}body:has(#wrap) #stage{order:-1;width:100%;min-width:0}#cwrap{width:100%!important;max-width:560px;min-width:0!important}canvas#scan{width:100%!important;height:auto!important;display:block}#slicerow{width:100%!important;min-width:0!important}#slicerow input{min-width:0}body:has(#wrap) #info{position:static!important;width:100%!important;max-height:none!important}body:has(#wrap) #side{width:100%;max-height:320px;overflow:auto}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:1100px){.leftcol #legend{display:block!important;position:static!important;width:100%!important;max-height:none!important;flex:none}.leftcol{scroll-padding-top:64px}}

#stage>button{font:inherit;font-size:12px;border:1px solid var(--stroke);border-radius:8px;background:var(--panel);color:var(--txt);padding:9px 12px;cursor:pointer}#stage>button.active{background:#1e40af;color:white}#copyright{white-space:normal!important;max-width:100vw;line-height:1.3}body:has(#wrap) #wrap{min-width:0}

.leftcol #copyright{position:static!important;transform:none!important;width:100%;padding:14px 2px 6px;flex:none;font-size:10px;line-height:1.5;color:var(--muted);white-space:normal!important}body:has(#wrap) #copyright{position:static;padding:16px}#copyright{width:calc(100% - 24px);text-align:center}
