:root {
  --bg: #0d111d;
  --bg-elevated: #121827;
  --header: #181f39;
  --nav: #0d111d;
  --surface: #151c2b;
  --surface-2: #1a2334;
  --border: rgba(255,255,255,.08);
  --text: #f6f8fc;
  --text-soft: #c8cfdb;
  --muted: #8d97a8;
  --blue: #055d97;
  --blue-dark: #04446f;
  --blue-deep: #043d64;
  --cyan: #6fc8ff;
  --success: #61d49b;
  --warning: #ffc76b;
  --danger: #ff9ca5;
  --shadow: 0 20px 55px rgba(0,0,0,.34);
  --radius: 18px;
  --nav-height: 92px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -20%, rgba(5,93,151,.23), transparent 42%),
    #070a12;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; display: block; }

.app-shell {
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.topbar {
  min-height: 92px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  background: var(--header);
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.025);
  z-index: 5;
}
.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  color: white;
  background: linear-gradient(145deg, #0873b8, #034a79);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 7px 18px rgba(0,0,0,.2);
}
.topbar-title-wrap { min-width: 0; text-align: center; }
.topbar-kicker {
  margin: 0 0 3px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .18em;
  color: #9fa8b8;
}
.topbar h1 {
  margin: 0;
  font-size: clamp(15px, 4.2vw, 18px);
  line-height: 1.15;
  letter-spacing: .025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}
.icon-button:active { background: rgba(255,255,255,.07); }
.icon-button svg { width: 25px; height: 25px; }
.notification-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  top: 7px;
  right: 7px;
  border: 2px solid var(--header);
}

.main-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  background: var(--bg);
}
.main-content::-webkit-scrollbar { display: none; }
.page { display: none; min-height: 100%; }
.page.active { display: block; animation: page-in .22s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-stack { padding: 22px 18px 34px; }
.wallet-page { padding: 22px 14px 24px; }

.eyebrow, .muted-label, .card-overline, .field-label, .menu-group-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .045em;
  font-weight: 650;
}
h2, h3, h4, p { overflow-wrap: anywhere; }
h2 { margin: 4px 0 0; font-size: 28px; line-height: 1.08; letter-spacing: -.03em; }
h3 { margin: 0; }
p { color: var(--text-soft); }

.surface-card {
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255,255,255,.035), rgba(255,255,255,.015)), var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
.section-chip, .soft-badge, .time-badge, .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}
.section-chip {
  width: fit-content;
  padding: 6px 9px;
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .12em;
  color: #bfe7ff;
  background: rgba(36,160,226,.13);
  border: 1px solid rgba(111,200,255,.22);
}
.section-chip.on-blue { color: white; background: rgba(0,0,0,.15); border-color: rgba(255,255,255,.18); }
.soft-badge {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 750;
  color: #bfe7ff;
  background: rgba(5,93,151,.18);
  border: 1px solid rgba(111,200,255,.16);
}

.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.avatar { width: 54px; height: 54px; border-radius: 18px; object-fit: cover; object-position: 50% 24%; border: 2px solid rgba(255,255,255,.12); }
.hero-card { padding: 20px; background: linear-gradient(145deg, rgba(5,93,151,.98), rgba(4,68,111,.96)); position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 999px; right: -55px; top: -70px; border: 30px solid rgba(255,255,255,.04); }
.hero-card .section-chip { position: relative; z-index: 1; }
.card-overline { margin-top: 24px; color: rgba(255,255,255,.68); }
.hero-card h3 { position: relative; z-index: 1; margin-top: 5px; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.hero-card p:not(.card-overline) { position: relative; z-index: 1; margin: 10px 0 17px; color: rgba(255,255,255,.79); font-size: 14px; line-height: 1.45; }
.primary-button {
  border: 0;
  min-height: 45px;
  border-radius: 13px;
  padding: 0 15px;
  background: white;
  color: #074d7b;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  position: relative;
  z-index: 1;
}
.primary-button svg { width: 18px; height: 18px; }
.primary-button:active { transform: translateY(1px); }
.primary-button.full-width { width: 100%; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 25px 1px 12px; }
.section-heading h3 { margin-top: 3px; font-size: 19px; letter-spacing: -.018em; }
.compact-heading { margin-top: 23px; }
.course-summary-card { padding: 15px; display: flex; gap: 14px; align-items: center; }
.course-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--cyan); background: rgba(5,93,151,.18); }
.course-icon svg { width: 24px; height: 24px; }
.course-summary-copy { min-width: 0; }
.course-summary-copy h4 { margin: 3px 0 6px; font-size: 16px; line-height: 1.22; }
.course-summary-copy p { margin: 0; font-size: 12px; color: var(--muted); }
.course-summary-copy strong { color: var(--text-soft); }
.activity-list { display: grid; gap: 10px; }
.activity-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center; padding: 14px 13px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.activity-marker { width: 8px; height: 8px; border-radius: 999px; background: var(--cyan); box-shadow: 0 0 0 5px rgba(111,200,255,.08); }
.activity-item h4 { margin: 0 0 3px; font-size: 14px; }
.activity-item p { margin: 0; font-size: 11px; line-height: 1.35; color: var(--muted); }
.time-badge { padding: 5px 8px; font-size: 10px; font-weight: 750; color: var(--text-soft); background: rgba(255,255,255,.05); }

