/* Speed square, protractor and combination square trainers */
.sq-wrap{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:18px;margin:18px 0 28px;box-shadow:0 10px 26px #12334b12}
.sq-fig{background:var(--pale);border-radius:10px;overflow:hidden}
.sq-svg{display:block;width:100%;height:auto;font-family:Arial,Helvetica,sans-serif}
.sq-board{fill:#d9a86a;opacity:.55}
.sq-lip{fill:#7f8c96}
.sq-body{fill:#e7ecef;stroke:#5c6b76;stroke-width:2}
.sq-tk{stroke:#1d2b36;stroke-width:1.6}
.sq-com{stroke:#0b5f8a;stroke-width:2}
.sq-num{fill:#1d2b36;font-size:19px;font-weight:700}
.sq-small{font-size:15px}
.sq-comnum{fill:#0b5f8a;font-size:13px}
.sq-word{fill:#486074;font-size:13px;font-weight:700;letter-spacing:.12em}
.sq-comword{fill:#0b5f8a}
.sq-pivot{fill:#b42328}
.sq-edge{stroke:#d1192a;stroke-width:3}
.pr-body{fill:#eef7f9;stroke:#5c6b76;stroke-width:2;fill-opacity:.9}
.pr-base{stroke:#486074;stroke-width:1.5}
.pr-tk{stroke:#1d2b36;stroke-width:1.4}
.pr-in{stroke:#0b5f8a}
.pr-num{font-size:17px;font-weight:700;fill:#1d2b36}
.pr-innum{fill:#0b5f8a;font-size:15px}
.pr-hole{fill:#fff;stroke:#1d2b36;stroke-width:2}
.pr-arm{stroke:#d1192a;stroke-width:4;stroke-linecap:round}
.pr-arm-base{stroke:#082545}
.cb-blade{fill:#e9eef1;stroke:#5c6b76;stroke-width:2}
.cb-tk{stroke:#1d2b36;stroke-width:1.3}
.cb-num{fill:#1d2b36;font-size:30px;font-weight:700}
.cb-edge{fill:#486074;font-size:14px;font-weight:700}
.cb-mark{stroke:#d1192a;stroke-width:2.5}
.cb-arrow{fill:#d1192a}
.sq-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:14px}
.sq-controls label{font-weight:700}
.sq-controls input[type=range]{flex:1 1 260px;accent-color:var(--teal);min-height:44px}
.sq-controls output{font-weight:700;font-size:1.15rem;color:var(--teal);min-width:12ch}
.sq-check{display:flex;align-items:center;gap:8px;font-weight:400!important}
.sq-check input{width:22px;height:22px;accent-color:var(--teal)}
.sq-practice-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:12px}
.sq-practice-top select{min-height:44px;padding:6px 10px;border:1px solid #9fb6c3;border-radius:8px;background:#fff}
.sq-score{margin:0 0 0 auto;font-weight:700;color:var(--muted)}
.sq-q{font-weight:700;font-size:1.1rem;margin:14px 0 10px}
.sq-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.sq-choices button{min-height:52px;border:2px solid #9fb6c3;border-radius:10px;background:#fff;color:var(--ink);font-weight:700;font-size:1.1rem;cursor:pointer}
.sq-choices button:hover:not(:disabled){border-color:var(--teal);background:var(--pale)}
.sq-choices button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.sq-choices button.correct{border-color:var(--ok);background:var(--ok-bg);color:var(--ok)}
.sq-choices button.incorrect{border-color:var(--bad);background:var(--bad-bg);color:var(--bad)}
.sq-choices button:disabled{cursor:default}
.sq-feedback:empty{display:none}
.sq-feedback{margin-top:14px;padding:14px 16px;border-radius:10px;border-left:5px solid var(--ok);background:var(--ok-bg)}
.sq-feedback.no{border-left-color:var(--bad);background:var(--bad-bg)}
.sq-feedback ol{margin:8px 0 0;padding-left:22px}
.sq-next{margin-top:14px}
@media(max-width:600px){.sq-wrap{padding:10px}.sq-score{margin-left:0;width:100%}}
