:root {
  --bg: #0a0f1e;
  --bg-soft: #121a31;
  --panel: #10182b;
  --panel-2: #16213a;
  --panel-3: #1b2745;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f8ff;
  --muted: #9cabcb;
  --muted-2: #6e7da2;
  --accent: #00c896;
  --accent-2: #00e4ab;
  --danger: #ff5c7a;
  --warning: #ffb347;
  --info: #58a6ff;
  --success: #00c896;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --nav-height: 88px;
  --max-width: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(0, 200, 150, 0.08), transparent 25%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button, input, select, textarea {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.page-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card, .glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 33, 58, 0.96), rgba(12, 18, 33, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 18px; }
.glass-card { padding: 24px; overflow: hidden; }
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.08), transparent 35%);
  pointer-events: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-shell {
  width: min(100%, 1080px);
  display: grid;
  gap: 20px;
}
.login-brand {
  position: relative;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "icon"
    "content"
    "stats"
    "footer";
  align-items: start;
  row-gap: 18px;
  min-height: 460px;
}
.login-brand__icon {
  grid-area: icon;
  width: clamp(88px, 9vw, 104px);
  height: clamp(88px, 9vw, 104px);
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 150, 0.12);
  border: 1px solid rgba(0, 200, 150, 0.2);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.login-brand__icon.icon-slot svg,
.login-brand__icon--center.icon-slot svg {
  width: clamp(44px, 4.4vw, 54px);
  height: clamp(44px, 4.4vw, 54px);
}

.login-brand__icon--center {
  margin: 0 auto;
}

.login-brand__content {
  grid-area: content;
  position: relative;
  z-index: 1;
  max-width: none;
  min-width: 0;
  padding-right: clamp(110px, 14vw, 152px);
}

.login-brand__hero-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  width: clamp(108px, 14vw, 148px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.school-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.school-logo--hero {
  max-width: 100%;
  max-height: 100%;
}
.login-brand h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  white-space: nowrap;
}
.login-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}
.login-brand__stats {
  grid-area: stats;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.login-brand__stats .mini-stat {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.login-brand__stats .mini-stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}
.login-panel {
  width: 100%;
  max-width: 460px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-header {
  text-align: center;
  margin-bottom: 20px;
}
.login-header h2 {
  margin: 16px 0 8px;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.login-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}
.login-brand__footer {
  grid-area: footer;
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: #c8d5f5;
}
.field small, .field-error {
  font-size: 12px;
  color: var(--danger);
}
.input, .select, .textarea, .search-input input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus, .search-input input:focus {
  border-color: rgba(0, 200, 150, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.12);
}
.input.error, .select.error, .textarea.error { border-color: rgba(255, 92, 122, 0.7); }
.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(1em + 2px),
    calc(100% - 16px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
  border: 1px solid transparent;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; pointer-events: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #06261f;
  box-shadow: 0 12px 26px rgba(0, 200, 150, 0.25);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.btn-danger {
  background: rgba(255, 92, 122, 0.12);
  border-color: rgba(255, 92, 122, 0.22);
  color: #ffc1cf;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
  color: var(--muted);
}
.btn-block { width: 100%; }
.btn-sm {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-slot svg { width: 20px; height: 20px; }
.login-brand__icon.icon-slot svg,
.login-brand__icon--center.icon-slot svg { width: clamp(44px, 4.4vw, 54px); height: clamp(44px, 4.4vw, 54px); }

.app-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.app-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 200, 150, 0.14), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(88, 166, 255, 0.10), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03), transparent 30%);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: max(18px, env(safe-area-inset-top)) 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.96), rgba(10, 15, 30, 0.76));
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.topbar-title {
  margin: 4px 0 4px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.topbar-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  cursor: pointer;
}
.profile-chip__avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 200, 150, 0.14);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.profile-chip__text {
  display: grid;
  gap: 2px;
  text-align: left;
}
.profile-chip__text strong { font-size: 13px; }
.profile-chip__text small { color: var(--muted); font-size: 11px; }

.main-content {
  width: min(calc(100% - 24px), var(--max-width));
  margin: 0 auto;
  padding: 8px 0 calc(var(--nav-height) + 24px + env(safe-area-inset-bottom));
}
.screen { display: none; }
.screen.active { display: block; }
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 16px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 26, 49, 0.98), rgba(11, 16, 29, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.metric-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.metric-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
}
.metric-card__label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #93a6d7;
}
.metric-card__value {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0;
}
.metric-card__meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.hero-card {
  padding: 20px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(0,200,150,0.16);
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.16), rgba(0, 200, 150, 0.04) 36%, rgba(255,255,255,0.02) 100%);
}
.hero-card__title {
  margin: 0 0 6px;
  font-size: clamp(22px, 5vw, 32px);
  letter-spacing: -0.04em;
}
.hero-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 18px;
  min-height: 56px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.search-input input {
  padding: 0;
  min-height: auto;
  background: transparent;
  border: 0;
  box-shadow: none !important;
}

