/* Child navigation reuses the existing purple shell and task actions. */
body.child-learning .app-layout { grid-template-columns: minmax(0, 1fr); }
body.child-learning .view-stack { width: min(100%, 980px); margin: 0 auto; }
body.child-learning .app-nav { position: fixed; inset: auto 12px 0; z-index: 40; display: flex; justify-content: center; gap: 5px; width: min(650px, calc(100% - 24px)); margin: 0 auto; padding: 7px; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--rpg-line); border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 5px 24px #32214f1a; }
body.child-learning main { padding-bottom: 108px; padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
body.child-learning .app-nav button { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; min-height: 54px; padding: 5px; font-size: 12px; }
body.child-learning .app-nav .nav-caption,
body.child-learning .app-nav .nav-note,
body.child-learning [data-nav-view="exam"],
body.child-learning #wrongQuestionNav,
body.child-learning [data-parent],
body.child-learning #subjectModuleTabs,
body.child-learning #englishModuleTabs,
body.child-learning #learningModuleTabs,
body.child-learning #taskCategoryTabs,
body.child-learning .task-filter-toolbar,
body.child-learning .page-context,
body.child-learning #dashboardTaskSummary,
body.child-learning .rpg-subjects,
body.child-learning [data-subject-page="bank"],
body.child-learning [data-english-page="words"],
body.child-learning [data-english-page$="-bank"],
body.child-learning [data-math-page$="-bank"],
body.child-learning [data-minor-page$="-bank"],
body.child-learning [data-shortcut-view] { display: none !important; }
body.child-learning .app-nav button[hidden] { display: none !important; }
body.child-learning #rpgPageDescription:empty { display: none; }
body.child-learning .view[data-view="learning"] > .panel:first-child { margin-top: 0; padding: 22px; }
body.child-learning #taskList > .category-panel { margin: 0 0 26px; }
body.child-learning #taskList > .category-panel + .category-panel { padding-top: 24px; border-top: 2px solid var(--rpg-line); }
body.child-learning #taskList > .category-panel:last-child { margin-bottom: 0; }
body.child-learning .child-task-heading { margin: 0 0 12px; color: var(--rpg-deep); font-size: 17px; }
body.child-learning .task-item { border-left: 0; background: #fff; padding: 15px 0; border: 0; border-bottom: 1px solid var(--rpg-line); border-radius: 0; }
body.child-learning .task-item:last-child { border-bottom: 0; }
body.child-learning .task-item.done { background: #f6faf7; padding-right: 12px; padding-left: 12px; border-radius: 8px; }
body.child-learning .task-item .item-top { gap: 12px; }
body.child-learning .task-item .muted { font-size: 12px; }
body.child-learning .task-item .item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 88px; }
body.child-learning .task-item .item-actions button { width: 88px; min-height: 44px; }
body.child-learning button.child-task-link { display: inline; padding: 0; min-height: 44px; height: auto; margin: 0; border: 0; border-radius: 3px; background: transparent; box-shadow: none; color: var(--rpg-purple); text-align: left; font-size: inherit; font-weight: 650; }
.child-learning-state { padding: 8px 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--rpg-line); }
.child-learning-state h3 { margin: 0 0 5px; font-size: 17px; }
.child-learning-state p { margin: 0; }
.child-learning-state .actions { margin-top: 12px; }
.child-current-assessment { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 13px 16px; border: 1px solid #ddd0ed; border-radius: 10px; background: var(--rpg-tint); }
.child-current-assessment p { margin: 3px 0 0; font-size: 12px; }
.child-current-assessment button { flex: 0 0 auto; margin: 0; }
.child-task-empty { margin: 0; color: var(--rpg-muted); font-size: 13px; }
body.child-learning .view[data-view="dashboard"] { grid-template-columns: minmax(0, 1fr); }
body.child-learning #dashboardPointsSummary { grid-column: 1; grid-row: auto; }
.child-open-approval .item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.child-open-approval .item-actions button { min-height: 44px; }
@media (max-width: 480px) {
  body.child-learning main { width: calc(100% - 24px); }
  body.child-learning .view[data-view="learning"] > .panel:first-child { padding: 18px 15px; }
  .child-current-assessment { flex-wrap: wrap; }
  body.child-learning .task-item .item-top > div:first-child { flex-basis: 0; }
}

body.child-learning #examSetup > .row,
body.child-learning #examScopeHint,
body.child-learning label[for="listeningPack"],
body.child-learning #listeningPack { display: none !important; }
