.practice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;margin:24px 0}.practice-card{max-width:760px;margin:24px auto;padding:32px;text-align:center;border-radius:28px}.practice-card h2{font-size:2rem;line-height:1.4}.practice-card .row{justify-content:center;margin:18px 0}.practice-card input{font-size:1.3rem;text-align:center}.practice-feedback{background:#e6f3ee;border-radius:16px;padding:16px}.accent-keys{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.accent-keys button{min-width:42px;padding:8px}.mission-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:18px 0}.mission-options label{display:flex;align-items:center;gap:10px;padding:7px}.mission-options input[type=checkbox]{width:20px;height:20px}.mission-options fieldset{border:1px solid #cbded7;border-radius:18px;padding:14px}.french-studio progress{width:100%;height:14px;accent-color:#288c70}.memory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.memory-card{min-height:88px;border:2px solid #a3cbbc;background:#eff8f3;border-radius:18px;font-size:1.15rem;cursor:pointer;padding:12px}.memory-card.matched{opacity:.4;background:#d9efc7}.worksheet-layout{display:grid;grid-template-columns:minmax(250px,340px) 1fr;gap:24px;margin-top:24px}.worksheet-paper{background:white;color:#203c33;max-width:800px;margin:24px auto;padding:42px;box-shadow:0 6px 30px #254e3314}.worksheet-paper header{display:flex;align-items:center;gap:24px;border-bottom:3px solid #3b987b}.worksheet-paper header img{width:76px;max-height:90px;object-fit:contain}.worksheet-block{margin:24px 0;break-inside:avoid}.worksheet-block li{padding:10px 0;break-inside:avoid}.worksheet-block h2{font-size:20px}.answer-space{border-bottom:1px solid #bacbc5;min-width:120px}.print-memory{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.print-memory div{border:1px dashed #648176;padding:20px;text-align:center;min-height:70px}.wordsearch>div{display:flex}.wordsearch span{display:inline-flex;align-items:center;justify-content:center;width:21px;height:24px;font:16px monospace}.wordsearch .solution{background:#c7edcf}.match-print>div{display:grid;grid-template-columns:1fr 30px 30px 1fr;gap:16px;padding:12px}.worksheet-paper footer{margin-top:25px;font-size:12px;color:#52675f}@media(max-width:800px){.worksheet-layout{grid-template-columns:1fr}.practice-card{padding:20px}.memory-grid{grid-template-columns:repeat(2,1fr)}}@media print{@page{size:A4;margin:14mm}body:has(.worksheet-paper) .sidebar,body:has(.worksheet-paper) .topbar,body:has(.worksheet-paper) .school-footer,body:has(.worksheet-paper) .worksheet-tools,body:has(.worksheet-paper) #toasts,body:has(.worksheet-paper) .skip{display:none!important}body:has(.worksheet-paper) .app-layout,body:has(.worksheet-paper) .workspace,body:has(.worksheet-paper) .content{display:block!important;margin:0!important;padding:0!important;width:auto!important;background:white!important}.worksheet-paper{box-shadow:none;padding:0;margin:0;max-width:none}.worksheet-block{break-inside:auto}.print-memory>div,.worksheet-block li{break-inside:avoid}.worksheet-paper h2{break-after:avoid}}

.answer-space{height:28px}.answer-space.large{height:80px}

.worksheet-block svg{width:105px;height:105px;display:inline-block;vertical-align:middle}.mission-options fieldset{max-height:370px;overflow:auto}.french-studio>.panel{margin-top:16px}.worksheet-studio select[multiple]{min-height:130px}
@media print{html:has(.worksheet-paper),body:has(.worksheet-paper){background:#fff!important}.worksheet-paper footer{background:transparent!important}}

/* Override the pupil portal's white button text, including found pairs. */
.child-portal .memory-grid .memory-card,.memory-grid .memory-card{color:#183c32;background:#f0f8f4;border:2px solid #477964;font-weight:700;opacity:1}
.child-portal .memory-grid .memory-card:hover:not(:disabled),.memory-grid .memory-card:hover:not(:disabled){color:#102c24;background:#dceee4}
.child-portal .memory-grid .memory-card.matched,.memory-grid .memory-card.matched{color:#234638;background:#cce8d4;border-color:#316444;opacity:1;box-shadow:none;cursor:default}
.memory-grid .memory-card:focus-visible{outline:3px solid #125a98;outline-offset:3px}
/* Level counts, pupil reports and printable mathematical notation. */
[data-options][hidden]{display:none!important}.fr-counts{width:100%;border-collapse:collapse}.fr-counts input{min-width:4rem;max-width:6rem}.fr-pupil-report summary{cursor:pointer;padding:1rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center}.fr-pupil-report details{margin:.7rem 0}.fr-pupil-report table{width:100%;border-collapse:collapse}.fr-pupil-report th,.fr-pupil-report td{padding:.5rem;text-align:left;border-bottom:1px solid #d5e1df}.stacked-fraction{display:inline-flex;vertical-align:middle;flex-direction:column;text-align:center;margin:0 .4em;min-width:1.3em}.stacked-fraction>span:first-child{border-bottom:1.5px solid currentColor}.fraction-exercise{display:flex;align-items:center;gap:1.5rem}.worksheet-paper .fraction-disc{width:110px;height:110px;flex:none}.calculation-grid{border-collapse:collapse;margin:1rem 0}.calculation-grid td,.calculation-grid th{width:29px;height:29px;text-align:center;border:1px solid #78817f}.calculation-grid .carry td{background:#edf0ef}.calculation-grid .result td{border-top:2px solid #182d28}.long-division{display:flex;margin:1rem 0;width:max-content;max-width:100%;font-size:20px}.division-work{padding-right:8px;border-right:2px solid #182d28}.division-work strong{display:block;letter-spacing:8px;padding-left:8px}.division-result{min-width:100px}.division-result>strong{display:block;border-bottom:2px solid #182d28;padding:0 12px 6px}.division-result>div{padding:8px 12px}.division-grid{display:flex}.division-grid span{width:27px;height:27px;border:1px solid #a6afab}.worksheet-paper table.match-print{display:table;width:100%;border-collapse:collapse;margin:1rem 0 2rem;table-layout:auto}.worksheet-paper .match-print td{padding:12px 5px;vertical-align:middle}.worksheet-paper .match-print td:nth-child(1),.worksheet-paper .match-print td:nth-child(5){width:1%;white-space:nowrap}.worksheet-paper .match-print td:nth-child(2),.worksheet-paper .match-print td:nth-child(4){width:20px;text-align:center}.worksheet-paper .match-gap{width:40%;min-width:100px}.worksheet-question{padding-bottom:1rem}.worksheet-block h2{break-after:avoid}.worksheet-question,.match-print,.long-division,.calculation-grid,.wordsearch,.fraction-exercise{break-inside:avoid;page-break-inside:avoid}
@media print{.worksheet-question{break-inside:avoid!important;page-break-inside:avoid!important}.worksheet-block{break-inside:auto}.worksheet-paper .match-print td:first-child,.worksheet-paper .match-print td:last-child{white-space:normal;overflow-wrap:anywhere}.worksheet-paper .match-gap{min-width:100px}}

.fr-metrics{display:flex;flex-wrap:wrap;gap:1.2rem}.fr-counts [hidden]{display:none!important}
.worksheet-paper table.calculation-grid{width:auto!important;table-layout:fixed}.worksheet-paper table.calculation-grid td,.worksheet-paper table.calculation-grid th{padding:0!important;width:29px;min-width:29px;height:29px;border:1px solid #78817f!important}.worksheet-paper table.calculation-grid .result td{border-top:2px solid #182d28!important}.worksheet-paper table.match-print td:first-child,.worksheet-paper table.match-print td:last-child{width:auto;max-width:210px;white-space:normal;overflow-wrap:break-word}.worksheet-paper table.match-print .match-gap{width:35%;min-width:100px}.worksheet-paper table.match-print{break-inside:avoid!important}
.insight-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:22px 0}.insight-stat{display:flex;flex-direction:column;gap:8px;padding:24px;border-radius:24px;border:1px solid #cbded8;color:#183c32}.insight-stat strong{font-size:1.8rem}.insight-stat.mint{background:#e2f3e8}.insight-stat.blue{background:#e6effa}.insight-stat.gold{background:#fff0cd}.insight-pupil{background:white;border:1px solid #cedfdb;border-radius:24px;padding:18px;margin:16px 0;box-shadow:0 4px 0 #e4ede8}.insight-pupil>summary{display:flex;align-items:center;gap:18px;cursor:pointer;flex-wrap:wrap}.insight-avatar{display:grid;place-items:center;background:#e2f3e8;border-radius:50%;width:48px;height:48px;font-weight:bold}.insight-avatar img{width:48px;height:48px;border-radius:50%;object-fit:cover}.insight-task{border-top:1px solid #d8e6e0;padding:16px 0}.insight-task summary{cursor:pointer;padding:10px;display:flex;gap:12px;flex-wrap:wrap}.insight-task table{width:100%;border-collapse:collapse}.insight-task td,.insight-task th{padding:12px;text-align:left;border-bottom:1px solid #d8e6e0}.exercise-check-feedback{font-weight:600;padding:10px}.exercise-check-feedback.good{color:#165b37}.exercise-check-feedback.retry{color:#945000}