.page-intro { margin-bottom: 18px; }
.page-intro .section-chip { margin-bottom: 18px; }
.page-intro p:last-child { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.progress-card { padding: 17px; }
.progress-card > div:first-child { display: flex; justify-content: space-between; align-items: end; }
.progress-card h3 { font-size: 28px; }
.progress-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 13px; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087ac2, #6fc8ff); }
.progress-card > p { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
.module-list { display: grid; gap: 11px; margin-top: 16px; }
.module-card { padding: 14px; display: grid; grid-template-columns: 38px minmax(0,1fr); column-gap: 12px; row-gap: 9px; align-items: start; }
.module-number { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(5,93,151,.17); color: var(--cyan); font-weight: 850; font-size: 12px; }
.module-copy h3 { font-size: 15px; line-height: 1.28; }
.module-copy p { margin: 5px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.status-pill { grid-column: 2; justify-self: start; padding: 5px 8px; font-size: 9px; font-weight: 750; color: #b8c0ce; background: rgba(255,255,255,.05); }
.status-pill.completed { color: var(--success); background: rgba(97,212,155,.09); }
.status-pill.current { color: var(--warning); background: rgba(255,199,107,.09); }
.mock-footnote { margin: 14px 2px 0; font-size: 10px; line-height: 1.45; color: #707b8d; }

.card-carousel { overflow: hidden; border-radius: 16px; touch-action: pan-y; transition: height .3s cubic-bezier(.22,.8,.25,1); }
.carousel-track { display: flex; align-items: flex-start; width: 100%; transition: transform .35s cubic-bezier(.22,.8,.25,1); will-change: transform; }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.student-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(150deg, #08639e 0%, #04548a 53%, #034b7b 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.student-card-main { padding: 18px 20px 20px; position: relative; z-index: 2; }
.prototype-badge {
  width: fit-content;
  margin: 0 0 13px auto;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.16);
  color: rgba(255,255,255,.92);
  font-size: 8px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .105em;
  white-space: nowrap;
}
.prototype-badge.course-badge { margin: 0 0 14px auto; position: relative; z-index: 3; }

.student-header { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 16px; align-items: center; }
.photo-frame { width: 96px; aspect-ratio: .78; padding: 5px; border-radius: 17px; background: linear-gradient(145deg, #d8f3ff, #9ad6f4); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; border-radius: 12px; }
.student-name-block { min-width: 0; }
.student-name-block h3 { margin: 3px 0 7px; font-size: clamp(18px, 5.25vw, 22px); line-height: 1.06; letter-spacing: -.025em; }
.student-name-block strong { display: block; font-size: 17px; line-height: 1.1; }
.student-card .field-label { color: rgba(255,255,255,.71); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.student-data-grid { margin-top: 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.data-field { min-width: 0; }
.data-field strong { display: block; margin-top: 3px; font-size: 15.5px; line-height: 1.18; }
.student-card-qr { position: relative; z-index: 2; padding: 15px 20px 17px; background: rgba(0,37,68,.29); border-top: 1px solid rgba(255,255,255,.045); }
.qr-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.qr-heading svg { width: 24px; height: 24px; flex: 0 0 auto; }
.qr-heading strong { display: block; font-size: 16px; }
.qr-heading span { display: block; margin-top: 2px; font-size: 10px; color: rgba(255,255,255,.62); }
.qr-content { display: grid; grid-template-columns: 126px minmax(0,1fr); gap: 18px; align-items: center; }
.qr-button { border: 0; padding: 7px; border-radius: 12px; background: white; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.qr-button img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.qr-copy span { display: block; color: rgba(255,255,255,.74); font-size: 12px; }
.qr-copy strong { display: block; margin-top: 5px; font-size: 17px; }
.qr-copy b { display: inline-flex; margin-top: 10px; padding: 6px 8px; border-radius: 7px; font-size: 9px; letter-spacing: .08em; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.15); }
.carousel-controls { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 0 0; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #5e6879; cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dot.active { width: 20px; background: white; }
.wallet-disclaimer { margin: 9px 0 0; text-align: center; font-size: 10px; color: #7d8797; }

.course-card { min-height: 632px; padding: 21px; }
.course-card-header { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 13px; align-items: center; position: relative; z-index: 2; }
.mini-avatar-wrap { width: 66px; height: 66px; border-radius: 18px; overflow: hidden; border: 3px solid rgba(255,255,255,.24); }
.mini-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.course-card-header h3 { margin: 4px 0 9px; font-size: 18px; line-height: 1.12; }
.course-feature { position: relative; z-index: 2; margin-top: 23px; padding: 15px; display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 12px; align-items: center; border-radius: 15px; background: rgba(0,0,0,.13); border: 1px solid rgba(255,255,255,.08); }
.course-feature-icon { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.course-feature h4 { margin: 4px 0 0; font-size: 17px; line-height: 1.22; }
.course-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 13px; }
.course-metrics > div { min-height: 70px; padding: 12px; border-radius: 13px; background: rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.06); }
.course-metrics > div:first-child { grid-column: 1 / -1; min-height: 62px; }
.course-metrics span { display: block; font-size: 10px; color: rgba(255,255,255,.67); }
.course-metrics strong { display: block; margin-top: 6px; font-size: 16px; }
.course-module-preview { position: relative; z-index: 2; margin-top: 16px; }
.course-module-preview ul { margin: 9px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.course-module-preview li { position: relative; padding-left: 17px; font-size: 11px; line-height: 1.35; color: rgba(255,255,255,.83); }
.course-module-preview li::before { content: ""; position: absolute; left: 1px; top: .42em; width: 6px; height: 6px; border-radius: 999px; background: #9cdcff; }
.course-card-footer { position: relative; z-index: 2; margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.11); display: grid; grid-template-columns: 22px 1fr; gap: 9px; }
.course-card-footer svg { width: 20px; height: 20px; }
.course-card-footer p { margin: 0; font-size: 9.5px; line-height: 1.4; color: rgba(255,255,255,.65); }

.academic-hero { padding: 17px; }
.academic-hero-top { display: flex; gap: 14px; align-items: start; justify-content: space-between; }
.academic-hero-top h3 { margin-top: 4px; font-size: 18px; line-height: 1.23; }
.academic-timeline { margin-top: 22px; }
.timeline-item { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.timeline-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--cyan); margin-top: 2px; box-shadow: 0 0 0 5px rgba(111,200,255,.08); }
.timeline-dot.hollow { background: var(--surface); border: 2px solid #667183; box-shadow: none; }
.timeline-item p { margin: 0 0 3px; font-size: 10px; color: var(--muted); }
.timeline-item strong { font-size: 14px; }
.timeline-line { width: 1px; height: 25px; background: #384255; margin: 3px 0 3px 6px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.service-card { min-height: 118px; border: 1px solid var(--border); padding: 14px; text-align: left; color: var(--text); cursor: pointer; }
.service-card:active { transform: translateY(1px); }
.service-icon { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; color: var(--cyan); background: rgba(5,93,151,.16); margin-bottom: 14px; }
.service-icon svg { width: 20px; height: 20px; }
.service-card strong, .service-card small { display: block; }
.service-card strong { font-size: 14px; }
.service-card small { margin-top: 4px; font-size: 10px; color: var(--muted); }
.legal-note-card { margin-top: 18px; padding: 15px; display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.legal-note-card svg { width: 24px; height: 24px; color: var(--warning); }
.legal-note-card h3 { font-size: 14px; }
.legal-note-card p { margin: 6px 0 0; font-size: 11px; line-height: 1.45; color: var(--muted); }

.menu-page { padding-top: 24px; }
.profile-panel { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 15px; align-items: center; margin-bottom: 25px; }
.profile-panel > img { width: 72px; height: 72px; border-radius: 21px; object-fit: cover; object-position: 50% 24%; border: 2px solid rgba(255,255,255,.1); }
.profile-panel h2 { margin: 7px 0 3px; font-size: 20px; line-height: 1.13; }
.profile-panel p { margin: 0; font-size: 12px; color: var(--muted); }
.menu-group { margin-top: 20px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.menu-group-title { padding: 12px 14px 8px; font-size: 10px; text-transform: uppercase; }
.menu-row { width: 100%; min-height: 65px; border: 0; border-top: 1px solid var(--border); padding: 11px 14px; background: transparent; color: var(--text); display: grid; grid-template-columns: 38px minmax(0,1fr) 22px; gap: 11px; align-items: center; text-align: left; cursor: pointer; }
.menu-group .menu-row:nth-of-type(1) { border-top: 0; }
.menu-row:active { background: rgba(255,255,255,.035); }
.menu-row-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--cyan); background: rgba(5,93,151,.14); }
.menu-row-icon svg { width: 20px; height: 20px; }
.menu-row strong, .menu-row small { display: block; }
.menu-row strong { font-size: 14px; }
.menu-row small { margin-top: 3px; font-size: 10px; color: var(--muted); line-height: 1.35; }
.chevron { width: 19px; height: 19px; color: #647083; }
.toggle-row { position: relative; grid-template-columns: 38px minmax(0,1fr) 46px; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: #2b3444; position: relative; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 999px; left: 3px; top: 3px; background: #cdd3dd; transition: transform .2s ease; box-shadow: 0 2px 5px rgba(0,0,0,.25); }
.toggle-row input:checked + .switch { background: #0874b8; }
.toggle-row input:checked + .switch::after { transform: translateX(18px); background: white; }
.prototype-stamp { margin: 24px 0 6px; padding: 14px; text-align: center; border-radius: 14px; border: 1px dashed rgba(255,255,255,.15); }
.prototype-stamp strong, .prototype-stamp span { display: block; }
.prototype-stamp strong { font-size: 10px; letter-spacing: .09em; color: #9ba5b5; }
.prototype-stamp span { margin-top: 5px; font-size: 9px; color: #626d7e; }

.bottom-nav {
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 4px 8px env(safe-area-inset-bottom);
  background: rgba(13,17,29,.98);
  border-top: 1px solid rgba(255,255,255,.06);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  z-index: 10;
  box-shadow: 0 -12px 30px rgba(0,0,0,.12);
}
.nav-item { min-width: 0; height: 78px; border: 0; background: transparent; color: #626b7a; display: flex; flex-direction: column; gap: 7px; align-items: center; justify-content: center; cursor: pointer; padding: 4px 1px; }
.nav-item svg { width: 23px; height: 23px; }
.nav-item > span:last-child { font-size: 10.5px; line-height: 1; white-space: nowrap; }
.nav-item.active { color: white; }
.wallet-nav { transform: translateY(-16px); }
.wallet-nav-circle { width: 62px; height: 62px; border-radius: 999px; display: grid; place-items: center; background: white; color: #075b91; box-shadow: 0 10px 25px rgba(0,0,0,.32); border: 1px solid rgba(0,0,0,.08); }
.wallet-nav-circle svg { width: 28px; height: 28px; }
.wallet-nav > span:last-child { margin-top: -1px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); display: grid; align-items: end; justify-items: center; padding: 16px; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 400px); background: #171f2e; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 25px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 24px 70px rgba(0,0,0,.5); position: relative; animation: modal-in .25s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; }
.modal-close svg { width: 20px; height: 20px; }
.modal-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--warning); background: rgba(255,199,107,.09); }
.modal-icon svg { width: 26px; height: 26px; }
.modal h2 { margin: 17px 0 0; font-size: 22px; }
.modal-body, #modalBody { margin: 10px 0 19px; }
#modalBody p { margin: 8px 0; font-size: 13px; line-height: 1.5; color: var(--text-soft); }
#modalBody ol { margin: 12px 0 0; padding-left: 22px; color: var(--text-soft); font-size: 13px; line-height: 1.55; }
#modalBody li + li { margin-top: 6px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); width: min(calc(100% - 32px), 390px); padding: 12px 14px; border-radius: 13px; background: #eef5fb; color: #132132; font-size: 12px; font-weight: 700; box-shadow: 0 12px 36px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.sr-only { 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; }

.high-contrast { --border: rgba(255,255,255,.18); --muted: #b3bdca; --surface: #172131; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

@media (max-width: 350px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .wallet-page { padding-left: 10px; padding-right: 10px; }
  .student-card-main, .student-card-qr { padding-left: 15px; padding-right: 15px; }
  .student-header { grid-template-columns: 84px minmax(0,1fr); gap: 12px; }
  .photo-frame { width: 84px; }
  .student-data-grid { gap: 18px 13px; }
  .data-field strong { font-size: 15px; }
  .qr-content { grid-template-columns: 116px 1fr; gap: 13px; }
  .nav-item > span:last-child { font-size: 9.5px; }
}

@media (min-width: 600px) {
  body { display: grid; place-items: center; padding: 16px; }
  .app-shell { height: min(920px, calc(100dvh - 32px)); border-radius: 32px; box-shadow: 0 35px 100px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); }
  .topbar { padding-top: 16px; }
  .bottom-nav { padding-bottom: 0; }
  .modal-backdrop { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
