/* =====================================================
   ELG DASHBOARD — COMPLETE STYLESHEET
   Version: 8.0 FINAL
   Date: 11-05-2026

   Combines:
   • v7.5  Base premium dashboard styles
   • v7.7  Intervention Action Panel
   • v7.8  Guidance Engine — Recommended Next Stage
===================================================== */

/* ═══════════════════════════════════════════════════
   1. BASE WRAPPER
═══════════════════════════════════════════════════ */
.elg-premium-dashboard, .elg-academic-os {
  width: 100% !important; max-width: 1320px !important;
  margin: 16px auto 20px !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  color: #243244 !important;
}
.elg-academic-os {
  background: #f6f3e9 !important;
  border: 1px solid rgba(34,58,95,0.14) !important;
  border-radius: 16px !important; overflow: hidden !important;
  box-shadow: 0 18px 46px rgba(15,36,96,0.14) !important;
}

/* ═══════════════════════════════════════════════════
   2. HERO
═══════════════════════════════════════════════════ */
.elg-os-hero {
  display: flex !important; justify-content: space-between !important;
  align-items: center !important; padding: 16px 22px !important;
  background: linear-gradient(135deg,#154f82 0%,#0e7568 100%) !important;
  color: #ffffff !important;
}
.elg-dash-kicker { font-size:10px !important; letter-spacing:1.8px !important; text-transform:uppercase !important; font-weight:900 !important; color:rgba(255,255,255,0.66) !important; margin-bottom:4px !important; }
.elg-dash-title  { font-size:24px !important; line-height:1.08 !important; font-weight:900 !important; margin:0 !important; color:#ffffff !important; }
.elg-dash-subtitle { font-size:12px !important; font-weight:700 !important; color:rgba(255,255,255,0.84) !important; margin-top:5px !important; }

/* ═══════════════════════════════════════════════════
   3. IDENTITY BADGE
═══════════════════════════════════════════════════ */
.elg-id-wrap { position:relative !important; z-index:20 !important; }
.elg-identity { min-width:240px !important; padding:12px 15px !important; border-radius:12px !important; background:rgba(255,255,255,0.14) !important; border:1px solid rgba(255,255,255,0.22) !important; color:#ffffff !important; text-align:right !important; cursor:pointer !important; box-shadow:inset 0 1px 0 rgba(255,255,255,0.22) !important; }
.elg-identity__role    { display:block !important; font-size:10px !important; font-weight:900 !important; letter-spacing:1.5px !important; color:rgba(255,255,255,0.68) !important; }
.elg-identity__cohort  { display:block !important; margin-top:3px !important; font-size:12px !important; font-weight:900 !important; color:#ffffff !important; }
.elg-identity__session { display:block !important; margin-top:3px !important; font-size:11px !important; color:rgba(255,255,255,0.72) !important; }
.elg-chevron { font-size:8px !important; margin-left:4px !important; }
.elg-id-dropdown { display:none !important; position:absolute !important; right:0 !important; top:calc(100% + 8px) !important; min-width:320px !important; background:#ffffff !important; border:1px solid rgba(26,79,130,0.14) !important; border-radius:12px !important; overflow:hidden !important; box-shadow:0 18px 42px rgba(15,36,96,0.18) !important; }
.elg-id-wrap.open .elg-id-dropdown { display:block !important; }
.elg-id-dropdown div { padding:10px 12px !important; font-size:12px !important; font-weight:800 !important; color:#20314a !important; cursor:pointer !important; }
.elg-id-dropdown div:hover, .elg-id-dropdown div.is-active { background:#eaf3ff !important; color:#0b63b6 !important; }

/* ═══════════════════════════════════════════════════
   4. LAYOUT
═══════════════════════════════════════════════════ */
.elg-os-layout { display:grid !important; grid-template-columns:250px minmax(0,1fr) 250px !important; min-height:540px !important; }

/* ═══════════════════════════════════════════════════
   5. LEFT RAIL
═══════════════════════════════════════════════════ */
.elg-os-rail { background:#f0eee3 !important; border-right:1px solid rgba(34,58,95,0.12) !important; padding:18px 15px !important; }
.elg-os-rail-title { font-size:10px !important; font-weight:900 !important; letter-spacing:1.2px !important; text-transform:uppercase !important; color:#777469 !important; margin-bottom:14px !important; }
.elg-os-scope-list { display:grid !important; gap:14px !important; }
.elg-os-subject-group { border-bottom:1px solid rgba(34,58,95,0.10) !important; padding-bottom:12px !important; }
.elg-os-subject-head { width:100% !important; border:0 !important; outline:0 !important; background:transparent !important; display:flex !important; align-items:center !important; justify-content:space-between !important; gap:8px !important; cursor:pointer !important; padding:0 !important; font-size:13px !important; font-weight:900 !important; color:#243244 !important; }
.elg-os-subject-mark { width:10px !important; height:10px !important; border-radius:999px !important; background:#0b72bf !important; display:inline-block !important; flex:0 0 auto !important; }
.elg-os-subject-group:nth-child(2) .elg-os-subject-mark { background:#0d8f73 !important; }
.elg-os-subject-group:nth-child(3) .elg-os-subject-mark { background:#5d8f22 !important; }
.elg-os-subject-group:nth-child(4) .elg-os-subject-mark { background:#9c6410 !important; }
.elg-os-subject-arrow { font-size:18px !important; line-height:1 !important; color:#8a95a5 !important; }
.elg-os-year-list { margin-top:12px !important; padding-left:18px !important; display:grid !important; gap:10px !important; }
.elg-os-year-btn { width:100% !important; min-height:34px !important; border:0 !important; outline:0 !important; border-radius:10px !important; background:#ffffff !important; color:#4d5d71 !important; font-size:12px !important; font-weight:900 !important; text-align:left !important; padding:0 12px !important; cursor:pointer !important; box-shadow:inset 0 0 0 1px rgba(34,58,95,0.10),0 4px 10px rgba(15,36,96,0.04) !important; }
.elg-os-year-btn:hover { background:#eef6ff !important; color:#0b63b6 !important; }
.elg-os-year-btn.is-active { background:linear-gradient(135deg,#0b72bf,#095d9c) !important; color:#ffffff !important; box-shadow:0 7px 18px rgba(11,114,191,0.26) !important; }
.elg-os-gender-list { margin-top:10px !important; display:grid !important; gap:10px !important; }
.elg-os-gender-group { padding-left:4px !important; }
.elg-os-gender-label { font-size:10px !important; font-weight:900 !important; letter-spacing:1px !important; text-transform:uppercase !important; color:#7a776d !important; margin-bottom:6px !important; }
.elg-os-section-list { display:flex !important; flex-wrap:wrap !important; gap:7px !important; }
.elg-os-section-btn { border:0 !important; outline:0 !important; min-width:40px !important; height:28px !important; border-radius:999px !important; background:#ffffff !important; color:#647184 !important; font-size:11px !important; font-weight:900 !important; padding:0 10px !important; cursor:pointer !important; box-shadow:inset 0 0 0 1px rgba(34,58,95,0.12),0 3px 8px rgba(15,36,96,0.04) !important; }
.elg-os-section-btn:hover { background:#e5f1fb !important; color:#0b72bf !important; }
.elg-os-section-btn.is-active { background:linear-gradient(135deg,#0b72bf,#095d9c) !important; color:#ffffff !important; box-shadow:0 7px 16px rgba(11,114,191,0.28) !important; }

/* ═══════════════════════════════════════════════════
   6. MAIN PANEL
═══════════════════════════════════════════════════ */
.elg-os-main { background:#fbfaf5 !important; padding:16px !important; border-right:1px solid rgba(34,58,95,0.10) !important; }
.elg-os-scope-bar { display:flex !important; justify-content:space-between !important; align-items:center !important; gap:14px !important; padding-bottom:12px !important; margin-bottom:14px !important; border-bottom:1px solid rgba(34,58,95,0.10) !important; }
.elg-os-breadcrumb { display:flex !important; align-items:center !important; gap:8px !important; flex-wrap:wrap !important; font-size:13px !important; font-weight:800 !important; color:#68778a !important; }
.elg-os-breadcrumb strong { color:#1f2f46 !important; font-weight:900 !important; }
.elg-os-scope-summary { display:flex !important; align-items:center !important; gap:8px !important; font-size:12px !important; font-weight:800 !important; color:#5c6879 !important; }

/* ═══════════════════════════════════════════════════
   7. KPI STRIP
═══════════════════════════════════════════════════ */
.elg-os-kpi-strip { display:grid !important; grid-template-columns:repeat(4,1fr) !important; gap:10px !important; margin-bottom:16px !important; }
.elg-os-kpi { position:relative !important; min-height:82px !important; padding:14px 12px 12px !important; border-radius:12px !important; background:linear-gradient(180deg,#ffffff,#fbfdff) !important; border:1px solid rgba(34,58,95,0.12) !important; box-shadow:0 7px 18px rgba(15,36,96,0.06) !important; }
.elg-os-kpi strong { display:block !important; font-size:28px !important; line-height:1 !important; font-weight:900 !important; color:#1f2f46 !important; margin-bottom:8px !important; padding-right:24px !important; }
.elg-os-kpi span   { display:block !important; font-size:12px !important; font-weight:800 !important; color:#68778a !important; line-height:1.35 !important; }
.elg-os-info-dot { -webkit-appearance:none !important; appearance:none !important; position:absolute !important; top:10px !important; right:10px !important; width:20px !important; height:20px !important; min-width:20px !important; min-height:20px !important; border-radius:50% !important; border:1px solid rgba(11,114,191,0.24) !important; background:#eef6ff !important; color:#0b63b6 !important; font-size:12px !important; font-weight:900 !important; line-height:18px !important; text-align:center !important; padding:0 !important; margin:0 !important; cursor:help !important; }
.elg-os-info-dot:hover { background:#0b72bf !important; color:#ffffff !important; }

/* ═══════════════════════════════════════════════════
   8. AI ACADEMIC SUMMARY
═══════════════════════════════════════════════════ */
.elg-os-ai-summary { display:flex !important; align-items:center !important; gap:14px !important; margin:0 0 14px !important; padding:13px 16px !important; border-radius:12px !important; background:linear-gradient(135deg,rgba(255,255,255,0.96),rgba(248,250,252,0.98)) !important; border:1px solid rgba(15,23,42,0.07) !important; box-shadow:0 6px 18px rgba(15,23,42,0.06),0 1px 0 rgba(255,255,255,0.9) inset !important; position:relative !important; overflow:hidden !important; }
.elg-os-ai-summary::before { content:"" !important; width:8px !important; align-self:stretch !important; border-radius:999px !important; flex-shrink:0 !important; }
.elg-os-ai-summary-label { font-size:10px !important; font-weight:900 !important; letter-spacing:0.07em !important; text-transform:uppercase !important; color:#64748b !important; min-width:120px !important; }
.elg-os-ai-summary-text  { font-size:13px !important; font-weight:700 !important; line-height:1.45 !important; color:#0f172a !important; }
.elg-os-ai-summary-critical::before  { background:#ef4444 !important; }
.elg-os-ai-summary-attention::before { background:#f59e0b !important; }
.elg-os-ai-summary-positive::before  { background:#16a34a !important; }
.elg-os-ai-summary-stable::before    { background:#185fa5 !important; }

/* ═══════════════════════════════════════════════════
   9. UNIT GROUPS
═══════════════════════════════════════════════════ */
.elg-os-unit-list { display:grid !important; gap:10px !important; }
.elg-os-unit-group { border-radius:13px !important; overflow:hidden !important; background:transparent !important; }
.elg-os-unit-head { width:100% !important; min-height:48px !important; border:0 !important; outline:0 !important; display:grid !important; grid-template-columns:minmax(0,1fr) auto 22px !important; align-items:center !important; gap:12px !important; padding:11px 14px !important; border-radius:12px !important; background:linear-gradient(135deg,#0b72bf,#0e7568) !important; color:#ffffff !important; cursor:pointer !important; text-align:left !important; box-shadow:0 8px 20px rgba(15,36,96,0.12) !important; }
.elg-os-unit-head strong { display:block !important; font-size:14px !important; font-weight:900 !important; color:#ffffff !important; line-height:1.2 !important; }
.elg-os-unit-code  { display:block !important; font-size:10px !important; font-weight:900 !important; letter-spacing:1px !important; text-transform:uppercase !important; color:rgba(255,255,255,0.76) !important; margin-bottom:3px !important; }
.elg-os-unit-count { font-size:11px !important; font-weight:900 !important; color:rgba(255,255,255,0.90) !important; white-space:nowrap !important; }
.elg-os-unit-arrow { font-size:16px !important; color:#ffffff !important; text-align:center !important; transition:transform 0.18s ease !important; }
.elg-os-unit-body  { display:none !important; padding-top:9px !important; padding-bottom:4px !important; }
.elg-os-unit-group.is-open .elg-os-unit-body  { display:grid !important; gap:10px !important; }
.elg-os-unit-group.is-open .elg-os-unit-arrow { transform:rotate(180deg) !important; }

/* ═══════════════════════════════════════════════════
   10. CHAPTER ROWS
═══════════════════════════════════════════════════ */
.elg-os-chapter-row {
  position:relative !important; display:grid !important;
  grid-template-columns:44px minmax(220px,1fr) 240px 120px !important;
  align-items:center !important; gap:12px !important; min-height:70px !important;
  padding:10px 12px !important; border-radius:12px !important;
  background:linear-gradient(180deg,#ffffff,#fbfdff) !important;
  border:1px solid rgba(34,58,95,0.14) !important; border-left:4px solid #0b72bf !important;
  box-shadow:0 7px 18px rgba(15,36,96,0.07) !important; overflow:hidden !important;
  will-change:transform,box-shadow;
  transition:transform 0.22s ease,box-shadow 0.22s ease,border-color 0.22s ease,background 0.22s ease !important;
}
.elg-os-chapter-row:has(.elg-os-status-notstarted) { border-left-color:#94a3b8 !important; background:linear-gradient(90deg,rgba(148,163,184,0.08) 0%,rgba(255,255,255,0.98) 45%) !important; }
.elg-os-chapter-row:has(.elg-os-status-attention)  { border-left-color:#ef4444 !important; background:linear-gradient(90deg,rgba(239,68,68,0.07) 0%,rgba(255,255,255,0.98) 48%) !important; }
.elg-os-chapter-row:has(.elg-os-status-ontrack)    { border-left-color:#185fa5 !important; background:linear-gradient(90deg,rgba(24,95,165,0.06) 0%,rgba(255,255,255,0.98) 48%) !important; }
.elg-os-chapter-row:has(.elg-os-status-strong),
.elg-os-chapter-row:has(.elg-os-status-excellent)  { border-left-color:#0f6e56 !important; background:linear-gradient(90deg,rgba(15,110,86,0.07) 0%,rgba(255,255,255,0.98) 48%) !important; }
.elg-os-chapter-row:hover { transform:translateY(-3px) !important; box-shadow:0 18px 42px rgba(15,37,84,0.14),0 1px 0 rgba(255,255,255,0.98) inset !important; z-index:3 !important; }
.elg-os-chapter-row::after { content:"" !important; position:absolute !important; inset:0 !important; background:linear-gradient(180deg,rgba(255,255,255,0.12),rgba(255,255,255,0)) !important; pointer-events:none !important; }
.elg-os-chapter-main[role="button"] { cursor:pointer !important; }
.elg-os-chapter-main[role="button"]:hover .elg-os-chapter-title { color:#0b72bf !important; }
.elg-os-chapter-index { font-size:15px !important; font-weight:900 !important; color:#1f2f46 !important; }
.elg-os-chapter-title { font-size:13px !important; font-weight:900 !important; color:#10233b !important; line-height:1.25 !important; }
.elg-os-chapter-meta  { margin-top:4px !important; font-size:11px !important; color:#667386 !important; font-weight:700 !important; }

/* ═══════════════════════════════════════════════════
   11. PROGRESS BAR + STATUS BADGES
═══════════════════════════════════════════════════ */
.elg-os-progress-wrap  { width:100% !important; height:6px !important; border-radius:999px !important; background:#edf2f7 !important; overflow:hidden !important; margin-top:8px !important; }
.elg-os-progress-bar   { height:100% !important; border-radius:999px !important; background:linear-gradient(90deg,#0b72bf,#0e7568) !important; }
.elg-os-progress-meta  { display:flex !important; align-items:center !important; gap:8px !important; margin-top:5px !important; }
.elg-os-progress-label { font-size:10px !important; font-weight:900 !important; color:#0b63b6 !important; }
.elg-os-status-badge   { display:inline-flex !important; align-items:center !important; height:20px !important; padding:0 8px !important; border-radius:999px !important; font-size:10px !important; font-weight:800 !important; line-height:1 !important; white-space:nowrap !important; }
.elg-os-status-nodata,
.elg-os-status-notstarted { background:linear-gradient(180deg,#f6f4ef,#ece8df) !important; color:#5f5e5a !important; border:1px solid #d8d2c6 !important; }
.elg-os-status-attention  { background:linear-gradient(180deg,#fff3e2,#fde3bf) !important; color:#8a4b00 !important; border:1px solid #efbf7b !important; box-shadow:inset 0 1px 0 rgba(255,255,255,0.7) !important; }
.elg-os-status-ontrack    { background:linear-gradient(180deg,#edf6ff,#d8ebff) !important; color:#185FA5 !important; border:1px solid #b7d4f3 !important; box-shadow:inset 0 1px 0 rgba(255,255,255,0.7) !important; }
.elg-os-status-strong     { background:linear-gradient(180deg,#eef9eb,#daf0d2) !important; color:#23633d !important; border:1px solid #b8d9ba !important; box-shadow:inset 0 1px 0 rgba(255,255,255,0.7) !important; }
.elg-os-status-excellent  { background:linear-gradient(180deg,#e8faf3,#cff1e3) !important; color:#0d6b52 !important; border:1px solid #9fd8c2 !important; box-shadow:inset 0 1px 0 rgba(255,255,255,0.75) !important; }

/* ═══════════════════════════════════════════════════
   12. STAGE BUTTONS (dashboard-progress.js)
═══════════════════════════════════════════════════ */
.elg-os-stage-strip { display:none !important; }
.elg-prog-btn-strip { display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important; align-items:center !important; gap:6px !important; overflow-x:auto !important; overflow-y:hidden !important; scrollbar-width:none !important; -ms-overflow-style:none !important; width:100% !important; margin-top:8px !important; padding-bottom:4px !important; }
.elg-prog-btn-strip::-webkit-scrollbar { display:none !important; }
.elg-prog-stage-btn { display:inline-flex !important; align-items:center !important; justify-content:center !important; position:relative !important; flex-shrink:0 !important; font-size:11px !important; font-weight:500 !important; line-height:1 !important; white-space:nowrap !important; padding:4px 10px !important; border-radius:100px !important; border:0.5px solid rgba(34,58,95,0.18) !important; color:#4d5d71 !important; background:#f8f9fb !important; text-decoration:none !important; cursor:pointer !important; }
.elg-prog-stage-btn:hover { background:#eef3f8 !important; color:#1f2f46 !important; border-color:rgba(34,58,95,0.3) !important; }
.elg-prog-stage-btn[href*="elgstage=progress"] { color:#0f6e56 !important; border-color:rgba(15,110,86,0.4) !important; }
.elg-prog-stage-btn.is-last-stage { background:#185FA5 !important; color:#ffffff !important; border-color:#185FA5 !important; font-weight:600 !important; }
.elg-prog-stage-btn.is-last-stage::after { content:" \25B2" !important; font-size:7px !important; vertical-align:1px !important; opacity:0.75 !important; pointer-events:none !important; }
.elg-prog-stage-btn[href*="elgstage=progress"].is-last-stage { background:#0F6E56 !important; border-color:#0F6E56 !important; }

/* ═══════════════════════════════════════════════════
   13. OPEN CHAPTER BUTTON
═══════════════════════════════════════════════════ */
.elg-os-open-btn { display:inline-flex !important; align-items:center !important; justify-content:center !important; min-height:34px !important; padding:7px 12px !important; border-radius:999px !important; background:#eaf3ff !important; color:#0b63b6 !important; text-decoration:none !important; font-size:11px !important; font-weight:900 !important; will-change:transform !important; transition:transform 0.18s ease,box-shadow 0.18s ease,background 0.18s ease !important; }
.elg-os-open-btn:hover { background:#0b72bf !important; color:#ffffff !important; transform:translateY(-1px) !important; box-shadow:0 8px 18px rgba(11,114,191,0.2) !important; }
.elg-os-link-missing { font-size:11px !important; font-weight:800 !important; color:#a56a00 !important; }

/* ═══════════════════════════════════════════════════
   14. ALERT RAIL + SIGNALS
═══════════════════════════════════════════════════ */
.elg-os-alert-rail { background:#f0eee3 !important; padding:16px 14px !important; }
.elg-os-alert-head { margin-bottom:4px !important; }
.elg-os-panel-kicker { font-size:10px !important; font-weight:900 !important; letter-spacing:1.2px !important; text-transform:uppercase !important; color:#777469 !important; margin-bottom:4px !important; }
.elg-os-alert-head h3 { margin:0 0 14px !important; font-size:15px !important; font-weight:900 !important; color:#1f2f46 !important; }
.elg-os-alert-list { display:grid !important; gap:10px !important; }
.elg-os-alert-good, .elg-os-alert-item { display:block !important; padding:11px 10px !important; border-radius:10px !important; background:#ffffff !important; border:1px solid rgba(34,58,95,0.12) !important; text-decoration:none !important; color:#263445 !important; box-shadow:0 6px 15px rgba(15,36,96,0.06) !important; }
.elg-os-alert-good strong { display:block !important; color:#0d8f73 !important; font-size:12px !important; font-weight:900 !important; margin-bottom:4px !important; }
.elg-os-alert-good span   { display:block !important; font-size:12px !important; color:#5c6879 !important; line-height:1.35 !important; }
.elg-os-alert-item { display:flex !important; gap:8px !important; align-items:flex-start !important; font-size:12px !important; font-weight:900 !important; line-height:1.35 !important; }
.elg-os-alert-item:hover { background:#f8fbff !important; color:#0b63b6 !important; }
.elg-os-alert-dot { width:7px !important; height:7px !important; margin-top:5px !important; border-radius:999px !important; background:#e94b5f !important; flex:0 0 auto !important; }
.elg-os-alert-click { -webkit-appearance:none !important; appearance:none !important; width:100% !important; text-align:left !important; font-family:inherit !important; cursor:pointer !important; transition:background 0.15s ease,transform 0.15s ease !important; }
.elg-os-alert-click:hover { background:#eef6ff !important; color:#0b63b6 !important; }
.elg-os-alert-click:active { transform:scale(0.98) !important; }
.elg-os-signal-group { margin-bottom:14px !important; }
.elg-os-signal-title { display:flex !important; align-items:center !important; height:22px !important; padding:0 10px !important; margin-bottom:7px !important; border-radius:8px !important; font-size:11px !important; font-weight:900 !important; letter-spacing:0.04em !important; text-transform:uppercase !important; }
.elg-os-signal-urgent .elg-os-signal-title   { background:#fee2e2 !important; color:#991b1b !important; }
.elg-os-signal-attention .elg-os-signal-title { background:#ffedd5 !important; color:#9a3412 !important; }
.elg-os-signal-positive .elg-os-signal-title  { background:#dcfce7 !important; color:#166534 !important; }
.elg-os-signal-urgent .elg-os-alert-dot    { background:#ef4444 !important; }
.elg-os-signal-attention .elg-os-alert-dot  { background:#f97316 !important; }
.elg-os-signal-positive .elg-os-alert-dot   { background:#16a34a !important; }

/* ═══════════════════════════════════════════════════
   15. INTERVENTION SPOTLIGHT ANIMATION
═══════════════════════════════════════════════════ */
@keyframes elgInterventionSpotlight {
  0%   { box-shadow:0 7px 18px rgba(15,36,96,0.07),0 0 0 0 rgba(133,79,11,0); }
  12%  { box-shadow:0 4px 24px rgba(133,79,11,0.22),0 0 0 3px rgba(133,79,11,0.28),0 1px 0 rgba(255,255,255,0.95) inset; }
  72%  { box-shadow:0 3px 18px rgba(133,79,11,0.14),0 0 0 2px rgba(133,79,11,0.16),0 1px 0 rgba(255,255,255,0.95) inset; }
  100% { box-shadow:0 7px 18px rgba(15,36,96,0.07),0 0 0 0 rgba(133,79,11,0); }
}
.elg-os-chapter-intervention { border-left-color:#854F0B !important; animation:elgInterventionSpotlight 7.2s ease forwards !important; z-index:4 !important; }

/* ═══════════════════════════════════════════════════
   16. INTERVENTION ACTION PANEL
═══════════════════════════════════════════════════ */
.elg-os-intervention-drawer { grid-column:1 / -1 !important; max-height:0 !important; overflow:hidden !important; opacity:0 !important; transition:max-height 0.34s cubic-bezier(0.4,0,0.2,1),opacity 0.24s ease !important; }
.elg-os-intervention-drawer.is-open { max-height:620px !important; opacity:1 !important; }
.elg-os-iPanel { border-top:1px solid rgba(34,58,95,0.10) !important; background:#fafaf8 !important; padding:14px 16px 16px !important; }
.elg-ip-head { display:flex !important; align-items:center !important; justify-content:space-between !important; margin-bottom:12px !important; }
.elg-ip-head-left { display:flex !important; align-items:center !important; gap:8px !important; }
.elg-ip-kicker { font-size:9px !important; font-weight:900 !important; text-transform:uppercase !important; letter-spacing:0.09em !important; color:#777469 !important; }
.elg-ip-status { display:inline-flex !important; align-items:center !important; font-size:10px !important; font-weight:800 !important; padding:2px 9px !important; border-radius:999px !important; }
.elg-ip-status-notstarted { background:#f6f4ef; color:#5f5e5a; }
.elg-ip-status-attention  { background:#fff3e2; color:#8a4b00; }
.elg-ip-status-ontrack    { background:#edf6ff; color:#185fa5; }
.elg-ip-status-strong     { background:#eef9eb; color:#23633d; }
.elg-ip-status-excellent  { background:#e8faf3; color:#085041; }
.elg-ip-status-nodata     { background:#f6f4ef; color:#5f5e5a; }
.elg-ip-close { -webkit-appearance:none !important; appearance:none !important; border:none !important; background:transparent !important; color:#8a95a5 !important; font-size:16px !important; line-height:1 !important; cursor:pointer !important; padding:2px 4px !important; border-radius:4px !important; }
.elg-ip-close:hover { color:#1f2f46 !important; background:rgba(34,58,95,0.08) !important; }
.elg-ip-stats { display:flex !important; gap:7px !important; flex-wrap:wrap !important; margin-bottom:12px !important; }
.elg-ip-stat { background:#ffffff !important; border:1px solid rgba(34,58,95,0.10) !important; border-radius:8px !important; padding:7px 12px !important; min-width:72px !important; }
.elg-ip-stat strong { display:block !important; font-size:15px !important; font-weight:900 !important; color:#1f2f46 !important; margin-bottom:2px !important; }
.elg-ip-stat span   { display:block !important; font-size:9px !important; font-weight:700 !important; color:#8a95a5 !important; text-transform:uppercase !important; letter-spacing:0.05em !important; }
.elg-ip-stages { display:grid !important; gap:5px !important; margin-bottom:6px !important; }
.elg-ip-stage-row   { display:flex !important; align-items:center !important; gap:8px !important; }
.elg-ip-stage-name  { font-size:10px !important; font-weight:700 !important; color:#4d5d71 !important; min-width:54px !important; }
.elg-ip-stage-track { flex:1 !important; height:5px !important; background:#edf2f7 !important; border-radius:999px !important; overflow:hidden !important; }
.elg-ip-stage-fill  { height:100% !important; border-radius:999px !important; transition:width 0.4s ease !important; }
.sf-learn    { background:#0F6E56 !important; }
.sf-explore  { background:#185FA5 !important; }
.sf-check    { background:#854F0B !important; }
.sf-reflect  { background:#A32D2D !important; }
.sf-progress { background:#5F5E5A !important; }
.elg-ip-stage-pct { font-size:10px !important; font-weight:800 !important; min-width:30px !important; text-align:right !important; }
.elg-ip-note { font-size:9px !important; color:#8a95a5 !important; font-style:italic !important; margin-bottom:12px !important; margin-top:3px !important; }
.elg-ip-action-box { border-left:3px solid #f59e0b !important; border-radius:0 8px 8px 0 !important; background:rgba(250,238,218,0.45) !important; padding:9px 13px !important; margin-bottom:13px !important; }
.elg-ip-action-box.positive { border-left-color:#0d8f73 !important; background:rgba(225,245,238,0.45) !important; }
.elg-ip-action-label { font-size:9px !important; font-weight:900 !important; text-transform:uppercase !important; letter-spacing:0.08em !important; color:#8a4b00 !important; margin-bottom:4px !important; }
.elg-ip-action-box.positive .elg-ip-action-label { color:#085041 !important; }
.elg-ip-action-text { font-size:12px !important; font-weight:700 !important; color:#1f2f46 !important; line-height:1.55 !important; }
.elg-ip-btns { display:flex !important; gap:7px !important; flex-wrap:wrap !important; }
.elg-ip-btn-primary   { display:inline-flex !important; align-items:center !important; font-size:11px !important; font-weight:800 !important; padding:7px 15px !important; border-radius:999px !important; background:#0b72bf !important; color:#ffffff !important; text-decoration:none !important; border:none !important; cursor:pointer !important; transition:background 0.18s ease !important; }
.elg-ip-btn-primary:hover { background:#095d9c !important; color:#ffffff !important; }
.elg-ip-btn-secondary { display:inline-flex !important; align-items:center !important; font-size:11px !important; font-weight:800 !important; padding:6px 14px !important; border-radius:999px !important; background:transparent !important; color:#0b72bf !important; border:1px solid rgba(11,114,191,0.38) !important; text-decoration:none !important; cursor:pointer !important; }
.elg-ip-btn-secondary:hover { background:#eef6ff !important; }
.elg-ip-btn-ghost { display:inline-flex !important; align-items:center !important; font-size:11px !important; font-weight:800 !important; padding:6px 13px !important; border-radius:999px !important; background:transparent !important; color:#4d5d71 !important; border:1px solid rgba(34,58,95,0.18) !important; text-decoration:none !important; cursor:pointer !important; }
.elg-ip-btn-ghost:hover { background:rgba(34,58,95,0.06) !important; }
.elg-ip-btn-ghost:disabled { opacity:0.45 !important; cursor:not-allowed !important; }

/* ═══════════════════════════════════════════════════
   17. GUIDANCE ENGINE v1 — RECOMMENDED NEXT STAGE
═══════════════════════════════════════════════════ */
.elg-ip-next-stage { border-left:3px solid #854F0B !important; border-radius:0 8px 8px 0 !important; padding:9px 13px !important; margin-bottom:12px !important; }
.elg-ip-next-kicker { font-size:9px !important; font-weight:900 !important; text-transform:uppercase !important; letter-spacing:0.09em !important; color:#777469 !important; margin-bottom:4px !important; }
.elg-ip-next-head   { margin-bottom:4px !important; }
.elg-ip-next-badge  { font-size:14px !important; font-weight:900 !important; letter-spacing:0.04em !important; line-height:1 !important; }
.elg-ip-next-good   { font-size:12px !important; font-weight:900 !important; color:#0F6E56 !important; margin-bottom:4px !important; }
.elg-ip-next-reason { font-size:11px !important; font-weight:700 !important; color:#1f2f46 !important; line-height:1.55 !important; }

/* ═══════════════════════════════════════════════════
   18. EMPTY STATES
═══════════════════════════════════════════════════ */
.elg-os-empty, .elg-os-empty-mini { padding:14px !important; border-radius:10px !important; background:#ffffff !important; border:1px dashed rgba(34,58,95,0.18) !important; color:#5c6879 !important; font-size:13px !important; }
.elg-os-empty strong { display:block !important; color:#1f2f46 !important; margin-bottom:4px !important; }

/* ═══════════════════════════════════════════════════
   19. STUDENT FALLBACK
═══════════════════════════════════════════════════ */
.elg-dash-grid  { display:grid !important; grid-template-columns:1fr 1fr !important; gap:14px !important; padding:15px !important; }
.elg-dash-card  { background:#ffffff !important; padding:16px !important; border-radius:14px !important; border:1px solid rgba(34,58,95,0.14) !important; box-shadow:0 8px 22px rgba(15,36,96,0.08) !important; }
.elg-card-title { font-size:16px !important; font-weight:900 !important; color:#1f2f46 !important; margin-bottom:6px !important; }
.elg-card-text  { font-size:13px !important; color:#667386 !important; line-height:1.45 !important; }
.elg-mini-list  { display:grid !important; gap:7px !important; margin-top:10px !important; }
.elg-mini-item  { display:block !important; font-size:13px !important; font-weight:700 !important; color:#0b63b6 !important; text-decoration:none !important; }

/* ═══════════════════════════════════════════════════
   20. RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width:1180px) {
  .elg-os-layout { grid-template-columns:230px minmax(0,1fr) !important; }
  .elg-os-alert-rail { grid-column:1 / -1 !important; border-top:1px solid rgba(34,58,95,0.10) !important; }
  .elg-os-kpi-strip { grid-template-columns:repeat(2,1fr) !important; }
}
@media (max-width:860px) {
  .elg-os-hero { flex-direction:column !important; align-items:flex-start !important; gap:12px !important; }
  .elg-identity { text-align:left !important; min-width:100% !important; }
  .elg-id-wrap  { width:100% !important; }
  .elg-id-dropdown { left:0 !important; right:auto !important; width:100% !important; }
  .elg-os-layout { grid-template-columns:1fr !important; }
  .elg-os-rail  { border-right:0 !important; border-bottom:1px solid rgba(34,58,95,0.10) !important; }
  .elg-os-scope-bar { flex-direction:column !important; align-items:flex-start !important; }
  .elg-os-kpi-strip { grid-template-columns:1fr !important; }
  .elg-os-chapter-row { grid-template-columns:36px minmax(0,1fr) !important; }
  .elg-os-stage-strip, .elg-os-row-actions { grid-column:2 / -1 !important; }
  .elg-dash-grid { grid-template-columns:1fr !important; }
}
@media (max-width:520px) {
  .elg-premium-dashboard, .elg-academic-os { margin:10px 6px 14px !important; }
  .elg-dash-title { font-size:20px !important; }
  .elg-os-main, .elg-os-rail, .elg-os-alert-rail { padding:12px !important; }
}

/* ═══════════════════════════════════════════════════
   21. STAGE DATA NOTE COLOURS  (new in v7.9)
       .elg-ip-note-real    — green, real data connected
       .elg-ip-note-missing — muted italic, not connected
═══════════════════════════════════════════════════ */
.elg-ip-note-real {
  color: #085041 !important;
  font-style: normal !important;
  font-weight: 700 !important;
}
.elg-ip-note-missing {
  color: #8a95a5 !important;
  font-style: italic !important;
}

/* ═══════════════════════════════════════════════════
   22. NOT-CONFIGURED STAGE ROWS  (new in v8.0)
       Stages where totalslots = 0 (no automatic
       activities) are shown with a dashed track and
       an em-dash instead of a percentage.
       This is not a failure — it means the stage has
       no tracked activities yet.
═══════════════════════════════════════════════════ */
.elg-ip-stage-unconfigured .elg-ip-stage-name {
  color: #a0aab4 !important;
}
.elg-ip-stage-track-empty {
  background: transparent !important;
  border: 1px dashed rgba(34,58,95,0.20) !important;
  border-radius: 999px !important;
}
.elg-ip-stage-na {
  font-size: 11px !important;
  color: #a0aab4 !important;
  min-width: 30px !important;
  text-align: right !important;
  font-style: normal !important;
}

/* =====================================================
   END: ELG DASHBOARD STYLESHEET v8.0 FINAL
===================================================== */
/* =====================================================
   ELG DASHBOARD — CSS UPDATE v8.0 → v9.1
   ADD THIS TO THE END OF dashboard.css v8.0 FINAL
   
   NEW STYLES FOR PHASE 8 COMMAND ACTIONS:
   - Command Actions Panel
   - Modal System
   - Form Elements
   - Toast Notifications
===================================================== */

/* ═══════════════════════════════════════════════════
   COMMAND ACTIONS PANEL (NEW v9.1)
═══════════════════════════════════════════════════ */
.elg-command-panel {
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
  border: 1px solid rgba(34, 58, 95, 0.14) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 7px 18px rgba(15, 36, 96, 0.07) !important;
}

.elg-command-title {
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #777469 !important;
  margin: 0 0 12px 0 !important;
}

.elg-command-buttons {
  display: grid !important;
  gap: 8px !important;
}

.elg-command-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: #f8f9fb !important;
  border: 1px solid rgba(34, 58, 95, 0.18) !important;
  color: #1f2f46 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  text-align: left !important;
}

.elg-command-btn:hover {
  background: #eef3f8 !important;
  border-color: rgba(34, 58, 95, 0.3) !important;
  transform: translateX(2px) !important;
}

.elg-command-btn i {
  font-size: 16px !important;
  color: #0b72bf !important;
}

.elg-command-btn-warning {
  background: rgba(255, 230, 109, 0.12) !important;
  border-color: rgba(255, 230, 109, 0.3) !important;
  color: #854F0B !important;
}

.elg-command-btn-warning:hover {
  background: rgba(255, 230, 109, 0.22) !important;
  border-color: rgba(255, 230, 109, 0.4) !important;
}

.elg-command-btn-warning i {
  color: #BA7517 !important;
}

/* ═══════════════════════════════════════════════════
   MODAL SYSTEM (NEW v9.1)
═══════════════════════════════════════════════════ */
.elg-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
  padding: 20px !important;
  animation: modalFadeIn 0.2s ease !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.elg-modal-container {
  background: white !important;
  border: 0.5px solid rgba(34, 58, 95, 0.12) !important;
  border-radius: 16px !important;
  max-width: 520px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2),
              0 12px 32px rgba(0, 0, 0, 0.15) !important;
  animation: modalSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.elg-modal-header {
  padding: 20px 24px !important;
  border-bottom: 0.5px solid rgba(34, 58, 95, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.elg-modal-title {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #1f2f46 !important;
}

.elg-modal-close {
  background: transparent !important;
  border: none !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #8a95a5 !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.elg-modal-close:hover {
  background: rgba(34, 58, 95, 0.08) !important;
  color: #1f2f46 !important;
}

.elg-modal-body {
  padding: 24px !important;
}

.elg-modal-footer {
  padding: 16px 24px !important;
  border-top: 0.5px solid rgba(34, 58, 95, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

/* ═══════════════════════════════════════════════════
   FORM ELEMENTS (NEW v9.1)
═══════════════════════════════════════════════════ */
.elg-form-group {
  margin-bottom: 18px !important;
}

.elg-form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.elg-form-label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1f2f46 !important;
  margin-bottom: 6px !important;
}

.elg-form-input,
.elg-form-textarea {
  width: 100% !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  color: #1f2f46 !important;
  background: white !important;
  border: 0.5px solid rgba(34, 58, 95, 0.18) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.elg-form-input:hover,
.elg-form-textarea:hover {
  border-color: rgba(34, 58, 95, 0.3) !important;
}

.elg-form-input:focus,
.elg-form-textarea:focus {
  outline: none !important;
  border-color: #0b72bf !important;
  box-shadow: 0 0 0 3px rgba(11, 114, 191, 0.1) !important;
}

.elg-form-textarea {
  resize: vertical !important;
  min-height: 80px !important;
  line-height: 1.5 !important;
}

.elg-form-input::placeholder,
.elg-form-textarea::placeholder {
  color: #8a95a5 !important;
}

.elg-form-checkbox {
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  user-select: none !important;
}

.elg-form-checkbox input[type="checkbox"] {
  margin: 0 8px 0 0 !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
}

.elg-form-checkbox span {
  font-size: 13px !important;
  color: #1f2f46 !important;
}

/* ═══════════════════════════════════════════════════
   MODAL BUTTONS (NEW v9.1)
═══════════════════════════════════════════════════ */
.elg-modal-btn {
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
}

.elg-modal-btn-cancel {
  background: white !important;
  color: #1f2f46 !important;
  border: 0.5px solid rgba(34, 58, 95, 0.18) !important;
}

.elg-modal-btn-cancel:hover {
  background: rgba(34, 58, 95, 0.06) !important;
  border-color: rgba(34, 58, 95, 0.3) !important;
}

.elg-modal-btn-primary {
  background: linear-gradient(135deg, #0b72bf 0%, #0d8f73 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(11, 114, 191, 0.2) !important;
}

.elg-modal-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(11, 114, 191, 0.3) !important;
  transform: translateY(-1px) !important;
}

.elg-modal-btn-primary:active {
  transform: translateY(0) !important;
}

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATIONS (NEW v9.1)
═══════════════════════════════════════════════════ */
.elg-toast {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
              0 4px 12px rgba(0, 0, 0, 0.1) !important;
  z-index: 10001 !important;
  max-width: 400px !important;
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.elg-toast-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.elg-toast-success {
  background: white !important;
  color: #0d8f73 !important;
  border: 1px solid #9fd8c2 !important;
  border-left: 4px solid #0d8f73 !important;
}

.elg-toast-error {
  background: white !important;
  color: #A32D2D !important;
  border: 1px solid #F7C1C1 !important;
  border-left: 4px solid #A32D2D !important;
}

.elg-toast-info {
  background: white !important;
  color: #0b72bf !important;
  border: 1px solid #b7d4f3 !important;
  border-left: 4px solid #0b72bf !important;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE MODAL (NEW v9.1)
═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .elg-modal-container {
    max-width: 100% !important;
    margin: 0 12px !important;
    max-height: calc(100vh - 40px) !important;
  }

  .elg-modal-header,
  .elg-modal-body,
  .elg-modal-footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .elg-form-row {
    grid-template-columns: 1fr !important;
  }

  .elg-toast {
    bottom: 16px !important;
    right: 16px !important;
    left: 16px !important;
    max-width: none !important;
  }
}

/* =====================================================
   END: CSS UPDATE v8.0 → v9.1
===================================================== */
/* =====================================================
   ELG DASHBOARD CSS ADDITIONS - Phase 8 v9.2
   Date: 14-05-2026
   
   NEW COMPONENTS:
   - Hero right section (Term/Week/Status)
   - Term and Week pills
   - System Status indicator
   - Health Status KPI
   - Student multi-select with chips
   - Searchable student list
===================================================== */

/* ══════════════════════════════════════════════════
   HERO RIGHT SECTION
══════════════════════════════════════════════════ */
.elg-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-top: -4px;
}

/* ══════════════════════════════════════════════════
   TERM & WEEK PILLS
══════════════════════════════════════════════════ */
.elg-context-pills {
  display: flex;
  gap: 8px;
  align-items: center;
}

.elg-context-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.elg-term-pill {
  background: linear-gradient(135deg, #0F6E56 0%, #185FA5 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 110, 86, 0.15);
}

.elg-week-pill {
  background: rgba(95, 94, 90, 0.08);
  color: #5F5E5A;
  border: 1px solid rgba(95, 94, 90, 0.12);
}

/* ══════════════════════════════════════════════════
   SYSTEM STATUS INDICATOR
══════════════════════════════════════════════════ */
.elg-system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(15, 110, 86, 0.04);
  border: 1px solid rgba(15, 110, 86, 0.12);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.elg-system-status:hover {
  background: rgba(15, 110, 86, 0.06);
  border-color: rgba(15, 110, 86, 0.18);
}

.elg-status-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  background: #0F6E56;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.15);
}

.elg-status-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #0F6E56;
  border-radius: 50%;
  animation: elg-pulse 2s ease-in-out infinite;
}

@keyframes elg-pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

.elg-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.elg-status-label {
  font-size: 12px;
  font-weight: 600;
  color: #2C2B28;
  line-height: 1;
}

.elg-status-time {
  font-size: 11px;
  color: #5F5E5A;
  line-height: 1;
}

/* ══════════════════════════════════════════════════
   HEALTH STATUS KPI
══════════════════════════════════════════════════ */
.elg-os-kpi-health {
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.elg-health-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.elg-health-score {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.elg-health-max {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.5;
  margin-left: 2px;
}

.elg-health-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: currentColor;
  color: #ffffff;
  opacity: 0.9;
}

/* Health state colors */
.elg-health-excellent {
  color: #0F6E56;
}
.elg-health-excellent .elg-health-label {
  background: #0F6E56;
}
.elg-os-kpi-health:has(.elg-health-excellent) {
  border-color: rgba(15, 110, 86, 0.15);
  background: linear-gradient(135deg, rgba(15, 110, 86, 0.02) 0%, rgba(15, 110, 86, 0.05) 100%);
}

.elg-health-healthy {
  color: #185FA5;
}
.elg-health-healthy .elg-health-label {
  background: #185FA5;
}
.elg-os-kpi-health:has(.elg-health-healthy) {
  border-color: rgba(24, 95, 165, 0.15);
  background: linear-gradient(135deg, rgba(24, 95, 165, 0.02) 0%, rgba(24, 95, 165, 0.05) 100%);
}

.elg-health-moderate {
  color: #854F0B;
}
.elg-health-moderate .elg-health-label {
  background: #854F0B;
}
.elg-os-kpi-health:has(.elg-health-moderate) {
  border-color: rgba(133, 79, 11, 0.15);
  background: linear-gradient(135deg, rgba(133, 79, 11, 0.02) 0%, rgba(133, 79, 11, 0.05) 100%);
}

.elg-health-intervention {
  color: #A32D2D;
}
.elg-health-intervention .elg-health-label {
  background: #A32D2D;
}
.elg-os-kpi-health:has(.elg-health-intervention) {
  border-color: rgba(163, 45, 45, 0.15);
  background: linear-gradient(135deg, rgba(163, 45, 45, 0.02) 0%, rgba(163, 45, 45, 0.05) 100%);
}

.elg-health-critical {
  color: #D32F2F;
}
.elg-health-critical .elg-health-label {
  background: #D32F2F;
}
.elg-os-kpi-health:has(.elg-health-critical) {
  border-color: rgba(211, 47, 47, 0.2);
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.03) 0%, rgba(211, 47, 47, 0.06) 100%);
}

.elg-health-nodata {
  color: #5F5E5A;
}
.elg-health-nodata .elg-health-label {
  background: #5F5E5A;
}
.elg-os-kpi-health:has(.elg-health-nodata) {
  border-color: rgba(95, 94, 90, 0.1);
  background: rgba(95, 94, 90, 0.02);
}

/* ══════════════════════════════════════════════════
   STUDENT MULTI-SELECT
══════════════════════════════════════════════════ */
.elg-student-list-container {
  margin-top: 12px;
  padding: 16px;
  background: rgba(15, 110, 86, 0.02);
  border: 1px solid rgba(15, 110, 86, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.elg-student-search {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2C2B28;
  background: #ffffff;
  border: 1px solid rgba(95, 94, 90, 0.2);
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease;
}

.elg-student-search:focus {
  border-color: #0F6E56;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.08);
}

.elg-student-search::placeholder {
  color: rgba(95, 94, 90, 0.5);
}

.elg-student-list {
  margin-top: 12px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(95, 94, 90, 0.12);
  border-radius: 6px;
  padding: 4px;
}

.elg-student-list::-webkit-scrollbar {
  width: 8px;
}

.elg-student-list::-webkit-scrollbar-track {
  background: rgba(95, 94, 90, 0.04);
  border-radius: 4px;
}

.elg-student-list::-webkit-scrollbar-thumb {
  background: rgba(95, 94, 90, 0.2);
  border-radius: 4px;
}

.elg-student-list::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 94, 90, 0.3);
}

.elg-student-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  font-size: 14px;
  color: #2C2B28;
  user-select: none;
}

.elg-student-item:hover {
  background: rgba(15, 110, 86, 0.04);
}

.elg-student-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0F6E56;
  flex-shrink: 0;
}

.elg-student-item span {
  flex: 1;
  line-height: 1.4;
}

.elg-student-list-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(95, 94, 90, 0.5);
  font-size: 13px;
  font-style: italic;
}

/* ══════════════════════════════════════════════════
   SELECTED STUDENT CHIPS
══════════════════════════════════════════════════ */
.elg-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 0;
  transition: min-height 0.2s ease;
}

.elg-selected-chips:empty {
  display: none;
}

.elg-student-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #0F6E56;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 16px;
  line-height: 1;
  animation: elg-chip-in 0.2s ease;
}

@keyframes elg-chip-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.elg-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.elg-chip-remove:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.elg-chip-remove:active {
  transform: scale(0.95);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .elg-hero-right {
    align-items: flex-start;
    margin-top: 16px;
  }

  .elg-context-pills {
    flex-wrap: wrap;
  }

  .elg-system-status {
    width: 100%;
  }

  .elg-student-list {
    max-height: 200px;
  }

  .elg-health-score {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .elg-context-pill {
    font-size: 11px;
    padding: 0 10px;
    height: 26px;
  }

  .elg-system-status {
    padding: 6px 12px;
  }

  .elg-status-label {
    font-size: 11px;
  }

  .elg-status-time {
    font-size: 10px;
  }

  .elg-health-score {
    font-size: 24px;
  }

  .elg-health-label {
    font-size: 10px;
  }

  .elg-student-chip {
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* ══════════════════════════════════════════════════
   ACCESSIBILITY ENHANCEMENTS
══════════════════════════════════════════════════ */
.elg-student-item:focus-within {
  outline: 2px solid #0F6E56;
  outline-offset: 2px;
}

.elg-chip-remove:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .elg-status-indicator::before {
    animation: none;
  }

  .elg-student-chip {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════════════ */
@media print {
  .elg-system-status,
  .elg-student-list-container,
  .elg-chip-remove {
    display: none;
  }

  .elg-context-pills {
    break-inside: avoid;
  }
}

/* === END: ELG Dashboard CSS v9.2 Additions === */
/* ══════════════════════════════════════════════════
   PHASE 8 v9.3 CSS ADDITIONS
   - Enhanced Avg. completion KPI with status badge
   - Intervention Actions section in chapter panels
   - Removed Health Status card styles (no longer used)
══════════════════════════════════════════════════ */

/* ── Enhanced Avg. Completion KPI with Badge ───── */
.elg-os-kpi-completion {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.elg-completion-badge {
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s ease;
}

/* Completion status badge colors */
.elg-completion-excellent {
  background: #0F6E56;
  color: #ffffff;
}

.elg-completion-healthy {
  background: #185FA5;
  color: #ffffff;
}

.elg-completion-stable {
  background: #854F0B;
  color: #ffffff;
}

.elg-completion-intervention {
  background: #A32D2D;
  color: #ffffff;
}

.elg-completion-critical {
  background: #D32F2F;
  color: #ffffff;
  animation: elg-pulse-badge 2s ease-in-out infinite;
}

.elg-completion-nodata {
  background: rgba(95, 94, 90, 0.12);
  color: #5F5E5A;
}

@keyframes elg-pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0);
  }
}

/* ── Intervention Actions Section ──────────────── */
.elg-ip-intervention-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(95, 94, 90, 0.12);
}

.elg-ip-intervention-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2C2B28;
  margin-bottom: 12px;
}

.elg-ip-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.elg-ip-action-btn {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2C2B28;
  background: #ffffff;
  border: 1.5px solid rgba(95, 94, 90, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.elg-ip-action-btn:hover:not(:disabled) {
  background: rgba(15, 110, 86, 0.04);
  border-color: #0F6E56;
  color: #0F6E56;
  transform: translateY(-1px);
}

.elg-ip-action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.elg-ip-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.elg-ip-action-warning {
  border-color: rgba(163, 45, 45, 0.2);
}

.elg-ip-action-warning:hover:not(:disabled) {
  background: rgba(163, 45, 45, 0.04);
  border-color: #A32D2D;
  color: #A32D2D;
}

/* ── Responsive Adjustments ─────────────────────── */
@media (max-width: 768px) {
  .elg-ip-action-grid {
    grid-template-columns: 1fr;
  }

  .elg-completion-badge {
    font-size: 9px;
    padding: 3px 8px;
  }
}

@media (max-width: 480px) {
  .elg-ip-action-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .elg-completion-badge {
    font-size: 8px;
  }
}

/* === END: Phase 8 v9.3 CSS Additions === */
/* ══════════════════════════════════════════════════
   PHASE 8 v9.4 CSS UPDATES
   - Term/Week pills inline with subtitle
   - Updated Term/Week colors (blue/amber)
   - Live Academic Sync as white/glass card
   - Fixed modal select visibility
   - Parent Meeting button in intervention actions
══════════════════════════════════════════════════ */

/* ── Term & Week Pills (Inline with Subtitle) ───── */
.elg-context-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 11px;
  white-space: nowrap;
  margin-left: 8px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.elg-term-pill {
  background: #185FA5;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(24, 95, 165, 0.2);
}

.elg-week-pill {
  background: #F59E0B;
  color: #78350F;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.15);
}

.elg-dash-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

/* ── Live Academic Sync (White/Glass Card) ───────── */
.elg-system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.elg-system-status:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.elg-status-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  background: #0F6E56;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.2);
}

.elg-status-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #0F6E56;
  border-radius: 50%;
  animation: elg-pulse 2s ease-in-out infinite;
}

@keyframes elg-pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

.elg-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.elg-status-label {
  font-size: 12px;
  font-weight: 700;
  color: #0F6E56;
  line-height: 1;
}

.elg-status-time {
  font-size: 11px;
  color: #5F5E5A;
  font-weight: 500;
  line-height: 1;
}

/* ── Modal Select Field Fixes ───────────────────── */
.elg-form-input[type="date"],
.elg-form-input[type="time"],
.elg-form-input.elg-form-input,
select.elg-form-input {
  color: #102033 !important;
  background: #ffffff !important;
  height: auto !important;
  line-height: normal !important;
  padding: 10px 14px;
  font-size: 14px;
  min-height: 42px;
}

select.elg-form-input option {
  color: #102033;
  background: #ffffff;
  padding: 8px;
}

select.elg-form-input:focus {
  outline: none;
  border-color: #0F6E56;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.08);
}

/* ── Enhanced Avg. Completion KPI with Badge ───── */
.elg-os-kpi-completion {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.elg-completion-badge {
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s ease;
}

/* Completion status badge colors */
.elg-completion-excellent {
  background: #0F6E56;
  color: #ffffff;
}

.elg-completion-healthy {
  background: #185FA5;
  color: #ffffff;
}

.elg-completion-stable {
  background: #854F0B;
  color: #ffffff;
}

.elg-completion-intervention {
  background: #A32D2D;
  color: #ffffff;
}

.elg-completion-critical {
  background: #D32F2F;
  color: #ffffff;
  animation: elg-pulse-badge 2s ease-in-out infinite;
}

.elg-completion-nodata {
  background: rgba(95, 94, 90, 0.12);
  color: #5F5E5A;
}

@keyframes elg-pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0);
  }
}

/* ── Intervention Actions Section ──────────────── */
.elg-ip-intervention-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(95, 94, 90, 0.12);
}

.elg-ip-intervention-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2C2B28;
  margin-bottom: 12px;
}

.elg-ip-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.elg-ip-action-btn {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2C2B28;
  background: #ffffff;
  border: 1.5px solid rgba(95, 94, 90, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.elg-ip-action-btn:hover:not(:disabled) {
  background: rgba(15, 110, 86, 0.04);
  border-color: #0F6E56;
  color: #0F6E56;
  transform: translateY(-1px);
}

.elg-ip-action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.elg-ip-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.elg-ip-action-warning {
  border-color: rgba(163, 45, 45, 0.2);
}

.elg-ip-action-warning:hover:not(:disabled) {
  background: rgba(163, 45, 45, 0.04);
  border-color: #A32D2D;
  color: #A32D2D;
}

/* ── Student Multi-Select ──────────────────────── */
.elg-student-list-container {
  margin-top: 12px;
  padding: 16px;
  background: rgba(15, 110, 86, 0.02);
  border: 1px solid rgba(15, 110, 86, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.elg-student-search {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2C2B28;
  background: #ffffff;
  border: 1px solid rgba(95, 94, 90, 0.2);
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease;
}

.elg-student-search:focus {
  border-color: #0F6E56;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.08);
}

.elg-student-search::placeholder {
  color: rgba(95, 94, 90, 0.5);
}

.elg-student-list {
  margin-top: 12px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(95, 94, 90, 0.12);
  border-radius: 6px;
  padding: 4px;
}

.elg-student-list::-webkit-scrollbar {
  width: 8px;
}

.elg-student-list::-webkit-scrollbar-track {
  background: rgba(95, 94, 90, 0.04);
  border-radius: 4px;
}

.elg-student-list::-webkit-scrollbar-thumb {
  background: rgba(95, 94, 90, 0.2);
  border-radius: 4px;
}

.elg-student-list::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 94, 90, 0.3);
}

.elg-student-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  font-size: 14px;
  color: #2C2B28;
  user-select: none;
}

.elg-student-item:hover {
  background: rgba(15, 110, 86, 0.04);
}

.elg-student-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0F6E56;
  flex-shrink: 0;
}

.elg-student-item span {
  flex: 1;
  line-height: 1.4;
}

.elg-student-list-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(95, 94, 90, 0.5);
  font-size: 13px;
  font-style: italic;
}

/* ── Selected Student Chips ────────────────────── */
.elg-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 0;
  transition: min-height 0.2s ease;
}

.elg-selected-chips:empty {
  display: none;
}

.elg-student-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #0F6E56;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 16px;
  line-height: 1;
  animation: elg-chip-in 0.2s ease;
}

@keyframes elg-chip-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.elg-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.elg-chip-remove:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.elg-chip-remove:active {
  transform: scale(0.95);
}

/* ── Responsive Adjustments ─────────────────────── */
@media (max-width: 768px) {
  .elg-context-pill {
    font-size: 10px;
    padding: 0 8px;
    height: 20px;
    margin-left: 6px;
  }

  .elg-system-status {
    padding: 8px 12px;
  }

  .elg-status-label {
    font-size: 11px;
  }

  .elg-status-time {
    font-size: 10px;
  }

  .elg-ip-action-grid {
    grid-template-columns: 1fr;
  }

  .elg-completion-badge {
    font-size: 9px;
    padding: 3px 8px;
  }

  .elg-student-list {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .elg-context-pill {
    font-size: 9px;
    padding: 0 7px;
    height: 18px;
  }

  .elg-system-status {
    padding: 6px 10px;
  }

  .elg-status-label {
    font-size: 10px;
  }

  .elg-status-time {
    font-size: 9px;
  }

  .elg-ip-action-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .elg-completion-badge {
    font-size: 8px;
  }

  .elg-student-chip {
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* ── Accessibility Enhancements ─────────────────── */
.elg-student-item:focus-within {
  outline: 2px solid #0F6E56;
  outline-offset: 2px;
}

.elg-chip-remove:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .elg-status-indicator::before {
    animation: none;
  }

  .elg-student-chip {
    animation: none;
  }

  .elg-completion-critical {
    animation: none;
  }
}

/* ── Print Styles ───────────────────────────────── */
@media print {
  .elg-system-status,
  .elg-student-list-container,
  .elg-chip-remove,
  .elg-ip-intervention-actions {
    display: none;
  }

  .elg-context-pill {
    break-inside: avoid;
  }
}

/* === END: Phase 8 v9.4 CSS Updates === */
/* ══════════════════════════════════════════════════
   PHASE 8 v9.5 CSS UPDATES
   - Toast notifications
   - Modal improvements
   - Intervention action buttons (2x2 grid)
   - All previous v9.4 styles included
══════════════════════════════════════════════════ */

/* ── Toast Notifications ───────────────────────── */
.elg-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: #2C2B28;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transition: bottom 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.elg-toast-show {
  bottom: 32px;
}

.elg-toast-success {
  background: #0F6E56;
}

.elg-toast-error {
  background: #D32F2F;
}

.elg-toast-info {
  background: #185FA5;
}

/* ── Term & Week Pills (Inline with Subtitle) ───── */
.elg-context-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 11px;
  white-space: nowrap;
  margin-left: 8px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.elg-term-pill {
  background: #185FA5;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(24, 95, 165, 0.2);
}

.elg-week-pill {
  background: #F59E0B;
  color: #78350F;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.15);
}

.elg-dash-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

/* ── Live Academic Sync (White/Glass Card) ───────── */
.elg-system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.elg-system-status:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.elg-status-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  background: #0F6E56;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.2);
}

.elg-status-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #0F6E56;
  border-radius: 50%;
  animation: elg-pulse 2s ease-in-out infinite;
}

@keyframes elg-pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

.elg-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.elg-status-label {
  font-size: 12px;
  font-weight: 700;
  color: #0F6E56;
  line-height: 1;
}

.elg-status-time {
  font-size: 11px;
  color: #5F5E5A;
  font-weight: 500;
  line-height: 1;
}

/* ── Modal Select Field Fixes ───────────────────── */
.elg-form-input[type="date"],
.elg-form-input[type="time"],
.elg-form-input.elg-form-input,
select.elg-form-input {
  color: #102033 !important;
  background: #ffffff !important;
  height: auto !important;
  line-height: normal !important;
  padding: 10px 14px;
  font-size: 14px;
  min-height: 42px;
}

select.elg-form-input option {
  color: #102033;
  background: #ffffff;
  padding: 8px;
}

select.elg-form-input:focus {
  outline: none;
  border-color: #0F6E56;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.08);
}

/* ── Enhanced Avg. Completion KPI with Badge ───── */
.elg-os-kpi-completion {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.elg-completion-badge {
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s ease;
}

/* Completion status badge colors */
.elg-completion-excellent {
  background: #0F6E56;
  color: #ffffff;
}

.elg-completion-healthy {
  background: #185FA5;
  color: #ffffff;
}

.elg-completion-stable {
  background: #854F0B;
  color: #ffffff;
}

.elg-completion-intervention {
  background: #A32D2D;
  color: #ffffff;
}

.elg-completion-critical {
  background: #D32F2F;
  color: #ffffff;
  animation: elg-pulse-badge 2s ease-in-out infinite;
}

.elg-completion-nodata {
  background: rgba(95, 94, 90, 0.12);
  color: #5F5E5A;
}

@keyframes elg-pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0);
  }
}

/* ── Intervention Actions Section ──────────────── */
.elg-ip-intervention-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(95, 94, 90, 0.12);
}

.elg-ip-intervention-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2C2B28;
  margin-bottom: 12px;
}

.elg-ip-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.elg-ip-action-btn {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2C2B28;
  background: #ffffff;
  border: 1.5px solid rgba(95, 94, 90, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.elg-ip-action-btn:hover:not(:disabled) {
  background: rgba(15, 110, 86, 0.04);
  border-color: #0F6E56;
  color: #0F6E56;
  transform: translateY(-1px);
}

.elg-ip-action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.elg-ip-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.elg-ip-action-warning {
  border-color: rgba(163, 45, 45, 0.2);
}

.elg-ip-action-warning:hover:not(:disabled) {
  background: rgba(163, 45, 45, 0.04);
  border-color: #A32D2D;
  color: #A32D2D;
}

/* ── Student Multi-Select ──────────────────────── */
.elg-student-list-container {
  margin-top: 12px;
  padding: 16px;
  background: rgba(15, 110, 86, 0.02);
  border: 1px solid rgba(15, 110, 86, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.elg-student-search {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2C2B28;
  background: #ffffff;
  border: 1px solid rgba(95, 94, 90, 0.2);
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease;
}

.elg-student-search:focus {
  border-color: #0F6E56;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.08);
}

.elg-student-search::placeholder {
  color: rgba(95, 94, 90, 0.5);
}

.elg-student-list {
  margin-top: 12px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(95, 94, 90, 0.12);
  border-radius: 6px;
  padding: 4px;
}

.elg-student-list::-webkit-scrollbar {
  width: 8px;
}

.elg-student-list::-webkit-scrollbar-track {
  background: rgba(95, 94, 90, 0.04);
  border-radius: 4px;
}

.elg-student-list::-webkit-scrollbar-thumb {
  background: rgba(95, 94, 90, 0.2);
  border-radius: 4px;
}

.elg-student-list::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 94, 90, 0.3);
}

.elg-student-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  font-size: 14px;
  color: #2C2B28;
  user-select: none;
}

.elg-student-item:hover {
  background: rgba(15, 110, 86, 0.04);
}

.elg-student-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0F6E56;
  flex-shrink: 0;
}

.elg-student-item span {
  flex: 1;
  line-height: 1.4;
}

.elg-student-list-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(95, 94, 90, 0.5);
  font-size: 13px;
  font-style: italic;
}

/* ── Selected Student Chips ────────────────────── */
.elg-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 0;
  transition: min-height 0.2s ease;
}

.elg-selected-chips:empty {
  display: none;
}

.elg-student-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #0F6E56;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 16px;
  line-height: 1;
  animation: elg-chip-in 0.2s ease;
}

@keyframes elg-chip-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.elg-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.elg-chip-remove:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.elg-chip-remove:active {
  transform: scale(0.95);
}

/* ── Modal Enhancements ────────────────────────── */
.elg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: elg-modal-fade-in 0.2s ease;
}

@keyframes elg-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.elg-modal-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: elg-modal-slide-up 0.3s ease;
}

@keyframes elg-modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.elg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(95, 94, 90, 0.12);
}

.elg-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #2C2B28;
  margin: 0;
}

.elg-modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  font-size: 28px;
  color: #5F5E5A;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.elg-modal-close:hover {
  background: rgba(95, 94, 90, 0.08);
  color: #2C2B28;
}

.elg-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.elg-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid rgba(95, 94, 90, 0.12);
}

.elg-modal-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.elg-modal-btn-cancel {
  background: #ffffff;
  color: #5F5E5A;
  border: 1.5px solid rgba(95, 94, 90, 0.2);
}

.elg-modal-btn-cancel:hover {
  background: rgba(95, 94, 90, 0.04);
  border-color: rgba(95, 94, 90, 0.3);
}

.elg-modal-btn-primary {
  background: #0F6E56;
  color: #ffffff;
  border: 1.5px solid transparent;
}

.elg-modal-btn-primary:hover {
  background: #0D5D49;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 110, 86, 0.2);
}

.elg-modal-btn-primary:active {
  transform: translateY(0);
}

/* ── Form Elements ─────────────────────────────── */
.elg-form-group {
  margin-bottom: 16px;
}

.elg-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2C2B28;
  margin-bottom: 6px;
}

.elg-form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2C2B28;
  background: #ffffff;
  border: 1px solid rgba(95, 94, 90, 0.2);
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease;
}

.elg-form-input:focus {
  border-color: #0F6E56;
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.08);
}

.elg-form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.elg-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.elg-form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.elg-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0F6E56;
}

.elg-form-checkbox span {
  font-size: 14px;
  color: #2C2B28;
}

/* ── Responsive Adjustments ─────────────────────── */
@media (max-width: 768px) {
  .elg-context-pill {
    font-size: 10px;
    padding: 0 8px;
    height: 20px;
    margin-left: 6px;
  }

  .elg-system-status {
    padding: 8px 12px;
  }

  .elg-status-label {
    font-size: 11px;
  }

  .elg-status-time {
    font-size: 10px;
  }

  .elg-ip-action-grid {
    grid-template-columns: 1fr;
  }

  .elg-completion-badge {
    font-size: 9px;
    padding: 3px 8px;
  }

  .elg-student-list {
    max-height: 200px;
  }

  .elg-form-row {
    grid-template-columns: 1fr;
  }

  .elg-modal-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .elg-context-pill {
    font-size: 9px;
    padding: 0 7px;
    height: 18px;
  }

  .elg-system-status {
    padding: 6px 10px;
  }

  .elg-status-label {
    font-size: 10px;
  }

  .elg-status-time {
    font-size: 9px;
  }

  .elg-ip-action-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .elg-completion-badge {
    font-size: 8px;
  }

  .elg-student-chip {
    font-size: 12px;
    padding: 5px 8px;
  }

  .elg-toast {
    font-size: 13px;
    padding: 12px 20px;
  }
}

/* ── Accessibility Enhancements ─────────────────── */
.elg-student-item:focus-within {
  outline: 2px solid #0F6E56;
  outline-offset: 2px;
}

.elg-chip-remove:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .elg-status-indicator::before {
    animation: none;
  }

  .elg-student-chip {
    animation: none;
  }

  .elg-completion-critical {
    animation: none;
  }

  .elg-modal-overlay,
  .elg-modal-container,
  .elg-toast {
    animation: none;
  }
}

/* ── Print Styles ───────────────────────────────── */
@media print {
  .elg-system-status,
  .elg-student-list-container,
  .elg-chip-remove,
  .elg-ip-intervention-actions,
  .elg-modal-overlay,
  .elg-toast {
    display: none;
  }

  .elg-context-pill {
    break-inside: avoid;
  }
}

/* === END: Phase 8 v9.5 CSS Updates === */
/* ══════════════════════════════════════════════════
   PHASE 8 v9.5.1 SAFE FIX
   Only expand OPEN drawers, not closed ones
══════════════════════════════════════════════════ */

/* Open drawers can expand naturally */
.elg-os-intervention-drawer.is-open {
  max-height: none;
  overflow: visible;
}

/* Ensure intervention actions grid is properly laid out */
.elg-ip-intervention-actions {
  display: block;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(95, 94, 90, 0.12);
}

.elg-ip-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
}

/* Ensure all buttons are visible */
.elg-ip-action-btn {
  display: block;
  width: 100%;
}

/* === END: v9.5.1 Safe Fix === */
/* ═══════════════════════════════════════════════════════
   ELG DASHBOARD v9.5.3 - INTERVENTION BUTTONS FIX
   SURGICAL CSS PATCH - Fixes 2x2 grid second row clipping
   Append to /elg_dashboard/styles/dashboard.css
═══════════════════════════════════════════════════════ */

/* Remove height restrictions from intervention panel containers */
.elg-os-intervention-drawer {
  max-height: none;
  overflow: visible;
}

.elg-os-iPanel {
  max-height: none;
  overflow: visible;
}

/* Ensure intervention actions section expands naturally */
.elg-ip-intervention-actions {
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
  margin-bottom: 1.5rem;
}

/* Force action grid to show 2 rows */
.elg-ip-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

/* Ensure buttons are visible and properly sized */
.elg-ip-action-btn {
  min-height: 2.5rem;
  height: auto;
  white-space: normal;
  overflow: visible;
}

/* Ensure panel body doesn't clip content */
.elg-os-intervention-drawer.is-open .elg-os-iPanel {
  padding-bottom: 2rem;
}
/* ═══════════════════════════════════════════════════════
   ELG DASHBOARD v9.5.3 - SINGLE ROW INTERVENTION BUTTONS
   FINAL PATCH - 4 buttons in one row (no clipping issues)
   Append to /elg_dashboard/styles/dashboard.css
═══════════════════════════════════════════════════════ */

/* Single row with 4 columns */
.elg-ip-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Compact button styling */
.elg-ip-action-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  min-height: 2.25rem;
  white-space: nowrap;
}

/* Mobile: allow horizontal scroll if buttons don't fit */
@media (max-width: 768px) {
  .elg-ip-action-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
  }
}

/* Very small screens: stack 2x2 */
@media (max-width: 480px) {
  .elg-ip-action-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    overflow-x: visible;
  }
}

/********************************************************************
 * ELG APE Academic Curriculum Map Strip
 * Version : v1.0.0
 * Date    : 06 July 2026
 ********************************************************************/

.elg-acm-strip{
  margin:10px 0 0 0 !important;
  padding:18px 22px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:22px !important;
  background:linear-gradient(90deg,rgba(240,253,250,.96),rgba(255,251,235,.92),rgba(236,253,245,.96)) !important;
  border:1px solid rgba(15,118,110,.18) !important;
  border-radius:18px !important;
  box-shadow:0 16px 35px rgba(15,23,42,.08) !important;
}

.elg-acm-left{display:flex !important;align-items:center !important;gap:16px !important;}
.elg-acm-icon{width:58px !important;height:58px !important;border-radius:50% !important;display:flex !important;align-items:center !important;justify-content:center !important;background:rgba(20,184,166,.12) !important;color:#0f766e !important;border:1px solid rgba(20,184,166,.35) !important;font-size:26px !important;font-weight:900 !important;}
.elg-acm-title-row{display:flex !important;align-items:center !important;gap:12px !important;flex-wrap:wrap !important;}
.elg-acm-title-row h3{margin:0 !important;font-size:22px !important;line-height:1.1 !important;font-weight:900 !important;color:#0f172a !important;}
.elg-acm-left p{margin:7px 0 0 0 !important;font-size:13px !important;font-weight:800 !important;color:#0f172a !important;}

.elg-acm-status{display:inline-flex !important;align-items:center !important;padding:6px 11px !important;border-radius:999px !important;font-size:12px !important;font-weight:900 !important;}
.elg-acm-status-planned{background:#fef3c7 !important;color:#92400e !important;border:1px solid #fcd34d !important;}

.elg-acm-actions{display:flex !important;align-items:center !important;gap:10px !important;justify-content:flex-end !important;flex-wrap:wrap !important;}
.elg-acm-btn{min-width:112px !important;height:42px !important;padding:0 16px !important;border-radius:10px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;text-decoration:none !important;font-size:14px !important;font-weight:900 !important;border:1px solid transparent !important;white-space:nowrap !important;}
.elg-acm-btn-light{background:rgba(255,255,255,.85) !important;color:#0f172a !important;border-color:rgba(15,118,110,.35) !important;}
.elg-acm-btn-word{background:#ffffff !important;color:#0f172a !important;border-color:rgba(203,213,225,.9) !important;}
.elg-acm-btn-primary{background:linear-gradient(135deg,#059669,#047857) !important;color:#ffffff !important;box-shadow:0 10px 22px rgba(5,150,105,.25) !important;}

@media (max-width:1100px){
  .elg-acm-strip{flex-direction:column !important;align-items:flex-start !important;}
}

.elg-acm-meta{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(95px,1fr)) !important;
  align-items:center !important;
  background:rgba(255,255,255,.30) !important;
  border-radius:14px !important;
}

.elg-acm-meta div{
  padding:6px 18px !important;
  border-left:1px solid rgba(15,23,42,.10) !important;
}

.elg-acm-meta div:first-child{border-left:0 !important;}
.elg-acm-meta span{display:block !important;font-size:12px !important;font-weight:800 !important;color:#64748b !important;margin-bottom:6px !important;}
.elg-acm-meta strong{display:block !important;font-size:14px !important;font-weight:900 !important;color:#0f172a !important;}

/********************************************************************
 * ELG APE Academic Curriculum Strip
 * Professional Layout Override
 * Version : v1.1.0
 * Date    : 06 July 2026
 ********************************************************************/

.elg-acm-strip{
    margin:0 !important;
    padding:18px 28px !important;

    display:grid !important;
    grid-template-columns:1.45fr 0.95fr auto !important;
    align-items:center !important;
    column-gap:34px !important;

    border-radius:0 0 18px 18px !important;
}

.elg-acm-left{
    display:flex !important;
    align-items:center !important;
    gap:18px !important;
}

.elg-acm-icon{
    width:64px !important;
    height:64px !important;
    font-size:28px !important;
}

.elg-acm-title-row{
    margin-bottom:8px !important;
}

.elg-acm-title-row h3{
    font-size:20px !important;
    line-height:1.1 !important;
}

.elg-acm-left p{
    margin:0 !important;
    font-size:14px !important;
    font-weight:800 !important;
    color:#334155 !important;
}

.elg-acm-meta{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    background:transparent !important;
    border-radius:0 !important;
}

.elg-acm-meta div{
    text-align:center !important;
    padding:0 18px !important;
    border-left:1px solid rgba(15,23,42,.08) !important;
}

.elg-acm-meta div:first-child{
    border-left:none !important;
}

.elg-acm-meta span{
    display:block !important;
    font-size:11px !important;
    font-weight:800 !important;
    color:#64748b !important;
    text-transform:uppercase !important;
    letter-spacing:.4px !important;
    margin-bottom:6px !important;
}

.elg-acm-meta strong{
    display:block !important;
    font-size:18px !important;
    font-weight:900 !important;
    color:#0f172a !important;
}

.elg-acm-actions{
    display:grid !important;
    grid-template-columns:repeat(2,170px) !important;
    gap:10px !important;
    justify-content:end !important;
}

.elg-acm-btn{
    height:46px !important;
    min-width:auto !important;
    font-size:15px !important;
}

.elg-acm-btn-primary{
    grid-column:1 / span 2 !important;
}

@media (max-width:1280px){

    .elg-acm-strip{
        grid-template-columns:1fr !important;
        row-gap:18px !important;
    }

    .elg-acm-meta,
    .elg-acm-actions{
        width:100% !important;
    }

    .elg-acm-actions{
        grid-template-columns:1fr 1fr !important;
    }

    .elg-acm-btn-primary{
        grid-column:auto !important;
    }
}

/********************************************************************
 * ELG APE ACM Strip Final Visual Refinement
 * Version : v1.2.0
 * Date    : 06 July 2026
 ********************************************************************/

.elg-acm-strip{
    padding:22px 28px !important;
}

.elg-acm-icon{
    width:48px !important;
    height:48px !important;
    font-size:22px !important;
}

.elg-acm-title-row{
    align-items:center !important;
    gap:14px !important;
    margin-bottom:8px !important;
}

.elg-acm-title-row h3{
    font-size:24px !important;
    line-height:1 !important;
    font-weight:900 !important;
}

.elg-acm-status{
    transform:translateY(-1px) !important;
}

.elg-acm-left p{
    font-size:14px !important;
    font-weight:800 !important;
    color:#243244 !important;
}

.elg-acm-meta strong{
    font-size:16px !important;
    white-space:nowrap !important;
}

.elg-acm-btn{
    height:42px !important;
}