/* Run today, whole-app step 7 (2026-10-18, docs/peeloff-whole-app/step7-brief.md). Loaded after board.css and touch.css.
   Width decides only the arrangement: 1060 px and wider has a left panel (Next out, Call in, Tasks) beside the line;
   761-1059 px is one column (Next out, the line, Call in, CRNAs, Tasks); a phone keeps the bottom tabs.
   Every control on the row is 44 px tall at every width, so an iPad gets the same targets in both orientations. */

/* ----- Layout ----- */
.board-page .columns.rt-layout{display:grid;grid-template-columns:minmax(300px,340px) minmax(0,1fr);grid-template-areas:none;gap:18px 22px;align-items:start}
.rt-panel{display:flex;flex-direction:column;gap:14px;min-width:0;position:sticky;top:70px;max-height:calc(100dvh - 82px);overflow:auto;overscroll-behavior:contain;padding-bottom:4px}
.rt-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.rt-main>.board-tools{margin:0}
.rt-main #search-empty{margin:0}
.board-page .rt-layout #crnas,.board-page .rt-layout #callbacks,.board-page .rt-layout #tasks{grid-area:auto}
@media(min-width:1060px){
 /* CRNAs under the physicians: cards in a grid instead of a right-hand column. */
 .rt-main #crna-people,.rt-main #unavailable-people,.rt-main #crna-home{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px}
 .rt-main #crna-people>p,.rt-main #crna-people .person,.rt-main #crna-home .person{margin:0}
 .rt-main #crnas .person-top{display:contents}
 .rt-main #crnas .person-top>div:first-child{grid-column:1;grid-row:1}
 .rt-main #crnas .person-top .split-action{grid-column:2;grid-row:1/3;align-self:start}
 .rt-main #crnas .meals{grid-column:1;grid-row:3}
 .rt-main #crnas .person details{grid-column:2;grid-row:3}
 .rt-main #crnas .person details.has-plan,.rt-main #crnas .person details[open]{grid-column:1/-1;grid-row:4}
 .rt-main #crnas .person .due-note{grid-column:1/-1;grid-row:5}
}
/* A short screen (laptop, iPad landscape): the panel scrolls with the page, so Tasks is reached without a scroll inside a scroll (2026-10-19). */
@media(min-width:1060px) and (max-height:800px){.rt-panel{position:static;max-height:none;overflow:visible}}
@media(min-width:761px) and (max-width:1059px){
 .board-page .columns.rt-layout{display:flex;flex-direction:column;align-items:stretch;gap:16px}
 .rt-panel,.rt-main{display:contents}
 .rt-panel{position:static;max-height:none;overflow:visible}
 #next{order:1}.rt-main>.board-tools{order:2}#search-empty{order:3}#team{order:4}#callbacks{order:5}#crnas{order:6}#tasks{order:7}
}
@media(max-width:760px){
 .board-page .columns.rt-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .rt-panel,.rt-main{display:contents}
 .rt-panel{position:static;max-height:none;overflow:visible}
 #next{order:1;margin-bottom:12px}.rt-main>.board-tools{order:2;margin:0 0 12px}#search-empty{order:3}#team{order:4}#callbacks{order:5}#crnas{order:6}#tasks{order:7}
}

