/* ============================================================
   DepEd National Assessments — Prototype Theme
   Design tokens & components extracted from the CodeChum
   (chum-app) design system. Plain CSS, no build step.
   ============================================================ */

/* Self-hosted design-system fonts (Inter + Montserrat + Material Symbols).
   No CDN dependency — these always load, so text never falls back to Times. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 100 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 600 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 600 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Material Symbols Rounded';
  src: url('fonts/material-symbols-rounded.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}

:root {
  /* ---- Neutrals ---- */
  --neutral-900: #1f2730;
  --neutral-800: #28313b;
  --neutral-700: #2d3845;
  --neutral-600: #3f4e5f;
  --neutral-500: #626b77;
  --neutral-400: #88919b;
  --neutral-300: #b0b9bf;
  --neutral-200: #d1dadf;
  --neutral-100: #e2eaee;
  --neutral-50: #f0f5f9;
  --neutral-0: #ffffff;

  /* ---- Blues ---- */
  --blue-600: #2cabe3;
  --blue-500: #2387b2;
  --blue-400: #269acd;
  --blue-300: #2cabe3;
  --blue-100: #97e2fc;
  --blue-50: #f3fbfe;
  --dark-blue: #4e6aff;
  --blue-subtle: #e5f7fe;

  /* ---- Greens ---- */
  --green-500: #37a166;
  --green-400: #3bb672;
  --green-300: #38ca79;
  --green-100: #94edb8;
  --green-50: #e4faed;

  /* ---- Yellows (brand: sun yellow #F8D11D) ---- */
  --yellow-500: #e0bc5d;
  --yellow-400: #f8d11d;
  --yellow-300: #f8d11d;
  --yellow-100: #ffe9c2;
  --yellow-50: #fff9ef;

  /* ---- Reds ---- */
  --red-500: #bf5a4c;
  --red-400: #d45340;
  --red-300: #ee6450;
  --red-100: #f99d9d;
  --red-50: #fdeceb;

  /* ---- Accents (brand: burst orange #FF9C55 · ultra violet #9747FF · deep indigo #4685EE) ---- */
  --purple-300: #9747ff;
  --purple-400: #783bc6;
  --orange-300: #ff9c55;
  --indigo-300: #4685ee;
  --gold-300: #b0830f;

  /* ---- GradeChum brand (Cody 4-color emblem) ---- */
  --color-primary: var(--green-300);        /* grade green */
  --cody-blue:   #2cabe3;                    /* code blue   */
  --cody-green:  #38ca79;                    /* grade green */
  --cody-yellow: #f8d11d;                    /* sun yellow  */
  --cody-red:    #ee6450;                    /* flag red    */
  --deped-blue: #4685ee;        /* National accent = deep indigo */
  --deped-blue-deep: #2f6fd6;

  /* ---- Gradients ---- */
  --bg-gradient: linear-gradient(90deg, #2fa9e0 0%, #65d0b7 100%);
  --bg-gradient-2: linear-gradient(90deg, #9c79ff 0%, #2cabe3 96.87%, #65d0b7 100%);
  --bg-gradient-4: linear-gradient(90deg, #ee6450 0%, #f8d11d 100%);
  --bg-gradient-6: linear-gradient(90deg, #9d61ff 0%, #89b8ff 100%);
  --bg-gradient-8: linear-gradient(90deg, #5b7eea 0%, #1ae3d9 100%);
  /* GradeChum brand gradient — code blue → grade green */
  --bg-gradient-brand: linear-gradient(120deg, #2cabe3 0%, #38ca79 68%, #2bb56a 100%);

  /* ---- Shadows ---- */
  --blue-shadow: 0px 8px 40px -8px rgba(0, 177, 255, 0.6);
  --green-shadow: 0px 8px 40px -8px rgba(56, 202, 121, 0.6);
  --shadow-normal: 0px 8px 8px 0px rgba(131, 147, 155, 0.1);
  --shadow-raised: 0px 12px 20px 0px rgba(131, 147, 155, 0.25);

  /* ---- Type ---- */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --sidebar-w: 248px;
  font-size: 16px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--neutral-700);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea, optgroup { font-family: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { margin: 4px; border-radius: 10px; }
::-webkit-scrollbar-thumb { border-radius: 10px; background: var(--neutral-200); }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-300); }

/* ============================================================
   Material Symbols icons
   ============================================================ */
.mi {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
}
.mi--fill { font-variation-settings: 'FILL' 1; }
.mi--sm { font-size: 18px; }
.mi--lg { font-size: 32px; }
.mi--xl { font-size: 44px; }

/* ============================================================
   Typography helpers
   ============================================================ */
.h-xxl { font-family: var(--font-head); font-weight: 700; font-size: 4rem;   line-height: 1.125; margin: 0; }
.h-xl  { font-family: var(--font-head); font-weight: 700; font-size: 3.5rem; line-height: 1.142; margin: 0; }
.h-lg  { font-family: var(--font-head); font-weight: 700; font-size: 3rem;   line-height: 1.167; margin: 0; }
.h-md  { font-family: var(--font-head); font-weight: 700; font-size: 2.5rem; line-height: 1.1;   margin: 0; }
.h-sm  { font-family: var(--font-head); font-weight: 700; font-size: 2rem;   line-height: 1.125; margin: 0; }
.h-xs  { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.167; margin: 0; }
.h-xxs { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;line-height: 1.2;   margin: 0; }
.h-xxxs{ font-family: var(--font-head); font-weight: 700; font-size: 1rem;   line-height: 1.25;  margin: 0; }

.body-lg { font-size: 1.125rem; }
.body-md { font-size: 1rem; }
.body-sm { font-size: 0.875rem; }
.body-xs { font-size: 0.75rem; }
.strong  { font-weight: 500; }
.label   { font-weight: 600; }
.data    { font-weight: 700; }

.muted { color: var(--neutral-500); }
.faint { color: var(--neutral-400); }
.text-primary { color: var(--green-400); }
.text-blue    { color: var(--blue-500); }
.text-red     { color: var(--red-400); }
.text-yellow  { color: var(--gold-300); }
.text-purple  { color: var(--purple-400); }
.text-center  { text-align: center; }
.uppercase    { text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   App shell
   ============================================================ */
body.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--neutral-0);
  border-right: 1px solid var(--neutral-100);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--neutral-100);
}
.sidebar__logo {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar__logo svg { width: 100%; height: 100%; display: block; }
.sidebar__logo .mi { font-size: 22px; }
.sidebar__brand-text { line-height: 1.15; }
.sidebar__brand-text b { font-family: var(--font-head); font-size: .9rem; display: block; color: var(--neutral-800); }

/* GradeChum wordmark (fallback helper) */
.wordmark { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; }
.wordmark .g { color: var(--neutral-800); }
.wordmark .c { color: var(--green-400); }
.wordmark--light .g { color: #fff; }
.wordmark--light .c { color: #fff; }
.cody { display: inline-block; line-height: 0; }
.cody svg { display: block; }

/* Official brand logos */
.gc-logo { height: 28px; width: auto; display: block; }
.deped-logo { height: 30px; width: auto; display: block; }
.cobrand { display: flex; align-items: center; gap: 12px; }
.cobrand__divider { width: 1px; height: 24px; background: var(--neutral-200); flex: 0 0 1px; }
.cobrand__label { font-size: .6rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--neutral-400); }
.sidebar__brand-text span { font-size: .68rem; color: var(--neutral-400); }

.nav-section { padding: 14px 12px 4px; }
.nav-section__label {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--neutral-400); padding: 0 10px 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--neutral-600); font-size: .85rem; font-weight: 500;
  margin-bottom: 2px; transition: background .15s, color .15s;
  cursor: pointer;
}
.nav-link .mi { font-size: 21px; color: var(--neutral-400); transition: color .15s; }
.nav-link:hover { background: var(--neutral-50); color: var(--neutral-800); }
.nav-link:hover .mi { color: var(--neutral-600); }
.nav-link.is-active {
  background: var(--green-50); color: var(--green-500); font-weight: 600;
}
.nav-link.is-active .mi { color: var(--green-400); }
.nav-link__badge {
  margin-left: auto; font-size: .62rem; font-weight: 700;
  background: var(--neutral-100); color: var(--neutral-500);
  padding: 1px 7px; border-radius: 100px;
}

.content {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
}

.topbar {
  height: 64px; flex: 0 0 64px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--neutral-100);
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px; position: sticky; top: 0; z-index: 5;
}
.topbar__title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--neutral-800); }
.topbar__crumb { font-size: .75rem; color: var(--neutral-400); }
.topbar__spacer { flex: 1; }
.topbar__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--neutral-50); border: 1px solid var(--neutral-100);
  border-radius: 100px; padding: 7px 14px; min-width: 220px; color: var(--neutral-400);
}
.topbar__search input { border: none; background: none; outline: none; font-size: .82rem; width: 100%; color: var(--neutral-700); }

