/* ============================================================
   Medicine Crafts Collective -- Student Portal
   Extends the existing regal palette from style.css
   ============================================================ */

/* Import base styles for variables and resets */
@import url('style.css');

/* --- Portal Layout --- */
.portal-wrapper {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.portal-main {
  flex: 1;
  padding: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* --- Login Screen --- */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(91, 44, 131, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.login-screen::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .login-screen::before {
  background: radial-gradient(ellipse, rgba(168, 127, 219, 0.06) 0%, transparent 70%);
}

[data-theme="dark"] .login-screen::after {
  background: radial-gradient(ellipse, rgba(229, 201, 106, 0.04) 0%, transparent 70%);
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: portalFadeUp 0.6s ease-out both;
}

.login-logo {
  max-width: min(280px, 70vw);
  margin: 0 auto var(--space-8);
  opacity: 0.92;
}

.login-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.login-subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.login-input-wrap {
  position: relative;
}

.login-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  padding-right: 3rem;
  font-size: var(--text-base);
  font-family: var(--font-body);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.05em;
}

.login-input::placeholder {
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.login-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(91, 44, 131, 0.1);
}

[data-theme="dark"] .login-input:focus {
  box-shadow: 0 0 0 4px rgba(168, 127, 219, 0.15);
}

.login-toggle-pw {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  padding: var(--space-1);
  color: var(--text-faint);
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.login-toggle-pw:hover {
  color: var(--color-muted);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  border-color: var(--purple);
  cursor: pointer;
  width: 100%;
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  border-color: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.login-btn:active {
  transform: translateY(0);
}

.login-error {
  display: none;
  font-size: var(--text-sm);
  color: var(--error);
  background: var(--fuchsia-pale);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--error);
  text-align: left;
  animation: portalFadeUp 0.3s ease-out;
}

.login-error.show {
  display: block;
}

.login-footer {
  margin-top: var(--space-10);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.login-footer a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-footer a:hover {
  color: var(--color-muted);
}

/* --- Dashboard Header --- */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-3) var(--space-6);
  transition: all var(--transition);
}

[data-theme="dark"] .dash-header {
  background: rgba(19, 13, 30, 0.92);
}

.dash-header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.dash-logo {
  height: 36px;
  width: auto;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dash-logout-btn {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.dash-logout-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* --- Welcome Section --- */
.dash-welcome {
  padding: var(--space-10) 0 var(--space-6);
  animation: portalFadeUp 0.5s ease-out both;
}

.dash-welcome-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.dash-welcome-sub {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* --- Section Labels --- */
.dash-section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-4);
  padding-top: var(--space-6);
}

/* --- Week Cards --- */
.week-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.week-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: all var(--transition);
  animation: portalFadeUp 0.5s ease-out both;
}

.week-card:nth-child(1) { animation-delay: 0.05s; }
.week-card:nth-child(2) { animation-delay: 0.1s; }
.week-card:nth-child(3) { animation-delay: 0.15s; }
.week-card:nth-child(4) { animation-delay: 0.2s; }

.week-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--purple-pale);
}

.week-card.locked {
  opacity: 0.5;
  pointer-events: none;
}

.week-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.week-card-info {
  flex: 1;
  min-width: 0;
}

.week-card-num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.week-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.week-card-date {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.week-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.week-badge.available {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
  border: 1px solid rgba(46, 125, 50, 0.2);
}

[data-theme="dark"] .week-badge.available {
  background: rgba(46, 125, 50, 0.15);
  color: #66BB6A;
  border-color: rgba(46, 125, 50, 0.3);
}

.week-badge.coming {
  background: var(--purple-faint);
  color: var(--text-faint);
  border: 1px solid var(--color-border);
}

.week-card-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.week-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.week-action-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.week-action-btn.slides {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  border-color: var(--gold);
}

.week-action-btn.slides:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.week-action-btn.recording {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.week-action-btn.recording:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-1px);
}

.week-action-btn.coming-soon {
  background: transparent;
  color: var(--text-faint);
  border-color: var(--color-border);
  cursor: default;
  pointer-events: none;
}

/* --- Persistent Resources --- */
.resources-section {
  padding: var(--space-8) 0 var(--space-12);
  animation: portalFadeUp 0.5s ease-out 0.25s both;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.resource-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--purple-pale);
  color: var(--color-text);
  transform: translateY(-2px);
}

.resource-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: #fff;
}

.resource-icon.pdf {
  background: linear-gradient(135deg, var(--fuchsia), var(--purple));
}

.resource-icon.app {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}

.resource-icon.recordings {
  background: linear-gradient(135deg, var(--purple), var(--royal-blue));
}

.resource-icon svg {
  width: 22px;
  height: 22px;
}

.resource-info {
  flex: 1;
  min-width: 0;
}

.resource-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.resource-desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.resource-arrow {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.resource-card:hover .resource-arrow {
  transform: translateX(3px);
  color: var(--color-accent);
}

/* --- Portal Footer --- */
.portal-footer {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-faint);
  border-top: 1px solid var(--color-divider);
}

.portal-footer a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-footer a:hover {
  color: var(--color-muted);
}

