:root {
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-focus: #4f46e5;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --green: #10b981;
  --green-light: #ecfdf5;
  --red: #f43f5e;
  --red-light: #fff1f2;
  --yellow: #f59e0b;
  --yellow-light: #fffbeb;
  --cyan: #06b6d4;
  --cyan-light: #ecfeff;
  --navy: #1e1b4b;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-badge {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tabs {
  display: flex;
  gap: 4px;
  background: #edeef3;
  padding: 4px;
  border-radius: 12px;
  overflow-x: auto;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}
.tab-btn.active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}
.test-action.active {
  color: var(--accent);
  font-weight: 700;
}
.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-panel.active {
  display: block;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.card h2 {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.setup-card {
  max-width: 720px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.field-label small {
  font-size: 0.9em;
}
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.checkbox-group-skills {
  grid-template-columns: 1fr;
  max-height: 245px;
  overflow-y: auto;
  padding-right: 4px;
}
.checkbox-option {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text) !important;
  cursor: pointer;
  font-size: 0.86rem !important;
}
.checkbox-option:has(input:checked) {
  border-color: var(--accent);
  background: #eef2ff;
}
.checkbox-option input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
select,
input[type="number"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
}
select[multiple] {
  min-height: 132px;
  padding: 6px;
}
.warning-text {
  color: var(--red);
  font-weight: 700;
}
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.88rem;
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn {
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.progress-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.progress-tool-btn {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
}
.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ==========================================================================
   DASHBOARD REVAMP & MODERN ANALYTICS STYLING
   ========================================================================== */

/* Hero Banner */
.dashboard-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.dashboard-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
}
.hero-content {
  flex: 1;
  min-width: 280px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero-content h1 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-subtext {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 620px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-cta-btn {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* KPI Summary Cards Grid */
.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.kpi-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kpi-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.kpi-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.kpi-tag-blue {
  background: var(--accent-light);
  color: var(--accent);
}
.kpi-tag-green {
  background: var(--green-light);
  color: var(--green);
}
.kpi-tag-yellow {
  background: var(--yellow-light);
  color: var(--yellow);
}
.kpi-tag-red {
  background: var(--red-light);
  color: var(--red);
}
.kpi-tag-purple {
  background: #f3e8ff;
  color: #7e22ce;
}
.kpi-tag-neutral {
  background: #f1f5f9;
  color: var(--muted);
}
.kpi-value {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-subtext {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Filter Toolbar */
.dashboard-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 24px;
  margin-bottom: 24px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-group-skill {
  flex: 1;
  min-width: 220px;
}
.filter-group label,
.filter-group .filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.filter-group select {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

/* Main Dashboard Grid */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.dashboard-col-left,
.dashboard-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dashboard-col-left > .card,
.dashboard-col-right > .card {
  margin-bottom: 0;
}

/* Chart Cards & Layout */
.chart-card {
  position: relative;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.chart-header h2 {
  margin-bottom: 4px;
}
.chart-legend-custom {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 4px;
}
.legend-badge {
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.legend-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  display: inline-block;
}
.legend-correct::before {
  background: #10b981;
}
.legend-incorrect::before {
  background: #f43f5e;
}
.legend-improved::before {
  background: #06b6d4;
}
.legend-unattempted::before {
  background: #cbd5e1;
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 180px;
}
.coverage-chart-container {
  width: 100%;
  min-height: 380px;
}

/* Modern Data Table */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}
.modern-table th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.modern-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.modern-table tr:last-child td {
  border-bottom: none;
}
.modern-table tr:hover td {
  background: #f8fafc;
}
.skill-row-title strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}
.skill-row-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
.attempt-count-badge {
  display: inline-block;
  background: #f1f5f9;
  color: var(--text);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
}
.acc-bar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.acc-bar-bg {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
}
.acc-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.acc-percent {
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.avg-time-tag {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.table-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
}

/* Analytics Snapshot Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.analysis-tile {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease;
}
.analysis-tile:hover {
  border-color: #cbd5e1;
}
.tile-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.tile-stat {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tile-meta {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Bottom Grid for Timing Scatter Plots */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.dashboard-bottom-grid > .card {
  margin-bottom: 0;
}

/* Gemini AI Card */
.ai-insights-card {
  margin-bottom: 24px;
  border-left: 4px solid #7c3aed;
}
.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  color: #7c3aed;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.ai-cta-btn {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.ai-cta-btn:hover {
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}

/* Responsive Dashboard Breakpoints */
@media (max-width: 1024px) {
  .summary-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .summary-stats-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-hero {
    padding: 20px;
  }
  .hero-content h1 {
    font-size: 1.45rem;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
.danger-zone {
  border-color: #d9a6a6;
}
.btn-danger {
  background: #b3262e;
  color: #fff;
}
.btn-danger:hover {
  background: #8f1d24;
}

.sat-testbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #eef3fb;
  border: 1px solid #d7e0ef;
  border-bottom: 4px solid var(--navy);
  border-radius: 8px 8px 0 0;
  padding: 15px 20px;
  margin-bottom: 12px;
}
.sat-testbar strong {
  font-size: 1.05rem;
}
.sat-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sat-test-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}
.test-action {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.practice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.progress-info {
  font-size: 0.9rem;
  color: var(--muted);
}
.session-progress {
  margin-left: 10px;
  color: #8b8b85;
  font-size: 0.78rem;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
}
.difficulty-indicator {
  display: flex;
  gap: 4px;
}
.difficulty-indicator .box {
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: var(--border);
}
.difficulty-indicator.easy .box:nth-child(1) {
  background: var(--green);
}
.difficulty-indicator.medium .box:nth-child(1),
.difficulty-indicator.medium .box:nth-child(2) {
  background: var(--yellow);
}
.difficulty-indicator.hard .box:nth-child(1),
.difficulty-indicator.hard .box:nth-child(2),
.difficulty-indicator.hard .box:nth-child(3) {
  background: var(--red);
}

.question-card {
  display: grid;
  padding: 24px 28px;
}
.question-card .q-tags,
.question-card .action-row,
.question-card .feedback,
.question-card .hint-box {
  grid-column: 1 / -1;
}
.q-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e7edff;
  color: #2445a7;
  padding: 4px 9px;
  border-radius: 6px;
}
.tag-number {
  background: #171717;
  color: #fff;
}
.tag-id {
  background: #f4f4f1;
  color: #555550;
  font-family: Consolas, "Courier New", monospace;
  text-transform: none;
}
.tag-skill {
  background: #eeeeeb;
  color: #555550;
}
.question-card .q-text {
  grid-column: 1;
  margin: 12px 0 0;
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--border);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.question-card .choices {
  grid-column: 2;
  grid-row: 2;
  margin: 12px 0 0;
}
.question-card .hint-box {
  grid-row: 3;
}
.question-card .action-row {
  grid-row: 4;
}
.question-card .feedback {
  grid-row: 5;
}
.test-workspace {
  --passage-width: 50%;
  display: grid;
  grid-template-columns: var(--passage-width) 18px minmax(0, 1fr);
  grid-column: 1 / -1;
  min-height: 430px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.passage-panel,
.answer-panel {
  min-width: 0;
  padding: 18px 22px;
}
.passage-panel {
  padding-left: 4px;
}
.answer-panel {
  padding-right: 4px;
}
.panel-label,
.question-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.q-text {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.passage-panel .q-text {
  grid-column: auto;
  padding: 0;
  border-right: 0;
}
.q-prompt {
  margin: 14px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.45;
}
.question-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}
.question-label span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  background: #171717;
  color: #fff;
  font-size: 0.9rem;
}
.splitter {
  border: 0;
  border-left: 2px solid #888;
  border-right: 2px solid #888;
  background: #f1f1ee;
  color: #222;
  cursor: col-resize;
  padding: 0;
}
.splitter span {
  display: block;
  position: sticky;
  top: 48%;
  padding: 4px 0;
  background: #222;
  color: #fff;
  font-size: 0.58rem;
  line-height: 1;
}
.btn-delete {
  margin-left: auto;
  background: transparent;
  color: #8d252a;
  border: 1px solid #d8aeb0;
}
.notes-panel {
  position: fixed;
  right: 24px;
  top: 102px;
  z-index: 20;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  background: #fffdf5;
  border: 1px solid #d8cfb1;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.16);
}
.notes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.notes-close {
  border: 0;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
.highlight-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.highlight-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #aaa;
  cursor: pointer;
}
.highlight-color[data-color="#fff0a8"] {
  background: #fff0a8;
}
.highlight-color[data-color="#ccebd7"] {
  background: #ccebd7;
}
.highlight-color[data-color="#cfe2ff"] {
  background: #cfe2ff;
}
.highlight-color.active {
  outline: 2px solid #222;
  outline-offset: 2px;
}
.highlight-tools .btn {
  padding: 7px 10px;
  font-size: 0.78rem;
}
#notes-input {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
  position: relative;
}
.choice .text {
  flex: 1;
  min-width: 0;
}
.choice:hover {
  border-color: var(--accent);
}
.choice.selected {
  border-color: var(--accent);
  background: #fbefef;
}
.choice.correct {
  border-color: var(--green);
  background: #edf8f1;
}
.choice.incorrect {
  border-color: var(--red);
  background: #fbefef;
}
.choice.eliminated {
  position: relative;
  color: #999;
  background: #f1f1ef;
}
.choice.eliminated::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: #8d8d88;
  pointer-events: none;
}
.choice.eliminated .letter {
  background: #d0d0cc;
  color: #666;
}
/* Per-option eliminate/strikethrough icon */
.eliminate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  padding: 0;
}
.eliminate-icon:hover {
  color: #666;
  border-color: #ccc;
  background: #f5f5f3;
}
.choice.eliminated .eliminate-icon {
  color: #b3262e;
  border-color: #e0b3b5;
  background: #fdf0f0;
}
.choice .letter {
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.choice.selected .letter {
  background: var(--accent);
  color: #fff;
}
.choice.correct .letter {
  background: var(--green);
  color: #fff;
}
.test-action.active,
#mark-btn.active {
  color: var(--accent);
  font-weight: 700;
}
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 23, 23, 0.32);
}
.review-dialog {
  width: min(560px, 100%);
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.2);
}
.review-head,
.review-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-legend {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}
.review-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.review-dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1px dashed #777;
  background: #fff;
}
.review-dot.current {
  background: var(--accent);
  border-color: var(--accent);
}
.review-dot.correct {
  background: #dff3e5;
  border-color: var(--green);
}
.review-dot.incorrect {
  background: #fbe1e3;
  border-color: var(--red);
}
.review-dot.marked {
  background: #c72f46;
  border-color: #c72f46;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(38px, 1fr));
  gap: 10px;
}
.review-question {
  min-height: 38px;
  border: 1px dashed #777;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.review-question.answered {
  border-style: solid;
}
.review-question.correct {
  background: #dff3e5;
  border-color: var(--green);
  color: #165b31;
}
.review-question.incorrect {
  background: #fbe1e3;
  border-color: var(--red);
  color: #7e1d24;
}
.review-question.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.review-question.marked {
  box-shadow: inset 0 -5px #c72f46;
}
.review-finish {
  margin-top: 20px;
}
.choice.incorrect .letter {
  background: var(--red);
  color: #fff;
}
.hint-box {
  background: #fff8e8;
  border: 1px solid #e3c889;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.9rem;
  color: #654800;
}
.hidden {
  display: none !important;
}
.action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.feedback {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.feedback.correct {
  background: #edf8f1;
  border: 1px solid var(--green);
}
.feedback.incorrect {
  background: #fbefef;
  border: 1px solid var(--red);
}
.feedback .feedback-verdict {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.feedback.correct .feedback-verdict {
  color: var(--green);
}
.feedback.incorrect .feedback-verdict {
  color: var(--red);
}
.feedback-rationale {
  margin-bottom: 14px;
}
.feedback-rationale-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.feedback-rationale-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 72ch;
}
.feedback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.feedback-actions .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.sat-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: #eef3fb;
  border-top: 1px solid #d7e0ef;
  padding: 12px 20px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
}
.sat-footer-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.sat-footer .btn {
  padding: 8px 16px;
}

