.test-setup { max-width: 640px; margin: 0 auto; }
.test-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.test-filters__search { flex: 1 1 260px; }
.test-filters .field { min-width: 150px; }
.test-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 24px; }
.test-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #edf2f7; border-radius: 8px; }
.test-section { margin-top: 36px; }
.test-section > h2 { border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.test-question { margin: 24px 0; padding: 16px; border: 1px solid var(--border); border-radius: 8px; min-width: 0; scroll-margin-top: 24px; }
.test-question legend { font-weight: 600; padding: 0 8px; max-width: 100%; }
.test-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.test-choice { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; min-height: 48px; }
.test-choice input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); margin: 0; }
.test-choice:has(input:checked) { border-color: var(--accent); background: #fff2ed; }
.test-choice:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.test-choice strong { display: inline-block; margin-right: 4px; }
.test-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.test-meta dt { color: var(--muted); font-size: .9rem; }
.test-meta dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.test-answer-review { padding-left: 24px; }
.test-answer-review li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.test-answer-review p { margin: 0 0 6px; }
.test-report p { line-height: 1.8; max-width: 85ch; }
@media (max-width: 650px) {
    .test-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .test-question { padding: 12px 8px; }
    .test-choice { padding: 10px 8px; font-size: .9rem; }
    .test-meta { grid-template-columns: 1fr; }
    .test-toolbar { flex-wrap: wrap; }
    .test-filters .field { flex: 1 1 100%; }
}
