/* =====================================================================
   Dean's Lister — modern UI stylesheet
===================================================================== */

:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;

  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-soft: #eef2ff;

  --indigo: #6366f1; --indigo-soft: #eef2ff;
  --blue:   #3b82f6; --blue-soft:   #eff6ff;
  --teal:   #14b8a6; --teal-soft:   #f0fdfa;
  --amber:  #f59e0b; --amber-soft:  #fffbeb;
  --green:  #16a34a; --green-soft:  #f0fdf4;
  --red:    #dc2626; --red-soft:    #fef2f2;
  --orange: #f97316; --orange-soft: #fff7ed;
  --violet: #8b5cf6; --violet-soft: #f5f3ff;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
.app { display: flex; min-height: 100vh; }

/* ── Sidebar (staff) ─────────────────────────────────────── */
.sidebar {
  width: 250px; flex: 0 0 250px;
  background: linear-gradient(180deg, #101b2d 0%, #0b1424 100%);
  color: #cbd5e1;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { color: #fff; padding: 20px 18px; }
.sidebar .brand-text small { color: #94a3b8; }

.menu { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.menu-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: #b6c2d1; font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu-item.is-active { background: rgba(99,102,241,.18); color: #fff; }
.menu-ic { display: grid; place-items: center; opacity: .9; }

.side-panel {
  margin: 14px 12px; padding: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.side-panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #8494a8; margin-bottom: 10px; }
.side-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; }
.side-name { flex: 1; }
.side-count { background: rgba(255,255,255,.1); border-radius: 6px; padding: 1px 7px; font-weight: 600; font-size: 12px; }

.side-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.side-dot.blue { background: var(--blue); }
.side-dot.violet { background: var(--violet); }
.side-dot.orange { background: var(--orange); }
.side-dot.green { background: var(--green); }
.side-dot.red { background: var(--red); }
.side-dot.gray { background: #94a3b8; }

.sidebar-foot { margin-top: auto; padding: 10px; border-top: 1px solid rgba(255,255,255,.07); }

/* ── Top navigation (student) ────────────────────────────── */
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); flex: 0 0 auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px -4px rgba(99,102,241,.55);
}
.brand-mark.large { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: .2px; }
.brand-text small { font-size: 11px; color: var(--muted); }

.topnav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.topnav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.topnav-item:hover { background: #f1f5f9; color: var(--ink); }
.topnav-item.is-active { background: var(--primary-soft); color: var(--primary); }

/* ── Main column & topbar ────────────────────────────────── */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 24px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 17px; font-weight: 700; margin: 0; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.role-chip { font-size: 12px; font-weight: 600; background: var(--primary-soft); color: var(--primary); padding: 4px 12px; border-radius: 99px; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; }
.avatar-xl { width: 72px; height: 72px; font-size: 26px; border-radius: 18px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { color: var(--ink); }
.content { padding: 26px 26px 48px; max-width: 1240px; width: 100%; margin: 0 auto; }
/* ── Cards & layout grid ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px;
}
.card + .card { margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; font-weight: 400; }
.dim { display: block; color: var(--muted); font-size: 12px; }

.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.stat-meta { display: flex; flex-direction: column; line-height: 1.25; }
.stat-label { color: var(--muted); font-size: 12.5px; }
.stat-value { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.tone-indigo .stat-ic { background: var(--indigo-soft); color: var(--indigo); }
.tone-blue   .stat-ic { background: var(--blue-soft);   color: var(--blue); }
.tone-green  .stat-ic { background: var(--green-soft);  color: var(--green); }
.tone-red    .stat-ic { background: var(--red-soft);    color: var(--red); }
.tone-amber  .stat-ic { background: var(--amber-soft);  color: var(--amber); }
.tone-teal   .stat-ic { background: var(--teal-soft);   color: var(--teal); }

.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.welcome { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary); }
.sep { color: #cbd5e1; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  font-weight: 600; font-size: 13px; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px -6px rgba(79,70,229,.6); }
.btn-primary:hover { background: #4338ca; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5f9; color: var(--ink); }
.btn-muted { background: #e2e8f0; color: #64748b; cursor: not-allowed; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Forms ───────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 600; color: #334155; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.input {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
textarea.input { resize: vertical; min-height: 56px; }

.grow { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.stack > * + * { margin-top: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin: 10px 0; }
.action-bar { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
/* ── Toolbars, filters & tables ───────────────────────────── */
.toolbar { padding: 16px 18px; }
.filter-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.table-card { padding: 0; overflow: hidden; }
.table-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 14px; }
.table-top h3 { margin: 0; font-size: 15.5px; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 10px 14px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px;
  color: #94a3b8; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table.compact td { padding: 8px 12px; }
.num { text-align: right; }
.ta-r { text-align: right; }
.cell-name { display: flex; align-items: center; gap: 10px; }
.cell-name .avatar { width: 32px; height: 32px; font-size: 12px; border-radius: 10px; }
.gwa-num { font-weight: 700; color: var(--green); }
.grade-badge { background: var(--indigo-soft); color: var(--indigo); border-radius: 8px; padding: 2px 9px; font-weight: 600; font-size: 12.5px; }
.pager { display: flex; gap: 6px; padding: 14px 22px; flex-wrap: wrap; }
.page-link {
  min-width: 32px; height: 32px; padding: 0 8px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--muted);
}
.page-link.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.page-gap { border: none; background: transparent; color: var(--muted); min-width: auto; padding: 0 4px; cursor: default; }

/* ── Topnav queue badge (Applications nav item) ──────────── */
.menu-badge {
  margin-left: 2px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--amber); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 2px 6px -2px rgba(245, 158, 11, .7);
}
.menu-item .menu-badge { margin-left: auto; }
.topnav-item.is-active .menu-badge { background: var(--primary); box-shadow: none; }

/* ── Notification bell (student topbar) ──────────────────── */
.bell-btn { position: relative; display: inline-grid; place-items: center; color: #475569; }
.bell-btn:hover { color: var(--primary); }
.bell-badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ── Notifications page ──────────────────────────────────── */
.notif-list { display: flex; flex-direction: column; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 22px; border-bottom: 1px solid #f1f5f9;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.is-unread { background: var(--primary-soft); }
.notif-ic {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  display: grid; place-items: center;
}
.notif-ic.tone-blue   { background: var(--blue-soft);   color: var(--blue); }
.notif-ic.tone-violet { background: var(--violet-soft); color: var(--violet); }
.notif-ic.tone-orange { background: var(--orange-soft); color: var(--orange); }
.notif-ic.tone-green  { background: var(--green-soft);  color: var(--green); }
.notif-ic.tone-red    { background: var(--red-soft);    color: var(--red); }
.notif-ic.tone-indigo { background: var(--indigo-soft); color: var(--indigo); }
.notif-body { flex: 1; }
.notif-body p { margin: 0 0 2px; font-size: 13.5px; font-weight: 500; }
.notif-item.is-unread .notif-body p { font-weight: 600; }
.notif-body small { color: var(--muted); font-size: 12px; }

/* ── Pills & chips ───────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  padding: 4px 11px; border-radius: 99px; white-space: nowrap;
}
.pill-blue   { background: var(--blue-soft);   color: #1d4ed8; }
.pill-violet { background: var(--violet-soft); color: #6d28d9; }
.pill-orange { background: var(--orange-soft); color: #c2410c; }
.pill-green  { background: var(--green-soft);  color: #15803d; }
.pill-red    { background: var(--red-soft);    color: #b91c1c; }
.pill-gray   { background: #f1f5f9;            color: #475569; }

.chip {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: #f1f5f9; color: #334155;
  border-radius: 8px; padding: 3px 10px; margin: 2px 6px 2px 0;
}
.chip:first-of-type { margin-left: 0; }
.award-chips, .rule-chips { margin-top: 8px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 11px; font-size: 13.5px;
  border: 1px solid transparent; margin-bottom: 16px;
}
.alert-success { background: var(--green-soft); border-color: #bbf7d0; color: #15803d; }
.alert-danger  { background: var(--red-soft);   border-color: #fecaca; color: #b91c1c; }

/* ── Awards list ─────────────────────────────────────────── */
.award-list { display: flex; flex-direction: column; gap: 10px; }
.award-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.award-item.locked { opacity: .65; background: #f8fafc; }
.award-info { display: flex; flex-direction: column; }
.award-info strong { font-size: 14px; }
.award-info small { color: var(--muted); font-size: 12px; }

.app-mini-list { display: flex; flex-direction: column; gap: 8px; }
.app-mini {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  transition: border .15s, box-shadow .15s;
}
.app-mini:hover { border-color: #c7d2fe; box-shadow: 0 4px 16px -10px rgba(79,70,229,.5); }
.app-mini div { display: flex; flex-direction: column; min-width: 0; }
.award-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.app-mini strong { font-size: 13.5px; }
.app-mini small { color: var(--muted); font-size: 12px; }

/* ── Funnel ──────────────────────────────────────────────── */
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.funnel-name { width: 150px; color: #334155; font-weight: 500; }
.funnel-track { flex: 1; height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 99px; min-width: 3%; }
.funnel-fill.blue { background: var(--blue); }
.funnel-fill.violet { background: var(--violet); }
.funnel-fill.orange { background: var(--orange); }
.funnel-fill.green { background: var(--green); }
.funnel-fill.red { background: var(--red); }
.funnel-fill.gray { background: #94a3b8; }
.funnel-count { width: 34px; text-align: right; font-weight: 700; color: #334155; }
/* ── Stepper ─────────────────────────────────────────────── */
.stepper { display: flex; align-items: flex-start; gap: 4px; }
.step { display: flex; align-items: center; flex-direction: column; gap: 6px; flex: 1; position: relative; text-align: center; }
.step::after { content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.step:last-child::after { display: none; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center; color: #94a3b8; z-index: 1;
}
.step.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.current .step-dot { border-color: var(--primary); color: var(--primary); }
.step.deny .step-dot { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.step.deny.done .step-dot { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.step.deny .step-name { color: var(--red) !important; }
.step-name { font-size: 12.5px; font-weight: 600; color: var(--muted); z-index: 1; background: var(--card); padding: 0 6px; }

/* ── Profile hero ────────────────────────────────────────── */
.profile-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-main { flex: 1; min-width: 240px; }
.profile-main h2 { margin: 0 0 4px; font-size: 20px; }
.profile-stats { display: flex; gap: 10px; }
.mini-stat {
  text-align: center; padding: 8px 16px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
}
.mini-stat span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.mini-stat strong { font-size: 16px; }

/* ── Eligibility checks ──────────────────────────────────── */
.check-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.check-row:last-of-type { border-bottom: none; }
.check-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 26px; }
.check-ic.ok { background: var(--green-soft); color: var(--green); }
.check-ic.no { background: var(--red-soft); color: var(--red); }
.check-body { flex: 1; display: flex; flex-direction: column; }
.check-body strong { font-size: 13.5px; }
.check-body small { color: var(--muted); font-size: 12px; }
.check-val { font-weight: 700; }
.check-val.ok { color: var(--green); }
.check-val.no { color: var(--red); }
.elig-result { margin-top: 14px; font-size: 13px; font-weight: 600; }
.elig-result.ok { color: var(--green); }
.elig-result.no { color: var(--red); }

/* ── Timeline ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 8px 0 8px 18px; }
.tl-dot {
  position: absolute; left: 0; top: 13px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--primary-soft);
}
.tl-dot.start { background: #94a3b8; border-color: #e2e8f0; }
.tl-dot.ok { background: var(--green); border-color: var(--green-soft); }
.tl-dot.deny { background: var(--red); border-color: var(--red-soft); }
.tl-dot.return { background: var(--orange); border-color: var(--orange-soft); }
.tl-body { display: flex; flex-direction: column; }
.tl-body small { color: var(--muted); font-size: 12px; }
.tl-note { margin: 4px 0 0; font-size: 12.5px; color: #475569; background: #f8fafc; padding: 6px 10px; border-radius: 8px; }

/* ── Action card / misc ─────────────────────────────────── */
.action-card { border: 1px dashed #c7d2fe; background: #fbfbfe; }
.action-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty p { margin: 0; }
.empty-ic { color: #cbd5e1; }
.kv { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.kv > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.kv span { color: var(--muted); }
.kv strong { font-weight: 600; }

/* ── Auth screen ─────────────────────────────────────────── */
.auth-body {
  background: linear-gradient(135deg, #eef2ff 0%, #f4f6fb 55%, #ecfeff 100%);
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; }
.auth-brand strong { font-size: 20px; }
.auth-brand small { color: var(--muted); }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 4px; font-size: 22px; }
.auth-sub { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }
.auth-hint { text-align: center; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.auth-hint strong { display: block; margin-bottom: 2px; }
.auth-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-note a, .auth-hint a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-note a:hover, .auth-hint a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 901px) {
  .icon-btn.burger { display: none; }
}
@media (max-width: 1100px) {
  .topbar .brand-text { display: none; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .topnav { gap: 2px; }
  .topnav-item { padding: 8px 10px; }
  .topnav-lb { display: none; } /* icon-only student nav on small screens */
}
@media (max-width: 720px) {
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .content { padding: 18px 14px 40px; }
  .topbar { padding: 10px 14px; }
  .role-chip { display: none; }
}
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}

