/* ============================================================
   SchoolManagement — UI Overhaul v2
   Layered on site.css · Mobile-first · Premium soft UI
   ============================================================ */

:root {
  --ui-primary: #4f46e5;
  --ui-primary-dark: #3730a3;
  --ui-primary-soft: #eef2ff;
  --ui-primary-glow: rgba(79, 70, 229, 0.18);
  --ui-accent: #06b6d4;
  --ui-success: #10b981;
  --ui-warning: #f59e0b;
  --ui-danger: #ef4444;
  --ui-ink: #0f172a;
  --ui-ink-2: #334155;
  --ui-muted: #64748b;
  --ui-line: #e2e8f0;
  --ui-line-2: #cbd5e1;
  --ui-surface: #ffffff;
  --ui-bg: #f4f6fb;
  --ui-bg-mesh: radial-gradient(1200px 600px at 10% -10%, #e0e7ff 0%, transparent 55%),
                radial-gradient(900px 500px at 100% 0%, #cffafe 0%, transparent 50%),
                radial-gradient(800px 400px at 50% 100%, #fce7f3 0%, transparent 45%),
                #f4f6fb;
  --ui-radius: 14px;
  --ui-radius-sm: 10px;
  --ui-radius-xs: 8px;
  --ui-radius-lg: 20px;
  --ui-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
  --ui-shadow-md: 0 8px 28px rgba(15, 23, 42, 0.08);
  --ui-shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);
  --ui-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-nav-h: 60px;
  --ui-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Bridge legacy tokens */
  --lp-primary: var(--ui-primary);
  --lp-primary-dark: var(--ui-primary-dark);
  --lp-primary-soft: var(--ui-primary-soft);
  --lp-success: var(--ui-success);
  --lp-warning: var(--ui-warning);
  --lp-danger: var(--ui-danger);
  --lp-muted: var(--ui-muted);
  --lp-text: var(--ui-ink);
  --lp-text-secondary: var(--ui-ink-2);
  --lp-border: var(--ui-line);
  --lp-border-strong: var(--ui-line-2);
  --lp-bg: var(--ui-bg);
  --lp-surface: var(--ui-surface);
  --lp-radius: var(--ui-radius);
  --lp-radius-sm: var(--ui-radius-sm);
  --lp-radius-lg: var(--ui-radius-lg);
  --lp-shadow: var(--ui-shadow);
  --lp-shadow-md: var(--ui-shadow-md);
  --lp-shadow-lg: var(--ui-shadow-lg);
  --lp-font: var(--ui-font);
  --lp-navbar-h: var(--ui-nav-h);
}

/* ---- Base ---- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ui-font) !important;
  background: var(--ui-bg-mesh) !important;
  background-attachment: fixed !important;
  color: var(--ui-ink);
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

main.lp-main {
  padding-top: 1.5rem !important;
  padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px)) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ui-ink);
}

/* ---- Navbar ---- */
.lp-navbar,
.navbar.lp-navbar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 20px rgba(15, 23, 42, 0.04);
  min-height: var(--ui-nav-h);
  padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
}
.lp-navbar .navbar-brand {
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--ui-ink) !important;
  gap: 0.5rem;
}
.lp-navbar .navbar-brand i {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff !important;
  font-size: 1rem;
  box-shadow: 0 4px 12px var(--ui-primary-glow);
}
.lp-navbar .nav-link {
  font-weight: 550;
  font-size: 0.875rem;
  color: var(--ui-ink-2) !important;
  border-radius: 999px;
  padding: 0.45rem 0.85rem !important;
  transition: background 0.2s var(--ui-ease), color 0.2s var(--ui-ease);
}
.lp-navbar .nav-link:hover {
  background: var(--ui-primary-soft) !important;
  color: var(--ui-primary-dark) !important;
}
.lp-navbar .nav-link.active {
  background: var(--ui-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px var(--ui-primary-glow);
}
.lp-navbar .dropdown-menu {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-shadow-md);
  padding: 0.4rem;
  backdrop-filter: blur(8px);
}
.lp-navbar .dropdown-item {
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}
.lp-navbar .dropdown-item:hover {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-dark);
}
.navbar-toggler {
  border: none !important;
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  background: var(--ui-primary-soft);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--ui-primary-glow); }

/* ---- Page header ---- */
.lp-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 0.15rem 0;
}
.lp-page-header h1,
.lp-page-header .h3,
.lp-page-header .h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.lp-page-header .lp-subtitle,
.lp-subtitle {
  color: var(--ui-muted);
  font-size: 0.9rem;
  margin: 0;
}
.lp-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Cards ---- */
.lp-card {
  background: var(--ui-surface) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: var(--ui-shadow) !important;
  padding: 1.15rem 1.25rem !important;
  transition: box-shadow 0.25s var(--ui-ease), transform 0.25s var(--ui-ease);
}
.lp-card:hover {
  box-shadow: var(--ui-shadow-md) !important;
}
.lp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.15rem 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ui-line);
}
.lp-card-header h2,
.lp-card-header .h6,
.lp-card-header h1 {
  margin: 0;
  font-weight: 700;
}

