:root {
  --header: #538aba;
  --page: #f5f6fa;
  --side: #f7f8fa;
  --side-sub: #eef0f3;
  --side-active: #e3eef5;
  --accent: #3ea0cf;
  --accent-btn: #56b8dc;
  --accent-soft: #e6f4fa;
  --indigo: #3f51b5;
  --ink: #212121;
  --ink-2: #555;
  --muted: #777;
  --line: #e6e8eb;
  --card: #fff;
  --green: #43a047;
  --green-soft: #e8f5e9;
  --red: #d32f2f;
  --red-soft: #fdecea;
  --orange: #ef8c1a;
  --orange-soft: #fff4e0;
  --magenta: #d63bb3;
  --purple: #8e24aa;
  --teal-btn: #5a8a94;
  --shadow: 0 2px 7px rgba(30, 50, 80, .06);
  --side-w: 200px;
  --top-h: 49px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
[hidden] { display: none !important; }
.mdi { line-height: 1; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--top-h);
  background: var(--header);
  display: flex; align-items: center;
  padding: 0 43px 0 10px;
}
.brand { display: flex; align-items: center; width: 187px; height: 100%; }
.brand img { width: 187px; height: 44px; object-fit: fill; display: block; }
.menu-toggle { background: none; border: 0; color: #fff; font-size: 17.5px; padding: 4.5px; margin-left: 7px; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 8.5px; color: #fff; font-size: 13.5px; }
.login-mode .menu-toggle, .login-mode .topbar-user { display: none; }

.avatar {
  width: 43px; height: 43px; border-radius: 50%;
  background: #cfd8e3; color: #445; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.avatar-sm { width: 24.5px; height: 24.5px; font-size: 8.5px; border: 2px solid #fff; }

/* ---------- Login ---------- */
.login-view { min-height: 100vh; padding: calc(var(--top-h) + 104.5px) 11.5px 29px; background: #fff; }
.login-card {
  max-width: 440px; margin: 0 auto; background: #fff; border-radius: 4.5px;
  padding: 31.5px 15px 15px;
  box-shadow: 0 29px 57.5px rgba(0, 0, 0, .18), 0 0 21.5px rgba(0, 0, 0, .06);
}
.login-card h1 { margin: 0 0 14.5px; font-weight: 400; font-size: 24.5px; color: #777; }
.login-sub { margin: 0 0 11.5px; color: #777; font-size: 12px; }
.login-field { position: relative; margin-top: 0; }
.login-field + .login-error + .login-field, .login-error + .login-field { margin-top: 27.5px; }
.login-field input {
  width: 100%; height: 34px; border: 1px solid #ccc; border-radius: 2px;
  padding: 0 108px 0 26px; font-size: 13.5px; color: #444;
}
.login-field input::placeholder { color: #666; }
.login-field input:focus { outline: none; border-color: var(--header); }
.forgot { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #777; font-size: 11.5px; }
.login-error { color: var(--red); font-size: 12px; margin: 8.5px 0 0; }
.login-actions { display: flex; justify-content: flex-end; margin-top: 25px; }
.btn-login {
  background: var(--teal-btn); color: #fff; border: 0; border-radius: 2px;
  padding: 8px 13px; font-size: 14.5px; font-family: "Open Sans", Roboto, sans-serif;
  display: inline-flex; gap: 4.5px; align-items: center;
}
.btn-login:hover { background: #4d7a83; }

/* ---------- Shell ---------- */
.shell { padding-top: var(--top-h); min-height: 100vh; }
.sidebar {
  position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--side-w);
  background: var(--side); border-right: 1px solid #ddd; overflow-y: auto; z-index: 30;
  transition: transform .25s ease;
}
.side-user { display: flex; align-items: center; gap: 16px; padding: 10px 10px 8.5px; }
.side-name { font-weight: 700; font-size: 12px; color: #333; }
.side-status { font-size: 11px; color: #333; margin-top: 8.5px; margin-left: 3px; }

.nav-item {
  display: flex; align-items: center; gap: 8.5px; width: 100%;
  padding: 13px 17.5px; background: none; border: 0; border-left: 3px solid transparent;
  color: #222; font-size: 14.5px; font-weight: 500; text-align: left; text-decoration: none !important;
}
.nav-item .mdi { font-size: 18.5px; width: 20px; text-align: center; }
.nav-item:hover { background: #eef2f6; }
.nav-item.open { background: var(--side-sub); border-left-color: var(--accent); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent); }
.nav-sub { background: var(--side-sub); padding: 0 0 3px 5px; }
.nav-sub a {
  display: flex; align-items: center; gap: 8.5px;
  padding: 7px 14.5px; color: #666; font-size: 13.5px; text-decoration: none !important;
}
.nav-sub a .mdi { font-size: 13.5px; width: 16px; text-align: center; }
.nav-sub a:hover { color: #333; }
.nav-sub a.active { background: var(--side-active); color: var(--accent); font-weight: 500; }

.content-wrap { margin-left: var(--side-w); min-height: calc(100vh - var(--top-h)); display: flex; flex-direction: column; transition: margin .25s ease; }
.content { flex: 1; padding: 17.5px 20px 29px; }
.footer { border-top: 1px solid #ddd; padding: 16px 16px; font-size: 12px; color: #333; background: #fff; }
.footer a { color: #3a7fb8; }

.sidebar-collapsed .sidebar { transform: translateX(-100%); }
.sidebar-collapsed .content-wrap { margin-left: 0; }
.scrim { display: none; }

/* ---------- Page header ---------- */
.page-head {
  display: flex; align-items: center; gap: 11.5px; flex-wrap: wrap;
  padding: 6px 0 17.5px; border-bottom: 2px solid #e4e6ea; margin-bottom: 21.5px;
}
.page-head .mdi { font-size: 27.5px; color: var(--indigo); }
.page-head h1 { margin: 0; font-size: 24.5px; font-weight: 700; }
.page-head .sub { color: #777; font-size: 13.5px; }
.crumbs { margin-left: auto; display: flex; gap: 8.5px; font-size: 13.5px; color: #666; align-items: center; }
.crumbs a { color: var(--indigo); display: inline-flex; align-items: center; gap: 4.5px; }
.crumbs .sep { color: #bbb; }
.page-head.dash .mdi { color: #3ea0cf; }
.page-head.dash .crumbs a { color: #3ea0cf; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: 8.5px; box-shadow: var(--shadow); }
.card-head {
  display: flex; align-items: center; gap: 10px; padding: 14.5px 20px;
  border-bottom: 1px solid var(--line); background: #fafbfc; border-radius: 8.5px 8.5px 0 0;
}
.card-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card-head .mdi { font-size: 17.5px; color: var(--accent); }
.card-body { padding: 17.5px 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.stack { display: grid; gap: 0; }

/* Student info */
.info-row { display: grid; grid-template-columns: 79px 20px 1fr auto; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-row .k { color: #555; font-weight: 700; }
.info-row .c { color: #555; }
.info-row:last-of-type { border-bottom: 0; }
.btn-soft {
  background: var(--accent-soft); color: var(--accent); border: 1px solid #bfe3f2; border-radius: 3px;
  padding: 3.5px 10px; font-size: 11.5px; display: inline-flex; align-items: center; gap: 4.5px;
}
.btn-soft:hover { background: #d6eef8; }
.success-line { border-top: 1px solid var(--line); margin-top: 11.5px; padding-top: 14.5px; color: #666; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.success-line .mdi { color: var(--accent); font-size: 16px; }

.notice { display: flex; gap: 8.5px; align-items: flex-start; font-size: 12.5px; padding: 4.5px 0; }
.notice .mdi { font-size: 16px; }
.notice.red { color: var(--red); }
.notice.blue { color: var(--accent); }
.card + .card.flush { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.tile > div:last-child { min-width: 0; flex: 1; }
.tile { background: #fff; border-radius: 10px; box-shadow: var(--shadow); border-top: 3px solid; padding: 17.5px 17.5px 16px; display: flex; gap: 14.5px; align-items: flex-start; }
.tile-icon { width: 44.5px; height: 44.5px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 21.5px; flex: none; }
.tile h3 { margin: 3px 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .6px; color: #555; text-transform: uppercase; }
.tile p { margin: 3px 0; font-size: 12px; }
.tile-stats { display: flex; gap: 8.5px; }
.tile-stats .tile-stat { flex: 1 1 0; }
.tile-stat { border-left: 2px solid; padding-left: 6px; min-width: 0; }
.tile-stat small { display: block; font-size: 9.5px; color: #666; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-stat b { font-size: 16px; }
.tile.blue { border-color: #4cb0d6; } .tile.blue .tile-icon { background: linear-gradient(135deg, #6cc3e0, #3fa0c8); }
.tile.pink { border-color: var(--magenta); } .tile.pink .tile-icon { background: linear-gradient(135deg, #e44fc0, #c2279c); }
.tile.green { border-color: #4caf50; } .tile.green .tile-icon { background: linear-gradient(135deg, #5fbf63, #3a9a3e); }
.tile.amber { border-color: #f5a623; } .tile.amber .tile-icon { background: linear-gradient(135deg, #f8bb4b, #f09a1c); }
.tile-stats .s1 { border-color: #3fa0c8; } .tile-stats .s2 { border-color: #43a047; }
.tile-stats .s3 { border-color: #d63bb3; } .tile-stats .s4 { border-color: #ef5da8; }
.tile-stats .s5 { border-color: #f5a623; } .tile-stats .s6 { border-color: #43a047; }

/* Tables */
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; color: #555; font-size: 11.5px; padding: 10px 11.5px; white-space: nowrap; }
td { padding: 10px 11.5px; font-size: 12px; border-top: 1px solid #edeef0; white-space: nowrap; }
.status-table td, .bills-table td.wrap { white-space: normal; }
.t-caps th { text-transform: uppercase; letter-spacing: .8px; background: #f7f8fa; border-bottom: 2px solid #e6e8eb; }
.empty { text-align: center; font-style: italic; color: #333; padding: 29px 11.5px; }

.pill { display: inline-block; padding: 2px 8.5px; border-radius: 4.5px; font-size: 11.5px; font-weight: 500; }
.pill.ok { background: var(--green-soft); color: #2e7d32; }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.warn { background: var(--orange-soft); color: #e65100; }
.pill.info { background: #e8f1fd; color: #1e5bb8; }
.pill.lav { background: #e8eaf6; color: var(--indigo); }
.pill.grey { background: #f1f2f4; color: #555; }
.pill.round { border-radius: 14.5px; }

.reg-controls { margin-left: auto; display: flex; gap: 8.5px; align-items: center; }
.float-field { position: relative; }
.float-field label { position: absolute; top: -10px; left: 8.5px; background: #fff; padding: 0 4.5px; font-size: 10px; color: #666; }
.float-field input, .float-field select {
  height: 36px; border: 1px solid #aaa; border-radius: 3px; padding: 0 14.5px; font-size: 15px; background: #fff; color: #222;
}
.float-field input { width: 79px; }
.float-field select { width: 119.5px; }
.btn-primary {
  background: var(--accent-btn); color: #fff; border: 0; border-radius: 3px;
  padding: 0 16px; height: 36px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .12);
}
.btn-primary:hover { background: #3fa7cf; }
.btn-primary.lg { height: 44.5px; padding: 0 31.5px; font-size: 15px; font-family: Poppins, sans-serif; letter-spacing: .8px; }

.card-actions { display: flex; gap: 8.5px; flex-wrap: wrap; padding: 11.5px 16px; border-top: 1px solid var(--line); background: #fafbfc; }
.btn-outline {
  background: #fff; color: var(--accent); border: 1px solid #bfe3f2; border-radius: 3px;
  padding: 7px 13px; font-size: 14.5px; font-family: "Open Sans", Roboto, sans-serif; display: inline-flex; gap: 4.5px; align-items: center;
}
.btn-outline:hover { background: var(--accent-soft); }
.foot-note { padding: 10px 16px 16px; font-size: 12px; background: #fafbfc; border-radius: 0 0 8.5px 8.5px; }
.foot-note p { margin: 4.5px 0; }
.foot-note b { color: var(--accent); font-weight: 500; }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 11.5px; overflow-x: auto; }
.tab {
  flex: 1; min-width: max-content; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 13px 17.5px; font-family: Poppins, sans-serif; font-size: 13px; letter-spacing: 1.6px; color: #444;
  display: inline-flex; justify-content: center; gap: 6px; align-items: center;
}
.tab.active { color: var(--accent); border-bottom-color: #4a7fd4; }
.tab:hover { color: var(--accent); }

.offer-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px 6px; flex-wrap: wrap; }
.offer-head .mdi-book-open-page-variant-outline { font-size: 23px; color: var(--accent); }
.offer-head h3 { margin: 0; font-size: 15px; }
.offer-head small { color: #555; font-size: 11.5px; }
.search { margin-left: auto; position: relative; }
.search input { width: 240.5px; max-width: 100%; height: 36px; border: 1px solid #999; border-radius: 2px; padding: 0 8.5px 0 23px; font-size: 15px; }
.search .mdi { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 16px; }

.chips { display: flex; gap: 7px; padding: 6px 16px; flex-wrap: wrap; }
.chip {
  border: 1px solid #ddd; background: #fff; border-radius: 16px; padding: 5px 11.5px; font-size: 12px;
  color: #444; display: inline-flex; align-items: center; gap: 6px; font-weight: 500;
}
.chip.active { background: var(--accent-soft); border-color: #7fcbe8; color: var(--accent); }
.legend { display: flex; gap: 16px; padding: 7px 16px 10px; flex-wrap: wrap; font-weight: 500; font-size: 12px; }
.legend span::before { content: ""; display: inline-block; width: 6.5px; height: 6.5px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 2px; }
.st-eligible { color: var(--green); }
.st-prereq { color: var(--magenta); }
.st-fourSem { color: var(--orange); }
.st-gradeA { color: var(--purple); }

.offer-table { margin: 0 16px 16px; border: 1px solid var(--line); border-radius: 4.5px; max-height: 417.5px; }
.offer-table th { position: sticky; top: 0; background: #f7f8fa; z-index: 1; }
.offer-table td { padding: 8.5px 11.5px; }
.offer-table td:nth-child(2) { font-weight: 700; }
.btn-check {
  border: 1px solid #bfe3f2; background: #fff; color: var(--accent); border-radius: 2px;
  padding: 3px 8.5px; font-size: 11.5px; display: inline-flex; gap: 4.5px; align-items: center;
}
.btn-check .mdi { font-size: 13px; }
.btn-check.checked { background: var(--accent-btn); color: #fff; border-color: var(--accent-btn); }

.progress { height: 6px; background: #eceff1; border-radius: 3px; overflow: hidden; min-width: 115px; }
.progress i { display: block; height: 100%; background: var(--accent-btn); }

/* Bills */
.bills-table { margin: 16px 17.5px 20px; border: 1px solid var(--line); border-radius: 4.5px; max-height: 446.5px; }
.bills-table th { font-weight: 700; color: #333; font-size: 12px; background: #fafbfc; position: sticky; top: 0; border-bottom: 2px solid #e6e8eb; }
.bills-table td { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.bills-table td.plain { font-family: Poppins, sans-serif; }
.btn-report { background: var(--accent-btn); color: #fff; border: 0; border-radius: 2px; padding: 4.5px 11.5px; font-size: 11px; display: inline-flex; gap: 4.5px; align-items: center; font-family: Poppins, sans-serif; }
.btn-report:hover { background: #3fa7cf; }

/* Forms */
.outlined { position: relative; border: 1px solid #999; border-radius: 3px; background: #fff; }
.outlined > label { position: absolute; top: -11px; left: 10px; background: #fff; padding: 0 4.5px; font-size: 11.5px; color: #555; letter-spacing: .4px; }
.outlined select, .outlined textarea, .outlined input {
  width: 100%; border: 0; background: transparent; font-size: 15px; padding: 14.5px 13px; color: #222; font-family: inherit;
}
.outlined select { appearance: none; padding-right: 31.5px; cursor: pointer; }
.outlined .caret { position: absolute; right: 11.5px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 16px; }
.outlined:focus-within { border-color: var(--indigo); }

.leave-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17.5px; align-items: start; }
.sem-pick > span { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; margin: 3px 0 6px; }
.sem-pick > span .mdi { color: var(--indigo); }
.sem-box { border: 2px solid; border-radius: 4.5px; padding: 6px 14.5px 8.5px; position: relative; }
.sem-box small { display: block; color: #999; font-size: 11px; margin-bottom: 2px; }
.sem-box select { border: 0; background: transparent; font-size: 16.5px; font-weight: 700; font-family: Poppins, sans-serif; width: 100%; padding-left: 26px; appearance: none; cursor: pointer; }
.sem-box .mdi-calendar-blank { position: absolute; left: 14.5px; bottom: 11.5px; font-size: 17.5px; }
.sem-box.from { border-color: #3f51b5; background: #eef0fb; color: #1a237e; }
.sem-box.from select { color: #1a237e; }
.sem-box.to { border-color: #4caf50; background: #f1f8f1; color: #1b5e20; }
.sem-box.to select { color: #1b5e20; }
.sem-pick p { margin: 7px 14.5px 0; font-size: 11.5px; }
.reason { margin-top: 20px; border: 1.5px solid #222; border-radius: 3px; display: flex; gap: 8.5px; padding: 14.5px 13px; }
.reason .mdi { font-size: 17.5px; margin-top: 29px; }
.reason textarea { flex: 1; min-height: 93.5px; border: 0; resize: vertical; font-size: 14.5px; padding: 13px 17.5px; font-family: inherit; }
.reason textarea::placeholder { color: #555; letter-spacing: .6px; }
.reason textarea:focus { outline: none; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 37.5px; }
.field-error { color: var(--red); font-size: 11px; margin-top: 6px; }

.fees-card { max-width: 720px; margin: 43px auto 0; }
.fees-card .card-head { padding: 16px 24.5px; }
.fees-card .card-head .mdi { color: var(--indigo); font-size: 21.5px; }
.tag-green { margin-left: auto; background: var(--green-soft); color: #2e7d32; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 4.5px 13px; border-radius: 11.5px; }
.fees-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 17.5px; }
.fees-grid > div > span { display: flex; gap: 6px; align-items: center; font-size: 12px; margin-bottom: 6px; }
.fees-grid > div > span .mdi { color: var(--indigo); font-size: 14.5px; }
.amount-box { background: #f5f6f8; border-bottom: 1px solid #ccc; border-radius: 3px 3px 0 0; padding: 3px 14.5px 11.5px; height: 55.5px; }
.amount-box small { color: #888; font-size: 11px; }
.amount-box div { font-size: 16px; font-weight: 700; margin-top: 3px; }
.note { margin-top: 36px; background: #fff8e1; border-left: 3px solid #f5a623; border-radius: 4.5px; padding: 14.5px 18.5px; display: flex; gap: 10px; font-size: 12px; line-height: 1.7; }
.note .mdi { color: #f5a623; font-size: 17.5px; }

/* Application status */
.app-status h1 { text-align: center; font-weight: 400; font-size: 24.5px; margin: 0 0 17.5px; }
.ro-grid { display: grid; grid-template-columns: repeat(3, 211.5px); justify-content: center; column-gap: 14.5px; row-gap: 21.5px; margin-bottom: 29px; }
.ro-grid .outlined { border-color: #ddd; }
.ro-grid .outlined label { color: #777; font-size: 11px; top: -10px; }
.ro-grid input { color: #888; font-family: Poppins, sans-serif; letter-spacing: 1px; font-size: 14.5px; padding: 16px 14.5px 14.5px; }
.ro-grid .outlined:nth-child(3n) { margin-left: 122.5px; }
.status-table th { font-family: Poppins, sans-serif; font-size: 13px; color: #222; padding: 14.5px 20px; border-bottom: 1px solid #ccc; }
.status-table td { font-family: Poppins, sans-serif; font-size: 13.5px; border: 0; padding: 13px 20px 21.5px; letter-spacing: .3px; }
.status-table .mdi { color: var(--accent); font-size: 18.5px; background: none; border: 0; }
.icon-btn { background: none; border: 0; padding: 0; }

/* Faculty evaluation */
.eval-card { background: #fff; border-top: 3px solid; box-shadow: 0 1px 2px rgba(0,0,0,.08); margin: 0 86.5px 20px 20px; }
.eval-card h2 { font-weight: 400; font-size: 18px; margin: 0; padding: 14.5px 10px; border-bottom: 1px solid #eee; color: #333; }
.eval-card .body { min-height: 40.5px; padding: 11.5px; }
.eval-card.blue { border-color: #4cb0d6; }
.eval-card.green { border-color: #4caf50; }
.eval-card.green h2 { padding: 14.5px 24.5px; border: 0; }

/* Profile */
.profile-hero { display: flex; align-items: center; gap: 26px; padding: 20px 24.5px; margin-bottom: 24.5px; }
.pic { width: 119.5px; height: 119.5px; border-radius: 50%; border: 3.5px solid #4cb0d6; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #4cb0d6; background: #f4fafd; box-shadow: 0 4.5px 11.5px rgba(0,0,0,.12); flex: none; }
.profile-hero h1 { margin: 0 0 10px; font-size: 23px; }
.meta { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13.5px; }
.meta .mdi { color: #4cb0d6; font-size: 16px; margin-right: 4.5px; }
.profile-tabs .tab { font-size: 13.5px; letter-spacing: 2px; }
.profile-body { background: #f3f4f6; margin: 21.5px 24.5px 24.5px; padding: 16px 20px; border-radius: 3px; }
.kv { display: grid; grid-template-columns: 140.5px 1fr; padding: 8.5px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.kv .k { color: #666; }
.kv:last-child { border-bottom: 0; }
.card-head .badges { margin-left: auto; display: flex; gap: 7px; }

/* Profile — shared outlined fields */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
.ofield { position: relative; border: 1px solid #d0d0d0; border-radius: 4px; background: #fff; }
.ofield > label { position: absolute; top: -8px; left: 11px; padding: 0 5px; font-size: 12px; color: #666; letter-spacing: .3px; background: inherit; line-height: 1.2; }
.ofield input, .ofield select, .ofield textarea {
  width: 100%; border: 0; background: transparent; font: 400 16px/1.4 Poppins, sans-serif; letter-spacing: .6px; color: #333;
  padding: 16px 16px 14px; display: block;
}
.ofield input { height: 54px; }
.ofield select { appearance: none; height: 54px; padding-right: 36px; cursor: pointer; text-overflow: ellipsis; }
.ofield textarea { resize: vertical; min-height: 78px; }
.ofield input::placeholder { color: #999; }
.ofield input:focus, .ofield select:focus, .ofield textarea:focus { outline: none; }
.ofield:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo); }
.ofield .caret { position: absolute; right: 12px; top: 27px; transform: translateY(-50%); pointer-events: none; font-size: 20px; color: #666; }
.ofield .suffix { position: absolute; right: 18px; top: 27px; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: #555; }
.ofield .help { position: absolute; right: 16px; top: 27px; transform: translateY(-50%); font-size: 18px; color: #999; }
.ofield small { position: absolute; left: 16px; top: calc(100% + 6px); font-size: 12px; color: #333; }

.btn-save {
  border: 0; border-radius: 3px; padding: 0 36px; height: 38px; font: 500 14px Poppins, sans-serif; letter-spacing: 1.2px;
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent-btn); color: #fff;
}
.btn-save:disabled { background: #dcdcdc; color: #777; cursor: default; }
.btn-save.teal { height: 44px; padding: 0 44px; letter-spacing: 0; font-size: 15px; }
.btn-save.teal:disabled { background: #cfe9ee; color: #fff; }
.form-foot { display: flex; justify-content: center; align-items: center; gap: 18px; border-top: 1px solid #ddd; margin-top: 32px; padding-top: 22px; }
.saved { color: #2e7d32; font-size: 13px; display: none; align-items: center; gap: 8px; }
.saved .mdi { color: #1e88e5; font-size: 18px; }
.saved.show { display: inline-flex; }

/* Personal info: guarantor block */
.sub-block { border-top: 2px dashed #ddd; margin-top: 26px; padding-top: 24px; }
.sub-block h3 { margin: 0 0 12px; font-size: 16px; display: flex; gap: 10px; align-items: center; }
.sub-block h3 .mdi { font-size: 22px; }
.kv-wide .kv { grid-template-columns: 160px 1fr; }
.unit { color: #888; font-size: 11px; margin-left: 4px; }
.card.stretch { align-self: stretch; }
.profile-body .grid-2 { align-items: stretch; }
.profile-body.plain { background: #fff; }

/* Family info form */
.family-form { max-width: 800px; margin: 16px auto; background: #fff; border-radius: 6px; padding: 24px 25px 26px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.family-form h2 { margin: 0; font-weight: 400; font-size: 25px; color: #1a237e; }
.family-form .lead { margin: 10px 0 0; padding-bottom: 18px; border-bottom: 2px solid #e6e6e6; font-size: 14px; color: #333; }
.family-form fieldset { border: 0; margin: 30px 0 0; padding: 18px 20px 42px; background: #f8f8f8; border-radius: 4px; }
.family-form legend { float: left; width: 100%; font-size: 18px; color: #222; padding-bottom: 10px; border-bottom: 1px solid #ddd; margin-bottom: 30px; }
.family-form .form-grid { clear: both; }
.family-form .ofield { background: #fafafa; border-color: #e0e0e0; }
.family-form .ofield input, .family-form .ofield select, .family-form .ofield textarea { color: #888; }
.family-form .ofield textarea { min-height: 80px; }
.info-box { background: #e3f0fd; border-radius: 4px; padding: 18px; display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: #1e5bb8; line-height: 1.5; }
.info-box .mdi { color: #1a3fa8; font-size: 18px; }
.info-box b { color: #1a3fa8; }

/* Financial guarantor form */
.guarantor { padding: 20px 0 0; }
.g-title { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid #e2e4e8; margin-bottom: 36px; flex-wrap: wrap; }
.g-title .mdi { font-size: 30px; color: #3949ab; }
.g-title h2 { margin: 0; font-size: 26px; }
.g-title .pill { font-size: 11.5px; font-weight: 400; }
.g-card .card-head { background: #fafbfc; }
.g-card .card-head h2 { font-size: 18px; }
.g-card .card-head em { margin-left: auto; font-size: 13px; color: #777; }
.g-sec { border: 1px solid #ececec; background: #fafafa; border-radius: 6px; padding: 22px 24px 40px; margin-bottom: 20px; }
.g-sec h3 { margin: 0 0 20px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.g-sec h3 .mdi { color: #3949ab; font-size: 18px; }
.g-sec .form-grid { row-gap: 44px; }
.guarantor .form-foot { border-top-color: #e6e6e6; margin-top: 8px; }

/* Semester results */
.res-summary { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 22px; }
.res-summary > div { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 12px 20px; min-width: 130px; border-top: 3px solid #4cb0d6; }
.res-summary small { display: block; color: #666; font-size: 12px; }
.res-summary b { font-size: 22px; }
.res-jump { margin-left: auto; align-self: center; display: flex; gap: 10px; align-items: center; font-size: 14px; color: #555; }
.res-jump select { height: 36px; border: 1px solid #aaa; border-radius: 4px; padding: 0 10px; font-size: 14px; background: #fff; }
.res-card { margin-bottom: 20px; }
.res-card tfoot td { font-weight: 700; background: #fafbfc; border-top: 2px solid #e6e8eb; }
.tile-link { color: inherit; text-decoration: none !important; transition: box-shadow .15s; }
.tile-link:hover { box-shadow: 0 4px 16px rgba(30, 50, 80, .14); }
a.btn-outline { text-decoration: none; }

/* Notifications (top right, close themselves) */
.notices { position: fixed; top: calc(var(--top-h) + 10px); right: 20px; z-index: 90; display: grid; gap: 10px; width: min(350px, calc(100vw - 32px)); }
.notice-pop {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px 14px 20px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15);
  animation: pop-in .25s ease-out;
}
.notice-pop strong { display: block; font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.notice-pop p { margin: 0; font-size: 15px; line-height: 1.35; }
.notice-pop > .mdi { margin-left: auto; font-size: 44px; line-height: 1; flex: none; }
.notice-pop.info { background: #4aa5e9; color: #fff; }
.notice-pop.warning { background: #f5d64e; color: #3a3a3a; }
.notice-pop .life { position: absolute; top: 0; left: 0; height: 4px; width: 100%; background: rgba(255,255,255,.35); transform-origin: left; animation: life var(--life) linear forwards; }
.notice-pop.warning .life { background: rgba(255,255,255,.55); }
.notice-pop.leaving { opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
@keyframes life { to { transform: scaleX(0); } }
@keyframes pop-in { from { opacity: 0; transform: translateX(20px); } }
.notice-empty { min-height: 20px; }

/* Registration */
.reg-head { display: flex; align-items: center; gap: 100px; padding: 22px 10px 32px; flex-wrap: wrap; }
.reg-head h1 { margin: 0; font-size: 19px; font-weight: 400; }
.reg-head h1 small { font-size: 13px; color: #666; }
.btn-load {
  background: var(--accent-btn); color: #fff; border: 0; border-radius: 2px; height: 35px; padding: 0 12px;
  font: 500 12px Roboto, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.btn-load .mdi { font-size: 16px; }
.btn-load:hover { background: #3fa7cf; }
.reg-grid { display: grid; grid-template-columns: minmax(0, 730px) minmax(0, 1fr); gap: 36px; align-items: start; }
.reg-card { background: #fff; border-top: 3px solid; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.reg-card.blue { border-color: #4cb0d6; min-height: 495px; }
.reg-card.green { border-color: #4caf50; min-height: 445px; }
.reg-card h2 { margin: 0; padding: 10px 10px 2px; font-size: 18px; font-weight: 400; }
.reg-card.green h2 { padding-bottom: 8px; border-bottom: 1px solid #eee; }
.reg-tools { display: flex; align-items: center; gap: 30px; padding: 0 10px; border-bottom: 1px solid #eee; }
.filled input { width: 212px; height: 55px; border: 0; border-bottom: 1px solid #888; background: #f3f3f3; border-radius: 3px 3px 0 0; padding: 12px 16px 0; font-size: 16px; font-family: Poppins, sans-serif; letter-spacing: .5px; }
.filled input:focus { outline: none; border-bottom: 2px solid var(--indigo); }
.cid { color: #3a9d3e; font-size: 11.5px; }
.cid b { color: #c224c9; font-weight: 700; }
.reg-card th { font-family: Poppins, sans-serif; font-weight: 500; font-size: 11.5px; color: #222; padding: 12px 8px; border-bottom: 1px solid #ddd; }
.reg-card td { font-size: 12px; padding: 8px; }
.reg-table { max-height: 520px; }
.reg-table th { position: sticky; top: 0; background: #fff; }
.pick { cursor: pointer; }
.pick:hover, .pick:focus { background: #f2f9fc; outline: none; }
.drop { color: var(--red); font-size: 18px; }
.reg-foot { display: flex; align-items: center; gap: 145px; margin-top: 35px; padding-left: 10px; flex-wrap: wrap; }
.remarks { width: 545px; max-width: 100%; border-color: #999; }
.remarks textarea { font-size: 15px; padding: 18px 16px; resize: vertical; min-height: 78px; }
.remarks textarea::placeholder { color: #555; letter-spacing: .5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholder pages */
.placeholder { text-align: center; padding: 50.5px 14.5px; color: #666; font-size: 13px; }
.placeholder .mdi { font-size: 40.5px; color: #b7c4d1; display: block; margin-bottom: 8.5px; }

/* Toast */
.toast {
  position: fixed; bottom: 17.5px; left: 50%; transform: translate(-50%, 14.5px); opacity: 0;
  background: #323232; color: #fff; padding: 8.5px 16px; border-radius: 3px; font-size: 11.5px;
  transition: opacity .2s, transform .2s; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ro-grid .outlined:nth-child(3n) { margin-left: 0; }
  .eval-card { margin: 0 0 20px; }
}
@media (max-width: 1000px) {
  .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .reg-head, .reg-foot { gap: 16px; }
  .grid-2, .leave-grid, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --top-h: 49px; }
  .topbar { padding-right: 12px; }
  .brand, .brand img { width: 140px; }
  .brand img { height: 36px; }
  .topbar-name { display: none; }
  .sidebar { transform: translateX(-100%); box-shadow: 3px 0 14px rgba(0,0,0,.15); }
  .content-wrap { margin-left: 0; }
  .menu-open .sidebar { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(0,0,0,.3); z-index: 20; }
  .content { padding: 14px 16px 24px; }
  .page-head h1 { font-size: 20px; }
  .crumbs { margin-left: 0; width: 100%; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .fees-grid, .ro-grid { grid-template-columns: 1fr; }
  .reg-controls { margin-left: 0; flex-wrap: wrap; }
  .card-head { flex-wrap: wrap; padding: 12px 14px; }
  .card-body { padding: 14px; }
  .info-row { grid-template-columns: 64px 12px 1fr; }
  .info-row .btn-soft { grid-column: 3; justify-self: start; margin-top: 4px; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .offer-table, .bills-table { margin: 10px; }
  .profile-hero { flex-direction: column; text-align: center; padding: 18px 14px; }
  .meta { justify-content: center; gap: 8px 18px; }
  .profile-body { margin: 10px; padding: 10px; }
  .kv, .kv.wide { grid-template-columns: 1fr; gap: 2px; }
  .login-view { padding-top: calc(var(--top-h) + 36px); }
  .login-card h1 { font-size: 20px; }
  .login-field input { padding-right: 12px; padding-left: 12px; }
  .forgot { position: static; transform: none; display: block; margin-top: 6px; text-align: right; }
  .fees-card { margin-top: 14px; }
  .tab { padding: 10px 12px; letter-spacing: .5px; }
  .family-form { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
