*{box-sizing:border-box}body{margin:0;background:#f8f5f7;color:#253147;font:17px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}.page-shell{max-width:900px;margin:1.5rem auto;padding:0 1rem}.toolbar{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.toolbar button{min-height:44px;border:1px solid #d8c4d0;background:#fff;color:#86355d;border-radius:9px;padding:.55rem .9rem;font:inherit;font-weight:700;cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #1f65b5;outline-offset:2px}.status{min-height:1.5em;font-weight:700}main{background:#fff;border:1px solid #e7dbe2;border-radius:20px;padding:clamp(1rem,4vw,2rem)}.sheet-header{text-align:center;background:#fceaf3;border-radius:12px;padding:.7rem}.sheet-header p{margin:0;color:#a52e61;font-size:1.1rem;font-weight:800}.sheet-header h1{margin:.35rem 0;color:#a52e61;font-size:clamp(1.25rem,3vw,1.8rem);line-height:1.25}.identity{margin:.75rem 0}.objective{color:#4c6076;font-size:.9rem}.ws-section{margin:.8rem 0}.ws-section h2{margin:0 0 .4rem;padding:.45rem .7rem;border-radius:8px;font-size:1.1rem;line-height:1.3}.ws-mental h2{background:#eef5ff;color:#1c50a0}.ws-missing h2{background:#edf8f0;color:#286944}.ws-operator h2{background:#fff4e9;color:#a74c1d}.ws-word h2{background:#f4efff;color:#644099}.questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem 1rem;margin:.5rem 0;padding-left:1.7rem}.questions li{padding:.2rem;white-space:nowrap}.answer{width:4.5rem;min-height:44px;text-align:center;font:inherit;border:1px solid #8c98a5;border-radius:6px}.answer[aria-invalid="true"]{border:2px solid #aa2d38}.answer[data-correct="true"]{border:2px solid #23804d}.hint{margin:.25rem 0;font-size:.9rem}.result-message{font-size:.85rem}.ws-word p{margin:.35rem 0}.writing-line{display:inline-block;width:65%;border-bottom:1px solid #9aa3ad}.counting-visual{display:block;width:240px;max-width:100%;height:34px;fill:#cc6e83;stroke:#8a3f55}.answers{margin-top:1.5rem;padding:1rem;background:#f6f8fc;border-radius:10px}.answers ol{padding-left:1.3rem}.answers li{margin:.4rem 0}footer{text-align:center;color:#66717c;margin-top:1rem;font-size:.9rem}@media(max-width:430px){.questions{gap:.4rem;padding-left:1.35rem;font-size:.93rem}.answer{width:3.3rem}.identity{font-size:.92rem}}@page{size:A4;margin:10mm}@media print{body{background:#fff;color:#000;font-size:12pt;line-height:1.28}.page-shell{max-width:none;margin:0;padding:0}.toolbar,.screen-only,.status,.answers{display:none!important}main{border:0;border-radius:0;padding:0}.sheet-header{padding:4mm;border:1px solid #aaa}.sheet-header p{font-size:14pt}.sheet-header h1{font-size:14pt}.identity{margin:3mm 0}.ws-section{margin:3mm 0;break-inside:avoid}.ws-section h2{font-size:11pt;padding:2mm;border:1px solid #bbb;color:#000!important;background:#fff!important}.questions{gap:2mm 4mm;margin:2mm 0}.answer{border:0;border-bottom:1px solid #222;border-radius:0;min-height:6mm;height:6mm;width:20mm;color:#000}.counting-visual{fill:#fff;stroke:#222;height:8mm}.ws-word p{margin:2mm 0}.result-message{display:none}footer{font-size:9pt;margin-top:3mm}body.answer-print main>*{display:none!important}body.answer-print main>.sheet-header,body.answer-print main>.answers,body.answer-print main>footer{display:block!important}body.answer-print .answers{background:#fff;padding:0;margin-top:8mm}body.answer-print .answers summary{font-weight:bold}}
@media screen and (max-width:560px){.questions{grid-template-columns:1fr}.questions li{white-space:normal}.answer{min-height:44px}}
@media print{.sheet-header{background:#fff!important}.sheet-header p,.sheet-header h1{color:#000!important}}