/* ---- Buttons ---- */
.btn {
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 10px !important;
  transition: transform 0.15s var(--ui-ease), box-shadow 0.2s var(--ui-ease), background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px var(--ui-primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
}
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: transparent !important;
}
.btn-outline-primary {
  color: var(--ui-primary) !important;
  border-color: #c7d2fe !important;
  background: #fff !important;
}
.btn-outline-primary:hover {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary) !important;
  color: var(--ui-primary-dark) !important;
}
.btn-outline-secondary {
  border-color: var(--ui-line-2) !important;
  color: var(--ui-ink-2) !important;
  background: #fff !important;
}
.btn-outline-secondary:hover {
  background: #f8fafc !important;
  border-color: var(--ui-muted) !important;
}
.btn-outline-danger {
  border-color: #fecaca !important;
  color: var(--ui-danger) !important;
  background: #fff !important;
}
.btn-outline-danger:hover {
  background: #fef2f2 !important;
}
.btn-sm {
  border-radius: 8px !important;
  font-size: 0.8rem;
}

/* ---- Forms ---- */
.form-control,
.form-select {
  border-radius: 10px !important;
  border-color: var(--ui-line) !important;
  background: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 0.55rem 0.85rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #a5b4fc !important;
  box-shadow: 0 0 0 4px var(--ui-primary-glow) !important;
}
.form-label {
  font-weight: 600;
  font-size: 0.825rem;
  color: var(--ui-ink-2);
  margin-bottom: 0.35rem;
}
.form-check-input:checked {
  background-color: var(--ui-primary);
  border-color: var(--ui-primary);
}

/* ---- Tables ---- */
.table {
  --bs-table-bg: transparent;
  font-size: 0.9rem;
}
.table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--ui-muted);
  border-bottom-width: 1px !important;
  background: #f8fafc;
  white-space: nowrap;
}
.table > :not(caption) > * > * {
  padding: 0.75rem 0.85rem;
}
.table-hover > tbody > tr:hover > * {
  background: #f8fafc !important;
}
.table-responsive {
  border-radius: var(--ui-radius-sm);
  border: 1px solid var(--ui-line);
  background: #fff;
}
.table-responsive .table {
  margin-bottom: 0;
}
.badge {
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.35em 0.65em;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--ui-muted);
}

/* ---- Alerts ---- */
.alert {
  border: none;
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-shadow);
  font-size: 0.9rem;
}
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info { background: #ecfeff; color: #155e75; }

/* ---- Heroes (school / workspace / dashboard) ---- */
.sc-hero,
.ws-hero,
.db-hero,
.sc-hero-class,
.sc-hero-student {
  border-radius: var(--ui-radius-lg) !important;
  padding: 1.35rem 1.5rem !important;
  box-shadow: var(--ui-shadow-md) !important;
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.sc-hero::after,
.ws-hero::after,
.db-hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 65%);
  pointer-events: none;
}
.sc-hero {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 48%, #06b6d4 100%) !important;
  color: #fff !important;
}
.sc-hero-class {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #38bdf8 100%) !important;
}
.sc-hero-student {
  background: linear-gradient(135deg, #9d174d 0%, #e11d48 45%, #fb7185 100%) !important;
}
.db-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 55%, #67e8f9 100%) !important;
  color: #fff !important;
}
.ws-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #22d3ee 100%) !important;
  color: #fff !important;
}
.sc-hero h1, .ws-hero h1, .db-hero h1,
.sc-hero .h3, .ws-hero .h3 {
  color: #fff !important;
  font-weight: 800;
}
.sc-eyebrow, .db-eyebrow, .ws-eyebrow {
  opacity: 0.9;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Stats chips ---- */
.ws-stats, .db-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.ws-stat, .db-stat {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  padding: 0.85rem 0.75rem;
  text-align: center;
  box-shadow: var(--ui-shadow);
  transition: transform 0.2s var(--ui-ease);
}
.ws-stat:hover, .db-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--ui-shadow-md);
}
.ws-stat-num, .db-stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ui-ink);
}
.ws-stat-label, .db-stat-lbl, .ws-stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ui-muted);
}

/* ---- School cards grid ---- */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.sc-card, article.sc-card {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ui-ease), box-shadow 0.2s var(--ui-ease);
}
.sc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ui-shadow-md);
}
.sc-card-head, .sc-card-header {
  padding: 1rem 1.1rem 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}
.sc-card-body {
  padding: 0 1.1rem 0.85rem;
  flex: 1;
}
.sc-card-actions {
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--ui-line);
  background: #fafbff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sc-metric-num {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ui-primary);
}

