/* Care board presentation only. Existing seal art and activity marks are unchanged. */
.care-expand .care-board{display:block;--card-min:205px}
.care-expand .care-board[data-zoom="1"]{--card-min:232px}
.care-expand .care-board[data-zoom="0"]{--card-min:150px}
.care-expand .care-board[data-zoom="2"]{--card-min:238px}
.care-expand .toolbar{gap:10px;align-items:center}
.care-expand .search-wrap{flex:1;min-width:140px;position:relative}
.care-expand .toolbar .search{display:flex;align-items:center;gap:10px;border-radius:28px;padding:0 42px 0 14px;background:var(--surface);border:1px solid var(--line);max-width:none;min-width:0}
.care-expand .search svg{width:18px;height:18px;fill:none;stroke:var(--olive);stroke-width:1.7;flex:none}
.care-expand .search input{width:100%;border:0!important;background:transparent;box-shadow:none;min-height:48px;padding:10px 0;font-size:14px}
.care-expand .search input:focus{outline:0}.care-expand .search:focus-within{outline:2px solid var(--olive);outline-offset:2px}
.care-expand #clearSearch{position:absolute;right:3px;top:2px;width:44px;height:44px;min-height:44px;border-radius:50%;font-size:22px;color:var(--muted)}
.care-expand .care-zoom{flex:none;color:var(--olive)}
.care-expand #zoom{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.care-expand #zoom button{display:grid;place-items:center;width:36px;min-width:36px;min-height:44px;padding:7px;border-radius:20px;color:var(--olive)}
.care-expand #zoom button[aria-pressed=true]{background:var(--soft);color:var(--ink)}
.care-expand #zoom button:disabled{opacity:.4}
.care-expand #zoom svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.care-expand #zoom button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.care-expand #zoom-note{display:block;font-size:12px;line-height:1.5;padding-top:6px}
.care-expand #zoom-note[hidden]{display:none}
.care-expand .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.care-expand .search-status{font-size:12px;color:var(--muted);margin:8px 0 14px}
.care-expand .flock-group{margin:20px 0 0;min-width:0}
.care-expand .flock-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.care-expand .flock-group-heading>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.care-expand .flock-group-heading h3{font:600 16px/1.4 system-ui;margin:0;color:var(--ink)}
.care-expand .flock-group-heading>div>span{font:12px/1.4 system-ui;color:var(--muted)}
.care-expand .unfurl{display:flex;align-items:center;justify-content:center;gap:8px;flex:none;font:12px/1.4 system-ui;color:var(--olive);min-height:44px;padding:4px 8px}
.care-expand .group-ornament{display:flex;transition:transform 200ms ease}
.care-expand .group-ornament svg{width:38px;height:14px}
.care-expand .unfurl[aria-expanded=true] .group-ornament{transform:scaleX(-1)}
.care-expand .flock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--card-min)),1fr));gap:12px;align-items:start}
.care-expand .volunteer-list{min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:visible;box-sizing:border-box;transition:translate 340ms cubic-bezier(.2,.8,.2,1),outline-color 160ms ease;outline:1px solid transparent}
@media(hover:hover){.care-expand .volunteer-list:not(.flock-open):hover{translate:0 -1px;outline-color:var(--line)}}
.care-expand .volunteer-list.flock-open{outline-color:var(--line)}
.care-expand .care-board:not([data-zoom="2"]) .flock-open{grid-column:span 2}
.care-expand .volunteer-list>header{padding:0;background:var(--soft);border-bottom:1px solid var(--line);border-radius:9px 9px 0 0}
.care-expand .volunteer-list h3{display:block;margin:0}
.care-expand .column-head{display:flex;align-items:center;gap:10px;text-align:left;width:100%;min-height:52px;padding:8px 10px;color:var(--ink);border-radius:9px 9px 0 0}
.care-expand .volunteer-list .flock-heading{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:3px 7px;align-items:baseline;color:var(--ink)}
.care-expand .volunteer-list .volunteer-label{display:block;font:9px/1.4 system-ui;letter-spacing:.08em;text-transform:uppercase;color:var(--olive);margin-bottom:3px}
.care-expand .volunteer-list .volunteer-name{display:inline;font:600 15px/1.3 system-ui;color:var(--ink);overflow-wrap:anywhere}
.care-expand .volunteer-list .flock-count{display:inline;font:12px/1.4 system-ui;color:var(--muted)}
.care-expand .volunteer-list .flock-count.needs-care{color:var(--rust)}
.care-expand .flock-chevron{width:16px;height:16px;fill:none;stroke:var(--olive);stroke-width:1.6;flex:none;transition:transform 360ms cubic-bezier(.2,.8,.2,1)}
.care-expand .flock-open .flock-chevron{transform:rotate(90deg)}
.care-expand .flock-overview{padding:10px}
.care-expand .seal-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.care-expand .seal-peek-target{display:grid;place-items:center;min-width:32px;width:32px;min-height:44px;padding:0;border-radius:5px;touch-action:pan-y;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;background:transparent}
.care-expand .seal-peek-target .seal-mark{display:block;transition:scale 160ms ease}
.care-expand .seal-peek-target:hover .seal-mark,.care-expand .seal-peek-target:focus-visible .seal-mark{scale:1.12}
.care-expand .column-summary{font:12px/1.55 system-ui;color:var(--rust);margin:8px 10px 10px;overflow-wrap:anywhere}
.care-expand .seal-text{display:none}
.care-expand .compact-name{display:none}
/* Two columns when labels fit; enlarged text naturally falls back to one. */
.care-expand .care-board[data-zoom="1"] .seal-row{display:grid;font:13px/1.4 system-ui;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(7.5em,calc((100% - 8px)/2))),1fr));gap:4px 8px;align-items:stretch}
.care-expand .care-board[data-zoom="1"] .seal-peek-target{width:auto;min-width:0;display:flex;align-items:center;justify-content:flex-start;gap:6px;text-align:left}
.care-expand .care-board[data-zoom="1"] .seal-mark{flex:0 0 32px}
.care-expand .care-board[data-zoom="1"] .compact-name{display:block;min-width:0;font:13px/1.4 system-ui;color:var(--ink);overflow-wrap:anywhere}
.care-expand .care-board[data-zoom="1"] .compact-full-name{grid-column:1/-1}
.care-expand .flock-body>.group-band{margin:8px 10px}
.care-expand .heat-date{font-variant-numeric:tabular-nums}
.care-expand .empty-list{font-size:12px;color:var(--muted);padding:8px 12px}
.care-expand mark{background:var(--soft);color:inherit;border-bottom:1px solid var(--rust)}
.care-expand .column-head:focus-visible,.care-expand .seal-peek-target:focus-visible{outline:2px solid var(--olive);outline-offset:-3px}
.care-expand .seal-peek{position:fixed;z-index:30;max-width:min(280px,calc(100vw - 16px));pointer-events:none;padding:8px 12px;border-radius:7px;color:var(--paper);background:var(--ink);font:12px/1.5 system-ui;box-shadow:0 4px 14px #432a2720}
.care-expand .legend{display:block;position:static;margin:12px 0 0;padding:0;border:0;background:transparent}
.care-expand .legend h3{font:600 14px/1.4 system-ui;margin:10px 0}
.care-expand .legend>div{position:static;width:auto;max-width:none;border:0;box-shadow:none;padding:0;background:transparent}
.care-expand .flock-overview[hidden],.care-expand .flock-body[hidden]{display:none!important}
.care-expand .unfurl{position:relative}
.care-expand .unfurl-label{position:absolute;right:0;bottom:100%;white-space:nowrap;background:var(--surface);border:1px solid var(--line);padding:4px 8px;border-radius:4px;visibility:hidden;pointer-events:none}
.care-expand .unfurl:is(:hover,:focus-visible) .unfurl-label{visibility:visible}
.care-expand .toolbar .selectlabel{flex:none;min-width:0;display:block}
.care-expand .toolbar #group{font-size:12px;max-width:150px;min-height:44px}
.care-expand .toolbar #tryMoves{font-size:12px;white-space:nowrap;margin-left:0;min-height:44px;padding-inline:10px}
.care-expand .toolbar{flex-wrap:nowrap}
.care-expand .board-heading{margin:6px 0 0;padding:0}
.care-expand .search-status:empty{display:none}
.care-expand .student{padding:10px}

@media(max-width:859px){.care-expand .care-board[data-zoom="2"]{--card-min:270px}}
@media(max-width:600px){.care-expand .toolbar{flex-wrap:wrap}.care-expand .search-wrap{flex-basis:100%;min-width:0}.care-expand .toolbar .search{flex-basis:auto}.care-expand .toolbar .selectlabel{flex:1;min-width:0}.care-expand .flock-group-heading{flex-wrap:wrap}.care-expand .flock-group-heading>div{gap:6px}}
@media(max-width:480px){.care-expand .flock-open{grid-column:1/-1!important}.care-expand .care-board[data-zoom="0"]{--card-min:140px}.care-expand .unfurl{margin-left:auto}.care-expand .group-ornament svg{width:28px}}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .care-board{--card-min:420px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .flock-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr))}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .column-head{flex-wrap:wrap;gap:12px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .flock-heading{flex-basis:100%}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .volunteer-name{font-size:28px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .volunteer-label{font-size:16px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .column-summary{font-size:22px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .flock-group-heading h3{font-size:34px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .unfurl{font-size:20px;flex-wrap:wrap}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .care-zoom{width:100%}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) :is(.flock-group-heading>div>span,.search-status){font-size:20px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .toolbar{flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){.care-expand *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.care-expand .seal-peek-target{width:auto;max-width:100%;border:1px solid CanvasText;padding:5px}.care-expand .seal-peek-target .seal-mark{display:none}.care-expand .seal-text{display:block;font:12px/1.5 system-ui}.care-expand .volunteer-list>header{border-bottom:2px solid CanvasText}.care-expand .seal-peek{color:CanvasText;background:Canvas;border:1px solid CanvasText}}

.care-expand .flock-group{container-type:inline-size}
@container(max-width:425px){.care-expand .care-board .flock-open{grid-column:1/-1}}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .flock-open{grid-column:1/-1!important}
.care-expand .flock-group[data-section="none"] .volunteer-list{grid-column:span 2}
@container(max-width:425px){.care-expand .flock-group[data-section="none"] .volunteer-list{grid-column:1/-1}}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .unfurl-label{position:static;visibility:visible;white-space:normal;border:0;padding:0;background:transparent}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) #zoom button{width:auto;min-width:44px;display:flex;gap:6px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) #zoom button>span{position:static;width:auto;height:auto;clip-path:none;font-size:18px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) #zoom{flex-wrap:wrap}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .flock-count{font-size:22px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .care-board[data-zoom="1"] .seal-row{grid-template-columns:1fr}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .care-board[data-zoom="1"] .compact-name{font-size:24px}
@media(forced-colors:active){.care-expand .care-board[data-zoom="1"] .compact-name{display:none}}
/* Scope out the main app's unrelated search-wrapper framing. */
.care-expand .search-wrap{margin:0;padding:0;border:0;background:transparent;box-shadow:none;display:block}
.care-expand .toolbar .search{width:100%;box-sizing:border-box}
.care-expand .flock-group-heading{padding-bottom:0;margin-bottom:8px}
.care-expand .volunteer-label{flex-basis:100%}
/* Preserve legible dates and tappable weeks instead of squeezing enlarged text. */
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .activity-region{overflow-x:auto;padding-bottom:4px}
:is(.large-text .care-expand,.large-text-proof .care-expand,.care-expand.large-text,.care-expand.large-text-proof) .heat-grid{min-width:360px}

/* Keep explanatory material after the board; transient problems remain prominent. */
.care-expand .board-meta{margin-top:24px}
.care-expand .board-meta .manager-status{margin:8px 0 0}
.care-expand .board-load-status{font:12px/1.5 system-ui;color:var(--muted);margin:8px 0}
.care-expand .board-load-status:empty{display:none}
