/* ============================================================
   Training Assessment Platform — Compiled CSS
   Converted from Tailwind v4 globals.css
   ============================================================ */

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

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --font-sans:  'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:  'Geist Mono', ui-monospace, monospace;

  /* Emerald palette */
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;

  /* Slate palette */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Status */
  --amber-50:  #fffbeb;
  --amber-200: #fde68a;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --rose-50:   #fff1f2;
  --rose-200:  #fecdd3;
  --rose-800:  #9f1239;
}

html { height: 100%; -webkit-font-smoothing: antialiased; }

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  letter-spacing: 0;
  line-height: 1.5;
}

/* ── Typography ───────────────────────────────────────────── */
button, a, input, select, textarea { letter-spacing: 0; font-family: var(--font-sans); }

/* ── Form Elements ────────────────────────────────────────── */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--slate-300);
  background: #fff;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--slate-950);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}

textarea { resize: vertical; }

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}

/* ── Table ────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { background: var(--slate-100); padding: 12px 16px; font-weight: 600; color: var(--slate-700); }
td { border-top: 1px solid var(--slate-200); padding: 12px 16px; vertical-align: top; }

/* ── Auth ─────────────────────────────────────────────────── */
.auth-screen {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--slate-50);
  padding: 40px 16px;
}

.auth-panel {
  display: grid;
  width: 100%;
  max-width: 448px;
  gap: 24px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.auth-panel h1,
.page-heading h1,
.exam-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--slate-950);
}

.auth-panel p,
.page-heading p,
.exam-header p,
.item-card p,
.feature-panel p,
.detail-panel p,
.template-panel p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate-600);
}

.auth-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.form-stack { display: grid; gap: 16px; }
.form-stack.compact { gap: 12px; }

/* ── Buttons ──────────────────────────────────────────────── */
.primary-button,
.secondary-button,
.icon-button,
.small-button,
.small-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, border-color .15s, color .15s;
  font-family: var(--font-sans);
}

.primary-button {
  background: var(--emerald-700);
  color: #fff;
  padding: 0 16px;
}
.primary-button:hover { background: var(--emerald-800); }

.secondary-button {
  background: #fff;
  border: 1px solid var(--slate-300);
  color: var(--slate-800);
  padding: 0 16px;
}
.secondary-button:hover { background: var(--slate-100); }

.icon-button {
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 0 12px;
}
.icon-button:hover { background: var(--slate-100); }

.small-button {
  min-height: 36px;
  background: var(--emerald-700);
  color: #fff;
  padding: 0 12px;
}
.small-button:hover { background: var(--emerald-800); }

.small-button.muted {
  background: #fff;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
}
.small-button.muted:hover { background: var(--slate-100); }

.small-button.danger {
  background: var(--rose-800);
  color: #fff;
}
.small-button.danger:hover {
  background: #881337;
}

.small-link {
  min-height: 36px;
  background: #fff;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 0 12px;
}
.small-link:hover { background: var(--slate-100); }

.text-link { font-weight: 600; color: var(--emerald-700); text-decoration: none; }
.text-link:hover { color: var(--emerald-800); }

/* ── Feature / Project panels ─────────────────────────────── */
.feature-panel,
.project-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.feature-panel h2,
.project-panel h2,
.item-card h2,
.detail-panel h2,
.template-panel h2,
.empty-state h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-950);
}

/* ── Page heading ─────────────────────────────────────────── */
.page-heading {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 640px) {
  .page-heading {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ── Grid list ────────────────────────────────────────────── */
.grid-list { display: grid; gap: 16px; }

/* ── Item card ────────────────────────────────────────────── */
.item-card {
  display: grid;
  gap: 16px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (min-width: 1024px) {
  .item-card { grid-template-columns: 1fr auto; align-items: center; }
  .item-card.vertical { grid-template-columns: 1fr; }
}

.item-card-main { display: grid; gap: 16px; }
.item-card-actions,
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ── Metric row ───────────────────────────────────────────── */
.metric-row { display: grid; gap: 12px; }
@media (min-width: 640px)  { .metric-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .metric-row { grid-template-columns: repeat(4, 1fr); } }

.metric-row dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); }
.metric-row dd { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--slate-900); }