/* ---- Admin user cards ---- */
.au-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}
.au-card {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.au-card:hover { box-shadow: var(--ui-shadow-md); }
.au-card-actions {
  background: #f8fafc;
  border-top: 1px solid var(--ui-line);
  padding: 0.75rem;
}
.au-role-badge {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---- Parent / Teacher chat ---- */
.pp-bubble {
  border-radius: 16px !important;
  padding: 0.65rem 0.9rem !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.05);
  max-width: min(92%, 28rem);
}
.pp-bubble.out {
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  color: #fff !important;
  border-bottom-right-radius: 4px !important;
}
.pp-bubble.in {
  background: #fff !important;
  border: 1px solid var(--ui-line) !important;
  border-bottom-left-radius: 4px !important;
}
.pp-bubble-meta {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-bottom: 0.2rem;
}
.pp-chat, .ws-msg-thread {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border-radius: var(--ui-radius);
}
.ws-msg-compose, .pp-chat-compose {
  background: #fff;
  border-top: 1px solid var(--ui-line);
  border-radius: 0 0 var(--ui-radius) var(--ui-radius);
  padding: 0.75rem;
}

/* ---- Workspace student rows ---- */
.ws-student-card, .ws-row, [class*="ws-student"] {
  border-radius: var(--ui-radius-sm);
}
.ws-check-btn, .ws-att-btn {
  border-radius: 999px !important;
}

/* ---- Footer ---- */
.lp-footer {
  background: linear-gradient(180deg, #0f172a, #020617) !important;
  color: rgba(255,255,255,0.6) !important;
  border-top: none !important;
  padding: 1.5rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  margin-top: auto;
}
.lp-footer a { color: rgba(255,255,255,0.85); }

/* ---- Pills ---- */
.au-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--ui-ink-2);
}
.au-pill-ok {
  background: #ecfdf5;
  color: #047857;
}

/* ---- Empty states ---- */
.lp-empty, .ph-empty, .pp-chat-empty, .ws-msg-placeholder {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ui-muted);
}
.lp-empty i, .ph-empty i {
  font-size: 2rem;
  opacity: 0.4;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ui-primary);
}

/* ---- Code / embed ---- */
pre.bg-dark {
  border-radius: var(--ui-radius-sm) !important;
  border: 1px solid #1e293b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ---- Modal ---- */
.modal-content {
  border: none;
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-lg);
}
.modal-header {
  border-bottom-color: var(--ui-line);
}
.modal-footer {
  border-top-color: var(--ui-line);
  background: #f8fafc;
  border-radius: 0 0 var(--ui-radius) var(--ui-radius);
}

/* ---- Login page polish ---- */
.lp-auth-wrap, .auth-card, body.login-page main {
  min-height: 60vh;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .lp-navbar .nav-link {
    border-radius: 10px;
    margin: 0.1rem 0;
  }
  .lp-navbar .nav-link.active {
    box-shadow: none;
  }
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    border-radius: 0 0 var(--ui-radius) var(--ui-radius);
    padding: 0.5rem 0.35rem 0.85rem;
    margin: 0 -0.5rem;
  }
}

@media (max-width: 767.98px) {
  .lp-page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-page-header .btn,
  .lp-page-header a.btn,
  .sc-hero > .btn,
  .sc-hero a.btn,
  .ws-hero > .btn,
  .db-hero .btn {
    width: 100%;
  }
  .sc-hero, .ws-hero, .db-hero {
    padding: 1.1rem 1.15rem !important;
  }
  .btn {
    min-height: 2.35rem;
  }
  .form-control, .form-select {
    font-size: 16px !important;
    min-height: 2.5rem;
  }
  .sc-grid, .au-grid {
    grid-template-columns: 1fr !important;
  }
  .ws-stats, .db-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  main.lp-main {
    padding-top: 1rem !important;
  }
  .lp-card {
    padding: 0.95rem 1rem !important;
    border-radius: var(--ui-radius-sm) !important;
  }
  .ws-stats, .db-stats {
    gap: 0.5rem;
  }
  .ws-stat-num, .db-stat-num {
    font-size: 1.35rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .sc-grid, .au-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ---- Motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Home hero & features ---- */
.lp-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--ui-radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1.75rem;
  color: #fff;
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 42%, #06b6d4 100%);
  box-shadow: var(--ui-shadow-lg);
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(400px 200px at 10% 90%, rgba(6,182,212,0.35), transparent 50%);
  pointer-events: none;
}
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 0.5rem;
}
.lp-hero p {
  max-width: 36rem;
  opacity: 0.92;
  font-size: 1.05rem;
}
.lp-hero .btn-light {
  font-weight: 700;
  color: #312e81;
}
.lp-hero .btn-outline-light {
  border-width: 1.5px;
  font-weight: 600;
}
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.lp-feature {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--ui-shadow);
  transition: transform 0.2s var(--ui-ease), box-shadow 0.2s;
  height: 100%;
}
.lp-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--ui-shadow-md);
}
.lp-feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.lp-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.lp-feature p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- Auth ---- */
.lp-auth-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(70vh, 32rem);
  padding: 1rem 0 2rem;
}
.lp-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: var(--ui-shadow-lg);
  position: relative;
}
.lp-auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
}
.auth-title {
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.25rem;
}
.lp-auth-sub {
  text-align: center;
  color: var(--ui-muted);
  font-size: 0.9rem;
  margin-bottom: 1.35rem;
}

/* ---- Filters strip ---- */
.sc-filters {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--ui-shadow);
}

/* ---- Student row avatar ---- */
.sc-row-avatar, .sc-row-avatar-fallback {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
}
.sc-row-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.sc-student-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
