.checkin-home{display:flex;align-items:center;gap:20px;background:linear-gradient(110deg,#fff0aa,#ffdf81 65%,#ffe8b6);border:1px solid #edce71;border-radius:24px;padding:22px 26px;margin:20px 0 24px;color:#4e3c21}.checkin-home-mark{font-size:43px;flex:none;width:66px;height:66px;border-radius:22px;background:#fff7d3;display:grid;place-items:center}.checkin-home-copy{flex:1;min-width:0}.checkin-eyebrow{font-size:12px;font-weight:600;color:#916326}.checkin-home h2{font-size:24px;margin:5px 0 8px;line-height:1.4}.checkin-home h2 small{font-size:13px;color:#946729;font-weight:500;margin-left:8px}.checkin-home p{margin:0;font-size:15px;color:#6f5735;line-height:1.7}.checkin-home p span{margin:0 12px}.checkin-home>.btn{flex:none;min-height:48px;background:#ffc628;color:#49330f;border-color:#efb51d}.checkin-page{max-width:1100px;margin:auto}.checkin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}.checkin-heading h1{font-size:32px;margin:8px 0 12px;line-height:1.4}.checkin-heading h1 span{font-size:14px;display:inline-block;background:var(--ui-soft);color:var(--ui-strong);border-radius:10px;padding:7px 12px;font-weight:600;vertical-align:middle;margin-left:10px}.checkin-heading p{font-size:15px;color:#718097;margin:0;line-height:1.7}.checkin-total{text-align:center;flex:none;background:#fff3ce;border-radius:20px;padding:15px 25px}.checkin-total strong{display:block;color:#ad7017;font-size:34px;font-weight:700}.checkin-total span{font-size:12px;color:#906b39}.checkin-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin-bottom:24px}.checkin-day{display:flex;flex-direction:column;align-items:center;gap:9px;padding:15px 6px;border-radius:17px;background:#fff;border:1px solid #e3e8ef;color:#7b899d}.checkin-day>span{font-size:13px}.checkin-day>b{font-size:25px;line-height:1.3;font-weight:500}.checkin-day small{font-size:12px}.checkin-day.today{border:2px solid #efbd38;padding:14px 5px;color:#966518}.checkin-day.done{background:#e6f5ed;border-color:#b8ddcd;color:#247d61}.checkin-task{background:#fff;border:1px solid #dde5ee;border-radius:24px;overflow:hidden;margin:22px 0}.checkin-task>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px 24px;background:#eef7ff}.checkin-task.review>header{background:#f0eaff}.checkin-task>header>div{display:flex;align-items:center;gap:12px}.checkin-task-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#ffffffa8;font-size:24px}.checkin-task h2{font-size:21px;margin:0;color:#34445a}.checkin-task h2 small{font-size:14px;font-weight:600;color:#7a89a1;margin-left:14px}.checkin-task header .btn{font-size:13px;min-height:44px}.checkin-words{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:22px 24px 10px}.checkin-word{text-align:left;padding:15px 14px;min-height:125px;border:1px solid #e3e8ef;border-radius:16px;background:#fcfdff;display:flex;flex-direction:column;gap:10px;cursor:pointer;color:#3a4b63;font-family:inherit}.checkin-word:hover{border-color:var(--ui-primary)}.checkin-word.done{background:#edf8f2;border-color:#bfe0d0}.checkin-word:disabled{cursor:default;background:#f5f5f5;color:#8b93a1}.checkin-word-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;width:100%}.checkin-word-top strong{font-size:18px;line-height:1.4;font-weight:600;overflow-wrap:anywhere;min-width:0}.checkin-word-top b{font-size:18px;color:#c29547;font-weight:500}.checkin-word.done b{color:#26816b}.checkin-word-meaning{font-size:13px;line-height:1.5}.checkin-word small{font-size:10px;line-height:1.5;color:#8996a8;margin-top:auto}.checkin-word em{font-size:11px;font-style:normal;color:#986b40}.checkin-task-note{font-size:12px;color:#8090a5;padding:6px 24px 20px;margin:0;line-height:1.8}.checkin-task-empty{font-size:14px;color:#8390a2;padding:20px 24px 6px;margin:0;line-height:1.8}.checkin-finish{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px;background:var(--ui-soft);border-radius:23px;border:1px solid var(--ui-border);margin:24px 0}.checkin-finish h2{font-size:21px;margin:0 0 8px;color:var(--ui-ink)}.checkin-finish p{font-size:14px;color:var(--ui-muted);margin:0}.checkin-finish .btn{min-height:50px;flex:none}.checkin-celebration{background:#def3e9;border:1px solid #aed9c7;color:#24755b;padding:20px 24px;border-radius:20px;margin:20px 0;font-size:17px;font-weight:600;line-height:1.6}.checkin-rules{font-size:12px;color:#8492a5;line-height:1.9;margin:22px 0}.checkin-rules summary{cursor:pointer;padding:12px 0;min-height:44px}.checkin-error{padding:15px 18px;color:#a04b3b;background:#fff0e9;border-radius:14px;font-size:14px;line-height:1.7}.checkin-empty{padding:40px 25px;border-radius:24px;background:#fff;color:#718097;line-height:1.9}.checkin-empty .btn{display:block;margin-top:18px}
@media(max-width:1100px){.checkin-words{grid-template-columns:repeat(3,minmax(0,1fr))}.checkin-home{gap:15px;padding:20px}.checkin-home-mark{width:56px;height:56px;font-size:36px}.checkin-home h2 small{display:block;margin:5px 0 0}.checkin-home p span{margin:0 6px}}
@media(max-width:620px){.checkin-home{flex-wrap:wrap;border-radius:20px;padding:18px;gap:12px}.checkin-home h2{font-size:22px}.checkin-home p{font-size:13px}.checkin-home>.btn{width:100%;margin-top:5px}.checkin-home-copy{flex-basis:calc(100% - 75px)}.checkin-heading{align-items:flex-start}.checkin-heading h1{font-size:27px}.checkin-heading h1 span{display:block;width:fit-content;margin:8px 0 0;font-size:12px}.checkin-total{padding:12px 15px;border-radius:16px}.checkin-total strong{font-size:29px}.checkin-total span{font-size:10px}.checkin-heading p{font-size:13px}.checkin-week{gap:5px}.checkin-day{padding:12px 3px;border-radius:12px;gap:7px}.checkin-day.today{padding:11px 2px}.checkin-day>span,.checkin-day small{font-size:10px}.checkin-day>b{font-size:20px}.checkin-task>header{padding:18px 16px;flex-wrap:wrap}.checkin-task h2{font-size:18px}.checkin-task h2 small{font-size:12px;margin-left:9px}.checkin-task>header>div{gap:9px}.checkin-task-icon{width:34px;height:34px;font-size:20px;border-radius:11px}.checkin-words{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 14px 8px;gap:10px}.checkin-word{padding:14px 12px}.checkin-word-top strong{font-size:17px}.checkin-task-note{padding:8px 16px 17px}.checkin-finish{flex-direction:column;align-items:stretch;padding:20px}.checkin-finish h2{font-size:19px}.checkin-finish .btn{width:100%}.checkin-celebration{font-size:15px;padding:17px}}
.kids-mode .hero.daily-hero{display:block;min-height:0;padding:26px;background:linear-gradient(120deg,var(--ui-soft),#fff6ce);border:1px solid var(--ui-border);overflow:hidden}.daily-hero .hero-copy{max-width:calc(100% - 155px)}.kids-mode .daily-hero h2{font-size:30px;line-height:1.35;margin:10px 0 12px}.daily-hero h2 small{display:block;font-size:13px;font-weight:500;margin-top:7px;color:var(--ui-muted)}.kids-mode .daily-hero p{font-size:14px;line-height:1.7;margin:0 0 9px;color:var(--ui-muted)}.kids-mode .daily-hero p.daily-unit{font-weight:600;color:var(--ui-ink)}.daily-hero .hero-art{width:170px;height:165px;right:4px;top:18px;bottom:auto;pointer-events:none}.daily-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:17px}.daily-history{border:0;background:transparent;font-family:inherit;font-size:12px;color:var(--ui-strong);cursor:pointer;min-height:44px;padding:3px}.daily-hero-tasks{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:24px}.daily-group{display:flex;align-items:center;gap:9px;text-align:left;font-family:inherit;border:1px solid #c5e5d0;border-radius:16px;background:#f0fff3;color:#244d3c;min-height:90px;padding:15px 12px;cursor:pointer;min-width:0;box-shadow:0 3px 0 #264e3c0b}.daily-group.recent{background:#fff6db;border-color:#f2d896;color:#805516}.daily-group.grade{background:#f1ebff;border-color:#d8c7f9;color:#624095}.daily-group:disabled{cursor:default;opacity:1}.daily-group:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 5px 0 #264e3c12}.daily-group-icon{font-size:23px;flex:none}.daily-group-copy{flex:1;min-width:0}.daily-group-copy strong{display:block;font-size:15px;font-weight:650;line-height:1.4}.daily-group-copy small{display:block;font-size:11px;line-height:1.5;margin-top:5px}.daily-group-count{font-size:21px;font-weight:650;flex:none}.checkin-task.grade>header{background:#e9f1ff}.daily-group:focus-visible,.daily-history:focus-visible{outline:3px solid var(--ui-primary);outline-offset:3px}
@media(max-width:1100px){.daily-group{gap:7px;padding:13px 10px}.daily-group-icon{display:none}.daily-group-copy strong{font-size:14px}.daily-group-count{font-size:19px}.daily-hero-tasks{gap:8px}.daily-hero .hero-art{width:145px}.daily-hero .hero-copy{max-width:calc(100% - 125px)}}
@media(max-width:620px){.kids-mode .hero.daily-hero{padding:21px 17px}.kids-mode .daily-hero h2{font-size:28px}.daily-hero .hero-copy{max-width:100%}.daily-hero .hero-art{display:none}.daily-hero-tasks{grid-template-columns:1fr;margin-top:18px;gap:9px}.daily-group{min-height:68px;padding:13px 14px}.daily-group-icon{display:block}.daily-group-copy strong{font-size:16px}.daily-group-copy small{font-size:12px}.daily-group-count{font-size:22px}.daily-hero-actions{gap:7px}.daily-history{font-size:12px}}
.daily-group.mistakes{grid-column:1/-1;background:#fff0df;border-color:#efba7b;color:#914919}.daily-hero .daily-shortages,.daily-hero .daily-reward-note{position:relative;z-index:1;font-size:12px;line-height:1.7;margin:12px 0 0;color:var(--ui-muted)}.daily-hero .daily-mistake-note{font-size:14px;line-height:1.7;margin:12px 0 0;color:#9c4d1a;font-weight:600}.checkin-task.mistakes>header{background:#ffead4}.checkin-word .checkin-rounds,.checkin-word .checkin-priority{display:block;font-size:12px;line-height:1.6;font-style:normal;padding:4px 7px;border-radius:7px;background:#fff0d2;color:#95571b}.checkin-word .checkin-priority{background:#eee5ff;color:#68429c}.map-word-state.is-mistake{color:#b05920;background:#fff1dc}.map-word-state.is-priority{color:#7046a8;background:#f0e8ff}.map-empty .btn{display:flex;width:fit-content;margin:16px auto 0}
.daily-progress{position:relative;z-index:1;padding:20px 22px;background:#ffffffde;border:1px solid var(--ui-border);border-radius:20px;margin:22px 0 12px;color:var(--ui-ink)}
.daily-progress-heading,.daily-progress-caption{display:flex;justify-content:space-between;align-items:center;gap:14px;line-height:1.6}
.daily-progress-heading strong{font-size:17px;font-weight:600}.daily-progress-heading>span{font-size:22px;font-weight:700;color:var(--ui-strong)}
.daily-progress-track{height:14px;background:var(--ui-soft);border-radius:20px;overflow:hidden;margin:13px 0 10px;border:1px solid var(--ui-border)}
.daily-progress-track>span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,var(--ui-primary),#ffab32);transition:width .25s ease}
.daily-progress-caption{font-size:12px;color:var(--ui-muted)}.daily-progress-caption>span:last-child{white-space:nowrap}
.kids-mode .daily-flow-note,.daily-flow-note{position:relative;z-index:1;font-size:13px;line-height:1.8;color:var(--ui-strong);margin:14px 0 8px;overflow-wrap:anywhere}
.daily-plan-card{padding:24px;background:#fff;border:1px solid var(--ui-border);border-radius:24px;margin:22px 0}.daily-plan-card .daily-progress{margin:0 0 20px;background:var(--ui-soft)}
.daily-start-button{min-width:210px;min-height:50px}.daily-plan-card .daily-reward-note,.daily-plan-card .daily-shortages{font-size:12px;line-height:1.8;color:var(--ui-muted);margin:8px 0}
.daily-plan-summary{display:grid;grid-template-columns:1fr auto;gap:6px;padding:13px 0;border-bottom:1px solid #e6eaf0}.daily-plan-summary strong{font-weight:600;color:var(--ui-ink)}.daily-plan-summary p{grid-column:1/-1;margin:0;line-height:1.9}.daily-calendar-heading{font-size:19px;margin:28px 0 16px}
.daily-journey .daily-progress{margin:12px 0 20px}
@media(max-width:620px){.daily-progress{padding:16px;margin:18px 0 10px;border-radius:17px}.daily-progress-heading strong{font-size:15px}.daily-progress-heading>span{font-size:20px}.daily-progress-caption{font-size:11px}.daily-plan-card{padding:18px}.daily-start-button{width:100%}.daily-hero-actions{align-items:stretch}.daily-hero-actions .daily-start-button{min-width:0}.daily-hero-actions .daily-history{width:100%}.daily-flow-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){.daily-progress-track>span{transition:none}}

.checkin-week-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.checkin-week-heading>div{text-align:center}.checkin-week-heading small{display:block;margin-top:5px;color:var(--ui-muted)}.checkin-day{font-family:inherit;cursor:pointer}.checkin-day:disabled{cursor:default;opacity:.45}.checkin-day em{font-size:11px;font-style:normal}.checkin-word-records{background:#fff;border:1px solid var(--ui-border);border-radius:20px;padding:22px;margin:20px 0}.checkin-record-group h3{font-size:16px;margin:18px 0 10px}.checkin-record-group h3 small{font-weight:400;color:var(--ui-muted)}.checkin-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.checkin-record-word{font:inherit;display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;text-align:left;background:#fff8df;border:1px solid #edda9b;border-radius:13px;padding:13px;cursor:pointer;color:var(--ui-ink)}.checkin-record-word span{min-width:0}.checkin-record-word b{font-size:18px;overflow-wrap:anywhere}.checkin-record-word small{display:block;font-size:12px;line-height:1.6;margin-top:4px;color:var(--ui-muted)}.checkin-record-word.done{background:#eef9f3;border-color:#b8decd}.checkin-record-word.done>strong{color:#168260}.checkin-record-word:disabled{opacity:.55;cursor:default}.checkin-ticket-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.checkin-makeup-note{padding:15px;background:#eaf3ff;border-radius:12px;font-size:13px;line-height:1.7}.checkin-record-word:focus-visible,.checkin-day:focus-visible{outline:3px solid #2670bf;outline-offset:2px}@media(max-width:700px){.checkin-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.checkin-week{grid-template-columns:repeat(4,minmax(0,1fr))}.checkin-week-heading{flex-wrap:wrap}.checkin-week-heading>div{order:-1;flex-basis:100%}}

/* Mobile reading and touch spacing for the student experience. */
@media (max-width: 620px) {
  .kids-mode .main { padding-left: 16px; padding-right: 16px; }
  .kids-mode .pagehead h1 { font-size: 24px; line-height: 1.35; }
  .kids-mode .pagehead p, .kids-mode .hello p { font-size: 14px; line-height: 1.7; }
  .kids-mode .course-picker { padding: 16px; gap: 10px; }
  .kids-mode .course-picker p { font-size: 13px; line-height: 1.6; }
  .kids-mode .mastery-progress-caption, .kids-mode .mastery-fragment-footer { font-size: 12px; line-height: 1.6; }
  .kids-mode .mastery-condition { padding: 12px; }
  .kids-mode .task-list { gap: 12px; }
  .kids-mode .task { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 190px; padding: 36px 14px 24px; }
  .kids-mode .task-copy { min-width: 0; }
  .kids-mode .task-title { font-size: 15px; line-height: 1.4; }
  .kids-mode .task-description { padding-right: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
  .kids-mode .task .points, .kids-mode .task .complete-tag { font-size: 11px; }
  .kids-mode .chapter-word-heading select { min-height: 44px; font-size: 13px; }
  .kids-mode .chapter-word-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .kids-mode .chapter-word-strip::-webkit-scrollbar { display: none; }
  .kids-mode .chapter-word-strip .word-strip-item { flex: 0 0 auto; max-width: 150px; min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .kids-mode .chapter-word-strip .word-strip-arrow { flex: 0 0 28px; min-height: 44px; }
  .kids-mode .map-heading p, .kids-mode .map-sheet-head p { font-size: 13px; line-height: 1.6; }
  .kids-mode .map-actionbar { gap: 8px; padding: 8px; }
  .kids-mode .map-actionbar button { min-height: 48px; font-size: 14px; }
  .kids-mode .custom-gift-grid { grid-template-columns: 1fr; gap: 12px; }
  .kids-mode .custom-gift-grid .shop-card { padding: 18px; }
  .kids-mode .custom-gift-grid .shop-card .item-icon { width: 72px; height: 72px; font-size: 34px; }
  .kids-mode .custom-gift-grid .shop-card h3 { font-size: 17px; }
  .kids-mode .custom-gift-grid .shop-card p { min-height: 0; font-size: 13px; line-height: 1.6; }
  .kids-mode .custom-gift-grid .shop-card .btn { min-height: 44px; }
  .kids-mode .reading-unit-lesson { overflow-wrap: anywhere; }
}

/* Keep the student header focused and put settings with the account. */
.account-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.account-tools .server-session-controls { margin-left: auto; }
@media (max-width: 620px) {
  .kids-mode .topbar .top-right { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; }
  .kids-mode .topbar .account-switch { max-width: 65%; padding: 8px 10px; }
  .kids-mode .topbar .top-right > [data-route=wallet] { flex: none; padding: 8px 14px; }
  .account-tools .server-session-controls { width: 100%; margin-left: 0; justify-content: flex-start; }
}

/* Foldable explanations on student pages. */
.student-help { margin: 8px 0 0; color: var(--ui-muted); font-size: 13px; line-height: 1.6; }
.student-help summary { cursor: pointer; color: var(--ui-strong); font-weight: 600; min-height: 32px; padding: 5px 0; }
.student-help p { margin: 6px 0 12px; line-height: 1.7; }
.reward-help { margin: -8px 0 16px; }
.mastery-details { min-width: 0; }
.mastery-details summary { cursor: pointer; padding: 7px 0 10px; font-size: 13px; font-weight: 600; color: #fff; }
.mastery-details .mastery-conditions { margin-bottom: 0; }
.mastery-details:not([open]) { margin-bottom: 8px; }
.student-help summary:focus-visible, .mastery-details summary:focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 620px) {
  .kids-mode .main { padding-top: 14px; padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .kids-mode .topbar { margin-bottom: 20px; }
  .kids-mode .hello { margin-bottom: 18px; }
  .kids-mode .hello h1 { font-size: 25px; line-height: 1.3; }
  .kids-mode .hello p { margin-top: 7px; }
  .kids-mode .course-picker, .kids-mode .mastery-spotlight, .kids-mode .hero.daily-hero { border-radius: 18px; }
  .kids-mode .course-picker { margin-bottom: 14px; }
  .kids-mode .mastery-spotlight.exam-feature { margin-bottom: 16px; gap: 12px; }
  .kids-mode .mastery-heading { margin-bottom: 12px; }
  .kids-mode .mastery-details summary { min-height: 40px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
  .kids-mode .mastery-details summary::after { content: '＋'; font-size: 18px; }
  .kids-mode .mastery-details[open] summary::after { content: '−'; }
  .kids-mode .mastery-details summary::-webkit-details-marker { display: none; }
  .kids-mode .mastery-actions { margin-top: 12px; }
  .kids-mode .task-heading { gap: 10px; }
  .kids-mode .task-heading h2 { font-size: 20px; }
  .kids-mode .task-heading small { font-size: 12px; }
  .kids-mode .nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .kids-mode .nav button { min-height: 56px; }
  .kids-mode .reading-unit-lesson, .kids-mode .checkin-word-records { border-radius: 16px; }
  .kids-mode .reading-unit-row-actions .btn { min-height: 44px; }
}

/* The account menu opens without leaving the current activity. */
.kids-mode .topbar .account-menu { position: relative; min-width: 0; }
.kids-mode .topbar .account-menu > summary { cursor: pointer; list-style: none; user-select: none; }
.kids-mode .topbar .account-menu > summary::-webkit-details-marker { display: none; }
.kids-mode .topbar .account-menu[open] > summary span { display: inline-block; transform: rotate(180deg); }
.kids-mode .account-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 35; width: min(370px, calc(100vw - 56px)); max-height: min(75vh, 680px); overflow-y: auto; padding: 18px; border: 1px solid var(--ui-border); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px #35415b30; }
.kids-mode .account-menu-panel h2 { margin: 0 0 14px; font-size: 18px; }
.kids-mode .account-menu-panel .account-picker { grid-template-columns: 1fr; }
.kids-mode .account-menu-panel .account-choice { padding: 16px; }
.kids-mode .account-menu-panel .account-choice h2 { margin: 0 0 10px; }
.kids-mode .account-choice .grade-tags { max-height: none; overflow: visible; justify-content: center; }
.kids-mode .account-menu-panel .account-tools { align-items: stretch; }
.kids-mode .account-menu-panel .account-tools > .btn { flex: 1 1 120px; min-height: 44px; }
.kids-mode .account-menu-panel .account-tools .server-session-controls { width: 100%; margin: 0; justify-content: flex-start; }
.kids-mode .account-menu > summary:focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 3px; }
@media (max-width: 620px) {
  .kids-mode .topbar .account-menu { flex: 1; }
  .kids-mode .topbar .account-menu > summary { width: fit-content; max-width: 100%; }
  .kids-mode .account-menu-panel { left: 0; right: auto; width: min(370px, calc(100vw - 56px)); }
  .kids-mode .account-picker { grid-template-columns: 1fr; }
}

/* A compact, expandable unit progress card on the adventure page. */
.kids-mode[data-page=home] .dashboard { grid-template-columns: minmax(0, 1fr); }
.home-course-disclosure { margin: 0 0 20px; border-radius: 18px; background: #5636ad; color: #fff; overflow: hidden; }
.home-course-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; min-height: 72px; list-style: none; cursor: pointer; }
.home-course-disclosure > summary::-webkit-details-marker { display: none; }
.home-course-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-course-title > span:first-child { font-size: 24px; }
.home-course-title strong, .home-course-title small { display: block; line-height: 1.5; }
.home-course-title strong { font-size: 16px; overflow-wrap: anywhere; }
.home-course-title small { margin-top: 3px; font-size: 12px; color: #e9e0ff; }
.home-course-toggle::before { content: '展开 ＋'; font-size: 12px; white-space: nowrap; }
.home-course-disclosure[open] .home-course-toggle::before { content: '收起 −'; }
.home-course-disclosure > summary:focus-visible { outline: 3px solid #ffd65b; outline-offset: -4px; border-radius: 16px; }
.kids-mode .home-course-disclosure > .mastery-spotlight { margin: 0; border-radius: 0 0 18px 18px; border-top: 1px solid #ffffff35; box-shadow: none; }
@media (max-width: 620px) {
 .home-course-disclosure { margin-bottom: 16px; }
 .home-course-disclosure > summary { padding: 14px 16px; }
 .home-course-title strong { font-size: 15px; }
 .kids-mode .home-course-disclosure > .mastery-spotlight { margin-bottom: 0; }
}

/* Align each reward and its redemption action as one readable card. */
.kids-mode .custom-gift-grid .shop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.kids-mode .custom-gift-grid .reward-currency { align-self: center; margin-bottom: 12px; }
.kids-mode .custom-gift-grid .item-icon { flex: none; width: 76px; height: 76px; margin: 0 auto; }
.kids-mode .custom-gift-grid .shop-card h3 { margin: 16px 0 7px; overflow-wrap: anywhere; }
.kids-mode .custom-gift-grid .shop-card p { min-height: 0; margin: 0 0 14px; }
.kids-mode .custom-gift-grid .shop-card .fragments { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 10px; max-width: 100%; }
.kids-mode .custom-gift-grid .shop-card > small { display: block; margin: 0 0 14px; line-height: 1.5; }
.kids-mode .custom-gift-grid .shop-card > .btn { width: min(100%, 220px); min-height: 44px; margin-top: auto; }
.kids-mode .custom-gift-grid .shop-card .row { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 12px; margin-top: auto; }
.kids-mode .custom-gift-grid .shop-card .row .btn { width: min(100%, 220px); min-height: 44px; }

/* Daily check-in starts with one focused word card. */
.daily-word-focus { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.daily-word-focus .word-focus-context { margin-top: 4px; }

.checkin-day.makeup-pending{background:#fff3d9;border-color:#efbe61;color:#81510a}
.checkin-day.makeup-expired{background:#f3f1f8;border-color:#d7cce8;color:#6e6284}
/* Due review and weekly memory checks share the existing mobile shell. */
.memory-home-card{border:1px solid var(--ui-border,#dacbfa);border-radius:18px;background:var(--surface,#fff);padding:18px;margin:16px 0}.memory-home-card h3{margin:0;font-size:18px}.memory-home-card p{margin:8px 0;line-height:1.7}.retention-queue{margin:14px 0;line-height:1.6}.retention-queue summary{cursor:pointer;font-weight:600;padding:10px 0}.retention-rows{display:grid;gap:8px;margin:12px 0}.retention-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--stroke,#e1e6ef);border-radius:12px;background:var(--surface,#fff)}.retention-row[hidden]{display:none}.retention-row>div{flex:1;min-width:0}.retention-row small{display:block;font-size:12px;color:var(--text-caption,#71809a);margin-top:4px;overflow-wrap:anywhere}.retention-row>span{font-size:13px;text-align:right}.retention-row b{overflow-wrap:anywhere}.retention-filters{display:flex;gap:12px;flex-wrap:wrap}.retention-filters label{display:grid;gap:6px}.memory-page{max-width:780px;margin:auto}.memory-question{padding:28px;text-align:center}.memory-question progress{width:100%;height:10px;accent-color:var(--ui-primary,#a37be6)}.memory-step{font-size:13px;color:var(--text-caption,#71809a)}.memory-prompt,.memory-answer-word{font-size:28px;font-weight:700;overflow-wrap:anywhere;margin:24px 0}.memory-question form{display:grid;gap:20px;margin:24px 0}.memory-question input{width:100%;box-sizing:border-box;min-height:58px;font-size:24px;text-align:center;border:1px solid var(--stroke,#d6ddea);border-radius:12px;padding:12px;scroll-margin-bottom:160px}.memory-question .memory-tools{display:flex;gap:12px;justify-content:center;margin:24px 0 0;flex-wrap:wrap}.memory-options{display:grid;gap:12px;margin:24px 0}.memory-options button{min-height:52px;white-space:normal}.memory-hint{padding:16px;margin:20px 0;background:var(--ui-soft,#f1eaff);border-radius:12px}.memory-results{text-align:left}.memory-results>p{line-height:1.8}#retention-settings-form{display:grid;gap:16px}#retention-settings-form label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#retention-settings-form select,.retention-filters select{padding:10px;border:1px solid var(--stroke,#d6ddea);border-radius:10px;background:var(--surface,#fff)}.memory-page .card{margin-bottom:16px}@media(max-width:620px){.memory-home-card{padding:16px}.memory-home-card .section-head{gap:12px}.memory-home-card .section-head .btn{font-size:13px;padding:9px 12px}.memory-question{padding:20px 16px}.memory-question h2{font-size:22px}.retention-row{flex-wrap:wrap;gap:10px}.retention-row>div{flex:1 1 52%}.retention-row>.btn{margin-left:auto;min-height:38px}.retention-row>span{font-size:12px}.memory-prompt{font-size:24px}.memory-question input{font-size:22px}}

/* Keep reward notes full width and wrap between meaningful phrases. */
.kids-mode .daily-hero .daily-reward-note, .daily-plan-card .daily-reward-note {
 display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
 width: 100%; max-width: none; min-width: 0; margin: 12px 0 0;
 font-size: 13px; line-height: 1.8; text-align: left;
}
.daily-reward-note > span { white-space: nowrap; }
.daily-reward-note b { font-weight: 600; }
@media(max-width:620px) {
 .kids-mode .daily-hero .daily-reward-note, .daily-plan-card .daily-reward-note { font-size: 12px; }
}
