:root {
  --brand-primary: #173b8f;
  --brand-dark: #10265e;
  --brand-soft: #eef2fb;
  --brand-accent: #b4232d;
  --ink: #18251f;
  --muted: #66756d;
  --line: #dfe7e2;
  --canvas: #f4f7f5;
  --surface: #ffffff;
  --shadow: 0 12px 32px rgba(18, 55, 38, .08);
}

.audit-values {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 34rem;
  overflow: auto;
  padding: 1rem;
  border-radius: .5rem;
  background: #f7f9f8;
  color: #24342d;
  font-size: .82rem;
}

html { font-size: 15px; min-height: 100%; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); display: flex; flex-direction: column; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
a { color: var(--brand-primary); }
a:hover { color: var(--brand-dark); }

.app-header { color: #fff; background: linear-gradient(115deg, var(--brand-dark), var(--brand-primary)); box-shadow: 0 3px 18px rgba(16, 38, 94, .18); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .75rem 2rem; }
.app-brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.app-brand:hover { color: #fff; }
.app-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; padding: 3px; }
.app-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.app-brand strong { font-size: 1.15rem; letter-spacing: .06em; }
.app-brand small { opacity: .78; margin-top: .25rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.school-switcher .form-select { width: min(270px, 34vw); border: 1px solid rgba(255,255,255,.28); color: #fff; background-color: rgba(255,255,255,.1); }
.school-switcher .form-select option { color: var(--ink); background: #fff; }
.account-button { display: flex; align-items: center; gap: .5rem; border: 0; color: #fff; background: transparent; }
.account-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-dark); background: #fff; font-weight: 800; }
.account-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-nav { padding: 0 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.app-nav .nav-link { color: #33473d; font-weight: 600; padding: .9rem .85rem; }
.app-nav .nav-link:hover, .app-nav .nav-link:focus { color: var(--brand-primary); background: var(--brand-soft); }
.dropdown-menu { border: 1px solid var(--line); box-shadow: var(--shadow); }
.dropdown-item { padding: .6rem 1rem; }
.dropdown-item:active { background: var(--brand-primary); }

.app-main { width: 100%; max-width: 1500px; flex: 1; padding: 2rem; }
.app-footer { color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.app-footer .container-fluid { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 2rem; }

.hero-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 210px; padding: 2.25rem 2.5rem; color: #fff; border-radius: 22px; background: radial-gradient(circle at 85% 20%, rgba(180,35,45,.3), transparent 28%), linear-gradient(120deg, var(--brand-dark), #2457b3); box-shadow: var(--shadow); }
.hero-panel::after { content: ""; position: absolute; right: -80px; bottom: -150px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.hero-panel h1 { margin: .25rem 0 .5rem; font-size: clamp(2rem, 4vw, 3rem); }
.hero-panel p { max-width: 650px; margin: 0; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.hero-panel img { position: relative; z-index: 1; width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 50%; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.eyebrow { color: var(--brand-accent); font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.metric-card { position: relative; min-height: 150px; padding: 1.25rem; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 22px rgba(18,55,38,.04); transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card strong { display: block; margin: .65rem 0; color: var(--brand-primary); font-size: 2rem; }
.metric-accent { background: var(--brand-soft); border-color: #d7e0f4; }

.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 24px rgba(18,55,38,.045); }
.surface-heading { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line); }
.surface-heading h2 { margin: .2rem 0 0; font-size: 1.25rem; }
.form-surface { max-width: 900px; padding: 1.5rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-heading h1 { margin: .2rem 0; font-size: 2rem; }
.page-heading p { margin: 0; color: var(--muted); }

.table > :not(caption) > * > * { padding: .9rem 1rem; border-bottom-color: var(--line); }
.table thead th { color: var(--muted); background: #f8faf9; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.code-pill, .status-badge { display: inline-flex; align-items: center; padding: .28rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.code-pill { color: #63511d; background: #fff4cc; }
.status-active { color: #12633f; background: #ddf4e7; }
.status-inactive { color: #8b3d3d; background: #fbe5e5; }

.btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline-primary:hover { background: var(--brand-primary); border-color: var(--brand-primary); }
.form-control:focus, .form-select:focus { border-color: #55a67b; box-shadow: 0 0 0 .2rem rgba(15,90,58,.13); }

.auth-shell { min-height: 65vh; display: grid; place-items: center; padding: 2rem 0; }
.auth-card { width: min(100%, 450px); padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.65rem; }
.auth-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1rem; color: #fff; background: var(--brand-primary); border-radius: 16px; font-weight: 800; }
.security-setup { max-width: 760px; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.setup-steps li { margin-bottom: 1.3rem; padding-left: .5rem; }
.setup-steps p { margin: .3rem 0; color: var(--muted); }
.secret-key { display: inline-block; padding: .75rem 1rem; background: #eef2ef; border: 1px dashed #9baba2; border-radius: 8px; font-family: ui-monospace, monospace; font-size: 1.05rem; letter-spacing: .08em; }
.setup-code { max-width: 320px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(160px, 240px)); gap: .65rem; }
.recovery-codes code { padding: .7rem; color: var(--ink); background: #eef2ef; border-radius: 7px; font-size: 1rem; text-align: center; }

@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } }
.fees-metrics { grid-template-columns: repeat(3, minmax(180px, 1fr)); max-width: 900px; }
@media (max-width: 767px) {
  html { font-size: 14px; }
  .header-inner { padding: .7rem 1rem; align-items: flex-start; }
  .header-actions { flex-direction: column-reverse; align-items: flex-end; gap: .5rem; }
  .account-name { display: none; }
  .school-switcher .form-select { width: 180px; }
  .app-main { padding: 1.25rem 1rem; }
  .hero-panel { min-height: 180px; padding: 1.5rem; }
  .hero-panel img { width: 72px; height: 72px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .app-footer .container-fluid { padding: 1rem; flex-direction: column; }
}
@media (max-width: 420px) { .metric-grid { grid-template-columns: 1fr; } .app-brand small { display: none; } .hero-panel img { display: none; } }

/* Dedicated sign-in experience */
.login-page { min-height: 100vh; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(440px, .92fr); }
.login-story { position: relative; overflow: hidden; min-height: 100vh; color: #fff; background: radial-gradient(circle at 18% 12%, rgba(105, 145, 255, .32), transparent 30%), radial-gradient(circle at 88% 82%, rgba(180, 35, 45, .27), transparent 28%), linear-gradient(145deg, #0b1e4e 0%, #173b8f 58%, #214ca4 100%); }
.login-story::before, .login-story::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.login-story::before { width: 440px; height: 440px; right: -210px; top: -120px; }
.login-story::after { width: 310px; height: 310px; left: -140px; bottom: -160px; }
.login-story-content { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(2rem, 5vw, 4.5rem); }
.login-brand, .login-mobile-brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.login-brand { align-self: flex-start; color: #fff; }
.login-brand:hover { color: #fff; }
.login-brand-mark { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; background: #fff; border-radius: 15px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.login-brand img, .login-mobile-brand img { width: 100%; height: 100%; object-fit: contain; }
.login-brand > span:last-child, .login-mobile-brand span { display: flex; flex-direction: column; }
.login-brand strong, .login-mobile-brand strong { font-size: 1.1rem; letter-spacing: .04em; }
.login-brand small { margin-top: .14rem; color: rgba(255,255,255,.7); }
.login-story-copy { width: min(100%, 650px); margin: auto 0; padding: 4rem 0; }
.login-eyebrow { display: inline-block; margin-bottom: 1rem; color: #b9cbff; font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-story h1 { max-width: 620px; margin: 0; font-size: clamp(2.6rem, 5vw, 5.25rem); font-weight: 750; line-height: .98; letter-spacing: -.045em; }
.login-story-copy > p { max-width: 580px; margin: 1.6rem 0 2.4rem; color: rgba(255,255,255,.76); font-size: 1.08rem; line-height: 1.7; }
.login-feature-list { display: grid; gap: .85rem; }
.login-feature { display: flex; align-items: center; gap: 1rem; max-width: 520px; padding: .85rem 1rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: 14px; backdrop-filter: blur(8px); }
.login-feature-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: #dbe5ff; background: rgba(255,255,255,.1); border-radius: 10px; font-size: .72rem; font-weight: 800; }
.login-feature > span:last-child { display: flex; flex-direction: column; }
.login-feature strong { font-size: .93rem; }
.login-feature small { margin-top: .12rem; color: rgba(255,255,255,.66); }
.login-story-footer { margin: 0; color: rgba(255,255,255,.52); font-size: .79rem; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: clamp(2rem, 6vw, 5rem); background: linear-gradient(180deg, #fff, #f8faff); }
.login-form-wrap { width: min(100%, 470px); }
.login-mobile-brand { display: none; margin-bottom: 3rem; color: var(--brand-dark); }
.login-mobile-brand img { width: 46px; height: 46px; border-radius: 12px; }
.login-mobile-brand small { color: var(--muted); }
.login-heading { margin-bottom: 2rem; }
.login-heading .login-eyebrow { margin-bottom: .7rem; color: var(--brand-accent); }
.login-heading h2 { margin: 0; color: #122047; font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 750; letter-spacing: -.035em; }
.login-heading p { margin: .65rem 0 0; color: var(--muted); }
.login-validation:empty { display: none; }
.login-validation { margin-bottom: 1.25rem; padding: .9rem 1rem; color: #8c252c; background: #fff1f2; border: 1px solid #facdd0; border-radius: 12px; font-size: .9rem; }
.login-validation ul { margin: 0; padding-left: 1.15rem; }
.login-field { margin-bottom: 1.25rem; }
.login-field label { margin-bottom: .5rem; color: #26365d; font-size: .86rem; font-weight: 700; }
.login-label-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.login-label-row a { font-size: .84rem; font-weight: 650; text-decoration: none; }
.login-field .form-control { min-height: 52px; padding: .8rem 1rem; color: #17213c; background: #fff; border: 1px solid #cfd8e7; border-radius: 12px; }
.login-field .form-control::placeholder { color: #98a4b8; }
.login-field .form-control:focus { border-color: #456bc1; box-shadow: 0 0 0 .23rem rgba(23,59,143,.11); }
.password-control { position: relative; }
.password-control .form-control { padding-right: 4.5rem; }
.password-toggle { position: absolute; top: 50%; right: .55rem; transform: translateY(-50%); padding: .38rem .55rem; color: var(--brand-primary); background: transparent; border: 0; border-radius: 7px; font-size: .78rem; font-weight: 750; }
.password-toggle:hover, .password-toggle:focus { background: var(--brand-soft); outline: none; }
.field-validation { display: block; margin-top: .4rem; color: #a3262f; font-size: .8rem; }
.field-validation:empty { display: none; }
.login-options { display: flex; justify-content: space-between; margin: .25rem 0 1.5rem; }
.remember-option { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: #526079; font-size: .86rem; cursor: pointer; }
.remember-option input { width: 17px; height: 17px; accent-color: var(--brand-primary); }
.login-submit { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.15rem; color: #fff; background: linear-gradient(105deg, var(--brand-dark), var(--brand-primary)); border: 0; border-radius: 12px; box-shadow: 0 10px 24px rgba(23,59,143,.2); font-weight: 750; transition: transform .15s ease, box-shadow .15s ease; }
.login-submit:hover, .login-submit:focus { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(23,59,143,.27); }
.login-submit span:last-child { font-size: 1.35rem; line-height: 1; }
.login-security-note { display: flex; align-items: flex-start; gap: .65rem; margin: 1.35rem 0 0; padding: .8rem .9rem; color: #42604f; background: #f0f7f3; border-radius: 10px; font-size: .78rem; }
.login-security-note > span { flex: 0 0 20px; height: 20px; display: grid; place-items: center; color: #fff; background: #2d7a52; border-radius: 50%; font-size: .68rem; font-weight: 800; }
.login-security-note p { margin: .05rem 0 0; }
.login-register { margin: 1.6rem 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.login-register a { font-weight: 750; text-decoration: none; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel { padding: 2.5rem 1.4rem; }
  .login-mobile-brand { display: inline-flex; }
}
@media (max-width: 480px) {
  .login-panel { align-items: start; padding: 1.5rem 1rem 2rem; }
  .login-mobile-brand { margin-bottom: 2.4rem; }
  .login-heading h2 { font-size: 2rem; }
  .login-field .form-control { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-submit { transition: none; }
}

/* Authenticated application workspace */
.skip-link { position: fixed; z-index: 2000; top: .75rem; left: .75rem; transform: translateY(-150%); padding: .65rem 1rem; color: #fff; background: var(--brand-dark); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); color: #fff; }
.app-authenticated .app-header { position: sticky; z-index: 1040; top: 0; }
.app-authenticated .header-inner { min-height: 68px; padding: .65rem 1.4rem; }
.sidebar-toggle { width: 40px; height: 40px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; }
.sidebar-toggle span { width: 18px; height: 2px; display: block; background: currentColor; border-radius: 2px; }
.app-workspace { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 255px minmax(0, 1fr); background: #f5f7fb; }
.app-sidebar { min-height: calc(100vh - 68px); display: flex; flex-direction: column; padding: 1.25rem .85rem 1rem; background: #fff; border-right: 1px solid #e2e7f0; }
.app-sidebar nav { flex: 1; }
.sidebar-section { margin-bottom: 1.25rem; }
.sidebar-label { display: block; padding: 0 .75rem .45rem; color: #8b96aa; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-link { display: flex; align-items: center; gap: .72rem; margin: .15rem 0; padding: .58rem .72rem; color: #4c5870; border-radius: 10px; font-size: .87rem; font-weight: 650; text-decoration: none; transition: color .15s ease, background .15s ease; }
.sidebar-link:hover { color: var(--brand-primary); background: #f1f4fb; text-decoration: none; }
.sidebar-link.active { color: var(--brand-dark); background: #eaf0ff; box-shadow: inset 3px 0 0 var(--brand-primary); }
.nav-symbol { flex: 0 0 28px; height: 28px; display: grid; place-items: center; color: #68799e; background: #eef2f8; border-radius: 8px; font-size: .68rem; font-weight: 850; }
.sidebar-link.active .nav-symbol { color: #fff; background: var(--brand-primary); }
.sidebar-footer { display: flex; align-items: center; gap: .55rem; margin: .5rem .5rem 0; padding: .75rem; color: #617066; background: #f1f7f3; border-radius: 10px; font-size: .75rem; font-weight: 650; }
.security-dot { width: 8px; height: 8px; background: #2d8a59; border-radius: 50%; box-shadow: 0 0 0 4px rgba(45,138,89,.12); }
.sidebar-backdrop { display: none; }
.app-authenticated .app-main { min-width: 0; max-width: none; padding: clamp(1.25rem, 2.8vw, 2.5rem); }
.app-authenticated .app-footer { padding-left: 255px; }
.app-footer > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; }
.public-main { width: 100%; }

/* Shared page components */
.app-main > .container, .app-main > .container-fluid { max-width: none; padding-right: 0; padding-left: 0; }
.card { border-color: var(--line); border-radius: 14px; box-shadow: 0 5px 18px rgba(22,42,83,.045); }
.card-header { padding: 1rem 1.2rem; background: #f9fafc; border-bottom-color: var(--line); }
.card-body { padding: 1.25rem; }
.alert { border: 0; border-left: 4px solid currentColor; border-radius: 10px; }
.alert-success { color: #17603c; background: #e8f6ee; }
.alert-danger { color: #8c252c; background: #fff0f1; }
.alert-warning { color: #745713; background: #fff7dc; }
.btn { border-radius: 9px; font-weight: 650; }
.btn-sm { border-radius: 8px; }
.btn-success { background: #24754d; border-color: #24754d; }
.btn-warning { color: #684e08; background: #ffe5a0; border-color: #ffe5a0; }
.btn-info { color: #174f67; background: #d9f1fb; border-color: #d9f1fb; }
.btn-secondary { background: #657086; border-color: #657086; }
.form-control, .form-select { min-height: 42px; color: #25314b; background: #fff; border-color: #cfd7e5; border-radius: 9px; }
.form-select { display: block; width: 100%; padding: .375rem 1.75rem .375rem .75rem; }
textarea.form-control { min-height: 110px; }
label { color: #34415c; font-weight: 650; }
.text-danger { color: #a62b35 !important; }
.table-responsive { border-radius: inherit; }
.table { color: #28354c; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table-striped tbody tr:nth-of-type(odd) { background: #fafbfd; }
.table-hover tbody tr:hover { background: #f3f6fc; }
.table-dark th, .table thead.table-dark th { color: #5d6980; background: #f7f9fc; border-color: var(--line); }
.pagination .page-link { color: var(--brand-primary); border-color: var(--line); }
.pagination .active .page-link { background: var(--brand-primary); border-color: var(--brand-primary); }
.empty-state { padding: 3rem 1.5rem; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: .3rem; color: var(--ink); font-size: 1.05rem; }
.empty-state p { margin: 0 0 1rem; }
.record-count { padding: .3rem .65rem; color: #5e6c83; background: #eef2f7; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.table-actions { white-space: nowrap; }
.btn-outline-secondary { color: #566278; border-color: #aeb8c9; }
.btn-outline-danger { color: #9c2f38; border-color: #d8999e; }

/* Bootstrap 5 utility compatibility for legacy Razor views on Bootstrap 4 */
.fw-bold { font-weight: 700 !important; }
.form-label { margin-bottom: .5rem; }
.d-grid { display: grid !important; }
.text-end { text-align: right !important; }
.align-middle { vertical-align: middle !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.row.g-2, .row.g-3, .row.g-4, .row.g-5, .row.g-6, .row.g-7, .row.g-8 { margin-right: -.5rem; margin-left: -.5rem; }
.row.g-2 > [class*="col-"], .row.g-3 > [class*="col-"], .row.g-4 > [class*="col-"], .row.g-5 > [class*="col-"], .row.g-6 > [class*="col-"], .row.g-7 > [class*="col-"], .row.g-8 > [class*="col-"] { padding-right: .5rem; padding-left: .5rem; margin-bottom: 1rem; }
.badge.bg-primary { background: var(--brand-primary) !important; }
.badge.bg-success { background: #24754d !important; }
.badge.bg-danger { background: #a73740 !important; }
.badge.bg-secondary { background: #657086 !important; }

@media (min-width: 992px) {
  .app-sidebar.collapse { display: flex !important; }
}
@media (max-width: 991px) {
  .sidebar-toggle { display: flex; }
  .app-authenticated .app-brand { margin-right: auto; }
  .app-workspace { display: block; }
  .app-sidebar { position: fixed; z-index: 1050; top: 68px; bottom: 0; left: 0; width: min(300px, 86vw); min-height: 0; overflow-y: auto; box-shadow: 18px 0 40px rgba(14,31,71,.18); }
  .app-sidebar:not(.show) { display: none; }
  .app-sidebar.show ~ .sidebar-backdrop { position: fixed; z-index: 1045; inset: 68px 0 0; display: block; background: rgba(11,25,57,.42); }
  .app-authenticated .app-footer { padding-left: 0; }
}
@media (max-width: 767px) {
  .app-authenticated .header-inner { padding: .6rem .8rem; gap: .65rem; }
  .app-authenticated .app-brand span { display: none; }
  .app-authenticated .app-brand img { width: 40px; height: 40px; }
  .header-actions { flex-direction: row; align-items: center; gap: .45rem; }
  .school-switcher .form-select { width: min(42vw, 180px); }
  .app-authenticated .app-main { padding: 1.25rem 1rem; }
  .page-heading { margin-bottom: 1.1rem; }
  .page-heading h1 { font-size: 1.65rem; }
  .page-heading > div:last-child { width: 100%; display: flex; flex-wrap: wrap; gap: .45rem; }
  .page-heading > div:last-child .btn { flex: 1 1 auto; }
  .metric-grid, .fees-metrics { grid-template-columns: 1fr 1fr; }
  .app-footer > div { flex-direction: column; padding: .9rem 1rem; }
}
@media (max-width: 460px) {
  .metric-grid, .fees-metrics { grid-template-columns: 1fr; }
  .school-switcher .form-select { width: 128px; }
}
