.family-planner,.family-child{min-width:0;overflow-wrap:anywhere}.family-heading,.family-toolbar,.family-week-tools,.family-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.family-heading{justify-content:space-between;margin-bottom:1.5rem}.family-heading h1{margin:.25rem 0}.family-heading p{margin:.5rem 0;color:var(--muted,#5f6664)}.family-toolbar{padding:1rem;border:1px solid var(--line,#d9e2dc);border-radius:1rem;background:var(--panel,#fff);margin-bottom:1rem}.family-toolbar label,.family-week-tools label{min-width:0;flex:1 1 10rem}.family-week-tools{margin:1rem 0}.family-planner input,.family-planner select,.family-child input,.family-child select,[data-family-form] input,[data-family-form] select,[data-family-form] textarea{max-width:100%;min-width:0;box-sizing:border-box}.family-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.65rem;align-items:start}.family-day{min-width:0;border:1px solid var(--line,#d9e2dc);border-radius:1rem;background:var(--panel,#fff);padding:.7rem}.family-day h3{font-size:.85rem;margin:.1rem 0 1rem}.family-day>.muted{font-size:.8rem}.family-occurrence{background:var(--bg,#f4f7f3);border-radius:.7rem;padding:.65rem;margin-top:.65rem}.family-occurrence>time{font-size:.8rem}.family-occurrence h4{font-size:.95rem;margin:.4rem 0}.family-occurrence p{font-size:.85rem;white-space:pre-wrap}.family-assignment{display:grid;gap:.35rem;margin:.7rem 0;padding-top:.6rem;border-top:1px solid var(--line,#d9e2dc);font-size:.85rem}.family-assignment.is-done>strong{text-decoration:line-through}.family-actions{gap:.4rem}.family-actions .btn,.family-actions .text-btn{font-size:.8rem;padding:.45rem .6rem;white-space:normal}.family-section{margin-top:1.25rem;border:1px solid var(--line,#d9e2dc);padding:1rem;border-radius:1rem}.family-section>summary{cursor:pointer;font-weight:700}.family-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.75rem;margin:1rem 0}.family-profile,.family-device{display:grid;gap:.5rem;border:1px solid var(--line,#d9e2dc);border-radius:.75rem;padding:.9rem;margin:.7rem 0}.family-profile small,.family-device small{color:var(--muted,#5f6664)}.family-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.family-check{display:flex;flex-direction:row;align-items:flex-start;gap:.6rem;margin:.9rem 0}.family-check input{width:auto;flex:0 0 auto;margin-top:.2rem}.family-weekday-picker{display:flex;gap:.6rem;flex-wrap:wrap}.family-weekday-picker label{display:flex;flex-direction:row;gap:.3rem;align-items:center}.family-weekday-picker input{width:auto}.family-pair-link{border:2px solid var(--accent,#627b69);border-radius:.75rem;padding:1rem;margin:1rem 0}.family-pair-code{font:700 1.4rem/1.5 ui-monospace,monospace;letter-spacing:.14em;overflow-wrap:anywhere}.family-empty{padding:2rem;text-align:center}.family-planner [hidden],[data-family-weekly][hidden]{display:none!important}.family-child-body{margin:0;background:#f5f7f2;color:#20382c;font:16px/1.55 system-ui,sans-serif}.family-child{max-width:48rem;margin:auto;padding:clamp(1rem,4vw,2rem)}.family-child header{display:flex;gap:1rem;justify-content:space-between;align-items:start;flex-wrap:wrap}.family-child h1{font-size:clamp(1.6rem,5vw,2.4rem);line-height:1.2}.family-child label{display:grid;gap:.4rem}.family-child input,.family-child select{font:inherit;border:1px solid #b9cbbb;border-radius:.65rem;background:#fff;padding:.7rem;width:100%}.family-child .btn{font:inherit;cursor:pointer;border:1px solid #34573f;border-radius:.7rem;padding:.7rem 1rem;color:#fff;background:#34573f;min-height:44px}.family-child .btn.secondary,.family-child .text-btn{background:#fff;color:#23432f;border:1px solid #adc1b0}.family-child button:disabled{opacity:.55;cursor:wait}.family-child .family-check{display:flex}.family-child .family-check input{width:auto}.family-child .family-panel{border:1px solid #cbd8c9;border-radius:1rem;background:white;padding:1.25rem;margin:1.2rem 0}.family-child .family-actions{margin-top:1rem}.family-child .family-child-item{border-top:1px solid #d9e2dc;padding:1rem 0}.family-child .family-child-item h3{margin:.4rem 0}.family-child .family-child-item p{white-space:pre-wrap}.family-child .muted{color:#596b5c;font-size:.9rem}.family-child .form-error{color:#963626}.family-child :focus-visible,.family-planner :focus-visible{outline:3px solid #829c60;outline-offset:3px}@media(max-width:1100px){.family-week{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.family-week{grid-template-columns:repeat(2,minmax(0,1fr))}.family-week-tools{align-items:end}.family-heading>.btn{width:100%}}@media(max-width:420px){.family-week{grid-template-columns:1fr}.family-form-grid{grid-template-columns:1fr}.family-toolbar>.btn{flex:1}.family-child header select{max-width:100%}}

.family-planner>.family-people-filters{margin:1rem 0}.family-participant-picker{min-width:0}.family-participant-picker>.family-check{align-items:center}.family-participant-picker>.family-check>span{min-width:0}.family-assignment>.family-person-chip{justify-self:start}.family-assignment.is-done>.family-person-chip .family-person-name{text-decoration:line-through}.family-occurrence>.family-event-people{margin:.5rem 0}.family-occurrence>.family-event-person-markers{margin-bottom:.5rem}.family-profile>.family-person-chip{justify-self:start}.family-week .family-person-chip{width:100%;box-sizing:border-box}.family-week .family-person-role{font-size:.65rem}.family-week .family-person-name{font-size:.8rem}.family-week .family-person-avatar{width:1.65rem;height:1.65rem;flex-basis:1.65rem}
.family-planner .family-week{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}@media(max-width:480px){.family-toolbar>label{flex-basis:100%}.family-toolbar>.btn{flex:1 1 8rem}}

/* Narrow planner controls keep full-width selects and readable action labels. */
@media(max-width:700px){
.family-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.family-toolbar>label{grid-column:1/-1;width:100%;min-width:0;margin:0}
.family-toolbar select{width:100%;max-width:100%;min-width:0}
.family-toolbar>.btn,.family-week-tools>.btn{flex:0 0 auto;min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word;word-break:normal;padding:.65rem .8rem}
.family-toolbar>.btn{width:100%;box-sizing:border-box}
.family-week-tools>label{max-width:100%;margin-bottom:0}
}
