@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Source+Serif+4:wght@400;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-inset: #f1f3f9;
  --border: #e2e6ef;
  --border-light: #eef1f6;
  --text: #1a1d2e;
  --text-secondary: #5b6178;
  --text-muted: #9299b0;
  --accent: #2563eb;
  --accent-light: #eff4ff;
  --accent-dark: #1d4ed8;
  --green: #059669;
  --green-light: #ecfdf5;
  --red: #dc2626;
  --red-light: #fef2f2;
  --gold: #d97706;
  --gold-light: #fffbeb;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --cyan: #0891b2;
  --orange: #ea580c;
  --rose: #e11d48;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg-card: #1a1d2e;
  --bg-elevated: #222538;
  --bg-inset: #161927;
  --border: #2a2e42;
  --border-light: #222538;
  --text: #e8eaf0;
  --text-secondary: #9299b0;
  --text-muted: #5b6178;
  --accent-light: rgba(37,99,235,0.12);
  --green-light: rgba(5,150,105,0.12);
  --red-light: rgba(220,38,38,0.12);
  --gold-light: rgba(217,119,6,0.12);
  --blue-light: rgba(37,99,235,0.12);
  --purple-light: rgba(124,58,237,0.12);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ── Top Nav ─────────────────────────────────────────── */
.topnav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xs);
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topnav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
  padding: 2px;
  border: 1px solid var(--border-light);
}

.topnav-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.topnav-brand .brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--text);
}

.topnav-brand .brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.topnav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
  background: none;
  font-family: var(--font);
}

.nav-pill:hover {
  color: var(--text);
  background: var(--bg-inset);
}

.nav-pill.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.nav-pill .np-icon { font-size: 14px; }

.nav-pill.done { color: var(--green); }
.nav-pill.done .np-icon { color: var(--green); }

.topnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-inset);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.version-tag {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text-muted);
  background: var(--bg-inset);
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
}

/* ── Layout ──────────────────────────────────────────── */
.app-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

/* ── Sections ────────────────────────────────────────── */
.section {
  display: none;
  animation: slideUp 0.4s ease;
}

.section.active { display: block; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Page Header ─────────────────────────────────────── */
.page-header {
  margin-bottom: 28px;
}

.page-header h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-head h3 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.card-body {
  padding: 24px;
}

/* ── Grid ────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } .topnav-links { display: none; } .app-body { padding: 20px 16px; } }

/* ── Drop Zone ───────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-inset);
  position: relative;
}

.drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.drop-zone .dz-icon {
  font-size: 44px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.7;
}

.drop-zone .dz-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.drop-zone .dz-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--green-light);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-top: 12px;
  animation: slideDown 0.3s ease;
}

.file-badge .fb-icon { font-size: 16px; }
.file-badge .fb-name { font-weight: 600; }
.file-badge .fb-status { color: var(--green); font-size: 11px; }

/* ── Stats ───────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
  animation: scaleIn 0.4s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.stat-card.sc-blue::before { background: var(--blue); }
.stat-card.sc-green::before { background: var(--green); }
.stat-card.sc-gold::before { background: var(--gold); }
.stat-card.sc-red::before { background: var(--red); }
.stat-card.sc-purple::before { background: var(--purple); }
.stat-card.sc-default::before { background: var(--text-muted); }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card .sp-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
}

.stat-card .sp-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-success {
  background: var(--green);
  color: white;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

.btn-ghost {
  background: var(--bg-inset);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-lg { padding: 12px 28px; font-size: 14px; }

/* ── Progress ────────────────────────────────────────── */
.progress-track {
  background: var(--bg-inset);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--green));
  border-radius: 100px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ── Status Bar ──────────────────────────────────────── */
