/* Schedule creator: progressive controls and a focused phone workspace. */
.planner-settings{margin:0 12px 8px;border:1px solid #e3e9df;border-radius:8px;background:#f8faf6}
.planner-settings>summary{cursor:pointer;padding:9px 10px;font-size:12px;font-weight:600;color:#46634d}
.planner-settings>summary span{float:right;font-size:11px;font-weight:400;color:#71826c}
.planner-settings[open]>summary{margin-bottom:8px;border-bottom:1px solid #e3e9df}
.planner-settings .room-tools{gap:12px}
.planner-settings .planner-counts:last-child{margin-bottom:12px}
.finish-schedule .notes-box{padding:12px 0;border:0;background:transparent}
.finish-schedule .notes-box textarea{min-height:60px;height:60px;margin-top:6px}
.finish-actions{display:flex;gap:8px;margin-top:14px}
.assignment-entry [data-pick-room]{color:#547850;border:1px solid #dbe5d6;border-radius:4px;font-size:16px;cursor:pointer}
.assignment-entry [data-pick-room]:hover{background:#e5eedf}
@media(min-width:1060px){
 .room-list{max-height:340px}
 .planner-settings>summary{padding-block:7px}
 .workspace{grid-template-rows:min-content 1fr auto}
 .finish-schedule .notes-box textarea{height:90px}
 .finish-actions{border-top:1px solid var(--line);padding-top:12px}
}
@media(max-width:1059px){
 .topbar{height:58px;padding:0 14px;gap:12px}.brand{font-size:22px;gap:7px}.brand-sub{font-size:7px;letter-spacing:1.3px}.mark{height:30px;width:30px;font-size:24px;border-radius:9px}.top-right{gap:6px}.top-right .prototype{display:none}.top-right .button{padding:6px 8px;min-height:34px;font-size:11px;text-decoration:none}.top-right #help{padding:6px 8px;min-height:34px}
 main{padding:16px 12px 24px}.heading{gap:12px;margin-bottom:14px;display:flex;flex-direction:column;align-items:stretch}.heading h1{font-size:25px;letter-spacing:-1px;margin:0 0 6px}.heading-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;max-width:none;width:100%}.heading-actions #date{grid-column:1;width:100%;min-width:0;font-size:16px;padding:8px}.heading-actions .primary{grid-column:2}.heading-actions .button{min-height:42px;padding:9px 12px}.heading-actions .primary span{margin-left:5px}
 .countbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:13px 8px;gap:0;border-radius:12px}.count.intro{display:none}.countbar .count{min-width:0;display:flex;align-items:flex-start;justify-content:space-between;padding:0 9px;gap:6px;border:0;border-right:1px solid #ffffff20}.countbar .count:last-child{border:0}.count>span{font-size:10px;line-height:1.3}.count small{font-size:9px}.count input,.count strong{font-size:24px;width:100%;max-width:60px}.count input{min-height:32px}.count strong{line-height:32px}
 .workflow{margin:10px 2px 12px;min-height:0}#assignment-progress{font-size:11px}
 .workspace{display:block}.workspace>section{display:none!important;margin:0;width:100%}
 body[data-creator-view=rooms] #room-planning,body[data-creator-view=peeloff] #staff-planning,body[data-creator-view=crnas] #crna-planning,body[data-creator-view=review] #schedule-review{display:block!important}
 .panel-heading,.rooms-panel .panel-heading{display:flex;padding:13px 12px;gap:10px}.panel-heading h2{font-size:17px}.panel-heading p{font-size:11px;line-height:1.5;margin:4px 0 0}.rooms-panel .panel-heading #paste{margin:0;padding:8px;font-size:11px;white-space:normal;max-width:100px}.room-list{max-height:none;overflow:visible;padding:0 10px}.room-filters{margin:8px 10px}.room-card.room-row{min-height:56px}.room-row .room-description{font-size:16px}.delete-room{opacity:.6;min-height:36px}.room-assignment-status{font-size:10px}.room-time-summary{min-height:36px}
 .workspace>.crna-section .crna-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crna-card input{font-size:16px}.crna-top{flex-wrap:wrap}.crna-top input{flex:1;min-width:70px}.crna-top>span{font-size:11px}.supervisor-select{min-height:36px}.crna-card{padding:9px}
 .finish-actions{flex-wrap:wrap}.finish-actions .button{flex:1}.finish-schedule .notes-box textarea{font-size:16px;min-height:110px}.finish-schedule .credit-actions{gap:10px}
 footer{margin-top:18px;font-size:10px}.top-right a[href='/archive.html']{display:none}#toast{bottom:calc(16px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);width:max-content;font-size:12px}
}
@media(max-width:600px){
 .assignment-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;padding:9px 10px;gap:0 5px}
 .assignment-table input[type=text]{font-size:16px;min-height:32px}.assignment-table .role{font-size:12px!important}.assignment-table td:nth-child(4) input{font-size:16px}
 .assignment-table td:nth-child(3):before{display:none}.assignment-table td:nth-child(3){margin-top:2px}.assignment-table .name{font-weight:650}.assignment-table .meo-options{width:36px;min-height:32px;padding:0}.assignment-table input[type=checkbox]{height:20px;width:20px;margin:5px 8px}
 .assignment-table .staff-entry .drag-room,.assignment-table .assignment-entry .drag-room{flex-basis:26px;min-height:32px}.assignment-table td:nth-child(4) input::placeholder{font-size:11px}
 .supervisor-chip{min-height:36px}.assignment-table .advance-note{font-size:11px}
}
@media(min-width:601px) and (max-width:1059px){.assignment-table{min-width:0}.assignment-table th:nth-child(1){width:16%}.assignment-table th:nth-child(2){width:23%}.assignment-table th:nth-child(3){width:33%}.assignment-table th:nth-child(4){width:20%}.assignment-table th:nth-child(5){width:8%}}
@media(max-width:360px){.topbar{padding-inline:10px}.top-right{gap:3px}.top-right .button{padding:6px}.heading h1{font-size:22px}.countbar .count{padding-inline:6px}.count>span{font-size:9px}.workspace>.crna-section .crna-grid{grid-template-columns:1fr}}
@media(max-width:1059px){.countbar .count.intro{display:none}.workflow{margin-block:10px}.assignment-table .supervisor-chips:empty{display:none}}
.schedule-menu-content a.menu-action{display:block;text-decoration:none}
@media(max-width:600px){.assignment-table input[data-staff=assignment]::placeholder{font-size:12px}}
@media(max-width:360px){.heading-actions{grid-template-columns:minmax(0,1fr) auto}.heading-actions #date{grid-column:1/-1}.heading-actions .primary{grid-column:1}.heading-actions .schedule-menu>summary{width:100%}}
/* A bounded native date hit area avoids Safari's intrinsic date-input width. */
.schedule-date{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;width:160px;height:42px;border:1px solid #dbe2de;border-radius:9px;background:#fffdf8;overflow:hidden;flex-shrink:1}
.schedule-date>span{font-size:14px;white-space:nowrap;pointer-events:none;padding:0 8px}
.heading-actions .schedule-date #date{position:absolute;inset:0;display:block;opacity:0;width:100%;height:100%;min-width:0;max-width:100%;margin:0;padding:0;cursor:pointer;box-sizing:border-box}
.schedule-date:focus-within{outline:3px solid #7ba993;outline-offset:2px}
.staff-time-label{display:flex;flex-direction:column;gap:6px;margin-bottom:20px}.staff-time-label input{width:100%;font-size:16px}
@media(max-width:1059px){
 main{padding-top:10px}.topbar{height:50px}.heading{gap:9px;margin-bottom:10px}.heading h1{font-size:23px;margin-bottom:4px}.heading-actions{grid-template-columns:minmax(0,1fr) auto auto}.schedule-date{width:100%;grid-column:1}.heading-actions .primary{grid-column:2}.heading-actions .button{padding:8px 12px}.subline{font-size:10px;gap:4px 9px}.countbar{padding-block:10px}.countbar .count{gap:3px}.workflow{margin-block:7px}.panel-heading,.rooms-panel .panel-heading{padding:10px 12px}.assignments-panel .panel-heading p{display:none}
}
@media(max-width:600px){
 .assignment-table tr{grid-template-columns:minmax(0,1fr) 106px 36px;padding:5px 9px;gap:0 3px;min-height:76px;align-items:center}
 .assignment-table td:nth-child(1){grid-column:2;grid-row:1}.assignment-table td:nth-child(2){grid-column:1;grid-row:1}.assignment-table td:nth-child(3){grid-column:1/3;grid-row:2;margin:0}.assignment-table td:nth-child(4){grid-column:1/3;grid-row:3;padding-left:26px!important}.assignment-table td:nth-child(5){grid-column:3;grid-row:1/3;align-self:start;display:flex;flex-direction:column;align-items:center;justify-content:center}
 .assignment-table td.empty-time{display:none}.assignment-table .staff-time input{min-height:28px;font-size:14px;color:#637566;padding-top:0;padding-bottom:0}
 .assignment-table input[type=text]{min-height:32px;padding-block:3px}.assignment-table .role{font-size:11px!important;text-align:right}.assignment-table td:first-child .drag-room{flex-basis:18px;min-width:18px;font-size:14px}.assignment-table .staff-entry .drag-room,.assignment-table .assignment-entry .drag-room{min-height:32px;flex-basis:22px}.assignment-table .meo-options{width:36px;height:36px;min-height:36px;margin:0}.assignment-table input[type=checkbox]{width:20px;height:20px;margin:6px 8px}.assignment-table tr.off td:nth-child(2){grid-column:1/3}.assignment-table .supervisor-chips{gap:3px;margin:0}.supervisor-chip{min-height:32px;padding:5px}.assignment-table .advance-note{display:inline;margin:0 0 0 5px}.assignment-table .meo-tag{display:inline-block}
}
@media(max-width:360px){.heading-actions{grid-template-columns:minmax(0,1fr) auto auto}.heading-actions .primary{grid-column:2}.heading-actions .button{padding-inline:9px}.heading h1{font-size:21px}.schedule-date>span{font-size:12px}.assignment-table tr{grid-template-columns:minmax(0,1fr) 88px 34px}.assignment-table .role{font-size:10px!important}}

/* The click handler opens the picker; its native icon stays at normal size. */
.schedule-date #date::-webkit-calendar-picker-indicator{position:static;inset:auto;width:16px;height:16px;margin:0;padding:0;cursor:pointer}

.schedule-date>span{display:none}
.heading-actions .schedule-date #date{opacity:1;font-size:14px;padding:8px;border:0;background:transparent}

.schedule-menu-content{max-height:min(70dvh,620px);overflow-y:auto;overscroll-behavior:contain}.menu-group-label{font-size:10px;text-transform:uppercase;letter-spacing:.8px;font-weight:700;color:#73836e;padding:8px 12px 4px}.menu-group>summary{padding:12px;font-size:13px;font-weight:600;color:#46634d;cursor:pointer;min-height:44px;box-sizing:border-box}.menu-group[open]{background:#f7f9f4;border-radius:8px}.menu-group .menu-action{padding-left:22px}.schedule-menu-content #notice:empty{display:none}
/* Keep day-status controls comfortably tappable in the compact staff dialog. */
#physician-status,#status-note,#status-cover,#crna-status,#crna-status-note{display:block;width:100%;box-sizing:border-box;min-height:44px;margin-top:6px;font-size:16px;}
#status-absence-fields label,#crna-note-field{display:block;margin-top:16px;}
#crna-note-field[hidden]{display:none;}
#status-explanation{margin:12px 0;}
#status-error:empty{display:none;}

.assignment-table .name.unavailable-name{text-decoration:line-through;color:#8a938e;}
.email-subject input{display:block;width:100%;min-width:0;font-size:16px;margin-top:6px;padding:10px;box-sizing:border-box}.email-paper[contenteditable=true]:focus{outline:2px solid #708c78;outline-offset:3px}#link-edit fieldset{border:1px solid #d8e1da;border-radius:10px;margin:12px 0;padding:12px}#link-edit fieldset>label input{width:100%;box-sizing:border-box}

.linked-time-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.linked-time-fields input{width:100%;min-width:0;box-sizing:border-box}#link-edit label{min-width:0}
/* Coverage summary: a single aligned row on desktop, stacked on phones. */
.countbar{display:grid;grid-template-columns:1fr 1fr 1.1fr 1.1fr 1fr;gap:0;padding:14px 18px;align-items:stretch}
.countbar .count{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px;min-width:0;padding:0 20px;border:0}
.countbar .count:nth-child(2){order:0}.countbar .count:nth-child(3){order:1;border-right:1px solid #ffffff25}
.countbar .count.intro{display:flex!important;order:2;grid-column:auto;margin:0;padding:0 20px;flex-direction:column;border:0;gap:3px}
.countbar .count:nth-child(4){order:3}.countbar .count:last-child{order:4;border-right:0}
.countbar .count>span,.countbar .count.intro .eyebrow{display:block;font-size:12px;line-height:1.4;letter-spacing:0;font-weight:400;color:#d6e2d4;text-transform:none}
.countbar .count>span{min-height:32px}.countbar .count small{display:block;font-size:10px;color:#b8cbbf;line-height:1.3}
.countbar .count input,.countbar .count strong,.countbar .count.intro #coverage-label{width:auto;max-width:none;font-size:28px;line-height:1.2;min-height:34px;margin:0;text-align:left}
.countbar .count input{width:72px;padding:0 0 3px;box-sizing:border-box}
.countbar .count.intro #coverage-label{color:#fff}
.linked-count-note{margin:7px 4px 0;color:#526e5c;font-size:12px}.linked-count-note:empty{display:none}
.suggestion-row{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);gap:12px;padding:12px 0;border-bottom:1px solid #e0e6dd}.suggestion-row small{display:block;color:#637861;font-size:12px}
@media(min-width:601px) and (max-width:1059px){.countbar{padding:14px 8px}.countbar .count,.countbar .count.intro{padding:0 10px}.countbar .count>span{font-size:11px}.countbar .count small{display:block}}
@media(max-width:600px){
 .countbar{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px;padding:16px 10px}
 .countbar .count{border:0;padding:0 10px;gap:3px}
 .countbar .count.intro{grid-column:1/-1;order:2;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;border:0;border-top:1px solid #ffffff25;border-bottom:1px solid #ffffff25;margin:0;padding:10px}
 .countbar .count:nth-child(3){border-right:0}.countbar .count.intro .eyebrow{font-size:15px;min-height:0}.countbar .count.intro #coverage-label{font-size:24px;min-height:0}.countbar .count input,.countbar .count strong{font-size:26px}
}

/* Compact overview on phones; counts remain available with one deliberate tap. */
.coverage-toggle{display:none}.completion-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 18px}.completion-status>div{padding:12px;background:#f0f4ee;border:1px solid #dce4db;border-radius:10px}.completion-status strong,.completion-status span{display:block}.completion-status span{font-size:13px;color:#54685d;margin-top:4px}
@media(max-width:750px){.coverage-toggle{display:block;width:100%;text-align:left;border:1px solid #d6e1d6;background:#eaf0e5;color:#234d3e;border-radius:12px;padding:12px 14px;font-size:14px;min-height:44px;margin:12px 0 8px}body:not(.coverage-expanded) .countbar{display:none}.heading{margin-bottom:12px}.completion-status{grid-template-columns:1fr 1fr}.completion-status>div{padding:10px}.email-tabs{display:flex!important;gap:4px!important}.email-tabs button{min-width:0!important;flex:1;padding:9px 4px!important;white-space:normal!important;font-size:12px!important}.email-subject{margin:8px 0!important}.share-options{margin:6px 0!important}.phone-preview{margin-top:8px!important}}

/* Short future-schedule update form: one field per line on every screen. */
#modal-body .unmeo-field{display:block;margin:16px 0;font-weight:600;min-width:0}
#modal-body .unmeo-field input,#modal-body .unmeo-field select,#modal-body .unmeo-field textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-top:6px;padding:10px 12px;border:1px solid #d5ded2;border-radius:10px;background:#fff;color:#234338;font-family:inherit;font-size:16px;font-weight:400;line-height:1.4}
#modal-body .unmeo-field textarea{height:94px;min-height:94px;resize:vertical}

#modal-body .linked-field{display:block;margin:14px 0;font-weight:600}
#modal-body .linked-field select,#modal-body .linked-field input{display:block;width:100%;box-sizing:border-box;min-width:0;margin-top:6px;padding:10px;font-size:16px;border:1px solid #d5ded2;border-radius:10px}

/* One staffing requirement, regardless of room locations or linked portions. */
.countbar{grid-template-columns:repeat(3,minmax(0,1fr))}
.countbar .count,.countbar .count:nth-child(2),.countbar .count:nth-child(3){order:0;border:0;padding:0 16px}
.countbar .count+.count{border-left:1px solid #ffffff25}
@media(max-width:600px){.countbar{grid-template-columns:repeat(3,minmax(0,1fr));padding:14px 6px;gap:0}.countbar .count,.countbar .count:nth-child(2),.countbar .count:nth-child(3){padding:0 9px}.countbar .count>span{font-size:11px;min-height:32px}.countbar .count input{width:64px}}

.pscv-warning{display:block;color:#a23b22;font-size:12px;padding:2px 6px;line-height:1.3}

.availability-review{display:grid;gap:10px;margin:16px 0}.availability-entry{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f7f9f6}.availability-entry>div{flex:1;min-width:0}.availability-entry small{overflow-wrap:anywhere}.availability-entry>div>div{font-size:12px;color:#64766c}@media(max-width:600px){.availability-entry{flex-wrap:wrap}.availability-entry>div{flex-basis:100%}}

.morning-relief-panel{padding:14px 16px;margin:12px 0;background:#fff6e5;border:1px solid #ead7b2;border-radius:10px}.morning-relief-panel fieldset{border:0;padding:0;margin:0}.morning-relief-panel legend{font-weight:700;margin-bottom:10px}.coverage-options{display:flex;flex-wrap:wrap;gap:10px 20px}.coverage-choice{display:flex;align-items:flex-start;gap:8px;max-width:100%;cursor:pointer}.coverage-choice input{flex:0 0 auto;margin-top:3px}.coverage-choice span{overflow-wrap:anywhere}.coverage-choice small{display:block;color:#8a491f;font-size:12px}.morning-relief-panel .coverage-note{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-weight:600}.coverage-note input{padding:9px;border:1px solid #d7dcd5;border-radius:6px;background:white;min-width:0}.morning-relief-panel p{margin:10px 0 0;font-size:12px;color:#695b43}#morning-coverage-status{font-weight:600}
/* Visible assignment actions: dragging remains an optional shortcut. */
.room-identity .room-assignment-status{display:block;flex-basis:100%;width:fit-content;text-align:left;max-width:100%;white-space:normal;border:1px solid #cddbc9;border-radius:5px;background:#edf4e7;color:#34593f;padding:4px 7px;margin-top:2px;font-size:11px;line-height:1.3;cursor:pointer}
.room-assigned .room-assignment-status{background:transparent;border-color:transparent}
.room-assignment-status:focus-visible,.assign-choice:focus-visible{outline:2px solid #34593f;outline-offset:2px}
.assignment-entry button[data-pick-room]{flex:0 0 auto!important;width:auto!important;min-width:0!important;font-size:11px!important;padding:4px 6px;white-space:nowrap;min-height:28px}
.assignment-help{font-size:11px;padding:2px 0;text-decoration:underline;color:#46634d}
#assignment-search{width:100%;margin-bottom:12px;min-height:42px;font-size:16px}
.assign-choice small{font-weight:400;color:#687a6d;margin-left:6px}.assign-choice[hidden]{display:none}
.assignment-help-example{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px;background:#eff4e9;border-radius:9px}
@media(max-width:600px){
 .workspace>.crna-section .crna-grid{grid-template-columns:1fr}
 .crna-card{padding:10px 12px}.crna-top{flex-wrap:nowrap;gap:6px}.crna-top input{min-width:0;width:0}.crna-top>span{white-space:nowrap}.crna-top .remove-person{margin-left:auto}
 .crna-card .assignment-entry{margin-top:6px}.crna-card .supervisor-select{margin-top:5px;min-height:36px}
 .assignment-entry button[data-pick-room]{min-height:36px;font-size:12px!important}
 .room-identity .room-assignment-status{min-height:32px;font-size:12px}
}

/* Keep freehand entry readable when desktop CRNA cards are narrow. */
.crna-card .assignment-entry:has([data-pick-room]){flex-wrap:wrap;gap:4px}
.crna-card .assignment-entry:has([data-pick-room]) input{flex:1 0 160px;min-width:0;max-width:100%}

/* Daily workflow: morning count and credits, afternoon email preparation. */
.morning-workflow{background:#fff;border:1px solid #dce5d8;border-radius:16px;padding:18px;margin:0 0 18px}
.phase-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.phase-heading h2{font-size:20px;margin:3px 0 0}.phase-label{font-size:10px;letter-spacing:1.5px;color:#72816b;font-weight:700}.phase-hint{font-size:12px;color:#687b70}
#coverage-toggle{display:none!important}.morning-workflow #morning-counts{display:grid!important;margin:0;box-shadow:none}
.count-source{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0 5px;font-size:12px;color:#617367}.count-source .planner-toggle{font-size:12px}.count-details summary,.early-notes-details summary{cursor:pointer;font-size:12px;padding:8px 0;color:#506c58}.count-details p{margin:0 0 8px;line-height:1.5}
.selected-meos{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;padding:10px 0}.selected-meos>strong{margin-right:4px}.selected-meos>span{color:#526947}.selected-meos>strong~span{background:#f0f4e9;padding:4px 7px;border-radius:5px}
.morning-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border-top:1px solid #e2e8df;padding-top:14px}.morning-actions>div{min-width:0}.morning-actions .button{width:100%;min-height:40px}.morning-actions p{font-size:12px;line-height:1.45;color:#617267;margin:7px 0 0}.early-notes-details{margin-top:8px}.early-notes-details textarea{width:100%;font:inherit;padding:10px;border:1px solid #dce5d8;border-radius:8px;box-sizing:border-box}
#schedule-review{padding:18px}#schedule-review .notes-box textarea{width:100%;box-sizing:border-box;height:auto;min-height:75px}#schedule-review .notes-box{margin:12px 0}.schedule-send-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.schedule-send-cards>div{background:#fff;border:1px solid #dce5d8;border-radius:12px;padding:16px}.schedule-send-cards h3{font-size:16px;margin:0}.schedule-send-cards p{font-size:12px;color:#617267;line-height:1.5;margin:7px 0 12px}.schedule-send-cards .email-status{margin:10px 0 0;font-size:11px}.send-credit-status{font-size:12px;line-height:1.5;margin:14px 0;color:#566d50}.send-credit-status button{font-size:12px}.finish-actions{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.finish-actions>span{font-size:12px;color:#687b70}
@media(max-width:1059px){.heading-actions{grid-template-columns:minmax(0,1fr) auto}.morning-workflow{display:none;padding:14px;margin:0}body[data-creator-view=count] .morning-workflow{display:block}body[data-creator-view=count] .workflow,body[data-creator-view=review] .workflow{display:none}.phase-heading{align-items:flex-start;flex-direction:column;gap:5px}.phase-heading h2{font-size:20px}.phase-hint{font-size:12px}.morning-actions{grid-template-columns:1fr;gap:12px}.morning-actions>div{border-bottom:1px solid #e5eadf;padding-bottom:12px}.morning-actions>div:last-child{border:0;padding-bottom:0}.morning-actions .button{min-height:44px;text-align:left}.morning-actions p{margin-top:5px}.count-source{gap:6px}.count-source>span{display:block;width:100%}.schedule-send-cards{grid-template-columns:1fr}.schedule-send-cards .button{min-height:44px;width:100%}.early-notes-details textarea{font-size:16px}#schedule-review .finish-actions .button{flex:0 0 auto}.finish-actions{gap:12px}.finish-actions>span{max-width:200px}.selected-meos{line-height:1.5}}

.morning-heading-tools{display:flex;align-items:center;gap:18px}.morning-heading-tools button{font-size:12px;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1060px){.morning-collapsed #morning-counts,.morning-collapsed>:not(.phase-heading){display:none!important}.morning-collapsed .phase-heading{margin:0}}
@media(max-width:1059px){#morning-collapse{display:none}.morning-heading-tools{display:block}}

.sent-schedule-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:#eaf1e6;border:1px solid #cfddc8;border-radius:10px;margin-bottom:14px}.sent-schedule-tools[hidden]{display:none}.sent-schedule-tools strong{font-size:14px}
.sent-schedule-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.sent-schedule-actions [hidden]{display:none}.sent-schedule-tools p{font-size:12px;color:#617267;margin:4px 0 0;line-height:1.4}.sent-schedule-tools button{flex-shrink:0}.postsend-choices{display:grid;gap:10px}.postsend-choices button{text-align:left;white-space:normal;padding:14px;min-height:44px}.postsend-choices strong,.postsend-choices span{display:block}.postsend-choices span{font-size:12px;font-weight:400;line-height:1.5;margin-top:5px}#creator-unmeo-status button{margin:8px 0 0;display:block}@media(max-width:600px){.sent-schedule-tools{align-items:stretch;flex-direction:column}.sent-schedule-tools button{min-height:44px}}

/* Readable density: recover space from framing, not from names and assignments. */
.morning-workflow{padding:14px;margin-bottom:12px}
.phase-heading{margin-bottom:10px}.phase-label{display:none}
.phase-hint,.morning-actions p,.count-source,.count-source .planner-toggle,.selected-meos{font-size:13px;color:#52675b}
.count-source{margin:8px 0 2px}.selected-meos{padding:7px 0}.selected-meos>strong~span{padding:3px 6px}
.morning-actions{padding-top:9px;gap:12px}.morning-actions p{margin-top:4px}.early-notes-details{margin-top:3px}
.morning-summary{display:none;margin:6px 0 0;font-size:13px;line-height:1.5;color:#52675b;max-width:900px}
.room-time-summary{color:#52675b;font-size:12px}.room-assigned .room-assignment-status{color:#466448}
.panel-heading p{color:#52675b}.crna-top>span,.later-crna p{font-size:12px;color:#52675b}
.supervisor-select{font-size:12px;color:#355540;white-space:normal;overflow-wrap:anywhere}
@media(min-width:1060px){
 .morning-collapsed .morning-summary{display:block}.morning-collapsed .phase-hint{display:none}
 .morning-workflow #morning-counts{padding:10px 12px}.morning-workflow .countbar .count>span{min-height:28px}
 .count-details summary,.early-notes-details summary{padding:5px 0}
 .assignment-table .name,.assignment-table .assignment-entry input{font-size:14px}.assignment-table .role{font-size:12px}
 .crna-card input{font-size:14px}.workspace>.crna-section .crna-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1059px){
 main{padding-top:10px}.heading{gap:8px;margin-bottom:10px}.heading h1{font-size:23px;margin-bottom:4px}.heading-actions{margin-top:0}
 .subline{font-size:12px;color:#52675b}.subline #presence:empty{display:none}.workflow{margin:6px 2px 8px}
 .morning-actions{gap:8px}.morning-actions>div{padding-bottom:8px}.phase-hint{line-height:1.4}.count-source>span{display:none}
 .countbar .count>span{font-size:12px}.countbar .count small{font-size:11px;color:#d6e2d4}
 .assignment-table .role{font-size:13px!important;color:#52675b}.assignment-table .advance-note{font-size:12px}
 .room-identity .room-assignment-status{font-size:12px}.room-time-summary{font-size:12px}
 .crna-card{padding:8px 10px;display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.65fr);gap:4px 8px;align-items:center}
 .crna-card .crna-top{grid-column:1/-1}.crna-card .assignment-entry{min-width:0;margin:0}
 .crna-card .supervisor-select{margin:0;min-height:44px;padding:6px;font-size:12px}
 .crna-card .assignment-entry:has([data-pick-room]){grid-column:1/-1}
 .crna-card:has([data-pick-room]) .supervisor-select{grid-column:1/-1}
 .later-crna p{grid-column:1/-1;margin:2px 0}.crna-top>span{font-size:12px}
 .assignment-table .meo-options{min-height:36px;min-width:40px}.crna-top .remove-person{min-height:44px;min-width:36px}
}
@media(max-width:1059px){
 .crna-card .assignment-entry:focus-within{grid-column:1/-1}
 .crna-card:has(.assignment-entry:focus-within) .supervisor-select{grid-column:1/-1}
}

.pscv-room-segments{flex-basis:100%;display:block;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.5;color:var(--muted,#667b70)}

/* Room entry keeps the name readable and separates destructive touch targets. */
.room-identity .room-description{display:block;box-sizing:border-box;width:100%;min-width:0;resize:none;overflow:hidden;border:0;background:transparent;font:inherit;font-weight:600;line-height:1.4;padding:8px 4px;min-height:40px;white-space:pre-wrap;overflow-wrap:anywhere;flex:1 1 100%}
.room-row:focus-within{outline:2px solid #83a88f;outline-offset:-2px;background:#f5faf3}
.room-description:focus{outline:none}
.room-list{scroll-behavior:auto}
@media(min-width:761px){.rooms-panel .room-list{max-height:min(55vh,600px);min-height:160px}.room-row .room-description{font-size:14px}.room-card.room-row{padding-block:7px}.room-row .delete-room{min-width:28px;min-height:36px}}
@media(max-width:760px){
 .rooms-panel .room-list{max-height:none;overflow:visible}
 .room-card.room-row,.room-card.room-row.with-times{display:grid;grid-template-columns:minmax(0,1fr) 76px 44px;gap:4px 8px;padding:8px;min-height:0}
 .room-row>.drag-room{display:none}
 .room-row>.room-identity{grid-column:1/-1;grid-row:1;display:block;min-width:0}
 .room-identity .room-description{font-size:16px;min-height:44px;padding:8px 4px}
 .room-identity .room-assignment-status{min-height:44px;margin:0 0 4px;padding:8px;font-size:13px}
 .room-identity .room-assignment-status:disabled:empty{display:none}
 .room-row>.room-time-summary{grid-column:1;grid-row:2;min-height:44px;font-size:13px;padding:8px;justify-self:start}
 .room-row>select,.room-row.with-times>select{grid-column:2;grid-row:2;width:76px;min-height:44px;font-size:16px}
 .room-row>.delete-room,.room-row.with-times>.delete-room{grid-column:3;grid-row:2;width:44px;min-height:44px;font-size:20px;opacity:.8}
 .rooms-panel .add-button{min-height:48px;font-size:15px}.room-filters button{min-height:44px;font-size:13px}
}
@media(max-width:760px){
 .room-row>.room-identity{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
 .room-identity .room-description{flex:1 1 170px;width:0}
 .room-identity .room-assignment-status{flex:0 1 auto;max-width:45%;margin:0}
 .room-identity .pscv-room-segments{flex-basis:100%}
}

.room-card[hidden]{display:none!important}

/* Native fixed-height room inputs avoid Safari caret/auto-size scroll feedback. */
.room-identity .room-description{height:44px;min-height:44px;max-height:44px;white-space:normal}
.room-full-label{display:block;flex:1 0 100%;width:100%;font-size:12px;line-height:1.4;overflow-wrap:anywhere;color:#52685c}
.room-full-label[hidden]{display:none!important}
html:has(.room-description:focus){scroll-behavior:auto}

/* Mobile room entry has exactly one scrolling surface: the document.
   overflow:hidden creates a programmatically scrollable ancestor even without
   visible scrollbars. clip keeps rounded panel edges without a second scroller. */
@media(max-width:1059px){
 .rooms-panel{overflow:clip}
 .rooms-panel .room-list{max-height:none;overflow:visible}
 /* Fixed bottom navigation is not useful above the keyboard. Visibility keeps
    its geometry stable and avoids a toolbar fighting Safari's caret reveal. */
 .room-identity:has(.room-description:focus) .room-assignment-status{visibility:hidden}
}

/* Role select replaces free text: same footprint, native picker on phones. */
.assignment-table select.role{min-height:32px;max-width:100%;font:inherit;padding:2px 4px;background:#fff;border:1px solid #cfd9d5;border-radius:6px;color:inherit}

/* Touch: handles are not discoverable, so moves live in each person's menu instead. */
@media(pointer:coarse){.assignment-table .drag-room:not([data-pick-room]),.crna-card .drag-room:not([data-pick-room]),.room-card .drag-room{display:none}}
.move-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}

/* Laptop room rows: name and controls first, compact assignment status below. */
@media(min-width:761px) and (pointer:fine){
 .rooms-panel .room-card.room-row{min-height:0;padding:4px 6px;gap:4px;align-items:start;grid-template-columns:18px minmax(65px,1fr) auto 58px 28px}
 .rooms-panel .room-card.room-row.without-times{grid-template-columns:18px minmax(65px,1fr) 58px 28px}
 .rooms-panel .room-identity{display:grid;gap:2px;min-width:0}
 .rooms-panel .room-identity .room-description{width:100%;height:28px;min-height:28px;max-height:28px;padding:3px 4px;font-size:14px}
 .rooms-panel .room-identity .room-assignment-status{justify-self:start;width:fit-content;max-width:100%;min-height:24px;margin:0;padding:3px 7px;font-size:12px}
 .rooms-panel .room-identity .room-assignment-status:empty{display:none}
 .rooms-panel .room-row>.drag-room,.rooms-panel .room-row>.delete-room,.rooms-panel .room-row>select,.rooms-panel .room-row>.room-time-summary{min-height:28px;height:28px;margin:0}
}
#toast.visible{pointer-events:auto}
.toast-undo{margin-left:10px;padding:4px 12px;border:1px solid #ffffff80;border-radius:6px;background:transparent;color:#fff;font:inherit;font-weight:700;cursor:pointer}

.room-options{font:inherit;font-size:12px;color:#34593f;background:#fff;border:1px solid #cddbc9;border-radius:5px;padding:4px 6px;min-height:28px;white-space:nowrap}
.room-options-menu{position:fixed;z-index:1000;width:195px;padding:5px;background:#fff;border:1px solid #cddbc9;border-radius:9px;box-shadow:0 8px 24px #173f3726}
.room-options-menu button{display:block;width:100%;padding:11px 10px;border:0;border-radius:5px;background:#fff;color:#34593f;text-align:left;font:inherit;font-size:14px}
.room-options-menu button:hover{background:#edf4e7}.room-options-menu .room-options-delete{color:#a04433;border-top:1px solid #e1e7e2;border-radius:0;margin-top:3px}
.room-part-label{font-size:11px;color:#607568;display:block}.room-not-counted{font-size:11px;color:#8a5a12;display:block}.room-card.not-counted{background:#faf7ef}.split-part,.split-count{border:1px solid #d7e2d5;border-radius:8px;padding:12px;margin:12px 0}.split-part label{display:block}.split-part input{width:100%;padding:9px;margin:4px 0 10px;border:1px solid #cddbc9;border-radius:6px;font-size:16px}.split-times{display:grid;grid-template-columns:1fr 1fr;gap:12px}.split-count legend{font-weight:600;line-height:1.4}.split-count label{display:flex;align-items:center;gap:8px;padding:8px 0}.split-count input{width:18px;height:18px}.split-count{line-height:1.5}#split-error{color:#a04433}#split-count-preview{font-weight:600}
@media(min-width:761px){.rooms-panel .room-card.room-row.with-times{grid-template-columns:18px minmax(65px,1fr) auto 58px 65px}.rooms-panel .room-card.room-row.without-times{grid-template-columns:18px minmax(65px,1fr) 58px 65px}}
@media(max-width:760px){.rooms-panel .room-card.room-row,.rooms-panel .room-card.room-row.with-times{grid-template-columns:minmax(0,1fr) 76px 72px}.room-row>.room-options{grid-column:3;grid-row:2;min-height:44px;font-size:13px}.room-part-label,.room-not-counted{flex-basis:100%}}

#staff-planning>.panel-heading{align-items:flex-start}
#staff-planning>.panel-heading>div:first-child{min-width:0}
.peeloff-heading-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
#peeloff-refresh-slot:empty{display:none}
#peeloff-tools-toggle{font-size:20px;line-height:1;min-width:36px;min-height:36px;padding:4px 8px}
#peeloff-tools{position:fixed;inset:auto;margin:0;width:220px;padding:5px;background:#fff;border:1px solid #d5ded5;border-radius:9px;box-shadow:0 8px 24px #173f3726;color:#243c32}
#peeloff-tools .menu-action{display:block;width:100%;padding:11px 10px;text-align:left;border:0;border-radius:5px;background:#fff;font:inherit;font-size:13px;min-height:44px;white-space:normal}
#peeloff-tools .menu-action:hover{background:#edf4e7}#peeloff-tools .danger{color:#a04433}
@media(max-width:760px){#staff-planning>.panel-heading{display:flex;align-items:flex-start}#peeloff-tools-toggle{min-width:44px;min-height:44px}.peeloff-heading-actions{margin-left:auto}}

/* Volunteers are working extra coverage, tagged in the lineup and the coverage panel. */
.volunteer-tag{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.3px;color:#526735;background:#e9f0d9;border-radius:4px;padding:2px 6px;margin:2px 0 0 4px;white-space:nowrap}.volunteer-choice{cursor:default}.volunteer-choice small{color:#5d7555}.add-md-kind{margin:14px 0}.add-md-kind label{display:block;margin:6px 0;line-height:1.45}#new-md,#new-md-place{display:block;width:100%;margin-top:4px}#new-md-place{padding:8px;border:1px solid var(--line);border-radius:4px;background:#fff}

/* Send schedules, top to bottom in the order of the work: heading, sent bar, checks beside
   notes (aligned at the top, nothing stretched), the two email cards, then lock. */
.finish-schedule .phase-heading{flex-direction:column;align-items:flex-start;gap:4px}
.send-prep{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;margin:0 0 16px}
.send-label{display:block;font-size:12px;font-weight:600;color:#527149;margin:0 0 6px}
.send-checklist{background:#fff;border:1px solid #dce5d8;border-radius:10px;overflow:hidden}
.send-checklist .review-checks,.finish-schedule .send-checklist .review-checks{margin:0;border:0;border-radius:0;background:transparent}
.send-checklist .review-checks.has-warnings{background:#fdf9f0}
.send-checklist .review-checks summary{padding:10px 12px}
.send-checklist .send-credit-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:10px 12px;border-top:1px solid #e3eadc;font-size:12px}
.send-checklist .send-credit-status:empty{display:none}
.send-checklist .send-credit-status>span:first-child{flex:1;min-width:12em}
.send-checklist .send-credit-status.needs-action{background:#fdf9f0;color:#876931}
.send-checklist .send-credit-status .text-button{color:#174a43;font-weight:600;white-space:nowrap}
#schedule-review .send-prep .notes-box{padding:0;margin:0;border:0;background:transparent;min-width:0}
.finish-schedule .send-prep .notes-box textarea{margin-top:0}
.finish-schedule .sent-schedule-tools{margin:0 0 16px}
.schedule-send-cards>div{display:flex;flex-direction:column}
.schedule-send-cards>div>.button{margin-top:auto;align-self:flex-start}
.schedule-send-cards .email-status.changed{color:#876931}
/* Side by side, the checklist and the notes end on the same line: each fills the row. */
@media(min-width:1060px){.send-prep{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
 .send-checks,#schedule-review .send-prep .notes-box{display:flex;flex-direction:column}
 .send-checklist{flex:1}
 #schedule-review .send-prep .notes-box textarea{flex:1;height:auto;min-height:75px}}
.sent-schedule-actions .button{margin:0}
@media(max-width:1059px){.sent-schedule-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;align-items:stretch}.sent-schedule-actions .button{width:100%}}
/* CRNA supervision: slots on supervisor rows, a banner for unplaced CRNAs, and the Add CRNA dialog. */
.assignment-table tr.supervising{background:#f0f6f2}
.supervision-slots{display:flex;flex-direction:column;gap:6px;padding:6px 0}
.supervision-label{font-size:10px;letter-spacing:1px;font-weight:700;color:#5b7566;text-transform:uppercase}
.supervision-label b{margin-left:4px}.supervision-short{color:#8a5a12}.supervision-full{color:#2c7a4b}.supervision-over{color:#52675b}
.supervision-slots .supervisor-chips{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;margin:0}
.supervision-slots .supervisor-chip{min-height:36px;padding:6px 10px;font-size:13px;border-radius:8px}
.supervisor-chip b{color:#173f37}.supervisor-chip small{color:#5b7566;font-size:11px;font-weight:400}
.crna-slot.needs-crna .needs-crna-off{margin-left:6px;padding:0 4px;font-size:15px;color:inherit}
.crna-slot.needs-crna{display:inline-flex;align-items:center;color:#2c5d8a;background:#f5f9fd;border-color:#3d72a3}
.crna-slot{min-height:36px;padding:6px 12px;font-size:13px;font-weight:600;color:#1f5a3d;background:#fff;border:1.5px dashed #8fb39c;border-radius:8px}
.crna-slot:hover{background:#eef6e9}
.add-another-crna{font-size:12px;color:#34593f;min-height:36px}
.ratio-reminder{display:block;font-size:12px;font-style:italic;color:#5f6f67}
p.ratio-reminder{margin:6px 0}
.supervision-text input{max-width:320px}
.crna-supervision-banner{display:flex;align-items:center;gap:12px;margin:0 16px 12px;padding:10px 14px;background:#fff6e5;border:1px solid #ecd6a6;border-radius:10px}
.crna-supervision-banner[hidden]{display:none}
.crna-supervision-banner>div{flex:1;display:flex;flex-direction:column;gap:2px}
.crna-supervision-banner strong{font-size:13px;color:#5e3f0b}.crna-supervision-banner span{font-size:12px;color:#7a5a1c}
.crna-supervision-banner .button{min-height:38px}
.supervisor-select.needs-supervisor{color:#8a5a12;background:#fff6e5;border-color:#ecd6a6}
.assign-choice:disabled{opacity:.55;cursor:default}
.assign-choice .choice-note,p.choice-note{display:block;font-size:12px;color:#8a5a12;margin-top:2px}
.dialog-step{font-size:14px;margin:14px 0 6px;color:#253a36}
.dialog-group{font-size:10px;letter-spacing:1px;font-weight:700;color:#7f8f87;text-transform:uppercase;margin:8px 0 4px}
.dialog-hint{font-size:12px;color:#8a9890}
.add-crna-option.selected{background:#eef6e9;border-color:#34593f;box-shadow:inset 0 0 0 1px #34593f}
@media(max-width:1059px){.crna-supervision-banner{margin:0 10px 10px}.supervision-slots .supervisor-chip,.crna-slot{min-height:44px}.supervision-text input{max-width:none}}
.assign-choice .choice-note.reminder{color:#5f6f67;font-style:italic}
.supervision-slots .link-typed{align-self:flex-start;min-height:36px}

/* Typing on a phone: the fixed bottom tabs step aside for the keyboard whenever any field has focus. */
@media(max-width:1059px){:is(html,body):has(main :is(input:not([type=checkbox]):not([type=radio]):not([type=date]),textarea,select,[contenteditable=true]):focus){--steps-h:0px!important}body:has(main :is(input:not([type=checkbox]):not([type=radio]):not([type=date]),textarea,select,[contenteditable=true]):focus) #creator-steps.creator-steps{position:static}}
/* Phone tap targets of at least 44px for handles, chips, ⋯ menus and the toast's Undo. */
@media(max-width:760px){
 .assignment-table .meo-options,.crna-top .remove-person,#peeloff-tools-toggle{min-width:44px;min-height:44px}
 .supervisor-chip,.crna-slot,.add-another-crna,.supervisor-select,.assignment-entry button[data-pick-room],.drag-room{min-height:44px}
 .drag-room{min-width:44px}
 .toast-undo{min-height:44px;padding:8px 14px}
}
/* Save problems stay in view: above the bottom tabs on phones, under the header on computers. */
.save-alert{position:fixed;z-index:40;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;border:1px solid #e3b8a8;border-radius:999px;background:#fff4ef;color:#8a3a22;font-weight:700;font-size:13px;box-shadow:0 6px 20px #5a2a1a26;top:64px;right:24px}
.save-alert[hidden]{display:none}.save-alert .button{min-height:36px;padding:6px 14px;color:#8a3a22;border-color:#e3b8a8}
@media(max-width:1059px){.save-alert{top:auto;right:auto;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom));white-space:nowrap}body:has(#save-alert:not([hidden])) #toast{bottom:calc(64px + env(safe-area-inset-bottom))}.save-alert .button{min-height:44px}}
.remote-update{margin-left:8px;color:#174a43;text-decoration:underline}.remote-update[hidden]{display:none}
/* Staffing read progress and failure, inside the Peeloff panel where a phone user is looking. */
.staffing-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 16px 12px;padding:10px 14px;border:1px solid #d6e1d6;border-radius:10px;background:#f3f7f0;color:#36533f;font-size:13px}
.staffing-status[hidden]{display:none}.staffing-status>span{display:flex;align-items:center;gap:8px}.staffing-status .loading-spinner{width:16px;height:16px;flex-basis:16px;border-width:2px}
.staffing-status.error{background:#fdf5ec;border-color:#ecd0a6;color:#7a4d16}.staffing-status .button{min-height:36px}
@media(max-width:1059px){.staffing-status{margin:0 10px 10px}.staffing-status .button{min-height:44px}}
.placeholder-row td{padding:12px 14px;color:#5d7563;font-size:13px}.placeholder-row td .loading-spinner{display:inline-block;vertical-align:middle;width:16px;height:16px;border-width:2px;margin-right:6px}
.placeholder-row.skeleton td span{display:block;height:14px;border-radius:6px;background:linear-gradient(90deg,#edf1ec,#f6f8f5,#edf1ec);background-size:200% 100%;animation:skeleton 1.4s ease-in-out infinite}
@keyframes skeleton{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.placeholder-row.skeleton td span{animation:none}}
/* Make the schedule redesign, step 1 (2026-10-14): Archivo, the step row, a one-line phone header. */
@font-face{font-family:Archivo;src:url(/fonts/archivo-latin.woff2) format('woff2');font-weight:100 900;font-stretch:62% 125%;font-display:swap}
:root{font-family:Archivo,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:inherit;font-stretch:85%;letter-spacing:-.2px}
#day-title{font-stretch:80%;font-weight:800}
.workflow #assignment-progress{display:none}
.creator-steps{display:grid;grid-template-columns:2fr 4fr;gap:16px;margin:0 0 18px}
.creator-steps:empty{display:none}
.step-group{display:flex;flex-direction:column;gap:6px;min-width:0}
.step-group-label{font-size:13px;font-weight:700;color:#586b61}
.step-group ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.step-group-morning ol{grid-template-columns:repeat(2,minmax(0,1fr))}
.step-group-afternoon ol{grid-template-columns:repeat(4,minmax(0,1fr))}
.creator-steps .step{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;width:100%;height:100%;padding:10px 12px;border:1px solid #dde2d8;border-radius:12px;background:#fff;cursor:pointer;color:#203c36}
.creator-steps .step:focus-visible{outline:3px solid #174a43;outline-offset:2px}
.creator-steps .step.is-done{background:#edf3e6;border-color:transparent}
.creator-steps .step.is-now{border:2px solid #174a43;padding:9px 11px;background:#f3f8e8}
.creator-steps .step.is-warn{background:#fbf5e8;border-color:#ead8b0}
.creator-steps .step.is-warn.is-now{border-color:#8a5200}
.step-label{font-size:12px;color:#586b61}
.step-title{font-size:15px;font-weight:700}
.step-sub{font-size:12px;color:#586b61;line-height:1.35}
.step-sub:empty{display:none}
.step-phone{display:none}
.creator-menu-phone{display:none}
@media(max-width:1059px){
 .creator-steps{position:sticky;top:0;z-index:6;display:flex;gap:6px;margin:0 -14px 12px;padding:8px 14px;background:#fff;border-bottom:1px solid #dde2d8;overflow-x:auto;scrollbar-width:none}
 .creator-steps::-webkit-scrollbar{display:none}
 .step-group{display:contents}
 .step-group-label{display:none}
 .step-group ol{display:flex;gap:6px}
 .creator-steps .step{flex-direction:row;align-items:center;white-space:nowrap;padding:8px 12px;min-height:40px;border-radius:999px}
 .creator-steps .step.is-now{padding:7px 11px}
 .step-label{display:none}
 .step-title{display:none}
 .step-phone{display:inline;font-size:13px;font-weight:650}
 .step-sub{display:none}
 body[data-creator-view=count] .step[data-step-view=count],body[data-creator-view=rooms] .step[data-step-view=rooms],body[data-creator-view=crnas] .step[data-step-view=crnas],body[data-creator-view=peeloff] .step[data-step-view=peeloff],body[data-creator-view=review] .step[data-step-view=review]{background:#174a43;border-color:#174a43;color:#fff}
}
@media(max-width:760px){
 body>header.workspace-header{display:none}
 .creator-menu-phone{display:block}
 .heading{margin-bottom:10px}
}
/* Make the schedule step 2 (2026-10-14): the morning as count, MEOs, credit, early count email. */
.morning-workflow .phase-heading h2{font-size:22px;font-weight:800}
.morning-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:16px;align-items:start;margin-top:12px}
.morning-main{display:flex;flex-direction:column;gap:14px;min-width:0}
.morning-card{background:#fff;border:1px solid #dde2d8;border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;min-width:0}
.morning-card h3{margin:0;font-size:18px;font-weight:800;font-stretch:85%}
.morning-card-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.morning-card-head h3{flex-grow:1}
.morning-workflow .countbar{background:none;color:#203c36;padding:0;border-radius:0;box-shadow:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.morning-workflow .countbar .count{background:none;border:0;padding:0;color:#203c36}
.morning-workflow .countbar .count span{color:#586b61;font-size:13px}
.morning-workflow .countbar strong,.morning-workflow .countbar input{font-size:30px;font-weight:800;color:#203c36}
.morning-workflow .countbar input{width:90px;border:1.5px solid #dde2d8;border-radius:10px;padding:2px 8px;background:#fff}
.count-words{margin:0;font-size:16px;font-weight:650;color:#174a43}
.count-words.needs-action{color:#8a5200}
.count-words:empty{display:none}
.meo-progress{font-size:14px;color:#586b61}
.morning-suggest{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.morning-suggest p{margin:0;font-size:13px;color:#586b61;flex:1 1 220px}
.credit-row{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;background:#f5f5ef;flex-wrap:wrap}
.credit-row p{margin:0;flex:1 1 240px;font-size:14px}
.credit-row.needs-action{background:#fbf5e8}
.credit-row.is-done{background:#edf3e6}
.credit-row.is-done .button.primary{background:#fff;color:#174a43;border:1px solid #c9d6c0}
.morning-early .early-email-status{font-size:13px;font-weight:700;color:#586b61}
.early-preview{width:100%;height:360px;border:1px solid #edf0e8;border-radius:10px;background:#fff}
.early-notes-label{font-size:13px;color:#586b61}
.morning-early textarea{width:100%;box-sizing:border-box;border:1px solid #dde2d8;border-radius:10px;padding:8px 10px;font:inherit}
.early-hint{margin:0;font-size:13px;color:#586b61}
@media(max-width:1059px){.early-preview-note{display:none}}
@media(max-width:1059px){
 .morning-grid{grid-template-columns:1fr}
 .early-preview{display:none}
 .morning-workflow .countbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .morning-workflow .countbar strong,.morning-workflow .countbar input{font-size:26px}
 .morning-workflow .countbar input{width:100%;box-sizing:border-box}
}
/* Make the schedule step 3 (2026-10-14): CRNA rooms with the rooms tray. */
.crna-step-note{margin:0 0 10px;font-size:13px;color:#586b61}
.room-tray{display:flex;flex-direction:column;gap:8px;margin:0 0 14px;padding:12px;border:1px solid #dde2d8;border-radius:12px;background:#fafbf7}
.room-tray[hidden]{display:none!important}
.room-tray-hint{margin:0;font-size:13px;color:#586b61}
.room-tray-list{display:flex;flex-wrap:wrap;gap:6px}
.room-tray-room{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:44px;padding:6px 10px;border:1.5px solid #dde2d8;border-radius:10px;background:#fff;color:#203c36;font:inherit;text-align:left;cursor:pointer}
.room-tray-room strong{font-size:14px}
.room-tray-room span{font-size:12px;color:#586b61}
.room-tray-room.is-picked{border-color:#174a43;background:#d4e7a4}
.room-tray-put{display:block;width:100%;min-height:40px;margin:6px 0;border:1.5px solid #174a43;border-radius:10px;background:#d4e7a4;color:#203c36;font:inherit;font-weight:700;cursor:pointer}
.tray-picking .crna-card:has(.room-tray-put){box-shadow:0 0 0 2px #b7cf92}
/* Pick a room, then the person, at every width (whole-app step 5); the CRNA tray stays a computer-board feature. */
@media(max-width:1059px){#crna-room-tray{display:none!important}}
/* Make the schedule step 4 (2026-10-14): physician rooms. The rows read like the email; the controls that are
   rarely needed (role list, drag handles, an unticked MEO box) stay in place but quiet until hover or focus. */
.room-tray-taken{margin:0;font-size:13px;color:#586b61}
#md-room-tray{margin:10px 0 12px}
.tray-picking #assignments tr:has(.room-tray-put){background:#f3f8e8}
@media(min-width:1060px) and (hover:hover){
 .assignment-table select.role{appearance:none;-webkit-appearance:none;border-color:transparent;background:transparent;box-shadow:none;color:#586b61;padding-right:6px}
 .assignment-table tr:hover select.role,.assignment-table select.role:focus{appearance:auto;-webkit-appearance:auto;border-color:#dde2d8;background:#fff;color:#203c36}
 .assignment-table .staff-entry .drag-room,.assignment-table .assignment-entry .drag-room:not([data-pick-room]){opacity:.35;transition:opacity .12s}
 .assignment-table tr:hover .drag-room,.assignment-table tr:focus-within .drag-room,.assignment-table .drag-room:focus-visible{opacity:1}
 .assignment-table input[data-meo]:not(:checked){opacity:.6;transition:opacity .12s}
 .assignment-table tr:hover input[data-meo],.assignment-table input[data-meo]:focus-visible{opacity:1}
 .assignment-table input.name{font-weight:700;font-stretch:80%;font-size:16px}
}
@media(prefers-reduced-motion:reduce){.assignment-table .drag-room,.assignment-table input[data-meo]{transition:none}}
/* Make the schedule step 5 (2026-10-14): after sending. */
.after-send{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:14px;margin:0 0 16px}
.after-send>div{background:#fff;border:1px solid #dde2d8;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.after-send h3{margin:0;font-size:17px;font-weight:800;font-stretch:85%}
.after-send ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.after-send-sent ul{list-style:none;padding:0}
.after-send-flag{color:#8a5200;font-weight:700}
.after-send-changes{background:#fbf5e8!important;border-color:#ead8b0!important}
.after-send-hint{margin:0;font-size:13px;color:#586b61}
.after-send>.after-send-hint{grid-column:1/-1}
@media(max-width:760px){.after-send{grid-template-columns:1fr}}

/* The room planner's first column held the drag handle (retired, whole-app step 5): an empty spacer keeps the grid as
   it was at computer widths, touch included; phones' rows have no such column. */
.room-row-space{display:block;min-width:0}
@media(max-width:760px){.room-row>.room-row-space{display:none}}

/* Send stop (whole-app step 6): each card reads its email or sends it; a step that didn't finish stays in view. */
.send-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.send-card-actions .button{min-height:44px}
.after-send-fail{grid-column:1/-1;background:#fdecea!important;border-color:#f1b9b0!important}
.after-send-fail .ok{color:#174a43;font-weight:700;list-style:none}
.after-send-fail .no{color:#a23a2c;font-weight:800;list-style:none}
.after-send-fail ul{padding-left:0}
.after-send-actions{display:flex;flex-wrap:wrap;gap:8px}
.after-send-actions .button,#after-send-update{min-height:44px;align-self:flex-start}
/* Take MEO back (step 6): the three effects before confirming, each step after. */
.tmb{display:grid;gap:12px}
.tmb-who{display:grid;gap:6px;border:0;padding:0;margin:0}
.tmb-who .choice{min-height:44px;display:flex;align-items:center;gap:8px}
.tmb-effects{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tmb-effects li{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;border-top:1px solid #edf1ee;padding-top:8px}
.tmb-effects li>b{font-size:12.5px;color:#586b61;text-transform:uppercase;letter-spacing:.05em}
.tmb-effects small{display:block;color:#586b61}
.tmb-rooms{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.tmb-rooms button{font:inherit;min-height:44px;padding:0 12px;border-radius:10px;border:1.5px solid #d7dfd9;background:#fff;cursor:pointer}
.tmb-rooms button[aria-pressed=true]{background:#d7f68b;border-color:#174a43;font-weight:700}
.tmb input[type=text],.tmb select{min-height:44px;width:100%;box-sizing:border-box}
.tmb-done{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tmb-done .ok{color:#174a43;font-weight:700}.tmb-done .no{color:#a23a2c;font-weight:800}
.tmb-error{color:#a23a2c;margin:0}
@media(max-width:600px){.tmb-effects li{grid-template-columns:1fr}}
.tmb-note{margin:0 0 8px;color:#8a5200;font-weight:600}
/* Write schedule update: the changes no email has told yet, under a blank message box. */
#modal-body #update-message{min-height:120px}
.update-changes{border:1px solid #dfe7d8;border-radius:9px;background:#f7faf3;padding:10px 14px;margin:4px 0 12px;font-size:13px}
.update-changes>p{margin:0 0 6px;color:#4d6847}
.update-changes ul{list-style:none;margin:0;padding:0}
.update-changes li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid #e6ece0}
.update-changes li span{min-width:0;overflow-wrap:anywhere}
.update-changes .text-button{font-size:13px;color:#214d3c;min-height:36px;white-space:nowrap}
.update-changes>.text-button{margin-top:4px;padding-left:0}
/* Rebalance offer after a CRNA's day changes (owner, 2026-10-25). */
.rebalance-done{display:flex;gap:8px;align-items:center;background:#fbeaea;color:#9b2c2c;border-radius:8px;padding:8px 10px;font-weight:600;margin:0 0 12px}
.rebalance-done.back{background:#e7f3e6;color:#2f6b3f}
.rebalance{padding:12px;border-radius:10px;background:#f3f8ef;border:1px solid #d6e6cd}
.rebalance>p{margin:0}
.rebalance-counts{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:8px!important;font-size:12px;color:#60766a}
.rebalance-counts span{border-radius:999px;padding:3px 9px;font-size:12px;font-weight:700;background:#fff;border:1px solid #e1e7e2}
.rebalance-counts .was{text-decoration:line-through;color:#60766a}
.rebalance-counts .next{background:#d7f68b;border-color:#bfe06b;color:#173f37}
.rebalance-steps{margin:10px 0 6px;padding-left:20px}
.rebalance-steps li{padding:6px 0;border-top:1px solid #e1e7e2}
.rebalance-steps li:first-child{border-top:0}
.rebalance-steps small{display:block;color:#60766a}
.rebalance .text-button{color:#174a43;font-size:13px;text-decoration:underline}
