.mastery-checkpoint{margin:24px 0}
.mastery-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.mastery-card{background:rgba(255,255,255,.9);border:1px solid #e9d9ff;border-radius:18px;padding:24px;display:flex;flex-direction:column;align-items:flex-start}
.mastery-card h3{font-size:20px;margin:0 0 10px}
.mastery-card p{margin:0 0 14px;line-height:1.5}
.mastery-card .controls{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}
.mastery-card [data-mastery-open]:disabled{cursor:not-allowed}
.mastery-score{font-weight:700;color:#6723a8}
.mastery-test-screen{width:min(860px,100%);margin:0 auto;padding:24px;min-height:100dvh;box-sizing:border-box;overflow-wrap:anywhere}
.mastery-test-screen>header{margin:28px 0 20px}
.mastery-test-screen h1{font-size:clamp(26px,4vw,38px);line-height:1.15;margin:8px 0}
.mastery-test-panel{background:#fff;border:1px solid #e9d9ff;border-radius:18px;padding:28px}
.mastery-test-panel h2{font-size:24px;line-height:1.3;margin:0 0 18px}
.mastery-test-panel p{line-height:1.6}
.mastery-test-panel fieldset{border:0;padding:0;margin:0;min-width:0}
.mastery-test-panel legend{font-size:20px;font-weight:650;line-height:1.45;margin-bottom:20px;max-width:100%}
.mastery-test-panel label.check{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid #dfccf7;border-radius:12px;margin:12px 0;line-height:1.5;cursor:pointer}
.mastery-test-panel label.check:has(input:checked){background:#f5ebff;border-color:#9831ed}
.mastery-test-panel .check input{flex:none;width:18px;height:18px;margin-top:3px}
.mastery-test-panel .controls{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.mastery-test-screen button{white-space:normal}
.mastery-test-screen [role=status]:empty{display:none}
.mastery-test-screen [role=status]{padding:14px 0;line-height:1.5}
.mastery-test-screen .mastery-result-score{font-size:48px;font-weight:750;margin:8px 0;color:#6723a8;line-height:1.2}
.mastery-answer-review,.mastery-result-review{padding-left:24px}
.mastery-answer-review li{padding:12px 0;line-height:1.5}
.mastery-answer-review span{display:block;margin-top:10px}
.mastery-result-review li{border-top:1px solid #eadcf7;padding:20px 0;line-height:1.5}
.mastery-result-review h4{font-size:17px;margin:0 0 10px}
@media(max-width:640px){.mastery-cards{grid-template-columns:1fr}.mastery-card{padding:20px}.mastery-test-screen{padding:16px}.mastery-test-panel{padding:20px}.mastery-test-panel .controls button{flex:1 1 140px}}
