/* Make the schedule: the board (board-view.js) and the Board | Peeloff list switch. */
.schedule-board{--forest:#174a43;--forest-lo:#0f3631;--lime:#d7f68b;--lime-wash:#f1fad6;--ink:#1b2b26;--muted:#56675f;--faint:#7d8c85;--rule:#d3dbd1;--rule-soft:#edf1ea;
 --md:#2f6a5e;--md-wash:#e2eee6;--crna:#2c5d8a;--crna-bar:#3d72a3;--crna-wash:#e3edf7;--warn:#8a5000;--warn-wash:#fff0cc;--warn-line:#e2b45a;
 --roomw:168px;--whow:236px;--actw:112px;display:none;margin:0 0 16px;color:var(--ink)}
body[data-creator-layout=board] .schedule-board{display:block}
.creator-layout-bar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:-6px 0 12px;font-size:13px;color:#586b61}
.creator-layout-switch{display:flex;background:#fff;border:1px solid #d3dbd1;border-radius:10px;padding:3px}
.creator-layout-switch button{all:unset;cursor:pointer;padding:6px 14px;border-radius:7px;font-size:14px;font-weight:650;color:#56675f}
.creator-layout-switch button[aria-pressed=true]{background:#174a43;color:#fff}
.creator-layout-switch button:focus-visible,.schedule-board :focus-visible{outline:3px solid #2e7a6b;outline-offset:2px}
.board-head{display:flex;align-items:flex-end;gap:16px;margin:0 0 10px}
.board-head h2{margin:0;font-size:22px;font-weight:800;font-stretch:84%;line-height:1.1}
.board-head p{margin:3px 0 0;color:var(--muted);font-size:14px}
.board-mode{margin-left:auto;display:flex;border:1px solid var(--rule);border-radius:10px;padding:3px;background:#fff;flex:none}
.board-mode button{all:unset;cursor:pointer;padding:5px 12px;border-radius:7px;font-size:13px;font-weight:650;color:var(--muted)}
.board-mode button[aria-pressed=true]{background:var(--lime);color:var(--forest-lo)}
.board-cols{display:flex;gap:12px;align-items:flex-start}
.board-panel{flex:1;min-width:0;background:#fff;border:1px solid var(--rule);border-radius:12px;overflow:hidden}
.board-banner[hidden]{display:none}
.board-banner{display:flex;align-items:center;gap:10px;padding:8px 14px;background:var(--lime);color:var(--forest-lo);font-weight:650;font-size:14px}
.board-banner .text-button{margin-left:auto;font-weight:700;text-decoration:underline;color:inherit}
.board-axis,.board-row,.board-group{display:grid;grid-template-columns:var(--roomw) var(--whow) minmax(0,1fr) var(--actw)}
.board-axis{height:28px;border-bottom:1px solid var(--rule);font-size:12px;color:var(--muted);background:#fafbf8;position:sticky;top:0;z-index:3}
.board-axis>span{padding:7px 0 0 14px;font-weight:600}.board-axis>span:nth-child(2){padding-left:0}
.board-ticks{position:relative}
.board-ticks span{position:absolute;top:7px;transform:translateX(-50%);white-space:nowrap}
.board-ticks span:first-child{transform:none}.board-ticks span:last-child{transform:translateX(-100%)}
.board-ticks span.is-cut{top:4px;background:var(--lime);color:var(--forest-lo);font-weight:700;border-radius:999px;padding:1px 7px}
.board-rows-wrap{position:relative}
.board-cutline{position:absolute;top:0;bottom:0;width:0;border-left:2px dashed #9bbf4d;pointer-events:none;z-index:1;left:calc(var(--roomw) + var(--whow) + (100% - var(--roomw) - var(--whow) - var(--actw)) * .1667)}
.board-group{align-items:baseline;padding:10px 0 3px;border-top:1px solid var(--rule-soft)}
.board-rows>.board-group:first-child{border-top:0}
.board-group h3{margin:0;padding-left:14px;font-size:14px;font-weight:750;color:var(--forest);font-stretch:92%}
.board-group small{font-size:12px;color:var(--muted);white-space:nowrap}
.board-group-sum{grid-column:3/5;text-align:right;padding-right:14px;font-size:12.5px;font-weight:650;color:var(--forest)}
.board-empty{margin:0;padding:4px 14px 10px 14px;font-size:13px;color:var(--muted)}
.board-row{min-height:38px;align-items:center;position:relative}
.board-row:hover,.board-row:focus-within{background:#f6f9f3}
.board-room{padding:3px 6px 3px 14px;display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;align-self:stretch;line-height:1.2}
.board-room-name{display:flex;align-items:baseline;gap:6px;min-width:0;white-space:nowrap}
.board-room-name b{font-weight:700;font-stretch:86%;font-size:15px;overflow:hidden;text-overflow:ellipsis}
.board-room-name small{font-size:11.5px;color:var(--faint);font-weight:600}
.board-room-sub{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-room-sub:empty{display:none}
.board-tag{font-size:11px;font-weight:650;border-radius:999px;padding:0 7px;background:var(--rule-soft);color:var(--muted);white-space:nowrap}
.board-tag.is-added{background:#e3f0d9;color:var(--forest)}
.board-row.is-piece .board-room{padding-left:32px}
.board-row.is-piece .board-room::before{content:"";position:absolute;left:18px;top:-8px;height:calc(50% + 8px);width:8px;border-left:2px solid #9db5aa;border-bottom:2px solid #9db5aa;border-bottom-left-radius:4px}
.board-room-sub.is-gap{color:var(--forest);white-space:normal}
.board-who{display:flex;align-items:center;flex-wrap:wrap;gap:4px 5px;min-width:0;padding:4px 8px 4px 0;position:relative}
.board-seg{display:inline-flex;border:1.5px solid var(--rule);border-radius:8px;overflow:hidden;font-size:13px;font-weight:650}
.board-seg button{all:unset;cursor:pointer;padding:4px 10px;color:var(--muted);white-space:nowrap}
.board-seg button+button{border-left:1.5px solid var(--rule)}
.board-seg .board-seg-in.is-on{background:var(--forest);color:#fff}
.board-seg .board-seg-out.is-on{background:var(--rule-soft);color:var(--ink)}
.board-seg button:not(.is-on):hover{background:#f1f5ee;color:var(--ink)}
.board-seg button:disabled{cursor:default}
.board-chip{display:inline-flex;align-items:center;gap:4px;min-height:26px;border-radius:6px;padding:0 4px 0 8px;font-size:13.5px;font-weight:700;font-stretch:88%;background:var(--md-wash);color:var(--forest);white-space:nowrap;max-width:100%}
.board-chip.crna{background:var(--crna-wash);color:var(--crna)}
.board-chip small{font-weight:600;font-size:11px;opacity:.8}
.board-chip.is-review{outline:1.5px solid var(--warn-line)}
.board-chip-x{all:unset;cursor:pointer;width:20px;height:20px;border-radius:4px;text-align:center;font-size:15px;line-height:20px;color:inherit;opacity:.55}
.board-chip-x:hover,.board-chip-x:focus-visible{opacity:1;background:#ffffff99}
.board-chip-x:disabled{display:none}
.board-sup{display:inline-flex;align-items:center;min-height:24px;border-radius:6px;padding:0 8px;font-size:12.5px;font-weight:650;color:var(--forest);background:#fff;border:1.5px solid #b7cdc2;white-space:nowrap}
.board-twice{font-size:12px;color:var(--warn);font-weight:650}
.board-slot{all:unset;box-sizing:border-box;cursor:pointer;min-height:28px;border:1.5px dashed var(--warn-line);border-radius:7px;padding:3px 10px;font-size:13px;font-weight:650;color:var(--warn);background:#fffbf0;white-space:nowrap}
.board-slot:hover,.board-slot[aria-pressed=true]{background:var(--warn-wash);border-style:solid}
.board-slot.is-crna-needed{border-color:var(--crna-bar);color:var(--crna);background:#f5f9fd}
.board-person-sv.is-needs-crna{color:var(--crna);font-weight:700}
.board-slot.is-put{border:1.5px solid #8db33a;background:var(--lime);color:var(--forest-lo)}
.board-slot.is-small{min-height:24px;font-size:12px;padding:1px 7px;border-color:#9fb9d3;color:var(--crna);background:#f5f9fd}
.board-slot.is-empty{cursor:default}
.board-type{position:relative;flex:1;min-width:0}
.board-type-input{width:100%;box-sizing:border-box;height:30px;border:2px solid var(--forest);border-radius:7px;padding:0 8px;font-size:14px;background:#fff}
.board-picklist{position:absolute;left:0;top:33px;width:260px;max-height:330px;overflow:auto;background:#fff;border:1px solid var(--rule);border-radius:10px;box-shadow:0 8px 24px #1b2b2626;z-index:20;padding:4px}
.board-option{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:baseline;padding:6px 8px;border-radius:7px;font-size:14px;cursor:pointer}
.board-option[aria-selected=true],.board-option:hover{background:var(--lime-wash)}
.board-option.crna b{color:var(--crna)}
.board-option small{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.board-option-hint{margin:4px 8px;font-size:12px;color:var(--muted)}
.board-tl{position:relative;align-self:stretch;min-height:34px;background:repeating-linear-gradient(to right,var(--rule-soft) 0 1px,transparent 1px calc(100%/12))}
.board-bar{position:absolute;top:50%;height:18px;margin-top:-9px;border-radius:4px;background:var(--md)}
.board-bar.is-out{background:#fff;border:1.5px dashed #b9c5bc}
.board-bar.is-crna{background:var(--crna-bar)}
.board-bar.is-need{background:repeating-linear-gradient(135deg,#fce7bc 0 5px,#f8dca2 5px 10px);border:1.5px solid var(--warn-line)}
.board-bar.is-open{border-top-right-radius:0;border-bottom-right-radius:0;opacity:.75}
.board-bar.is-linked{outline:2px solid #fff;outline-offset:-3px}
.board-addtimes{all:unset;cursor:pointer;position:absolute;top:50%;left:1%;transform:translateY(-50%);font-size:12px;font-weight:650;color:var(--muted);border:1.5px dashed #b9c5bc;border-radius:5px;padding:1px 8px;background:#fff}
.board-addtimes:hover{color:var(--forest);border-color:var(--forest)}
.board-act{display:flex;justify-content:center}
.board-remove{all:unset;cursor:pointer;width:26px;height:26px;border-radius:6px;text-align:center;line-height:26px;font-size:17px;color:var(--faint)}
.board-remove:hover,.board-remove:focus-visible{background:var(--rule-soft);color:var(--ink)}
.board-remove:disabled{display:none}
.board-foot{border-top:1px solid var(--rule);padding:10px 14px;display:flex;align-items:center;gap:10px 16px;background:#fafbf8;flex-wrap:wrap}
.board-add{display:flex;gap:6px;align-items:center;flex:1 1 520px;flex-wrap:wrap}
.board-add-label{font-size:13px;font-weight:700;color:var(--forest)}
.board-add input{height:36px;border:1.5px solid var(--rule);border-radius:9px;padding:0 10px;flex:1;min-width:200px;font-size:14px;background:#fff}
.board-add select{height:36px;border:1.5px solid var(--rule);border-radius:9px;padding:0 8px;background:#fff;font-size:14px}
.board-add-reads{flex-basis:100%;margin:0;font-size:12.5px;color:var(--muted);min-height:16px}
.board-total{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:13px;color:var(--muted)}
.board-total-big{font-stretch:62%;font-weight:800;font-size:34px;line-height:1;color:var(--forest)}
.board-total-text b{color:var(--ink);font-size:14px}
.board-total .text-button{font-weight:700;color:var(--forest);text-decoration:underline}
.board-legend{display:flex;gap:14px;font-size:12.5px;color:var(--muted);align-items:center}
.board-legend i{display:inline-block;width:18px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.board-legend i.is-md{background:var(--md)}.board-legend i.is-crna{background:var(--crna-bar)}
.board-legend i.is-need{background:repeating-linear-gradient(135deg,#fce7bc 0 4px,#f8dca2 4px 8px);border:1px solid var(--warn-line)}
.board-more{flex-basis:100%;margin:0;font-size:12px;color:var(--muted)}
.board-rail{width:230px;flex:none;background:#fff;border:1px solid var(--rule);border-radius:12px;position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}
.board-rail-head{padding:10px 12px 8px;border-bottom:1px solid var(--rule);position:sticky;top:0;background:#fff;z-index:1}
.board-rail-head b{font-size:14px}.board-rail-head p{margin:1px 0 0;font-size:12px;color:var(--muted)}
.board-rail-head.is-asking{background:var(--lime)}.board-rail-head.is-asking p{color:var(--forest-lo)}
.board-rail-group{margin:8px 12px 2px;font-size:12px;color:var(--muted);font-weight:650;display:flex;justify-content:space-between}
.board-rail-none{margin:2px 12px;font-size:12px;color:var(--muted)}
.board-person{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:62px minmax(0,1fr);column-gap:6px;width:100%;padding:3px 12px;align-items:baseline}
.board-person:hover{background:var(--lime-wash)}
.board-person[aria-pressed=true]{background:var(--lime)}
.board-person-pos{font-size:11px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;grid-row:1/3}
.board-person-name{font-size:14px;font-weight:700;font-stretch:86%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-person.crna .board-person-name{color:var(--crna)}
.board-person-room{grid-column:2;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-person-room.is-none{color:var(--faint);font-style:italic}
.board-person-sv{grid-column:2;font-size:11.5px;color:var(--muted)}
.board-person.is-off{cursor:default;opacity:.5}.board-person.is-off:hover{background:none}
.board-person:disabled{cursor:default}
.schedule-board.is-locked .board-add{display:none}
/* Combine, split, join and swap (room-actions.js): quiet words at the end of a row, a bracket for combined rooms. */
.board-act{gap:2px 10px;flex-wrap:wrap;justify-content:flex-end;align-items:center;padding-right:10px}
.board-quiet{all:unset;cursor:pointer;font-size:12.5px;font-weight:650;color:var(--faint);white-space:nowrap;border-radius:5px;padding:1px 3px}
.board-row:hover .board-quiet,.board-row:focus-within .board-quiet,.board-quiet:focus-visible{color:var(--forest)}
.board-quiet:hover{text-decoration:underline;text-underline-offset:3px}
.board-quiet.is-target{color:var(--forest-lo);background:var(--lime);padding:2px 8px}
.board-quiet.is-target:hover{text-decoration:none;background:#c8ec6c}
.board-who .board-quiet{margin-left:2px}
.board-row.is-combined .board-room,.board-row.is-partner .board-room{padding-left:26px}
.board-row.is-combined .board-room::before,.board-row.is-partner .board-room::before{content:"";position:absolute;left:12px;width:7px;border-left:2.5px solid var(--forest)}
.board-row.is-combined .board-room::before{top:50%;bottom:0;border-top:2.5px solid var(--forest);border-top-left-radius:4px}
.board-row.is-partner .board-room::before{top:0;bottom:50%;border-bottom:2.5px solid var(--forest);border-bottom-left-radius:4px}
.board-with{font-size:12.5px;color:var(--muted);white-space:nowrap}.board-with b{color:var(--forest)}
.board-warn{font-size:12px;font-weight:650;color:var(--warn);white-space:nowrap}
.board-row.is-target{cursor:pointer}
.board-row.is-target:hover{background:var(--lime-wash)}
.board-row.is-drop{background:var(--lime-wash);box-shadow:inset 0 0 0 2px #8db33a}
body.board-dragging .board-bar[draggable]{cursor:grabbing}
.board-bar[draggable=true]{cursor:grab}
.board-gap{all:unset;position:absolute;top:50%;height:20px;margin-top:-10px;border-radius:4px;cursor:pointer;z-index:1}
.board-gap:hover,.board-gap:focus-visible{background:var(--lime-wash);outline:1.5px dashed #8db33a}
.board-gap:hover::after,.board-gap:focus-visible::after{content:"Split";position:absolute;inset:0;display:grid;place-items:center;font-size:10.5px;font-weight:800;color:var(--forest)}
.board-tl[data-board-split-tl]{cursor:copy}
.board-q{display:grid;grid-template-columns:var(--roomw) minmax(0,1fr);background:var(--lime-wash);border-top:1px solid #ddebb4;border-bottom:1px solid #ddebb4;padding:9px 0}
.board-q-text,.list-ask .board-q-text{grid-column:2;display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;font-size:14px;padding-right:14px;color:var(--ink,#1b2b26)}
.board-q-text p{margin:0;flex:1 1 360px;line-height:1.45}
.board-q-text small{display:block;color:#56675f;font-size:12.5px;margin-top:2px}
.board-q-text small.is-warn{color:#8a5000;font-weight:650}
.board-q-buttons{display:flex;gap:6px;flex-wrap:wrap}
.board-q-time{width:68px;height:28px;box-sizing:border-box;border:1.5px solid #b7cdc2;border-radius:6px;text-align:center;font-size:14px;background:#fff}
.list-ask .board-q-time,.list-ask input.board-q-time{width:68px;min-width:0;max-width:68px;height:28px;padding:0 4px;border:1.5px solid #b7cdc2;border-radius:6px;background:#fff;display:inline-block;vertical-align:baseline}
.list-ask{background:#f1fad6;border-top:1px solid #ddebb4;border-bottom:1px solid #ddebb4;padding:9px 12px!important}
#assignments tr.list-ask-row>td.list-ask{grid-column:1/-1;grid-row:auto}
div.list-ask{margin-top:8px;border-radius:8px;border:1px solid #ddebb4}
/* The afternoon rooms check: a quiet line when nothing changed, the changes and one Confirm otherwise. */
.rooms-check[hidden]{display:none}
.rooms-check{margin:0 0 12px}
.rooms-check-ok{margin:0;font-size:13.5px;color:#56675f}.rooms-check-ok b{color:#174a43}
.rooms-check-box{display:flex;align-items:flex-start;gap:12px 20px;flex-wrap:wrap;background:#fff0cc;border:1px solid #e2b45a;border-radius:10px;padding:10px 14px;font-size:14px;color:#1b2b26}
.rooms-check-box>div{flex:1 1 320px}.rooms-check-box ul{margin:4px 0 0;padding-left:18px}.rooms-check-box li{margin:1px 0}
/* The peeloff list's MEO box stays where it was, quiet until hover (owner 2026-10-15), with a mouse; on touch it is
   always fully shown (step 3). */
@media(hover:hover){#assignments input[data-meo]:not(:checked){opacity:.45}
#assignments tr:hover input[data-meo],#assignments tr:focus-within input[data-meo]{opacity:1}}
/* Board layout: the board takes the place of the room planner, peeloff and CRNA panels. Peeloff list: unchanged. */
@media(min-width:1060px){
 body[data-creator-layout=board] :is(#room-planning,#staff-planning,#crna-planning){display:none}
 body[data-creator-layout=board] .workspace{display:block}
}
@media(min-width:1500px){.schedule-board,.creator-layout-bar{grid-column:1/-1}}
@media(max-width:1059px){
 .schedule-board{margin:0}
 body[data-creator-layout=board] .schedule-board{display:none}
 /* The Count step shows the board too, under the morning panel; Morning/Afternoon follows the step. */
 body[data-creator-layout=board]:is([data-creator-view=count],[data-creator-view=rooms],[data-creator-view=crnas],[data-creator-view=peeloff]) .schedule-board{display:block}
 .schedule-board .board-mode{display:none}
 body[data-creator-layout=board][data-creator-view=rooms] #room-planning,body[data-creator-layout=board][data-creator-view=crnas] #crna-planning,body[data-creator-layout=board][data-creator-view=peeloff] #staff-planning{display:none!important}
 .schedule-board{--roomw:130px;--whow:200px;--actw:96px}
 .board-rail{width:190px}
 .creator-layout-bar{margin:0 0 10px}
}
/* Phones (≤ 700px): two-line rows, bottom sheets (board-view.js phoneRowsHTML / phoneSheetHTML). */
.board-phone,.bp-layer{display:none}
@media(max-width:700px){
 body[data-creator-layout=board][data-creator-view=count] .schedule-board{display:block}
 /* The steps bar reaches the screen edges; nothing may scroll the page sideways (clip keeps sticky bars working). */
 body>main{overflow-x:clip}
 body[data-creator-layout=board] .schedule-board{margin:0 0 12px}
 .schedule-board .board-cols{display:none}
 .board-phone{display:block}
 .bp-layer:not([hidden]){display:block}
 .board-head{display:block;margin:4px 0 8px}
 .board-head h2{font-size:19px}
 .board-head p{font-size:13px;line-height:1.35}
 .board-mode{display:none}
 .creator-layout-bar>span{display:none}
 .creator-layout-switch button{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
 .bp-banner{position:sticky;top:var(--steps-h,0px);z-index:4;display:flex;align-items:center;gap:10px;padding:8px 12px;margin:0 0 8px;border-radius:10px;background:var(--lime);color:var(--forest-lo);font-size:14px;font-weight:650}
 .bp-banner[hidden]{display:none}
 .bp-banner .bp-btn{margin-left:auto;background:#fff}
 .bp-rows{background:#fff;border:1px solid var(--rule);border-radius:12px;overflow:hidden}
 .bp-axis{display:flex;justify-content:space-between;padding:6px 12px 4px;font-size:10.5px;color:var(--faint);border-bottom:1px solid var(--rule-soft);background:#fafbf8}
 .bp-group{display:flex;align-items:baseline;gap:8px;padding:12px 12px 4px;border-top:1px solid var(--rule)}
 .bp-axis+.bp-group{border-top:0}
 .bp-group h3{margin:0;font-size:14px;font-weight:750;color:var(--forest)}
 .bp-group span{margin-left:auto;font-size:12.5px;font-weight:650;color:var(--forest)}
 .bp-empty{margin:0;padding:2px 12px 10px;font-size:13px;color:var(--muted)}
 .bp-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:4px 12px 9px;border-top:1px solid var(--rule-soft);cursor:pointer;-webkit-tap-highlight-color:transparent}
 .bp-group+.bp-row,.bp-empty+.bp-row{border-top:0}
 .bp-row:active{background:#f6f9f3}
 .bp-open{all:unset;box-sizing:border-box;min-width:0;min-height:44px;display:flex;flex-direction:column;justify-content:center;cursor:pointer}
 .bp-open:focus-visible{outline:3px solid #2e7a6b;outline-offset:2px;border-radius:6px}
 .bp-name{display:flex;align-items:baseline;gap:6px;min-width:0;white-space:nowrap}
 .bp-name b{font-size:16px;font-weight:750;font-stretch:86%;overflow:hidden;text-overflow:ellipsis}
 .bp-name small{font-size:11.5px;font-weight:600;color:var(--faint)}
 .bp-tag{font-size:11px;font-weight:650;border-radius:999px;padding:0 7px;background:#e3f0d9;color:var(--forest)}
 .bp-sub{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}
 .bp-right{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;max-width:58vw}
 .bp-pill{all:unset;box-sizing:border-box;min-height:44px;min-width:92px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:10px;border:1.5px solid var(--rule);font-size:14px;font-weight:700;color:var(--muted);background:#fff;cursor:pointer}
 .bp-pill.is-in{background:var(--forest);border-color:var(--forest);color:#fff}
 .bp-pill.is-out{background:var(--rule-soft);color:var(--ink)}
 .bp-pill:focus-visible{outline:3px solid #2e7a6b;outline-offset:2px}
 span.bp-pill{cursor:default}
 .bp-who{display:inline-flex;align-items:center;min-height:28px;border-radius:7px;padding:0 9px;font-size:14px;font-weight:700;font-stretch:88%;background:var(--md-wash);color:var(--forest);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .bp-who.crna{background:var(--crna-wash);color:var(--crna)}
 .bp-sup{font-size:12px;font-weight:650;color:var(--forest);border:1.5px solid #b7cdc2;border-radius:7px;padding:2px 7px;white-space:nowrap}
 .bp-sup.is-missing{color:var(--crna);border-color:#9fb9d3;border-style:dashed}
 .bp-twice{font-size:12px;font-weight:650;color:var(--warn)}
 .bp-need{display:inline-flex;align-items:center;min-height:28px;border:1.5px dashed var(--warn-line);border-radius:7px;padding:0 9px;font-size:13px;font-weight:650;color:var(--warn);background:#fffbf0;white-space:nowrap}
 .bp-with{font-size:13px;color:var(--muted)}.bp-with b{color:var(--forest)}
 .bp-bar{grid-column:1/-1;position:relative;display:block;height:10px;margin-top:4px;border-radius:3px;background:repeating-linear-gradient(to right,var(--rule-soft) 0 1px,transparent 1px calc(100%/12))}
 .bp-bar i{position:absolute;top:1px;height:8px;border-radius:2px;background:var(--md)}
 .bp-bar i.is-out{background:#fff;border:1px dashed #aebbb2;top:1px;box-sizing:border-box}
 .bp-bar i.is-crna{background:var(--crna-bar)}
 .bp-bar i.is-need{background:repeating-linear-gradient(135deg,#f8dca2 0 3px,#f0c778 3px 6px)}
 .bp-bar i.is-open{opacity:.7}
 .bp-cut{position:absolute;top:-3px;bottom:-3px;border-left:1.5px dashed #8db33a}
 .bp-row.is-left-out .bp-name b{color:var(--muted)}
 .bp-row.is-piece,.bp-row.is-partner{padding-left:30px}
 .bp-row.is-piece::before{content:"";position:absolute;left:14px;top:0;height:24px;width:8px;border-left:2px solid #9db5aa;border-bottom:2px solid #9db5aa;border-bottom-left-radius:4px}
 .bp-row.is-combined{padding-left:30px}
 .bp-row.is-combined::before{content:"";position:absolute;left:14px;top:24px;bottom:0;width:7px;border-left:2.5px solid var(--forest);border-top:2.5px solid var(--forest);border-top-left-radius:4px}
 .bp-row.is-partner::before{content:"";position:absolute;left:14px;top:0;height:24px;width:7px;border-left:2.5px solid var(--forest);border-bottom:2.5px solid var(--forest);border-bottom-left-radius:4px}
 .bp-row.is-target{background:var(--lime-wash)}
 .bp-target{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:9px;background:var(--lime);color:var(--forest-lo);font-size:14px;font-weight:750}
 .bp-row.is-flash{animation:bp-flash 2.6s ease-out}
 @keyframes bp-flash{0%,35%{background:var(--lime)}100%{background:#fff}}
 .bp-add{all:unset;box-sizing:border-box;display:block;width:100%;min-height:48px;padding:0 12px;border-top:1px solid var(--rule);font-size:15px;font-weight:700;color:var(--forest);cursor:pointer;text-align:left}
 .bp-add:focus-visible{outline:3px solid #2e7a6b;outline-offset:-3px}
 .schedule-board.is-combining .bp-add{display:none}
 /* The sheet */
 body.bp-sheet-open{overflow:hidden}
 .bp-layer{position:fixed;inset:0;z-index:40}
 .bp-scrim{position:absolute;inset:0;background:#0f363159}
 .bp-sheet{position:absolute;left:0;right:0;bottom:0;max-height:86vh;max-height:86dvh;display:flex;flex-direction:column;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px #0f363133;color:var(--ink);animation:bp-up .18s ease-out}
 @keyframes bp-up{from{transform:translateY(24px)}to{transform:none}}
 .bp-grip{flex:none;width:40px;height:5px;border-radius:3px;background:var(--rule);margin:8px auto 2px}
 .bp-sheet-body{overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:4px 16px calc(14px + env(safe-area-inset-bottom))}
 .bp-head{padding:4px 0 10px;border-bottom:1px solid var(--rule-soft);margin-bottom:10px}
 .bp-head h2{margin:0;font-size:20px;font-weight:800;font-stretch:86%;outline:none}
 .bp-head p{margin:2px 0 6px;font-size:13px;color:var(--muted)}
 .bp-head .bp-bar{height:14px}.bp-head .bp-bar i{height:12px}
 .bp-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border-radius:10px;border:1.5px solid var(--rule);font-size:15px;font-weight:700;color:var(--forest);background:#fff;cursor:pointer;text-align:center}
 .bp-btn:focus-visible{outline:3px solid #2e7a6b;outline-offset:2px}
 .bp-btn.is-primary{background:var(--forest);border-color:var(--forest);color:#fff}
 .bp-btn.is-small{min-height:40px;padding:0 12px;font-size:14px}
 .bp-btn.is-danger{color:#8a2d12;border-color:#e8c4b6}
 .bp-btn.is-wide{width:100%}
 .bp-btn:disabled{opacity:.5;cursor:default}
 .bp-big2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .bp-big2 .bp-btn{min-height:48px}
 .bp-big2 .bp-btn.is-on[data-value=in]{background:var(--forest);border-color:var(--forest);color:#fff}
 .bp-big2 .bp-btn.is-on[data-value=out]{background:var(--rule-soft);border-color:#b9c5bc;color:var(--ink)}
 .bp-note{margin:8px 0 0;font-size:13px;color:var(--muted)}
 .bp-has{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
 .bp-h4{margin:14px 0 6px;font-size:13px;font-weight:700;color:var(--ink)}
 .bp-h4 small{font-weight:500;color:var(--muted)}
 .bp-typeline{display:flex;gap:6px;margin-bottom:8px}
 .bp-type{flex:1;min-width:0;height:44px;box-sizing:border-box;border:2px solid var(--forest);border-radius:10px;padding:0 12px;font-size:16px;background:#fff}
 .bp-chips{display:flex;flex-wrap:wrap;gap:6px}
 .bp-chip{all:unset;box-sizing:border-box;min-height:44px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border-radius:10px;border:1.5px solid var(--rule);background:#fff;font-size:15px;cursor:pointer;max-width:100%}
 .bp-chip b{font-weight:750;font-stretch:88%;white-space:nowrap}
 .bp-chip small{font-size:11.5px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .bp-chip.crna{border-color:#bcd0e4}.bp-chip.crna b{color:var(--crna)}
 .bp-chip:not(.has-room):not(.is-cur){border-color:#8db33a;background:var(--lime-wash)}
 .bp-chip.has-room{opacity:.8}
 .bp-chip.is-more{border-style:dashed;color:var(--forest);font-weight:700}
 .bp-chip.is-cur{cursor:default;background:var(--md-wash);border-color:var(--md-wash);color:var(--forest);font-weight:750;padding-right:2px}
 .bp-chip.is-cur.crna{background:var(--crna-wash);border-color:var(--crna-wash);color:var(--crna)}
 .bp-chip:focus-visible{outline:3px solid #2e7a6b;outline-offset:2px}
 .bp-x{all:unset;box-sizing:border-box;width:40px;height:40px;display:grid;place-items:center;font-size:20px;border-radius:8px;cursor:pointer;opacity:.7}
 .bp-x:focus-visible{outline:3px solid #2e7a6b;opacity:1}
 .bp-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--rule-soft)}
 .bp-foot{margin-top:12px}
 .bp-q .board-q-text{display:block;font-size:15px}
 .bp-q .board-q-text p{margin:0 0 12px;line-height:1.5}
 .bp-q .board-q-buttons{display:flex;flex-direction:column;gap:8px}
 .bp-q .board-q-buttons .button{min-height:48px;width:100%;font-size:15px;justify-content:center}
 .bp-q .board-q-time{height:40px;width:84px;font-size:16px}
 .bp-addform input[type=text]{width:100%;box-sizing:border-box;height:48px;border:1.5px solid var(--rule);border-radius:10px;padding:0 12px;font-size:16px}
 .bp-reads{margin:6px 0 10px;font-size:13px;color:var(--muted);min-height:18px}
 .bp-area{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650;color:var(--forest)}
 .bp-area select{flex:1;height:44px;border:1.5px solid var(--rule);border-radius:10px;padding:0 10px;font-size:16px;background:#fff}
}
@media(prefers-reduced-motion:reduce){.schedule-board *{transition:none!important}}
/* Two people on one room (app.js renderDoubleBooked): above the board and the list, and beside Send. */
.double-booked[hidden]{display:none}
.double-booked{margin:0 0 12px;background:#fff0cc;border:1px solid #e2b45a;border-radius:10px;padding:10px 14px;font-size:14px;color:#1b2b26}
.double-booked ul{margin:4px 0;padding-left:18px}.double-booked small{color:#56675f}
/* Moving cases (case-moves.js): case bars select, focus and drag; the selection rectangle; "Drop to move here";
   the Move to… list; moved cases under the room that took them. */
.board-bar.is-case:hover{filter:brightness(1.08)}
.board-bar.is-case:focus-visible{outline:3px solid #2e7a6b;outline-offset:2px;z-index:2}
.board-bar.is-selected{box-shadow:0 0 0 2.5px #fff,0 0 0 5px #1f6fd1;z-index:2}
.board-room[draggable=true]{cursor:grab}
body.board-marqueeing,body.board-marqueeing *{user-select:none;-webkit-user-select:none;cursor:crosshair!important}
.board-marquee{position:fixed;z-index:50;pointer-events:none;border:1.5px solid #1f6fd1;background:#1f6fd126;border-radius:2px}
.board-row.is-drop[data-drop-label]::after{content:attr(data-drop-label);position:absolute;right:calc(var(--actw) + 8px);top:50%;transform:translateY(-50%);background:var(--forest);color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:2px 10px;pointer-events:none;z-index:4}
.board-row.is-moved .board-with b{color:var(--forest)}
.board-row.is-flash{animation:board-flash 2.6s ease-out}
@keyframes board-flash{0%,30%{background:var(--lime)}100%{background:transparent}}
.board-sel-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.board-sel-text b{font-weight:750}
.board-sel-hint{margin-left:auto;font-size:12px;font-weight:500;opacity:.8;white-space:nowrap}
.board-banner .button.small{white-space:nowrap}
.board-moveto-q .board-moveto{grid-column:2;padding-right:14px}
.board-moveto-head{margin:0 0 8px;display:flex;align-items:center;gap:10px;font-size:14px}
.board-moveto-group h4{margin:8px 0 4px;font-size:12px;font-weight:750;color:var(--forest);text-transform:none}
.board-moveto-list{display:flex;flex-wrap:wrap;gap:6px}
.board-moveto-room{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:column;min-width:120px;max-width:240px;padding:5px 10px;border:1.5px solid var(--rule);border-radius:8px;background:#fff;font-size:13.5px;line-height:1.25}
.board-moveto-room b{font-weight:750;color:var(--ink)}
.board-moveto-room small{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-moveto-room:hover,.board-moveto-room:focus-visible{border-color:#8db33a;background:var(--lime-wash)}
.board-moveto-room:focus-visible{outline:3px solid #2e7a6b;outline-offset:1px}
.board-moveto-room.is-back{border-color:#8db33a}
.board-moveto-room:disabled{opacity:.55;cursor:default;background:#fafbf8}
.bp-cases{margin-top:6px}
.bp-case.is-on,.bp-case[aria-pressed=true]{border-color:#1f6fd1!important;background:#e6f0fc!important;box-shadow:inset 0 0 0 1.5px #1f6fd1}
.bp-cases [data-bp-moveto]{margin-top:10px}
.board-moveto.is-phone .board-moveto-head{font-size:15px}
.board-moveto.is-phone .bp-chip{flex-direction:column;align-items:flex-start;justify-content:center;gap:0;padding:6px 12px}
.board-moveto.is-phone .bp-chip:disabled{opacity:.5}
@media(prefers-reduced-motion:reduce){.board-row.is-flash{animation:none}}
.board-selbar{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:45;display:flex;align-items:center;gap:10px 14px;max-width:min(860px,calc(100vw - 32px));box-sizing:border-box;padding:9px 12px 9px 16px;border-radius:12px;background:var(--forest);color:#fff;box-shadow:0 10px 30px #0f363140;font-size:14px}
.board-selbar[hidden]{display:none}
.board-selbar .board-sel-text{flex:1 1 auto}
.board-selbar .button.small.primary{background:var(--lime);color:var(--forest-lo);border-color:var(--lime)}
.board-selbar .text-button{color:#fff;text-decoration:underline;text-underline-offset:3px}
.board-selbar .board-sel-hint{margin:0;opacity:.75}
@media(max-width:700px){.board-selbar{display:none}}
@media(max-width:700px){
 .bp-cases .bp-case:not([aria-pressed=true]){border-color:var(--rule);background:#fff}
 .board-moveto.is-phone .board-moveto-list{display:grid;grid-template-columns:1fr;gap:6px}
 .board-moveto.is-phone .bp-chip{width:100%;background:#fff;border-color:var(--rule)}
 .board-moveto.is-phone .bp-chip.is-back{border-color:#8db33a;background:var(--lime-wash)}
}
/* Moves are records (case-moves.js): a row can't take the drop ("Can't drop here: reason"); moved cases are drawn
   with a stripe; a row whose cases all left says "All cases moved"; a move whose case changed in Epic is flagged. */
.board-row.is-nodrop{background:#fbf3f0}
.board-row.is-nodrop[data-drop-label]::after{content:attr(data-drop-label);position:absolute;right:calc(var(--actw) + 8px);top:50%;transform:translateY(-50%);max-width:min(560px,60%);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#7a2e1f;color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:2px 10px;pointer-events:none;z-index:4}
.board-bar.is-moved{outline:1.5px dashed #1b2b2699;outline-offset:1px}
.board-allmoved{display:inline-block;font-size:13px;font-weight:700;color:var(--muted);background:var(--rule-soft,#eef1ee);border-radius:999px;padding:3px 10px}
.board-row.is-emptied .board-room-name b{color:var(--muted)}
.board-row.is-flag .board-room-name b{color:var(--warn)}
.board-row.is-flag .board-who{flex-wrap:wrap;gap:4px 8px}
.bp-moved{grid-column:1/-1;font-size:12px;font-weight:650;color:var(--forest);margin-top:-2px}
.bp-bar i.is-moved{outline:1px dashed #1b2b2699}
.moved-in-note{display:block;margin-top:3px;font-size:12px;font-weight:650;color:#2f6b3f}
/* Tablets show the step bar at the foot of the window: the selection bar sits above it. */
@media(min-width:701px) and (max-width:1059px){.board-selbar{bottom:calc(16px + env(safe-area-inset-bottom))}}
/* Afternoon (owner, 2026-10-15): the staff list on the left of the board, a compact sum at its top, and names that
   drag onto rooms (or back onto the list to take someone off). The morning keeps its panel on the left. */
.schedule-board.is-afternoon .board-rail{order:-1;width:240px}
.board-rail-sum{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;padding:10px 12px;background:var(--forest);color:#fff;border-radius:11px 11px 0 0;font-size:12px;line-height:1.25;position:sticky;top:0;z-index:2}
.board-rail-sum b{display:block;font-size:20px;font-weight:800;line-height:1.05}
.board-rail-sum .is-open b{color:var(--lime)}
.board-rail-sum+.board-rail-head{position:static}
.board-chip[draggable=true]{cursor:grab}
.board-person[draggable=true]:active,.board-chip[draggable=true]:active{cursor:grabbing}
#board-rail.is-drop{outline:3px solid #8db33a;outline-offset:-3px;background:var(--lime-wash)}
#board-rail.is-drop[data-drop-label]::before{content:attr(data-drop-label);display:block;position:sticky;top:0;z-index:3;background:var(--forest);color:#fff;font-size:12px;font-weight:700;padding:6px 12px}
@media(max-width:1059px){.schedule-board.is-afternoon .board-rail{width:200px}.board-rail-sum{grid-template-columns:1fr}}
/* A name in the staff list: the whole name drags (it is not a <button>, so Firefox starts the drag too; all:unset
   drops Chrome's own -webkit-user-drag for [draggable], so it is set again); ⋯ beside it
   opens the same status menu as the peeloff list (sick, leave, advance MEO…; a CRNA's: sick, leave, not available). */
.board-person-row{display:flex;align-items:stretch;min-width:0}
.board-person-row>.board-person{flex:1;min-width:0}
.board-person[draggable=true]{cursor:grab;-webkit-user-drag:element}
.board-person[aria-disabled=true]{cursor:default}
.board-person:focus-visible{outline:3px solid #2e7a6b;outline-offset:-3px}
.board-person-row:hover>.board-person:not(.is-off){background:var(--lime-wash)}
.board-person-menu{all:unset;box-sizing:border-box;flex:none;width:32px;display:grid;place-items:center;font-size:18px;font-weight:800;line-height:1;color:var(--muted);cursor:pointer;border-radius:7px}
.board-person-menu:hover{background:var(--lime-wash);color:var(--forest-lo)}
.board-person-menu:focus-visible{outline:3px solid #2e7a6b;outline-offset:-3px}
.board-person-row.is-off .board-person-menu{opacity:1}
/* A case is never narrower than 14px, so it can still be clicked and dragged on a narrow window. */
.board-bar.is-case{min-width:14px}
/* Tablets and narrow windows (701–1059px): the staff list and the room columns get narrower so the 7a–7p line keeps
   at least 360px (a 30-minute case stays about 15px wide). */
@media(min-width:701px) and (max-width:1059px){
 .schedule-board.is-afternoon{--roomw:120px;--whow:140px;--actw:60px}
 .schedule-board.is-afternoon .board-rail{width:160px}
 .schedule-board.is-afternoon .board-cols{gap:8px}
 .schedule-board.is-afternoon .board-person{grid-template-columns:42px minmax(0,1fr);padding:3px 2px 3px 8px}
 .schedule-board.is-afternoon .board-person-menu{width:24px}
 .schedule-board.is-afternoon .board-room-name{flex-wrap:wrap;row-gap:0}
 .schedule-board.is-afternoon .board-act .board-quiet{padding-left:4px;padding-right:4px}
}

/* Special requests from the PSCV page (special-requests.js): the pin and the name on the case, a line under the
   room, and a gentle warning with Swap / Keep. Icon and words, never colour alone. */
.req-icon{width:13px;height:13px;flex:none;vertical-align:-2px}
.board-bar.is-request{background:var(--lime);box-shadow:inset 0 0 0 1.5px #8db33a;color:var(--forest-lo);display:flex;align-items:center;gap:3px;padding:0 4px;overflow:hidden;white-space:nowrap;font-size:11.5px;font-weight:800;line-height:18px;z-index:1}
.board-bar.is-request .req-icon{width:12px;height:12px}
.board-bar.is-request span{overflow:hidden;text-overflow:ellipsis}
.board-req{display:grid;grid-template-columns:var(--roomw) minmax(0,1fr);padding:0 0 6px;gap:4px 0}
.req-line{grid-column:2;display:grid;gap:6px;font-size:13px;color:var(--muted);padding-right:14px}
.req-line p{margin:0;line-height:1.5;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.req-tag{display:inline-flex;align-items:center;gap:4px;background:var(--lime);color:var(--forest-lo);box-shadow:inset 0 0 0 1px #8db33a;border-radius:6px;padding:1px 8px;font-weight:750;font-size:13px}
.req-tag.is-not{background:var(--lime-wash)}
.req-note{font-style:italic}
.req-note.is-hidden{font-style:normal;color:var(--muted)}
.req-kept{margin:0;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--forest);font-weight:650}
.req-hint{font-size:12.5px;color:var(--muted)}
.req-line .req-buttons a.button{text-decoration:none}
.req-ok{color:var(--forest);font-weight:700}
.req-moved{display:inline-flex;align-items:center;gap:4px;color:var(--warn);font-weight:700}
.req-moved.is-soft{font-weight:600}
.req-warn{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;background:var(--warn-wash);border:1px solid #f1d79a;border-radius:9px;padding:8px 12px;color:var(--ink);font-size:14px}
.req-warn p{margin:0;flex:1 1 320px;line-height:1.45;display:block}
.req-warn small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.req-buttons{display:flex;gap:6px;flex-wrap:wrap}
.board-requests-note{margin:0;padding:8px 14px;background:var(--warn-wash);color:var(--ink);font-size:13.5px;border-bottom:1px solid #f1d79a}
.bp-req{display:flex;align-items:center;gap:3px;font-size:12px;font-weight:750;color:var(--forest-lo);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bp-sheet .board-req{grid-template-columns:1fr;padding:0 0 10px}
.bp-sheet .req-line{grid-column:1;padding-right:0}
/* A selected case with a request keeps the selection ring (case-moves.js). */
.board-bar.is-request.is-selected{box-shadow:0 0 0 2.5px #fff,0 0 0 5px #1f6fd1,inset 0 0 0 1.5px #8db33a;z-index:2}
/* Select cases (whole-app step 5): a plain toggle beside the board's heading; on a phone the room sheet selects. */
.board-select[aria-pressed=true]{background:var(--forest);color:#fff;border-color:var(--forest)}
@media(max-width:700px){.board-select{display:none}}
/* Surgeon names on the bars (owner 2026-10-18; board-view.js surgeonRuns/placeNames): a small label in the bar's
   family at the start of a surgeon's first case: a smaller, darker tag inside the bar, so the case's edges and the
   gaps after a short case still show. As wide as the name, carrying on past a short case; shortened
   with "…" before another surgeon's case. Names never take a click (the bars under them do). */
.board-name{position:absolute;top:50%;height:14px;margin-top:-7px;box-sizing:border-box;padding:0 4px;border-radius:3px;background:var(--forest-lo);color:#fff;font-size:11px;font-weight:750;font-stretch:88%;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;z-index:3}
.board-name.is-crna{background:var(--crna)}
.board-name.is-out{background:#fff;color:var(--forest);box-shadow:inset 0 0 0 1px #9fb3a7}
.board-name.is-need{background:#fff7e3;color:var(--forest-lo);box-shadow:inset 0 0 0 1px var(--warn-line)}
/* The 9:00 counting line stays drawn over the names (touch.css does the same over the cases). */
.board-cutline{z-index:4}
.board-switch{position:absolute;top:4px;bottom:4px;width:3px;margin-left:-2px;border-radius:2px;background:var(--forest-lo);box-shadow:0 0 0 1.5px #fff;pointer-events:none;z-index:4}
.board-tag.is-surgeons{background:var(--lime-wash);color:var(--forest);box-shadow:inset 0 0 0 1px #c9e08a}
.bp-surg{color:var(--forest);font-weight:650}
.bp-case small{font-size:12.5px;font-weight:600;color:var(--muted);margin-left:2px}
/* "2 surgeons" gives way before the room's name does in a narrow room column. */
.board-tag.is-surgeons,.board-tag.is-added{flex-shrink:100;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* A short name typed by hand ("OR 9") stays whole; the "added by you" tag gives way first. */
.board-room-name:has(> .is-added) > b{flex-shrink:0;max-width:72%}
/* Split here stays readable: names on the row fade while a gap is pointed at (the gap keeps its own layer). */
.board-tl:has(.board-gap:hover,.board-gap:focus-visible) .board-name{opacity:.15}
/* On a touch screen a name is tapped as its surgeon's first case (board-view.js caseOf), never as a Split gap under it. */
@media(pointer:coarse){.board-name[data-name-case]{pointer-events:auto;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}}
/* The pinned time scale stays above the names as the rows scroll under it. */
.board-axis{z-index:5}
/* Left out of the morning count: needs no one (owner 2026-10-19), quiet instead of amber. */
.board-slot.is-left-out{background:transparent;border-style:dashed;color:var(--muted,#586b61);font-weight:600}
.bp-need.is-crna{border-color:var(--crna-bar);color:var(--crna);background:#f5f9fd}
.bp-need.is-out{color:#586b61;font-weight:600}
/* The morning (Count the rooms): the peeloff list beside the room names, after the morning panel (owner 2026-10-21:
   people go on the left, by the rooms). Look only: the names don't drag; ⋯ is the status menu. */
.schedule-board.is-morning .board-morning{order:-2}
.schedule-board.is-morning .board-rail{order:-1;width:200px}
.board-person.is-ref{cursor:default;padding-top:4px;padding-bottom:4px}
.board-person.is-ref:hover,.board-person-row:hover>.board-person.is-ref{background:none}
.board-person.is-ref .board-person-pos{grid-row:auto}
/* Narrower room columns while the list shows, so the 7a–7p line keeps its room (review 1). */
@media(min-width:1060px) and (max-width:1399px){
 .schedule-board.is-morning{--roomw:120px;--whow:160px}
 .schedule-board.is-morning .board-cols{gap:8px}
 .schedule-board.is-morning .board-rail{width:150px}
 .schedule-board.is-morning .board-person{grid-template-columns:44px minmax(0,1fr);padding:3px 2px 3px 8px}
 .schedule-board.is-morning .board-person-menu{width:24px}
}
/* Tablets: the same widths as the afternoon list. */
@media(min-width:701px) and (max-width:1059px){
 .schedule-board.is-morning{--roomw:120px;--whow:150px;--actw:60px}
 .schedule-board.is-morning .board-cols{gap:8px}
 .schedule-board.is-morning .board-rail{width:160px}
 .schedule-board.is-morning .board-person{grid-template-columns:42px minmax(0,1fr);padding:3px 2px 3px 8px}
 .schedule-board.is-morning .board-person-menu{width:24px}
}
/* Phones, the morning: the same list, folded above the rooms. */
.bp-list{background:#fff;border:1px solid var(--rule);border-radius:12px;margin:0 0 10px;overflow:hidden}
.bp-list[hidden]{display:none}
.bp-list>summary{cursor:pointer;padding:12px 14px;font-size:15px;font-weight:750;color:var(--forest);min-height:44px;box-sizing:border-box}
.bp-list-count{font-size:12px;font-weight:650;color:var(--muted);background:var(--lime-wash);border-radius:6px;padding:2px 7px;margin-left:4px}
.bp-list-rows{border-top:1px solid var(--rule);padding:4px 0}
.bp-list-rows .board-person-name{font-size:15px}
.bp-list-rows .board-person-row{align-items:center}
.bp-list-rows .board-person{padding-top:2px;padding-bottom:2px}
/* Refresh staffing on the morning list (app.js refreshStaffing; body.staffing-busy while it reads). */
.board-rail-refresh{margin-top:8px;width:100%;min-height:34px}
.bp-list-rows>.board-rail-refresh{display:block;width:calc(100% - 28px);margin:6px 14px 8px;min-height:44px}
.board-rail-refresh .rs-busy,body.staffing-busy .board-rail-refresh .rs-idle{display:none}
body.staffing-busy .board-rail-refresh .rs-busy{display:inline}
body.staffing-busy .board-rail-refresh{opacity:.6;pointer-events:none}
/* Edit room (room-edit-ui.js, owner 2026-10-26): an Epic room's name, OR and cases, on a phone and a computer. */
.board-tag.is-edited,.bp-tag.is-edited{background:#e8eef6;color:#2c4f73}
.board-tag.is-epic-changed,.bp-tag.is-epic-changed{background:#fff0cc;color:#6b3f00;box-shadow:inset 0 0 0 1px #e2b45a}
.bp-note.is-warn{background:#fff0cc;border-radius:10px;padding:10px 12px;color:#5c3600}
.room-edit{display:flex;flex-direction:column;gap:12px}
.room-edit-names{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:12px}
.room-edit-names:has(> label:only-child){grid-template-columns:minmax(0,1fr)}
.room-edit-names label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:13px;font-weight:600;color:#4f6359}
#modal-body .room-edit-names input,#modal-body .room-edit-names select{font-size:16px;padding:10px;border:1px solid #d5ded2;border-radius:10px;background:#fff;color:#243c32;min-width:0}
.room-edit-preview{background:#f3f6f0;border-radius:10px;padding:10px 12px 12px}
.room-edit-axis{display:flex;justify-content:space-between;font-size:11px;color:#667b70;margin-bottom:6px}
.room-edit-bars{position:relative;height:20px}
.room-edit-bars i{position:absolute;top:0;height:20px;border-radius:4px;background:#2f6a5e}
.room-edit-bars i.is-cancelled{background:transparent;border:2px dashed #9aaba2;box-sizing:border-box}
#modal-body .room-edit-finish{margin:-4px 0 0;font-size:14px;color:#243c32}
.room-edit-finish span{color:#667b70}
.room-edit-h{margin:4px 0 0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#667b70}
.room-edit-cases{display:flex;flex-direction:column}
.room-edit-case{display:grid;grid-template-columns:96px 96px minmax(0,1fr) auto;gap:8px 10px;align-items:end;padding:10px 0;border-bottom:1px solid #e1e7e2}
.room-edit-field{display:flex;flex-direction:column;gap:3px;margin:0;font-size:11px;font-weight:600;color:#667b70}
#modal-body .room-edit-field input{font-size:16px;padding:8px;border:1px solid #d5ded2;border-radius:8px;min-width:0;width:100%;box-sizing:border-box;background:#fff}
.room-edit-cancel-case{color:#8a3b12}
.room-edit-case.is-cancelled input{text-decoration:line-through;color:#8a9a92;background:#f6f7f5}
.room-edit-tag{align-self:center;font-size:12px;font-weight:650;color:#8a5000;background:#fff0cc;border-radius:6px;padding:2px 8px}
.room-edit-case.is-cancelled{grid-template-columns:96px 96px minmax(0,1fr) auto auto}
.room-edit-case.is-moved{grid-template-columns:120px minmax(0,1fr) auto;align-items:center;color:#667b70;min-height:44px}
.room-edit-moved{font-size:12px;font-weight:650;color:#2c4f73;background:#e8eef6;border-radius:6px;padding:2px 8px}
.room-edit-reading{grid-column:1/-1;font-size:12px;color:#667b70;min-height:0}
.room-edit-reading:empty{display:none}
.room-edit-reading.invalid,.room-edit-error{color:#a45238}
#modal-body .room-edit-error{margin:0;font-size:13px;font-weight:600}
.room-edit-error:empty{display:none}
.room-edit-add{align-self:flex-start;min-height:44px}
.room-edit-actions{align-items:center}
.room-edit-changes{flex:1 1 200px;font-size:12px;color:#667b70}
.room-edit-actions .text-button{min-height:44px;font-size:13px}
.room-edit-epic{background:#fff0cc;border:1px solid #e2b45a;border-radius:12px;padding:12px 14px;color:#5c3600}
.room-edit-epic dl{display:grid;grid-template-columns:90px 1fr;gap:2px 10px;margin:8px 0;font-size:14px;color:#243c32}
.room-edit-epic dt{color:#6b4a14}.room-edit-epic dd{margin:0}
#modal-body .room-edit-epic p{margin:0 0 8px;font-size:13px;color:#6b4a14}
.room-edit-epic-acts{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:600px){
 .room-edit-names{grid-template-columns:minmax(0,1fr) 100px}
 .room-edit-case,.room-edit-case.is-cancelled{grid-template-columns:1fr 1fr;align-items:end}
 .room-edit-field.is-surgeon{grid-column:1/-1}
 .room-edit-case .button.small{grid-column:1/-1;min-height:40px}
 .room-edit-case.is-cancelled .room-edit-tag{grid-column:1/-1;justify-self:start}
 .room-edit-case.is-moved{grid-template-columns:1fr auto}
 .room-edit-case.is-moved .room-edit-moved{grid-column:1/-1;justify-self:start}
 .room-edit-add{align-self:stretch}
}
/* Change OR (owner 2026-10-29): the OR tag of a Main OR room opens "Move this room to OR __". */
.board-or{all:unset;cursor:pointer;font-weight:700;font-stretch:86%;font-size:15px;border-radius:5px;padding:0 3px;margin:0 -3px;white-space:nowrap}
.board-or:hover{background:var(--rule-soft,#eef1ee);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.board-or:focus-visible{outline:2px solid var(--forest);outline-offset:1px}
.board-row.is-left-out .board-or,.board-row.is-emptied .board-or{color:var(--muted)}
.board-or-q .board-or-at{width:56px}
.board-q-text small.board-warn{color:#8a5000;font-weight:650;flex-basis:100%}
.board-q-text small.board-or-note{flex-basis:100%;margin-top:0}
/* A room whose cases all moved away: one quiet line instead of its row ("Moved: OR 7 → OR 11 · Put back"). */
.board-emptied{display:flex;align-items:baseline;gap:10px;padding:3px 14px 5px 14px;font-size:12.5px;color:var(--muted);border-bottom:1px solid var(--rule-soft,#eef1ee)}
.board-emptied .board-quiet{color:var(--faint)}
.board-emptied:hover .board-quiet,.board-emptied .board-quiet:focus-visible{color:var(--forest)}
@media(max-width:700px){
 .bp-or{cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:var(--faint);text-underline-offset:3px}
 .bp-emptied{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:6px 14px;font-size:13px;color:var(--muted)}
 .bp-emptied .board-quiet{color:var(--forest);font-size:13.5px;padding:6px 4px}
 .bp-or-line{margin:10px 0 0}
 .bp-q .board-or-q small{margin-top:8px}
}
/* Cases moved into a room sit on its own row (owner 2026-10-29); a small quiet "from OR 7" under the first of them. */
.board-tl.has-from{min-height:40px}
.board-from{position:absolute;bottom:0;transform:translateX(1px);font-size:10px;line-height:11px;font-weight:650;color:var(--muted);white-space:nowrap;pointer-events:auto}
.board-tl.has-from .board-bar,.board-tl.has-from .board-name{margin-top:-12px}
.board-tl.has-from .board-name{margin-top:-10px}
/* On the room's own row a moved-in case is an ordinary bar (owner 2026-10-29); "from OR 7" says where it came from. */
.board-tl.has-from .board-bar.is-moved:not(:focus-visible){outline:none}
/* Lanes in one row (owner 2026-10-29 review): a moved-in case that overlaps another case sits in a lane under it, so
   every bar stays visible and clickable; each lane has its bars at the top and its "from OR 7" under them. */
.board-tl:has(> .board-lane){min-height:66px}
.board-tl:has(> .board-lane.is-l2){min-height:99px}
.board-tl:has(> .board-lane.is-l3){min-height:132px}
.board-tl:has(> .board-lane.is-l4){min-height:165px}
.board-tl:has(> .board-lane.is-l5){min-height:198px}
.board-lane{position:absolute;left:0;right:0;height:33px;pointer-events:none}
.board-lane > *{pointer-events:auto}
.board-lane.is-l0{top:0}
.board-lane.is-l1{top:33px}
.board-lane.is-l2{top:66px}
.board-lane.is-l3{top:99px}
.board-lane.is-l4{top:132px}
.board-lane.is-l5{top:165px}
.board-tl .board-lane .board-bar{top:3px;margin-top:0}
.board-tl .board-lane .board-name{top:5px;margin-top:0}
