:root {
  --green: #153f35;
  --green-soft: #e8f0eb;
  --gold: #c79c48;
  --cream: #fbfaf6;
  --ink: #183a36;
  --muted: #526571;
  --line: #e1e9e4;
  --danger: #8d332b;
  --white: #fff;
  --sage-surface: #f0f6f1;
  --sage-text: #194535;
  --amber-surface: #fff5e3;
  --amber-text: #845215;
  --rose-surface: #fff0ee;
  --rose-text: #963731;
  --neutral-surface: #f4f6f5;
  --neutral-text: #475e58;
  --surface-radius: 16px;
  --control-radius: 8px;
  --shadow: 0 8px 28px rgba(36, 75, 59, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--cream); color: var(--ink); }
a { color: inherit; }
.app-shell { max-width: 760px; margin: 0 auto; min-height: 100vh; background: var(--cream); padding-bottom: 84px; }
.app-header { position: sticky; top: 0; z-index: 10; background: rgba(251,248,240,.96); backdrop-filter: blur(10px); padding: 14px 18px 10px; border-bottom: 1px solid rgba(36,75,59,.08); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-row strong { color: var(--green); font-size: 16px; }
.role-pill { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 6px 9px; border-radius: 999px; }
main { padding: 18px; }
.date-line { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
h1 { margin: 5px 0 6px; color: var(--green); font-size: clamp(28px, 8vw, 42px); line-height: 1.05; }
.lede { color: var(--muted); margin: 0 0 18px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 12px; box-shadow: var(--shadow); }
.summary b { display: block; color: var(--green); font-size: 24px; }
.summary span { color: var(--muted); font-size: 12px; }
.section { margin: 22px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 18px; color: var(--green); }
.section-heading small { color: var(--muted); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 17px; padding: 15px; box-shadow: var(--shadow); margin-bottom: 10px; }
.card.action { border-left: 5px solid var(--gold); }
.card.danger { border-left: 5px solid var(--danger); }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 15px; margin: 0 0 4px; }
.card p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.45; }
.badge { white-space: nowrap; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 11px; padding: 6px 8px; border-radius: 999px; }
.badge.gold { background: #f5ecd9; color: #755a22; }
.person-list { display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; }
.person strong { display: block; font-size: 14px; }
.person small { color: var(--muted); }
.check { font-size: 19px; color: var(--green); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 0; border-radius: 12px; padding: 11px 13px; background: var(--green); color: white; font-weight: 800; font-size: 13px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: white; color: var(--green); font-weight: 800; font-size: 13px; }
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(760px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 8px 8px max(8px, env(safe-area-inset-bottom)); }
.bottom-nav a { text-decoration: none; text-align: center; font-size: 11px; color: var(--muted); padding: 8px 4px; border-radius: 10px; font-weight: 700; }
.bottom-nav a.active { color: var(--green); background: var(--green-soft); }
.money { color: var(--green); font-weight: 800; }
.notice { background: var(--green); color: white; border-radius: 17px; padding: 16px; margin-bottom: 11px; }
.notice p { color: rgba(255,255,255,.82); margin: 5px 0 13px; font-size: 13px; }
.notice .primary-button { background: white; color: var(--green); }
@media (max-width: 420px) {
  .summary-grid { gap: 7px; }
  .summary { padding: 10px; }
  .summary b { font-size: 21px; }
}
form { display:grid; gap:12px; }
input, select, textarea { width:100%; box-sizing:border-box; padding:12px; border:1px solid #ccd5ce; border-radius:10px; background:#fff; font:inherit; }
button { cursor:pointer; font:inherit; }
button:disabled { cursor:wait; opacity:.6; }
[hidden] { display:none !important; }
#message { min-height:1.5em; }
.skip-link { position:fixed; left:16px; top:-100px; z-index:100; padding:12px; background:white; }
.skip-link:focus { top:8px; }
:focus-visible { outline:3px solid #b96548; outline-offset:3px; }
.workspace .app-shell { max-width:1200px; align-content:start; }
.workspace .brand { text-decoration:none; font-family:Georgia,serif; font-size:23px; color:var(--green); line-height:1.1; }
.workspace .brand span { display:block; font:600 11px system-ui,sans-serif; letter-spacing:.13em; text-transform:uppercase; margin-top:4px; }
.utilities { display:flex; gap:14px; align-items:center; font-size:13px; }
.utilities a, .text-button { min-height:44px; display:inline-flex; align-items:center; }
.text-button { background:transparent; border:0; color:var(--green); padding:8px 0; }
.workspace h1 { font-family:Georgia,serif; font-weight:500; letter-spacing:-.025em; font-size:clamp(34px,5vw,48px); margin:12px 0; }
.workspace h2 { font-size:19px; color:var(--green); }
.workspace .lede { line-height:1.5; max-width:58ch; }
.workspace .workspace-nav { display:grid; grid-template-columns:repeat(5,1fr); position:fixed; bottom:0; left:0; right:0; z-index:20; padding:8px 8px max(8px,env(safe-area-inset-bottom)); background:var(--cream); border-top:1px solid var(--line); }
.workspace-nav a { display:flex; align-items:center; justify-content:center; min-height:48px; text-decoration:none; color:var(--muted); font-size:13px; border-radius:8px; }
.workspace-nav a[aria-current] { background:var(--green); color:white; font-weight:700; }
.workspace .card { background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; padding:15px 0; margin:0; }
.workspace .card p { font-size:15px; overflow-wrap:anywhere; }
.workspace .card h3 { font-size:16px; }
.workspace .summary-grid { border-block:1px solid var(--line); gap:0; margin:24px 0; }
.workspace .summary { background:transparent; box-shadow:none; border:0; border-radius:0; padding:18px 12px; }
.workspace .summary + .summary { border-left:1px solid var(--line); }
.workspace .summary b { font-size:32px; font-weight:500; }
.workspace .summary span { font-size:13px; }
.workspace .section { margin:30px 0; }
.family-row { border-bottom:1px solid var(--line); padding:24px 0; }
.family-summary { display:flex; gap:16px; justify-content:space-between; align-items:start; margin-bottom:14px; }
.family-summary h2 { margin:0 0 6px; font-size:20px; }
.family-summary p { margin:0; color:var(--muted); overflow-wrap:anywhere; }
.family-summary .badge { white-space:normal; flex-shrink:0; max-width:130px; font-size:12px; }
.directory-search { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,.6fr) auto; align-items:end; gap:14px; margin:24px 0; }
.directory-search label { display:grid; gap:7px; font-size:14px; font-weight:600; }
.workspace .primary-button, .workspace .secondary-button { min-height:44px; font-size:14px; border-radius:8px; }
.pagination { display:flex; gap:14px; justify-content:space-between; margin:24px 0; }
.scope-note { border-left:3px solid var(--gold); padding:12px 16px; background:#f5ecd9; }
.environment-label { color:#655127; background:#f5ecd9; border:1px solid #d6c49b; border-radius:4px; padding:4px 8px; display:inline-block; font-size:12px; font-weight:600; margin:0 0 12px; }
.attention-row { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); padding:18px 0; }
.attention-row h3 { margin:4px 0; font-size:17px; }
.attention-row p { margin:4px 0; line-height:1.5; }
.attention-row .eyebrow { color:var(--muted); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.attention-row a { flex-shrink:0; }
.record-changes { padding:16px; margin:20px 0; background:#f1f2e8; border-left:3px solid var(--gold); }
.change-row { padding:14px 0; display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; border-top:1px solid var(--line); }
.change-row strong { grid-column:1/-1; }
.change-row span { color:var(--muted); font-size:12px; text-transform:uppercase; }
.change-row p { margin:4px 0; overflow-wrap:anywhere; }
@media (max-width:600px) { .attention-row { align-items:start; flex-direction:column; } }
@media (min-width:900px) {
  .workspace .app-shell { display:grid; grid-template-columns:180px minmax(0,1fr); }
  .workspace .app-header { grid-column:1/-1; padding:22px 28px; }
  .workspace .workspace-nav { position:sticky; top:96px; align-self:start; display:flex; flex-direction:column; gap:6px; border:0; padding:24px 18px; }
  .workspace-nav a { justify-content:flex-start; padding:12px 16px; font-size:16px; }
  .workspace main { padding:28px 42px 70px; border-left:1px solid var(--line); }
}
@media (max-width:600px) {
  .directory-search { grid-template-columns:1fr auto; }
  .directory-search label:first-child { grid-column:1/-1; }
  .workspace .role-pill { display:none; }
  .workspace .brand { font-size:20px; }
  .utilities { gap:12px; }
  .family-summary { display:block; }
  .family-summary .badge { display:inline-block; margin-top:12px; max-width:none; }
}
:root .care-phone { display:inline-flex; align-items:center; min-height:44px; min-width:44px; }
.report-text { white-space:pre-wrap; overflow-wrap:anywhere; }

/* Care-day workspace: meaning comes from grouping, not decorative activity. */
/* Shared palette applies to owner, family and staff surfaces. */
.workspace svg { width:22px; height:22px; flex-shrink:0; }
.workspace .brand { font-size:clamp(22px,3vw,30px); }
.workspace .brand-row { flex-wrap:wrap; gap:10px 16px; }
.workspace .brand-row .environment-label { margin:0 auto 0 0; font-size:11px; background:#fff6e5; color:#7b4c12; border-color:#ecd4a9; }
.account-menu { position:relative; margin-left:auto; }
.account-menu>summary { display:flex; gap:10px; align-items:center; justify-content:center; min-height:44px; min-width:70px; padding:8px 12px; border-radius:24px; background:#eef3ef; cursor:pointer; font-size:13px; font-weight:650; list-style:none; }
.account-menu>summary::-webkit-details-marker { display:none; }
.account-menu>div { position:absolute; right:0; top:calc(100% + 8px); width:170px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:8px; z-index:30; }
.account-menu>div>* { display:flex; align-items:center; min-height:44px; padding:8px 12px; width:100%; text-decoration:none; }
.workspace-nav a { flex-direction:column; gap:4px; font-size:12px; min-height:54px; }
.workspace-nav a[aria-current] { border-radius:13px; box-shadow:0 4px 12px #153f3512; }
.workspace #message:empty { min-height:0; margin:0; }
.today-workspace h1 { font-size:clamp(40px,6vw,56px); margin:7px 0 9px; }
.today-workspace .lede { font-size:14px; margin-bottom:20px; max-width:70ch; }
.today-workspace .date-line { font-size:11px; letter-spacing:.09em; }
.day-page-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#refresh-today,.day-read-time { display:none; }
.today-workspace #refresh-today { display:inline-flex; font-size:12px; }
.today-workspace .day-read-time { display:block; font-size:11px; color:var(--muted); line-height:1.4; margin:-10px 0 18px; }
.today-grid { display:grid; gap:16px; }
.today-grid>* { min-width:0; }
.care-duty-panel:empty { display:none; }
.care-duty-panel { grid-column:1/-1; }
.care-duty-panel form { margin:12px 0; }
.care-duty-panel form label { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.care-duty-panel form select { width:100%; }
.care-duty-panel form .duty-ack { flex-wrap:nowrap; align-items:flex-start; min-height:44px; }
.duty-ack span { flex:1; min-width:0; }
.today-grid h2 { font-family:Georgia,serif; font-weight:600; letter-spacing:-.015em; }
.day-next { display:grid; grid-template-columns:44px minmax(0,1fr); gap:10px 14px; align-items:center; border:1px solid #dce9e0; border-radius:16px; padding:18px; background:linear-gradient(115deg,#f0f7f1,#f8faf6); }
.day-next h2 { margin:4px 0 5px; font-size:clamp(21px,3vw,29px); line-height:1.2; }
.day-next p:not(.day-eyebrow) { margin:6px 0 0; line-height:1.45; font-size:13px; color:var(--muted); }
.day-eyebrow { margin:0; font-size:12px; font-weight:750; letter-spacing:.045em; }
.day-next>.primary-button { grid-column:2; justify-self:start; }
.next-relative { font-weight:400; white-space:nowrap; }
.day-symbol { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#dcecdf; color:var(--green); }
.day-symbol svg { width:23px; height:23px; }
.day-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.day-metric { display:grid; grid-template-columns:auto 1fr; gap:3px 9px; align-items:center; padding:13px 12px; border:1px solid var(--line); border-radius:13px; text-decoration:none; }
.day-metric b { font:500 clamp(27px,4vw,36px)/1 Georgia,serif; }
.day-metric>span:last-child { grid-column:1/-1; font-size:12px; line-height:1.35; }
.metric-icon { display:flex; }
.sage { background:var(--sage-surface); color:var(--sage-text); }
.amber { background:var(--amber-surface); color:var(--amber-text); }
.rose { background:var(--rose-surface); color:var(--rose-text); }
.neutral { background:var(--neutral-surface); color:var(--neutral-text); }
.day-panel { border:1px solid var(--line); border-radius:16px; background:#ffffffc4; padding:17px; }
.day-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.day-section-heading h2 { display:flex; gap:10px; align-items:center; margin:0; font-size:23px; }
.day-section-heading>span { font-size:12px; color:var(--muted); text-align:right; }
.attention-panel:has(.day-issue) { background:#fcf2f0; border-color:#f1e4df; }
.day-issues { display:grid; gap:9px; }
[data-pickup-warnings]:not(:empty) { display:grid; gap:9px; margin-bottom:9px; }
.day-issue { display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:9px 11px; padding:13px; background:#fff; border-radius:12px; border:1px solid #eee9e4; color:var(--ink); }
.day-issue>.day-symbol { width:36px; height:36px; background:#eef2ef; }
.day-issue.rose>.day-symbol { background:#fae0de; color:#a43e37; }
.day-issue.amber>.day-symbol { background:#f9ebcd; color:#875816; }
.day-issue h3 { margin:0 0 3px; font-size:15px; line-height:1.3; }
.day-issue p { margin:0; font-size:13px; color:var(--muted); line-height:1.45; overflow-wrap:anywhere; }
.day-issue>[data-incident-container] { grid-column:1/-1; min-width:0; }
.day-issue>.primary-button { font-size:12px; padding:8px 11px; min-width:100px; }
.today-grid .primary-button,.today-grid .secondary-button { gap:8px; text-align:center; }
.today-grid .primary-button svg,.today-grid .secondary-button svg { width:16px; height:16px; }
.day-more { margin-top:12px; }
.day-more>summary { cursor:pointer; color:var(--green); min-height:44px; padding:12px 0; font-size:13px; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.day-quiet { display:flex; align-items:center; gap:9px; margin:8px 0; color:var(--muted); font-size:14px; line-height:1.55; }
.day-children { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.day-child { min-width:0; border:1px solid var(--line); border-radius:13px; padding:14px; background:#fff; scroll-margin-top:120px; }
.child-exception { border-color:#d49589; background:#fffaf8; }
.child-heading { display:grid; grid-template-columns:35px minmax(0,1fr); align-items:center; gap:7px 9px; }
.child-heading h3 { margin:0; font-size:15px; line-height:1.35; overflow-wrap:anywhere; }
.day-avatar { display:grid; place-items:center; width:35px; height:35px; background:#e5f0e6; border-radius:50%; color:var(--green); font-size:13px; font-weight:700; }
.day-badge { padding:5px 8px; border-radius:8px; font-size:11px; font-weight:650; grid-column:1/-1; justify-self:start; }
.child-time { font-size:13px; color:var(--muted); line-height:1.5; margin:10px 0; overflow-wrap:anywhere; }
.child-flags { display:flex; flex-wrap:wrap; gap:6px; margin:9px 0; }
.child-flags:empty { display:none; }
.day-flag { display:inline-flex; align-items:center; gap:5px; padding:5px 7px; border-radius:7px; font-size:11px; font-weight:650; }
.day-flag svg { width:14px; height:14px; }
.care-alert-summary { font-size:12px; line-height:1.45; margin:8px 0; overflow-wrap:anywhere; }
.care-card-button { width:100%; background:#f1f7f2; justify-content:space-between; }
.day-child>[data-attendance],.day-pickup-action { width:100%; margin-top:9px; }
.day-pickup-action>.primary-button { width:100%; }
.child-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:start; }
.child-actions .primary-button,.child-actions .secondary-button { font-size:12px; padding:9px 8px; }
.child-actions .day-pickup-action { margin:0; }
.child-actions .care-card-button:only-child { grid-column:1/-1; }
.child-actions .undo-arrival { grid-column:1/-1; justify-content:flex-start; font-size:12px; min-height:44px; padding:4px 0; }
.child-actions .day-pickup-action:has([data-departure-container]:not([hidden])) { grid-column:1/-1; }
.day-care-details { width:min(640px,calc(100% - 24px)); max-height:calc(100dvh - 32px); margin:auto; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--cream); color:var(--ink); font-size:16px; line-height:1.5; overflow:auto; overflow-wrap:anywhere; box-shadow:var(--shadow); }
.day-care-details::backdrop { background:rgba(15,38,31,.45); }
.day-care-details h2 { font-size:26px; margin:20px 0 16px; }
.day-care-details [data-care-dialog-message]:empty { display:none; }
.day-care-details [data-care-body]>.secondary-button { margin:8px 8px 8px 0; }
body:has(.day-care-details[open]) { overflow:hidden; }
.day-care-details h4 { font-size:15px; margin:15px 0 8px; }
.day-child:has([data-departure-container]:not([hidden])) { grid-column:1/-1; }
.pickup-monitor { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); margin-top:14px; }
.pickup-monitor p { font-size:11px; color:var(--muted); line-height:1.4; }
.pickup-monitor button { min-width:44px; justify-content:center; }
.pickup-monitor [role="alert"] { color:var(--danger); font-size:13px; }
.day-timeline { list-style:none; padding:0; margin:0; }
.timeline-event { display:grid; grid-template-columns:17px 68px minmax(0,1fr); gap:10px; position:relative; padding:0 0 17px; font-size:13px; scroll-margin-top:110px; }
.timeline-event:not(:last-child)::before { content:""; position:absolute; left:7px; top:12px; bottom:0; border-left:2px solid #dfe9e0; }
.timeline-event time { padding-top:3px; color:var(--muted); }
.timeline-dot { margin-top:4px; width:15px; height:15px; border-radius:50%; background:#d5e5d7; position:relative; z-index:1; }
.timeline-dot svg { width:12px; height:12px; color:white; margin:1px; }
.timeline-event.completed .timeline-dot { background:var(--green); }
.timeline-event.next .timeline-dot,.timeline-event.now .timeline-dot { background:#ab7b2e; box-shadow:0 0 0 4px #fbf0da; }
.timeline-event.exception .timeline-dot { background:#a83c36; }
.timeline-event summary { cursor:pointer; min-height:44px; line-height:1.4; padding:2px 0 8px; }
.timeline-state { display:block; margin-top:3px; font-size:11px; color:var(--muted); }
.timeline-event.next .timeline-state,.timeline-event.now .timeline-state { color:#865311; font-weight:700; }
.timeline-event details p { font-size:12px; line-height:1.5; color:var(--muted); margin:3px 0 9px; overflow-wrap:anywhere; }
.day-quick-actions { display:flex; flex-wrap:wrap; gap:9px; }
.day-quick-actions a { flex:1 1 140px; }
.today-grid section[id] { scroll-margin-top:112px; }
.workspace input[type="checkbox"] { width:20px; height:20px; flex-shrink:0; }
.workspace label:has(>input[type="checkbox"]) { display:flex; align-items:flex-start; gap:9px; min-height:44px; line-height:1.5; }
@media(min-width:1100px) {
  .workspace .app-shell { max-width:1400px; grid-template-columns:160px minmax(0,1fr); }
  .today-grid { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:18px; }
  #today-next,.day-metrics,.quick-panel { grid-column:1/-1; }
  .attention-panel,.timeline-panel { grid-column:1; }
  .children-panel { grid-column:2; grid-row:3 / span 2; }
  .team-panel { grid-column:2; }
  .day-next { grid-template-columns:48px minmax(0,1fr) auto; padding:22px; }
  .day-next>.primary-button { grid-column:3; }
}
@media(min-width:900px) { .workspace-nav a { flex-direction:row; gap:10px; font-size:14px; } }
@media(max-width:600px) {
  .workspace .app-header { padding:12px 14px; }
  .workspace main { padding:18px 14px; }
  .workspace .brand-row { gap:8px 10px; }
  .workspace .brand-row .environment-label { order:3; flex-basis:auto; margin-top:2px; }
  .workspace .brand { font-size:24px; }
  .workspace .brand span { font-size:9px; }
  .account-menu>summary { font-size:12px; min-width:65px; padding:8px 10px; }
  .day-metric { display:flex; flex-direction:column; align-items:flex-start; padding:11px 9px; gap:4px; }
  .metric-icon { display:none; }
  .day-metric>span:last-child { font-size:11px; }
  .day-metric b { font-size:29px; }
  .day-panel { padding:13px; }
  .day-section-heading h2 { font-size:22px; }
  .day-next { padding:15px; grid-template-columns:36px minmax(0,1fr); gap:10px; }
  .day-next>.day-symbol { width:36px; height:36px; align-self:start; }
  .day-issue { grid-template-columns:30px minmax(0,1fr); padding:11px; gap:8px; }
  .day-issue>.day-symbol { width:30px; height:30px; align-self:start; }
  .day-issue>.primary-button { grid-column:2; justify-self:start; min-width:110px; }
  .day-issue h3 { font-size:14px; }
  .day-issue p { font-size:12px; }
  .day-children { grid-template-columns:1fr; }
  .child-heading { grid-template-columns:35px minmax(0,1fr) auto; }
  .child-heading .day-badge { grid-column:auto; max-width:104px; }
  .day-child { padding:12px; }
  .child-time { margin:8px 0; }
}
@media(max-width:350px) {
  .day-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .day-metric { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px; }
  .day-metric>span:last-child { grid-column:2; }
  .child-heading { grid-template-columns:30px minmax(0,1fr); }
  .child-heading .day-badge { grid-column:2; }
  .day-section-heading { align-items:flex-start; }
  .day-section-heading>span { max-width:70px; }
}

.request-child,.request-weekdays label{display:flex;align-items:center;gap:.65rem;min-height:44px}.request-child input,.request-weekdays input{width:20px;height:20px;flex:0 0 20px}.request-weekdays{display:flex;flex-wrap:wrap;gap:.2rem 1rem}#care-request-form fieldset{margin:1.2rem 0;padding:1rem;border:1px solid #dce5df;border-radius:12px}#care-request-form .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}#care-request-form input,#care-request-form select{max-width:100%;min-width:0}@media(max-width:440px){#care-request-form .field-grid{grid-template-columns:1fr}}
.back-link { display:inline-flex; align-items:center; min-height:44px; color:var(--green); }
.family-home-heading { margin:12px 0 20px; }
.family-home-heading h2 { margin:0 0 8px; font-family:Georgia,serif; font-size:26px; }
.family-home-heading p { color:var(--muted); overflow-wrap:anywhere; }
.context-nav { display:flex; flex-wrap:wrap; gap:8px; padding:12px 0; border-block:1px solid var(--line); }
.context-nav a { display:flex; align-items:center; padding:10px 12px; min-height:44px; border-radius:var(--control-radius); text-decoration:none; color:var(--green); }
.context-nav a[aria-current] { background:var(--green); color:white; font-weight:650; }
.family-section { margin:24px 0; padding:20px; background:var(--white); border:1px solid var(--line); border-radius:var(--surface-radius); overflow-wrap:anywhere; }
.family-section h2 { font-family:Georgia,serif; font-size:24px; margin:0 0 14px; }
.family-section p { line-height:1.55; }
.family-section .day-badge { display:inline-block; font-size:13px; }
.record-row,.family-child { padding:18px 0; border-bottom:1px solid var(--line); }
.record-row:last-child,.family-child:last-child { border-bottom:0; }
.record-row h3,.family-child h3 { margin:0 0 8px; font-size:18px; }
.empty-state { color:var(--muted); }
.context-actions { display:flex; flex-wrap:wrap; gap:12px; }
.context-actions a,.family-section>a { display:inline-flex; align-items:center; min-height:44px; }
@media(min-width:1000px) { .family-overview-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; } .family-overview-grid .family-section { margin-top:0; } }
@media(max-width:420px) { .family-section { padding:16px; } .context-nav { gap:4px; } .context-nav a { padding:10px 9px; font-size:14px; } }

.tour-booking-card p{font-size:1rem;line-height:1.5;margin-block:.5rem}.tour-booking-card summary{min-height:44px;padding-block:.65rem;cursor:pointer}.tour-history-entry{border-top:1px solid var(--line,#dce5df);padding-block:.75rem}

/* Planning workspaces keep long assumptions readable on narrow screens. */
.planning-page main p { line-height: 1.5; }
.planning-page .card p { font-size: 15px; }
.planning-page button, .planning-page summary { min-height: 44px; }
.planning-page summary { cursor: pointer; padding: 12px 0; }
.planning-page fieldset { min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.planning-page legend { font-weight: 700; padding: 0 6px; }
.planning-page dt { margin-top: 14px; line-height: 1.4; }
.planning-page dd { margin: 4px 0 12px; }
.planning-page .long-note { white-space: pre-wrap; overflow-wrap: anywhere; }

.planning-page label:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; }
.planning-page label > input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; }

/* Summer family experience: one enrollment with details available on demand. */
.summer-page .app-shell{max-width:920px}.summer-page main>h1{margin-bottom:.5rem}.summer-preview{background:#edf4ef;border:1px solid #b8cec0;border-radius:16px;padding:20px;margin:18px 0 28px}.summer-preview p{margin:8px 0 16px}.summer-preview select{max-width:340px}.summer-card{padding:clamp(22px,4vw,40px)!important;border-radius:22px!important;margin-top:24px}.summer-status{font-size:.85rem;font-weight:700;color:#225b45;text-transform:uppercase;letter-spacing:.06em}.summer-card h2{font-size:clamp(1.7rem,4vw,2.4rem);margin:10px 0}.summer-lead{font-size:1.15rem}.summer-facts{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:28px 0}.summer-facts span{display:block;color:#5c6965;font-size:.9rem;margin-bottom:8px}.summer-facts strong{display:block}.summer-facts p{margin:7px 0}.summer-commitment{padding:18px;background:#f0f5ef;border-radius:12px;line-height:1.6}.summer-tuition{padding:18px 0;margin:20px 0;border-top:1px solid #dbe4dd;border-bottom:1px solid #dbe4dd}.summer-price{font-size:2rem;font-weight:700;color:#194d3a}.summer-price span{font-size:1rem;font-weight:400;display:block}.summer-card details{padding:16px 0}.summer-card summary{font-weight:650;cursor:pointer}.summer-card form{margin-top:22px}.summer-muted{font-size:.85rem;color:#5c6965}.summer-page .primary-button{min-height:48px}.summer-page input[type=checkbox]{min-width:20px;min-height:20px}.summer-page .duty-ack{align-items:flex-start;line-height:1.6}@media(max-width:600px){.summer-facts{grid-template-columns:1fr;gap:18px}.summer-card .primary-button{width:100%}}

.summer-card{background:#fffefa;border:1px solid #dbe4dd;box-shadow:0 5px 20px #173e2e05}.summer-preview label{display:block}.summer-preview select{display:block;margin-top:8px}

.tour-choices{display:flex;flex-wrap:wrap;gap:14px}.tour-choices label{display:flex;align-items:center;gap:8px;min-height:44px}.tour-choices input{width:20px;height:20px;margin:0}.tour-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media(max-width:550px){.tour-form-grid{grid-template-columns:1fr}}