.status-bar {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.status-bar.info {
  background: var(--blue-light);
  border: 1px solid rgba(37,99,235,0.15);
  color: var(--accent);
}

.status-bar.success {
  background: var(--green-light);
  border: 1px solid rgba(5,150,105,0.15);
  color: var(--green);
}

.status-bar.error {
  background: var(--red-light);
  border: 1px solid rgba(220,38,38,0.15);
  color: var(--red);
}

/* ── Table ───────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  background: var(--bg-inset);
  color: var(--text-secondary);
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 5;
}

.data-table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.data-table tbody tr { cursor: pointer; }

.data-table tbody tr:nth-child(even) { background: var(--bg-inset); }

.data-table tbody tr:hover { background: var(--accent-light); }

.data-table .code-col {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--accent);
}

.data-table .name-col {
  text-align: left;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table .na-cell {
  color: var(--red);
  font-style: italic;
}

/* ── Filter Row ──────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: var(--font);
}

.filter-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.filter-chip:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.search-field {
  flex: 1;
  min-width: 200px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  background: var(--bg-inset);
  color: var(--text);
  font-family: var(--font);
  transition: border-color var(--transition);
}

.search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.table-info {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Modal ───────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-xl);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

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

.modal-top .mt-code {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.modal-top .mt-name {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
  margin-left: 12px;
  font-family: var(--font-serif);
}

.modal-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-inset);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-x:hover { background: var(--red-light); color: var(--red); }

.modal-content { padding: 24px; }
.modal-section { margin-bottom: 20px; }
.modal-section:last-child { margin-bottom: 0; }

.modal-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.grade-chips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.grade-chip {
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
}

.grade-chip.gc-excellent { border-left: 3px solid var(--blue); }
.grade-chip.gc-vgood { border-left: 3px solid var(--green); }
.grade-chip.gc-good { border-left: 3px solid var(--gold); }
.grade-chip.gc-pass { border-left: 3px solid var(--orange); }
.grade-chip.gc-fail { border-left: 3px solid var(--red); }

.grade-chip .gc-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.grade-chip .gc-val {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
  color: var(--text);
}

.cat-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cat-bar-label {
  width: 32px;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  color: var(--text-secondary);
}

.cat-bar-track {
  flex: 1;
  height: 18px;
  background: var(--bg-inset);
  border-radius: 4px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.cat-bar-val {
  width: 90px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--mono);
}

/* ── Compare Row ─────────────────────────────────────── */
.compare-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.compare-card {
  text-align: center;
  padding: 24px 32px;
  border-radius: var(--radius);
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  min-width: 140px;
  animation: scaleIn 0.4s ease backwards;
}

.compare-card .cc-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.compare-card .cc-val {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.compare-card .cc-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.compare-arrow {
  font-size: 24px;
  color: var(--accent);
}

/* ── Chart Area ──────────────────────────────────────── */
.chart-area {
  padding: 16px;
}

.chart-area canvas {
  width: 100% !important;
  height: auto !important;
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: toastSlide 0.3s ease;
  max-width: 360px;
}

@keyframes toastSlide {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

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

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

.empty .e-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.4;
}

.empty .e-text {
  font-size: 14px;
  font-weight: 500;
}

/* ── Tags ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag-blue { background: var(--blue-light); color: var(--accent); }
.tag-green { background: var(--green-light); color: var(--green); }

/* ── Hidden ──────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Academic accent line ────────────────────────────── */
.academic-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 32px 0;
}

/* ── Animate children ────────────────────────────────── */
.animate-in > * {
  animation: slideUp 0.4s ease backwards;
}
.animate-in > *:nth-child(1) { animation-delay: 0.05s; }
.animate-in > *:nth-child(2) { animation-delay: 0.1s; }
.animate-in > *:nth-child(3) { animation-delay: 0.15s; }
.animate-in > *:nth-child(4) { animation-delay: 0.2s; }
.animate-in > *:nth-child(5) { animation-delay: 0.25s; }
.animate-in > *:nth-child(6) { animation-delay: 0.3s; }

/* ── Print ───────────────────────────────────────────── */
@media print {
  .topnav, .filter-row { display: none; }
  .app-body { padding: 0; max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

@media (max-width: 700px) {
  .topnav { padding: 0 16px; }
  .topnav-brand .brand-sub { display: none; }
}
