/* education.css — Education (Device 2) page styles.
 *
 * Scoped to the `edu-` prefix (plus the two shared platform hooks the page
 * markup owns: `.container` and `.page-header`) so nothing here leaks into
 * the Master-owned Platform Home, Marketplace, Game Hosting, TikTok/Reels or
 * the existing Student Services page.
 *
 * No CDN, no webfont and no remote asset: production CSP allows only
 * 'self' and 'unsafe-inline', and every visual is a native CSS primitive.
 * Direction is logical (inline-start / inline-end) so the page mirrors
 * correctly when platform/omni-i18n.js flips `dir` between ar and en.
 */

.edu-page {
  --edu-radius: 14px;
  --edu-radius-sm: 10px;
  --edu-radius-lg: 18px;
  --edu-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --edu-shadow-3: 0 18px 48px rgba(10, 7, 22, 0.24);
  --edu-dur: 160ms;
  --edu-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --edu-accent: #0d9488;
  --edu-font: "IBM Plex Sans Arabic", "Cairo", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  font-family: var(--edu-font);
  color: #0f172a;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 45%, #f0fdfa 100%);
  padding-block: calc(16px + env(safe-area-inset-top)) calc(96px + env(safe-area-inset-bottom));
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
}

.edu-page *,
.edu-page *::before,
.edu-page *::after {
  box-sizing: border-box;
}

.edu-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- header ---------- */

.edu-page .page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.edu-page .page-header h1 {
  margin: 0;
  font-size: 1.35rem;
}

.edu-header-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.edu-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.edu-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

/* ---------- surfaces ---------- */

.edu-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--edu-radius);
  box-shadow: var(--edu-shadow);
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.edu-card > h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.edu-card-sub {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
}

/* ---------- dashboard ---------- */

.edu-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.edu-stat {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--edu-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(18px) saturate(160%);
}

.edu-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edu-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.edu-stat-sub {
  font-size: 11px;
  color: #64748b;
}

/* ---------- filters ---------- */

.edu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.edu-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-filter > label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edu-input,
.edu-select,
.edu-textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--edu-radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: inherit;
  outline: none;
}

.edu-filter .edu-input,
.edu-filter .edu-select {
  padding: 8px 10px;
  font-size: 13px;
}

.edu-input:focus,
.edu-select:focus,
.edu-textarea:focus {
  border-color: var(--edu-accent);
}

.edu-textarea {
  min-height: 74px;
  resize: vertical;
}

.edu-field {
  margin-bottom: 12px;
}

.edu-field > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.edu-field-hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

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

/* ---------- buttons ---------- */

.edu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--edu-radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.edu-btn:focus-visible {
  outline: 2px solid var(--edu-accent);
  outline-offset: 2px;
}

.edu-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.edu-btn-primary {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.25);
}

.edu-btn-outline {
  border-color: rgba(15, 23, 42, 0.12);
}

.edu-btn-sm {
  padding: 7px 10px;
  font-size: 12px;
}

.edu-btn-danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
}

.edu-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.edu-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.edu-icon-sm {
  width: 14px;
  height: 14px;
}

/* ---------- tables ---------- */

.edu-table-wrap {
  overflow-x: auto;
}

.edu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.edu-table th,
.edu-table td {
  padding: 8px 10px;
  text-align: start;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: top;
}

.edu-table th {
  color: #64748b;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.edu-table td.edu-cell-actions {
  white-space: nowrap;
}

.edu-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  direction: ltr;
  unicode-bidi: plaintext;
  display: inline-block;
}

/* ---------- status pills ---------- */

