:root {
  color-scheme: light;
  font-family: Roboto, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #20202b;
  --muted: #72727f;
  --line: #dedee8;
  --paper: #fff;
  --canvas: #f5f5f9;
  --navy: #000080;
  --blue: #000066;
  --blue-pale: #f3f3fa;
  --green: #0b6e4f;
  --red: #9d0019;
  --shadow: 0 5px 15px rgba(20, 24, 72, .09);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); overflow-x: hidden; }
body { scrollbar-width: none; -ms-overflow-style: none; }
body::-webkit-scrollbar { width: 0; height: 0; display: none; }
button, input { font: inherit; }
button { touch-action: manipulation; }
.app-shell { min-height: 100vh; }
.icon-defs { position: absolute; overflow: hidden; }

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 240px;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--paper);
  border-right: 1px solid #d6d6df;
  transition: transform .22s ease;
}
.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.brand-block { display: flex; min-height: 102px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 14px 12px; border-bottom: 1px solid var(--line); }
.brand-logo { display: block; width: 122px; height: 48px; object-fit: contain; }
.brand-caption { color: #7b7b83; font-size: 10px; text-align: center; }
.student-chip { display: flex; min-height: 66px; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; color: #fff; background: linear-gradient(145deg, #981d38, #30206d); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #dedee8; font-size: 12px; font-weight: 700; }
.avatar-small { width: 29px; height: 29px; font-size: 9px; }
.student-name { margin: 0 0 3px; font-size: 12px; font-weight: 700; }
.student-role { color: var(--muted); font-size: 10px; }
.primary-nav { display: grid; gap: 3px; padding: 9px 7px 14px; }
.nav-row { display: grid; gap: 2px; }
.nav-button { display: flex; width: 100%; min-height: 43px; align-items: center; gap: 13px; padding: 0 13px; color: #282832; background: transparent; border: 0; border-radius: 7px; cursor: pointer; text-align: left; font-size: 12px; font-weight: 600; transition: color .15s ease, background .15s ease; }
.nav-button:hover { background: #f1f1f8; }
.nav-button.active { color: #fff; background: var(--navy); }
.nav-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-label { flex: 1; }
.chevron { width: 15px; height: 15px; transition: transform .16s ease; }
.nav-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.subnav { display: grid; gap: 2px; padding: 2px 0 5px 38px; }
.subnav[hidden] { display: none; }
.subnav-button { min-height: 34px; padding: 5px 10px; color: #5b5b67; background: transparent; border: 0; border-left: 2px solid #e2e2ec; cursor: pointer; text-align: left; font-size: 11px; }
.subnav-button:hover { color: var(--navy); background: #f7f7fc; }
.subnav-button.active { color: var(--navy); border-left-color: var(--navy); font-weight: 700; }
.sidebar-bottom { margin-top: auto; padding: 12px 14px 13px; border-top: 1px solid var(--line); }
.sidebar-about { margin-bottom: 11px; color: #9898a2; font-size: 9px; line-height: 1.7; }
.sidebar-about strong { display: block; color: #696974; font-size: 10px; }
.logout-button { display: flex; width: 100%; min-height: 43px; align-items: center; gap: 11px; padding: 0 13px; color: #fff; background: var(--red); border: 0; border-radius: 7px; cursor: pointer; text-align: left; font-size: 12px; font-weight: 700; }
.logout-button:hover { background: #850018; }

.main-area { min-height: 100vh; margin-left: 240px; }
.topbar { position: relative; z-index: 10; display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar { display: none; }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 13px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-logo { display: block; width: 35px; height: 35px; object-fit: contain; }
.page-context { color: #777783; font-size: 11px; }
.page-context strong { color: #272735; font-size: 13px; }
.icon-button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: #555563; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.icon-button:hover { color: var(--navy); background: #f0f0f7; border-color: var(--line); }
.icon-button svg { width: 19px; height: 19px; }
.mobile-menu { display: none; }
.search-wrap { position: relative; }
.search-input { width: 194px; height: 36px; padding: 0 12px 0 35px; color: var(--ink); background: #f7f7fa; border: 1px solid #e3e3eb; border-radius: 6px; outline: 0; font-size: 11px; }
.search-input:focus { border-color: #a6a6cf; box-shadow: 0 0 0 3px rgba(15,15,125,.08); }
.search-wrap > svg { position: absolute; top: 10px; left: 11px; width: 16px; height: 16px; color: #868692; }
.main-content { width: min(100%, 1600px); margin-inline: auto; padding: 20px; }

.profile-card, .panel, .metric-card { background: var(--paper); border: 1px solid #e3e3ec; border-radius: 9px; box-shadow: var(--shadow); }
.profile-card { position: relative; min-height: 423px; overflow: hidden; padding: 0 16px 16px; border-radius: 12px; }
.profile-banner { height: 76px; margin: 0 -16px; background: linear-gradient(112deg, #080871 0%, #191484 62%, #54145f 100%); }
.profile-avatar { position: relative; display: grid; width: 103px; height: 103px; margin: -32px auto 8px; place-items: center; color: #fff; background: linear-gradient(145deg, #a91d37 0%, #373080 55%, #101068 100%); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(25,20,70,.2); font-size: 22px; font-weight: 700; }
.profile-main { text-align: center; }
.profile-main h1 { margin: 0 0 4px; color: var(--navy); font-size: 20px; }
.profile-degree { margin: 0; color: var(--muted); font-size: 12px; }
.profile-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 10px 0 11px; }
.tag { padding: 5px 10px; color: #3d327f; background: #efeffa; border-radius: 20px; font-size: 11px; font-weight: 700; }
.tag.term { color: #8f2840; background: #fbebef; }
.tag.campus { color: #3f424d; background: #f5f5f7; border: 1px solid #d5d5dc; }
.profile-details { display: grid; max-width: 615px; grid-template-columns: 1fr 1fr; gap: 4px 28px; margin: 12px auto 12px; text-align: left; }
.detail-row { color: #6a6a75; font-size: 12px; line-height: 1.35; }
.detail-row strong { color: #1d1d65; font-weight: 700; }
.outline-action { display: flex; width: 100%; min-height: 29px; align-items: center; justify-content: center; color: var(--navy); background: #fff; border: 1px solid #c7c7d4; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 700; }
.outline-action:hover { background: #f7f7fc; border-color: #7777ac; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 23px 0 11px; }
.profile-card + .section-heading { margin-top: 10px; padding: 13px 14px 0; background: #fff; border: 1px solid #e3e3ec; border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: var(--shadow); }
.section-heading h2 { margin: 0; color: #777782; font-size: 13px; font-weight: 700; }
.section-heading p { margin: 0; color: #92929c; font-size: 11px; }
.text-button { padding: 5px 0; color: #15155d; background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 7px 14px 13px; background: #fff; border: 1px solid #e3e3ec; border-top: 0; border-radius: 0 0 10px 10px; box-shadow: var(--shadow); }
.quick-card { display: flex; min-height: 76px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; color: var(--blue); background: #fff; border: 1px solid #d1d1dc; border-radius: 4px; cursor: pointer; text-align: center; font-size: 13px; font-weight: 500; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.quick-card:hover { background: #fafaff; border-color: #8989b8; transform: translateY(-1px); }
.quick-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--navy); background: #ededf8; border-radius: 6px; }
.quick-icon svg { width: 21px; height: 21px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 15px 0; }
.metric-card { display: flex; min-height: 122px; align-items: center; gap: 12px; padding: 16px; border-radius: 10px; }
.metric-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--navy); background: var(--blue-pale); border-radius: 7px; }
.metric-icon svg { width: 19px; height: 19px; }
.metric-label { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.metric-value { margin: 0; color: #24243a; font-size: 34px; font-weight: 800; line-height: 1.15; }
.metric-value.compact { font-size: 14px; }
.metric-note { display: block; margin-top: 3px; color: #777783; font-size: 12px; }
.metric-grid .metric-card { display: block; }
.metric-grid .metric-icon { display: none; }
.metric-grid .metric-card:nth-child(1) .metric-value { color: #000080; }
.metric-grid .metric-card:nth-child(2) .metric-value { color: #0b6e4f; }
.metric-grid .metric-card:nth-child(3) .metric-value { color: #9d0019; }
.metric-grid .metric-card:nth-child(4) .metric-value { color: #8a5a00; }

.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: 13px; align-items: start; }
.panel { min-width: 0; padding: 16px; }
.panel-header { display: flex; min-height: 26px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-header h2 { margin: 0; font-size: 13px; font-weight: 700; }
.panel-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.calendar-controls { display: flex; align-items: center; gap: 5px; }
.calendar-controls strong { min-width: 100px; text-align: center; font-size: 11px; }
.calendar-arrow { display: grid; width: 30px; height: 30px; place-items: center; color: #58586a; background: #fff; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.calendar-arrow:hover { color: var(--navy); background: #f5f5fc; }
.calendar-arrow svg { width: 14px; height: 14px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.calendar-week span { padding: 9px 0 7px; color: #8b8b96; font-size: 9px; font-weight: 700; }
.calendar-day { position: relative; display: grid; min-height: 34px; place-items: center; color: #464653; background: transparent; border: 0; border-radius: 5px; cursor: pointer; font-size: 10px; }
.calendar-day:hover { background: #f1f1f9; }
.calendar-day.muted { color: #c4c4cc; }
.calendar-day.today { color: #8f2840; background: #fff; outline: 1px solid #d59aa6; font-weight: 700; }
.calendar-day.selected:not(.today) { color: var(--navy); background: #eeeffa; outline: 1px solid var(--navy); font-weight: 700; }
.calendar-day.has-event::after { position: absolute; bottom: 4px; width: 4px; height: 4px; background: #a03449; border-radius: 50%; content: ""; }
.calendar-day.today.has-event::after { background: #fff; }
.event-key { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 0; color: #81818c; font-size: 9px; }
.event-key span { display: inline-flex; align-items: center; gap: 5px; }
.event-dot { width: 6px; height: 6px; background: #a03449; border-radius: 50%; }
.selected-date { margin-top: 12px; padding-top: 11px; border-top: 1px solid #ededf1; }
.selected-date h3 { margin: 0 0 8px; font-size: 11px; }
.selected-date p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.schedule-list { display: grid; gap: 9px; }
.schedule-item { display: grid; grid-template-columns: 60px 3px minmax(0,1fr); gap: 10px; align-items: stretch; }
.schedule-time { padding-top: 4px; color: #777783; font-size: 10px; }
.schedule-rule { background: #9d3561; border-radius: 3px; }
.schedule-info { min-width: 0; padding: 2px 0 7px; }
.schedule-info strong { display: block; margin-bottom: 4px; color: #292941; font-size: 11px; }
.schedule-info span { display: block; color: var(--muted); font-size: 9px; line-height: 1.5; }
.empty-state { padding: 18px 10px; color: #848490; background: #f8f8fb; border-radius: 6px; text-align: center; font-size: 10px; line-height: 1.5; }
.empty-state strong { display: block; margin-bottom: 4px; color: #444451; font-size: 11px; }
.summary-strip { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) auto; gap: 16px; align-items: center; margin-top: 13px; }
.fee-title { margin: 0 0 5px; font-size: 12px; }
.fee-caption { margin: 0; color: var(--muted); font-size: 10px; }
.fee-numbers { display: flex; justify-content: space-between; gap: 12px; }
.fee-numbers span { display: block; color: var(--muted); font-size: 9px; }
.fee-numbers strong { display: block; margin-top: 3px; color: #2e2e3a; font-size: 11px; }
.progress-track { height: 6px; margin-top: 9px; overflow: hidden; background: #e9e9ef; border-radius: 8px; }
.progress-fill { width: 63%; height: 100%; background: linear-gradient(90deg, #17177d, #6762ad); border-radius: inherit; }
.primary-action { min-height: 38px; padding: 0 13px; color: #fff; background: var(--navy); border: 0; border-radius: 5px; cursor: pointer; font-size: 10px; font-weight: 700; }
.primary-action:hover { background: #20208f; }

.dashboard-hero { display: grid; min-height: 190px; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); grid-template-rows: auto 1fr; align-items: center; column-gap: 22px; margin: 34px 0 24px; padding: 22px 24px; color: #fff; background: linear-gradient(112deg, #000080 0%, #11117d 58%, #282071 100%); border-radius: 12px; }
.portal-band { grid-column: 1 / -1; align-self: end; margin: 0 0 5px; color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.dashboard-welcome { align-self: start; margin: 0; }
.dashboard-welcome h1 { margin: 0 0 5px; color: #fff; font-size: 26px; line-height: 1.25; }
.dashboard-welcome p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.5; }
.account-overview { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
.account-card { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); border-radius: 7px; box-shadow: 0 2px 7px rgba(0,0,60,.12); }
.account-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--navy); background: #ededf8; border-radius: 7px; }
.account-icon svg { width: 19px; height: 19px; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong { display: block; margin-bottom: 5px; color: #252545; font-size: 11px; }
.account-copy span { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.account-action { min-height: 33px; padding: 0 11px; color: var(--navy); background: #fff; border: 1px solid #d0d0de; border-radius: 5px; cursor: pointer; font-size: 10px; font-weight: 700; }
.account-action:hover { background: #f6f6fc; }
.calendar-panel { padding: 0; overflow: hidden; }
.calendar-panel > .panel-header { min-height: 61px; margin: 0; padding: 12px 16px; border-bottom: 1px solid #ededf2; }
.calendar-panel > .panel-header h2 { display: flex; align-items: center; gap: 7px; }
.calendar-panel > .panel-header h2 svg { width: 18px; height: 18px; flex: 0 0 auto; }
.calendar-controls .text-button { margin-left: 6px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.9fr); min-height: 320px; }
.calendar-month { min-width: 0; padding: 9px 13px 12px; }
.calendar-week span { padding-block: 8px; }
.calendar-day { min-height: 43px; background: #fff; }
.calendar-day.has-event { background-color: #f6f6fa; }
.calendar-day.has-event::after { width: 5px; height: 5px; background: var(--event-color,#17177d); }
.calendar-day.event-exam { --event-color: #b78a22; }
.calendar-day.event-attendance { --event-color: #388b67; }
.calendar-day.event-activity { --event-color: #a03449; }
.calendar-day.today.has-event::after { background: #fff; }
.event-key { gap: 8px 12px; margin: 7px 0 0; }
.event-key .event-dot { flex: 0 0 auto; }
.event-dot.lecture { background: #17177d; }
.event-dot.exam { background: #b78a22; }
.event-dot.attendance { background: #388b67; }
.event-dot.activity { background: #a03449; }
.calendar-agenda { padding: 17px 16px; border-left: 1px solid #ededf2; }
.agenda-date { margin: 0 0 4px; color: #242445; font-size: 12px; font-weight: 700; }
.agenda-count { margin: 0 0 12px; color: #858591; font-size: 10px; }
.agenda-event { padding: 11px 10px; background: #f5f5fa; border: 1px solid #e1e1ed; border-left: 3px solid var(--navy); border-radius: 7px; }
.agenda-event.event-exam { border-left-color: #b78a22; }
.agenda-event.event-attendance { border-left-color: #388b67; }
.agenda-event.event-activity { border-left-color: #a03449; }
.agenda-event-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agenda-event-head strong { color: #212154; font-size: 11px; }
.agenda-event-type { padding: 4px 7px; color: #222260; background: #e8e8f7; border-radius: 12px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.agenda-event.event-exam .agenda-event-type { color: #755812; background: #f8f0dc; }
.agenda-event.event-attendance .agenda-event-type { color: #286648; background: #e6f3ec; }
.agenda-event.event-activity .agenda-event-type { color: #822b3d; background: #fae9ed; }
.agenda-event p { margin: 6px 0 4px; color: #33334a; font-size: 11px; font-weight: 600; }
.agenda-event span:last-child { color: var(--muted); font-size: 9px; line-height: 1.5; }
.agenda-empty { padding: 17px 12px; color: #81818c; background: #f8f8fb; border-radius: 6px; font-size: 10px; line-height: 1.6; }
.agenda-empty p { margin: 0 0 7px; }
.agenda-empty strong { color: #444451; }
.calendar-open { width: 100%; margin-top: 11px; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.9fr); gap: 13px; align-items: start; margin-top: 14px; }
.dashboard-rail { display: grid; gap: 13px; }
.today-empty { padding: 16px 0 11px; color: #777783; border-bottom: 1px solid var(--line); font-size: 11px; }
.next-up-card { margin-top: 0; padding: 14px 13px; background: #f4f4fa; border-radius: 7px; }
.next-up-card .eyebrow { margin: 0 0 7px; color: #34346b; font-size: 9px; font-weight: 700; }
.next-up-card strong { display: block; margin-bottom: 5px; color: #222253; font-size: 12px; }
.next-up-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.fee-status-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.fee-status-heading h2, .next-exam-heading h2 { margin: 0; font-size: 13px; }
.fee-progress-row { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 12px; align-items: center; }
.fee-ring { display: grid; width: 78px; height: 78px; place-items: center; background: conic-gradient(var(--navy) 0 63%, #e3e2f2 63% 100%); border-radius: 50%; }
.fee-ring::before { grid-area: 1 / 1; width: 60px; height: 60px; background: #fff; border-radius: 50%; content: ""; }
.fee-ring strong { z-index: 1; grid-area: 1 / 1; color: #202052; font-size: 12px; }
.fee-progress-values { display: grid; gap: 10px; }
.fee-progress-values span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.fee-progress-values strong { color: #24243a; font-size: 12px; }
.fee-progress-values .balance strong { color: #971c34; }
.fee-status-footer { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.fee-status-footer .progress-track { flex: 1; margin: 0; }
.commitment { padding: 5px 9px; color: #fff; background: #27825e; border-radius: 15px; font-size: 9px; font-weight: 700; }
.next-exam-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.next-exam-heading svg { width: 18px; height: 18px; color: #7a7aa0; }
.next-exam-copy { margin: 0 0 12px; color: #777783; font-size: 11px; }
.next-exam-card .outline-action { min-height: 34px; }

.module-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin: 3px 0 18px; }
.module-header h1 { margin: 0 0 6px; font-size: 22px; }
.module-header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.module-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.module-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: 13px; align-items: start; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 10px 8px; color: #777783; background: #f7f7fa; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; }
.data-table td { padding: 11px 8px; color: #43434f; border-bottom: 1px solid #ededf2; font-size: 10px; line-height: 1.45; }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.status-pill { display: inline-block; padding: 4px 7px; color: #246345; background: #e9f5ef; border-radius: 20px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-pill.pending { color: #815b06; background: #fff5d9; }
.detail-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.detail-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ededf2; color: #666672; font-size: 10px; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list strong { color: #292941; text-align: right; }
.module-callout { margin-top: 13px; padding: 13px; color: #535360; background: #f5f5fb; border-left: 3px solid #17177d; border-radius: 3px; font-size: 10px; line-height: 1.6; }
.module-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.secondary-action { min-height: 36px; padding: 0 11px; color: var(--navy); background: #fff; border: 1px solid #d0d0de; border-radius: 5px; cursor: pointer; font-size: 10px; font-weight: 700; }
.secondary-action:hover { background: #f7f7fc; }
.timetable-grid { display: grid; grid-template-columns: 66px repeat(5, minmax(110px,1fr)); min-width: 660px; }
.time-cell, .day-head, .class-cell { min-height: 54px; padding: 8px; border-right: 1px solid #ededf2; border-bottom: 1px solid #ededf2; font-size: 9px; }
.day-head { min-height: 35px; color: #696976; background: #f7f7fa; font-size: 10px; font-weight: 700; }
.time-cell { color: #858591; }
.class-chip { display: block; padding: 5px; color: #222260; background: #efeffb; border-left: 2px solid #17177d; border-radius: 3px; line-height: 1.4; }
.app-footer { margin: 20px -22px -22px; padding: 21px 22px; color: rgba(255,255,255,.85); background: linear-gradient(110deg, #080871, #4b1d63); border-radius: 9px 9px 0 0; font-size: 10px; font-weight: 700; }
.footer-note { float: right; font-weight: 400; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; color: #fff; background: #24243c; border-radius: 6px; box-shadow: 0 9px 24px rgba(15,15,40,.2); font-size: 11px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.mobile-scrim { display: none; }
:focus-visible { outline: 3px solid #7777cf; outline-offset: 2px; }

@media (max-width: 1080px) {
  .main-content { padding: 24px 28px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-columns, .module-layout { grid-template-columns: minmax(0,1fr) minmax(260px,.85fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 12px 0 28px rgba(15,15,40,.12); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu { display: grid; }
  .mobile-scrim.visible { position: fixed; z-index: 15; inset: 0; display: block; background: rgba(13,13,39,.36); }
  .topbar { display: flex !important; }
  .main-content { padding: 0; }
  .dashboard-columns, .module-layout { grid-template-columns: 1fr; }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-panel { border: 1px solid #e3e3ec; border-radius: 10px; box-shadow: var(--shadow); }
  .calendar-panel > .panel-header { min-height: 52px; padding: 10px 12px; }
  .calendar-panel > .panel-header h2 { font-size: 12px; }
  .calendar-panel > .panel-header .panel-subtitle { font-size: 9px; }
  .calendar-month { padding: 6px 10px 8px; }
  .calendar-day { min-height: 38px; border-radius: 5px; }
  .calendar-agenda { padding: 12px 12px 10px; border-top: 1px solid #ededf2; border-left: 0; }
  .agenda-date { font-size: 11px; }
  .agenda-count { margin-bottom: 10px; }
  .agenda-empty { padding: 12px 10px; }
  .dashboard-lower { grid-template-columns: 1fr; }
  .dashboard-hero { min-height: auto; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .dashboard-welcome { grid-row: 2; }
  .account-overview { grid-row: 3; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-card { min-height: 390px; }
}
@media (max-width: 580px) {
  .topbar { min-height: 56px; gap: 8px; padding-inline: 10px; }
  .topbar-left, .topbar-actions { gap: 5px; }
  .page-context { display: block; }
  .page-context strong { font-size: 11px; }
  .page-context span { display: none; }
  .search-input { width: min(30vw, 118px); }
  .main-content { padding: 18px 16px; }
  .profile-card { min-height: 330px; padding: 0 14px 15px; }
  .profile-banner { margin-inline: -14px; }
  .profile-card + .section-heading { margin-top: 10px; }
  .profile-avatar { width: 82px; height: 82px; margin-top: -24px; margin-bottom: 6px; }
  .profile-main h1 { font-size: 18px; }
  .profile-degree { font-size: 12px; }
  .tag { font-size: 10px; }
  .detail-row { font-size: 11px; }
  .profile-details { grid-template-columns: 1fr; }
  .account-overview { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .quick-card { min-height: 74px; font-size: 12px; }
  .metric-grid, .module-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-card { min-height: 96px; gap: 9px; padding: 12px; }
  .metric-icon { width: 33px; height: 33px; }
  .metric-grid .metric-value { font-size: 29px; }
  .metric-grid .metric-note { font-size: 10px; }
  .panel { padding: 13px; }
  .dashboard-hero { gap: 13px; margin: 12px 0 15px; padding: 18px; }
  .portal-band { font-size: 10px; }
  .dashboard-welcome h1 { font-size: 22px; }
  .dashboard-welcome p { font-size: 12px; }
  .account-overview { grid-template-columns: 1fr; }
  .calendar-panel { padding: 0; }
  .calendar-panel > .panel-header { align-items: flex-start; flex-direction: column; }
  .calendar-controls { width: 100%; justify-content: flex-end; }
  .calendar-day { min-height: 34px; }
  .event-key { gap: 7px 10px; }
  .calendar-agenda { padding: 12px 12px 10px; }
  .summary-strip { grid-template-columns: 1fr auto; }
  .summary-strip .progress-wrap { grid-column: 1 / -1; grid-row: 2; }
  .module-header { flex-direction: column; }
  .app-footer { margin: 18px -13px -13px; padding-inline: 14px; }
}
@media (max-width: 360px) {
  .topbar { gap: 4px; padding-inline: 6px; }
  .topbar-left, .topbar-actions, .topbar-brand { gap: 4px; }
  .topbar-logo { width: 28px; height: 28px; }
  .search-input { width: 76px; padding-right: 4px; }
  .topbar-actions > [data-route="profile"] { display: none; }
  .topbar-actions > .icon-button { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .app-footer, .icon-button, .primary-action, .secondary-action { display: none !important; }
  .main-area { margin: 0; }
  .main-content { max-width: none; padding: 0; }
  .panel, .metric-card, .profile-card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}