:root{color-scheme:light;font:16px/1.5 system-ui,-apple-system,sans-serif;color:#173f36;background:#fff}*{box-sizing:border-box}body{margin:0}main{max-width:1060px;margin:auto;background:#f7fbf8;border:1px solid #d6e5de;border-radius:22px;padding:22px;overflow-wrap:anywhere}h1{font-size:1.55rem;line-height:1.25;margin:5px 0 12px}h2{font-size:1.15rem}p{margin:12px 0}.eyebrow{font-weight:750;font-size:.76rem;letter-spacing:.08em;color:#3e6451}input,select,button{font:inherit;color:inherit;background:#fff;border:1px solid #8cae99;border-radius:10px;min-height:44px;max-width:100%;padding:9px 11px}input,select{width:100%;min-width:0}button{cursor:pointer;font-weight:650}button.primary{background:#21664e;color:#fff;border-color:#21664e}button:disabled{opacity:.6;cursor:default}button:hover{box-shadow:0 0 0 2px #cfe1d5}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #9c6500;outline-offset:3px}label{display:block;font-weight:650;margin-bottom:6px}.controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:14px;margin:18px 0}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.answer{border:1px solid #c9ded0;border-radius:14px;background:white;padding:15px;margin:14px 0}.status{background:#e5f2e9;border-radius:10px;padding:12px;line-height:1.55}.status:empty{display:none}.challenge,.compact-model{font-size:1.15rem;font-weight:700;background:#fff3d3;padding:18px;border-radius:14px}.hundred-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;margin:20px 0}.hundred-grid span,.hundred-grid button{border:1px solid #bdcebf;border-radius:6px;background:white;text-align:center;padding:5px 1px;min-height:44px;position:relative;font-size:.95rem;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px}.hundred-grid small{font-size:.6rem}.hundred-grid .set-a{background:#d7eadd;border-bottom:3px solid #28644a}.hundred-grid .set-b{outline:2px dashed #95621c;outline-offset:-4px}.hundred-grid [aria-pressed=true]{background:#d7eadd;border:3px solid #28644a;font-weight:800}.hundred-grid [aria-pressed=true]:after{content:'✓';font-size:.65rem}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.chips span{padding:9px 14px;background:#fff2cf;border:1px solid #bca668;border-radius:10px;font-weight:700}figure{margin:20px 0}svg{width:100%;height:auto;display:block}figcaption{font-size:.92rem;margin-top:8px}.counter-array{display:grid;gap:4px;width:min(100%,540px);margin:20px auto}.counter{aspect-ratio:1;max-height:30px;border-radius:5px;background:#409b79;border:1px solid #1e6b4c}.loose{display:flex;gap:6px;flex-wrap:wrap;align-items:center;background:#fff1cf;padding:14px;border:1px dashed #9b742d;border-radius:12px}.loose span{color:#8e5c15;font-size:1.2rem}.loose strong{flex-basis:100%}summary{cursor:pointer;min-height:44px;padding:10px 0}.summary:not(:empty){padding:15px;background:#fff3d3;border-radius:14px}[hidden]{display:none!important}@media(max-width:480px){main{padding:14px}h1{font-size:1.28rem}.answer{padding:12px}.hundred-grid{gap:2px}.hundred-grid span{font-size:.78rem;min-height:35px}.hundred-grid button{font-size:.82rem;min-height:44px}.actions>button{flex:1 1 125px}.controls{gap:10px}.counter-array{gap:3px}.counter{border-radius:3px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:480px){.hundred-grid:has(button){grid-template-columns:repeat(6,minmax(0,1fr))}}
.lab-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.lab-header img{width:64px;height:88px;object-fit:contain;flex:0 0 64px}.note{font-size:.88rem;color:#476253}.decimal-model{margin:20px auto;max-width:530px}.decimal-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));border:2px solid #264e3e;aspect-ratio:1}.decimal-grid>span{border:1px solid #b0bfb4;background:#fff}.decimal-grid .columns{background:#d7eadd}.decimal-grid .rows{background:repeating-linear-gradient(0deg,#fff1ce 0 4px,#c7a86c 4px 5px)}.decimal-grid .intersection{background:repeating-linear-gradient(45deg,#287151 0 5px,#3c8b68 5px 8px);border-color:#e4eee7}.model-label{font-weight:700}.tenths-bar{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;margin:12px 0}.tenths-bar>span{height:40px;border:1px solid #6f957e;border-radius:4px;background:white}.tenths-bar>.painted{background:repeating-linear-gradient(45deg,#76b795 0 5px,#e6f4e9 5px 7px)}.integer-layout{max-width:330px;margin:20px auto;padding:15px;background:#fff;border:1px solid #b5caba;border-radius:16px;text-align:right;font-size:1.55rem;font-variant-numeric:tabular-nums;font-family:ui-monospace,monospace}.integer-layout figcaption{font-size:.85rem;font-family:system-ui;text-align:left}.integer-layout div{line-height:1.5}.status{overflow-wrap:anywhere}@media(max-width:480px){.lab-header img{width:44px;height:64px;flex-basis:44px}.eyebrow{font-size:.65rem}.decimal-model{margin:15px 0}.tenths-bar>span{height:32px}}