.edu-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.edu-pill-active { background: rgba(16, 185, 129, 0.12); color: #047857; border-color: rgba(16, 185, 129, 0.25); }
.edu-pill-inactive,
.edu-pill-withdrawn { background: rgba(100, 116, 139, 0.12); color: #334155; border-color: rgba(100, 116, 139, 0.25); }
.edu-pill-archived { background: rgba(239, 68, 68, 0.12); color: #b91c1c; border-color: rgba(239, 68, 68, 0.25); }
.edu-pill-present { background: rgba(16, 185, 129, 0.12); color: #047857; border-color: rgba(16, 185, 129, 0.25); }
.edu-pill-absent { background: rgba(239, 68, 68, 0.12); color: #b91c1c; border-color: rgba(239, 68, 68, 0.25); }
.edu-pill-late { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.25); }
.edu-pill-excused { background: rgba(139, 92, 246, 0.12); color: #7c3aed; border-color: rgba(139, 92, 246, 0.25); }
.edu-pill-record { background: rgba(13, 148, 136, 0.12); color: #0f766e; border-color: rgba(13, 148, 136, 0.25); }
.edu-pill-full_time { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; border-color: rgba(59, 130, 246, 0.25); }
.edu-pill-part_time { background: rgba(14, 165, 233, 0.12); color: #0369a1; border-color: rgba(14, 165, 233, 0.25); }
.edu-pill-contract { background: rgba(168, 85, 247, 0.12); color: #7e22ce; border-color: rgba(168, 85, 247, 0.25); }
.edu-pill-days { background: rgba(15, 23, 42, 0.06); color: #334155; border-color: rgba(15, 23, 42, 0.12); }
.edu-pill-weeks { background: rgba(15, 23, 42, 0.06); color: #334155; border-color: rgba(15, 23, 42, 0.12); }
.edu-pill-months { background: rgba(15, 23, 42, 0.06); color: #334155; border-color: rgba(15, 23, 42, 0.12); }
.edu-pill-requested { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.25); }
.edu-pill-confirmed { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; border-color: rgba(59, 130, 246, 0.25); }
.edu-pill-completed { background: rgba(16, 185, 129, 0.12); color: #047857; border-color: rgba(16, 185, 129, 0.25); }
.edu-pill-cancelled { background: rgba(239, 68, 68, 0.12); color: #b91c1c; border-color: rgba(239, 68, 68, 0.25); }

/* ---------- state blocks ---------- */

.edu-state {
  text-align: center;
  color: #64748b;
  padding: 22px 16px;
  font-size: 13px;
}

.edu-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #64748b;
  font-size: 13px;
}

.edu-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(13, 148, 136, 0.2);
  border-top-color: var(--edu-accent);
  border-radius: 50%;
  animation: edu-spin 0.8s linear infinite;
}

@keyframes edu-spin {
  to { transform: rotate(360deg); }
}

.edu-skeleton {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.06) 25%, rgba(15, 23, 42, 0.03) 50%, rgba(15, 23, 42, 0.06) 75%);
  background-size: 200% 100%;
  animation: edu-shimmer 1.5s infinite;
}

@keyframes edu-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.edu-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: var(--edu-radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
}

.edu-banner-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

.edu-banner-info {
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: #0f766e;
}

.edu-banner-neutral {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
}

.edu-banner button {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* ---------- descriptive distribution ---------- */

.edu-dist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edu-dist-label {
  width: 110px;
  flex: 0 0 auto;
  font-size: 12px;
  color: #334155;
}

.edu-dist-track {
  flex: 1;
  height: 22px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.edu-dist-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
  transition: width var(--edu-dur) var(--edu-ease);
}

.edu-dist-fill-present { background: linear-gradient(90deg, #10b981, #34d399); }
.edu-dist-fill-absent { background: linear-gradient(90deg, #ef4444, #f87171); }
.edu-dist-fill-late { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.edu-dist-fill-excused { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.edu-dist-fill-neutral { background: linear-gradient(90deg, #0d9488, #5eead4); }

.edu-dist-value {
  width: 46px;
  flex: 0 0 auto;
  text-align: end;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

/* ---------- dialogs ---------- */

.edu-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 7, 22, 0.5);
  backdrop-filter: blur(4px);
}

.edu-dialog-overlay.is-open {
  display: flex;
}

.edu-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--edu-radius-lg);
  box-shadow: var(--edu-shadow-3);
  font-family: var(--edu-font);
}

.edu-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.edu-dialog-title {
  margin: 0;
  font-size: 1.1rem;
}

.edu-dialog-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.edu-dialog-body {
  padding: 16px;
}

.edu-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* ---------- toasts ---------- */

.edu-toast-region {
  position: fixed;
  inset-block-end: 78px;
  inset-inline: 18px;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.edu-toast {
  pointer-events: auto;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.edu-toast-error {
  background: #7f1d1d;
}

/* ---------- navigation ---------- */

.edu-bottom-nav {
  position: fixed;
  inset-block-end: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  gap: 4px;
  width: min(92%, 480px);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px 16px 0 0;
}

.edu-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 4px;
  border: none;
  background: none;
  color: #64748b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.edu-nav-btn.is-active {
  color: var(--edu-accent);
  background: rgba(13, 148, 136, 0.1);
}

.edu-nav-btn:focus-visible {
  outline: 2px solid var(--edu-accent);
  outline-offset: 2px;
}

.edu-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(320px, 85vw);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  border-inline-start: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--edu-shadow-3);
  /* Logical offset so the drawer slides in from the inline-end edge in both
     directions, without a direction-specific translateX(). */
  transform: translateX(100%);
  transition: transform var(--edu-dur) var(--edu-ease);
  overflow-y: auto;
}

[dir="rtl"].edu-drawer {
  transform: translateX(-100%);
}

.edu-drawer.is-open,
[dir="rtl"].edu-drawer.is-open {
  transform: translateX(0);
}
/* Mirrored directional elements in RTL. The back-link arrow flips to point
   back in the RTL reading direction, and the calendar step icons flip so each
   arrow points toward the dates it moves to (earlier dates sit on the
   inline-end side of the grid when the page is RTL). */
[dir="rtl"] .edu-back-arrow {
  transform: rotate(180deg);
}

[dir="rtl"] [aria-label="Earlier range"] .edu-icon,
[dir="rtl"] [aria-label="Later range"] .edu-icon {
  transform: rotate(180deg);
}


.edu-drawer-header {
  padding: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.edu-drawer-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.edu-drawer-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* A non-interactive label that groups the report links under one heading in
   the drawer. It carries no interaction, so it is a span and not a button. */
.edu-drawer-group {
  display: block;
  padding-inline-start: 12px;
  padding-block-end: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.edu-drawer-sep {
  margin: 8px 0;
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.edu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  background: rgba(10, 7, 22, 0.4);
  backdrop-filter: blur(4px);
}

.edu-overlay.is-open {
  display: block;
}

/* ---------- pages ---------- */

.edu-page-body {
  display: none;
}

.edu-page-body.is-active {
  display: block;
  animation: edu-fade var(--edu-dur) var(--edu-ease);
}

@keyframes edu-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.edu-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.edu-section-title {
  margin: 18px 0 10px;
  font-size: 1rem;
}

.edu-ref-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #334155;
}

.edu-ref-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.edu-sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- class roster ---------- */

.edu-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.edu-section-head .edu-section-title {
  margin: 0;
}

.edu-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

.edu-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.02);
}

.edu-detail-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.edu-detail-value {
  font-size: 13px;
  color: #0f172a;
  overflow-wrap: anywhere;
}

/* ---------- class register ---------- */

.edu-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.edu-summary-item {
  display: flex;
  flex-direction: column;
  min-width: 84px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.02);
}

.edu-summary-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: #64748b;
}

.edu-summary-value {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.edu-select-inline {
  min-width: 130px;
}

/* ---------- schedule calendar ---------- */

.edu-seg {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.edu-seg-label {
  font-size: 12px;
  color: #64748b;
}

.edu-btn.is-active {
  border-color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.edu-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.edu-week-day {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.02);
  min-width: 0;
}

.edu-day-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.edu-day-weekday {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.edu-day-date {
  font-size: 10px;
  color: #64748b;
}

.edu-day-empty {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
}

.edu-session-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edu-session {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  border-inline-start: 3px solid #0d9488;
  background: rgba(13, 148, 136, 0.07);
  font-size: 12px;
  min-width: 0;
}

.edu-session-time {
  font-size: 11px;
  color: #0f766e;
}

.edu-session-class,
.edu-session-teacher,
.edu-session-notes {
  overflow-wrap: anywhere;
}

.edu-session-teacher {
  color: #475569;
}

.edu-session-notes {
  color: #64748b;
}

/* ---------- pack settings ---------- */

.edu-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.edu-pack-status {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  color: #475569;
}

.edu-pack-status.is-saved {
  color: #047857;
}

.edu-pack-status.is-error {
  color: #b91c1c;
}

/* ---------- responsive ---------- */

@media (max-width: 768px) {
  .edu-hamburger {
    display: flex;
  }

  .edu-field-grid {
    grid-template-columns: 1fr;
  }

  .edu-table th,
  .edu-table td {
    padding: 6px 8px;
    font-size: 12px;
  }

  .edu-dist-label {
    width: 84px;
  }

  /* A seven-column grid is unreadable on a phone, so the SAME day columns
   * stack into a single readable column. Nothing is dropped: the week view
   * becomes a vertical agenda rather than a squeezed timetable. */
  .edu-week {
    grid-template-columns: 1fr;
  }

  .edu-week-day {
    padding: 6px 8px;
  }

  .edu-summary-item {
    min-width: 68px;
    padding: 6px 10px;
  }

  .edu-form-grid {
    grid-template-columns: 1fr;
  }
}

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

  .edu-card,
  .edu-stat {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
