﻿/* Progress Sidebar (placeholder, matches Level 3 style) */
.progress-sidebar {
  position: fixed;
  top: 80px;
  right: 0;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border-radius: 16px 0 0 16px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
  z-index: 1002;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  transition: transform 0.2s cubic-bezier(.4,0,.2,1);
  transform: translateX(100%);
}
.progress-sidebar.open {
  transform: translateX(0);
}
.progress-sidebar.hidden {
  display: none;
}
/* Dashboard hero stats row */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.stat-block {
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
  padding: 0.7em 1.2em;
  text-align: center;
  min-width: 80px;
}
.stat-block strong {
  font-size: 1.5em;
  color: var(--accent-ink, #222);
}
.stat-label {
  font-size: 0.95em;
  color: #888;
}
/* BTEC IT Level 2 Unit 2 — Design system matching Level 3 units */

:root {
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --ink: #14201E;
  --ink-2: #455452;
  --muted: #8A9694;
  --line: #E2E5DF;
  --line-2: #D6DBD3;
  --accent: #d46ba1;
  --accent-2: #f8d4e6;
  --accent-ink: #a03c7d;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --shadow-sm: 0 1px 2px rgba(20,32,30,.04), 0 4px 8px rgba(20,32,30,.04);
  --shadow-md: 0 6px 24px rgba(20,32,30,.08);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --font: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #111614;
  --surface: #18201d;
  --ink: #edf4f0;
  --ink-2: #b2c1bb;
  --muted: #8a9b94;
  --line: #2a3732;
  --line-2: #33423c;
  --accent-2: #b97ba5;
  --accent-ink: #a03c7d;
  --warn-bg: #3a2b10;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.24), 0 4px 10px rgba(0,0,0,.22);
  --shadow-md: 0 10px 28px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
select, option { color: var(--ink); background: var(--surface); }

/* ====== NAVBAR (matches Level 3 topbar) ====== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
    display: flex;
    flex-direction: row;
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
}
[data-theme="dark"] .navbar { background: rgba(17,22,20,.92); }
    align-items: center;
.navbar-content {
  width: 100%; max-width: none; margin: 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-unit-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.site-unit-link{
  text-decoration:none;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  border:1px solid var(--line-2);
  color:var(--ink-2);
  background:var(--surface);
  border-radius:999px;
  padding:5px 10px;
}
.site-unit-link:hover{border-color:var(--accent);color:var(--accent-ink);background:var(--accent-2)}
.navbar-brand {
  font-size: 16px; font-weight: 900; letter-spacing: -0.01em;
  color: var(--ink); margin-right: auto; white-space: nowrap;
}
.navbar-nav { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; flex: 1 1 auto; }
.nav-link {
  background: transparent; border: 0; padding: 7px 12px;
  font-weight: 600; color: var(--ink-2); border-radius: var(--r-sm);
  cursor: pointer; font-size: 13px; text-decoration: none;
  transition: background .15s, color .15s; display: inline-block;
}
.nav-link:hover { background: var(--accent-2); color: var(--accent-ink); }
.nav-link.active { background: var(--accent); color: white; }

/* ====== LAYOUT ====== */
.page-content { padding: 0; }
.container { width: 100%; max-width: none; margin: 0; padding: 28px clamp(16px, 2.2vw, 30px) 68px; }
.tab-content { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: var(--font); white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ====== DASHBOARD ====== */
.dashboard { display: flex; flex-direction: column; gap: 28px; }

/* Hero */
.dashboard-hero {
  display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 32px; padding: 36px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border: 2px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(20,32,30,.06);
  position: relative; overflow: hidden;
}
.dashboard-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(160,60,125,.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.hero-text, .hero-actions, .stats-row { position: relative; z-index: 1; }
.hero-chip {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.hero-text h1 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.05; font-weight: 900; }
.hero-text p { font-size: 16px; color: var(--ink-2); margin: 0 0 20px; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Stats grid (right of hero) */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px;
  transition: all .2s ease;
}
.stat-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(160,60,125,.16); transform: translateY(-2px); }
.stat-icon { font-size: 20px; margin-bottom: 6px; display: block; }
.stat-value { font-size: 26px; font-weight: 900; color: var(--accent); display: block; line-height: 1.05; }
.stat-label { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 2px; }
.stat-body { display: flex; flex-direction: column; }

/* Aim cards */
.section-heading {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-2); margin-bottom: 2px;
}
.aims-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aim-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.aim-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.aim-badge {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; margin-bottom: 12px;
}
.aim-card.aim-b .aim-badge { background: var(--accent-ink); }
.aim-card.aim-c .aim-badge { background: #bd5f90; }
.aim-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.aim-desc { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-bottom: 10px; }
.aim-count { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.aim-btns { display: flex; gap: 8px; }

/* Tool grid */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 18px; text-align: center; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  font-family: var(--font);
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tool-icon { font-size: 26px; margin-bottom: 8px; }
.tool-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.tool-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

.ai-tool-card {
  border: 1px solid #7e5bef;
  background: linear-gradient(135deg, #f6f2ff 0%, #efe8ff 100%);
  box-shadow: 0 10px 28px rgba(108,74,205,.18);
}
.ai-tool-card .tool-icon { color: #6f4ae6; }
.ai-tool-card .tool-name { color: #3c276f; }
.ai-tool-card .tool-desc { color: #56408e; }
.ai-tool-card:hover { border-color: #6f4ae6; box-shadow: 0 14px 30px rgba(108,74,205,.24); }
[data-theme="dark"] .ai-tool-card {
  background: linear-gradient(135deg, #2a2040 0%, #231a35 100%);
  border-color: #7e5bef;
}
[data-theme="dark"] .ai-tool-card .tool-name,
[data-theme="dark"] .ai-tool-card .tool-desc,
[data-theme="dark"] .ai-tool-card .tool-icon { color: #dfd2ff; }

/* ====== PRACTICE ====== */
.practice-header, .quiz-header {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px; margin-bottom: 20px;
}
.practice-header h2, .quiz-header h2 { font-size: 20px; margin: 0 0 14px; font-weight: 900; }
.practice-controls, .quiz-controls {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.practice-controls label, .quiz-controls label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2);
}
.practice-controls select, .quiz-controls select {
  padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg); font-family: var(--font); font-size: 14px; color: var(--ink);
}
.practice-container { display: flex; flex-direction: column; gap: 10px; }
.question-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px;
  transition: border-color .15s;
}
.question-card:hover { border-color: var(--accent); }
.question-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.q-id { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.q-marks {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--ink); color: white; text-transform: uppercase; letter-spacing: 0.05em;
}
.q-scenario {
  background: var(--bg); border-left: 3px solid var(--accent-2);
  padding: 10px 14px; margin-bottom: 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px; color: var(--ink-2); font-style: italic;
}
.q-text { margin-bottom: 14px; font-size: 15px; line-height: 1.6; }
.mc-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mc-option {
  display: flex; align-items: center; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; transition: all .15s;
}
.mc-option:hover { border-color: var(--accent); background: var(--accent-2); }
.mc-option input[type="radio"] { margin-right: 10px; cursor: pointer; accent-color: var(--accent); }
.mc-option span { font-size: 14px; }
.answer-input { display: flex; flex-direction: column; gap: 10px; }
.answer-input input, .answer-input textarea {
  padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; resize: vertical;
  background: var(--bg); color: var(--ink);
}
.answer-input input:focus, .answer-input textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,60,125,.14);
}
.q-feedback { margin-top: 14px; }
.feedback {
  padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px;
  border-left: 4px solid;
}
.feedback.correct { background: #d1fae5; color: #064e3b; border-color: #10b981; }
.feedback.incorrect { background: var(--warn-bg); color: #7c2d12; border-color: var(--warn); }

/* ====== QUIZ ====== */
.quiz-progress { margin-bottom: 20px; }
.progress-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.progress-bar div { height: 100%; background: var(--accent); transition: width 0.3s; }
.quiz-question {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px; max-width: 780px; margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.quiz-question .q-marks { float: right; margin-top: -4px; }
.quiz-question p { margin-bottom: 18px; font-size: 16px; clear: both; line-height: 1.6; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.quiz-option {
  display: flex; align-items: center; padding: 13px 16px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; transition: all .15s;
}
.quiz-option:hover { border-color: var(--accent); background: var(--accent-2); }
.quiz-option input { margin-right: 12px; cursor: pointer; accent-color: var(--accent); }
.quiz-option span { font-size: 15px; }
.quiz-nav { display: flex; gap: 12px; }
.quiz-nav .btn { flex: 1; justify-content: center; }
.quiz-results {
  text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 48px 24px; max-width: 480px;
  margin: 40px auto; box-shadow: var(--shadow-md);
}
.quiz-results h3 { font-size: 22px; margin-bottom: 24px; font-weight: 900; }
.result-score .score { font-size: 56px; font-weight: 900; color: var(--accent); line-height: 1; display: block; }
.result-score .percentage { font-size: 22px; color: var(--muted); margin-top: 6px; }
.result-message { font-size: 17px; margin: 20px 0; color: var(--ink-2); }
.quiz-results .btn { margin-top: 10px; width: 100%; justify-content: center; }

/* ====== FLASHCARDS ====== */
.flash-page { display: flex; flex-direction: column; gap: 18px; }
.flash-topbar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.flash-topbar h2 { font-size: 20px; font-weight: 900; margin: 0; }
.flash-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.aim-filter-btn {
  padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink-2); font-weight: 700;
  font-size: 12px; cursor: pointer; transition: all .15s; font-family: var(--font);
  letter-spacing: 0.02em;
}
.aim-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.aim-filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

.flash-progress-bar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 18px;
}
.fp-labels { display: flex; gap: 20px; margin-bottom: 7px; }
.fp-known { color: #059669; font-weight: 700; font-size: 13px; }
.fp-learning { color: var(--warn); font-weight: 700; font-size: 13px; }
.fp-unseen { color: var(--muted); font-weight: 700; font-size: 13px; }
.fp-track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; position: relative; }
.fp-fill { position: absolute; top: 0; height: 100%; border-radius: 3px; transition: width 0.4s; }
.fp-fill-known { background: #10b981; left: 0; }
.fp-fill-learning { background: var(--warn); }

.flash-area {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  min-height: 360px; padding: 8px 0;
}
.flash-loading { color: var(--muted); padding: 60px; font-size: 16px; }
.flash-counter { font-size: 14px; color: var(--muted); font-weight: 700; }
.flash-counter span { font-weight: 400; }

/* Flip card */
.flashcard {
  width: 100%; max-width: 620px; height: 280px;
  perspective: 1200px; cursor: pointer; user-select: none; position: relative;
}
.flashcard-face {
  position: absolute; width: 100%; height: 100%;
  border-radius: var(--r-lg); padding: 28px 32px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}
.flashcard-front {
  background: var(--accent);
  color: white; transform: rotateY(0deg);
}
[data-theme="dark"] .flashcard-front { background: var(--accent-ink); }
.flashcard-back {
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--accent); transform: rotateY(180deg);
}
.flashcard.flipped .flashcard-front { transform: rotateY(-180deg); }
.flashcard.flipped .flashcard-back { transform: rotateY(0deg); }

.fc-aim-badge {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.25); color: white;
  font-weight: 900; font-size: 13px; margin-bottom: 14px;
}
.flashcard-back .fc-aim-badge { background: var(--accent-2); color: var(--accent-ink); }
.fc-topic {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.7; margin-bottom: 10px;
}
.fc-term { font-size: 22px; font-weight: 900; line-height: 1.25; color: white; }
.fc-definition { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.flashcard-back .fc-topic { color: var(--muted); }
.fc-hint { font-size: 11px; opacity: 0.55; margin-top: auto; align-self: flex-end; }

.flash-nav-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 620px; flex-wrap: wrap;
}
.flash-nav-btn { min-width: 88px; justify-content: center; }
.flash-mark-btns { display: flex; gap: 8px; flex: 1; justify-content: center; }
.mark-known { background: #d1fae5; border-color: #10b981; color: #064e3b; }
.mark-known:hover { background: #a7f3d0; border-color: #10b981; }
.mark-learning { background: var(--warn-bg); border-color: var(--warn); color: var(--accent-ink); }
.mark-learning:hover { background: #fde68a; border-color: var(--warn); }
.mark-neutral { background: var(--surface); }

/* ====== REVISION GUIDE ====== */
.guide-shell { display: flex; align-items: flex-start; gap: 18px; }
.guide-sidebar {
  width: 268px; flex-shrink: 0; position: sticky; top: 88px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.guide-sidebar-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px; border-bottom: 1px solid var(--line);
}
.guide-toc-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
}
.guide-sb-toggle {
  display: none; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  border-radius: 999px; font-size: 12px; padding: 5px 10px; font-weight: 700;
}
.guide-toc-scroll { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.guide-toc-aim-link {
  width: 100%; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  border-radius: var(--r-sm); padding: 10px 11px; display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-family: var(--font); text-align: left;
}
.guide-toc-aim-link:hover { border-color: var(--accent); }
.guide-toc-aim-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.guide-toc-badge {
  width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: rgba(255,255,255,0.14); color: currentColor;
}
.guide-toc-name { font-size: 13px; font-weight: 700; line-height: 1.2; }

.guide-main { flex: 1; min-width: 0; }
.guide-topbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; margin-bottom: 12px;
}
.guide-topbar h2 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.guide-topbar p { margin: 0; font-size: 13px; color: var(--ink-2); }

.guide-aim-section { display: flex; flex-direction: column; gap: 10px; }
.guide-topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.guide-topic-hd {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  border: 0; background: none; cursor: pointer; padding: 13px 15px; font-family: var(--font);
}
.guide-topic-hd:hover { background: var(--bg); }
.guide-topic-code {
  font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--accent);
}
.guide-topic-name { flex: 1; font-size: 14px; font-weight: 700; color: var(--ink); }
.guide-topic-chevron { font-size: 11px; color: var(--muted); transition: transform .2s ease; }
.guide-topic.open .guide-topic-chevron { transform: rotate(180deg); }

.guide-topic-body {
  display: none; padding: 16px 20px; border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.75; color: var(--ink-2);
}
.guide-topic.open .guide-topic-body { display: block; animation: fade .2s ease; }
.guide-topic-body p { margin: 0 0 8px; }
.guide-topic-body .guide-subheading {
  margin: 14px 0 4px; font-size: 11px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.guide-topic-body ul, .guide-topic-body ol { padding-left: 20px; margin: 4px 0 12px; }
.guide-topic-body li { margin-bottom: 5px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 820px) {
  .container { padding: 24px 18px 64px; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 28px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .aims-row { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 18px 12px 56px; }
  .site-unit-nav { gap: 6px; width: 100%; }
  .site-unit-link { font-size: 10px; padding: 4px 8px; }
  .navbar-content { gap: 8px; }
  .navbar-brand { font-size: 14px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dashboard-hero { padding: 26px 18px; gap: 18px; }
  .hero-text h1 { font-size: clamp(22px, 7.2vw, 30px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .flashcard { height: 260px; }
  .fc-term { font-size: 18px; }
  .flash-nav-row { flex-wrap: wrap; }
  .flash-mark-btns { order: -1; width: 100%; }
  .guide-shell { flex-direction: column; }
  .guide-sidebar {
    width: 100%; position: static;
  }
  .guide-sb-toggle { display: inline-flex; }
  .guide-toc-scroll { display: none; }
  .guide-sidebar.sb-open .guide-toc-scroll { display: flex; }
}

/* Compact merged nav polish */
.navbar-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.unit-brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.unit-brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  object-fit: cover;
  display: block;
}

.unit-brand span {
  font-size: clamp(1.125rem, 1rem + .75vw, 1.5rem);
  line-height: 1;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.site-unit-nav {
  order: 2;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.site-unit-link {
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: var(--r-sm);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-unit-link:hover {
  background: var(--accent-2);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.unit-avatar-btn {
  order: 5;
  width: 36px;
  height: 36px;
  padding: 0;
  appearance: none;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.unit-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
}

.unit-avatar-btn:hover {
  border-color: var(--accent);
}

.navbar-nav {
  order: 3;
  flex: 0 1 auto;
  min-width: auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin: 0;
}

.nav-link {
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link.active {
  background: var(--accent-2);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: none;
}

#unit2-credit-chip {
  order: 4;
  margin: 0 !important;
}

@media (max-width: 640px) {
  .navbar-content {
    gap: 6px;
    flex-wrap: wrap;
  }

  .unit-avatar-btn {
    order: 2;
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .unit-brand {
    order: 1;
  }

  #unit2-credit-chip {
    order: 5;
    margin-left: auto !important;
    width: auto;
  }

  .site-unit-nav {
    order: 3;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 0;
  }

  .site-unit-link {
    font-size: 11px;
    padding: 5px 10px;
  }

  .navbar-nav {
    order: 4;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .nav-link {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .navbar-content {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    align-items: flex-start;
  }

  .unit-brand {
    flex-shrink: 0;
  }

  .site-unit-nav,
  .navbar-nav {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .site-unit-nav::-webkit-scrollbar,
  .navbar-nav::-webkit-scrollbar {
    display: none;
  }

  .site-unit-link,
  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .navbar-nav {
    order: 6;
    width: 100%;
    flex: 1 0 100%;
    min-width: 100%;
  }

  .site-unit-nav {
    order: 3;
  }

  #unit2-credit-chip {
    margin-left: 0 !important;
    flex-shrink: 0;
  }

  .unit-avatar-btn {
    flex-shrink: 0;
  }
}

/* ====== UTILITIES ====== */
.muted { color: var(--muted); font-size: 13px; text-align: center; padding: 32px; }
.error {
  background: var(--warn-bg); color: #7c2d12; padding: 14px 18px;
  border-radius: var(--r-sm); border-left: 4px solid var(--warn); font-size: 14px;
}

/* ====== PRACTICE MODE ====== */
.practice-page { display: flex; flex-direction: column; gap: 18px; }
.practice-setup-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 28px;
}
.practice-setup-card h2 { font-size: 20px; font-weight: 900; margin: 0 0 6px; }
.practice-setup-desc { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.practice-setup-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.setup-label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2);
}
.setup-label select {
  padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg); font-family: var(--font); font-size: 14px; color: var(--ink);
  min-width: 200px;
}

/* One-at-a-time practice card */
.practice-card-one {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .site-unit-nav {
    display: none !important;
  }
}

.practice-prog { display: flex; flex-direction: column; gap: 6px; }
.practice-prog-track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.practice-prog-fill { height: 100%; background: var(--accent); transition: width 0.3s; }
.practice-prog-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.practice-q-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.practice-q-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Tags */
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em; }
.id-tag { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); font-family: var(--mono); }
.marks-tag { background: var(--ink); color: white; }
.type-tag { background: var(--accent-2); color: var(--accent-ink); }
.aim-tag { background: var(--accent); color: white; }

.practice-scenario {
  background: var(--bg); border-left: 3px solid var(--accent-2);
  padding: 10px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px; color: var(--ink-2); font-style: italic;
}
.practice-question-text { font-size: 16px; line-height: 1.6; margin: 0; }
.marks-bracket { color: var(--muted); font-size: 14px; font-style: normal; }

/* MC practice options */
.mc-practice { display: flex; flex-direction: column; gap: 8px; }
.mc-practice-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s; user-select: none;
}
.mc-practice-row:hover { border-color: var(--accent); background: var(--accent-2); }
.mc-practice-row:has(input:checked) { border-color: var(--accent); background: var(--accent-2); }
.mc-practice-letter {
  width: 26px; height: 26px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; flex-shrink: 0;
}
.mc-practice-row:has(input:checked) .mc-practice-letter { background: var(--accent); color: white; border-color: var(--accent); }
.mc-practice-text { font-size: 14px; }

@media (min-width: 641px) and (max-width: 1024px) {
  .navbar-content {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .navbar-nav {
    order: 20 !important;
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 0 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
  }

  .nav-link {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}
.mc-practice-row input[type="radio"] { display: none; }

/* Written answer textarea */
.practice-textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; resize: vertical; background: var(--bg); color: var(--ink);
  line-height: 1.65; min-height: 100px;
}
.practice-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,60,125,.14); }

/* Action buttons row */
.practice-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-ai-examine {
  background: linear-gradient(120deg, #581c87 0%, #7c3aed 50%, #a855f7 100%);
  color: white; border: none; font-weight: 700; border-radius: var(--r-sm);
  padding: 9px 16px; cursor: pointer; font-family: var(--font); font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 0 12px rgba(124,58,237,.25);
}
.btn-ai-examine:hover { opacity: .9; transform: translateY(-1px); }
.btn-ai-examine:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ai-star { font-size: 14px; }

/* Automark box */
.practice-feedback-area { display: flex; flex-direction: column; gap: 12px; }
.automark-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.ai-examiner-box {
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
  border-color: #c4b5fd;
}
[data-theme="dark"] .ai-examiner-box { background: #1e1b2e; border-color: #4c1d95; }
.automark-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.am-eyebrow { font-size: 13px; font-weight: 700; color: var(--ink-2); flex: 1; }
.automark-score { display: flex; align-items: baseline; gap: 3px; }
.automark-score .value { font-size: 26px; font-weight: 900; color: var(--accent); line-height: 1; }
.automark-score .total { font-size: 14px; color: var(--muted); }
.automark-score.am-good .value { color: #059669; }
.automark-score.am-bad .value { color: var(--warn); }
.automark-adjust { display: flex; gap: 4px; }
.automark-adjust .btn { padding: 4px 10px; font-size: 16px; line-height: 1; min-width: 32px; justify-content: center; }
.automark-detail { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Mark scheme point hits/misses */
.automark-hits ul { margin: 6px 0 0; padding-left: 20px; }
.automark-hits li { font-size: 13px; margin-bottom: 4px; line-height: 1.5; }
.automark-hits li.hit { color: #059669; }
.automark-hits li.hit::marker { content: "✓ "; }
.automark-hits li.miss { color: var(--ink-2); opacity: .7; }
.automark-hits li.miss::marker { content: "○ "; }

/* AI feedback cards */
.ai-feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ai-feedback-grid { grid-template-columns: 1fr; } }
.ai-feedback-card { background: var(--surface); border-radius: var(--r-sm); padding: 14px 16px; border: 1px solid var(--line); }
.ai-feedback-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; margin: 0 0 8px; color: var(--ink-2); }
.ai-feedback-card.good h4 { color: #059669; }
.ai-feedback-card.improve h4 { color: var(--warn); }
.ai-feedback-card ul { margin: 0; padding-left: 18px; }
.ai-feedback-card li { font-size: 13px; margin-bottom: 5px; line-height: 1.5; color: var(--ink-2); }

/* MC result */
.mc-result-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.mc-result-row {
  padding: 9px 13px; border-radius: var(--r-sm); font-size: 13px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
}
.mc-result-correct { background: #d1fae5; border-color: #10b981; color: #064e3b; font-weight: 700; }
.mc-result-wrong { background: var(--warn-bg); border-color: var(--warn); color: #7c2d12; }
.mc-tick { color: #059669; font-weight: 900; margin-left: 6px; }
.mc-cross { color: var(--warn); font-weight: 900; margin-left: 6px; }

/* Inline mark scheme */
.practice-ms-area {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; animation: fade .2s ease;
}
.ms-block h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.ms-instruction { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.ms-block ul { margin: 0 0 8px; padding-left: 20px; }
.ms-block li { font-size: 13px; margin-bottom: 4px; line-height: 1.5; }
.ms-note { font-size: 12px; color: var(--muted); font-style: italic; margin: 6px 0 0; }
.ms-dna { font-size: 12px; color: var(--warn); background: var(--warn-bg); border-radius: var(--r-sm); padding: 6px 10px; margin-top: 6px; }

/* Session complete card */
.practice-complete {
  text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 48px 24px; max-width: 440px;
  margin: 20px auto; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.pc-icon { font-size: 48px; }
.practice-complete h3 { font-size: 22px; font-weight: 900; margin: 0; }
.practice-complete p { font-size: 15px; color: var(--ink-2); margin: 0; }
.practice-complete .btn { width: 100%; justify-content: center; }

/* ====== QUIZ CARD (new) ====== */
.quiz-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px; max-width: 780px; margin: 0 auto;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.quiz-prog-track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.quiz-prog-fill { height: 100%; background: var(--accent); transition: width 0.3s; }
.quiz-prog-label { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 6px; display: block; }
.quiz-q-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.quiz-scenario {
  background: var(--bg); border-left: 3px solid var(--accent-2);
  padding: 10px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px; color: var(--ink-2);
}
.quiz-question-text { font-size: 16px; line-height: 1.6; margin: 0; }
.quiz-opt-letter {
  width: 26px; height: 26px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; flex-shrink: 0;
}
.quiz-opt-text { font-size: 14px; flex: 1; }
.quiz-option.selected { border-color: var(--accent); background: var(--accent-2); }
.quiz-option.selected .quiz-opt-letter { background: var(--accent); color: white; border-color: var(--accent); }
.quiz-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s; user-select: none; }
.quiz-option:hover { border-color: var(--accent); background: var(--accent-2); }
.quiz-option input[type="radio"] { display: none; }
.quiz-nav { display: flex; gap: 10px; margin-top: 4px; }
.quiz-nav .btn { flex: 1; justify-content: center; }

/* ====== QUIZ RESULTS (new) ====== */
.quiz-results {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 24px; max-width: 640px; margin: 30px auto;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.qr-icon { font-size: 48px; }
.quiz-results h3 { font-size: 22px; font-weight: 900; margin: 0; }
.qr-score { display: flex; align-items: baseline; gap: 4px; }
.qr-val { font-size: 52px; font-weight: 900; color: var(--accent); line-height: 1; }
.qr-total { font-size: 22px; color: var(--muted); }
.qr-pct { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.qr-msg { font-size: 16px; color: var(--ink-2); margin: 0; }
.qr-review { width: 100%; text-align: left; margin-top: 8px; }
.qr-review h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); font-weight: 700; margin: 0 0 10px; }
.qr-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg); margin-bottom: 6px; flex-wrap: wrap; font-size: 13px;
}
.qr-correct { border-color: #10b981; background: #d1fae5; }
.qr-wrong { border-color: var(--warn); background: var(--warn-bg); }
.qr-tick { font-weight: 900; flex-shrink: 0; margin-top: 1px; }
.qr-correct .qr-tick { color: #059669; }
.qr-wrong .qr-tick { color: var(--warn); }
.qr-q-text { flex: 1; min-width: 200px; color: var(--ink); font-weight: 600; }
.qr-answer { width: 100%; padding-left: 20px; color: var(--ink-2); font-size: 12px; }
.qr-btns { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; margin-top: 4px; }
.qr-btns .btn { flex: 1; justify-content: center; }

/* ====== BROWSE ALL QUESTIONS ====== */
.browse-page { display: flex; flex-direction: column; gap: 16px; }
.browse-header { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; }
.browse-header h2 { font-size: 20px; font-weight: 900; margin: 0 0 4px; }
.browse-sub { font-size: 14px; color: var(--ink-2); margin: 0; }
.browse-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px;
}
.browse-search {
  flex: 1; min-width: 180px; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; background: var(--bg); color: var(--ink);
}
.browse-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,60,125,.14); }
.browse-select {
  padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; background: var(--bg); color: var(--ink);
}
.browse-count-row { padding: 2px 0 0; }
#browse-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.browse-list { display: flex; flex-direction: column; gap: 6px; }

/* ====== QROW (expandable question rows) ====== */
.qrow {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; transition: border-color .15s;
}
.qrow:hover { border-color: var(--accent-2); }
.qrow.open { border-color: var(--accent); }
.qrow-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; cursor: pointer; user-select: none; gap: 10px;
}
.qrow-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.qrow-chevron { font-size: 10px; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.qrow.open .qrow-chevron { color: var(--accent); }
.qrow-preview {
  font-size: 13px; color: var(--ink-2); padding: 0 16px 10px;
  line-height: 1.45;
}
.qrow.open .qrow-preview { display: none; }
.qrow-body {
  display: none; padding: 16px 20px;
  border-top: 1px solid var(--line);
  animation: fade .2s ease;
}
.qrow.open .qrow-body { display: block; }
.qrow-scenario {
  background: var(--bg); border-left: 3px solid var(--accent-2);
  padding: 8px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13px; color: var(--ink-2); margin-bottom: 10px;
}
.qrow-question { font-size: 15px; line-height: 1.6; margin: 0 0 14px; font-weight: 500; }
.qrow-ms {
  background: var(--bg); border-radius: var(--r-sm);
  padding: 14px 16px; border: 1px solid var(--line);
}
.qrow-ms-heading {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 700; color: var(--accent); margin: 0 0 10px;
}
.qrow-ms-answer { font-size: 14px; color: var(--ink); margin: 0 0 6px; }
.qrow-ms-note { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.qrow-ms-opts { margin: 0 0 6px; padding-left: 20px; }
.qrow-ms-opts li { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.qrow-ms-opts .qrow-ms-opt-correct { color: #059669; font-weight: 600; }
.qrow-ms-points { margin: 4px 0 8px; padding-left: 20px; }
.qrow-ms-points li { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; line-height: 1.5; }
.qrow-ms-guidance { font-size: 12px; color: var(--muted); font-style: italic; margin: 6px 0 0; }
.qrow-ms-dna { font-size: 12px; color: var(--warn); background: var(--warn-bg); border-radius: var(--r-sm); padding: 6px 10px; margin-top: 6px; }

/* ====== SUBJECT BANNER ====== */
.ra10-subject-banner {
  background: var(--accent-2); border-bottom: 1px solid var(--accent);
  padding: 7px 24px; font-size: 13px; text-align: center; color: var(--accent-ink);
}
.ra10-subject-banner .line-main { font-weight: 700; }
.ra10-subject-banner .line-sub { font-size: 12px; opacity: 0.75; }