/* ----- Next out: a forest card with a big Home ----- */
.board-page .hero.next-out{display:flex;flex-direction:column;align-items:stretch;gap:12px;background:#174a43;color:#fff;border-radius:16px;padding:14px 14px 12px;box-shadow:0 4px 14px #163e3518}
.board-page .hero.next-out .next-who{display:block}
.board-page .hero.next-out small{display:block;text-transform:none;letter-spacing:0;font-size:13px;font-weight:650;color:#bcd3cc}
.board-page .hero.next-out strong{display:block;font-size:40px;line-height:1;font-weight:850;font-stretch:70%;letter-spacing:-.4px;color:#fff;margin:6px 0 4px;overflow-wrap:anywhere}
.board-page .hero.next-out .next-who p{display:block;font-size:14.5px;line-height:1.35;color:#dbe8e3;margin:0}
.board-page .next-out-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.board-page .next-out-actions button{min-height:44px;font-size:14px;font-weight:650;border-radius:10px;background:transparent;border:1.5px solid #ffffff59;color:#fff;padding:6px 10px}
.board-page .next-out-actions .next-check[aria-pressed=true]{background:#fff;color:#174a43;border-color:#fff}
.board-page .next-out-actions .send-home{grid-column:1/-1;min-height:56px;font-size:18px;font-weight:750;background:#c9ea6a;border-color:#c9ea6a;color:#1d3a10;padding:8px 14px;overflow-wrap:anywhere}
.board-page .next-out-more{grid-column:1/-1;display:flex;gap:8px}
.board-page .next-out-more button{flex:1}
.board-page .next-out-more button[data-action-menu]{flex:0 0 56px;font-size:20px;line-height:1}
.board-page .hero.next-out .next-relief{border-top:1px solid #ffffff33;padding-top:9px;margin:0;font-size:14px;color:#dbe8e3}
.board-page .hero.next-out .next-relief strong{display:inline;font-size:inherit;color:#fff;margin:0;font-stretch:normal;font-weight:700;letter-spacing:0;line-height:inherit}
.board-page .hero.next-out.is-snoozed{flex-direction:row;align-items:center;justify-content:space-between;padding:10px 14px}
.board-page .hero.next-out.is-snoozed p{margin:0;font-size:14px;color:#dbe8e3}
.board-page .hero.next-out.is-snoozed strong{display:inline;font-size:inherit;margin:0;font-stretch:normal;letter-spacing:0;line-height:inherit}
.board-page .hero.next-out.is-snoozed button{min-height:44px;background:transparent;border:1.5px solid #ffffff59;color:#fff;border-radius:10px;padding:6px 14px}
.board-page .hero.next-out.is-empty{background:#edf3e6;color:#203c36;box-shadow:none}
.board-page .hero.next-out.is-empty small{color:#586b61}.board-page .hero.next-out.is-empty strong{color:#14302a;font-size:26px}
@media(min-width:761px) and (max-width:1059px){
 /* One column: the name on top, the card's buttons on one line under it (Send home takes the room left). */
 .board-page .next-out-actions{grid-template-columns:auto auto minmax(0,1fr) auto}
 .board-page .next-out-actions .send-home{grid-column:auto;min-height:52px}
 .board-page .next-out-more{grid-column:auto}
 .board-page .next-out-actions:not(:has(.next-check)){grid-template-columns:minmax(0,1fr) auto}
}
/* The stale-board dimming applies once: #next now sits inside .columns, which board.css dims too. */
body.board-stale .rt-layout #next{opacity:1}

/* ----- The line: who + plan (tap for the sheet), meals, actions ----- */
#people .person.peel-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"open meals acts" "status status status" "due due due" "after after after";align-items:center;gap:0 6px;padding:0 8px 0 0;margin:0 0 4px;border-radius:10px;overflow:hidden;min-height:60px}
#people .peel-row>.peel-open{grid-area:open}
#people .peel-row>.peel-meals{grid-area:meals}
#people .peel-row>.peel-actions{grid-area:acts}
#people .peel-row>.peel-status{grid-area:status;margin:0 10px 6px}
#people .peel-row>details{grid-area:after}
#people .peel-row>.due-note{grid-area:due;margin:0 10px 8px}
/* The note's own line stays under the due line at every width (board.css puts row details on row 3 on a phone). */
#people .person.peel-row>details,#people .person.peel-row>details.has-plan,#people .person.peel-row>details[open]{grid-area:after}
.peel-open{position:relative;display:grid;grid-template-columns:minmax(80px,1fr) minmax(86px,auto);grid-template-areas:"who plan" "extra extra";align-items:center;gap:2px 10px;padding:8px 10px 11px;min-height:60px}
.peel-who{grid-area:who;display:flex;flex-direction:column;min-width:0}
.peel-who .peel-role{font-size:12px;line-height:1.2;color:#586b61}
.peel-who .peel-name{font-size:18px;line-height:1.15}
.peel-plan{grid-area:plan;display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:0}
.peel-plan .peel-pscv{display:inline-block;padding:2px 7px;border-radius:6px;background:#e8eefb;color:#2d4a86;font-size:12px;line-height:1.3}
.peel-plan .peel-pscv:empty{display:none}
.peel-plan .peel-end{font-size:14px;text-align:right;white-space:normal;overflow:visible;line-height:1.25}
.is-planned .peel-end,.is-passed .peel-end{border-bottom:2px dashed #8fa99b;padding-bottom:1px}
.is-passed .peel-end{border-color:#e2bf78;color:#8a5200;font-weight:750}
.peel-open .peel-strip{position:absolute;left:10px;right:10px;bottom:4px;height:4px;border-radius:2px}
.peel-open .peel-strip .peel-bar{border-radius:2px}
.peel-open .peel-strip .peel-now{top:-3px;bottom:-3px}
.is-planned .peel-open .peel-bar,.is-passed .peel-open .peel-bar{border-width:0;border-top:2px dashed #7f9a8c}
.is-passed .peel-open .peel-bar{border-top-color:#c49a52}
.peel-open .peel-extra{grid-area:extra;grid-column:1/-1;margin:2px 0 0}
.peel-meals{display:flex;gap:6px;align-items:center;padding:0}
#people .peel-meals .meal{min-height:44px;min-width:76px;padding:2px 8px;border-radius:10px;border:1.5px solid #c9d6cf;background:#fff;color:#586b61;font-size:13px;font-weight:650;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.15;white-space:nowrap}
#people .peel-meals .meal.given{background:#e4efdf;border-color:#a9c7a0;color:#2f5a2a}
#people .peel-meals .meal-time{display:block;margin:0;font-size:12px;font-weight:550}
.board-page .peel-actions{display:flex;gap:6px;align-items:center;padding:8px 0}
.board-page .peel-actions button{min-height:44px;border-radius:10px;font-size:13px;font-weight:650;padding:4px 10px;background:#fff;border:1.5px solid #c9d6cf;color:#203c36;white-space:nowrap}
.board-page .peel-actions .peel-check[aria-pressed=true]{background:#174a43;border-color:#174a43;color:#fff}
.board-page .peel-actions .peel-home{border-color:#174a43;color:#174a43;font-weight:750;min-width:66px}
.board-page .peel-actions .peel-more{min-width:44px;padding:0;font-size:18px;line-height:1;color:#174a43}
#people .peel-row.is-next{background:#f3f8e8;border-color:#bcd39a}
#people .peel-row.is-passed{background:#fbf5e8;border-color:#ead8b0}
#people .peel-row details{padding:0 10px 8px}

/* A next-step note whose time has come (today's board): one quiet line with Done. No sound, no alert. */
.board-page .due-note{display:flex;align-items:center;gap:8px;padding:4px 4px 4px 10px;border-radius:8px;background:#f6f1e3;border:1px solid #e6d9b5;color:#5a4a1c;font-size:14px;line-height:1.3}
.board-page .due-note span{flex:1;min-width:0;overflow-wrap:anywhere}
.board-page .due-note button{min-height:44px;border-radius:10px;font-size:13px;font-weight:650;padding:4px 12px;background:#fff;border:1.5px solid #c9d6cf;color:#203c36}
#crnas .person .due-note{margin:6px 0;grid-column:1/-1}
/* Computer and iPad landscape, narrower main column: names wrap before buttons shrink. */
@media(min-width:1060px) and (max-width:1279px){
 .peel-open{grid-template-columns:minmax(70px,1fr) minmax(76px,auto);gap:2px 8px}
 .peel-who .peel-name{white-space:normal;overflow-wrap:break-word;hyphens:auto;text-overflow:clip}
 #people .peel-meals .meal{min-width:68px;padding:2px 6px}
 .board-page .peel-actions button{padding:4px 8px}
}
/* One column (iPad portrait and small windows): the row's buttons on its second line, all of them. */
@media(max-width:1059px){
 #people .person.peel-row{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"open open" "meals acts" "status status" "due due" "after after";padding:0 8px 0 8px}
 #people .peel-row>.peel-open{margin:0 -8px}
 .peel-meals{padding:0 0 8px}
 .board-page .peel-actions{display:flex;justify-content:flex-end;padding:0 0 8px}
 #people .peel-row:not(:has(.peel-meals))>.peel-actions{grid-column:1/-1}
}
@media(min-width:761px) and (max-width:1059px){
 .board-page .peel-actions{display:flex}
 .board-page .peel-actions .peel-check{min-width:112px}
}
/* Phone: Lunch, Finished, Home and ⋯ on the row; Still working is in the sheet behind ⋯ (on the Next out card both are,
   2026-10-28). The buttons wrap to a second line rather than run off a very narrow row. */
@media(max-width:760px){
 .board-page .next-out-actions .next-check{display:none}
 .board-page .peel-actions .peel-check[data-check="checkedAt"]{display:none}
 .board-page .peel-actions{flex-wrap:wrap;gap:6px}
 .board-page .peel-actions .peel-check[data-check="finishedAt"]{padding:4px 8px}
 .peel-open{grid-template-columns:minmax(0,1fr) auto;padding:9px 12px 12px}
 .peel-who{flex-direction:row;align-items:baseline;gap:8px}
 .peel-who .peel-role{flex:none;min-width:64px}
 .peel-who .peel-name{font-size:19px}
 #people .person.peel-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"open open" "meals acts" "status status" "due due" "after after"}
 #people .peel-meals .meal{min-width:72px}
 .board-page .peel-actions .peel-home{min-width:72px}
}
/* Narrow phones (under 380px): the actions take their own line under Lunch, so Undo finished never covers it. */
@media(max-width:379px){
 #people .person.peel-row{grid-template-areas:"open open" "meals meals" "acts acts" "status status" "due due" "after after"}
 .board-page .peel-actions{justify-content:flex-start}
}

/* ----- Call in: one list in order, open ----- */
#callbacks .section-head h2{font-size:17px}
#callbacks #additional-coverage>summary{min-height:44px;display:flex;align-items:center}
#callbacks .coverage-group-title{font-size:12px;letter-spacing:.4px;text-transform:uppercase;color:#64786e;margin:12px 0 6px}
#callbacks .callback-rank{font-size:11px;padding:2px 6px}
#next-callback .person{border-color:#174a43;box-shadow:0 0 0 1px #174a43 inset}

/* ----- Earned outs review sheet (2026-10-28) ----- */
#earned-review-dialog .earned-review-row{border:1px solid #d9e2dc;border-radius:10px;padding:10px 12px;margin:0 0 8px}
#earned-review-dialog .earned-review-row p{margin:4px 0 8px;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
#earned-review-dialog .earned-review-row button,#earned-review-dialog .earned-review-actions button{min-height:44px;border-radius:10px;padding:4px 14px}
#earned-review-dialog .earned-review-actions{display:flex;justify-content:flex-end}

/* ----- PSCV card (2026-11-02): Ben's list at a glance, in the left panel; its own tab on a phone ----- */
#pscv{flex:none;background:#fff;border:2px solid #174a43;border-radius:16px;overflow:hidden;color:#13201d}
#pscv[hidden]{display:none}
#pscv .pscv-head{all:unset;box-sizing:border-box;width:100%;min-height:44px;display:flex;align-items:center;gap:10px;padding:10px 14px 4px;cursor:pointer;touch-action:manipulation}
#pscv .pscv-head:focus-visible{outline:3px solid #174a43;outline-offset:-3px}
#pscv .pscv-title{font-size:19px;font-weight:850;font-stretch:78%}
#pscv .pscv-chip{font-size:13px;font-weight:700;color:#174a43;background:#e6efe9;border-radius:999px;padding:3px 9px}
#pscv .pscv-chev{margin-left:auto;color:#5d6e68;flex:none}
#pscv .pscv-sent{margin:0;padding:0 14px 8px;font-size:12.5px;color:#5d6e68;font-weight:600}
#pscv .pscv-update{margin:0 14px 8px;padding:8px 10px;border-radius:10px;background:#fff3d6;color:#6e4100;font-size:13.5px;font-weight:700}
#pscv .pscv-scale{display:grid;grid-template-columns:62px minmax(0,1fr);padding:0 14px 2px;font-size:10.5px;color:#5d6e68;font-weight:650}
#pscv .pscv-scale>div{display:flex;justify-content:space-between}
#pscv .pscv-room{display:grid;grid-template-columns:62px minmax(0,1fr);padding:8px 14px;border-top:1px solid #e3e9e4}
#pscv .pscv-room.is-changed{background:#fffaf0}
#pscv .pscv-num{font-weight:850;font-stretch:78%;font-size:17px;line-height:1.1}
#pscv .pscv-num small{display:block;font-size:11px;font-weight:700;color:#5d6e68;font-stretch:90%}
#pscv .pscv-num small.pscv-changed{color:#9a5b00;font-weight:800}
#pscv .is-cancelled .pscv-num{color:#5d6e68}
#pscv .pscv-body{display:flex;flex-direction:column;gap:3px;min-width:0}
#pscv .pscv-bar{position:relative;height:10px;margin:3px 0 2px;background:#eef2ee;border-radius:5px}
#pscv .pscv-bar-part{position:absolute;top:0;bottom:0;background:#174a43;border-radius:5px}
#pscv .pscv-bar-part.is-second{background:#3f7a6f}
#pscv .pscv-bar-now{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:#9a5b00}
#pscv .pscv-line{display:flex;justify-content:space-between;gap:8px;font-size:13.5px}
#pscv .pscv-time{font-weight:750;white-space:nowrap}
#pscv .pscv-time s,#pscv .pscv-who s{color:#5d6e68;font-weight:600}
#pscv .pscv-lead,#pscv .pscv-muted{color:#5d6e68}
#pscv .pscv-who{font-size:13px;color:#5d6e68}
#pscv .pscv-who small{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
#pscv .pscv-nobody{font-style:italic}
#pscv .pscv-req{display:flex;align-items:center;gap:5px;font-size:12.5px;color:#6e4100;font-weight:650}
#pscv .pscv-req .req-icon{width:13px;height:13px;flex:none}
#pscv .pscv-brief{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:4px 14px 8px;font-size:13.5px}
#pscv .pscv-email{margin:0 14px 10px;padding:12px;background:#f4f6f2;border-radius:10px;font:12.5px/1.55 Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
#pscv .pscv-foot{border-top:1px solid #e3e9e4;padding:0 6px;display:flex}
#pscv .pscv-link{min-height:44px;padding:0 8px;border:0;background:none;font:inherit;font-size:14px;font-weight:700;color:#174a43;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(min-width:761px) and (max-width:1059px){#pscv{order:1}}
@media(max-width:760px){
 #pscv{order:1;margin-bottom:12px;border-width:1px;border-color:#d7dfd9;border-radius:14px}
 #pscv .pscv-head{cursor:default}
 #pscv .pscv-chev{display:none}
 body:not([data-tab="pscv"]) #pscv{display:none}
 body[data-tab="pscv"] #team,body[data-tab="pscv"] .rt-main>.board-tools,body[data-tab="pscv"] #search-empty{display:none}
}

/* Rooms view (rooms-view.js): the Make the schedule board drawn from Run today's live rooms. People | Rooms switch. */
.rt-view{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 10px;font-size:14px;color:#56675f}
#rooms-view.schedule-board{display:block}
#rooms-view.schedule-board[hidden]{display:none}
body[data-rt-view=rooms] .rt-layout,body[data-rt-view=rooms] .board-tabs{display:none}
#rooms-view .board-head{margin-bottom:8px}
#rooms-view .rooms-sub{margin:2px 0 0;color:var(--muted);font-size:14px}
/* The time now replaces the 9:00 cutoff (--now: its share of the 7a–7p line). */
#rooms-view .rooms-nowline{left:calc(var(--roomw) + var(--whow) + (100% - var(--roomw) - var(--whow) - var(--actw)) * var(--now,0));border-left:2px solid #c2410c}
#rooms-view .rooms-nowline[hidden]{display:none}
#rooms-view .board-ticks span.is-cut{background:#c2410c;color:#fff}
#rooms-view .bp-cut.is-now{border-left:2px solid #c2410c;border-left-style:solid}
#rooms-view .board-slot.is-done,#rooms-view .bp-need.is-done{background:#edf1ea;border:0;color:var(--muted);font-weight:700}
#rooms-view .board-sup.is-missing{color:var(--warn)}
#rooms-view .board-row.is-drop{outline:2px dashed var(--forest);outline-offset:-2px;background:var(--lime-wash)}
#rooms-rail.is-drop{outline:2px dashed var(--forest);outline-offset:-2px}
@media(max-width:700px){
 .rt-view{justify-content:stretch}
 .rt-view>span{display:none}
 .rt-view .creator-layout-switch{flex:1;display:grid;grid-template-columns:1fr 1fr}
 .rt-view .creator-layout-switch button{justify-content:center}
 #rooms-view .board-head{display:none}
}
#rooms-view .board-done{font-size:12px;font-weight:700;color:var(--muted);background:#edf1ea;border-radius:999px;padding:2px 8px;white-space:nowrap}
