*{box-sizing:border-box}body{margin:0;background:#f4f5ef;color:#173e40;font:17px/1.5 system-ui,sans-serif}.site-header{display:flex;justify-content:space-between;gap:20px;padding:20px 5%;background:white}.site-header a{color:#173e40;font-weight:800;text-decoration:none}main{max-width:1440px;margin:auto;padding:28px}.intro{max-width:900px}.eyebrow{letter-spacing:.15em;font-size:12px;font-weight:800}h1{font-size:clamp(32px,4vw,52px);line-height:1.1;margin:12px 0}h2{font-size:25px}.review-label{font-size:14px;background:#fff0bd;display:inline-block;padding:6px 12px;border-radius:8px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:28px}.settings{align-self:start;background:white;border:1px solid #c6d3c9;border-radius:18px;padding:22px}.settings label{display:block;font-weight:700;margin:18px 0 5px}select,button{font:inherit;min-height:46px;border:2px solid #aabfb2;border-radius:9px;background:white;color:#173e40;padding:9px 13px;cursor:pointer}select{width:100%}.check{display:flex!important;gap:10px;align-items:start;font-size:15px}input{width:20px;height:20px;flex:none}.actions{display:grid;gap:10px;margin-top:22px}button:hover{background:#fff1bd}button:focus-visible,select:focus-visible,input:focus-visible{outline:4px solid #b15d1d;outline-offset:3px}button[aria-pressed=true]{background:#173e40;color:white}details{font-size:14px;margin-top:18px}summary{font-weight:700;cursor:pointer}.preview{min-width:0}.preview-tools{padding:18px;background:#e7ede6;border-radius:16px;margin-bottom:24px}.preview-tools>div{display:flex;gap:8px;flex-wrap:wrap}.preview-tools>p{font-size:14px}.sheet{background:white;max-width:820px;min-height:1010px;margin:0 auto 24px;padding:40px 42px;border:1px solid #c6d3c9;box-shadow:0 5px 20px #173e4010}.sheet[hidden]{display:none}.sheet-header{display:grid;grid-template-columns:100px 1fr 100px;align-items:center;gap:12px;text-align:center;border-bottom:4px solid var(--accent);padding-bottom:16px}.sheet-header img{width:100%;height:105px;object-fit:contain}.sheet-header img[data-character=merlin]{height:90px}.sheet h2{font-size:29px;line-height:1.2;margin:6px 0}.sheet .brand{font-size:12px;letter-spacing:.1em;font-weight:800}.sheet .story{font-size:16px}.sheet .instructions{font-size:19px;line-height:1.5;margin:22px 0}.question{border-bottom:1px solid #aabfb2;display:grid;grid-template-columns:40px 1fr;gap:20px;align-items:center;padding:20px 0;min-height:94px}.question-number{background:#edf3ef;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:800}.equation{display:flex;gap:13px;align-items:center;font-size:30px;line-height:1.4;flex-wrap:wrap}.answer-box{display:inline-block;width:56px;height:46px;border:2px solid #173e40;border-radius:5px;background:white}.ten-frame{display:grid;grid-template-columns:repeat(5,25px);width:max-content;border-top:1px solid #173e40;border-left:1px solid #173e40;margin:12px 0 0}.ten-frame span{height:25px;border-right:1px solid #173e40;border-bottom:1px solid #173e40;display:grid;place-items:center}.ten-frame b{background:#173e40;border-radius:50%;width:15px;height:15px}.sheet-footer{border-top:1px solid #c6d3c9;margin-top:28px;padding-top:10px;font-size:11px}.adult-model{padding:18px;border:2px solid #173e40;margin:18px 0;background:#f7faf5}.adult-model strong{display:block;font-size:26px}.answer-row{padding:12px 0;border-bottom:1px solid #aabfb2;font-size:22px}.sheet h3{margin:22px 0 6px}.site-footer{text-align:center;padding:25px;font-size:13px}#status{font-size:14px;min-height:25px}.sheet ul{padding-left:24px}[data-theme=plain] .sheet-header{border-color:#173e40}@media(max-width:850px){main{padding:16px}.workspace{grid-template-columns:1fr}.settings{max-width:none}.sheet{padding:24px 20px;min-height:0}.sheet-header{grid-template-columns:60px 1fr 60px;gap:8px}.sheet-header img{height:75px}.sheet-header img[data-character=merlin]{height:65px}.sheet h2{font-size:23px}.equation{font-size:25px;gap:8px}.question{gap:10px;grid-template-columns:30px 1fr}.question-number{width:28px;height:28px}.answer-box{width:45px;height:40px}.sheet .instructions{font-size:17px}.preview-tools>button{margin-top:8px}}@page{size:A4;margin:12mm}@media print{body{background:white;font:12pt/1.45 Arial,sans-serif;print-color-adjust:exact;-webkit-print-color-adjust:exact}.site-header,.intro,.settings,.preview-tools,.site-footer{display:none!important}main,.workspace,.preview,#pages{display:block;margin:0;padding:0;max-width:none}.sheet{display:block!important;border:0;box-shadow:none;margin:0;padding:0;max-width:none;min-height:0;break-after:page}.sheet:last-child{break-after:auto}.sheet-header{grid-template-columns:22mm 1fr 22mm}.sheet-header img{height:23mm}.sheet-header img[data-character=merlin]{height:20mm}.sheet h2{font-size:22pt}.sheet .instructions{font-size:13pt;margin:5mm 0}.question{padding:4mm 0;min-height:19mm;break-inside:avoid}.equation{font-size:22pt}.answer-box{height:10mm;width:13mm}.sheet-footer{margin-top:5mm;font-size:8pt}body[data-print=learner] .sheet:not([data-page=learner]){display:none!important}body[data-print=learner] .sheet[data-page=learner]{break-after:auto}}

.sheet-header .learning-pet{display:block;width:100%;max-width:100px;margin:auto}.sheet-header .learning-pet svg{display:block;width:100%;height:105px}.sheet .story{overflow-wrap:anywhere}.settings .small{font-size:14px}.settings a{color:inherit}.settings select:disabled{background:#eef1ed;color:#506460}@media(max-width:850px){.sheet-header .learning-pet svg{height:75px}}@media print{.sheet-header .learning-pet svg{height:23mm}}

.frame-pair{display:flex;gap:12px;flex-wrap:wrap}.frame-pair .ten-frame{flex:none}.sheet a{color:inherit}.check span{min-width:0}

@media print{.sheet[data-page=adult]{font-size:10.5pt;line-height:1.4}.sheet[data-page=adult] h3{font-size:12pt;margin:3mm 0 1mm}.sheet[data-page=adult] p{margin:2mm 0}.sheet[data-page=adult] .adult-model{padding:3mm;margin:3mm 0}.sheet[data-page=adult] .adult-model strong{font-size:18pt}}
