* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--gray-50); color: var(--gray-800); min-height: 100vh; }

/* Layout */
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: white;
  border-right: 1px solid var(--gray-200);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform .25s ease;
}
.sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--primary); }
.sidebar-close { display: none; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--gray-500); }

.sidebar-nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-600);
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }

/* Server sync badge */
.sync-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 8px;
  font-size: .75rem; font-weight: 600;
}
.sync-badge span { opacity: .85; }
.sync-ok      { background: #f0fdf4; color: #166534; }
.sync-busy    { background: #eff6ff; color: #1d4ed8; }
.sync-error   { background: #fff5f5; color: #dc2626; }
.sync-offline { background: var(--gray-100); color: var(--gray-500); }

.main-wrapper { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  padding: 0 24px; gap: 14px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.menu-btn { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray-600); }
.topbar-title { font-weight: 700; font-size: 1.1rem; color: var(--gray-800); flex: 1; }
.version-badge { background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }

.content { flex: 1; padding: 28px 28px; overflow-y: auto; }

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); }

/* Stat Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.stat-icon { font-size: 1.6rem; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gray-800); }
.stat-label { font-size: .82rem; color: var(--gray-500); font-weight: 500; }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.page-header h2 { font-size: 1.35rem; font-weight: 800; color: var(--gray-800); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #DC2626; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #D97706; }
.btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-outline { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 5px 12px; font-size: .8rem; }
.btn-icon { padding: 7px 10px; }

/* Action icon buttons (circular, with tooltip) */
.action-icons { display: flex; align-items: center; gap: 6px; }
.action-icons .divider { width: 1px; height: 28px; background: var(--gray-200); margin: 0 2px; }
.aib {
  width: 36px; height: 36px; border-radius: 8px; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; background: transparent;
  transition: transform .15s, background .15s;
  position: relative; flex-shrink: 0;
}
.aib:hover { transform: translateY(-2px); background: var(--gray-100); }
.aib:active { transform: scale(.93); }
.aib::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; font-size: .72rem; font-weight: 600;
  white-space: nowrap; padding: 4px 9px; border-radius: 6px;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.aib::before {
  content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #1e293b;
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.aib:hover::after, .aib:hover::before { opacity: 1; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { padding: 11px 14px; text-align: left; background: var(--gray-50); color: var(--gray-500); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--gray-200); }
td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
input[type=text], input[type=number], input[type=email], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 7px;
  font-size: .9rem;
  color: var(--gray-800);
  background: white;
  transition: border-color .15s;
  outline: none;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .78rem; color: var(--gray-400); margin-top: 4px; }

/* Badge */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: .75rem; font-weight: 600;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* Search */
.search-bar { display: flex; gap: 10px; margin-bottom: 18px; align-items: center; }
.search-input { position: relative; flex: 1; }
.search-input input { padding-left: 36px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-style: normal; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { color: var(--gray-600); margin-bottom: 6px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: 12px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); max-height: 90vh; display: flex; flex-direction: column; transform: scale(.95); transition: transform .2s; }
.modal--wide { max-width: 640px; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--gray-500); padding: 2px 6px; border-radius: 4px; }
.modal-close:hover { background: var(--gray-100); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 10px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--gray-800); color: white;
  padding: 12px 20px; border-radius: 8px;
  font-size: .88rem; font-weight: 500;
  z-index: 999; box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: transform .3s, opacity .3s;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Answer sheet grid */
.answer-key-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px 10px;
  margin-top: 14px;
}
.answer-key-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  background: var(--gray-50);
}
.answer-key-row:hover { background: var(--primary-light); border-color: var(--primary); }
.answer-key-row .q-num { font-weight: 700; font-size: .82rem; color: var(--gray-500); min-width: 24px; }
.answer-opts { display: flex; gap: 4px; }
.answer-opts label {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  font-size: .78rem; font-weight: 700;
  cursor: pointer; margin: 0;
  transition: background .1s;
}
.answer-opts input[type=radio] { display: none; }
.answer-opts input[type=radio]:checked + label { background: var(--primary); color: white; border-color: var(--primary); }

/* Grading input grid */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.grade-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  font-size: .85rem;
}
.grade-row .q-num { font-weight: 700; color: var(--gray-500); min-width: 26px; }
.grade-row .answer-sel {
  width: 60px;
  padding: 4px 6px;
  border: 1.5px solid var(--gray-300);
  border-radius: 5px;
  font-size: .85rem;
}
.grade-row .correct { color: var(--success); font-weight: 700; font-size: .9rem; }
.grade-row .wrong { color: var(--danger); font-weight: 700; font-size: .9rem; }

