.test-card{border:1px solid #e5e7eb;border-radius:18px;padding:18px;background:#fff;box-shadow:0 8px 24px rgba(76,0,112,.06)}
.test-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.test-status-pending{background:#f3e8ff;color:#6b0aa5}.test-status-progress{background:#fff7d6;color:#8a6100}.test-status-done{background:#dcfce7;color:#166534}.test-status-expired{background:#fee2e2;color:#991b1b}
.test-primary,.test-secondary,.test-danger{border:0;border-radius:12px;padding:11px 17px;font-weight:900;cursor:pointer;transition:.18s ease}
.test-primary{background:#6b0aa5;color:#fff}.test-primary:hover{background:#51077f}.test-primary:disabled{opacity:.45;cursor:not-allowed}
.test-secondary{background:#fff;color:#6b0aa5;border:1px solid #6b0aa5}.test-danger{background:#fff;color:#b91c1c;border:1px solid #fecaca}
#knowledge-test-overlay{position:fixed;inset:0;z-index:220;background:#f6f4f8;color:#17131b;display:none;overflow:hidden}
#knowledge-test-overlay.is-open{display:flex;flex-direction:column}
.test-shell{display:flex;flex-direction:column;height:100%;min-height:0}.test-topbar{height:72px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:16px;padding:12px 22px;box-shadow:0 4px 14px rgba(17,24,39,.05);flex-shrink:0}
.test-timer{font-variant-numeric:tabular-nums;font-weight:950;color:#6b0aa5;background:#f3e8ff;border-radius:12px;padding:9px 13px}.test-timer.is-warning{color:#991b1b;background:#fee2e2}
.test-body{display:grid;grid-template-columns:260px minmax(0,1fr);flex:1;min-height:0}.test-sidebar{background:#fff;border-right:1px solid #e5e7eb;padding:20px;overflow-y:auto}.test-main{padding:28px;overflow-y:auto}
.test-question-card{max-width:920px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:28px;box-shadow:0 14px 36px rgba(44,18,60,.08)}
.test-option{display:flex;align-items:flex-start;gap:12px;border:2px solid #e5e7eb;border-radius:14px;padding:14px 16px;margin-top:12px;cursor:pointer;font-weight:700;background:#fff}.test-option:hover{border-color:#b46adc;background:#faf5ff}.test-option.is-selected{border-color:#6b0aa5;background:#f6ecff;color:#4d0875}
.test-option input{margin-top:3px;width:18px;height:18px;accent-color:#6b0aa5}.test-answer-text{width:100%;min-height:260px;border:2px solid #e5e7eb;border-radius:14px;padding:16px;font:inherit;line-height:1.6;resize:vertical;outline:none}.test-answer-text:focus{border-color:#6b0aa5;box-shadow:0 0 0 4px #f3e8ff}
.test-nav-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.test-nav-dot{border:1px solid #d1d5db;background:#fff;border-radius:9px;padding:8px 0;font-size:12px;font-weight:900}.test-nav-dot.is-current{border-color:#6b0aa5;color:#6b0aa5}.test-nav-dot.is-answered{background:#6b0aa5;color:#fff;border-color:#6b0aa5}
.test-science{max-width:780px;margin:auto;background:#fff;border-radius:24px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.18);max-height:90vh;overflow:auto}#test-ack-list label{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #e5e7eb;border-radius:12px;margin-top:10px;font-weight:700}#test-ack-list input[type="checkbox"]{margin-top:3px;width:18px;height:18px;accent-color:#6b0aa5;flex:0 0 auto}
.qualification-low{background:#fee2e2;color:#991b1b}.qualification-medium{background:#fef3c7;color:#92400e}.qualification-high{background:#dcfce7;color:#166534}
.test-result-panel{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px}.test-review-answer{border:1px solid #e5e7eb;border-radius:14px;padding:16px;margin-top:12px;background:#fff}
@media(max-width:760px){.test-body{grid-template-columns:1fr}.test-sidebar{border-right:0;border-bottom:1px solid #e5e7eb;padding:12px}.test-nav-grid{grid-template-columns:repeat(10,1fr)}.test-main{padding:14px}.test-question-card{padding:19px;border-radius:16px}.test-topbar{height:auto;min-height:68px;flex-wrap:wrap;padding:10px 14px}.test-answer-text{min-height:220px}}
.dark #knowledge-test-overlay{background:#111827;color:#f9fafb}.dark .test-card,.dark .test-topbar,.dark .test-sidebar,.dark .test-question-card,.dark .test-science,.dark .test-result-panel,.dark .test-review-answer{background:#1f2937;border-color:#374151}.dark .test-option{background:#111827;border-color:#374151}.dark .test-option.is-selected{background:#3b1454}.dark .test-answer-text{background:#111827;border-color:#4b5563;color:#fff}
