/* Math Grade 6 Term 1 */
.math-subject-map, .math-unit, .math-lesson { max-width: 720px; margin: 0 auto; padding: 12px 16px 32px; font-family: Cairo, Arial, sans-serif; }
.math-home__header { background: linear-gradient(135deg, #1565C0, #0D47A1); color: #fff; border-radius: 20px; padding: 20px; margin-bottom: 20px; text-align: center; }
.math-home__header h1 { margin: 0 0 8px; font-size: 1.2rem; }
.math-theme__banner { background: var(--theme-color, #1565C0); color: #fff; border-radius: 16px; padding: 12px 16px; text-align: center; margin: 16px 0 12px; }
.math-map-grid { display: flex; flex-direction: column; gap: 12px; }
.math-map-unit { display: block; width: 100%; text-align: inherit; background: #fff; border: 2px solid var(--unit-color, #1565C0); border-radius: 16px; padding: 0; overflow: hidden; cursor: pointer; font-family: inherit; }
.math-map-unit__cover svg { width: 100%; display: block; }
.math-map-unit__body { padding: 12px 14px; }
.math-map-unit__num { font-size: 0.75rem; color: #64748b; }
.math-map-unit__meta { font-size: 0.75rem; color: var(--unit-color); font-weight: 700; }
.math-unit h1 { text-align: center; color: var(--unit-color); }
.math-unit__context { text-align: center; color: #64748b; font-size: 0.9rem; }
.math-unit__path, .math-lesson-node { display: flex; flex-direction: column; gap: 10px; }
.math-lesson-node { flex-direction: row; align-items: center; gap: 12px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 14px; padding: 12px; cursor: pointer; }
.math-lesson-node.is-done { border-color: #10B981; background: #ecfdf5; }
.math-lesson-node.is-locked { opacity: 0.55; cursor: not-allowed; }
.math-lesson-node__icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.math-lesson__header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.math-lesson__icon { font-size: 2.5rem; }
.math-lesson__targets { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; color: #065f46; }
.math-lesson__content { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid #e2e8f0; margin: 12px 0; line-height: 1.7; }
.math-lesson__finish { width: 100%; padding: 14px; background: linear-gradient(135deg, #1565C0, #00695C); color: #fff; border: none; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 16px; font-family: inherit; }
.math-exercise { background: #fff; border: 2px solid #e2e8f0; border-radius: 14px; padding: 16px; margin: 12px 0; }
.math-exercise__q { font-weight: 700; margin: 0 0 12px; }
.math-exercise__opt { display: block; width: 100%; text-align: inherit; padding: 12px; margin: 6px 0; border: 2px solid #e2e8f0; border-radius: 12px; background: #f8fafc; cursor: pointer; font-family: inherit; font-size: 0.95rem; }
.math-exercise__opt.is-correct { border-color: #10B981; background: #ecfdf5; }
.math-exercise__opt.is-wrong { border-color: #ef4444; background: #fef2f2; }
.math-robot-toast { position: fixed; bottom: 24px; right: 24px; background: #fff; border: 2px solid #1565C0; border-radius: 16px; padding: 12px 18px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 9999; animation: math-toast-in 0.3s ease; }
@keyframes math-toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