.summary-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.stat-block {
  text-align: center;
}
.stat-block .num {
  font-size: 1.6rem;
  font-weight: 700;
}
.stat-block .label {
  font-size: 0.78rem;
  color: var(--muted);
}
#skill-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
#skill-table td,
#skill-table th {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.acc-bar-bg {
  background: var(--border);
  border-radius: 4px;
  height: 8px;
  width: 100px;
  overflow: hidden;
}
.acc-bar-fill {
  height: 100%;
  background: var(--accent);
}
.mistake-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.mistake-item .m-tags {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.mistake-item .m-q {
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.mistake-item .m-answers {
  font-size: 0.85rem;
}
.mistake-item .wrong {
  color: var(--red);
}
.mistake-item .right {
  color: var(--green);
}
.question-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.visual-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid #b3262e;
  background: #fff4f2;
  color: #6f1d24;
  font-size: 0.9rem;
}

.group-count {
  color: #686863;
  font-size: 0.82em;
  font-weight: 500;
}
.question-map-heading h2 {
  margin-bottom: 4px;
}
.question-map-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.legend {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #7acb9a;
  border: 1px solid #25834d;
}
.question-map {
  display: grid;
  margin-top: 20px;
}
.map-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.map-controls label {
  color: var(--muted);
  font-size: 0.78rem;
}
.map-controls select {
  width: auto;
  min-width: 170px;
  margin-left: 6px;
  padding: 7px 9px;
}
.question-group {
  margin-top: 18px;
}
.question-group h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.question-subgroup {
  margin: 10px 0 14px 10px;
}
.question-subgroup h4 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}
.question-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 8px;
}
.question-tile {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.question-tile:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(31, 55, 130, 0.18);
}
.question-tile.correct {
  background: #bde8ca;
  border-color: #4caf70;
  color: #165b31;
}
.question-tile.recovered {
  background: #58bd7d;
  border: 2px solid #176436;
  color: #083d1d;
  box-shadow: inset 0 0 0 2px #bde8ca;
}
.question-tile.improved {
  background: #d9e9e9;
  border-color: #3e8e8e;
  color: #155b62;
  box-shadow: inset 0 0 0 2px #bfe3df;
}
.question-tile.incorrect {
  background: #f1b9bd;
  border-color: #c65a62;
  color: #7e1d24;
}
.redo-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 27, 53, 0.48);
}
.redo-dialog {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(10, 20, 50, 0.3);
}
.redo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.redo-passage {
  margin: 20px 0 14px;
  padding: 14px;
  background: #f7f7f5;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  white-space: pre-wrap;
}
.redo-choice {
  width: 100%;
  text-align: left;
}
.insight-text {
  margin-top: 12px;
  line-height: 1.7;
  font-size: 0.92rem;
  white-space: pre-wrap;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.insight-text.visible {
  max-height: 600px;
  opacity: 1;
  margin-top: 14px;
  padding: 12px 14px;
  background: #f9f9f7;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.summary-heading h2 {
  margin-bottom: 0;
}
.summary-section {
  margin: 24px 0;
}
.summary-section h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.summary-table-wrap {
  overflow-x: auto;
}
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.summary-table th,
.summary-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.summary-table th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.summary-table small {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
}
.result-correct {
  color: var(--green);
  font-weight: 700;
}
.result-wrong {
  color: var(--red);
  font-weight: 700;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.analysis-tile {
  border: 1px solid var(--border);
  background: #fbfbf9;
  padding: 14px;
  min-height: 112px;
}
.analysis-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.analysis-tile strong {
  display: block;
  margin: 9px 0 4px;
  font-size: 1.35rem;
}
.analysis-tile small {
  color: var(--muted);
  font-size: 0.75rem;
}
canvas {
  max-width: 100%;
}
.card:has(#difficulty-time-chart),
.card:has(#skill-question-time-chart) {
  padding-bottom: 12px;
}
.card:has(#difficulty-time-chart) canvas,
.card:has(#skill-question-time-chart) canvas {
  display: block;
  max-height: 150px;
}

@media (max-width: 760px) {
  #app {
    padding: 0 10px 40px;
  }
  .sat-testbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .sat-test-actions {
    flex-wrap: wrap;
  }
  .question-card {
    display: block;
    padding: 18px;
  }
  .question-card .q-text {
    padding: 0 0 18px;
  }
  .question-card .choices {
    margin-top: 18px;
  }
  .sat-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sat-footer-controls {
    justify-content: center;
  }
  .practice-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .test-workspace {
    display: block;
    min-height: 0;
  }
  .passage-panel,
  .answer-panel {
    padding: 18px 0;
  }
  .splitter {
    display: none;
  }
  .btn-delete {
    margin-left: 0;
  }
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-filters {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .export-json-btn {
    width: 100%;
  }
  .question-map-heading {
    flex-direction: column;
  }
}

@media print {
  body {
    background: #fff;
  }
  .topnav,
  #tab-setup,
  #tab-practice,
  #tab-dashboard,
  #tab-mistakes,
  #tab-settings,
  #summary-restart-btn,
  #download-summary-btn,
  canvas {
    display: none !important;
  }
  #tab-summary {
    display: block !important;
  }
  #tab-summary .card {
    border: 0;
    padding: 0;
  }
  .summary-heading {
    display: block;
  }
}

/* Exam shell: the practice module is deliberately separate from the app chrome. */
.exam-mode {
  background: #fff;
  overflow: hidden;
}
.exam-mode #app {
  max-width: none;
  height: 100dvh;
  padding: 0;
}
.exam-mode .topnav {
  display: none;
}
.exam-mode #tab-practice.active {
  display: grid;
  grid-template-rows: 68px 34px minmax(0, 1fr) 58px;
  height: 100dvh;
}
.exam-mode .sat-testbar {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #cbd2dc;
  border-radius: 0;
  background: #f7f9fc;
  padding: 10px 28px;
  color: #172033;
}
.exam-header-left,
.exam-header-center {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exam-header-left {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.exam-header-left strong {
  font-size: 1rem;
}
.exam-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 0;
}
.timer-wrap {
  text-align: center;
}
.timer-caption {
  display: block;
  color: #667085;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.exam-mode .timer {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1.1;
}
.timer.timer-warning {
  color: #a3262f;
}
.timer.timer-expired {
  color: #a3262f;
  animation: timer-pulse 1s infinite;
}
@keyframes timer-pulse {
  50% {
    opacity: 0.45;
  }
}
.exam-link,
.question-mark-btn {
  border: 0;
  background: transparent;
  color: #243450;
  cursor: pointer;
  font: inherit;
}
.exam-link {
  font-size: 0.76rem;
}
.exam-link:hover,
.question-mark-btn:hover {
  text-decoration: underline;
}
.exam-mode .sat-test-actions {
  position: relative;
  margin-left: auto;
  gap: 18px;
  font-size: 0.78rem;
}
.more-dots {
  font-size: 1.4rem;
  vertical-align: -2px;
}
.more-menu {
  position: absolute;
  right: 0;
  top: 28px;
  z-index: 30;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid #cbd2dc;
  box-shadow: 0 10px 28px rgba(20, 34, 58, 0.18);
}
.more-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #172033;
}
.more-menu button:hover {
  background: #eef2f8;
}
.exam-status-bar {
  margin: 0 28px;
  background: #20296f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.exam-mode .practice-header {
  display: none;
}
.exam-mode .question-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  margin: 0;
  padding: 0 28px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.exam-mode .q-tags,
