/* Account controls share the autumn dashboard's typography and surfaces. */
.settings-jump{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 27px}
.settings-jump button{border:1px solid var(--line);border-radius:99px;background:#fff9;padding:8px 14px;font-size:13px;font-weight:700;color:var(--ink)}
.settings-jump button:hover{background:var(--sage);border-color:#9ccac2}
.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:start}
.settings-column{display:grid;gap:25px;min-width:0}
.settings-panel{background:white;border:1px solid var(--line);border-radius:20px;padding:29px;scroll-margin-top:96px;min-width:0}
.settings-panel>h2{display:flex;align-items:center;gap:13px;font:800 25px/1.3 var(--display);letter-spacing:-.025em;margin:0 0 12px}
.settings-panel>h2 .section-badge{width:42px;height:42px;color:var(--forest);background:#eaf5ef;border-color:#bedbc9;outline-color:#aacbb9}
.settings-panel>p{font-size:15px;color:var(--muted);line-height:1.6;margin:0 0 22px}
.settings-panel .field-row{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;min-width:0}
.settings-panel .field-row>span{font-size:13px;font-weight:800;line-height:1.4;color:var(--ink)}
.settings-panel .field-row>span>small{font-weight:400;color:var(--muted)}
.settings-panel .field{width:100%;min-width:0;min-height:49px;border:1px solid var(--line);border-radius:10px;background:#fffcf7;padding:12px 13px;font-size:15px;color:var(--ink)}
.settings-panel .fields-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.settings-panel .hint{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 17px}
.settings-child{border-bottom:1px solid var(--line);padding:23px 0 25px}
.settings-child:first-of-type{padding-top:6px}
.settings-child-heading{display:flex;align-items:center;gap:11px;margin-bottom:18px}
.settings-child-heading>.kid-picture{height:49px;width:49px;object-fit:cover;object-position:50% 12%;background:var(--stage-soft);border-radius:50%;border:2px solid var(--stage-soft)}
.settings-child-heading>div{flex:1;min-width:0}
.settings-child-heading h3{font:800 18px var(--display);margin:0 0 3px;overflow-wrap:anywhere}
.settings-child-heading span{color:var(--muted);font-size:12px}
.settings-child .child-name-field{background:#e9f5f2;border-color:#accfca;font-weight:700}
.settings-panel .remove-link{font-size:12px;color:#7a6862;text-decoration:underline;text-underline-offset:3px}
.settings-form-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:15px}
.settings-form-footer .button{font-size:13px;min-height:43px;padding:10px 18px}
.settings-add-child{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:22px;border:2px dashed #c4d4ca;border-radius:13px;width:100%;background:#f6fbf7;padding:16px;color:var(--forest);font:800 15px var(--display)}
.settings-family-save{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.settings-family-save>.hint{margin:0}
.settings-family-save .settings-form-footer{flex-wrap:wrap}
.settings-add-child:disabled{opacity:.5;cursor:default}
.settings-add-child:hover{background:#e9f4ed;border-color:var(--forest)}
.settings-fieldset{border:0;padding:0;margin:25px 0;min-inline-size:0}
.settings-fieldset legend{font:800 18px var(--display);margin-bottom:10px;padding:0;color:var(--ink);letter-spacing:-.02em}
.settings-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.settings-theme{display:flex;align-items:center;gap:8px;padding:12px 10px;border:1px solid var(--line);border-radius:11px;background:#fffcf7;font-size:12px;line-height:1.35;cursor:pointer;min-height:53px}
.settings-theme:has(input:checked){border-color:#9dc9bc;background:#eaf5ef}
.settings-theme>.icon{width:16px;height:16px;color:var(--forest)}
.settings-theme input,.settings-check input,.settings-switch input{accent-color:var(--forest);width:18px;height:18px;flex:none;cursor:pointer}
.settings-topic-list{display:flex;gap:7px;flex-wrap:wrap}
.settings-topic{display:inline-flex;position:relative;cursor:pointer}
.settings-topic input{position:absolute;opacity:0;width:1px;height:1px}
.settings-topic span{display:block;padding:8px 12px;border:1px solid var(--line);border-radius:99px;background:white;font-size:12px;line-height:1.4;color:var(--ink)}
.settings-topic input:checked+span{background:var(--ink);border-color:var(--ink);color:white}
.settings-topic input:focus-visible+span{outline:3px solid #b48b49;outline-offset:3px}
.muted-topic-list input:checked+span{background:#fff0e9;border-color:#cb8066;color:#973e2d;text-decoration:line-through}
.settings-footnote{border-top:1px solid var(--line);margin-top:23px;padding-top:16px}
.settings-footnote .text-link{font-size:12px}
.settings-switch{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:18px 0;cursor:pointer}
.settings-switch:first-child{border-top:0;padding-top:0}
.settings-switch strong{display:block;font-size:16px;font-weight:800;line-height:1.4;margin-bottom:4px}
.settings-switch small{display:block;font-size:13px;line-height:1.5;color:var(--muted)}
.settings-switch input{width:21px;height:21px}
.settings-panel .frequency-row{margin-top:2px;margin-bottom:24px}
.preview-digest-link{margin-top:20px;font-size:13px}
.settings-check{display:flex;align-items:center;gap:8px;font-size:14px;margin:18px 0;cursor:pointer}
.settings-login-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:22px 0;margin-top:23px}
.settings-login-actions strong{font-size:15px;font-weight:800}
.settings-login-actions p{font-size:12px;color:var(--muted);margin:4px 0 0}
.settings-login-actions .button{font-size:12px;white-space:nowrap}
.settings-tool-row{border-top:1px solid var(--line);padding-top:21px;margin-top:21px}
.settings-tool-row h3{font:800 18px/1.4 var(--display);margin:0 0 7px}
.settings-tool-row p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 15px}
.settings-tool-row .button{font-size:13px;min-height:44px;max-width:100%;white-space:normal}
.settings-tool-row .button .icon{width:17px;height:17px;flex:none}
.settings-panel.account-closure{border-color:#e8d3c7;background:#fffaf7}
.account-closure>h2{font-size:21px}
.account-closure .button{font-size:13px;padding:10px 17px;min-height:43px}
.invitation-list{border-top:1px solid var(--line);margin-top:24px}
.invitation-row{display:flex;gap:10px;align-items:start;padding:20px 0 0}
.invite-initial{display:grid;place-items:center;width:36px;height:36px;flex:none;background:var(--sage);border-radius:50%;font:800 14px var(--display)}
.invitation-row>div{flex:1;min-width:0}
.invitation-row strong{font-size:15px}
.invitation-row p{margin:1px 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.invitation-row small{font-size:11px;color:var(--muted);display:block}
.preview-status{display:inline-block;background:#fff1d8;color:#97611a;border-radius:99px;padding:3px 8px;font-size:10px;font-weight:800;margin-top:7px}
.invitation-letter{padding:23px;border:1px solid var(--line);border-radius:15px;background:white;margin:20px 0}
.invitation-letter p{font-size:15px;line-height:1.6}
.invitation-letter>.button{pointer-events:none;font-size:13px}
.settings-back{width:100%;font:800 15px var(--display)}
.settings-empty{font-size:14px;color:var(--muted);padding:15px 0}
@media(max-width:1050px){.settings-layout{gap:22px}.settings-panel{padding:24px}.settings-panel>h2{font-size:23px}.settings-panel .fields-two{grid-template-columns:minmax(0,1fr);gap:0}.settings-theme-grid{grid-template-columns:1fr}.settings-theme{min-height:45px;font-size:13px}.settings-form-footer{justify-content:flex-start}.settings-login-actions{align-items:start;flex-direction:column}}
@media(max-width:760px){.settings-layout{grid-template-columns:minmax(0,1fr);gap:24px}.settings-column{display:contents}.settings-panel{padding:24px;scroll-margin-top:20px}#settings-kids{order:0}#settings-content{order:2}#settings-notifications{order:3}#settings-sharing{order:4}#settings-profile{order:1}#settings-portal{order:5}#settings-account{order:6}.settings-back{order:7}.settings-panel .fields-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-theme{font-size:12px}.settings-panel>h2{font-size:24px}.settings-jump{gap:7px;margin-bottom:23px}.settings-jump button{font-size:12px;padding:7px 11px}.settings-login-actions{flex-direction:row;align-items:center}}
@media(max-width:420px){.settings-panel{padding:22px 17px}.settings-panel>h2{font-size:21px;gap:10px}.settings-panel>h2 .section-badge{width:36px;height:36px}.settings-theme{gap:7px;padding:10px 8px;font-size:11px}.settings-theme>.icon{display:none}.settings-panel .field{font-size:14px;padding:11px;min-height:46px}.settings-panel .field-row>span{font-size:12px}.settings-child-heading h3{font-size:17px}.settings-topic span{font-size:11px;padding:7px 10px}.settings-fieldset legend{font-size:17px}.settings-login-actions{flex-wrap:wrap}.settings-form-footer .button{font-size:12px}.settings-panel .fields-two{grid-template-columns:minmax(0,1fr);gap:0}}

.portal-status{padding:11px max(20px,calc((100vw - 1200px)/2));background:#eef6f3;color:#214b4b;border-bottom:1px solid #ccdeda;font-size:12px;display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.portal-status.portal-error{background:#fff0e8;color:#863b28}.portal-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.portal-actions a,.portal-actions button{color:inherit;font:inherit;text-decoration:underline;background:none;border:0;cursor:pointer}.portal-actions select{max-width:180px;padding:5px}.portal-loading{padding:80px 24px;text-align:center;min-height:60vh}.portal-status+main{margin-top:0}@media(max-width:700px){.portal-status{padding:10px 18px;line-height:1.5}.portal-actions{gap:12px}}

.sage-chat-header{display:flex;align-items:center;gap:16px}.sage-chat-header h2{margin:0}.sage-messages{max-height:340px;overflow:auto;margin:20px 0;display:grid;gap:12px}.sage-message{padding:14px 18px;background:#f1f6ed;border-radius:16px}.sage-message.user{background:#f2ece0;margin-left:30px}.sage-message p{white-space:pre-wrap;margin:8px 0}.sage-message a{display:block;margin:8px 0}.sage-message small{display:block;color:#5f6e69}

.resource-rating{display:flex;align-items:center;gap:6px;margin:12px 0}.resource-rating>span{font-size:11px;color:var(--muted);margin-right:auto}.resource-rating svg{width:19px;height:19px}.resource-rating .icon-button{width:36px;height:36px;position:static;border:1px solid #d5dfd8;border-radius:50%;background:#fffdf8;color:#4e696b}.resource-rating .icon-button[aria-pressed="true"]{background:#d9eee7;border-color:#128486;color:#116c70}.resource-rating .icon-button:focus-visible{outline:3px solid #bd8523;outline-offset:2px}.member-email-preferences{border-top:1px solid #e1dfd3;margin-top:24px;padding-top:22px}.member-purpose{padding:10px 0;border-bottom:1px solid #e9e5da}.member-purpose .field-row{margin-bottom:12px}#member-email-form>.field-row{margin-top:18px}

.content-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%;min-width:0;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.content-actions .resource-rating{display:flex;flex:0 0 auto;gap:6px;margin:0}
.content-actions .resource-rating .icon-button,.content-actions .resource-save,.content-actions .resource-share{display:inline-flex;align-items:center;justify-content:center;position:static;min-width:44px;width:auto;min-height:44px;height:44px;margin:0;padding:0 11px;border:1px solid #d5dfd8;border-radius:22px;background:#fffdf8;color:var(--navy);font:700 12px var(--body);line-height:1;gap:6px;cursor:pointer}
.content-actions .resource-rating .icon-button{width:44px;padding:0;flex:none}
.content-actions .resource-save{margin-left:0}
.content-actions .resource-save svg,.content-actions .resource-share svg{width:18px;height:18px;flex:none}
.content-actions .resource-rating .icon-button[aria-pressed="true"],.content-actions .resource-save[aria-pressed="true"]{background:#d9eee7;border-color:#128486;color:#116c70}
.content-actions .resource-rating .icon-button[data-value="-1"][aria-pressed="true"]{background:#f9e6df;border-color:#ab563a;color:#843d27}
.content-actions button:focus-visible{outline:3px solid #bd8523;outline-offset:2px}
.content-actions button:disabled{opacity:.55;cursor:wait}
.content-actions button:hover:not(:disabled){border-color:var(--navy)}
.dashboard-resource>.content-actions{grid-column:1/-1;margin-top:0}
.dashboard-topic-results .dashboard-resource{grid-template-columns:116px minmax(0,1fr)}
.featured-book .content-actions{border-color:#a5b6a1}
.sage-resource+.sage-resource{margin-top:16px}
.sage-resource .content-actions{margin-top:8px}
@media(max-width:760px){.dashboard-topic-results .dashboard-resource{grid-template-columns:90px minmax(0,1fr)}}
@media(max-width:460px){.dashboard-resource>.content-actions{grid-column:1/-1}.dashboard-topic-results .dashboard-resource{grid-template-columns:78px minmax(0,1fr)}}

/* Feedback labels float above card clipping and stay clear of touch gestures. */
.resource-rating [data-rate]{touch-action:pan-y;-webkit-touch-callout:none;user-select:none}
.resource-rating svg{width:23px;height:23px}
.rating-hint{position:fixed;z-index:10000;pointer-events:none;padding:8px 11px;border-radius:9px;background:#243d34;color:#fffefb;box-shadow:0 4px 14px #17382d30;font:600 12px/1.25 Inter,ui-sans-serif,system-ui,sans-serif;white-space:nowrap}

/* Plain publisher attribution stays separate from themes and descriptions. */
.publisher-credit{display:block;margin:5px 0 9px;color:var(--muted);font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}

/* Desktop shows artwork on every item; phones keep the compact lead-image layout. */
@media(max-width:760px){
 .family-dashboard .dashboard-resource:not(:first-child)>.resource-thumb,
 .family-dashboard .podcast-card:not(:first-child) .podcast-art{display:none}
 .family-dashboard .dashboard-resource:not(:first-child),
 .family-dashboard .podcast-card:not(:first-child) .podcast-card-head{grid-template-columns:minmax(0,1fr)}
}
.mobile-preview .family-dashboard .dashboard-resource:not(:first-child)>.resource-thumb,
.mobile-preview .family-dashboard .podcast-card:not(:first-child) .podcast-art{display:none}
.mobile-preview .family-dashboard .dashboard-resource:not(:first-child),
.mobile-preview .family-dashboard .podcast-card:not(:first-child) .podcast-card-head{grid-template-columns:minmax(0,1fr)}

/* Desktop topic browsing shows the available artwork on every resource. */
@media(min-width:761px){
 body:not(.mobile-preview) .family-dashboard .dashboard-topic-results .dashboard-resource{grid-template-columns:116px minmax(0,1fr) auto}
 body:not(.mobile-preview) .family-dashboard .dashboard-topic-results .dashboard-resource>.resource-thumb{display:block}
}

/* Keep compact video and book recommendations on phones and the app shell. */
@media(max-width:760px){
 .family-dashboard .watch-card:not(:first-child)>.watch-picture,
 .family-dashboard .book-item:not(:first-child)>.book-open{display:none}
}
.mobile-preview .family-dashboard .watch-card:not(:first-child)>.watch-picture,
.mobile-preview .family-dashboard .book-item:not(:first-child)>.book-open{display:none}

/* Lead artwork stacks above copy on phones and in the mobile app shell. */
@media(max-width:760px){
 .family-dashboard .dashboard-resource:first-child,
 .family-dashboard .podcast-card:first-child .podcast-card-head{grid-template-columns:minmax(0,1fr)}
 .family-dashboard .dashboard-resource:first-child>.resource-thumb,
 .family-dashboard .podcast-card:first-child .podcast-art{width:100%;max-width:none;grid-column:1/-1}
}
.mobile-preview .family-dashboard .dashboard-resource:first-child,
.mobile-preview .family-dashboard .podcast-card:first-child .podcast-card-head{grid-template-columns:minmax(0,1fr)}
.mobile-preview .family-dashboard .dashboard-resource:first-child>.resource-thumb,
.mobile-preview .family-dashboard .podcast-card:first-child .podcast-art{width:100%;max-width:none;grid-column:1/-1}


/* A letter from camp: shared across every content format and screen size. */
.content-actions .resource-share svg{width:25px;height:24px}
#modal[data-kind="share"]{width:min(520px,calc(100vw - 24px))}
.share-heading{position:relative;padding-right:48px}
.share-heading .eyebrow{margin:0 0 6px;color:#8b5a20;font-size:11px}
.share-heading #modal-title{margin:0 0 20px;font-size:27px}
.share-postmark{display:flex;align-items:center;justify-content:center;width:68px;height:62px;margin-bottom:16px;border:1px dashed #bb8d4e;border-radius:14px;background:#fff3d8;transform:rotate(-5deg)}
.share-postmark svg{width:46px;height:42px}
.share-resource{padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:20px;overflow-wrap:anywhere}
.share-resource strong{font:700 17px/1.4 var(--display);color:var(--navy)}
.share-resource .publisher-credit{display:block;margin-top:6px}
.share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}
.share-option{display:flex;gap:10px;align-items:center;min-width:0;min-height:48px;padding:12px;border:1px solid #ccd8ce;border-radius:12px;background:#fffdf8;color:var(--navy);font:700 13px/1.35 var(--body);text-decoration:none;cursor:pointer}
.share-option:hover{background:#edf3e8;border-color:#52734e}
.share-option:focus-visible{outline:3px solid #bd8523;outline-offset:2px}
.share-option .icon{width:20px;height:20px;flex:none}
.share-copy{display:flex;gap:8px;align-items:stretch}
.share-copy .field{min-width:0;flex:1;font-size:16px}
.share-copy .button{white-space:nowrap;padding:12px 16px;min-height:48px}
.share-popup .field-row{margin-bottom:7px}
.share-popup .share-status{font-size:13px;line-height:1.5;margin:12px 0 0;min-height:20px}
.mobile-resource-footer .resource-share{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:8px;border:1px solid #ccd8ce;border-radius:50%;background:#fffdf8;color:var(--navy);cursor:pointer}
@media(max-width:360px){.share-copy{flex-direction:column}.share-copy .button{justify-content:center}.share-option{padding:10px 8px;gap:6px}}

/* Show four recommendations on desktop and three on phones/app, including resize. */
@media(max-width:760px){
 .family-dashboard .watch-card:nth-child(n+4),
 .family-dashboard .book-item:nth-child(n+4){display:none}
}
.mobile-preview .family-dashboard .watch-card:nth-child(n+4),
.mobile-preview .family-dashboard .book-item:nth-child(n+4){display:none}

.trash-undo-stack{position:fixed;z-index:200;bottom:24px;left:50%;transform:translateX(-50%);display:grid;gap:8px;width:min(480px,calc(100% - 32px));max-height:40vh;overflow:auto}
.trash-undo-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid #668c83;border-radius:14px;background:#183e55;color:#fff;box-shadow:0 8px 24px #183e552b;font-size:14px;line-height:1.4}
.trash-undo-notice span{min-width:0;overflow-wrap:anywhere}.trash-undo-notice button{flex-shrink:0;border:1px solid #ffffff80;border-radius:20px;background:#fff;color:#183e55;padding:8px 14px;font:700 14px var(--body);cursor:pointer}.trash-pending{opacity:.65}
@media(max-width:760px){.trash-undo-stack{bottom:92px}}.mobile-preview .trash-undo-stack{bottom:92px}
.finding-replacement{position:relative;display:grid!important;place-items:center;box-sizing:border-box}
.replacement-status{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:100px;padding:20px;text-align:center;color:var(--ink,#183e55);font-size:14px;font-weight:600;box-sizing:border-box}
.replacement-dots{font-size:22px;letter-spacing:5px;color:#b58b53}

/* Compact child summaries open their editing controls on demand. */
details.settings-child{padding:16px 0}
details.settings-child>.settings-child-heading{list-style:none;cursor:pointer;margin:0;min-height:58px;border-radius:10px}
details.settings-child>.settings-child-heading::-webkit-details-marker{display:none}
details.settings-child>.settings-child-heading:focus-visible{outline:3px solid var(--forest);outline-offset:5px}
.settings-child-expand{width:10px;height:10px;margin:0 8px 4px 12px;border-right:2px solid var(--navy);border-bottom:2px solid var(--navy);transform:rotate(45deg);flex:none}
details.settings-child[open] .settings-child-expand{transform:rotate(225deg);margin-bottom:-4px}
.settings-child-fields{padding-top:18px}
.settings-child-fields>.remove-link{margin-top:12px;min-height:40px}


/* Optional per-child matching dropdown, shared by signup and family settings. */
.special-needs-picker { margin: 0; border: 0; background: transparent; }
.special-needs-picker > summary { cursor: pointer; overflow-wrap: anywhere; }
.special-needs-picker fieldset { margin: 0 16px; padding: 12px 0; border: 0; display: grid; gap: 10px; }
.special-needs-picker legend { font-size: 13px; color: var(--muted); }
.special-needs-picker .settings-theme { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.special-needs-picker input { width: 18px; height: 18px; accent-color: var(--forest); }
.special-needs-picker > .hint { padding: 0 16px 14px; margin: 0; }

.field-row > .special-needs-picker { margin: 0; }
.special-needs-picker > summary.special-needs-placeholder { color: #929c96; font-weight: 400; }
