:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243e36;background:#f5f6f2;font-synthesis:none;--green:#174c40;--muted:#667b70;--line:#dce5dc;--soft:#edf2ec}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;background:var(--soft);border:1px solid #d3dfd4;color:var(--green);border-radius:8px;min-height:36px;padding:7px 11px;font-size:12px;font-weight:650;white-space:nowrap}button:hover{background:#dfeade}button:disabled{opacity:.5;cursor:default}a{color:var(--green);text-decoration:none;font-size:13px}input,textarea{border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff;color:#243e36;font-size:16px;max-width:100%}textarea{width:100%;resize:vertical}label{display:block;font-size:13px;margin:12px 0 7px}:focus-visible{outline:3px solid #77a58e;outline-offset:3px}
header{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px max(20px,calc((100vw - 1440px)/2));background:#f5f6f2f5;backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}header a{font-size:11px}h1{font-size:23px;letter-spacing:-.8px;margin:2px 0 0}input[type=date]{width:155px;font-size:14px;padding:8px}main{max-width:1440px;margin:auto;padding:14px 20px 28px}.intro{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}#status{white-space:nowrap}#status.error,.error,#callback-error{color:#a14330}.privacy{font-size:11px;color:var(--muted);margin:5px 0 12px}.hero{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:var(--green);color:#fff;border-radius:14px;box-shadow:0 3px 12px #163e3510}.hero small{display:block;text-transform:uppercase;letter-spacing:1.2px;font-size:9px;color:#c7d9c7}.hero strong{display:block;font-size:23px;letter-spacing:-.6px;margin-top:2px}.hero p{font-size:11px;color:#c7d9c7;margin:3px 0 0}.hero .split-action button{background:#f4f7ed;border-color:#d6e1d1}.board-tools{display:flex;gap:12px;align-items:center;margin:13px 0}.search-field{display:flex;align-items:center;gap:7px;margin:0;background:#fff;border:1px solid var(--line);border-radius:9px;padding-left:10px;max-width:360px;flex:1}.search-field span{font-size:24px;color:var(--muted)}.search-field input{border:0;background:transparent;min-width:0;width:100%;padding:9px;font-size:14px}#board-counts{font-size:12px;color:var(--muted);white-space:nowrap}#search-empty{font-size:13px;color:var(--muted)}
.columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(350px,1fr);gap:22px}section,.right-column{min-width:0}.right-column{display:flex;flex-direction:column;gap:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px}h2{font-size:16px;letter-spacing:-.3px;margin:0}.section-head>span{font-size:11px;color:var(--muted)}#crnas,#callbacks,#tasks{background:#edf1e9;border:1px solid #e1e7dc;border-radius:14px;padding:13px}#tasks h2{margin:0 0 8px}#callbacks>.hint{margin:0 0 10px}
.person{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 11px;margin:0 0 6px;box-shadow:0 1px 2px #223d2e03}.person-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:9px}.person-top>div:first-child{min-width:0;overflow-wrap:anywhere;flex:1}.name{font-size:14px;font-weight:700;letter-spacing:-.15px}.role{font-size:11px;color:var(--muted);margin-left:7px}.provider-status{grid-column:1/-1;min-width:0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.split-action{display:inline-flex;align-items:stretch;flex-shrink:0}.split-action button{border-radius:0;min-height:34px;padding:6px 10px}.split-action button:first-child{border-radius:8px 0 0 8px}.split-action button:last-child{border-radius:0 8px 8px 0}.split-action button:only-child{border-radius:8px}.split-action button+button{border-left:0;width:32px;padding:4px;font-size:17px}.callback-rank{display:inline-block;margin-left:6px;background:#e3eddb;color:#3b5b29;border-radius:4px;padding:2px 5px;font-weight:650;font-size:10px}.home .name{text-decoration:line-through;color:#768579}.home .person-top{opacity:.95}.home{background:#f9faf7}.hint{font-size:12px;line-height:1.5;color:var(--muted)}
.meals{display:flex;align-items:center;gap:5px;flex-wrap:wrap;grid-column:1}.meals:empty{display:none}.meal{min-height:28px;font-size:11px;padding:4px 8px;background:#fff;border-color:#e1e8dd;color:#63786b}.meal.given{background:#e4efdf;border-color:#b4ceaa;color:#3d6332}.person details{grid-column:2;min-width:0}.person summary{cursor:pointer;font-size:11px;color:var(--green);min-height:28px;display:flex;align-items:center;justify-content:flex-end;overflow-wrap:anywhere}.person details[open],.person details.has-plan{grid-column:1/-1}.person details.has-plan summary{justify-content:flex-start;background:#f4f6ef;padding:5px 8px;border-radius:6px}.plan-fields{display:flex;gap:7px;flex-wrap:wrap;margin:7px 0 3px}.plan-fields textarea{flex:1;min-width:160px}.plan-fields input{width:118px}.plan-fields button{align-self:end}#departed,#crna-departed{margin-top:8px;border-top:1px solid var(--line)}#departed>summary,#crna-departed>summary{padding:12px 2px;cursor:pointer;font-size:13px;color:var(--muted)}
.task-entry{display:flex;gap:7px}.task-entry input{min-width:0;flex:1}.task{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:7px 0}.task label{display:flex;align-items:center;gap:9px;flex:1;min-width:0;margin:0;font-size:13px}.task span{overflow-wrap:anywhere}.task input{width:20px;height:20px;margin:0;flex-shrink:0;accent-color:var(--green)}.task.done span{text-decoration:line-through;color:var(--muted)}.task>button{background:transparent;border:0;font-size:20px;padding:4px 9px;color:var(--muted)}#task-undo{font-size:12px;margin-top:7px}#task-undo:empty{display:none}#save-notes{margin-top:6px}nav{display:none}
dialog{border:1px solid #dce5dc;border-radius:18px;padding:22px;width:min(500px,calc(100vw - 24px));max-height:88dvh;overflow:auto;color:#243e36;box-shadow:0 24px 80px #153e342d}dialog::backdrop{background:#132b2660;backdrop-filter:blur(3px)}dialog p{font-size:13px;line-height:1.5}dialog h2{font-size:21px}dialog button{min-height:42px}.callback-actions,.text-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:16px;position:sticky;bottom:-22px;padding:12px 0;background:#fff}#callback-submit{background:var(--green);color:#fff;white-space:normal}#text-number{width:100%}#text-status{font-size:13px}#text-unlock{background:var(--soft);padding:12px;border-radius:10px}#contacts-pin{width:100%;margin-bottom:8px}#contacts-unlock{width:100%}.sms-button{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;min-height:42px;padding:10px 13px;background:var(--green);color:#fff;font-weight:650}.sms-button[aria-disabled=true]{opacity:.45}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-22px;background:#fff;padding:12px 0;z-index:1}.sheet-header small{font-size:9px;letter-spacing:1.4px;color:var(--muted)}.sheet-header h2{margin-top:4px}.sheet-header button{border:0;background:var(--soft);width:42px;font-size:24px}#actions-context{margin:0 0 14px;color:var(--muted);font-size:12px}#provider-actions{display:flex;flex-direction:column;gap:8px}#provider-actions>button,#provider-actions>a{width:100%;text-align:left;justify-content:flex-start;padding:12px 14px;font-size:14px;min-height:48px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--green)}#provider-actions>button:first-child{background:var(--green);color:#fff}.text-provider{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;font-size:16px;padding:4px;min-width:30px}
@media(min-width:1100px){
 .hero{padding:10px 16px}.hero>div:first-child{display:flex;align-items:center;gap:12px}.hero small{letter-spacing:1px}.hero strong{margin:0;font-size:21px}.hero p{margin:0}.board-tools{margin:10px 0}.privacy{margin-bottom:8px}
 #people .person{display:grid;grid-template-columns:minmax(140px,1fr) auto auto;gap:6px;align-items:center;padding:5px 9px;min-height:42px;margin-bottom:4px;border-radius:8px}
 #people .person-top{display:contents}#people .person-top>div:first-child{grid-column:1;grid-row:1;line-height:1.4}#people .person-top .split-action{grid-column:3;grid-row:1}#people .meals{grid-column:2;grid-row:1}#people .person details{grid-column:1/-1;grid-row:2}#people .person summary{justify-content:flex-start}#people .person details.has-plan,#people .person details[open]{grid-column:1/-1;grid-row:2}#people .provider-status{grid-column:1/-1;grid-row:2}#people .person:has(.provider-status) details{grid-row:3}#people .split-action button{min-height:32px;font-size:11px;padding:5px 8px}#people .split-action button+button{width:27px}#people .role{font-size:10px}#people .name{font-size:13px}
}
@media(max-width:760px){header{padding:9px 14px;min-height:68px}h1{font-size:22px}main{padding:10px 12px calc(88px + env(safe-area-inset-bottom))}.intro{font-size:11px}.privacy{font-size:10px;margin-bottom:10px}.hero{padding:11px 13px;border-radius:12px}.hero strong{font-size:21px}.hero p{display:none}.hero .split-action button{min-height:44px}.board-tools{gap:8px;margin:10px 0 14px}.search-field{max-width:none}.search-field input{font-size:16px;padding:9px 5px}.search-field span{font-size:21px}#board-counts{display:none}.columns{display:block}.right-column{display:block}.section-head{margin-bottom:9px}#crnas,#callbacks,#tasks{padding:0;border:0;background:transparent}.person{padding:9px 10px;margin-bottom:6px;border-radius:11px;gap:1px 6px}.name{font-size:14px}.role{font-size:10px;margin-left:5px}.assignment{font-size:12px;margin-top:2px}.split-action button{min-height:44px;padding:6px 9px;font-size:12px}.split-action button+button{width:36px;font-size:17px}.person-top{gap:5px}.meal{min-height:36px;padding:5px 8px}.person summary{min-height:36px}.callback-rank{margin:3px 0 0 4px}.person-top>div:first-child{line-height:1.4}.plan-fields button{min-height:44px}nav{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;gap:4px;padding:8px 9px calc(8px + env(safe-area-inset-bottom));background:#f8faf6f7;backdrop-filter:blur(18px);border-top:1px solid var(--line);box-shadow:0 -4px 18px #173d3506}nav button{flex:1;min-width:0;min-height:48px;padding:7px 4px;border:0;border-radius:10px;background:transparent;color:#6c8074;font-size:11px}nav button[aria-pressed=true]{background:var(--green);color:#fff;box-shadow:0 2px 7px #173d3515}body:not([data-tab="crnas"]) #crnas,body:not([data-tab="callbacks"]) #callbacks,body:not([data-tab="tasks"]) #tasks{display:none}body[data-tab="crnas"] #team,body[data-tab="callbacks"] #team,body[data-tab="tasks"] #team{display:none}body[data-tab="crnas"] #next,body[data-tab="callbacks"] #next,body[data-tab="tasks"] #next{display:none}body[data-tab="tasks"] .board-tools{display:none}#actions-dialog{margin:auto 0 0;width:100%;max-width:none;border-radius:20px 20px 0 0;padding:15px 18px calc(16px + env(safe-area-inset-bottom));max-height:85dvh}#actions-dialog .sheet-header{top:-15px;padding-top:5px}.callback-actions button{flex:1}#notes{min-height:110px}.task-entry button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-width:760px){.person-top{display:contents}.person-top>div:first-child{grid-column:1;grid-row:1}.person-top .split-action{grid-column:2;grid-row:1/3;align-self:start}.assignment{grid-column:1;grid-row:2;margin:0}.meals{grid-column:1;grid-row:3}.person details{grid-column:2;grid-row:3}.person details.has-plan,.person details[open]{grid-column:1/-1;grid-row:4}.person{grid-template-columns:minmax(0,1fr) auto}.person:has(.assignment:empty){min-height:66px}}

.date-controls{display:flex;gap:6px;align-items:center}.date-controls button{font-size:11px;padding:6px 8px}/* One place for feedback: the message pill and the Undo pill sit together just above the tab bar. */.board-pills{position:fixed;z-index:6;bottom:18px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 24px);pointer-events:none}#board-undo,.board-toast{pointer-events:auto;background:#173f35;color:white;border-radius:10px;box-shadow:0 5px 20px #183a3028;padding:8px 12px;font-size:13px;line-height:1.4;display:flex;align-items:center;gap:12px;max-width:100%;overflow-wrap:anywhere}#board-undo button,.board-toast button{background:#e6efdf;flex-shrink:0}.board-toast.error{background:#8a3221}
@media(min-width:1100px){#people .person{padding:4px 9px;margin-bottom:3px;min-height:40px}}
@media(min-width:761px){.right-column .person-top{display:contents}.right-column .person-top>div:first-child{grid-column:1;grid-row:1}.right-column .person-top .split-action{grid-column:2;grid-row:1/3;align-self:start}.right-column .assignment{grid-column:1;grid-row:2}.right-column .meals{grid-column:1;grid-row:3}.right-column .person details{grid-column:2;grid-row:3}.right-column .person details.has-plan,.right-column .person details[open]{grid-column:1/-1;grid-row:4}}
@media(max-width:760px){.board-pills{bottom:calc(82px + env(safe-area-inset-bottom))}.date-controls input{width:143px}.date-controls button{min-height:40px}}

@media(max-width:380px){header{padding:9px 10px}.date-controls{gap:4px}.date-controls input{width:127px;font-size:13px}.date-controls button{padding:5px 6px}h1{font-size:20px}}
.staffing-tools{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.staffing-event{padding:12px 0;border-bottom:1px solid #dfe6dc}.staffing-event small{display:block;margin:5px 0}.staffing-event p{color:#93552d;font-size:12px}#staffing-history{padding:12px;background:white;border:1px solid #dfe6dc;border-radius:10px}#staffing-body label{display:block;margin:14px 0}#staffing-body input,#staffing-body textarea,#staffing-body select{display:block;width:100%;min-width:0;padding:10px;font:inherit;font-size:16px;margin-top:6px;border:1px solid #ccd8cf;border-radius:6px;background:white}#staffing-body{padding:4px 0;line-height:1.5}#staffing-error{color:#a04e30}@media(max-width:760px){body:not([data-tab=callbacks]) #staffing-history{display:none}}

/* Desktop: the two teams share the first row; day-management tools sit below. */
@media(min-width:761px){
 .columns{grid-template-areas:"team crnas" "callbacks tasks" "history tasks";align-items:start;gap:18px 22px}
 .right-column{display:contents}
 #team{grid-area:team}#crnas{grid-area:crnas}#callbacks{grid-area:callbacks}#tasks{grid-area:tasks}#staffing-history{grid-area:history}
}

#reserve-status:empty{display:none}
/* Shared tracks keep physician actions and meal controls aligned. */
@media(min-width:1100px){
 #people .person{grid-template-columns:minmax(180px,1fr) 80px 108px}
 #people .person-top>div:first-child{overflow-wrap:anywhere}
 #people .meals{justify-content:flex-start}
 #people .person-top .split-action{justify-self:end}
}

.meal-time{display:inline;font-size:10px;margin-left:4px}
@media(min-width:1100px){
 #people .meals{min-width:0;max-width:100%}
 #people .meal{max-width:100%;white-space:normal}
 #people .meal-time{display:block;margin:2px 0 0;line-height:1.15}
}

/* Connection and conflict messages must remain readable on small screens. */
.intro> *{min-width:0}#status{white-space:normal;overflow-wrap:anywhere;text-align:right;flex:1}

.pscv-finish{display:inline-block;margin-left:6px;font-weight:650;color:#244b40;white-space:nowrap}

.prototype-banner{background:#fff3cb;padding:10px;border-radius:8px;font-size:12px}#assignment-dialog{width:min(480px,calc(100vw - 24px));box-sizing:border-box;max-height:85dvh;overflow:auto}#assignment-dialog input,#assignment-dialog select{display:block;width:100%;box-sizing:border-box;margin:6px 0 14px;font-size:16px;padding:11px;border:1px solid #cad7cd;border-radius:8px}#assignment-dialog label{display:block;font-weight:600}#assignment-dialog h2{font-size:20px}.assignment-summary{padding:12px;background:#eef3eb;border-radius:10px;margin-bottom:16px}#assignment-save{width:100%;margin-top:10px;min-height:44px;background:#244b40;color:white}#assignment-error{color:#a22;font-size:13px}

#assignment-dialog .transfer-choice{border:1px solid #cad7cd;border-radius:8px;padding:10px;margin:12px 0}#assignment-dialog .transfer-choice label{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:14px}#assignment-dialog .transfer-choice input{display:inline;width:auto;margin:0}

/* Group optional provider actions without growing the live rows. */
#actions-dialog{box-sizing:border-box}#provider-actions{gap:14px}.action-category{margin:0}.action-category h3{margin:0 0 6px;font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:#64786e}.action-category-buttons{display:grid;grid-template-columns:1fr;gap:6px}.action-category-buttons>button,.action-category-buttons>a{width:100%;box-sizing:border-box;text-align:left;justify-content:flex-start;padding:10px 12px;font-size:14px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--green);white-space:normal;text-decoration:none}.action-category:first-child .action-category-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.action-category:first-child .action-category-buttons>button:only-child{grid-column:1/-1}.action-category:first-child .action-category-buttons>button:first-child{background:var(--green);color:white}.action-category summary{font-size:13px;font-weight:600;min-height:44px;display:list-item;padding:12px 0;cursor:pointer;color:#64786e}.action-category[open] summary{padding-bottom:8px}details.action-category{border-top:1px solid var(--line)}#actions-dialog>.hint{font-size:11px;margin-bottom:0}.action-category-buttons .text-provider{font-size:14px;display:flex}

#add-live-crna{font-size:12px;margin-bottom:10px}.coverage-needed{padding:12px;background:#fff5df;border:1px solid #e6cf91;border-radius:10px;margin-bottom:12px;font-size:13px}.coverage-needed>div{display:grid;gap:5px;padding-top:10px}.coverage-needed span{font-size:13px;color:#4f4330}.coverage-needed button{justify-self:start;min-height:40px}#crna-unavailable>summary{padding:12px 0;color:#68796a;font-size:13px}

#sync-status{display:inline-block;margin-left:8px;font-size:12px;color:var(--green)}#sync-status.error{color:#a13d25}

#additional-coverage>summary{padding:12px 2px;cursor:pointer;font-size:13px;color:var(--green)}#next-callback .person.home{opacity:1}

.coverage-group-title{font-size:12px;color:var(--muted);margin:16px 0 7px;font-weight:650}#coverage-reference>summary{padding:12px 2px;cursor:pointer;font-size:13px;color:var(--muted)}.reference-person{opacity:.75}

.board-text-review{max-width:600px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;padding:20px;border:1px solid #d6e1d6;border-radius:16px}.board-text-review section{border-top:1px solid #d6e1d6;padding:12px 0}.board-text-review pre{overflow-wrap:anywhere;font-family:inherit}.board-text-review button{margin-top:12px}
.edit-home-time{font:inherit;color:inherit;background:transparent;border:0;padding:2px 0;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer}
#departure-time-dialog{width:min(440px,calc(100vw - 32px));box-sizing:border-box;padding:22px;border:1px solid var(--line,#d5ded2);border-radius:18px}
#departure-time-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#departure-time-dialog input{display:block;box-sizing:border-box;width:100%;min-width:0;font-size:16px;padding:12px;margin-top:8px}
#departure-time-dialog p{line-height:1.5}#departure-error{color:#9b3b22}
#coverage-plan-summary{border:1px solid #afc9c0;border-radius:12px;background:#edf4ee;padding:12px 14px;margin:0 0 12px;font-size:13px}#coverage-plan-summary p{margin:6px 0}#coverage-plan-summary details{margin-top:8px}
.coverage-boundary{border-top:3px solid #ad6e18;background:#fff4dc;color:#664213;padding:10px 12px;margin:16px 0 8px;border-radius:0 0 8px 8px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;font-size:13px}.coverage-boundary.short{border-color:#aa3d2b;background:#fff0eb;color:#8b3020}.coverage-boundary[hidden]{display:none}.coverage-plan-warning{color:#9c3924;font-weight:600}
#coverage-plan-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:20px;border:1px solid #d1ded5;border-radius:18px}#coverage-plan-dialog label{display:block;margin:12px 0}#coverage-plan-dialog input:not([type=checkbox]),#coverage-plan-dialog select{display:block;box-sizing:border-box;width:100%;min-width:0;padding:10px;margin-top:5px;font-size:16px}#coverage-plan-dialog p{line-height:1.45}.coverage-plan-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.coverage-plan-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.coverage-dod{font-size:14px}#coverage-plan-preview{font-size:13px}#coverage-plan-error{color:#9c3924}
#coverage-plan-dialog select{border:1px solid #d1ded5;border-radius:10px;background:#fff;color:#244439}

#home-confirm-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #d1ded5;border-radius:18px}
#home-confirm-dialog h2{font-size:22px;margin:0 0 20px;overflow-wrap:anywhere}
#home-confirm-dialog label{display:block;font-weight:600}
#home-confirm-dialog input{display:block;box-sizing:border-box;width:100%;min-width:0;font-size:16px;padding:12px;margin-top:8px}
#home-confirm-dialog p{font-size:14px;line-height:1.5}
#home-confirm-error{color:#9c3924}
.home-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.home-confirm-actions button{min-height:44px}
#home-confirm-save{background:#244b40;color:white}
#staffing-body .callback-options{border:1px solid #ccd8cf;border-radius:8px;padding:8px 12px;margin:16px 0}#staffing-body .callback-options legend{font-weight:700}#staffing-body .callback-options label{display:flex;align-items:center;gap:10px;padding:6px 0;margin:6px 0}#staffing-body .callback-options input{display:inline-block;width:18px;height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:var(--green)}
.notification-options{border:1px solid #ccd8cf;border-radius:8px;padding:8px 12px;margin:14px 0}.notification-options legend{font-weight:700}#staffing-body .notification-options label,#home-confirm-dialog .notification-options label{display:flex;align-items:center;gap:10px;min-height:40px;margin:4px 0;font-weight:400}#staffing-body .notification-options input,#home-confirm-dialog .notification-options input{display:inline-block;width:18px;height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:var(--green)}.staffing-details summary{cursor:pointer;font-size:13px}.plan-fields .hint{flex-basis:100%;margin:0 0 8px}.home-confirm-actions{flex-wrap:wrap}#staffing-confirm{min-height:44px;white-space:normal}#home-confirm-dialog{max-height:90dvh;overflow:auto}#home-confirm-dialog .home-confirm-actions{position:sticky;bottom:-1px;background:white;padding-top:12px}
@media(pointer:coarse){.split-action>button,.action-category-buttons>button,.notification-options label{min-height:44px}}

/* Keep callback people together; secondary setup lives below the list. */
#additional-coverage,#board-tools-menu,#callbacks>#staffing-history{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;margin:8px 0 0;padding:0}
#additional-coverage>summary,#board-tools-menu>summary,#callbacks>#staffing-history>summary{cursor:pointer;min-height:44px;padding:13px 2px;font-size:13px;font-weight:600;color:var(--green)}
#departed{border:0;margin:0}#departed .coverage-group-title{margin-top:8px}
.board-tool-list{display:grid;gap:8px;padding:0 0 12px}
.board-tool-list button{display:block;text-align:left;white-space:normal;padding:12px;background:white;border:1px solid var(--line);border-radius:10px;min-height:44px}
.board-tool-list strong,.board-tool-list span{display:block}.board-tool-list strong{font-size:13px}.board-tool-list span{font-size:12px;color:var(--muted);line-height:1.4;margin-top:4px;font-weight:400}
@media(min-width:761px){.columns{grid-template-areas:"team crnas" "callbacks tasks"}.board-tool-list{grid-template-columns:1fr 1fr}}

/* Names and meaningful status stay readable at a glance. */
.person .name,#people .name{font-size:16px}
.person .role,#people .role{font-size:12px;color:#526b5e}
.person .assignment{font-size:14px;line-height:1.4}
.person summary{font-size:12px}.meal,.meal-time{font-size:12px}
.split-action button,#people .split-action button{font-size:13px}
@media(min-width:1100px){
 #people .person{grid-template-columns:minmax(180px,1fr) 100px 128px;gap:3px 8px}
 #people .person:not(:has(.has-plan)):not(:has(details[open])) details{grid-column:3;grid-row:2}
 #people .person summary{min-height:24px}
 #people .split-action button{min-height:36px}.person .role{display:inline-block}
}
@media(max-width:760px){
 main{padding-top:6px}.intro{font-size:12px}.privacy{font-size:12px;margin-bottom:6px}
 .board-tools{margin:8px 0}.section-head{margin-bottom:6px}.hero{padding:9px 12px}
 .person{padding:7px 10px;gap:0 6px}.person .role{display:block;margin:2px 0 0;line-height:1.3}
 .person .name{font-size:16px}.person .assignment{font-size:14px}
 .split-action button,#people .split-action button{min-height:44px;font-size:13px}
 .meal,.person summary{min-height:40px;font-size:12px}.meal-time{font-size:12px}
 nav:not(.workspace-switch) button{font-size:13px;min-height:44px}
}

/* A board opened on another date is easy to mistake for today's. */
.not-today-banner{background:#fff3cd;color:#6b4e00;border:1px solid #e6c766;border-radius:8px;padding:10px 12px;font-weight:600;margin-bottom:10px}
/* Phones: the note form appears from the person's menu, or once a note exists. */
@media(max-width:760px){.person details:not(.has-plan):not([open]){display:none}}

.time-reading{display:block;min-height:1.4em;margin-top:6px;font-size:13px;font-weight:500;color:var(--muted)}.time-reading.invalid{color:#a14330}
.plan-fields .time-reading{flex-basis:100%;margin:-3px 0 0;min-height:0}.plan-fields .time-reading:empty{display:none}

/* A solid, body-level dock avoids blur compositing during iOS startup scrolling. */
@media(max-width:760px){
 .board-tabs{position:fixed;top:auto;bottom:0;left:0;right:0;background:#f8faf6;backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* Keep physician lunch controls beside the identity, including after marking lunch. */
@media(max-width:1099px){
 #people .person{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:3px 6px}
 #people .person-top{display:contents}
 #people .person-top>div:first-child{grid-column:1;grid-row:1}
 #people .person-top .split-action{grid-column:3;grid-row:1;align-self:center;justify-self:end}
 #people .meals{grid-column:2;grid-row:1;min-width:0}
 #people .meal{min-height:44px;min-width:62px;padding:5px 7px}
 #people .meal-time{display:block;margin:2px 0 0;line-height:1.15;font-size:11px}
 #people .provider-status{grid-column:1/-1;grid-row:2}
 #people .person details,#people .person details.has-plan,#people .person details[open]{grid-column:1/-1;grid-row:3}
}
.phones-open{font-size:12px;padding:6px 10px}#phone-dialog{width:min(560px,calc(100vw - 24px));box-sizing:border-box}#phone-dialog .phone-search{max-width:none;margin:2px 0 4px}#phone-status:empty{display:none}.phone-group{margin:16px 0 7px;font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:var(--muted)}.phone-top{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.phone-tile{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border-radius:11px;background:var(--green);color:#fff;min-height:64px;justify-content:center}.phone-tile span{font-size:13px;color:#d6e6d6}.phone-tile strong{font-size:20px;letter-spacing:.2px;font-variant-numeric:tabular-nums}.phone-rows{list-style:none;margin:0;padding:0}.phone-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:6px 0;border-bottom:1px solid var(--line)}.phone-row strong{font-size:14px}.phone-row small{display:block;font-size:12px;color:var(--muted)}.phone-number{font-size:16px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--green)}a.phone-number{padding:8px 0 8px 10px}.phone-footnote{margin-top:16px}.phone-link{background:none;border:0;padding:0;min-height:0;text-decoration:underline;font-size:12px}#phone-editor>#phone-add{width:100%;margin:6px 0 10px}.phone-edit-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:6px;border:1px solid var(--line);border-radius:10px;padding:9px;margin:0 0 8px}.phone-edit-row input,.phone-edit-row select{width:100%;min-width:0;font-size:16px;padding:8px;border:1px solid #ccd8cf;border-radius:7px;background:#fff}.phone-top-check{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.phone-top-check input{width:18px;height:18px;accent-color:var(--green)}.phone-edit-row button{justify-self:end;background:transparent;border:0;color:#a14330;min-height:36px}.phone-save-bar{position:sticky;bottom:-22px;background:#fff;padding:10px 0 12px;border-top:1px solid var(--line)}.phone-save-row{display:flex;gap:8px}#phone-pin{flex:1;min-width:0;font-size:16px}#phone-error{color:#a14330;font-size:13px;margin:0 0 8px}#phone-error:empty{display:none}.phone-primary{background:var(--green);color:#fff}
@media(max-width:760px){.phones-open{min-height:40px;padding:5px 8px}#phone-dialog{margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0;padding:12px 16px calc(16px + env(safe-area-inset-bottom))}#phone-dialog .sheet-header{top:-12px}#phone-dialog .phone-save-bar{bottom:calc(-16px - env(safe-area-inset-bottom))}.phone-top{grid-template-columns:1fr 1fr}.phone-tile strong{font-size:19px}}
@media(max-width:380px){.phones-open{padding:5px 6px;font-size:11px}}

.head-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}#meo-next{background:var(--green);border-color:var(--green);color:#fff}#meo-next:hover{background:#0f3a30}
.meo-next-pick{display:flex;flex-direction:column;gap:3px;padding:12px 14px;margin:4px 0 12px;background:var(--soft);border:1px solid var(--line);border-radius:10px}.meo-next-pick small{font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:var(--muted);font-weight:650}.meo-next-pick strong{font-size:20px;color:var(--green)}.meo-next-pick span{font-size:13px;color:var(--muted)}
.meo-passed{margin:10px 0;font-size:13px}.meo-passed summary{cursor:pointer;color:var(--muted);font-weight:600;padding:4px 0}.meo-passed ul{margin:6px 0 0;padding-left:18px;line-height:1.6}.meo-passed li strong{font-weight:600}
.meo-next-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.meo-next-actions>button{flex:1 1 auto}#meo-skip{background:#fff}.meo-next-actions>#staffing-confirm{background:var(--green);border-color:var(--green);color:#fff}

/* Pending saves: the tapped control shows it is working; other controls stay usable. */
[aria-busy=true]{opacity:.65;cursor:progress}
/* The last board this device saw, shown while the fresh one loads. */
body.board-stale .columns,body.board-stale #next{opacity:.6}
.credit-banner{background:#fff0eb;color:#7d2a1a;border:1px solid #e3a593;border-radius:8px;padding:8px 12px;margin-bottom:10px;font-size:13px}.credit-banner p{margin:4px 0;line-height:1.45}.credit-banner button{margin-left:6px;min-height:32px;background:#fff;border-color:#e3a593;color:#7d2a1a}
.health-slot{flex-shrink:0}.health-slot:empty{display:none}
.empty-day{padding:14px 16px;border:1px dashed #b9cbbb;border-radius:12px;background:#fff;font-size:14px;line-height:1.5}.empty-day p{margin:0 0 6px}.empty-day-link{display:inline-block;margin-top:4px;padding:9px 12px;border-radius:8px;background:var(--green);color:#fff;font-weight:650;font-size:13px}
.load-error{color:#a14330;font-size:14px}.load-error button{margin-left:6px}
/* Phones: no 300 ms double-tap wait on buttons, no iOS zoom on focus (16 px), and no header blur while scrolling. */
button{touch-action:manipulation}
@media(pointer:coarse){input[type=date],.board-controls .date-controls input#date,.board-text-review select{font-size:16px}}
@media(max-width:760px){body header,body header.workspace-header{backdrop-filter:none;-webkit-backdrop-filter:none}body header.workspace-header{background:#fff}body header.board-controls{background:#f5f6f2}}
.board-text-review{padding:0 20px 16px}.board-text-review .sheet-header{top:0}.board-text-review h2{font-size:19px;margin:0}.board-text-review h3{font-size:14px;margin:0 0 6px}.board-text-review select{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #ccd8cf;border-radius:8px;background:#fff;font:inherit}.review-actions{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:-16px;background:#fff;padding:12px 0}.review-actions .primary{background:var(--green);color:#fff}
/* What happened (public/what-happened.js): a switch beside the board, and the day as it ran. */
.wh-switch{display:flex;max-width:420px;background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:3px;margin:4px 0 12px}
.wh-switch button{flex:1;background:transparent;border:0;color:var(--muted);font-size:13px;min-height:34px}
.wh-switch button[aria-pressed="true"]{background:#fff;color:var(--green);box-shadow:0 1px 3px #163e3518}
.wh-panel{display:none}
body.wh-on .wh-panel{display:grid;gap:10px;max-width:760px;margin-bottom:24px}
body.wh-on #next,body.wh-on .board-tools,body.wh-on #search-empty,body.wh-on .columns,body.wh-on .board-tabs{display:none!important}
.wh-title{font-size:19px;letter-spacing:-.4px;margin:0}
.wh-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.wh-card h3{font-size:14px;margin:0 0 8px}
.wh-list,.wh-rows,.wh-outs{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:14px}
.wh-note,.wh-reason,.wh-moved{color:var(--muted);font-size:13px}
.wh-note::before{content:"· "}
.wh-timeline{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.wh-timeline li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;font-size:14px}
.wh-timeline time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:13px;padding-top:1px}
.wh-timeline .wh-reason,.wh-timeline .wh-moved{display:block;margin-top:2px}
.wh-moved{color:#6f4d12}
.wh-rows li{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:8px;align-items:baseline;padding:5px 0;border-top:1px solid var(--line)}
.wh-rows li:first-child{border-top:0}
.wh-pos{color:var(--muted);font-size:13px}
.wh-chip{display:inline-block;font-size:11px;font-weight:650;border-radius:999px;padding:1px 8px;white-space:nowrap}
.wh-chip.move{background:#fbf1dc;color:#7a520f}
.wh-chip.meo{background:#f7e6e0;color:#7a3b2e}
.wh-outs li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:8px}
.wh-outs li.warn span{color:#8a4a12}
.wh-quiet{color:var(--muted);font-size:12px;margin:8px 0 0}
.wh-empty{background:#fff;border:1px dashed var(--line);border-radius:12px;padding:16px;color:var(--muted);font-size:14px}
/* Run today redesign, step 2 (2026-10-14): planned finish strip, Still working / Finished, Next out card. */
#people .person.peel-row{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;padding:0;min-height:0;margin:0 0 4px;border-radius:10px;overflow:hidden}
#people .peel-row.is-next{background:#f3f8e8;border-color:#bcd39a}
#people .peel-row.is-passed{background:#fbf5e8;border-color:#ead8b0}
.peel-open{all:unset;box-sizing:border-box;flex:1 1 420px;min-width:0;display:grid;grid-template-columns:72px minmax(72px,1fr) 46px minmax(110px,2fr) 138px;align-items:center;gap:8px;padding:7px 10px;cursor:pointer;color:#203c36;font-variant-numeric:tabular-nums}
.peel-open:focus-visible{outline:3px solid #77a58e;outline-offset:-3px;border-radius:10px}
.peel-role{font-size:12px;color:#586b61;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.peel-name{font-size:17px;font-weight:750;letter-spacing:-.3px;font-stretch:88%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.peel-pscv{font-size:12px;font-weight:700;color:#174a43;white-space:nowrap}
.peel-strip{position:relative;height:10px;border-radius:5px;background:#eef0ea}
.peel-bar{position:absolute;top:0;bottom:0;border-radius:5px;box-sizing:border-box}
.is-planned .peel-bar,.is-passed .peel-bar{border:1.5px dashed #7f9a8c;background:transparent}
.is-passed .peel-bar{border-color:#c49a52}
.is-checked .peel-bar{background:#174a43}
.is-finished .peel-bar{background:#c9d6c0}
.peel-now{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:#c27a00;border-radius:1px}
.peel-end{font-size:13px;font-weight:650;text-align:right;color:#6b7d73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.is-checked .peel-end{color:#203c36}.is-finished .peel-end{color:#174a43}.is-passed .peel-end{color:#8a5200}
.peel-extra{grid-column:2/-1;font-size:12px;color:#586b61;margin-top:-4px}
.peel-actions{display:flex;gap:5px;padding:5px 8px 5px 0}
.peel-actions button{min-height:30px;font-size:12px;padding:4px 7px;background:#fff}
@media(max-width:1099px){.peel-actions{display:none}.peel-open{flex-basis:100%}}
.peel-actions button[aria-pressed=true]{background:#e6efe0}
#people .peel-row details{flex:1 0 100%;padding:0 10px 6px 90px}
#people .peel-row details:not([open]):not(.has-plan){display:none}
.next-out{background:#d4e7a4;color:#203c36;flex-wrap:wrap;box-shadow:none}
.next-out small{text-transform:none;letter-spacing:0;font-size:13px;font-weight:650;color:#203c36}
.next-out strong{font-size:30px;font-stretch:80%;letter-spacing:-.6px;color:#14302a}
.next-out p{font-size:14px;color:#203c36}
.next-out-actions{display:flex;gap:6px;align-items:center}
.next-out-actions button{min-height:44px;font-size:14px;background:transparent;border-color:#9fb88a;color:#203c36}
.next-out-actions .send-home{background:#174a43;border-color:#174a43;color:#fff;font-size:15px;padding:8px 16px}
.next-out .next-relief{flex:1 0 100%;border-top:1px solid #b7cf92;padding-top:8px;margin:0}
.next-out.is-snoozed{padding:8px 14px}.next-out.is-snoozed p{margin:0}
.next-out.is-empty{background:#edf3e6}
@media(max-width:760px){
 .peel-actions{display:none}
 .peel-open{flex-basis:100%;grid-template-columns:76px minmax(0,1fr) auto;grid-template-areas:"role name end" "pscv strip strip" "extra extra extra";gap:5px 8px;padding:9px 12px}
 .peel-role{grid-area:role}.peel-name{grid-area:name;font-size:19px}.peel-end{grid-area:end}.peel-pscv{grid-area:pscv}.peel-strip{grid-area:strip;align-self:center}.peel-extra{grid-area:extra;margin:0}
 #people .peel-row details{padding:0 12px 8px}
 .hero.next-out p{display:block}
 .next-out{padding:14px}
 .next-out>div:first-child{display:block!important}
 .next-out-actions{flex:1 0 100%}.next-out-actions .send-home{flex:1}
}
.next-out>div:first-child{display:block}
.hero.next-out .next-relief strong,.hero.next-out.is-snoozed strong{display:inline;font-size:inherit;letter-spacing:0;margin:0;font-stretch:normal}
.hero.next-out .next-relief{font-size:14px}
/* Run today redesign, step 3 (2026-10-14): Archivo, Home list, phone header with a menu. */
@font-face{font-family:Archivo;src:url(/fonts/archivo-latin.woff2) format('woff2');font-weight:100 900;font-stretch:62% 125%;font-display:swap}
.board-page{font-family:Archivo,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.board-page button,.board-page input,.board-page textarea{font-family:inherit}
.board-page .peel-name,.board-page .home-name,.board-page .next-out strong{font-stretch:78%}
.people-home{margin-top:14px}
.people-home h3{font-size:14px;margin:0 0 6px}
.home-line{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:8px;align-items:center;padding:4px 10px;color:#586b61}
.home-name{font-size:16px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-line .edit-home-time{min-height:30px;background:transparent;border:0;color:#586b61;font-weight:500;font-size:13px}
.person.shift-ended{opacity:.85}
.board-menu-open{display:none}
#board-menu{max-width:420px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:16px;padding:16px}
.board-menu-links{display:flex;flex-direction:column;gap:4px;margin:6px 0 12px}
.board-menu-links a{display:block;padding:12px 10px;border-radius:10px;background:var(--soft);font-size:15px;font-weight:600}
#board-menu-phones{width:100%;min-height:44px;font-size:15px}
#board-menu-account{margin-top:12px}
#board-menu-account .vaa-account{display:flex;flex-wrap:wrap;gap:6px;width:100%}
@media(max-width:760px){
 .board-page .workspace-header{display:none}
 .board-page .board-controls{min-height:0;padding:8px 12px;gap:8px}
 .board-page .board-controls h1{font-size:20px}
 .board-page #phones-open{display:none}
 .board-page .board-menu-open{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:20px;padding:0}
 .board-page .date-controls{gap:6px}
 .board-page .privacy-text{display:none}
 .board-page .privacy{margin:0 0 6px}
 .board-page .intro{margin-top:2px}
 .home-line{padding:6px 12px;grid-template-columns:76px minmax(0,1fr) auto}
}
/* Lunch stays on the physician row (owner, 2026-10-14). */
.peel-meals{display:flex;gap:5px;align-items:center;padding:5px 0}
.peel-meals .meal{min-height:30px;font-size:12px;padding:4px 9px;background:#fff}
@media(max-width:1099px){.peel-meals{flex:1 0 100%;padding:0 12px 9px 92px;margin-top:-4px}}
@media(max-width:760px){.peel-meals{padding:0 12px 10px 96px}.peel-meals .meal{min-height:36px;padding:5px 12px;font-size:13px}}
.peel-meals .meal{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.peel-meals .meal-time{display:inline;margin:0;font-size:inherit;font-weight:500}
@media(max-width:760px){.peel-meals{padding:0 12px 8px 96px;margin-top:-2px}.peel-meals .meal{min-height:34px;padding:4px 11px}}
/* Special requests from the PSCV page on the requested person's row (special-requests.js). */
.req-icon{width:12px;height:12px;flex:none;vertical-align:-2px;margin-right:3px}
.req-run{display:inline-flex;align-items:center;gap:2px;background:#f1fad6;color:#0f3631;border:1px solid #8db33a;border-radius:6px;padding:0 6px;font-size:12px;font-weight:700;margin-right:6px}
.req-run.is-not{background:#fff6e0;border-color:#e3b85a}
.person-request{grid-column:1/-1;margin:2px 0 0}

/* An unfinished Create-schedule unMEO update (review 2026-10-16): send its email or finish without it. */
.creator-update-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.board-menu-links a small{font-size:12px;font-weight:500;color:var(--muted);margin-left:6px}
