/* Cross-course question inspection shares the compact Admin console shell. */
.admin-questions .aq-search { flex: 1 1 220px; min-width: 120px; }
.admin-questions .aq-filter-chips { display: flex; flex-wrap: wrap; padding: 6px 12px; gap: 4px; border-bottom: 1px solid var(--border); }
.admin-questions .aq-filter-chips[hidden], .admin-questions .aq-inspector[hidden] { display: none; }
.admin-questions .aq-sort-note { margin-left: auto; white-space: nowrap; }
.admin-questions .aq-table { table-layout: fixed; width: 100%; }
.admin-questions .aq-table th:first-child { width: 38%; }
.admin-questions .aq-table th:nth-child(2) { width: 13%; }
.admin-questions .aq-table th:nth-child(3) { width: 19%; }
.admin-questions .aq-table th:nth-child(4) { width: 18%; }
.admin-questions .aq-table th:nth-child(5) { width: 12%; }
.admin-questions .aq-table td { vertical-align: middle; overflow-wrap: anywhere; }
.admin-questions .aq-table .is-selected { background: var(--accent-bg, var(--surface-2)); }
.admin-questions .aq-question-link { padding: 0; border: 0; color: var(--text); background: none; text-align: left; font: inherit; font-weight: 600; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.admin-questions .aq-question-link:hover { color: var(--accent); text-decoration: underline; }
.admin-questions .aq-cell-sub { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 3px; overflow-wrap: anywhere; }
.admin-questions .aq-course-column > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-questions .aq-date-column { font-size: 11px; }
.admin-questions .aq-result-count { margin-right: auto; }
.admin-questions .ac-footer .input { width: auto; }
.admin-questions .aq-empty { padding: 40px 20px; text-align: center; }
.admin-questions .aq-empty h2 { font-size: 17px; }
.admin-questions .aq-inspector { overflow: hidden; }
.admin-questions .ac-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 15px; border-bottom: 1px solid var(--border); }
.admin-questions .ac-panel-header h2 { margin: 0 0 5px; font-size: 16px; }
.admin-questions .ac-panel-header p { font-size: 11px; margin: 0; overflow-wrap: anywhere; }
.admin-questions .aq-tabs { display: flex; overflow-x: auto; flex: 0 0 auto; padding: 0 9px; gap: 0; border-bottom: 1px solid var(--border); }
.admin-questions .aq-tabs .btn { border-radius: 0; padding: 11px 8px; font-size: 11px; white-space: nowrap; }
.admin-questions .aq-tabs [aria-selected="true"] { color: var(--accent); border-bottom: 2px solid var(--accent); background: var(--surface-2); }
.admin-questions .ac-panel-body { flex: 1; overflow: auto; padding: 16px; min-height: 0; }
.admin-questions .ac-panel-body > .stack { gap: 16px; }
.admin-questions .ac-panel-footer { flex-shrink: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.admin-questions .ac-panel-body h3 { margin: 0; font-size: 14px; }
.admin-questions .aq-properties { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; gap: 10px 12px; font-size: 12px; margin: 16px 0; }
.admin-questions .aq-properties dt { color: var(--muted); }
.admin-questions .aq-properties dd { margin: 0; overflow-wrap: anywhere; }
.admin-questions .aq-properties .btn { text-align: left; padding: 0; min-height: 0; white-space: normal; }
.admin-questions .aq-option { border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 13px; }
.admin-questions .aq-option--correct { border-left: 3px solid var(--success, #168554); }
.admin-questions .aq-option-top { display: flex; gap: 8px; align-items: center; }
.admin-questions .aq-option .rich-text p { margin: 5px 0; }
.admin-questions .aq-option summary { font-size: 11px; color: var(--muted); cursor: pointer; margin-top: 7px; }
.admin-questions .aq-warning { border: 1px solid var(--border); border-left: 3px solid var(--warning, #b7791f); background: var(--surface-2); border-radius: 6px; padding: 11px; font-size: 12px; line-height: 1.6; }
.admin-questions .aq-warning p { margin-bottom: 0; }
.admin-questions .aq-evidence-row { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 12px; }
.admin-questions .aq-evidence-row p { margin: 0; }
.admin-questions .aq-evidence-row .ac-badge { margin-left: 7px; }
.admin-questions .aq-two-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.admin-questions .aq-reproduce-form { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.admin-questions .aq-reproduce-form .input { width: 100%; }
.admin-questions .aq-reproduce-form label { min-width: 0; font-size: 12px; }
.admin-questions .diagnostic-evidence pre { max-width: 100%; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-questions .rich-text { min-width: 0; overflow-wrap: anywhere; }
.admin-questions .rich-text .katex-display { overflow-x: auto; overflow-y: hidden; }
.admin-questions .aq-filter-dialog { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: min(440px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow: auto; }
.admin-questions .aq-filter-dialog::backdrop { background: #0008; }
.admin-questions .aq-filter-dialog h2 { margin: 0; font-size: 20px; }
.admin-questions .aq-filter-dialog .input { width: 100%; }
.admin-questions.has-inspector .aq-course-column, .admin-questions.has-inspector .aq-date-column { display: none; }
.admin-questions.has-inspector .aq-table th:first-child { width: 53%; }
.admin-questions.has-inspector .aq-table th:nth-child(2) { width: 20%; }
.admin-questions.has-inspector .aq-table th:nth-child(3) { width: 27%; }
@media (max-width: 1250px) { .admin-questions .aq-sort-note { display: none; } .admin-questions .aq-date-column { display: none; } .admin-questions .aq-table th:first-child { width: 43%; } .admin-questions .aq-table th:nth-child(2) { width: 15%; } .admin-questions .aq-table th:nth-child(3) { width: 22%; } .admin-questions .aq-table th:nth-child(4) { width: 20%; } }

@media (max-width: 650px) { .admin-questions .aq-course-column, .admin-questions .aq-creator-column { display: none; } .admin-questions .aq-table th:first-child { width: 72%; } .admin-questions .aq-table th:nth-child(2) { width: 28%; } .admin-questions .ac-toolbar { flex-wrap: wrap; } .admin-questions .aq-search { flex-basis: calc(100% - 100px); } .admin-questions .ac-toolbar > select { order: 2; flex: 1; } .admin-questions .ac-toolbar > button[type="button"] { order: 3; } .admin-questions .ac-metric small { font-size: 10px; } .admin-questions .ac-footer { flex-wrap: wrap; gap: 6px; } .admin-questions .aq-result-count { flex-basis: 100%; } }