/* --- Admin Panel --- */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--color-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-overlay.visible {
  display: block;
}

.admin-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.admin-close-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  cursor: pointer;
  transition: color var(--transition);
}

.admin-close-btn:hover {
  color: var(--color-text);
}

.admin-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.admin-login-form {
  max-width: 360px;
}

.admin-login-form .login-input {
  text-align: left;
  letter-spacing: normal;
  margin-bottom: var(--space-3);
}

.admin-section {
  margin-bottom: var(--space-8);
}

.admin-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--gold);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.admin-table th {
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: var(--space-3) var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

.admin-table td {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--purple-faint);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.admin-stat.warning {
  background: var(--fuchsia-pale);
  color: var(--fuchsia);
}

.never-logged {
  color: var(--fuchsia);
  font-weight: 600;
  font-size: var(--text-xs);
}

/* --- Theme Toggle (portal version) --- */
.portal-theme-toggle {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 100;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-muted);
}

.portal-theme-toggle:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: scale(1.05);
}

/* --- Animations --- */
@keyframes portalFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .portal-main {
    padding: var(--space-4);
  }

  .week-card {
    padding: var(--space-4) var(--space-4);
  }

  .week-card-top {
    flex-direction: column;
    gap: var(--space-2);
  }

  .week-card-actions {
    flex-direction: column;
  }

  .week-action-btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
  }

  .resource-card {
    padding: var(--space-4);
  }

  .dash-header-inner {
    padding: 0;
  }

  .dash-header {
    padding: var(--space-3) var(--space-4);
  }

  .login-card {
    max-width: 100%;
  }

  .admin-table {
    font-size: var(--text-xs);
  }

  .admin-table th,
  .admin-table td {
    padding: var(--space-2);
  }
}

@media (min-width: 601px) {
  .resources-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Admin Tabs --- */
.admin-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-divider);
  padding-bottom: 0;
}

.admin-tab {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.admin-tab:hover {
  color: var(--color-text);
}

.admin-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.admin-subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

/* --- Content Manager --- */
.content-notice {
  padding: var(--space-4);
  background: var(--purple-faint);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.content-status {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  min-height: 24px;
  transition: all var(--transition);
}

.content-status.saving {
  color: var(--color-muted);
}

.content-status.success {
  color: var(--gold);
}

.content-status.error {
  color: var(--fuchsia);
}

.content-week-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.content-week-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.content-week-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.content-date {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.content-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.content-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.field-hint {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  opacity: 0.7;
}

.content-field input {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.content-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.1);
}

.content-field input::placeholder {
  color: var(--text-faint);
}

.content-save-btn {
  align-self: flex-start;
  padding: var(--space-2) var(--space-5);
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.content-save-btn:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}

/* --- Resource link style for week cards --- */
.week-action-btn.resource {
  border-color: var(--gold);
  color: var(--gold);
}

.week-action-btn.resource:hover {
  background: var(--gold);
  color: #fff;
}

@media (max-width: 600px) {
  .admin-tabs {
    flex-wrap: wrap;
  }

  .content-week-header {
    flex-direction: column;
    gap: var(--space-1);
  }
}

/* ============================================================
   STUDENTS MANAGER (Admin)
   ============================================================ */
.students-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.login-btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  width: auto;
}

.login-btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
}
.login-btn-ghost:hover { background: var(--purple-faint); }

.cohort-card {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.cohort-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.cohort-card-title h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-1) 0;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cohort-card-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
}

.cohort-card-actions {
  display: flex;
  gap: var(--space-2);
}

.cohort-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--purple-faint);
  color: var(--purple);
  border: 1px solid var(--purple);
}
.cohort-status-graduated { background: var(--gold-pale, #FAEFD0); color: var(--gold-deep, #8B6B1F); border-color: var(--gold); }
.cohort-status-active { background: rgba(46,125,50,0.12); color: #2E7D32; border-color: #2E7D32; }
.cohort-status-upcoming { background: rgba(91,44,131,0.08); color: var(--purple); border-color: var(--purple); }
.cohort-status-archived { background: rgba(0,0,0,0.06); color: var(--color-muted); border-color: var(--color-border); }

.student-list {
  margin-bottom: var(--space-3);
}

.student-list-head {
  display: grid;
  grid-template-columns: 1fr 1fr 90px;
  gap: var(--space-2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: var(--space-1) var(--space-1);
}

.student-row {
  display: grid;
  grid-template-columns: 1fr 1fr 90px;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.student-name, .student-pass {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--purple-faint, #F3ECF9);
  font-size: var(--text-sm);
  font-family: inherit;
}

.student-pass { font-family: ui-monospace, "SF Mono", monospace; }

.student-name:focus, .student-pass:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--surface);
}

.student-row-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-xs);
  font-family: inherit;
  transition: all 0.15s ease;
}
.student-row-btn:hover { background: rgba(199,62,107,0.08); color: var(--magenta, #C73E6B); border-color: var(--magenta, #C73E6B); }

.content-notice {
  background: var(--purple-faint);
  border-left: 3px solid var(--purple);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
  .student-list-head, .student-row {
    grid-template-columns: 1fr;
  }
  .student-list-head span:nth-child(3) { display: none; }
}
