/* ─── GMAT Tracker ─ Main Stylesheet ──────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg:           #f4f6fb;
  --bg-card:      #ffffff;
  --bg-deep:      #0f1623;
  --bg-sidebar:   #1a2236;
  --fg:           #0f1623;
  --fg-soft:      #5a6480;
  --fg-fade:      #9aa3b8;
  --fg-on-dark:   #ffffff;
  --accent:       #3b6ef8;
  --accent-hover: #2453d6;
  --accent-soft:  rgba(59,110,248,0.09);
  --accent-glow:  rgba(59,110,248,0.22);
  --green:        #1db87a;
  --green-soft:   rgba(29,184,122,0.10);
  --yellow:       #f5a623;
  --yellow-soft:  rgba(245,166,35,0.10);
  --red:          #e53e3e;
  --red-soft:     rgba(229,62,62,0.10);
  --purple:       #7c3aed;
  --purple-soft:  rgba(124,58,237,0.10);
  --border:       #e2e6f0;
  --border-dark:  rgba(255,255,255,0.08);

  --font: "Inter", -apple-system, system-ui, sans-serif;

  --r-sm:  6px;
  --r:     10px;
  --r-lg:  16px;
  --r-xl:  22px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  240ms;

  --nav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: var(--font); outline: none; }

/* ── TOP NAV ─────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space, 1.5rem);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-dark);
}
.topnav-brand {
  display: flex; align-items: center; gap: 0.6rem;
}
.topnav-brand .logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 1rem;
}
.topnav-brand span {
  font-size: 1.1rem; font-weight: 800;
  color: var(--fg-on-dark);
  letter-spacing: -0.03em;
}
.topnav-brand small {
  font-size: 0.7rem; font-weight: 500; color: var(--fg-fade);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.topnav-right { display: flex; align-items: center; gap: 1rem; }
.nav-score-badge {
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-size: 0.8rem; font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-score-badge.hidden { display: none; }

/* ── MAIN LAYOUT ──────────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
}

/* ── SIDEBAR ──────────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-sidebar);
  padding: 1.5rem 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  border-right: 1px solid var(--border-dark);
}
.sidebar-section { padding: 0 1rem 1.25rem; }
.sidebar-label {
  font-size: 0.68rem; font-weight: 700;
  color: var(--fg-fade);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0 0.5rem 0.6rem;
  display: block;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); }
.sidebar-nav-item.active { background: var(--accent); color: white; }
.sidebar-nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border-dark); margin: 0.5rem 1rem 1rem; }

/* ── MAIN CONTENT ─────────────────────────────────────────────── */
.main-content {
  padding: 2rem;
  max-width: 1100px;
}

/* ── PANELS (tab views) ───────────────────────────────────────── */
.panel { display: none; }
.panel.active { display: block; }

/* ── PAGE HEADER ──────────────────────────────────────────────── */
.page-header { margin-bottom: 1.75rem; }
.page-header h1 { font-size: 1.75rem; margin-bottom: 0.3rem; }
.page-header p { color: var(--fg-soft); font-size: 0.95rem; }

