.admin-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:5px 0 24px}.admin-heading h1{font-size:28px;margin:8px 0 0}.admin-toolbar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-filters{padding:20px;margin-bottom:18px}.admin-filters label{display:block;font-size:14px;font-weight:700;margin-bottom:9px}.admin-filters select{max-width:650px}.admin-filters p{margin-bottom:0}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric{padding:19px;background:#fff;border:1px solid var(--border);border-radius:10px}.metric small{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}.metric strong{font-size:27px;color:#234b7b}.admin-panel{padding:22px;margin:0 0 18px;overflow:hidden}.admin-panel h2{font-size:20px;margin:0 0 16px}.table-wrap{overflow-x:auto;width:100%;max-width:100%}.result-table{border-collapse:collapse;min-width:780px;width:100%;font-size:14px}.result-table th,.result-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #dfe6ef;vertical-align:top}.result-table th{background:#eef3fa;color:#274d7b;font-size:12px;white-space:nowrap}.result-table td{line-height:1.55}.result-table tbody tr:hover{background:#f9fbfd}.small-outline{min-height:44px;border:1px solid #b4c8e3;background:#f6f9fd;border-radius:6px;padding:8px 12px;color:#244f87;font-size:13px;font-weight:650}.status-tag{display:inline-block;border-radius:5px;padding:4px 7px;font-size:12px;background:#edf1f6;color:#3d516b;white-space:nowrap}.status-tag.submitted{background:#def3e7;color:#17623d}.status-tag.active{background:#e2ecff;color:#24549c}.status-tag.instructions{background:#fff3d3;color:#775718}.status-tag.timed_out{background:#ffeadc;color:#8c4118}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.pagination>span{font-size:13px;color:var(--muted);text-align:center}.row-between{display:flex;justify-content:space-between;align-items:center;gap:15px}.row-between h2{margin:0}.row-between+p{line-height:1.6;color:#415a74}#detailTable{min-width:730px}#detailTable td:first-child{min-width:290px;max-width:650px}#detailTable details summary{font-weight:600;color:#244a7b}#detailTable .detail-question{font-size:15px;line-height:1.8;white-space:normal;padding:10px 0;overflow-x:auto;max-width:660px}#detailTable .detail-option{padding:7px;border-bottom:1px solid #e4eaf3;overflow-x:auto;white-space:normal}#detailTable .detail-option strong{margin-right:8px}.question-stats{max-height:430px;overflow-y:auto;padding-top:10px}.stat-row{display:grid;grid-template-columns:45px 1fr 65px;gap:12px;align-items:center;margin:13px 0;font-size:13px}.bar-bg{height:12px;background:#e5ebf2;border-radius:6px;overflow:hidden}.bar-fill{height:100%;background:#285aa6}.setting-form{display:flex;gap:14px;flex-wrap:wrap;align-items:end}.setting-form label{flex:1 1 180px;margin:0;min-width:0}.setting-form input{margin-top:7px;min-width:0}.setting-form .micro{width:100%}.setting-form button{align-self:end}.setting-form input:disabled{background:#eef2f7;color:#506078;opacity:1}.setting-form button:disabled{display:none}
@media(max-width:850px){.admin-heading{flex-direction:column;align-items:flex-start}.admin-toolbar{justify-content:flex-start}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-panel{padding:18px}.admin-heading h1{font-size:25px}}
@media(max-width:560px){.metrics{gap:8px}.metric{padding:15px 12px}.metric small{font-size:12px}.metric strong{font-size:24px}.admin-filters,.admin-panel{padding:15px}.pagination{flex-wrap:wrap;justify-content:center}.pagination>span{order:-1;width:100%}.pagination .btn{flex:1}.admin-toolbar .btn{font-size:13px}.setting-form{display:block}.setting-form label{margin-bottom:14px}.setting-form button{width:100%}}

#accountsPanel input[type="number"]{width:7rem;margin:0 .5rem}#accountsPanel input[type="file"]{display:block;max-width:100%;margin:.5rem 0}.account-confirm{display:flex;align-items:flex-start;gap:.65rem;margin:1rem 0}.account-confirm input{flex:0 0 auto;width:1.2rem;height:1.2rem}#accountsStatus{overflow-wrap:anywhere}

.replacement-notice{padding:14px 18px;margin-bottom:18px;border:1px solid #d8a93e;border-radius:12px;background:#fff7df;color:#62460c;font-size:.9rem;line-height:1.6}.top-brand b{font-size:clamp(.9rem,3vw,1.25rem)}

.student-response{padding:15px 0;border-bottom:1px solid var(--border);min-width:0}.student-response summary{cursor:pointer;font-weight:700;color:#244a7b;padding:8px 0}.student-response .response-outcome{background:#eef3fa;padding:12px;border-radius:8px;font-weight:600;line-height:1.7}.student-response .detail-question,.student-response .detail-option{line-height:1.8;overflow-x:auto;overflow-wrap:anywhere;max-width:100%;padding:9px 0}.student-response .detail-option{border-top:1px solid #e4eaf3}.student-response .detail-option strong{margin-right:8px}#studentResultStatus{overflow-wrap:anywhere}#studentResultContent .metric strong{overflow-wrap:anywhere}

.student-solution{padding:14px;background:#f5f8fc;border-radius:8px;margin:12px 0;line-height:1.8;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}.student-solution h3{font-size:15px;margin:0 0 8px}#studentResultReceipt{overflow-wrap:anywhere}

/* GT3 matching lists: true two columns, wrapping prose on phones. */
.question-match { width:100%; table-layout:fixed; border-collapse:collapse; margin:1rem 0; white-space:normal; font-size:inherit; }
.question-match td { width:50%; vertical-align:top; border:1px solid #cbd5e1; padding:0.65rem; overflow-wrap:anywhere; line-height:1.55; }
.question-match tr:first-child td { background:#eef4fb; color:#173858; font-weight:700; }
/* Keep the entire formula visible inside each column. SVG viewBox preserves its proportions. */
.question-match td mjx-container { display:inline-block !important; max-width:100% !important; min-width:0; overflow:visible !important; vertical-align:middle; }
.question-match td mjx-container > svg { max-width:100% !important; height:auto !important; }
/* Parent admin-table column rules must not force matching cells wider than their table. */
#detailTable .question-match td:first-child { min-width:0; }
@media (max-width:600px) { .question-match td { padding:0.45rem; } }