.role-switch {
  display: flex; align-items: center; gap: 8px;
  background: var(--neutral-50); border: 1px solid var(--neutral-100);
  border-radius: 100px; padding: 5px 6px 5px 14px; cursor: pointer; font-size: .8rem; font-weight: 600;
  color: var(--neutral-600);
}
.role-switch select { border: none; background: none; outline: none; font: inherit; color: inherit; cursor: pointer; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-gradient-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; flex: 0 0 36px;
}

.main { padding: 28px; flex: 1; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--neutral-800); margin: 0 0 4px; }
.page-head p { color: var(--neutral-500); font-size: .9rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-head);
  font-size: .82rem; font-weight: 700; line-height: 1.4;
  border-radius: 100px; padding: 11px 22px;
  border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s; text-align: center; white-space: nowrap;
}
.btn .mi { font-size: 19px; }
.btn--sm { padding: 8px 16px; font-size: .75rem; }
.btn--lg { padding: 14px 28px; font-size: .9rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--green-300); color: #fff; box-shadow: var(--green-shadow); }
.btn--primary:hover { background: var(--green-400); }
.btn--primary:active { background: var(--green-500); }

.btn--blue { background: var(--blue-300); color: #fff; box-shadow: var(--blue-shadow); }
.btn--blue:hover { background: var(--blue-400); }

.btn--navy { background: var(--deped-blue); color: #fff; }
.btn--navy:hover { background: var(--deped-blue-deep); }

.btn--outline { background: transparent; color: var(--neutral-600); border-color: var(--neutral-200); }
.btn--outline:hover { background: var(--neutral-50); border-color: var(--neutral-300); }

.btn--outline-blue { background: transparent; color: var(--blue-500); border-color: var(--blue-300); }
.btn--outline-blue:hover { background: var(--blue-50); }

.btn--ghost { background: transparent; color: var(--neutral-600); box-shadow: none; }
.btn--ghost:hover { background: var(--neutral-100); }

.btn--danger { background: var(--red-300); color: #fff; }
.btn--danger:hover { background: var(--red-400); }

.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--neutral-100);
  background: var(--neutral-0); color: var(--neutral-500); display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; transition: all .2s;
}
.icon-btn:hover { background: var(--neutral-50); color: var(--neutral-700); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-100);
  border-radius: 16px;
}
.card--pad { padding: 20px; }
.card--pad-lg { padding: 28px; }
.card--clickable { transition: box-shadow .25s, transform .25s, border-color .25s; cursor: pointer; }
.card--clickable:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); border-color: var(--neutral-200); }
.card--highlight { box-shadow: var(--blue-shadow); border-color: var(--blue-300); }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--neutral-800); }
.card__sub { font-size: .78rem; color: var(--neutral-400); }