/* ── CARDS ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1rem; }
.card-title {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--fg-soft); margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ── STAT ROW ─────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .stat-label { font-size: 0.78rem; font-weight: 600; color: var(--fg-soft); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.4rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat-card .stat-sub { font-size: 0.78rem; color: var(--fg-fade); margin-top: 0.3rem; }
.stat-card.accent-green .stat-value { color: var(--green); }
.stat-card.accent-blue  .stat-value { color: var(--accent); }
.stat-card.accent-yellow .stat-value { color: var(--yellow); }
.stat-card.accent-red   .stat-value { color: var(--red); }

/* ── COACH CARD ───────────────────────────────────────────────── */
.coach-card {
  border-radius: var(--r-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.coach-card.state-empty {
  background: linear-gradient(135deg, #1a2236 0%, #0f1623 100%);
  border: 1px solid var(--border-dark);
  color: white;
}
.coach-card.state-sample {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2644 100%);
  border: 1px solid rgba(59,110,248,0.3);
  color: white;
}
.coach-card.state-questions {
  background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
  border: 1px solid rgba(29,184,122,0.3);
  color: white;
}
.coach-card.state-threshold {
  background: linear-gradient(135deg, #4a1d96 0%, #2e1065 100%);
  border: 1px solid rgba(124,58,237,0.3);
  color: white;
}
.coach-card .coach-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  opacity: 0.7; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.coach-pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.coach-card h2 { font-size: 1.4rem; margin-bottom: 0.6rem; line-height: 1.3; }
.coach-card p { font-size: 0.92rem; opacity: 0.8; max-width: 600px; line-height: 1.6; }
.coach-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.coach-deco {
  position: absolute; right: -20px; top: -20px;
  font-size: 8rem; opacity: 0.07; pointer-events: none;
  line-height: 1;
}

/* ── FOCUS BAR ────────────────────────────────────────────────── */
.focus-area-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.focus-icon {
  width: 52px; height: 52px; border-radius: var(--r);
  display: grid; place-items: center; font-size: 1.5rem;
  flex-shrink: 0;
}
.focus-icon.quant    { background: var(--accent-soft); }
.focus-icon.verbal   { background: var(--green-soft); }
.focus-icon.di       { background: var(--yellow-soft); }
.focus-icon.none     { background: var(--bg); border: 1px solid var(--border); }
.focus-body { flex: 1; }
.focus-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.focus-body p  { font-size: 0.85rem; color: var(--fg-soft); }
.focus-tag {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem; border-radius: 999px;
  flex-shrink: 0;
}
.focus-tag.quant  { background: var(--accent-soft); color: var(--accent); }
.focus-tag.verbal { background: var(--green-soft); color: var(--green); }
.focus-tag.di     { background: var(--yellow-soft); color: var(--yellow); }
.focus-tag.none   { background: var(--bg); color: var(--fg-soft); border: 1px solid var(--border); }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 600;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur);
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: white; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-alt, #f4f6fb); }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid rgba(229,62,62,0.2); }
.btn-danger:hover { background: var(--red); color: white; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMS ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--fg); margin-bottom: 0.4rem; }
.form-control {
  width: 100%; padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem; color: var(--fg);
  background: var(--bg-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-control::placeholder { color: var(--fg-fade); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.78rem; color: var(--fg-fade); margin-top: 0.25rem; }

/* ── MODAL ────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,22,35,0.65);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 540px;
  padding: 2rem;
  transform: translateY(12px);
  transition: transform var(--dur) var(--ease);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--fg-fade); line-height: 1; padding: 0.2rem; }
.modal-close:hover { color: var(--fg); }
.modal-footer { margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── PROGRESS BAR ─────────────────────────────────────────────── */
.progress-wrap { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar  { height: 100%; border-radius: 999px; transition: width 0.6s var(--ease); }
.progress-bar.blue   { background: var(--accent); }
.progress-bar.green  { background: var(--green); }
.progress-bar.yellow { background: var(--yellow); }
.progress-bar.red    { background: var(--red); }
.progress-bar.purple { background: var(--purple); }

/* ── SECTION SCORE BARS ───────────────────────────────────────── */
.section-score-list { display: flex; flex-direction: column; gap: 1.1rem; }
.section-score-item {}
.section-score-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.section-score-name { font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.section-score-right { display: flex; align-items: center; gap: 0.75rem; }
.section-score-pct { font-size: 0.85rem; font-weight: 700; }
.section-score-count { font-size: 0.75rem; color: var(--fg-fade); }
.score-badge {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.1rem 0.5rem; border-radius: 999px;
}
.score-badge.weak   { background: var(--red-soft); color: var(--red); }
.score-badge.ok     { background: var(--yellow-soft); color: var(--yellow); }
.score-badge.strong { background: var(--green-soft); color: var(--green); }

/* ── QUESTIONS TABLE ──────────────────────────────────────────── */
.q-table-wrap { overflow-x: auto; }
.q-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.q-table th {
  text-align: left;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--fg-soft);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.q-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.q-table tr:last-child td { border-bottom: none; }
.q-table tr:hover td { background: var(--bg); }
.q-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.18rem 0.55rem; border-radius: 999px;
  white-space: nowrap;
}
.q-tag.quant   { background: var(--accent-soft); color: var(--accent); }
.q-tag.verbal  { background: var(--green-soft);  color: var(--green); }
.q-tag.di      { background: var(--yellow-soft); color: var(--yellow); }
.q-tag.rc      { background: var(--purple-soft); color: var(--purple); }
.q-tag.cr      { background: rgba(20,83,45,0.1); color: #15803d; }
.q-tag.sc      { background: rgba(30,58,138,0.1); color: #1d4ed8; }
.q-tag.ps      { background: var(--accent-soft); color: var(--accent); }
.q-tag.ds      { background: rgba(99,0,255,0.1); color: #6300ff; }
.q-tag.msr     { background: var(--yellow-soft); color: #b45309; }
.q-tag.tpa     { background: rgba(255,100,0,0.1); color: #c2410c; }
.q-tag.gi      { background: rgba(6,182,212,0.1); color: #0891b2; }
.q-difficulty { font-size: 0.78rem; font-weight: 600; }
.q-difficulty.easy   { color: var(--green); }
.q-difficulty.medium { color: var(--yellow); }
.q-difficulty.hard   { color: var(--red); }
.q-source { font-size: 0.8rem; color: var(--fg-soft); }
.q-error-note { font-size: 0.82rem; color: var(--fg-soft); max-width: 300px; }
.q-ai-insight {
  font-size: 0.78rem; color: var(--accent);
  cursor: pointer; display: flex; align-items: center; gap: 0.3rem;
}
.q-ai-insight:hover { color: var(--accent-hover); }
.q-actions { display: flex; gap: 0.4rem; }
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--fg-soft);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--fg); }
.empty-state p { font-size: 0.9rem; }

/* ── SAMPLE TESTS TABLE ───────────────────────────────────────── */
.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease);
}
.test-card:hover { box-shadow: var(--shadow); }
.test-score-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--accent-glow);
  display: grid; place-items: center; flex-shrink: 0;
}
.test-score-circle span { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.test-info { flex: 1; }
.test-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.test-info p  { font-size: 0.82rem; color: var(--fg-soft); }
.test-sub-scores { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--fg-soft); }
.test-sub-scores span { font-weight: 600; }
.test-date { font-size: 0.78rem; color: var(--fg-fade); text-align: right; }
.test-actions { display: flex; gap: 0.5rem; }

/* ── AI INSIGHT BOX ───────────────────────────────────────────── */
.insight-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}
.insight-box-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.insight-box-header span { font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.07em; }
.insight-box p { font-size: 0.875rem; color: var(--fg); line-height: 1.65; }

/* ── TOPIC KNOWLEDGE MAP ──────────────────────────────────────── */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.topic-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  text-align: center;
  transition: box-shadow var(--dur), border-color var(--dur);
}
.topic-chip:hover { box-shadow: var(--shadow); }
.topic-chip .topic-name { font-size: 0.78rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--fg); }
.topic-chip .topic-pct  { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.topic-chip .topic-count { font-size: 0.7rem; color: var(--fg-fade); margin-top: 0.15rem; }
.topic-chip.strong { border-color: rgba(29,184,122,0.3); }
.topic-chip.strong .topic-pct { color: var(--green); }
.topic-chip.ok     { border-color: rgba(245,166,35,0.3); }
.topic-chip.ok     .topic-pct { color: var(--yellow); }
.topic-chip.weak   { border-color: rgba(229,62,62,0.3); }
.topic-chip.weak   .topic-pct { color: var(--red); }
.topic-chip.none   { opacity: 0.45; }
.topic-chip.none   .topic-pct { color: var(--fg-fade); }

/* ── THRESHOLD SETTINGS ───────────────────────────────────────── */
.threshold-row { display: flex; align-items: center; gap: 1rem; }
.threshold-slider { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 999px; background: var(--border); cursor: pointer; }
.threshold-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; border: 2px solid white; box-shadow: var(--shadow-sm); }
.threshold-value { font-size: 1.1rem; font-weight: 800; color: var(--accent); width: 42px; text-align: right; }

/* ── NOTIFICATION TOAST ───────────────────────────────────────── */
.toast-area { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--bg-deep); color: white;
  border: 1px solid var(--border-dark);
  border-radius: var(--r);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.6rem;
  animation: slide-in 0.3s var(--ease);
  max-width: 300px;
}
@keyframes slide-in { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* ── SECTION TABS ─────────────────────────────────────────────── */
.section-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.section-tab {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--fg-soft); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--dur) var(--ease);
  background: none; border-top: none; border-left: none; border-right: none;
}
.section-tab:hover { color: var(--fg); }
.section-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── HELPFUL TIPS ─────────────────────────────────────────────── */
.tip-banner {
  background: var(--yellow-soft);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--r);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: #92400e;
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin-bottom: 1rem;
}

/* ── SETTINGS ─────────────────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.settings-section { }
.settings-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
