/* ===== 정율사관학원 레벨테스트 리포트 시스템 ===== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&family=Noto+Serif+KR:wght@400;600;700&display=swap');

:root {
  --primary: #1e3a5f;
  --primary-light: #2563eb;
  --secondary: #c8a856;
  --accent: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #1a202c;
  --text-muted: #718096;
  --border: #e2e8f0;
  --sidebar-width: 260px;
}

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--primary);
  color: white;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo .academy-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.4;
  color: var(--secondary);
}

.sidebar-logo .system-name {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

.sidebar-section {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.nav-item.active {
  background: rgba(200,168,86,0.15);
  color: var(--secondary);
  border-left-color: var(--secondary);
  font-weight: 600;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

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

.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-content {
  padding: 32px;
  flex: 1;
}

/* ── Cards ── */
.card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  padding: 24px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--secondary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: #152c47; }

.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-secondary:hover { background: #b8962a; }

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover { background: #219150; }

.btn-danger {
  background: var(--accent);
  color: white;
}
.btn-danger:hover { background: #c0392b; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--accent);
  margin-left: 3px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ── Tables ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead tr {
  background: var(--primary);
  color: white;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:hover { background: #f8fafc; }
tbody tr:last-child { border-bottom: none; }

tbody td {
  padding: 12px 16px;
  color: var(--text);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-high { background: #fef2f2; color: #dc2626; }
.badge-medium { background: #fffbeb; color: #d97706; }
.badge-low { background: #f0fdf4; color: #16a34a; }
.badge-middle { background: #eff6ff; color: #2563eb; }
.badge-high-school { background: #fdf4ff; color: #9333ea; }
.badge-primary { background: #eff6ff; color: var(--primary); }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon-blue { background: #eff6ff; color: #2563eb; }
.stat-icon-gold { background: #fffbeb; color: #d97706; }
.stat-icon-green { background: #f0fdf4; color: #16a34a; }
.stat-icon-purple { background: #fdf4ff; color: #9333ea; }

.stat-info .number {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-info .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2644 50%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,168,86,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  bottom: -50px; left: -50px;
  border-radius: 50%;
}

.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 48px 44px;
  width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .emblem {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(30,58,95,0.3);
}

.login-logo .academy {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.login-logo .system {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── Question Items ── */
.question-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
}

.question-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Alert / Toast ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }

.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  min-width: 260px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--accent); }

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-close {
  width: 30px; height: 30px;
  border: none; background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg); }

/* ── Upload Area ── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary-light);
  background: #eff6ff;
}

.upload-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Progress Bar ── */
.progress-bar {
  background: var(--border);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.3s ease;
}

/* ═══════════════════════════════════════
   REPORT PRINT STYLES
═══════════════════════════════════════ */

.report-page {
  font-family: 'Noto Sans KR', sans-serif;
  color: #1a202c;
  line-height: 1.6;
}

.report-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Report Header */
.report-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: white;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.report-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.report-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 60px;
  width: 160px; height: 160px;
  background: rgba(200,168,86,0.1);
  border-radius: 50%;
}

.report-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.report-academy-info .academy-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.report-academy-info .report-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.report-academy-info .report-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.report-meta {
  text-align: right;
  font-size: 13px;
}

.report-meta .meta-item {
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.report-meta .meta-value {
  color: var(--secondary);
  font-weight: 700;
}

/* Student Info Panel */
.student-panel {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.student-info-item .info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.student-info-item .info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* Score Summary */
.score-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
}

.total-score-card {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: white;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.total-score-card .score-number {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.total-score-card .score-max {
  font-size: 20px;
  color: rgba(255,255,255,0.6);
}

.total-score-card .score-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  letter-spacing: 1px;
}

.score-chart-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 24px;
}

/* Ability Badges */
.ability-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.ability-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ability-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ability-icon-blue { background: #eff6ff; color: #2563eb; }
.ability-icon-purple { background: #fdf4ff; color: #9333ea; }

.ability-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.ability-value {
  font-size: 18px;
  font-weight: 800;
}

.ability-high { color: #dc2626; }
.ability-medium { color: #d97706; }
.ability-low { color: #16a34a; }

/* Question Analysis Table */
.analysis-section {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}

.analysis-header {
  background: #1e3a5f;
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.analysis-table thead tr {
  background: #f8fafc;
}

.analysis-table thead th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.analysis-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f4f8;
}

.analysis-table tbody tr:last-child td {
  border-bottom: none;
}

.correct-cell { color: var(--success); font-weight: 700; font-size: 16px; }
.incorrect-cell { color: var(--accent); font-weight: 700; font-size: 16px; }

/* Unit Analysis */
.unit-analysis {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}

.unit-bar-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  align-items: center;
  gap: 16px;
}

.unit-name {
  min-width: 140px;
  font-size: 13px;
  font-weight: 600;
}

.unit-bar-wrapper {
  flex: 1;
  background: #f0f4f8;
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.unit-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #2563eb, #1e3a5f);
}

.unit-score-text {
  min-width: 60px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* Feedback Section */
.feedback-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 14px;
  border: 1px solid #fcd34d;
  padding: 24px;
  margin-bottom: 20px;
}

.feedback-title {
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feedback-item {
  background: white;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #fde68a;
}

.feedback-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-item-content {
  font-size: 13px;
  color: #78350f;
  line-height: 1.7;
}

/* Report Footer */
.report-footer {
  text-align: center;
  padding: 20px;
  border-top: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 20px;
}

.report-footer .academy-stamp {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ── Print Styles ── */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0; }
  body { background: white; }
  .report-container { max-width: 100%; padding: 0; }
  .card { box-shadow: none; }
  .report-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  @page {
    size: A4;
    margin: 15mm 20mm;
  }
}

/* ── Loading ── */
.loading-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.tab {
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: inherit;
}

.tab:hover { color: var(--text); }
.tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
}

.empty-state i { font-size: 48px; opacity: 0.3; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 14px; }

/* ── Select Cards (Report Creation) ── */
.select-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.select-card:hover {
  border-color: #93c5fd;
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}
.select-card.selected {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

/* ── Step Labels ── */
.step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num {
  background: var(--primary);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .student-panel { grid-template-columns: 1fr 1fr; }
  .score-summary { grid-template-columns: 1fr; }
  .ability-panel { grid-template-columns: 1fr; }
  .feedback-grid { grid-template-columns: 1fr; }
}