/* ============================================================
   Grid helpers
   ============================================================ */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

@media (max-width: 1200px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .col-span-2, .col-span-3 { grid-column: span 1; }
}

/* ============================================================
   Stat / metric cards
   ============================================================ */
.stat {
  background: var(--neutral-0); border: 1px solid var(--neutral-100);
  border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden;
}
.stat__icon {
  width: 42px; height: 42px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 14px;
}
.stat__icon .mi { font-size: 22px; }
.stat__label { font-size: .76rem; font-weight: 600; color: var(--neutral-400); text-transform: uppercase; letter-spacing: .04em; }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--neutral-800); line-height: 1.1; margin: 2px 0 4px; }
.stat__delta { font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.stat__delta .mi { font-size: 15px; }
.delta-up { color: var(--green-500); }
.delta-down { color: var(--red-400); }

.tone-green  { background: var(--green-50);  color: var(--green-500); }
.tone-blue   { background: var(--blue-subtle); color: var(--blue-500); }
.tone-yellow { background: var(--yellow-50); color: var(--gold-300); }
.tone-red    { background: var(--red-50);    color: var(--red-400); }
.tone-purple { background: rgba(151,71,255,.1); color: var(--purple-400); }
.tone-navy   { background: rgba(70,133,238,.12); color: var(--deped-blue); }
.tone-orange { background: rgba(255,143,63,.12); color: var(--orange-300); }

/* ============================================================
   Badges / tags / chips
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  letter-spacing: .02em;
}
.badge .mi { font-size: 14px; }
.badge--green  { background: var(--green-50);  color: var(--green-500); }
.badge--blue   { background: var(--blue-subtle); color: var(--blue-500); }
.badge--yellow { background: var(--yellow-50); color: var(--gold-300); }
.badge--red    { background: var(--red-50);    color: var(--red-400); }
.badge--purple { background: rgba(151,71,255,.1); color: var(--purple-400); }
.badge--neutral{ background: var(--neutral-100); color: var(--neutral-500); }
.badge--orange { background: rgba(255,143,63,.12); color: var(--orange-300); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--neutral-200); border-radius: 100px;
  padding: 6px 14px; font-size: .8rem; font-weight: 500; color: var(--neutral-600);
  background: var(--neutral-0); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--neutral-300); }
.chip.is-active { background: var(--neutral-800); border-color: var(--neutral-800); color: #fff; }
.chip.is-active.chip--green { background: var(--green-400); border-color: var(--green-400); }

/* ============================================================
   Progress
   ============================================================ */
.bar { height: 8px; border-radius: 100px; background: var(--neutral-100); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 100px; background: var(--green-300); transition: width .6s ease; }
.bar--blue .bar__fill { background: var(--blue-300); }
.bar--yellow .bar__fill { background: var(--yellow-400); }
.bar--red .bar__fill { background: var(--red-300); }
.bar--purple .bar__fill { background: var(--purple-300); }
.bar--gradient .bar__fill { background: var(--bg-gradient); }

.ring { transform: rotate(-90deg); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.tbl thead th {
  text-align: left; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--neutral-400); padding: 10px 14px;
  border-bottom: 1px solid var(--neutral-100); white-space: nowrap;
}
table.tbl tbody td { padding: 13px 14px; border-bottom: 1px solid var(--neutral-50); color: var(--neutral-700); }
table.tbl tbody tr:hover { background: var(--neutral-50); }
table.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { font-family: var(--font-head); font-weight: 700; }
.rank {
  width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center;
  justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  background: var(--neutral-100); color: var(--neutral-500);
}
.rank--1 { background: #fff4d6; color: #b0830f; }
.rank--2 { background: #eef1f4; color: #6b7785; }
.rank--3 { background: #fbe9dd; color: #b9682f; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--neutral-100); margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  padding: 10px 16px; font-size: .85rem; font-weight: 600; color: var(--neutral-500);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab .mi { font-size: 18px; }
.tab:hover { color: var(--neutral-700); }
.tab.is-active { color: var(--green-500); border-bottom-color: var(--green-300); }

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 16px; }
.field__label { display: block; font-size: .78rem; font-weight: 600; color: var(--neutral-600); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--neutral-200); border-radius: 12px;
  padding: 11px 14px; font: inherit; font-size: .88rem; color: var(--neutral-800);
  background: var(--neutral-0); outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-300); box-shadow: 0 0 0 3px rgba(44,171,227,.12); }
.textarea { min-height: 90px; resize: vertical; }

/* ============================================================
   Misc
   ============================================================ */
.divider { height: 1px; background: var(--neutral-100); margin: 18px 0; border: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 9px; }
.kpi-legend { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--neutral-500); }
.scrolly { max-height: 360px; overflow-y: auto; }