.list {
  display: grid;
  gap: 12px;
}
.record-card, .student-card, .approval-item, .manage-tile {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.record-card__top, .row-between {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.record-card__title, .student-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.record-card__meta, .student-card__meta, .detail-meta {
  color: var(--muted);
  font-size: 13px;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag, .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.status-success { color: #05231b; background: linear-gradient(180deg, #28f0b8, #00c896); }
.status-warning { color: #382105; background: linear-gradient(180deg, #ffd18b, #ffb347); }
.status-danger { color: #330610; background: linear-gradient(180deg, #ff9ab0, #ff5c7a); }
.status-info { color: #071b37; background: linear-gradient(180deg, #95c8ff, #58a6ff); }
.status-muted {
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.segmented button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}
.segmented button.active {
  background: rgba(0, 200, 150, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 200, 150, 0.18);
}

.form-grid {
  display: grid;
  gap: 14px;
}
.uploader {
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.03);
}
.photo-preview {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-list { display: grid; gap: 10px; margin-top: 14px; }
.file-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.student-hero {
  display: grid;
  gap: 18px;
}
.student-identity {
  display: flex;
  gap: 16px;
  align-items: center;
}
.student-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  overflow: hidden;
}
.student-avatar img { width: 100%; height: 100%; object-fit: cover; }
.student-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.student-kpi {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.student-kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.table-card {
  overflow: hidden;
  padding: 0;
}
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th, .table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table th {
  color: #8ea1ce;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.table td { font-size: 14px; }
.table tr:hover td { background: rgba(255,255,255,0.02); }

.empty-state {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}
.info-banner, .warning-banner, .danger-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
}
.info-banner {
  background: rgba(88, 166, 255, 0.10);
  border-color: rgba(88, 166, 255, 0.18);
}
.warning-banner {
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.18);
}
.danger-banner {
  background: rgba(255, 92, 122, 0.12);
  border-color: rgba(255, 92, 122, 0.18);
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(12, 18, 33, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.38);
  z-index: 50;
}
.bottom-nav__item {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 60px;
  padding: 10px 6px;
  border-radius: 18px;
  cursor: pointer;
  color: var(--muted);
  text-align: center;
}
.bottom-nav__item small {
  font-size: 11px;
  font-weight: 700;
}
.bottom-nav__item.active {
  color: var(--accent);
  background: rgba(0, 200, 150, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 200, 150, 0.18);
}
.bottom-nav__item svg { width: 22px; height: 22px; }

.toast-root {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 200;
  display: grid;
  gap: 10px;
}
.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  animation: toast-in .24s ease;
}
.toast.success { background: linear-gradient(180deg, rgba(0, 200, 150, 0.18), rgba(7, 34, 29, 0.96)); }
.toast.error { background: linear-gradient(180deg, rgba(255, 92, 122, 0.20), rgba(36, 11, 18, 0.96)); }
.toast.warning { background: linear-gradient(180deg, rgba(255, 179, 71, 0.20), rgba(37, 22, 7, 0.96)); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.72);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: min(100%, 560px);
  max-height: min(90vh, 860px);
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 26, 49, 0.98), rgba(10, 15, 29, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.modal p { margin: 0 0 18px; color: var(--muted); line-height: 1.7; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (min-width: 760px) {
  .login-shell { grid-template-columns: 1.32fr .9fr; align-items: stretch; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .student-hero { grid-template-columns: 1.1fr .9fr; }
  .bottom-nav {
    width: min(720px, calc(100% - 24px));
    margin: 0 auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
@media (min-width: 1080px) {
  .main-content { padding-top: 18px; }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .login-brand__stats { grid-template-columns: 1fr; }
  .profile-chip__text { display: none; }
  .profile-chip { padding: 8px; }
  .student-identity { align-items: flex-start; }
  .student-kpis { grid-template-columns: 1fr; }
}


.login-brand__footer {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.login-brand__stats .mini-stat {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 18px;
}

.login-brand__stats .mini-stat strong {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.35;
  margin: 0;
}

.student-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-quick-actions .btn {
  width: 100%;
  min-height: 76px;
  text-align: center;
  padding: 14px;
}

.page-footer,
.management-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

@media (max-width: 560px) {
  .login-brand__stats {
    grid-template-columns: 1fr;
  }

  .student-quick-actions {
    grid-template-columns: 1fr 1fr;
  }
}


@media (min-width: 900px) {
  .login-shell {
    grid-template-columns: 1.38fr 0.86fr;
    align-items: stretch;
  }

  .login-panel {
    max-width: none;
  }
}


@media (min-width: 900px) {
  .login-brand {
    padding: 32px;
  }

  .login-brand__content {
    padding-right: 124px;
  }

  .login-brand__hero-logo {
    width: 120px;
  }

  .login-brand h1 {
    font-size: clamp(30px, 3.2vw, 36px);
  }
}

@media (max-width: 899px) {
  .login-brand {
    min-height: auto;
    padding-bottom: 24px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "content"
      "stats"
      "footer";
  }

  .login-brand__hero-logo {
    top: 24px;
    right: 24px;
    width: clamp(92px, 22vw, 120px);
    border-radius: 26px;
  }

  .login-brand__content {
    max-width: none;
    padding-right: clamp(96px, 18vw, 132px);
  }
}

@media (max-width: 640px) {
  .login-brand {
    padding: 24px;
  }

  .login-brand__stats {
    grid-template-columns: 1fr;
  }

  .login-brand__icon {
    width: 84px;
    height: 84px;
    border-radius: 24px;
  }

  .login-brand__hero-logo {
    top: 24px;
    right: 24px;
    width: 88px;
    padding: 10px;
    border-radius: 24px;
  }

  .login-brand__content {
    padding-right: 96px;
    padding-top: 8px;
  }

  .login-brand h1 {
    font-size: clamp(28px, 8.6vw, 34px);
    white-space: nowrap;
  }

  .school-logo--hero {
    max-width: min(100%, 68px);
    max-height: min(100%, 68px);
  }

  .login-brand__footer {
    font-size: 11px;
  }
}
:root {
  color-scheme: dark;
}

select,
select option,
select optgroup {
  background: #182338;
  color: #eef4ff;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

main, section, .page, .stack, .content, .panel, .card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-card,
.filter-card,
.list-card,
.detail-card,
.management-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.metric-grid,
.form-grid,
.quick-actions,
.hero-card__actions {
  min-width: 0;
}

table {
  width: 100%;
  max-width: 100%;
}

img, svg {
  max-width: 100%;
  height: auto;
}