/* ─── Excel Designer Styles for Akademia Formation ─────────────────── */
/* Dark mode, responsive ribbon, overlays, gamification, toasts        */

/* ─── Designer Container ──────────────────────────────────────────── */
.excel-designer-container {
  position: relative;
  width: 100%;
  min-height: 700px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dark .excel-designer-container {
  border-color: #334155;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ─── SpreadJS Designer — Dark Mode Fix ──────────────────────────────── */
/* CRITICAL: Prevent Tailwind dark:text-gray-100 from bleeding into     */
/* SpreadJS Designer. Tailwind sets body color to white in dark mode,    */
/* which SpreadJS elements inherit, causing white-on-white text.         */
/* SpreadJS 19.0.4 uses native dark CSS (designer.dark.min.css) with     */
/* CSS variables (--sjs-color-*). We isolate SpreadJS from Tailwind.     */

/* 1. Color isolation — stop Tailwind body color inheritance */
.dark [class*="gc-designer"],
.dark [class*="gc-spread"] {
  color: var(--sjs-color-foreground, #333333);
}

/* 2. Container dark background (SpreadJS 19.0.4 class names) */
.dark .gc-designer-application-container,
.excel-designer-dark .gc-designer-application-container {
  background: var(--sjs-color-background, #292929) !important;
}

/* 3. Ribbon (SpreadJS 19.0.4 uses .gc-designer-ribbon-*) */
.dark .gc-designer-ribbon-tabs,
.dark .gc-designer-ribbon-tabs-content {
  background: var(--sjs-color-background, #292929) !important;
}
.dark .gc-designer-ribbon-tab-nav-text {
  color: var(--sjs-color-foreground, #ffffff) !important;
}
.dark .gc-designer-ribbon-tab-nav-text.selected {
  color: var(--sjs-color-brand-foreground, #ffffff) !important;
}

/* 4. Ribbon dropdown menus */
.dark .gc-designer-ribbon-dropdown,
.dark [class*="gc-designer-dropdown"],
.dark [class*="gc-dropdown"] {
  background: var(--sjs-color-background, #292929) !important;
  border-color: var(--sjs-color-stroke, #666666) !important;
  color: var(--sjs-color-foreground, #ffffff) !important;
}

/* 5. Formula bar */
.dark [class*="gc-designer-formula"],
.dark [class*="gc-formula"] {
  background: var(--sjs-color-background, #292929) !important;
  color: var(--sjs-color-foreground, #ffffff) !important;
  border-color: var(--sjs-color-stroke, #666666) !important;
}
.dark [class*="gc-designer-formula"] input,
.dark [class*="gc-formula"] input {
  background: var(--sjs-color-background-disabled, #141414) !important;
  color: var(--sjs-color-foreground, #ffffff) !important;
}

/* 6. Name box */
.dark [class*="gc-designer-name"],
.dark [class*="gc-name-box"] {
  background: var(--sjs-color-background-disabled, #141414) !important;
  color: var(--sjs-color-foreground, #ffffff) !important;
  border-color: var(--sjs-color-stroke, #666666) !important;
}

/* 7. Status bar */
.dark [class*="gc-statusBar"],
.dark [class*="gc-status-bar"] {
  background: var(--sjs-color-background, #292929) !important;
  color: var(--sjs-color-foreground-disabled, #b3b3b3) !important;
  border-color: var(--sjs-color-stroke, #666666) !important;
}

/* 8. Tab strip (sheet tabs) */
.dark [class*="gc-tab-strip"] {
  background: var(--sjs-color-background, #292929) !important;
  border-color: var(--sjs-color-stroke, #666666) !important;
}

/* 9. File menu / backstage */
.dark [class*="gc-designer-backstage"],
.dark [class*="gc-backstage"] {
  background: var(--sjs-color-background-disabled, #141414) !important;
  color: var(--sjs-color-foreground, #ffffff) !important;
}

/* 10. Dialog boxes */
.dark [class*="gc-designer-dialog"],
.dark [class*="gc-modal"] {
  background: var(--sjs-color-background, #292929) !important;
  color: var(--sjs-color-foreground, #ffffff) !important;
  border-color: var(--sjs-color-stroke, #666666) !important;
}

/* Dialog boxes */
.dark .gc-designer-dialog,
.dark .gc-modal {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}

/* ─── Responsive Ribbon ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .excel-designer-container {
    min-height: 500px;
  }
  .gc-ribbon-bar .ribbon-group-content {
    flex-wrap: wrap !important;
  }
  .gc-ribbon-bar .ribbon-button-large {
    width: auto !important;
    min-width: 40px !important;
  }
  .gc-ribbon-bar .ribbon-button-large .ribbon-button-text {
    display: none !important;
  }
  .gc-ribbon-bar .ribbon-group-title {
    font-size: 9px !important;
  }
}

@media (max-width: 480px) {
  .excel-designer-container {
    min-height: 400px;
    border-radius: 8px;
  }
  .gc-ribbon-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .gc-ribbon-bar .ribbon-tab {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
}

/* ─── Instruction Overlay ─────────────────────────────────────────── */
/* Now rendered BEFORE the edu-wrapper/designer-container, not inside */
.edf-instruction-overlay {
  position: relative;
  z-index: 20;
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}
.dark .edf-instruction-overlay {
  background: linear-gradient(135deg, #1e293b, #172554);
  border-color: #3b82f6;
}
.edf-instruction-overlay.edf-collapsed {
  max-height: 0 !important;
  padding: 0 18px !important;
  border-bottom: none !important;
  opacity: 0;
}
.edf-instruction-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.edf-instruction-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  flex-shrink: 0;
}
.edf-instruction-header strong {
  flex: 1;
  font-size: 15px;
  color: #1e40af;
}
.dark .edf-instruction-header strong {
  color: #93c5fd;
}
.edf-instruction-actions {
  display: flex;
  gap: 6px;
}
.edf-btn-hint,
.edf-btn-close {
  background: none;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #1e40af;
  transition: background 0.2s;
}
.dark .edf-btn-hint,
.dark .edf-btn-close {
  border-color: #475569;
  color: #93c5fd;
}
.edf-btn-hint:hover { background: #dbeafe; }
.dark .edf-btn-hint:hover { background: #1e3a5f; }
.edf-btn-close {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 8px;
}
.edf-instruction-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}
.dark .edf-instruction-text {
  color: #cbd5e1;
}
.edf-instruction-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
.dark .edf-instruction-steps {
  color: #94a3b8;
}
.edf-instruction-steps .edf-step {
  margin-bottom: 4px;
  padding: 2px 0;
}

/* ─── Formula Breakdown ───────────────────────────────────────────── */
.edf-formula-breakdown {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 50;
  max-width: 380px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-size: 13px;
}
.dark .edf-formula-breakdown {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.edf-breakdown-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: #1e293b;
}
.dark .edf-breakdown-title {
  color: #e2e8f0;
}
.edf-breakdown-formula {
  font-family: 'Consolas', 'Monaco', monospace;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #334155;
}
.dark .edf-breakdown-formula {
  background: #0f172a;
  color: #93c5fd;
}
.edf-breakdown-close {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 16px;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
}
.dark .edf-breakdown-close {
  border-color: #475569;
  color: #94a3b8;
}

/* ─── Fallback HTML Spreadsheet ───────────────────────────────────── */
.excel-designer-fallback {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.dark .excel-designer-fallback {
  background: #0f172a;
  border-color: #334155;
}
.edf-toolbar {
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.dark .edf-toolbar {
  background: #1e293b;
  border-color: #334155;
}
.edf-toolbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.edf-toolbar-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  font-style: italic;
}
.dark .edf-toolbar-label { color: #94a3b8; }
.edf-formula-bar {
  flex: 1;
  padding: 7px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  background: #fff;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
}
.edf-formula-bar:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.dark .edf-formula-bar {
  background: #0f172a;
  border-color: #475569;
  color: #f1f5f9;
}
.dark .edf-formula-bar:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}
.edf-table-wrap {
  overflow: auto;
  max-height: 500px;
}
.edf-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}
.edf-col-header,
.edf-row-header {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  position: sticky;
  user-select: none;
}
.dark .edf-col-header,
.dark .edf-row-header {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}
.edf-col-header { top: 0; z-index: 2; }
.edf-row-header { left: 0; z-index: 1; min-width: 36px; }
.edf-cell {
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  min-width: 80px;
  height: 26px;
  cursor: cell;
  transition: box-shadow 0.15s ease;
  outline: none;
  position: relative;
}
.dark .edf-cell {
  border-color: #1e293b;
  color: #e2e8f0;
  background: #0f172a;
}
.edf-cell:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -1px;
  z-index: 1;
}
.edf-cell-selected {
  box-shadow: inset 0 0 0 2px #3b82f6;
  z-index: 1;
}
.edf-cell-locked {
  background: #f8fafc;
  color: #64748b;
  cursor: default;
}
.dark .edf-cell-locked {
  background: #1e293b;
  color: #64748b;
}
.edf-cell-editable {
  background: #eff6ff;
}
.dark .edf-cell-editable {
  background: #172554;
}

/* ─── Cell Highlight Animation ────────────────────────────────────── */
@keyframes edf-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.edf-cell-highlight {
  animation: edf-pulse 0.8s ease-in-out infinite;
}

/* ─── Gamification Score Bar ──────────────────────────────────────── */
.edf-score-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-top: 1px solid #bbf7d0;
  font-size: 13px;
}
.dark .edf-score-bar {
  background: linear-gradient(135deg, #0f172a, #064e3b);
  border-color: #065f46;
}
.edf-score-label {
  font-weight: 600;
  color: #166534;
}
.dark .edf-score-label {
  color: #86efac;
}
.edf-score-progress {
  flex: 1;
  height: 8px;
  background: #d1fae5;
  border-radius: 4px;
  overflow: hidden;
}
.dark .edf-score-progress {
  background: #1e293b;
}
.edf-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.edf-score-points {
  font-weight: 700;
  color: #166534;
  min-width: 60px;
  text-align: right;
}
.dark .edf-score-points {
  color: #86efac;
}

/* ─── Toast Notifications ─────────────────────────────────────────── */
.edf-toast {
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.edf-toast-icon {
  font-size: 18px;
  line-height: 1;
}
.edf-toast-msg {
  line-height: 1.3;
}

/* ─── Exercise Wrapper ────────────────────────────────────────────── */
.edf-exercise-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  transition: border-color 0.3s ease;
}
.dark .edf-exercise-wrapper {
  border-color: #334155;
}
.edf-exercise-wrapper:focus-within {
  border-color: #3b82f6;
}
.edf-exercise-wrapper.edf-completed {
  border-color: #22c55e;
}
.dark .edf-exercise-wrapper.edf-completed {
  border-color: #16a34a;
}

/* ─── Exercise Header ─────────────────────────────────────────────── */
.edf-exercise-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(33,115,70,0.08), rgba(59,130,246,0.08));
  border-bottom: 1px solid #e2e8f0;
}
.dark .edf-exercise-header {
  background: linear-gradient(135deg, rgba(33,115,70,0.15), rgba(59,130,246,0.15));
  border-color: #334155;
}
.edf-exercise-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #217346;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 16px;
}
.edf-exercise-title {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
}
.dark .edf-exercise-title {
  color: #e2e8f0;
}
.edf-exercise-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.edf-badge-formula { background: #dbeafe; color: #1e40af; }
.dark .edf-badge-formula { background: #1e3a5f; color: #93c5fd; }
.edf-badge-ribbon { background: #dcfce7; color: #166534; }
.dark .edf-badge-ribbon { background: #064e3b; color: #86efac; }
.edf-badge-format { background: #fef3c7; color: #92400e; }
.dark .edf-badge-format { background: #451a03; color: #fcd34d; }
.edf-badge-chart { background: #fce7f3; color: #9d174d; }
.dark .edf-badge-chart { background: #500724; color: #f9a8d4; }

/* ─── Exercise Toolbar ────────────────────────────────────────────── */
.edf-exercise-toolbar {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
}
.dark .edf-exercise-toolbar {
  background: #0f172a;
  border-color: #1e293b;
}
.edf-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
}
.dark .edf-toolbar-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
.edf-toolbar-btn:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
  color: #1e40af;
}
.dark .edf-toolbar-btn:hover {
  background: #334155;
  border-color: #60a5fa;
  color: #93c5fd;
}
.edf-toolbar-btn-primary {
  background: #217346;
  border-color: #217346;
  color: #fff;
}
.edf-toolbar-btn-primary:hover {
  background: #185c37;
  border-color: #185c37;
  color: #fff;
}

/* ─── Print ───────────────────────────────────────────────────────── */
@media print {
  .edf-instruction-overlay,
  .edf-toast,
  .edf-exercise-toolbar,
  .edf-score-bar {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* ─── ExcelDesignerUI Wrapper (edu-*) ────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════ */

/* ─── Wrapper ────────────────────────────────────────────────────── */
.edu-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  background: #fff;
}
.dark .edu-wrapper {
  border-color: #334155;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  background: #0f172a;
}
.edu-wrapper:focus-within {
  border-color: #22c55e;
  box-shadow: 0 4px 24px rgba(34,197,94,0.12);
}

/* ─── Toolbar ────────────────────────────────────────────────────── */
.edu-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f0fdf4, #f8fafc);
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.dark .edu-toolbar {
  background: linear-gradient(135deg, #0a1628, #1e293b);
  border-color: #334155;
}
.edu-toolbar-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.dark .edu-toolbar-title {
  color: #e2e8f0;
}
.edu-toolbar-spacer {
  flex: 1;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.edu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.edu-btn-ghost {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
}
.dark .edu-btn-ghost {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
.edu-btn-ghost:hover {
  background: #f1f5f9;
  border-color: #22c55e;
  color: #166534;
}
.dark .edu-btn-ghost:hover {
  background: #334155;
  border-color: #22c55e;
  color: #86efac;
}
.edu-btn-primary {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.edu-btn-primary:hover {
  background: #16a34a;
  border-color: #16a34a;
}

/* ─── Body (container holder) ────────────────────────────────────── */
.edu-body {
  position: relative;
}

/* ─── Fullscreen button ──────────────────────────────────────────── */
.edu-btn-fullscreen {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 30;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  cursor: pointer;
  color: #475569;
  transition: all 0.2s ease;
  padding: 0;
}
.dark .edu-btn-fullscreen {
  background: rgba(30,41,59,0.9);
  border-color: #334155;
  color: #94a3b8;
}
.edu-btn-fullscreen:hover {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}
.dark .edu-btn-fullscreen:hover {
  background: #064e3b;
  border-color: #22c55e;
  color: #86efac;
}

/* ─── Progress badge ─────────────────────────────────────────────── */
.edu-progress-badge {
  position: absolute;
  top: 8px;
  right: 50px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: 1px solid #e2e8f0;
  color: #475569;
}
.dark .edu-progress-badge {
  background: rgba(30,41,59,0.9);
  border-color: #334155;
  color: #94a3b8;
}

/* ─── Resize handle ──────────────────────────────────────────────── */
.edu-resize-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12px;
  cursor: ns-resize;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  transition: background 0.2s ease;
}
.dark .edu-resize-handle {
  background: #1e293b;
  border-color: #334155;
}
.edu-resize-handle:hover {
  background: #f0fdf4;
}
.dark .edu-resize-handle:hover {
  background: #064e3b;
}
.edu-resize-grip {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}
.dark .edu-resize-grip {
  background: #475569;
}
.edu-resize-handle:hover .edu-resize-grip {
  background: #22c55e;
}

/* ─── Fullscreen — CSS fallback ──────────────────────────────────── */
.edu-fullscreen-fallback {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  border: none !important;
}
.edu-fullscreen-fallback .edu-body > *:first-child {
  height: calc(100vh - 52px) !important;
}

/* ─── Fullscreen — native API ────────────────────────────────────── */
.edu-wrapper:fullscreen {
  border-radius: 0;
  border: none;
}
.edu-wrapper:fullscreen .edu-body > *:first-child {
  height: calc(100vh - 52px) !important;
}

/* ─── Responsive (<768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  .edu-toolbar {
    padding: 8px 12px;
    gap: 6px;
  }
  .edu-toolbar-title {
    width: 100%;
    max-width: none;
    margin-bottom: 4px;
  }
  .edu-toolbar-spacer {
    display: none;
  }
  .edu-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11px;
  }
  .edu-body > *:first-child {
    width: 100vw !important;
    border-radius: 0 !important;
  }
  .edu-wrapper {
    border-radius: 0;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }
  .edu-progress-badge {
    right: 44px;
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ─── Animations ─────────────────────────────────────────────────── */
@keyframes edu-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.edu-wrapper {
  animation: edu-fade-in 0.4s ease-out;
}
