*{box-sizing:border-box}body{margin:0;background:#f5f9fb;color:#183d56;font-family:Tahoma,Arial,sans-serif;font-size:15px;line-height:1.7}button,input,select,textarea{font:inherit}button,.import{cursor:pointer;border:1px solid #bed2df;background:white;color:#183d56;border-radius:11px;padding:9px 14px;font-weight:700}button:hover,.import:hover{background:#e8f4fa}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.import:focus-within{outline:3px solid #e7aa20;outline-offset:3px}.primary{background:#176b91;color:white;border-color:#176b91}.primary:hover{background:#104f70}h1,h2,h3,p{margin:0 0 12px}h1{font-size:clamp(28px,3.5vw,44px);line-height:1.4}h2{font-size:23px;line-height:1.5}h3{font-size:17px}.hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;padding:44px clamp(20px,5vw,64px);background:linear-gradient(120deg,#d5edf7,#edf8fc 62%,#fff6d8);border-bottom:1px solid #c5e0ec}.hero-copy{max-width:690px;z-index:1}.eyebrow{font-size:12px;letter-spacing:.4px;font-weight:700;color:#217393;display:block;margin-bottom:10px}.pills{display:flex;gap:9px;flex-wrap:wrap}.pills span{padding:5px 12px;background:#ffffffbb;border-radius:30px;font-size:12px}.hero-art{width:265px;height:200px;position:relative;flex-shrink:0}.mini-paper{background:white;width:190px;transform:rotate(-8deg);padding:16px;border:1px solid #cce0e9;box-shadow:0 15px 35px #183d5614;border-radius:10px}.mini-paper b{font-size:11px}.hero-art img{position:absolute;width:116px;bottom:-5px;left:0;filter:drop-shadow(0 8px 9px #183d5622)}main{max-width:1480px;margin:auto;padding:30px clamp(16px,3vw,40px)}.section-head,.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px}.search-label{max-width:280px;min-width:200px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 20px}.filters button[aria-pressed=true]{background:#183d56;color:white;border-color:#183d56}.catalog{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.card{display:flex;align-items:flex-start;text-align:right;flex-direction:column;gap:3px;padding:17px;background:white;border:1px solid #d8e4eb;min-height:150px}.card[aria-pressed=true]{border:2px solid #1683aa;box-shadow:0 0 0 3px #dbf0f8;padding:16px}.card svg{height:42px;width:60px;margin-bottom:8px}.card strong{font-size:15px}.card small{font-size:11px;font-weight:400;color:#5f7381}.workbench{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;margin-top:35px;align-items:start}.editor{padding:24px;background:white;border:1px solid #d8e4eb;border-radius:20px}.editor label,.search-label{display:block;font-size:12px;font-weight:bold;margin-bottom:12px}input,select,textarea{width:100%;border:1px solid #bfced8;border-radius:9px;padding:9px 10px;color:#183d56;background:white;margin-top:5px;font-weight:400;font-size:14px;min-width:0}textarea{resize:vertical;line-height:1.7}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hint{font-size:12px;color:#536e7e;line-height:1.8}.check{display:flex!important;align-items:center;gap:9px}.check input{width:18px;margin:0}.editor-actions{display:grid;gap:8px;grid-template-columns:1fr 1fr;margin:18px 0}.editor-actions .primary{grid-column:1/-1}.import{text-align:center;position:relative;margin:0!important;font-size:13px!important;overflow:hidden}.import input{position:absolute;inset:0;opacity:0;cursor:pointer}.preview-panel{min-width:0}.preview-toolbar{margin-bottom:8px}.preview-toolbar h2{font-size:20px}.preview-toolbar button{white-space:nowrap}#preview{padding:24px;background:#e4edf2;border-radius:16px;display:grid;gap:25px}.sheet{--ink:#176b91;--tint:#edf8fc;background:white;color:#183d56;max-width:794px;width:100%;margin:auto;aspect-ratio:210/297;padding:6.5%;border-top:7px solid var(--ink);box-shadow:0 8px 20px #183d5610;position:relative;display:flex;flex-direction:column;font-size:clamp(11px,1.05vw,16px);overflow-wrap:anywhere}.sheet.garden{--ink:#35775b;--tint:#eff7ed}.sheet.mono{--ink:#333;--tint:#fff;color:#222}.sheet-head{display:flex;align-items:center;gap:12px;border-bottom:1px solid #cedae0;padding-bottom:15px;margin-bottom:18px}.sheet-head svg{width:40px;height:40px;flex-shrink:0}.sheet-head h2{font-size:1.6em;color:var(--ink);margin-bottom:2px}.sheet-head p{font-size:.75em;margin:0}.sheet-mark{margin-inline-start:auto;font-size:.8em;color:var(--ink);white-space:nowrap}.student-line{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:18px;font-size:.8em}.sheet-instruction{background:var(--tint);border-inline-start:3px solid var(--ink);padding:9px 12px;font-size:.85em;margin-bottom:22px}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;direction:ltr}.exercise{border:1px solid #ccd9e0;min-height:78px;padding:12px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.3em;position:relative;break-inside:avoid}.exercise .index{position:absolute;top:4px;left:7px;font-size:.5em;color:#71818b}.blank{display:inline-block;min-width:2em;border-bottom:1px solid #758b98;height:1.5em}.answer{color:var(--ink);font-weight:bold}.sheet-foot{margin-top:auto;padding-top:25px;border-top:1px solid #e0e7eb;display:flex;justify-content:space-between;font-size:.65em;color:#657682}.word-grid{display:grid;gap:0;width:86%;margin:0 auto 22px;direction:ltr;border:1px solid #adbfca}.word-cell{border:1px solid #e1e7eb;aspect-ratio:1;display:flex;justify-content:center;align-items:center;font-size:1.05em;line-height:1;direction:rtl}.word-cell.found{background:#d6ebdc;color:#224832;font-weight:bold}.word-bank{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;border:1px solid #cad9e2;padding:12px;font-size:.9em}.rows{display:grid;gap:16px}.activity-row{border-bottom:1px solid #d8e1e7;padding-bottom:14px;break-inside:avoid}.match-row{display:grid;grid-template-columns:1fr 70px 1fr;gap:10px;align-items:center}.match-item{border:1px solid #cbdbe4;padding:8px;border-radius:7px;min-height:40px}.trace-row svg{width:100%;height:70px;border-bottom:1px dashed #b6c5cf}.trace-row .write-line{height:50px;border-bottom:1px solid #b6c5cf}.passage{background:var(--tint);padding:15px;line-height:2;white-space:pre-wrap;margin-bottom:20px}.writing-lines{height:80px;background:repeating-linear-gradient(white 0,white 25px,#ccd9e0 26px,white 27px)}.fraction-shape{display:flex;width:85px;height:24px;margin:0 auto 12px;direction:ltr}.fraction-shape span{border:1px solid #4d7185;flex:1}.fraction-shape .shade{background:#c1dce9}.clock{width:100px;height:100px}.sort-boxes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:25px}.sort-boxes div{border:1px solid #a9bfcb;min-height:180px;border-radius:10px;padding:12px;text-align:center}.graph{height:500px;background-image:linear-gradient(#dce4e9 1px,transparent 1px),linear-gradient(90deg,#dce4e9 1px,transparent 1px);background-size:20px 20px;border:1px solid #9eb4c1}.ideas{margin-top:45px}.idea-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.idea-grid article{background:#edf5f8;border-radius:15px;padding:22px}.idea-grid p{font-size:13px;margin:0}footer{display:flex;justify-content:space-between;gap:15px;padding:20px 40px;font-size:12px;border-top:1px solid #dce7ed}#status{font-size:13px;color:#186541;min-height:20px}[hidden]{display:none!important}@media(min-width:1600px){.sheet{font-size:16px}}@media(max-width:1100px){.catalog{grid-template-columns:repeat(4,1fr)}.workbench{grid-template-columns:300px minmax(0,1fr)}.sheet{font-size:12px;padding:5%}.activity-grid{gap:9px}.exercise{padding:8px;min-height:60px}.hero-art{width:220px}.preview-toolbar{flex-wrap:wrap}}@media(max-width:750px){.hero{padding:28px 20px}.hero-art{display:none}.catalog{grid-template-columns:repeat(3,1fr)}.card{min-height:140px;padding:12px}.card[aria-pressed=true]{padding:11px}.workbench{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.search-label{width:100%;max-width:none}.preview-toolbar{align-items:flex-start}.sheet{font-size:12px;padding:5%;min-height:550px}#preview{padding:10px}.activity-grid{gap:7px}.exercise{min-height:60px;font-size:1.15em;padding:8px 5px}.sheet-head h2{font-size:1.3em}.sheet-head svg{width:28px}.sheet-mark{font-size:.6em}.sort-boxes{gap:6px}.sort-boxes div{min-height:130px}.clock{width:75px;height:75px}.idea-grid{grid-template-columns:1fr 1fr}footer{padding:20px;flex-direction:column}.match-row{grid-template-columns:1fr 25px 1fr}.trace-row svg{height:60px}.word-grid{width:100%}}@media print{@page{size:A4;margin:12mm}body{background:white!important;margin:0;color:#222}body>*:not(main),main>*:not(.workbench),.editor,.preview-toolbar,.preview-panel>.hint{display:none!important}main,.workbench,.preview-panel,#preview{display:block!important;margin:0!important;padding:0!important;background:white!important;border:0!important;max-width:none!important}.sheet{width:100%!important;max-width:none!important;min-height:270mm!important;aspect-ratio:auto!important;box-shadow:none!important;font-size:15px!important;padding:6mm!important;margin:0!important;break-after:page;overflow:visible;border-top:2mm solid var(--ink);print-color-adjust:exact;-webkit-print-color-adjust:exact}.sheet:last-child{break-after:auto}.sheet-head{break-after:avoid}.exercise{min-height:27mm}.activity-grid{gap:5mm}.sheet-foot{margin-top:auto}.word-grid{width:155mm}.trace-row svg{height:19mm}.sort-boxes div{min-height:65mm}.graph{height:195mm}.clock{width:27mm;height:27mm}}
/* Keep the A4 ratio from imposing a minimum grid width on narrow screens. */
#preview{grid-template-columns:minmax(0,1fr)}.sheet{min-width:0;max-width:min(794px,100%)}
@media(max-width:750px){.sheet{aspect-ratio:auto}.sheet-head>div{min-width:0}.sheet-head{flex-wrap:wrap}.sheet-mark{margin-inline-start:auto}.trace-row .write-line{height:34px}}
@media screen and (max-width:750px){.sheet{aspect-ratio:auto;min-width:0;max-width:100%}.sheet-head>div{min-width:0}.sheet-head{flex-wrap:wrap}.trace-row .write-line{height:34px}}