.pill-tab-group { display: inline-flex; background: var(--neutral-100); border-radius: 100px; padding: 4px; gap: 2px; }
.pill-tab { padding: 6px 16px; border-radius: 100px; font-size: .8rem; font-weight: 600; color: var(--neutral-500); cursor: pointer; transition: all .2s; }
.pill-tab.is-active { background: var(--neutral-0); color: var(--neutral-800); box-shadow: var(--shadow-normal); }

.hero {
  background: var(--bg-gradient-brand); color: #fff; border-radius: 20px;
  padding: 32px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.hero::before {
  content: ''; position: absolute; right: 60px; bottom: -90px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}

.tooltip-note {
  font-size: .72rem; color: var(--neutral-400); display: inline-flex; align-items: center; gap: 4px;
}

.list-reset { list-style: none; margin: 0; padding: 0; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--neutral-100); }
.timeline__item { position: relative; padding-bottom: 18px; }
.timeline__item::before {
  content: ''; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--neutral-0); border: 2px solid var(--neutral-300);
}
.timeline__item.done::before { background: var(--green-300); border-color: var(--green-300); }
.timeline__item.current::before { background: var(--blue-300); border-color: var(--blue-300); box-shadow: 0 0 0 4px rgba(44,171,227,.15); }

/* Flow diagram (assessment UX) */
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow__step {
  flex: 1; min-width: 130px; background: var(--neutral-0); border: 1px solid var(--neutral-100);
  border-radius: 14px; padding: 16px; position: relative; text-align: center;
}
.flow__arrow { display: flex; align-items: center; color: var(--neutral-300); padding: 0 4px; }
.flow__step .stat__icon { margin: 0 auto 10px; }
.flow__step h4 { font-family: var(--font-head); font-size: .85rem; margin: 0 0 4px; color: var(--neutral-800); }
.flow__step p { font-size: .72rem; color: var(--neutral-500); }

