/* Friendly daily missions, a factual calendar, and family reward rules. */
:root{--teal:#168b70;--teal-light:#def5e9;--bg:#f3f7fc;--border:#dce5ef;--shadow:0 4px 0 rgba(51,79,103,.035)}
body{background:linear-gradient(150deg,#f4f9fe,#f1f8f4);background-attachment:fixed}
.logo{background:#245b88;color:#ffe287;box-shadow:0 4px 0 #1b496f}
.brand strong{font-weight:850}.topbar{padding:22px 0 18px}.main-nav{background:#e3ebf1}.nav.active{box-shadow:0 3px 0 #d0dce5}
.card{border-radius:22px}.button{border-width:2px;border-radius:14px;transition:transform .12s,background .12s}.button.primary{background:#158d6b;border-color:#158d6b;box-shadow:0 4px 0 #0f7055}.button.primary:hover{background:#137e60}.button.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #0f7055}.button:focus-visible,.calendar-day:focus-visible,.parent-menu-item:focus-visible,.text-button:focus-visible{outline:3px solid #2768aa;outline-offset:3px}
.profile{padding:14px 20px;border-radius:18px}.profile.selected{border-color:#3485a1;background:#f8fdff}.profile-switch{margin:18px 0}.hero h1{font-weight:850}.eyebrow{text-transform:none;letter-spacing:.025em;font-size:14px}
.guided-hero{margin:16px 0}.guided-hero h1{font-size:32px}.guided-start-card{background:#fff;border:2px solid #b9d9ce;margin:18px 0 25px;padding:25px}.guided-mark{background:#fff0bd;color:#8b6729;width:58px;height:58px;border-radius:20px;font-size:34px}.guided-start{margin-top:20px;min-height:60px}.guided-start-heading h2{font-size:24px}.guided-progress-label{margin-top:22px}.guided-route-row{padding:16px 20px}.guided-complete{border-color:#8cc9a6;background:#f5fff6}.guided-route-row.is-done{border-color:#aad3bb}
.child-wins{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.win-badge{display:flex;gap:13px;align-items:center;border:2px solid #e6ded1;background:#fff8ed;padding:14px 18px;border-radius:19px}.win-badge>span{font-size:30px}.win-badge b{display:block;font-size:19px;line-height:1.55}.win-badge small{display:block;font-size:13px;color:#7b6b54;margin-top:2px}.star-badge{border-color:#d6e3f3;background:#eef6ff}.star-badge small{color:#56738d}.child-reward{display:flex;gap:16px;align-items:center;background:#fff4d5;border:2px solid #eddaa4;border-radius:18px;padding:16px 20px;margin:14px 0}.child-reward>div{flex:1;min-width:0}.child-reward b{font-size:18px;color:#76552c}.child-reward p{font-size:14px;line-height:1.7;color:#826847;margin:5px 0 0}.child-reward.is-ready{background:#fff2b9;border-color:#e4bd49}.reward-icon{font-size:32px;flex:none}.reward-track{height:7px;border-radius:8px;background:#e9dcba;overflow:hidden;margin-top:12px}.reward-track>span{display:block;height:100%;background:#d9a43b;border-radius:8px}
.parent-hero{margin:16px 0}.parent-hero h1{font-size:32px}.parent-hero-mark{font-size:44px}.progress-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.progress-stat{padding:16px 18px;border:1px solid #cbddea;border-radius:18px;background:#eaf3ff}.progress-stat>span{display:block;font-size:14px;color:#48647b}.progress-stat>b{display:block;font-size:35px;font-weight:850;line-height:1.3;margin-top:8px;color:#284f72}.progress-stat small{font-size:17px;font-weight:650;margin-left:6px}.stat-days{background:#e6f5ed;border-color:#c7e2d2}.stat-days b{color:#246b50}.stat-accuracy{background:#fff6dd;border-color:#eadfbb}.stat-accuracy b{color:#856526}.stat-streak{background:#fff0e7;border-color:#efd6c3}.stat-streak b{color:#a35d38}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:18px;align-items:start}.calendar-card{padding:21px;min-width:0}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 20px}.calendar-toolbar h2{margin:0;font-size:22px}.calendar-toolbar .button{font-size:14px;min-height:42px;padding:7px 12px}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.calendar-weekdays{margin-bottom:8px;text-align:center;color:#62778a;font-weight:700;font-size:14px}.calendar-weekdays>span:last-child{color:#bd6f61}.calendar-day{display:flex;flex-direction:column;justify-content:space-between;align-items:center;min-height:83px;min-width:0;border:1px solid #e0e7ee;border-radius:12px;padding:7px 2px;background:#f7f9fc;color:#788a9a;box-shadow:0 2px 0 #e8edf3;position:relative}.calendar-number{font-size:16px;font-weight:800;line-height:1.3}.calendar-stamp{font-size:21px;line-height:1.2}.calendar-questions{font-size:12px;font-weight:650;line-height:1.3;white-space:nowrap}.calendar-day.started{background:#fff4d3;border-color:#e9d599;color:#846023;box-shadow:0 2px 0 #e4cc8f}.calendar-day.complete{background:#e3f5df;border-color:#a9d3a0;color:#32733c;box-shadow:0 2px 0 #a5cb9c}.calendar-day.complete .calendar-stamp{color:#4b9a40}.calendar-day.future{background:#fbfcfe;border-color:#edf0f5;box-shadow:none;opacity:.6}.calendar-day.is-today .calendar-number{background:#2c6f9a;color:#fff;border-radius:20px;min-width:26px;padding:1px 5px}.calendar-day.selected{outline:3px solid #397da2;outline-offset:1px;z-index:1}.calendar-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:19px;align-items:center;font-size:13px;color:#657c8c}.calendar-legend>span{display:flex;align-items:center;gap:5px}.calendar-legend i{width:12px;height:12px;border-radius:4px;display:inline-block;border:1px solid #d1dce6}.calendar-legend .legend-complete{background:#c7e8be;border-color:#a3c59b}.calendar-legend .legend-started{background:#f9df91;border-color:#e1c77e}.legend-empty{background:#eef1f6}.text-button{border:0;background:none;text-decoration:underline;text-underline-offset:3px;color:#367399;font:inherit;padding:3px;cursor:pointer;margin-left:auto}.calendar-note{font-size:14px;line-height:1.8;color:#637789;margin:14px 2px 24px}
.day-detail{padding:22px;min-width:0}.day-detail-heading{display:flex;gap:13px;align-items:center;margin-bottom:20px}.day-detail-icon{font-size:30px;flex:none}.day-detail-heading h2{font-size:20px;line-height:1.5;margin:0}.day-detail-heading .eyebrow{font-size:14px;margin-bottom:6px;color:#56778e}.day-empty{font-size:16px;color:#728694;line-height:1.9;padding:12px 0 20px}.day-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 21px}.day-metrics>div{padding:13px 12px;border-radius:13px;background:#f1f6fa;text-align:center}.day-metrics b{display:block;font-size:29px;color:#295775}.day-metrics span{display:block;font-size:13px;color:#607a8b}.day-subjects>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid #e5ecf3;padding:12px 0;font-size:15px}.day-subjects small{font-size:13px;color:#688292;flex-basis:100%;padding-left:2px}.subject-mini{padding:4px 8px;border-radius:7px;font-size:13px;background:#edf3f8;color:#547b94}.day-subjects b{margin-left:auto}.metric-note{font-size:14px;color:#60788b;line-height:1.85!important;margin:12px 0!important}.reward-granted{background:#fdf2cb;border-radius:11px;padding:13px;font-size:15px;line-height:1.7;color:#80602c;margin-top:16px}.day-detail [data-reward-grant]{margin-top:15px}
.mastery-card{padding:26px;margin:22px 0}.mastery-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.mastery-heading h2{font-size:24px;margin:0}.mastery-heading .eyebrow{color:#57835a}.mastery-number{white-space:nowrap}.mastery-number b{font-size:43px;color:#3b7f53;font-weight:850}.mastery-number>span{font-size:17px;color:#6a8071}.mastery-track{height:13px;border-radius:15px;overflow:hidden;background:#e9f1e9;margin:19px 0 14px}.mastery-track>span{display:block;height:100%;background:#71b768;border-radius:15px}.mastery-summary{display:flex;flex-wrap:wrap;gap:22px;font-size:14px;color:#69816b}.mastery-summary b{font-size:17px;color:#426a4a;margin-left:7px}.mastery-chart{display:flex;gap:20px;justify-content:space-around;align-items:stretch;min-height:145px;margin:26px 0 18px;background:linear-gradient(#fff,#f5faf4);border-bottom:1px solid #dce8db;border-radius:13px 13px 0 0;padding:18px 20px 10px}.mastery-column{display:flex;flex-direction:column;align-items:center;min-width:46px;flex:1;max-width:125px}.mastery-column>b{font-size:21px;color:#4b7c52}.mastery-column>b>small{font-size:13px;margin-left:4px;font-weight:500}.mastery-column>span{font-size:13px;color:#6f846f;white-space:nowrap}.mastery-bar-track{height:80px;width:55%;position:relative;display:flex;align-items:flex-end;margin:5px 0 10px}.mastery-bar-track>span{width:100%;background:#8bc07b;border-radius:7px 7px 0 0}.empty-chart{font-size:16px;text-align:center;color:#768975;align-self:center;line-height:1.8}.metric-details{border-top:1px solid #e2e9e2;margin-top:14px;padding-top:13px}.metric-details summary{font-size:15px;color:#5f7a61;cursor:pointer;font-weight:700}.metric-details>p{font-size:14px;color:#647a68;line-height:1.9;margin:12px 0}.mastery-items{padding:0;list-style:none}.mastery-items li{display:flex;gap:12px;justify-content:space-between;padding:10px 0;border-top:1px solid #e6ece5;font-size:14px}.mastery-items b{white-space:nowrap;color:#4e8152}
.parent-reward-card{background:#fff9e9;border-color:#eadcba;margin:22px 0;padding:24px}.reward-overview-top{display:flex;align-items:center;gap:17px}.reward-overview-top>div{flex:1;min-width:0}.reward-overview-top h2{font-size:24px;margin:0 0 7px}.reward-overview-top p{font-size:15px;color:#7c6c4c;line-height:1.7}.reward-overview-top>.button{font-size:15px;background:#fffef8;white-space:nowrap;border-color:#e3d3ad}.reward-overview-progress{display:flex;justify-content:space-between;gap:12px;margin:22px 0 10px;color:#806b38;font-size:15px}.reward-overview-progress b{color:#88712b}.parent-reward-card [data-reward-grant]{margin-top:10px}.parent-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.parent-menu-item{border:1px solid #d7e2ec;box-shadow:0 3px 0 #dfe8ef;border-radius:18px;background:#fff;display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;padding:20px;color:#325770;cursor:pointer}.parent-menu-item>span{font-size:29px}.parent-menu-item>b{font-size:17px}.parent-menu-item>small{font-size:13px;line-height:1.7;color:#708594}.parent-weekend{display:flex;align-items:center;justify-content:space-between;margin:20px 0;padding:10px 4px;font-size:15px;color:#567b77}.parent-data summary{cursor:pointer;font-size:16px;font-weight:700;color:#5d7889}.parent-data .tools{margin:22px 0 15px}.parent-data .button{font-size:14px}
.reward-settings{max-width:780px;margin:22px auto}.reward-toggle{display:flex;align-items:center;gap:12px;font-weight:800;font-size:20px;margin-bottom:24px}.reward-toggle>input{width:23px;height:23px;accent-color:#178b6d}.reward-form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}.reward-form-grid>label,.draft-test-meta label{font-size:15px;font-weight:700;color:#41637b}.reward-form-grid input,.reward-form-grid select,.draft-test-meta input,.draft-test-meta select,.answer-format-settings select{display:block;width:100%;min-height:47px;border:1px solid #c4d7e4;border-radius:10px;padding:11px;font:inherit;font-size:16px;color:#28516f;background:#fff;margin:8px 0}.reward-form-grid small{font-size:14px;font-weight:500;color:#768b9a}.reward-presets{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0}.reward-presets>span{font-size:14px;color:#6e7e81;margin-right:4px}.reward-presets>.button{background:#fff8e4;border-color:#e4d3a6;color:#7a632a;font-size:15px}.reward-settings .note{font-size:15px;line-height:1.9;margin:20px 0}.reward-settings #reward-save{margin-top:10px}.reward-history{max-width:780px;margin:22px auto}.reward-history h2{font-size:24px}.reward-history>p{font-size:16px;line-height:1.8;margin:14px 0}.reward-history ul{padding:0;margin:22px 0;list-style:none}.reward-history li{display:flex;gap:18px;align-items:center;border-top:1px solid #e2e9ee;padding:15px 0;font-size:15px}.reward-history li b{flex:1;color:#8b6b28}.reward-history li small{font-size:14px;color:#6b7f8e}.draft-test-meta{margin:0 0 18px}.draft-test-meta .form-row{display:flex;gap:20px;margin-top:14px}.draft-test-meta .form-row>label{flex:1;min-width:0}.answer-format-settings{padding:12px 0;color:#516e83;font-size:14px}.answer-format-settings summary{cursor:pointer;font-weight:700;padding:6px 0}.answer-format-settings p{line-height:1.8}.capture-help p{font-size:15px}.finish-hero h1{font-size:30px}.finish-symbol{background:#fff1c0;color:#b38320}.quiz-shell>.child-wins{margin-bottom:20px}.quiz-shell>.child-reward{margin-bottom:22px}.quiz-card h2{line-height:1.8}.progress>span{display:block;height:100%;background:var(--teal);border-radius:20px}.quiz-meta{margin-top:18px}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235b7d91' stroke-width='2'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;padding-right:35px!important}
@media(max-width:950px){.calendar-layout{grid-template-columns:1fr}.day-detail{margin:0}.day-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.parent-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-day{min-height:86px}.progress-stat>span{font-size:13px}.progress-stat{padding:15px}.progress-stat>b{font-size:31px}}
@media(max-width:650px){.topbar{padding-top:17px}.brand small{display:none}.topright .save-pill{display:none}.nav{font-size:13px;min-height:47px}.guided-hero h1,.parent-hero h1{font-size:27px}.profile{padding:12px}.child-wins{gap:8px;margin:14px 0}.win-badge{padding:12px 10px;gap:8px}.win-badge>span{font-size:25px}.win-badge b{font-size:16px}.win-badge small{font-size:12px;line-height:1.5}.child-reward{padding:14px;gap:10px}.child-reward b{font-size:16px}.child-reward p{font-size:13px}.guided-start-card{padding:21px}.guided-start-heading h2{font-size:21px}.guided-mark{width:48px;height:48px;font-size:29px}.guided-start{font-size:18px!important;min-height:59px}.guided-route-row{padding:15px 12px}.progress-stats{grid-template-columns:1fr 1fr;gap:10px}.progress-stat{padding:15px}.progress-stat>span{font-size:14px}.progress-stat>b{font-size:31px}.parent-hero-mark{font-size:33px}.calendar-card{padding:16px 12px}.calendar-toolbar h2{font-size:20px}.calendar-toolbar .button{font-size:13px;padding:7px 9px}.calendar-weekdays,.calendar-grid{gap:5px}.calendar-day{min-height:72px;border-radius:9px}.calendar-number{font-size:15px}.calendar-stamp{font-size:18px}.calendar-questions{font-size:11px}.calendar-legend{font-size:12px;gap:10px}.text-button{font-size:13px;margin-left:0}.day-detail{padding:20px}.day-metrics{gap:7px}.day-metrics>div{padding:12px 4px}.day-metrics b{font-size:25px}.day-metrics span{font-size:11px}.mastery-card{padding:20px}.mastery-heading{align-items:flex-start}.mastery-heading h2{font-size:20px;line-height:1.6}.mastery-number b{font-size:34px}.mastery-number>span{font-size:14px}.mastery-summary{gap:12px;font-size:13px}.mastery-summary b{font-size:15px;margin-left:4px}.mastery-chart{padding:16px 5px 10px;gap:9px}.mastery-column>span{font-size:12px}.reward-overview-top{flex-wrap:wrap;gap:12px}.reward-overview-top>.button{margin-left:47px}.reward-overview-top h2{font-size:21px}.parent-reward-card{padding:20px}.parent-menu-item{padding:17px;gap:8px}.parent-menu-item>b{font-size:16px}.reward-form-grid{grid-template-columns:1fr}.reward-form-grid small{display:block}.reward-history li{gap:10px;flex-wrap:wrap}.reward-history li small{flex-basis:100%}.reward-settings .note{font-size:14px}.draft-test-meta .form-row{flex-direction:column;gap:10px}.parent-weekend{gap:12px;flex-wrap:wrap}.finish-hero h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){.button{transition:none}}

/* The learner stays in the header; the mission keeps the main stage. */
.topright{flex-shrink:0}.learner-switch{display:block;position:relative;min-width:134px;border:1px solid #cbdce9;border-radius:999px;background:#fff;box-shadow:0 2px 0 #dce7f0;flex:none}.learner-switch:focus-within{outline:3px solid #2768aa;outline-offset:3px}.learner-switch select{display:block;min-height:44px;width:100%;border:0;border-radius:999px;background-color:transparent;color:#284f68;font:inherit;font-size:15px;font-weight:750;cursor:pointer;padding:10px 34px 10px 44px;outline:none}.learner-switch select:disabled{cursor:wait;opacity:.55}.learner-avatar{position:absolute;left:7px;top:7px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#dceef7;color:#28678b;font-weight:850;font-size:16px;pointer-events:none}.learner-avatar-younger{background:#f6e6d3;color:#956132}
@media(max-width:1050px){.topright .save-pill,.topright .date-pill{display:none}}
@media(max-width:650px){.topbar{flex-wrap:wrap;row-gap:12px}.topright{margin-left:auto}.learner-switch{min-width:126px}.learner-switch select{font-size:14px;min-height:44px}.topright .button{min-height:44px}.topbar .brand small{display:none}}