/* ── Status pill ──────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.status-neutral { border-color: var(--slate-200);  background: var(--slate-100);  color: var(--slate-700); }
.status-good    { border-color: var(--emerald-200); background: var(--emerald-50); color: var(--emerald-800); }
.status-warn    { border-color: var(--amber-200);   background: var(--amber-50);   color: var(--amber-800); }
.status-bad     { border-color: var(--rose-200);    background: var(--rose-50);    color: var(--rose-800); }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  display: grid;
  gap: 12px;
  border-radius: 12px;
  border: 1px dashed var(--slate-300);
  background: #fff;
  padding: 32px;
  text-align: center;
}

/* ── Stats grid ───────────────────────────────────────────── */
.stats-grid { display: grid; gap: 16px; }
@media (min-width: 640px)  { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  display: grid;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 20px;
  color: var(--slate-800);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.stat-card:hover { border-color: var(--emerald-300); background: var(--emerald-50); }
.stat-card span  { color: var(--emerald-700); display: flex; }
.stat-card strong { font-size: 36px; font-weight: 600; color: var(--slate-950); }
.stat-card p { font-size: 14px; color: var(--slate-600); }

/* ── Table wrap ───────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ── Admin form grid ──────────────────────────────────────── */
.admin-form-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px)  { .admin-form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .admin-form-grid { grid-template-columns: repeat(4, 1fr); } }

.wide-field { grid-column: 1 / -1; }

.checkbox-row { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.checkbox-row input { width: 16px; height: 16px; }

/* ── Template panel ───────────────────────────────────────── */
.template-panel {
  margin: 20px 0;
  display: grid;
  gap: 16px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (min-width: 1024px) { .template-panel { grid-template-columns: repeat(2, 1fr); } }

/* ── Admin action grid ────────────────────────────────────── */
.admin-action-grid {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--slate-200);
  padding-top: 16px;
}
@media (min-width: 1024px) { .admin-action-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Exam page ────────────────────────────────────────────── */
.exam-page {
  margin: 0 auto;
  min-height: 100vh;
  max-width: 768px;
  background: var(--slate-50);
  padding: 32px 16px;
  color: var(--slate-950);
}
@media (min-width: 640px)  { .exam-page { padding: 32px 24px; } }
@media (min-width: 1024px) { .exam-page { padding: 32px; } }

/* ── Exam header ──────────────────────────────────────────── */
.exam-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (min-width: 640px) {
  .exam-header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* ── Questions ────────────────────────────────────────────── */
.question-stack { display: grid; gap: 16px; }

.question-card {
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.question-card legend {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
}

.question-card p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-900);
}

.option-stack { display: grid; gap: 12px; }

.option-row {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 12px;
  color: var(--slate-900);
  transition: border-color .15s, background .15s;
}
.option-row:hover { border-color: var(--emerald-300); background: var(--emerald-50); }
.option-row input { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Warning strip ────────────────────────────────────────── */
.warning-strip {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid var(--amber-200);
  background: var(--amber-50);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-900);
}

/* ── Upload form ──────────────────────────────────────────── */
.upload-form {
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ── Results ──────────────────────────────────────────────── */
.result-grid { display: grid; gap: 16px; }

.score-panel,
.detail-panel {
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.score-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.score-panel span  { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); }
.score-panel strong { font-size: 48px; font-weight: 600; color: var(--slate-950); }

.issue-columns { margin-top: 16px; display: grid; gap: 16px; }
@media (min-width: 1024px) { .issue-columns { grid-template-columns: repeat(2, 1fr); } }
.issue-columns h3 { margin-bottom: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); }
.issue-columns ul { display: grid; gap: 8px; font-size: 14px; color: var(--slate-700); padding-left: 16px; }

.answer-list { margin-top: 16px; display: grid; gap: 12px; }
.answer-list > div { border-radius: 6px; border: 1px solid var(--slate-200); background: var(--slate-50); padding: 12px; }
.answer-list strong { font-size: 14px; font-weight: 600; color: var(--slate-950); display: block; margin-bottom: 4px; }
.answer-list span { font-size: 14px; color: var(--slate-600); display: block; margin-top: 4px; }
.answer-list p { font-size: 14px; color: var(--slate-700); margin-bottom: 4px !important; }

/* ── Exam lock ────────────────────────────────────────────── */
.exam-locked { user-select: none; }

/* ── Utility ──────────────────────────────────────────────── */
.space-y-2 > * + * { margin-top: 8px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-8 > * + * { margin-top: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.min-h-screen { min-height: 100vh; }
.bg-slate-50 { background: var(--slate-50); }
.text-slate-950 { color: var(--slate-950); }
.text-emerald-700 { color: var(--emerald-700); }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 14px; }

/* ── Print ────────────────────────────────────────────────── */
@media print {
  header, nav, .no-print, .warning-strip { display: none !important; }

  body.exam-locked::before {
    content: "Printing is disabled for active assessment pages.";
    display: block;
    padding: 24px;
    font: 700 20px Arial, sans-serif;
  }
  body.exam-locked main { display: none !important; }
  body { background: #fff; color: #000; }

  .score-panel, .detail-panel {
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* ── Nav / Header ─────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--slate-200);
  background: #fff;
}
.site-header-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1280px;
  padding: 16px;
}
@media (min-width: 640px)  { .site-header-inner { padding: 16px 24px; } }
@media (min-width: 1024px) {
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.site-logo-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--emerald-600);
  color: #fff;
  flex-shrink: 0;
}
.site-logo-text    { font-size: 16px; display: block; }
.site-logo-subtext { font-size: 12px; font-weight: 400; color: var(--slate-500); display: block; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.site-main {
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  padding: 32px 16px;
}
@media (min-width: 640px)  { .site-main { padding: 32px 24px; } }
@media (min-width: 1024px) { .site-main { padding: 32px; } }

/* ── Flash messages ───────────────────────────────────────── */
.flash-error {
  border-radius: 6px;
  border: 1px solid var(--rose-200);
  background: var(--rose-50);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--rose-800);
  margin-bottom: 16px;
}
.flash-success {
  border-radius: 6px;
  border: 1px solid var(--emerald-200);
  background: var(--emerald-50);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--emerald-800);
  margin-bottom: 16px;
  font-weight: 500;
}

/* ── Hero section ─────────────────────────────────────────── */
.hero-section {
  border-bottom: 1px solid var(--slate-200);
  background: #fff;
}
.hero-inner {
  margin: 0 auto;
  display: grid;
  min-height: 88vh;
  max-width: 1280px;
  align-items: center;
  gap: 40px;
  padding: 48px 16px;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 48px 32px;
  }
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald-700);
}
.hero-title {
  max-width: 700px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate-950);
}
@media (min-width: 640px) { .hero-title { font-size: 48px; } }
.hero-desc { max-width: 600px; font-size: 18px; line-height: 1.7; color: var(--slate-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-features { display: grid; gap: 16px; }

/* Lucide-style inline SVG icons via CSS mask — not needed, using inline SVG in PHP */

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background-color: var(--slate-900);
  color: var(--slate-400);
  border-top: 1px solid var(--slate-800);
  padding: 24px 16px;
  font-size: 14px;
  margin-top: auto;
}

.footer-bar {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.footer-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--slate-400);
  text-align: center;
  line-height: 1.6;
}

