:root{font-family:system-ui,sans-serif;color:#173e39;background:#f0f3e8}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1040px;margin:auto;padding:22px}header{display:flex;gap:24px;flex-wrap:wrap}a{color:#24526d}h1{font-size:clamp(2.2rem,6vw,4rem);line-height:1.05;max-width:800px}h2{font-size:1.4rem}.tag{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;font-weight:800}.notice{background:#fff4d9;border-left:4px solid #9c661f;padding:18px;border-radius:12px}section,details{background:white;border:1px solid #bccabc;border-radius:18px;padding:24px;margin:22px 0}summary{cursor:pointer;font-weight:700}label{display:block;margin:16px 0 6px;font-weight:650}input,select,textarea,button{font:inherit;padding:12px;border:1px solid #537566;border-radius:9px;max-width:100%;background:#fff;color:#173e39}select,textarea{width:100%}textarea{min-height:88px}button{cursor:pointer;background:#e6efdc;margin:6px 8px 6px 0}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid #ce6a23;outline-offset:3px}.model{max-width:360px;margin:auto}.model svg{display:block;width:100%;height:auto}.twins{display:flex;align-items:center;gap:18px}.twins img{width:68px;height:80px;object-fit:contain}.columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.status{font-weight:700;line-height:1.5}.controls{display:flex;flex-wrap:wrap}.field{margin:12px 0}.field select{max-width:400px}input[type=checkbox]{width:22px;height:22px;vertical-align:middle}fieldset{border:0;padding:0;min-width:0}li,p{line-height:1.55}#model-answer{padding:15px;background:#f8ecd4}#help-history{font-size:.9rem}footer{font-size:.85rem}[hidden]{display:none!important}@media(max-width:650px){.columns{grid-template-columns:1fr}section,details{padding:17px}main,header{padding:16px}.twins{align-items:flex-start}.twins img{width:45px}button{min-height:46px}}

.pattern-maker{border-top:4px solid #173e39;margin-top:3rem;padding-top:1rem;scroll-margin-top:1rem}.pm-pictures,.pm-row{display:flex;flex-wrap:wrap;gap:1rem}.pm-tile,.pm-row li{display:flex;flex-direction:column;align-items:center;gap:.3rem;max-width:140px;border:1px solid #8aab9b;border-radius:12px;padding:10px;background:#fffdf7}.pm-object{display:block;width:76px;height:76px}.pm-object svg{width:100%;height:100%}.pm-row{padding:0;list-style:none}.pm-row button{min-height:44px;min-width:80px;margin:0}.pm-tile span,.pm-row li>span{overflow-wrap:anywhere}#pm-palette button{min-height:44px}#pm-explain{width:100%;box-sizing:border-box}#pm-rule{font-weight:bold}#pm-model-area{border:2px dashed #805420;padding:1rem}@media(max-width:500px){.pm-row{gap:.6rem}.pm-row li{max-width:110px}}

.maths-tv-panel{padding:18px;background:#fff;border:2px solid #8baf99;border-radius:16px}.maths-tv-panel strong{font-size:32px;letter-spacing:.12em}.maths-tv-panel button{margin-right:12px}.maths-tv-mode main>:not(#maths-tv-panel):not(#maths-lesson){display:none!important}.maths-tv-mode main{max-width:none;padding:12px 20px}.maths-tv-mode #maths-lesson .columns{display:block}.maths-tv-mode #maths-lesson #responses{display:block;border:0;padding:0;margin:0}.maths-tv-mode #responses>*,.maths-tv-mode #maths-lesson .controls{display:none!important}.maths-tv-mode #prompt{font-size:clamp(24px,2.4vw,38px)}.maths-tv-mode #maths-lesson .model{max-width:1200px;margin:auto}.maths-tv-mode #maths-lesson .model svg{max-height:52vh}.maths-tv-mode #feedback{font-size:22px}.maths-tv-mode header{display:none}

.rv-boards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.rv-boards figure{margin:0;min-width:0}.rv-boards figcaption{font-weight:700;text-align:center}.rv-actions{display:flex;flex-wrap:wrap;gap:8px}#rv-program{font-size:1.1rem;line-height:1.6}#rv-current,#rv-goal,#rv-start{font-weight:650}#relative-workshop p,#relative-workshop li{overflow-wrap:anywhere}.maths-tv-mode.maths-tv-relative main>#maths-lesson{display:none!important}.maths-tv-mode.maths-tv-relative main>#relative-workshop:not(#maths-tv-panel):not(#maths-lesson){display:block!important}.maths-tv-mode.maths-tv-relative #relative-workshop>label,.maths-tv-mode.maths-tv-relative #relative-workshop>select,.maths-tv-mode.maths-tv-relative #relative-workshop>details,.maths-tv-mode.maths-tv-relative .rv-actions,.maths-tv-mode.maths-tv-relative #rv-download{display:none!important}.maths-tv-mode.maths-tv-relative #rv-prompt{font-size:clamp(22px,2vw,34px)}.maths-tv-mode.maths-tv-relative .rv-boards .model{max-width:560px}.maths-tv-mode.maths-tv-relative #rv-feedback{font-size:22px}@media(max-width:500px){.rv-boards{grid-template-columns:1fr}.rv-actions button{flex:1 1 100%;margin:0;min-height:48px}}