@media (max-width: 991px) {
  .sidebar { position: fixed; left: 0; z-index: 40; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-raised); }
  .sidebar.is-open { transform: translateX(0); }
  body.app { display: block; }
  .content { width: 100%; }
}
.menu-toggle { display: none; }
@media (max-width: 991px) { .menu-toggle { display: inline-flex; } }

/* answer-runner specifics */
.opt {
  display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--neutral-200);
  border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: all .18s; background: var(--neutral-0);
}
.opt:hover { border-color: var(--blue-300); background: var(--blue-50); }
.opt.is-selected { border-color: var(--green-300); background: var(--green-50); }
.opt__key {
  width: 34px; height: 34px; border-radius: 9px; background: var(--neutral-100); color: var(--neutral-600);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; flex: 0 0 34px;
}
.opt.is-selected .opt__key { background: var(--green-300); color: #fff; }

.q-nav { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.q-dot {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--neutral-200); background: var(--neutral-0);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
  font-family: var(--font-head); color: var(--neutral-500); cursor: pointer; transition: all .15s;
}
.q-dot.answered { background: var(--green-50); border-color: var(--green-300); color: var(--green-500); }
.q-dot.current { background: var(--blue-300); border-color: var(--blue-300); color: #fff; }
.q-dot.flagged { border-color: var(--yellow-400); }
