.attendance-cta{background:#edb184!important;color:#243d46!important;font-weight:bold;border:2px solid #9c6844!important}.nav-more{position:relative}.nav-more summary{cursor:pointer;padding:.6rem;border:1px solid #9aafb3;background:#e4ece8}.nav-more[open]{background:#e4ece8;padding:.3rem}.nav-more a{display:block}html:has(>body.lab-invert){filter:invert(1) hue-rotate(180deg)}body.lab-invert{filter:none}body.lab-invert img,body.lab-invert video{filter:invert(1) hue-rotate(180deg)}.lab-snow-layer{position:fixed;inset:0;pointer-events:none;z-index:5;overflow:hidden}.lab-flake{position:absolute;top:-2rem;color:#fff;text-shadow:0 0 2px #789;animation:lab-fall 13s linear infinite}.lab-flake:nth-child(3n){animation-duration:18s}.lab-flake:nth-child(2n){animation-delay:-6s}.lab-flake:nth-child(5n){animation-delay:-11s}@keyframes lab-fall{to{transform:translateY(110vh) rotate(90deg)}}@media(prefers-reduced-motion:reduce){.lab-snow-layer{display:none}.lab-flake{animation:none}}
body[data-lab-theme="sky"]{background:#c8e4ec}body[data-lab-theme="warm"]{background:#e5d9ca}body[data-lab-theme="night"]{background:#162a34;color:#e6edef}body[data-lab-theme="night"] .panel,body[data-lab-theme="night"] .window,body[data-lab-theme="night"] .site-shell,body[data-lab-theme="night"] .desktop{background:#253d48;color:#e6edef}body[data-lab-theme="night"] a{color:#a8dbed}body[data-lab-theme="night"] input,body[data-lab-theme="night"] textarea,body[data-lab-theme="night"] select{background:#e6edef;color:#172d38}
body[data-lab-theme="night"] a.button,body[data-lab-theme="night"] .nav-bar a,body[data-lab-theme="night"] .desktop-nav a,body[data-lab-theme="night"] .site-header a,body[data-lab-theme="night"] .site-nav a{color:#243d46}body[data-lab-theme="night"] .titlebar a{color:#eef6f8}
body[data-lab-theme="night"] .nav-button,body[data-lab-theme="night"] header a,body[data-lab-theme="night"] .nav-more a{color:#243d46}body[data-lab-theme="night"] header{color:#243d46}
.lab-toggle{display:inline-flex;align-items:center;gap:1rem;cursor:pointer;position:relative;font-size:1.08rem}.lab-toggle input{position:absolute;width:1px;height:1px;opacity:0}.toggle-track{display:inline-block;position:relative;width:60px;height:30px;border-radius:20px;background:#8c999c;border:1px solid #6a7c80;transition:background .18s}.toggle-track:before{content:"";position:absolute;width:36px;height:36px;left:-3px;top:-4px;border-radius:50%;background:#f3f4ef;border:1px solid #bcc7c7;box-shadow:0 3px 4px #263b4340;transition:transform .18s}.lab-toggle input:checked+.toggle-track{background:#edb184;border-color:#a96f46}.lab-toggle input:checked+.toggle-track:before{transform:translateX(30px);background:#cf7a3f}.lab-toggle input:focus-visible+.toggle-track{outline:3px solid #23647a;outline-offset:5px}.lab-arcade button{cursor:pointer;margin:.25rem;padding:.6rem .8rem}.arcade-tabs{display:flex;flex-wrap:wrap;gap:.5rem}.arcade-tabs [aria-pressed="true"]{background:#edb184;color:#243d46;border:2px solid #9c6844}.game-screen{max-width:300px;margin:1rem auto}.game-screen canvas{width:100%;height:auto;display:block;border:3px solid #6b919c;background:#1c343e;touch-action:manipulation}.game-screen canvas:focus-visible{outline:4px solid #cf7a3f;outline-offset:3px}.game-controls{text-align:center}.game-controls button{min-width:44px;min-height:44px}.snow-avatar{font-size:6rem;text-align:center;line-height:1.5;color:#416976}#snow-garden{text-align:center;padding:1rem}#garden-progress{width:min(100%,340px);height:1.5rem;accent-color:#cf7a3f}.lab-arcade [hidden]{display:none!important}@media(prefers-reduced-motion:reduce){.toggle-track,.toggle-track:before{transition:none}}

.bug-row{display:flex;align-items:center;gap:20px;width:fit-content;cursor:pointer;font-size:1.3rem}.bug-row input{position:absolute;opacity:0;width:1px;height:1px}.bug-track{display:block;position:relative;width:66px;height:28px;background:#979797;border-radius:30px}.bug-track:before{content:"";position:absolute;left:-2px;top:-7px;width:42px;height:42px;border-radius:50%;background:#f8f8f8;box-shadow:0 3px 5px #0003;transition:transform .18s,background .18s}.bug-row input:checked+.bug-track{background:#ffa0c4}.bug-row input:checked+.bug-track:before{background:#ff408c;transform:translateX(30px)}.bug-row input:focus-visible+.bug-track{outline:3px solid #167ab0;outline-offset:8px}.bug-row input:disabled+.bug-track{opacity:.7}@media(prefers-reduced-motion:reduce){.bug-track:before{transition:none}}

.bug-lab .bug-row{box-sizing:border-box;width:100%;min-width:0;min-height:70px;padding:14px 12px;gap:16px;border:1px solid #78909c55;border-radius:8px;font-size:1.05rem}.bug-track{flex:0 0 66px}.bug-row>span:last-child{white-space:nowrap}.bug-lab #bug-status{min-height:3em;overflow-wrap:anywhere}@media(max-width:620px){.bug-lab .bug-row{padding:12px 8px;gap:10px;font-size:.95rem}.bug-lab .bug-track{transform:scale(.8);transform-origin:left center;flex-basis:54px;width:66px}}

/* A25: optional, pointer-transparent decorations with no layout shift. */
.lab-fineprint{font-size:.78rem;color:#62777c;margin-block:.5rem}.festive-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:20px 0}.festive-controls h2{grid-column:1/-1}.lab-account{border-left:6px solid #c87838}.lab-account strong{font-size:1.5rem}.lab-festive-layer{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:8}.lab-wander{position:absolute;bottom:18px;font-size:38px;white-space:nowrap;animation:festive-walk 32s linear infinite}.lab-wander.rudolph{bottom:70px;animation-duration:41s;animation-delay:-15s}.lab-falling{position:absolute;top:-50px;font-size:25px;animation:festive-fall 17s linear infinite}.lab-falling.candy{animation-duration:23s}.lab-garland{position:absolute;top:0;width:100%;text-align:center;white-space:nowrap;letter-spacing:12px;color:#cf6c38;text-shadow:0 0 7px #fff3ac;background:linear-gradient(90deg,#1f593930,#af383830)}.lab-christmas .site-shell{outline:2px solid #77916d}.lab-christmas header{border-bottom-color:#aa4646}.slot-0{left:4%;animation-delay:-2s}.slot-1{left:14%;animation-delay:-14s}.slot-2{left:24%;animation-delay:-7s}.slot-3{left:34%;animation-delay:-10s}.slot-4{left:44%;animation-delay:-3s}.slot-5{left:54%;animation-delay:-16s}.slot-6{left:64%;animation-delay:-5s}.slot-7{left:74%;animation-delay:-12s}.slot-8{left:84%;animation-delay:-8s}.slot-9{left:94%;animation-delay:-1s}@keyframes festive-walk{0%{transform:translateX(-140px)}100%{transform:translateX(110vw)}}@keyframes festive-fall{to{transform:translateY(110vh) rotate(290deg)}}@media(max-width:600px){.lab-falling:nth-of-type(2n){display:none}.lab-wander{font-size:28px}}@media(prefers-reduced-motion:reduce){.lab-festive-layer{display:none}}
.announcement-highlight{margin:18px 0;padding:20px;border:2px solid #b66730;border-left:8px solid #b66730;background:#fff2db;color:#293e43;box-shadow:3px 3px #a9b6b8}.announcement-highlight h2{color:#293e43;margin:0 0 12px}.announcement-highlight a{color:#7e350f;font-weight:700}.announcement-highlight .promo-strip{display:block;padding:12px;background:#f9d3a7;margin-bottom:12px}.announcement-highlight ul{padding-left:22px}.announcement-highlight li{margin:8px 0}.announcement-highlight small{color:#52646a}

/* Clear visual groups and compact navigation for the laboratory. */
.lab-heading{border-top:5px solid #708d94}.lab-section-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}.lab-section-nav a{display:inline-flex;align-items:center;min-height:42px;padding:8px 14px;border:1px solid #82999d;background:#e8efed;color:#294751;text-decoration:none;font-weight:700;box-shadow:2px 2px #bac7c7}.lab-section-nav a:hover,.lab-section-nav a:focus-visible{background:#d5e7e9;outline:2px solid #345f6a;outline-offset:2px}.lab-section{scroll-margin-top:1rem}.lab-control-group{margin-top:1.5rem;padding:1rem;border:1px solid #a9bcc0;background:#f3f6f2}.lab-control-group h3{margin-top:0}.lab-effect-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.lab-effect-grid>.lab-toggle,.festive-controls>.lab-toggle{padding:12px;border:1px solid #bdc9c8;background:#fff}.festive-controls{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.festive-controls h3{grid-column:1/-1;margin:0}.lab-points-note{border-left:6px solid #c87838}.lab-points-note p{max-width:70ch}.bug-lab{border-top:5px solid #d8a334}.lottery-panel{border-top:5px solid #6d9ba8}.lab-arcade{border-top:5px solid #728f9c}.lab-section-nav a:focus-visible{scroll-margin:1rem}@media(max-width:600px){.lab-section-nav a{flex:1 1 calc(50% - 10px);justify-content:center}.lab-control-group{padding:.75rem}.lab-effect-grid{grid-template-columns:1fr}}

/* OS.zip lab sections sit on a visible desktop surface. */
.desktop .os-lab-workspace{display:grid;gap:20px;padding:20px;background-color:#c4dbe2;background-image:linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.22) 1px,transparent 1px);background-size:20px 20px;border:1px solid #92aab1}.desktop .os-lab-workspace .panel{margin:0;padding:20px;background:#f5f5f0;border:1px solid #82969a;box-shadow:3px 3px 0 #849ba055}.desktop .os-lab-workspace .lottery-panel,.desktop .os-lab-workspace .lab-arcade{padding:20px}.desktop .os-lab-workspace .lab-control-group{background:#e5e8e3}@media(max-width:680px){.desktop .os-lab-workspace{gap:14px;padding:12px}.desktop .os-lab-workspace .panel,.desktop .os-lab-workspace .lottery-panel,.desktop .os-lab-workspace .lab-arcade{padding:14px}}

.runner-records{margin:1rem auto;max-width:34rem;padding:1rem;border:1px solid #82999d;border-radius:10px;background:#eef6f3}.runner-records ol{max-height:12rem;overflow:auto}.runner-share-actions{display:flex;flex-wrap:wrap;gap:.5rem}.runner-records textarea{width:100%;margin-top:.5rem}

.lab-reaction{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;margin:.25rem 0 1rem;padding:.7rem 1rem;border:1px solid #9aaeb1;background:#edf3f0;color:#243f48}.lab-reaction form{display:flex;gap:.45rem}.lab-reaction button{padding:.4rem .7rem;border:1px solid #83999c;background:#f8f8f3;color:#243f48;cursor:pointer}.lab-reaction button[aria-pressed="true"]{background:#f2d6a8;border-color:#ad743e}.lab-reaction small{color:#52676d}.lab-reaction a{color:inherit}.bug-keypad{display:grid;grid-template-columns:repeat(3,minmax(76px,110px));gap:8px;max-width:380px;margin:1rem auto}.bug-keypad .bug-row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;min-height:54px;padding:8px;border:1px solid #7d9499;background:#d6e3e1;box-shadow:2px 2px #687d82}.bug-keypad .bug-key-label{display:grid;place-items:center;min-width:40px;height:36px;border:1px solid #687d82;background:linear-gradient(#f8f8f2,#c4d0d0);font:bold 1.15rem monospace;color:#1f3b42}.bug-keypad input{grid-column:2;grid-row:1;justify-self:end}.bug-command-panel{margin:1rem 0;padding:1rem;border:2px solid #304b55;background:#17252e;color:#e5f0ef;box-shadow:4px 4px #89999a}.bug-command-panel[hidden]{display:none}.bug-command-panel textarea{display:block;width:100%;max-width:60rem;box-sizing:border-box;background:#101a21;color:#cbf3da;border:1px solid #91a9aa;font:1rem monospace}.bug-command-panel label{display:block;margin:.5rem 0}

/* Bug keypad keys and the single active bug switch stay distinct. */
.bug-keypad{grid-template-columns:repeat(3,minmax(88px,120px));gap:16px;max-width:410px;margin:1.25rem 0 1.75rem}
.bug-key{min-height:70px;border:2px outset #82969a;background:linear-gradient(#f8f8f2,#c4d0d0);color:#1f3b42;font:bold 1.35rem monospace;cursor:pointer;box-shadow:3px 3px #687d82}
.bug-key:active{transform:translate(2px,2px);box-shadow:1px 1px #687d82}
.bug-key:focus-visible,.bug-single-row input:focus-visible+.bug-track{outline:3px solid #167ab0;outline-offset:4px}
.bug-switch-list{max-width:410px;margin:1rem 0 1.5rem;padding:1.25rem;border:1px solid #78909c;background:#eef4f1}
.bug-single-row{display:flex;align-items:center;gap:1.25rem;min-height:72px;padding:.75rem 1rem;border:1px solid #78909c;background:#d6e3e1;cursor:pointer}
.bug-single-row input{position:absolute;opacity:0;width:1px;height:1px}
.bug-single-row .bug-track{flex:0 0 66px}
.bug-single-row input:checked+.bug-track{background:#ffa0c4}
.bug-single-row input:checked+.bug-track:before{background:#ff408c;transform:translateX(30px)}
@media(max-width:620px){.bug-keypad{grid-template-columns:repeat(3,minmax(72px,1fr));gap:14px}.bug-key{min-height:68px}.bug-switch-list{padding:1rem}.bug-single-row{min-height:70px}}


/* Bug toggles match the simple screen-effect switches; the code pad is secondary. */

.bug-lab .bug-discovered{min-height:54px;padding:8px 12px;border:1px solid #78909c55;background:#f1f5f1}
.bug-command-keypad{margin-top:14px}
.bug-command-keypad #bug-keypad{display:grid;grid-template-columns:repeat(3,minmax(64px,86px));gap:8px;max-width:290px;margin:12px 0}
.bug-command-keypad #bug-keypad button{min-height:48px;padding:8px;font-weight:700}
@media(max-width:620px){.bug-lab .bug-discovered{min-height:56px}.bug-command-keypad #bug-keypad{grid-template-columns:repeat(3,minmax(68px,1fr));max-width:100%}}

/* 3x4 bug-switch bank */
.bug-lab .bug-switch-grid .bug-row{box-sizing:border-box;width:100%;min-width:0;min-height:66px;padding:12px;border:1px solid #78909c88;border-radius:7px;background:#e7eef0;box-shadow:2px 2px #64777a55;gap:12px;font-size:1rem}.bug-lab .bug-switch-grid .bug-row>span:last-child{white-space:nowrap;font-weight:700}.bug-lab .bug-switch-grid .bug-row input:checked+.bug-track{background:#ffa0c4}.bug-lab .bug-switch-grid .bug-row input:checked+.bug-track:before{background:#ff408c}.bug-lab .bug-switch-grid .bug-row input:disabled+.bug-track{opacity:.55}@media(max-width:620px){.bug-lab .bug-switch-grid .bug-row{padding:9px 6px;gap:7px;min-height:58px;font-size:.88rem}.bug-lab .bug-switch-grid .bug-track{transform:scale(.72);transform-origin:left center;flex-basis:48px;width:66px}.bug-lab .bug-switch-grid .bug-row>span:last-child{margin-left:-12px}}@media(max-width:340px){.bug-lab .bug-switch-grid .bug-row{gap:3px;padding-inline:3px;font-size:.8rem}}
/* 4 columns × 3 rows keypad-style bug switches */
.bug-lab .bug-switch-grid .bug-row{min-height:58px;padding:8px;gap:8px;justify-content:space-between}.bug-lab .bug-switch-grid .bug-track{width:48px;height:24px;flex-basis:48px}.bug-lab .bug-switch-grid .bug-track:before{width:30px;height:30px;top:-4px}.bug-lab .bug-switch-grid input:checked+.bug-track:before{transform:translateX(22px)}.bug-lab .bug-switch-grid .bug-key-label{font-weight:700;white-space:nowrap}.bug-victory-message{padding:1rem;border:3px solid #edb184;background:#fff2ce;text-align:center;font-size:1.3rem;font-weight:800}.bug-celebration{position:fixed;inset:0;z-index:99;overflow:hidden;pointer-events:none}.bug-celebration[hidden]{display:none}.bug-celebration i{position:absolute;top:45%;font-style:normal;font-size:2rem;animation:bug-firework 2.8s ease-out var(--delay,0s) infinite}.bug-celebration .balloon{top:105%;font-size:2.5rem;animation:bug-balloon 8s ease-in var(--delay,0s) infinite}.bug-celebration .firework:nth-child(3n){color:#e53f75}.bug-celebration .firework:nth-child(3n+1){color:#f2a900}.bug-celebration .firework:nth-child(3n+2){color:#3486db}@keyframes bug-firework{0%{transform:translateY(35vh) scale(.2);opacity:0}20%{opacity:1}75%{transform:translateY(-18vh) scale(1.8);opacity:1}100%{transform:translateY(-28vh) scale(.6);opacity:0}}@keyframes bug-balloon{to{transform:translateY(-125vh) rotate(18deg)}}@media(max-width:620px){.bug-lab .bug-switch-grid .bug-row{min-height:52px;padding:5px;gap:4px;font-size:.82rem}.bug-lab .bug-switch-grid .bug-track{transform:scale(.78);transform-origin:right center;margin-left:-9px;flex-basis:38px;width:48px}.bug-lab .bug-switch-grid input:checked+.bug-track:before{transform:translateX(22px)}}@media(prefers-reduced-motion:reduce){.bug-celebration i{animation-duration:.01ms;animation-iteration-count:1}}

/* Authoritative phone dial layout: three columns and four rows at every width. */
.bug-lab #bug-switches.bug-switch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row;gap:12px;margin:20px 0;width:100%}
.bug-lab #bug-switches.bug-switch-grid .bug-row{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px;width:100%;min-width:0;min-height:76px;padding:14px 10px;font-size:1rem;border-radius:0}
body[data-community="village"] .bug-lab #bug-switches.bug-switch-grid .bug-row{border-radius:12px}
.bug-lab #bug-switches.bug-switch-grid .bug-track{width:50px;height:24px;flex:0 0 50px;transform:none;margin:0}
.bug-lab #bug-switches.bug-switch-grid .bug-track:before{width:30px;height:30px;top:-4px;left:-2px}
.bug-lab #bug-switches.bug-switch-grid input:checked+.bug-track:before{transform:translateX(24px)}
.bug-lab #bug-switches.bug-switch-grid .bug-key-label{margin:0;font-weight:700;white-space:nowrap}
@media(max-width:620px){
.bug-lab #bug-switches.bug-switch-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.bug-lab #bug-switches.bug-switch-grid .bug-row{flex-direction:column;gap:9px;padding:12px 5px;min-height:90px;font-size:.9rem}
.bug-lab #bug-switches.bug-switch-grid .bug-track{flex:0 0 24px;width:50px;transform:none}
}

/* Keep the switch node mounted so user and server changes can animate continuously. */
.bug-lab #bug-switches.bug-switch-grid .bug-key-label{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.bug-lab #bug-switches.bug-switch-grid .bug-track{transition:background-color .22s ease,opacity .22s ease}
.bug-lab #bug-switches.bug-switch-grid .bug-track:before{transition:transform .24s cubic-bezier(.22,1,.36,1),background-color .22s ease,box-shadow .22s ease}
.bug-lab #bug-switches.bug-switch-grid input:disabled+.bug-track{opacity:1}
.bug-lab #bug-switches.bug-switch-grid[data-solved="true"] input:disabled+.bug-track{opacity:.7}
.bug-lab #bug-switches.bug-switch-grid[aria-busy="true"] .bug-row{cursor:wait}
@media(prefers-reduced-motion:reduce){.bug-lab #bug-switches.bug-switch-grid .bug-track,.bug-lab #bug-switches.bug-switch-grid .bug-track:before{transition:none}}

.bug-command-panel #bug-command-output dl{max-height:22rem;overflow:auto;padding:.8rem;border:1px solid #6b898a}
.bug-command-panel #bug-command-output dt{margin-top:.7rem;color:#cbf3da;font:700 1rem ui-monospace,monospace}
.bug-command-panel #bug-command-output dd{margin:.25rem 0 .7rem;color:#e5f0ef}
.bug-lab [hidden]{display:none!important}
.bug-command-panel #bug-command-state{padding:.65rem;border:1px solid #6b898a;background:#101a21;color:#cbf3da;font-family:ui-monospace,monospace}

/* Keep switch tracks rigid and labels wrapped; every effect uses the same card. */
.lab-effect-grid,.festive-controls{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));align-items:stretch;gap:12px}
.lab-effect-grid>.lab-effect-option,.festive-controls>.lab-effect-option{min-width:0;box-sizing:border-box;padding:14px;border:1px solid #b3c6c4;background:#fff;color:#263f47;gap:10px;justify-content:space-between;min-height:110px}
.lab-effect-option>.lab-toggle{display:flex;min-height:42px;width:100%;gap:12px;box-sizing:border-box;font-size:.95rem;line-height:1.5}
.lab-effect-option>.lab-toggle>span:last-child{min-width:0;flex:1;overflow-wrap:anywhere}
.lab-toggle>.toggle-track{flex:0 0 52px;width:52px;height:28px;box-sizing:border-box;border-radius:18px}
.lab-toggle>.toggle-track:before{width:22px;height:22px;box-sizing:border-box;left:2px;top:2px;box-shadow:0 1px 3px #263b4330}
.lab-toggle input:checked+.toggle-track:before{transform:translateX(24px)}
.lab-intensity{padding:0;display:grid;grid-template-columns:4em minmax(70px,1fr) 3em;gap:6px;align-items:center;font-size:.78rem;min-height:30px}
.lab-intensity input{width:100%;max-width:none;min-width:0;min-height:28px;margin:0}.lab-intensity output{text-align:right;white-space:nowrap}
body[data-community="village"] .lab-effect-option{border-radius:16px;box-shadow:0 2px 0 #cddbd5}
body[data-community="village"] .lab-section-nav a{border-radius:22px;box-shadow:0 2px 0 #b5c9c1}
body[data-community="oszip"] .lab-effect-option,body[data-community="oszip"] .lab-section-nav a{border-radius:2px}
body[data-lab-theme="night"] .lab-control-group{background:#213b47;color:#e7f1f2;border-color:#6e8b94}
body[data-lab-theme="night"] .lab-effect-option{background:#304d58;color:#f1f6f2;border-color:#78969c;box-shadow:none}
@media(max-width:600px){.lab-effect-grid,.festive-controls{grid-template-columns:minmax(0,1fr)}.lab-effect-grid>.lab-effect-option,.festive-controls>.lab-effect-option{min-height:96px;padding:12px}.festive-controls h3{overflow-wrap:anywhere}}
