/* Public shell only. Child and parent data never enter persistent browser storage. */
.child-page{background:#f3f6fb;color:#183247;min-height:100dvh}
.child-page .button,.child-manager .button{font-size:1rem}
.child-shell{max-width:720px;margin:auto;padding:24px 24px calc(var(--child-nav-height,90px) + 4rem);overflow-wrap:anywhere}
.child-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:32px}
.child-top .brand{font-size:1.7rem}.child-top .brand img{width:36px;height:36px}
.child-top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.child-quiet{background:#fff;border:1px solid #cbd7e5;border-radius:12px;color:#183247;min-height:44px;padding:10px 14px;font:inherit;font-size:.9375rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.child-page h1,.child-manager h1{font-size:2rem;line-height:1.15;letter-spacing:-.04em;margin:8px 0 14px}
.child-page h2,.child-manager h2{font-size:1.25rem;line-height:1.3;margin:0 0 12px}
.child-page h3,.child-manager h3{font-size:1.1rem;line-height:1.35;margin:0 0 8px}
.child-intro{font-size:1rem;color:#52677b;line-height:1.65;margin:0 0 16px}
.child-subtle{font-size:.9375rem;color:#52677b;line-height:1.6;margin:10px 0}
.child-eyebrow{font-size:.9375rem;color:#52677b;font-weight:650;line-height:1.5}
.child-hello{display:flex;gap:16px;align-items:center;justify-content:space-between}
.child-sun{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:50%;background:#ffe588;color:#67521c;font-size:2rem}
.child-section{margin-top:28px}.child-section-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.child-card{padding:22px;background:white;border:1px solid #d7e1ed;border-radius:22px;margin-top:12px;min-width:0}
.child-card p{line-height:1.65;margin:8px 0}.child-card p:last-child{margin-bottom:0}
.child-card.next-task{border-color:#a9bff5}.child-card .child-card-kind{color:#2858d6;font-weight:700;font-size:.9375rem;margin-bottom:10px}
.child-card-link{display:block;text-decoration:none;color:#183247}.child-card-link:hover{border-color:#2858d6}
.child-card-link:focus-visible,.child-tabs a:focus-visible,.child-quiet:focus-visible,.child-manager button:focus-visible,.child-manager input:focus-visible,.child-manager textarea:focus-visible,.child-manager select:focus-visible,.child-page button:focus-visible{outline:3px solid #2858d6;outline-offset:3px}
.child-instructions{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.child-pill{display:inline-block;font-size:.8125rem;font-weight:700;background:#edf2ff;color:#2858d6;padding:5px 10px;border-radius:8px;margin-bottom:8px}
.child-pill.done{color:#215741;background:#ddf1e8}.child-pill.paused{background:#fff0bd;color:#674e0c}
.child-next-label{font-weight:700;color:#2858d6;font-size:.9375rem}
.child-task-time{font-variant-numeric:tabular-nums;font-size:1.25rem;font-weight:750;color:#183247}
.child-event-row{display:flex;gap:16px;flex-wrap:wrap}.child-event-row>div{min-width:0;flex:1 1 170px}
.child-event-row .child-task-time{flex:0 1 auto}
.child-link{display:inline-flex;align-items:center;min-height:44px;color:#2858d6;text-decoration:underline;font-weight:650}
.child-tabs{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,720px);background:white;border-top:1px solid #d7e1ed;display:flex;flex-wrap:wrap;gap:4px;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom))}
.child-tabs a{flex:1 1 25%;min-width:max-content;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:12px;padding:8px;color:#52677b;text-decoration:none;font-size:.9375rem;font-weight:650}
.child-tabs a[aria-current=page]{background:#edf2ff;color:#2858d6}.child-tabs .icon{width:24px;height:24px}
.child-check{display:flex;gap:14px;align-items:flex-start;cursor:pointer;min-height:48px;padding:16px 0;margin-top:10px;border-top:1px solid #d7e1ed}
.child-check input{width:26px;height:26px;accent-color:#2858d6;flex:none;margin:2px 0 0}.child-check strong{display:block}.child-check small{display:block;font-size:.9375rem;color:#52677b;line-height:1.6;margin-top:6px}
.child-support{margin-top:24px}.child-support summary{min-height:48px;padding:12px 0;cursor:pointer;font-weight:650}.child-support p{line-height:1.6;color:#52677b}
.child-wait,.child-login{padding:36px 0;max-width:460px;margin:auto}.child-wait{text-align:center;min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.child-login .brand{margin-bottom:44px}.child-login .button{margin-top:16px;width:100%;min-height:48px}
.child-error{color:#9c2935;background:#fff0f0;border:1px solid #edc2c9;border-radius:14px;padding:14px;line-height:1.6;margin:16px 0;overflow-wrap:anywhere}.child-error:empty{display:none}
.child-toast{position:fixed;z-index:100;bottom:calc(var(--child-nav-height,90px) + 16px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);background:#183247;color:white;border-radius:14px;padding:12px 18px;line-height:1.5;pointer-events:none;opacity:0;transition:opacity .15s}.child-toast.visible{opacity:1}
.child-manager{width:min(720px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;color:#183247;background:#f3f6fb;border-radius:24px;overflow:auto;overscroll-behavior:contain}
.child-manager[open]{display:block}.child-manager::backdrop{background:#18324770}.child-manager-content{padding:24px;overflow-wrap:anywhere}
.child-manager-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:22px}.child-manager-head h2{margin:0;flex:1 1 180px}
.child-manager-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.child-manager-actions .button,.child-manager-actions .child-quiet{width:auto;flex:1 1 160px}
.child-manager form{margin:16px 0}.child-manager label{display:block;line-height:1.5;margin-bottom:16px;font-weight:650}
.child-manager input:not([type=checkbox]),.child-manager select,.child-manager textarea{display:block;width:100%;min-height:48px;background:white;border:1px solid #a7b8ca;border-radius:12px;padding:11px 13px;color:#183247;font:inherit;margin-top:7px}
.child-manager textarea{min-height:130px;resize:vertical}.child-manager input[readonly]{background:#edf2ff;font-size:.875rem}.child-manager input[type=checkbox]{width:24px;height:24px;accent-color:#2858d6}
.child-manager .child-check{display:flex;font-weight:400}.child-field-row{display:flex;gap:16px;flex-wrap:wrap}.child-field-row>label{flex:1 1 180px;min-width:0}
.child-manager button:disabled,.child-page button:disabled{opacity:.6;cursor:wait}.child-manager .danger{color:#9c2935;border-color:#e3b1ba;background:#fff4f5}
.child-manager .child-back{margin-bottom:16px}.child-profile-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.child-profile-row>div{min-width:0;flex:1 1 130px}.child-profile-row h3{margin-bottom:4px}
.child-preview-label{background:#ffe588;border-radius:12px;padding:12px 16px;font-weight:650;line-height:1.5;margin:16px 0}
.child-list-empty{padding:22px;background:white;border:1px dashed #a7b8ca;border-radius:18px;margin-top:16px}.child-list-empty p{margin:8px 0;line-height:1.6}
.child-manager .child-coverage{background:#edf2ff;padding:14px;border-radius:12px;line-height:1.6;margin:16px 0}
.child-enrollment{border:1px solid #b7c9ef;background:#edf2ff;border-radius:16px;padding:18px;margin-top:16px}
.child-manager .child-preview-cards{border:1px solid #b7c9ef;border-radius:16px;padding:16px;margin-top:16px}
.child-large-text #childView{font-size:1.2rem}.child-large-text #childView h1{font-size:2.25rem}.child-large-text #childView h2{font-size:1.5rem}.child-large-text #childView .child-subtle,.child-large-text #childView .child-eyebrow,.child-large-text #childView .child-card-kind{font-size:1.125rem}
@media(max-width:360px){.child-shell{padding-inline:16px}.child-manager-content{padding:18px}.child-card{padding:18px}.child-tabs a{font-size:.875rem}.child-page h1{font-size:1.8rem}}
@media(prefers-reduced-motion:reduce){.child-toast{transition:none}}
@media(forced-colors:active){.child-card,.child-pill,.child-tabs a[aria-current=page],.child-preview-label{border:1px solid CanvasText}}
/* Shared plans keep the next step and the child's choices in the same view. */
.child-plan-card{border-color:#bdcfc9;background:#fbfefc}
.child-plan-label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;color:#365e50;font-size:.875rem;font-weight:700}
.child-plan-label .child-pill{margin:0}
.child-card .child-plan-step{font-size:1.125rem;line-height:1.65;font-weight:600;color:#183247;white-space:pre-wrap}
.child-plan-cue{border-left:3px solid #87b8a4;padding-left:12px;overflow-wrap:anywhere}
.child-plan-focus{border:1px solid #b4cfc2;background:#fbfefc}
.child-plan-focus h2,.child-plan-focus h3{color:#365e50}
.child-plan-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.child-plan-actions .button,.child-plan-actions .child-quiet{min-height:48px;flex:1 1 180px;font-size:1rem;white-space:normal;line-height:1.4}
.child-plan-help,.child-plan-notice{padding:14px 16px;background:#edf2ff;border:1px solid #c4d2f4;border-radius:14px;color:#28447a;line-height:1.65;overflow-wrap:anywhere}
.child-plan-help{background:#fff7df;border-color:#e8d59f;color:#674e0c;font-weight:600}
.child-plan-invitation{display:flex;flex-direction:column;gap:8px;padding:20px;margin-top:16px;border-radius:20px;background:#edf2ff;border:1px solid #bdcdf6;text-decoration:none;color:#183247}
.child-plan-invitation>strong{color:#2858d6;font-size:1.125rem}
.child-plan-invitation .child-link{align-self:flex-start}
.child-plan-reply{border-left:4px solid #87b8a4}
.child-plan-empty{padding:18px;border:1px dashed #bdcfc9;background:#fbfefc;border-radius:16px;color:#52677b;line-height:1.65}
.child-agreements-overview{padding-bottom:26px;margin-bottom:20px;border-bottom:1px solid #cbd7e5}
.child-agreements-overview .child-section-head>div{min-width:0;flex:1 1 200px}
.child-agreements-overview .child-section-head .button{min-height:48px}
.child-manager .child-field-help{display:block;margin-top:6px;color:#52677b;font-size:.9375rem;font-weight:400;line-height:1.55}
.child-manager .child-optional{font-weight:400;color:#52677b}
.child-manager .child-plan-weekdays{padding:0;border:0;margin:0 0 20px;min-inline-size:0}
.child-plan-weekdays legend{font-weight:650;margin-bottom:8px;line-height:1.5}
.child-plan-weekdays>div{display:flex;gap:8px;flex-wrap:wrap}
.child-manager .child-plan-weekdays label{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;border-radius:12px;background:white;border:1px solid #a7b8ca;cursor:pointer;margin:0;font-size:1rem}
.child-manager .child-plan-weekdays input{flex:none;margin:0;width:22px;height:22px}
.child-plan-weekdays label:has(input:checked){background:#edf2ff;border-color:#2858d6;color:#2149b0}
.child-manager #childAgreementForm textarea{min-height:84px}
.child-plan-submit{padding-top:20px;margin-top:22px;border-top:1px solid #cbd7e5}
.child-plan-submit .button{width:100%;min-height:52px;font-size:1rem;white-space:normal}
.child-plan-examples{margin:0 0 20px}
.child-plan-invitation:focus-visible{outline:3px solid #2858d6;outline-offset:3px}
.child-large-text #childView .child-plan-step{font-size:1.35rem}
.child-large-text #childView .child-plan-label{font-size:1.1rem}
.child-large-text #childView .child-plan-actions .button,.child-large-text #childView .child-plan-actions .child-quiet{font-size:1.125rem}
@media(max-width:420px){.child-agreements-overview .child-section-head .button{width:100%}.child-plan-actions .button,.child-plan-actions .child-quiet{flex-basis:100%}.child-plan-weekdays>div{gap:8px}.child-manager .child-plan-weekdays label{padding:10px}}
@media(forced-colors:active){.child-plan-invitation,.child-plan-focus,.child-plan-help,.child-plan-notice,.child-plan-weekdays label:has(input:checked){border:1px solid CanvasText}}
.child-manager-refresh{background:#fff7df;border:1px solid #e8d59f;border-radius:14px;padding:14px;margin:0 0 20px;color:#674e0c;line-height:1.6}
.child-manager-refresh[hidden]{display:none}.child-manager-refresh p{margin:0 0 10px}
.child-manager-refresh .child-quiet{min-height:48px}
.child-plan-review{padding:18px;border:1px solid #c4d2f4;border-radius:18px;background:#edf2ff;margin-top:24px}
.child-plan-review .button{min-height:48px;white-space:normal}
/* Related lists stay one tap apart instead of stacking every plan above schoolwork. */
.child-section-nav{display:flex;gap:8px;margin:20px 0 24px}
.child-section-nav a,.child-section-nav button{flex:1;min-width:0;min-height:52px;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px solid #cbd7e5;border-radius:14px;background:#fff;color:#52677b;font:inherit;font-size:.9375rem;font-weight:650;text-decoration:none;text-align:center;line-height:1.35;cursor:pointer;touch-action:manipulation}
.child-section-nav [aria-current]{background:#edf2ff;border-color:#2858d6;color:#2149b0}
.child-section-nav span{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;border-radius:7px;background:#e8edf5;color:#183247;font-size:.8125rem;font-variant-numeric:tabular-nums}
.child-section-nav a:focus-visible,.child-section-nav button:focus-visible{outline:3px solid #2858d6;outline-offset:3px}
.child-section-nav a:hover,.child-section-nav button:hover{border-color:#2858d6}
.child-section-nav a:active,.child-section-nav button:active{background:#dfe8ff}
.child-profile-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.child-profile-nav button{flex-direction:column;gap:8px;padding:12px 6px;font-size:.875rem;overflow-wrap:normal}
.child-profile-nav-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.child-section-nav+.child-section{margin-top:0}
.child-day-empty{padding:0;margin-top:12px}
.child-large-text #childView .child-section-nav a{font-size:1.125rem;flex-direction:column}
@media(max-width:360px){.child-section-nav a{flex-direction:column;padding:10px 8px}.child-profile-nav button{font-size:.8125rem}}
@media(forced-colors:active){.child-section-nav [aria-current]{outline:2px solid Highlight;outline-offset:-3px}}
/* Short plan summaries lead to full terms and choices in the detail view. */
.child-plan-compact{padding:16px 18px;border-radius:16px;margin-top:10px}
.child-plan-compact .child-plan-label{margin-bottom:8px;font-size:.8125rem}
.child-plan-compact .child-plan-step{font-size:1rem;line-height:1.5;font-weight:500}
.child-plan-compact h2,.child-plan-compact h3{font-size:1.0625rem;margin-bottom:6px}
.child-plan-compact .child-subtle{font-size:.875rem;margin:6px 0}
.child-plan-compact .child-plan-help{padding:8px 10px;font-size:.875rem;margin:8px 0}
.child-plan-review-label{font-size:.875rem;color:#52677b}
.child-plan-compact .child-link{font-size:.875rem}
.child-plan-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}
.child-plan-filters button{flex:1;min-width:74px;gap:6px;min-height:48px;padding:10px 8px;font-size:.9375rem}
.child-plan-filters button[aria-pressed=true]{background:#edf2ff;border-color:#2858d6;color:#2149b0;font-weight:700}
.child-plan-filters span{font-size:.8125rem;font-variant-numeric:tabular-nums}
@media(max-width:360px){.child-plan-filters button{flex-direction:column;gap:2px;overflow-wrap:normal}}
.child-filter-hint{font-size:.875rem}
.child-manager .child-plan-filter-label{margin:18px 0 12px;font-size:.9375rem}
.child-manager .child-plan-filter-label select{font-size:1rem}
.child-plan-discussion{display:block;width:100%;min-height:48px;padding:12px 14px;margin:16px 0 12px;background:#fff7df;border:1px solid #e8d59f;border-radius:12px;color:#674e0c;font:inherit;font-size:.9375rem;line-height:1.5;text-align:left;cursor:pointer}
.child-plan-optional{border-block:1px solid #d7e1ed;margin:8px 0 20px}
.child-plan-optional summary{font-size:.9375rem}
.child-manager .child-plan-optional textarea{min-height:76px}
@media(forced-colors:active){.child-plan-filters button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}}