.exam-mode .practice-actions,
.exam-mode .hint-box {
  display: none;
}
.exam-mode .test-workspace {
  grid-row: 1;
  min-height: 0;
  height: 100%;
  border: 0;
  grid-template-columns: var(--passage-width) 16px minmax(0, 1fr);
}
.exam-mode .passage-panel,
.exam-mode .answer-panel {
  overflow-y: auto;
  padding: 30px 34px 90px;
}
.exam-mode .passage-panel {
  padding-left: 10px;
}
.exam-mode .answer-panel {
  padding-right: 18px;
}
.exam-mode .panel-label {
  color: #172033;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}
.exam-mode .q-text,
.exam-mode .q-prompt {
  color: #1e2633;
  font-size: 1.02rem;
  line-height: 1.65;
}
.exam-mode .q-prompt {
  margin: 22px 0 24px;
  font-weight: 600;
}
.exam-mode .question-label {
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #cbd2dc;
}
.exam-mode .question-label span:first-child {
  width: 30px;
  height: 30px;
  background: #171b24;
}
.question-mark-btn {
  margin-left: auto;
  font-size: 0.8rem;
  white-space: nowrap;
}
.question-mark-btn.active {
  color: #bd2946;
  font-weight: 700;
}
.exam-mode .splitter {
  border-left: 2px solid #8d949e;
  border-right: 0;
  background: #fff;
}
.exam-mode .splitter span {
  border-radius: 3px;
}
.exam-mode .choices {
  gap: 12px;
  margin-top: 8px;
}
.exam-mode .choice {
  position: relative;
  min-height: 56px;
  padding: 13px 14px;
  border: 1px solid #9ba2ab;
  border-radius: 8px;
  background: #fff;
  color: #202630;
}
.exam-mode .choice:hover {
  border-color: #415fbb;
  background: #f5f7ff;
}
.exam-mode .choice.selected {
  border-color: #415fbb;
  background: #eef2ff;
  box-shadow: inset 4px 0 #3156c8;
}
.exam-mode .choice .letter {
  background: #fff;
  border: 1px solid #8a929d;
  color: #29313e;
}
.exam-mode .choice.selected .letter {
  background: #3156c8;
  border-color: #3156c8;
  color: #fff;
}
.exam-mode .eliminate-icon {
  width: 22px;
  height: 22px;
}
.choice.correct .eliminate-icon,
.choice.incorrect .eliminate-icon {
  display: none;
}
.exam-mode .feedback {
  position: static;
  grid-row: 2;
  max-height: 28vh;
  overflow-y: auto;
  margin: 0;
}
.exam-mode .sat-footer {
  z-index: 5;
  min-height: 58px;
  padding: 8px 28px;
  background: #f7f9fc;
  border-top: 1px solid #cbd2dc;
  color: #172033;
}
.exam-question-counter {
  border: 0;
  background: transparent;
  color: #172033;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.exam-question-counter span {
  margin-left: 6px;
  color: #415fbb;
}
.exam-mode .sat-footer .btn {
  min-width: 82px;
  border-radius: 4px;
  padding: 8px 18px;
}
.exam-mode .sat-footer .btn-ghost {
  border-color: #7e8794;
  color: #172033;
}

@media (max-width: 760px) {
  .exam-mode {
    overflow-y: auto;
  }
  .exam-mode #app {
    height: auto;
    min-height: 100dvh;
  }
  .exam-mode #tab-practice.active {
    grid-template-rows: auto auto auto auto;
    min-height: 100dvh;
    height: auto;
  }
  .exam-mode .sat-testbar {
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
  }
  .exam-header-left strong {
    max-width: 150px;
    font-size: 0.78rem;
  }
  .exam-header-center {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: auto;
  }
  .exam-mode .sat-test-actions {
    margin-left: 0;
    gap: 8px;
  }
  .exam-mode .test-action.notes-toggle,
  .exam-mode .test-action#eliminate-toggle {
    font-size: 0;
  }
  .exam-mode .test-action.notes-toggle::before {
    content: "Notes";
    font-size: 0.75rem;
  }
  .exam-mode .test-action#eliminate-toggle::before {
    content: "Eliminate";
    font-size: 0.75rem;
  }
  .exam-status-bar {
    margin: 0 14px;
  }
  .exam-mode .question-card {
    padding: 0 14px;
    overflow: visible;
  }
  .exam-mode .test-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto 16px auto;
    min-height: 0;
    height: auto;
    overflow: visible;
  }
  .exam-mode .passage-panel,
  .exam-mode .answer-panel {
    padding: 20px 14px 76px;
  }
  .exam-mode .passage-panel,
  .exam-mode .answer-panel {
    overflow: visible;
  }
  .exam-mode .splitter {
    display: block;
    border: 0;
    border-top: 2px solid #8d949e;
    cursor: row-resize;
  }
  .exam-mode .splitter span {
    position: static;
    width: fit-content;
    margin: -1px auto 0;
    transform: rotate(90deg);
  }
  .exam-mode .sat-footer {
    padding: 8px 14px;
  }
  .exam-footer-section {
    display: none;
  }
  .exam-mode .sat-footer-controls {
    width: 100%;
    justify-content: space-between;
  }
  .exam-mode .sat-footer {
    grid-template-columns: 1fr auto;
  }
  .exam-mode .exam-question-counter {
    font-size: 0.78rem;
  }
}
