.tests-page .test-filter{display:flex;flex-wrap:wrap;gap:4px;max-width:760px;overflow:visible}
.tests-page .test-filter button{flex:1 0 76px;min-height:42px}
.tests-page .marking-card{display:block;min-width:280px;max-width:360px;padding:18px 20px}
.tests-page .marking-card>span{display:block;padding:0 0 12px}
.tests-page .marking-card>small{display:block;color:#5e6b64;font-size:.78rem;line-height:1.45;margin-top:12px}
.tests-page .marking-card>.scoring-choices{display:grid;gap:8px;padding:0;border:0}
.scoring-choices label{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #d9ded6;border-radius:5px;background:#fff;color:#173a2f;font-size:.88rem;font-weight:700;cursor:pointer}
.scoring-choices label:has(input:checked){border-color:#1d493a;background:#edf3ef}
.scoring-choices input{accent-color:#1d493a}
.chapter-source{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 25px;border-bottom:1px solid var(--test-line);color:#56655d;font-size:.78rem}
.chapter-source a{color:#1d493a;text-decoration:underline;text-underline-offset:3px}
.chapter-preparing{padding:14px 16px;background:#faf9f6;color:#65736a;font-size:.84rem;line-height:1.5;border:1px solid #e4e1d9;border-radius:5px}
.chapter-ready{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px;background:#f3f6f2;border:1px solid #dce5da;border-radius:5px}
.chapter-ready>div{display:grid;gap:3px}
.chapter-ready strong{color:#173a2f;font-size:.9rem}
.chapter-ready small{color:#687b6d;font-size:.78rem}
.chapter-ready button{border:0;background:#163a2e;color:#fff;padding:11px 14px;border-radius:4px;font-weight:700;white-space:nowrap}
.chapter-ready button:hover{background:#27634f}
.tests-page .question-meta small{max-width:65%;text-align:right;line-height:1.5}
.tests-page .test-card-main p{line-height:1.5}
.chapter-body{display:grid;gap:10px}
.official-exam-resources{margin-top:28px;padding-top:24px;border-top:1px solid #d9ded6}
.official-exam-resources h2{font-size:1.6rem;margin:0 0 8px}
.official-exam-resources>p{font-size:1rem;line-height:1.6;color:#53655d;max-width:800px}
.paper-resource{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #d9ded6}
.paper-resource>div{display:flex;flex-wrap:wrap;gap:12px}
.paper-resource>div:first-child{flex-direction:column;gap:4px}
.paper-resource span{font-size:.875rem;color:#53655d}
.paper-resource a,.paper-links a{color:#174332;text-decoration:underline;text-underline-offset:4px;font-size:.9rem}
.paper-links{display:flex;flex-wrap:wrap;gap:20px;margin-top:18px}
@media(max-width:600px){.paper-resource{align-items:flex-start;flex-direction:column}.subject-filter{flex-wrap:wrap}.tests-page .test-toolbar{align-items:stretch}.tests-page .question-meta{gap:12px}}
@media(max-width:760px){.tests-page .test-filter{max-width:none}.tests-page .test-filter button{flex:1 0 72px}.chapter-source{padding:12px 18px}}
@media(max-width:430px){.tests-page .marking-card{min-width:0;max-width:none}.chapter-ready{display:grid}.chapter-ready button{justify-self:start}.tests-page .question-meta small{max-width:58%}}