/* Score display */
.score-big {
  text-align: center;
  padding: 20px;
}
.score-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-weight: 800;
  border: 5px solid;
}
.score-circle.excellent { border-color: var(--success); color: var(--success); background: #D1FAE5; }
.score-circle.good { border-color: var(--warning); color: var(--warning); background: #FEF3C7; }
.score-circle.poor { border-color: var(--danger); color: var(--danger); background: #FEE2E2; }
.score-number { font-size: 1.6rem; line-height: 1; }
.score-max { font-size: .7rem; color: var(--gray-400); }

/* Results table score color */
.score-cell { font-weight: 700; }
.score-a { color: var(--success); }
.score-b { color: #3B82F6; }
.score-c { color: var(--warning); }
.score-d { color: var(--danger); }

/* Dashboard recent */
.activity-list { display: flex; flex-direction: column; gap: 10px; }
.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ===== PRINT STYLES - ANSWER SHEET ===== */
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: fixed; left: 0; top: 0; width: 100%; }
  .no-print { display: none !important; }
}

.answer-sheet-page {
  width: 210mm;
  min-height: 297mm;
  padding: 15mm 12mm;
  background: white;
  font-family: Arial, sans-serif;
  font-size: 9pt;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
}
.sheet-header { text-align: center; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
.sheet-school { font-size: 11pt; font-weight: bold; margin-bottom: 2px; }
.sheet-title { font-size: 14pt; font-weight: bold; letter-spacing: 2px; }
.sheet-subtitle { font-size: 9pt; }

.sheet-info { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 10px; }
.sheet-info-row { display: flex; gap: 6px; align-items: center; }
.sheet-info-label { font-size: 8pt; font-weight: bold; white-space: nowrap; }
.sheet-info-line { flex: 1; border-bottom: 1px solid #000; min-width: 60px; }

.sheet-bubbles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px 6px; margin-top: 8px; }
.sheet-bubble-row { display: flex; align-items: center; gap: 4px; margin-bottom: 1px; }
.sheet-qnum { font-size: 7pt; font-weight: bold; width: 16px; text-align: right; }
.bubble {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.2px solid #000;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 6.5pt; font-weight: bold;
  cursor: default;
}
.bubble.filled { background: #000; color: white; }
.sheet-section-title { font-size: 8pt; font-weight: bold; margin: 6px 0 3px; text-transform: uppercase; letter-spacing: .05em; }
.sheet-footer { margin-top: 10px; border-top: 1px solid #000; padding-top: 6px; font-size: 7.5pt; display: flex; justify-content: space-between; }
.corner-marks { position: relative; }

/* Preview container */
.preview-container { background: var(--gray-100); padding: 24px; border-radius: var(--radius); }

/* Progress bar */
.progress-bar { background: var(--gray-200); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--primary); transition: width .3s; }

/* Chart simple */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { font-size: .82rem; color: var(--gray-600); width: 70px; text-align: right; }
.bar-track { flex: 1; background: var(--gray-100); border-radius: 99px; height: 20px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; display: flex; align-items: center; padding-left: 8px; font-size: .75rem; font-weight: 700; color: white; }

/* ===== WIZARD — Buat Lembar Jawaban ===== */
.wizard-steps {
  display: flex; align-items: center;
  margin-bottom: 24px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.wz-step {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.wz-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  background: var(--gray-200); color: var(--gray-500);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.wz-step.active .wz-num { background: var(--primary); color: white; }
.wz-step.done .wz-num   { background: var(--success); color: white; }
.wz-lbl { font-size: .85rem; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.wz-step.active .wz-lbl { color: var(--primary); }
.wz-step.done .wz-lbl   { color: var(--success); }
.wz-line {
  flex: 1; height: 2px; background: var(--gray-200);
  min-width: 20px; max-width: 60px; margin: 0 4px;
}

.wz-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.wz-card-title {
  font-weight: 700; font-size: .95rem;
  color: var(--gray-800);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.wz-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 4px;
}

/* Radio card */
.radio-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer; flex: 1;
  transition: border-color .15s, background .15s;
  font-size: .88rem;
}
.radio-card input[type=radio] { display: none; }
.radio-card .rc-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--gray-300); flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.radio-card.selected { border-color: var(--primary); background: var(--primary-light); }
.radio-card.selected .rc-dot { background: var(--primary); border-color: var(--primary); }
.radio-card:hover { border-color: var(--primary); }

/* Option preset buttons */
.opt-preset-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: white; cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: left;
}
.opt-preset-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.opt-preset-btn.active { border-color: var(--primary); background: var(--primary-light); }
.opt-preset-lbl { font-weight: 700; font-size: .88rem; color: var(--gray-800); letter-spacing: 2px; }
.opt-preset-desc { font-size: .73rem; color: var(--gray-400); margin-top: 2px; }
.opt-preset-btn.active .opt-preset-lbl { color: var(--primary); }

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-btn {
  position: relative; width: 44px; height: 24px;
  background: var(--gray-300); border: none; border-radius: 99px;
  cursor: pointer; flex-shrink: 0;
  transition: background .2s;
}
.toggle-btn.on { background: var(--primary); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white; border-radius: 50%;
  transition: left .2s;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-btn.on .toggle-knob { left: 23px; }

/* ===== SCANNER ===== */
.scanner-wrap {
  background: #000;
  border-radius: 10px;
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.scanner-placeholder {
  text-align: center;
  color: var(--gray-400);
  padding: 40px 20px;
}
.scan-guide {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.6);
  color: white;
  text-align: center;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 500;
}

/* ===== GROUP ROWS (Wizard Step 2) ===== */
.grp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--grp-clr, var(--primary));
  border-radius: 8px;
}
.grp-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  color: white;
  font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.grp-bubbles {
  display: flex; gap: 4px; flex-wrap: wrap; flex: 1;
  align-items: center;
}
.grp-info {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px; min-width: 70px;
}
.grp-count {
  font-size: .78rem; font-weight: 700; color: var(--gray-700);
}
.grp-range {
  font-size: .7rem; color: var(--gray-400); white-space: nowrap;
}
.grp-actions {
  display: flex; gap: 3px; align-items: center; flex-shrink: 0;
}
.grp-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--gray-300);
  background: white; border-radius: 5px;
  font-size: .72rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  padding: 0;
}
.grp-btn:hover { background: var(--gray-100); }
.grp-btn.danger { border-color: #FCA5A5; color: var(--danger); }
.grp-btn.danger:hover { background: #FFF0F0; }

/* ===== Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .main-wrapper { margin-left: 0; }
  .menu-btn { display: block; }
  .content { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .answer-key-grid { grid-auto-columns: 1fr; }
  .grade-grid { grid-template-columns: repeat(2, 1fr); }
  .sheet-bubbles { grid-template-columns: repeat(2, 1fr); }
}
