:root {
    --ink: #17202f;
    --muted: #667085;
    --line: #e4e7ec;
    --surface: #ffffff;
    --canvas: #f5f7fa;
    --navy: #17233b;
    --navy-soft: #243451;
    --brand: #5b5bd6;
    --brand-dark: #4545b8;
    --green: #087f5b;
    --green-bg: #e9f8f2;
    --danger: #b42318;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px; display: flex; flex-direction: column; color: #d9e1ef; background: var(--navy); }
.admin-brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 26px; text-decoration: none; color: white; }
.admin-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-weight: 800; background: linear-gradient(145deg, #7777ed, #4a4ac1); box-shadow: 0 7px 18px rgba(91, 91, 214, .32); }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { letter-spacing: -.02em; }
.admin-brand small { margin-top: 1px; color: #9daac0; font-size: .72rem; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav-label { padding: 20px 12px 7px; color: #7f8da6; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; color: #bfc9d9; font-size: .91rem; font-weight: 550; text-decoration: none; transition: .15s ease; }
.admin-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.admin-nav a.is-active { color: white; background: var(--navy-soft); box-shadow: inset 3px 0 var(--brand); }
.admin-nav a span { width: 18px; color: #8c9bb4; text-align: center; }
.admin-sidebar-footer { margin-top: auto; padding: 18px 10px 2px; display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,.09); color: #8f9db4; font-size: .78rem; overflow-wrap: anywhere; }
.admin-sidebar-footer a { color: #c8d1df; text-decoration: none; }

.admin-main { min-width: 0; }
.admin-topbar { min-height: 148px; padding: 30px clamp(24px, 4vw, 54px) 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: white; background: linear-gradient(125deg, #243352, #19243d); }
.admin-topbar h1 { margin: 2px 0 3px; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.18; letter-spacing: -.035em; }
.admin-topbar p { margin: 5px 0 0; color: #b9c4d6; }
.admin-eyebrow { color: #98a8c1 !important; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.admin-eyebrow a { text-decoration: none; }
.admin-topbar-actions { flex: none; }
.admin-content { padding: 30px clamp(24px, 4vw, 54px) 54px; }
.admin-alert { margin: 20px clamp(24px, 4vw, 54px) -6px; padding: 11px 15px; border-radius: 8px; font-size: .9rem; }
.admin-alert-success { color: #05603f; border: 1px solid #a9e6cf; background: #ecfdf5; }
.admin-alert-error { color: #912018; border: 1px solid #f5b7b1; background: #fff1f0; }
.admin-alert-warning { margin: 0 0 20px; color: #854a0e; border: 1px solid #f4d29c; background: #fff8e8; }

.btn { min-height: 38px; padding: 8px 14px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 7px; font-size: .84rem; font-weight: 650; line-height: 1; text-decoration: none; cursor: pointer; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--brand); box-shadow: 0 2px 7px rgba(91,91,214,.25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { color: #344054; border-color: #d0d5dd; background: white; }
.btn-secondary:hover { border-color: #98a2b3; }
.btn-small { min-height: 31px; padding: 6px 10px; font-size: .76rem; }
.btn-ghost { color: #475467; background: transparent; }
.btn-danger-ghost { color: var(--danger); border-color: transparent; background: transparent; }
.btn-danger-ghost:hover { background: #fff1f0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { padding: 20px; display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.stat-card > div:last-child { min-width: 0; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card span { font-size: .77rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.stat-card strong { display: block; margin: 1px 0; font-size: 1.8rem; line-height: 1.2; }
.stat-card small { font-size: .73rem; }
.stat-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: #eeeeff; }
.stat-icon-categories { color: #b54708; background: #fff4e8; }
.stat-icon-topics { color: var(--green); background: var(--green-bg); }
.stat-icon-questions { color: #6941c6; background: #f1ebff; }

.admin-panel { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 1rem; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.hierarchy-grid { padding: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.hierarchy-card { padding: 17px; border: 1px solid var(--line); border-radius: 9px; }
.hierarchy-card.is-muted { background: #f9fafb; opacity: .72; }
.hierarchy-card-head { display: flex; gap: 11px; align-items: center; }
.hierarchy-card h3 { margin: 0 0 3px; font-size: .95rem; }
.hierarchy-card > p { min-height: 42px; margin: 14px 0; color: var(--muted); font-size: .78rem; }
.entity-mark { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 9px; color: #4646ad; background: #ededff; font-weight: 750; }
.entity-mark-category { color: #a4470e; background: #fff0dd; }
.entity-mark-topic { color: #087455; background: #e7f8f1; }
.mini-stats { margin: 0 0 14px; display: flex; gap: 24px; }
.mini-stats div { display: flex; gap: 6px; align-items: baseline; }
.mini-stats dt { color: var(--muted); font-size: .7rem; }
.mini-stats dd { margin: 0; font-weight: 700; }
.card-link { color: var(--brand-dark); font-size: .77rem; font-weight: 650; text-decoration: none; }
.card-links { display: flex; justify-content: space-between; gap: 10px; }
.quick-actions { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.quick-actions a { padding: 15px 17px; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; text-decoration: none; box-shadow: var(--shadow); }
.quick-actions a > span { grid-row: span 2; color: var(--brand); }
.quick-actions strong { font-size: .84rem; }
.quick-actions small { color: var(--muted); font-size: .72rem; }

.table-summary { padding: 13px 18px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-bottom: 1px solid var(--line); background: #fafbfc; font-size: .76rem; }
.table-summary strong { color: var(--ink); }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th { padding: 11px 16px; color: #667085; background: #fbfcfd; border-bottom: 1px solid var(--line); font-size: .68rem; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fafbff; }
.admin-table .row-muted { background: #fafafa; color: #667085; }
.actions-col { width: 1%; text-align: right !important; }
.entity-cell { min-width: 260px; display: flex; gap: 11px; align-items: center; }
.entity-cell strong, .entity-cell small, .admin-table td > small { display: block; }
.entity-cell small { max-width: 430px; margin-top: 2px; color: var(--muted); font-size: .73rem; }
.topic-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; object-fit: cover; background: #f2f4f7; }
.content-counts { display: flex; gap: 16px; color: var(--muted); white-space: nowrap; }
.content-counts strong { color: var(--ink); }
.number-pill { min-width: 28px; padding: 3px 8px; display: inline-block; border-radius: 20px; text-align: center; background: #f2f4f7; font-weight: 700; }
.badge { padding: 3px 8px; display: inline-block; border-radius: 20px; font-size: .68rem; font-weight: 700; }
.badge-success { color: var(--green); background: var(--green-bg); }
.badge-muted { color: #667085; background: #eaecf0; }
.text-warning { margin-top: 3px; color: #b54708; }
.table-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; white-space: nowrap; }
.table-actions form { margin: 0; }
.breadcrumb-cell { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.breadcrumb-cell span { color: var(--muted); }
.breadcrumb-cell b { color: #b8bfca; }
.empty-state { padding: 46px 24px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 1rem; }
.empty-state p { margin: 4px auto 16px; font-size: .82rem; }

.form-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(220px, 300px); gap: 22px; align-items: start; }
.admin-form { padding: 24px; overflow: visible; }
.admin-form form > div:not(.toggle-row):not(.form-actions) { margin-bottom: 18px; }
.admin-form label { margin-bottom: 6px; display: block; color: #344054; font-size: .8rem; font-weight: 650; }
.admin-form input[type="text"], .admin-form input[type="url"], .admin-form input[type="number"], .admin-form select, .admin-form textarea { width: 100%; padding: 10px 12px; color: var(--ink); border: 1px solid #cfd5df; border-radius: 7px; outline: none; background: white; transition: .15s ease; }
.admin-form textarea { min-height: 145px; resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,214,.12); }
.admin-form .form-text, .admin-form div > small { margin-top: 5px; display: block; color: var(--muted); font-size: .72rem; }
.admin-form ul { margin: 5px 0; padding-left: 18px; color: var(--danger); font-size: .75rem; }
.toggle-row { margin: 22px 0; padding: 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.toggle-row input { margin-top: 4px; accent-color: var(--brand); }
.toggle-row label { margin: 0; }
.toggle-row small, .toggle-row ul { grid-column: 2; }
.form-actions { padding-top: 19px; display: flex; gap: 9px; border-top: 1px solid var(--line); }
.context-card { padding: 22px; border: 1px solid #dfe3ea; border-radius: 11px; color: #475467; background: #f9fafb; }
.context-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--brand); background: #eaeaFF; }
.context-card h3 { margin: 14px 0 6px; color: var(--ink); font-size: .93rem; }
.context-card p { margin: 0 0 16px; font-size: .78rem; }
.context-card dl { margin: 16px 0 0; border-top: 1px solid var(--line); }
.context-card dl div { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.context-card dt { font-size: .74rem; }
.context-card dd { margin: 0; color: var(--ink); font-size: .78rem; font-weight: 700; }
.detail-panel { padding: 26px; display: grid; grid-template-columns: 72px minmax(0, 680px); gap: 20px; }
.detail-icon { width: 64px; height: 64px; border-radius: 13px; object-fit: cover; font-size: 1.25rem; }
.detail-panel h2 { margin: 20px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.detail-panel p { color: #475467; }
.detail-list { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.detail-list div { padding: 12px; background: white; }
.detail-list dt { color: var(--muted); font-size: .68rem; }
.detail-list dd { margin: 3px 0 0; font-size: .8rem; font-weight: 650; }

.question-stats { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; }
.question-stats a { padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: white; text-decoration: none; box-shadow: var(--shadow); }
.question-stats a.is-active { color: var(--brand-dark); border-color: #b7b7f3; box-shadow: inset 0 -3px var(--brand); }
.question-stats span { font-size: .77rem; font-weight: 650; }
.question-stats strong { color: var(--ink); font-size: 1.1rem; }
.filter-bar { padding: 14px 17px; display: flex; align-items: end; gap: 10px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.filter-bar label { display: grid; gap: 4px; color: var(--muted); font-size: .68rem; font-weight: 650; }
.filter-bar select, .filter-bar input { min-width: 150px; height: 38px; padding: 7px 10px; color: var(--ink); border: 1px solid #d0d5dd; border-radius: 7px; background: white; }
.question-cell { min-width: 280px; max-width: 480px; }
.question-cell strong, .question-cell small, .setup-summary span, .setup-summary small { display: block; }
.question-cell small, .setup-summary small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.question-location { min-width: 190px; display: grid; gap: 1px; }
.question-location span { color: var(--muted); font-size: .7rem; }
.question-location b { display: none; }
.setup-summary { min-width: 165px; }
.badge-draft { color: #854a0e; background: #fff3d6; }
.badge-published { color: var(--green); background: var(--green-bg); }
.badge-archived { color: #667085; background: #eaecf0; }
.badge-large { padding: 6px 11px; font-size: .75rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.workflow-steps { display: grid; gap: 7px; color: var(--muted); font-size: .76rem; }
.workflow-steps b { color: var(--brand-dark); }
.authoring-progress { margin-bottom: 20px; padding: 15px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.authoring-progress > div { position: relative; padding-left: 42px; display: grid; min-height: 32px; align-content: center; }
.authoring-progress > div:not(:last-child)::after { content: ""; position: absolute; top: 16px; right: 10px; width: 35%; height: 1px; background: var(--line); }
.authoring-progress span { position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; background: #f2f4f7; font-size: .73rem; font-weight: 700; }
.authoring-progress .is-complete span { color: white; background: var(--green); }
.authoring-progress .is-current span { color: white; background: var(--brand); }
.authoring-progress strong { font-size: .77rem; }
.authoring-progress small { color: var(--muted); font-size: .68rem; }
.question-editor-grid { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(430px, 1.1fr); gap: 20px; align-items: start; }
.panel-body { padding: 22px; }
.panel-body .form-grid-2 > div, .admin-form .form-grid-2 > div { margin-bottom: 18px; }
.option-panel { overflow: hidden; }
.option-list { padding: 8px 18px; }
.option-card { padding: 13px 4px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 11px; align-items: start; border-bottom: 1px solid var(--line); }
.option-card:last-child { border-bottom: 0; }
.option-letter { width: 32px; height: 32px; display: grid; place-items: center; color: #475467; border: 1px solid #d0d5dd; border-radius: 50%; background: white; font-size: .74rem; font-weight: 750; }
.option-card.is-correct .option-letter { color: var(--green); border-color: #9ddfc7; background: var(--green-bg); }
.option-copy > div { display: flex; gap: 8px; align-items: center; }
.option-copy strong { font-size: .8rem; }
.option-copy small, .option-copy em { margin-top: 4px; display: block; color: var(--muted); font-size: .69rem; font-style: normal; }
.option-copy em { color: #854a0e; }
.option-actions { display: flex; gap: 3px; }
.option-actions form { margin: 0; }
.option-summary { padding: 12px 20px; display: flex; gap: 22px; color: var(--muted); border-top: 1px solid var(--line); background: #fafbfc; font-size: .72rem; }
.option-summary strong { color: var(--ink); }
.compact-toggle { margin: 22px 0 18px; }
.history-warning { margin-top: 16px; padding: 12px; color: #854a0e; border: 1px solid #f4d29c; border-radius: 8px; background: #fff8e8; }
.history-warning strong { font-size: .75rem; }
.history-warning p { margin: 3px 0 0; }

.analytics-period { display: flex; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.07); }
.analytics-period a { padding: 7px 10px; border-radius: 5px; color: #c5cfdf; font-size: .75rem; font-weight: 700; text-decoration: none; }
.analytics-period a.is-active { color: var(--navy); background: white; }
.analytics-kpis { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.analytics-kpi { padding: 19px 20px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.analytics-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); }
.analytics-kpi-users::before { background: #1570ef; }
.analytics-kpi-accuracy::before { background: var(--green); }
.analytics-kpi-response::before { background: #b54708; }
.analytics-kpi > span, .analytics-kpi > small { display: block; color: var(--muted); }
.analytics-kpi > span { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.analytics-kpi > strong { margin-top: 3px; display: block; font-size: 1.85rem; line-height: 1.15; }
.analytics-kpi > small { font-size: .68rem; }
.analytics-kpi > div { margin: 14px -20px -19px; padding: 9px 20px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid #edf0f3; background: #fafbfc; font-size: .7rem; }
.analytics-kpi > div b { color: var(--ink); }
.analytics-chart-panel { margin-bottom: 20px; }
.chart-legend { display: flex; gap: 14px; color: var(--muted); font-size: .7rem; }
.chart-legend span::before { content: ""; width: 8px; height: 8px; margin-right: 5px; display: inline-block; border-radius: 2px; }
.chart-legend .is-correct::before { background: #32b88a; }
.chart-legend .is-incorrect::before { background: #ef8b82; }
.trend-chart { padding: 22px 24px 17px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.trend-y-axis { height: 230px; display: flex; flex-direction: column; justify-content: space-between; color: #98a2b3; font-size: .62rem; text-align: right; }
.trend-plot { height: 250px; padding-bottom: 20px; display: flex; align-items: flex-end; gap: clamp(2px, .55vw, 8px); border-bottom: 1px solid #dfe3e8; background: repeating-linear-gradient(to bottom, #fff 0, #fff 56px, #edf0f3 57px); }
.trend-day { height: 230px; min-width: 2px; flex: 1; position: relative; display: flex; align-items: flex-end; }
.trend-stack { width: 100%; min-height: 2px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 3px 3px 0 0; }
.trend-stack i { width: 100%; display: block; }
.trend-correct { order: 2; background: #32b88a; }
.trend-incorrect { order: 1; background: #ef8b82; }
.trend-day > small { position: absolute; top: calc(100% + 4px); left: 50%; color: #98a2b3; font-size: .56rem; white-space: nowrap; transform: translateX(-50%); }
.analytics-two-column { margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.analytics-table td strong, .analytics-table td small { display: block; }
.analytics-table td small { color: var(--muted); font-size: .66rem; }
.analytics-good { color: var(--green); font-weight: 700; }
.analytics-bad { color: var(--danger); font-weight: 700; }
.analytics-question-list { display: grid; }
.analytics-question-list a { padding: 13px 17px; display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid #edf0f3; text-decoration: none; }
.analytics-question-list a:last-child { border-bottom: 0; }
.analytics-question-list a:hover { background: #fafbff; }
.analytics-question-list strong, .analytics-question-list small { display: block; }
.analytics-question-list strong { font-size: .76rem; }
.analytics-question-list small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.analytics-rank { color: #98a2b3; font-size: .7rem; font-weight: 800; }
.analytics-question-list > a > b { min-width: 27px; text-align: right; font-size: 1rem; }
.platform-usage { padding: 5px 20px 14px; }
.platform-usage > div { padding: 12px 0; display: grid; grid-template-columns: minmax(140px, 220px) minmax(120px, 1fr) 50px; gap: 16px; align-items: center; border-bottom: 1px solid #edf0f3; }
.platform-usage > div:last-child { border-bottom: 0; }
.platform-usage span strong, .platform-usage span small { display: block; }
.platform-usage span strong { font-size: .78rem; }
.platform-usage span small { color: var(--muted); font-size: .66rem; }
.platform-usage div > div { height: 8px; overflow: hidden; border-radius: 8px; background: #eaecf0; }
.platform-usage div > div i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #8383ee); }
.platform-usage > div > b { font-size: .75rem; text-align: right; }
.analytics-generated { margin: 15px 0 0; color: var(--muted); font-size: .66rem; text-align: right; }

@media (max-width: 980px) {
    .admin-shell { grid-template-columns: 82px minmax(0, 1fr); }
    .admin-sidebar { padding-inline: 10px; }
    .admin-brand { justify-content: center; padding-inline: 0; }
    .admin-brand > span:last-child, .admin-nav-label, .admin-nav a:not(.is-active) { }
    .admin-brand strong, .admin-brand small, .admin-nav a { font-size: 0; }
    .admin-nav a { justify-content: center; }
    .admin-nav a span { font-size: 1rem; }
    .admin-sidebar-footer span { display: none; }
    .admin-sidebar-footer a { font-size: .72rem; text-align: center; }
    .hierarchy-grid { grid-template-columns: repeat(2, 1fr); }
    .form-layout { grid-template-columns: 1fr; }
    .question-editor-grid { grid-template-columns: 1fr; }
    .analytics-kpis { grid-template-columns: repeat(2, 1fr); }
    .analytics-two-column { grid-template-columns: 1fr; }
    .context-card { order: -1; }
}

@media (max-width: 680px) {
    .admin-shell { display: block; }
    .admin-sidebar { position: static; width: auto; height: auto; padding: 10px 14px; display: block; }
    .admin-brand { justify-content: flex-start; padding: 2px 4px 10px; }
    .admin-brand strong, .admin-brand small { font-size: revert; }
    .admin-nav { display: flex; overflow-x: auto; }
    .admin-nav-label, .admin-sidebar-footer { display: none; }
    .admin-nav a, .admin-nav a:not(.is-active) { min-width: max-content; font-size: .76rem; }
    .admin-nav a span { font-size: .8rem; }
    .admin-topbar { min-height: 0; padding: 23px 18px; align-items: flex-start; flex-direction: column; }
    .admin-content { padding: 20px 14px 36px; }
    .admin-alert { margin-inline: 14px; }
    .stat-grid, .hierarchy-grid, .quick-actions { grid-template-columns: 1fr; }
    .table-summary { align-items: flex-start; flex-direction: column; gap: 3px; }
    .detail-list { grid-template-columns: 1fr; }
    .detail-panel { grid-template-columns: 1fr; }
    .question-stats { grid-template-columns: repeat(2, 1fr); }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar select, .filter-bar input { width: 100%; }
    .form-grid-2, .authoring-progress { grid-template-columns: 1fr; }
    .authoring-progress { gap: 12px; }
    .authoring-progress > div:not(:last-child)::after { display: none; }
    .option-card { grid-template-columns: 36px minmax(0, 1fr); }
    .option-actions { grid-column: 2; }
    .analytics-kpis { grid-template-columns: 1fr; }
    .trend-chart { padding-inline: 12px; }
    .platform-usage > div { grid-template-columns: 1fr 42px; }
    .platform-usage div > div { grid-column: 1; }
}