/* ── Page-fit Layout ────────────────────────────────────────── */
.page-fit-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--slate-50);
}

@media (min-width: 1024px) {
  .page-fit-layout {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
}

.page-fit-layout .hero-section {
  flex-shrink: 0;
  width: 100%;
}

.page-fit-spacer {
  flex: 1;
}

.landing-hero-inner {
  min-height: auto !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

/* ── Premium Footer ─────────────────────────────────────────── */
.page-fit-footer {
  flex: none;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: auto !important;
  border-top: 1px solid var(--slate-200) !important;
  background: transparent !important;
}

.footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Left side: copyright + divider + privacy policy */
.footer-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 4px;
}

.footer-copy-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate-500);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.footer-pipe {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--slate-300);
  margin: 0 14px;
  vertical-align: middle;
  flex-shrink: 0;
}

.footer-policy-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-policy-link:hover {
  color: var(--slate-800);
}

/* Right side: socials + brand */
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Social icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-social-link:hover {
  color: var(--slate-700);
  transform: translateY(-2px);
}

.footer-social-link svg {
  display: block;
}

/* Vertical divider between socials & brand */
.footer-divider {
  width: 1px;
  height: 18px;
  background: var(--slate-200);
  flex-shrink: 0;
}

/* Brand name */
.footer-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer-brand-name:hover {
  opacity: 0.75;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 639px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 16px;
    text-align: center;
  }
  .footer-left {
    justify-content: center;
  }
  .footer-right {
    gap: 14px;
  }
}

/* ── Academic Progress Card ──────────────────────────────── */
.grades-summary-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 24px;
  margin-bottom: 32px;
  border-left: 4px solid var(--emerald-600);
}

.grades-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 16px;
}

.grades-course {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  font-weight: 600;
  display: block;
}

.grades-level {
  font-size: 22px;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 4px;
}

.grades-badge-wrap {
  flex-shrink: 0;
}

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

.grades-metric-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.grades-metric-box dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.grades-metric-box dd {
  display: flex;
  flex-direction: column;
}

.grades-metric-box dd strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.1;
}

.grades-metric-box dd span {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 4px;
}

.grades-metric-box.primary {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
}

.grades-metric-box.primary dt {
  color: var(--emerald-700);
  font-weight: 600;
}

.grades-metric-box.primary dd strong {
  color: var(--emerald-800);
}

.grades-metric-box.primary dd span {
  color: var(--emerald-600);
}

/* Custom Status Pills */
.status-pill.status-warn {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-800);
}

.status-pill.status-bad {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-800);
}






