/* The green morning panel (morning-ui.js): the sum, the MEOs and Send early count. Look from the chosen board mockup. */
.msum{--forest:#174a43;--forest-hi:#22594f;--forest-lo:#0f3631;--lime:#d7f68b;--s-ink:#eaf2ed;--s-muted:#a7c3b8;--s-rule:#3e6f65;
 background:var(--forest);color:var(--s-ink);border-radius:14px;font-variant-numeric:tabular-nums;display:flex;flex-direction:column;position:relative}
.msum button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.msum button:disabled{opacity:.45;cursor:default}
.msum :focus-visible{outline:3px solid var(--lime);outline-offset:2px}
.msum-sum{padding:6px 16px 14px 10px}
.msum-h{margin:10px 0 0 22px;font-size:12.5px;font-weight:600;color:var(--s-muted);letter-spacing:0}
.msum .ln{display:grid;grid-template-columns:14px 46px minmax(0,1fr) auto;column-gap:8px;align-items:baseline;padding:2px 0}
.msum .op{font-size:21px;line-height:1;color:var(--s-muted);text-align:center}
.msum .num{font-stretch:62%;font-weight:800;font-size:28px;line-height:1;text-align:right;color:#fff}
.msum .lab{font-size:14.5px;min-width:0}
.msum .lab small{display:block;font-size:12.5px;color:var(--s-muted);line-height:1.35}
.msum .lab b{font-weight:750;font-size:16px;font-stretch:80%;color:#fff}
.msum .ln.typed .lab small{color:var(--lime)}
.msum .x{width:28px;height:28px;border-radius:7px;color:var(--s-muted);font-size:18px;line-height:1;align-self:center}
.msum .x:hover{background:var(--forest-hi);color:#fff}
.msum .adds{display:flex;flex-wrap:wrap;gap:4px 14px;padding:2px 0 2px 68px}
.msum .adds button,.msum-link,.msum-name{font-size:12.5px;font-weight:650;color:var(--s-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#4e8277}
.msum .adds button:hover,.msum-link:hover,.msum-name:hover{text-decoration-color:var(--lime)}
.msum-name{font-size:inherit;font-weight:600}
.msum .ghost{border:1.5px solid #4e8277;color:var(--s-ink);border-radius:999px;padding:3px 10px;font-size:12.5px;font-weight:650;white-space:nowrap}
.msum .ghost:hover{border-color:var(--lime);color:#fff}
.msum .rule{height:2px;background:var(--s-rule);margin:4px 0 4px 22px;border-radius:1px}
.msum .rule.is-wide{margin-top:8px}
.msum .ln.res .num{font-size:36px}
.msum .ln.res .lab{font-size:15px;font-weight:650;color:#fff}
.msum .ln.final .num{font-size:54px;color:var(--lime)}
.msum .ln.final .lab{font-size:16px;font-weight:650;color:#fff}
.msum .meoline{margin:2px 0 0 68px;line-height:1.15}
.msum .meoline .mn{font-size:21px;font-weight:750;font-stretch:78%;color:#fff}
.msum .meoline button.mn{text-decoration:underline;text-decoration-color:#4e8277;text-underline-offset:4px}
.msum .meoline .mn.is-hand small{display:inline;margin-left:6px;font-size:12px;font-weight:600;font-stretch:100%;color:#cfe3d9}
.msum .meoline button.mn:hover,.msum .meoline button.mn[aria-expanded=true]{text-decoration-color:var(--lime)}
.msum .meoline .cm{color:var(--s-muted);font-size:18px}
.msum .skipask{margin:6px 0 0 68px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px}
.msum .skipask b{width:100%;font-weight:650}
.msum .passed,.msum .readline{margin:6px 0 0 22px;font-size:12.5px;color:var(--s-muted);line-height:1.45}
.msum .passed b{font-weight:600;color:var(--s-ink)}
.msum .passed.is-note{color:var(--lime)}
.msum .readline.is-error{color:#fbe3b4}
.msum .addform{margin:4px 0 4px 68px;display:flex;flex-wrap:wrap;gap:5px}
.msum .addform select,.msum .addform input{height:32px;border-radius:7px;border:1px solid var(--s-rule);background:var(--forest-lo);color:#fff;padding:0 6px;font:inherit;font-size:13px;flex:1 1 140px;min-width:0}
.msum .addform input::placeholder{color:var(--s-muted)}
.msum .morning-relief-panel{margin:10px 0 0 22px;padding:10px 12px;border-radius:10px;background:#fff;color:#1b2b26;font-size:13px}
.msum .morning-relief-panel[hidden]{display:none}
.msum-type{margin:10px 0 0 22px;font-size:12.5px;color:var(--s-muted)}
.msum-type summary{cursor:pointer;font-weight:650;color:var(--s-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#4e8277;width:max-content}
.msum-typed{display:flex;align-items:center;gap:8px;margin:6px 0 2px}
.msum-typed input{width:84px;height:36px;border-radius:9px;border:1.5px solid var(--s-rule);background:var(--forest-lo);color:#fff;font:inherit;font-size:18px;font-weight:700;text-align:center}
.msum-type small{display:block}

/* Send, under the sum */
.msum-send{background:var(--forest-lo);padding:12px 16px 14px;border-top:1px solid var(--s-rule);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
.msum-send .hd{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.msum-send .hd b{font-size:14.5px;color:#fff}
.msum .chip{font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 8px;background:#ffffff1c;color:var(--s-ink)}
.msum .chip.ok{background:var(--lime);color:var(--forest-lo)}
.msum .chip.warn{background:#f6c76f;color:#3d2600}
.msum .sendbtn{width:100%;height:44px;border-radius:10px;background:var(--lime);color:var(--forest-lo);font-weight:800;font-size:16px}
.msum .sendbtn:hover{filter:brightness(1.05)}
.msum .also{margin:6px 0 0;font-size:12.5px;color:var(--s-muted)}
.msum .also.is-error{color:#fbe3b4;font-weight:600}
.msum .also:empty{display:none}
.msum .links{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px}
.msum .links button{font-size:12.5px;color:var(--s-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--s-rule)}
.msum .links button:hover{text-decoration-color:var(--lime)}
.msum .rcpt{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:4px}
.msum .rcpt li{display:flex;align-items:baseline;gap:8px;font-size:14px;color:#fff}
.msum .rcpt li::before{content:"✓";color:var(--lime);font-weight:800}
.msum .rcpt li.fail::before{content:"!";color:#f6c76f}
.msum .rcpt li.fail{color:#fbe3b4}
.msum .rcpt li small{display:block;font-size:12px;color:var(--s-muted)}
.msum .rcpt li button{margin-left:auto;font-size:12.5px;color:var(--lime);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
/* "Already sent at 7:02 by another device. Send again?": the question on its own line, its two answers under it. */
.msum .rcpt li.ask{flex-wrap:wrap}
.msum .rcpt li.ask>span{flex:1 1 calc(100% - 24px)}
.msum .rcpt li.ask button{margin-left:16px;font-size:14px;font-weight:700;min-height:32px}
.msum .rcpt li.ask button+button{margin-left:14px}
.msum .pin{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}
.msum .pin[hidden]{display:none}
.msum .pin input{width:96px;height:42px;border-radius:9px;border:1.5px solid var(--s-rule);background:#0b2c28;color:#fff;text-align:center;letter-spacing:.3em;font-size:17px}
.msum .pin input[hidden]{display:none}
.msum .pin .sendbtn{flex:1;min-width:120px}
.msum .pin .also{width:100%;margin:0}
.msum-notes{margin-top:10px;font-size:12.5px;color:var(--s-muted)}
.msum-notes summary{cursor:pointer;color:var(--s-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--s-rule);width:max-content}
.msum-notes label{display:block;margin:6px 0 4px}
.msum-notes textarea{width:100%;box-sizing:border-box;border-radius:9px;border:1px solid var(--s-rule);background:#0b2c28;color:#fff;font:inherit;font-size:13.5px;padding:8px;resize:vertical}

/* Hide morning / Show morning. Open: a small link at the top right (on the title row in the morning section). Hidden:
   the panel is one line, "Morning · 15 rooms · 2 MEOs · Early count not sent", with Show morning. */
.msum-bar{position:absolute;top:8px;right:12px;z-index:1}
.msum .msum-hide{font-size:12.5px;font-weight:650;color:var(--s-muted);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#4e8277;min-height:24px}
.msum .msum-hide:hover{color:#fff;text-decoration-color:var(--lime)}
.msum-line{margin:0;font-size:14px;font-weight:650;color:#fff;min-width:0}
.msum-line[hidden]{display:none}
.morning-workflow .msum-bar{top:-30px;right:2px}
.morning-workflow .msum .msum-hide{color:#174a43;text-decoration-color:#9bb8ad}
.morning-workflow .msum .msum-hide:hover{color:#0f3631;text-decoration-color:#174a43}
.morning-workflow.is-folded .msum-title{display:none}
.msum.is-hidden{display:block}
.msum.is-hidden .msum-sum,.msum.is-hidden .msum-send{display:none}
.msum.is-hidden .msum-bar,.morning-workflow .msum.is-hidden .msum-bar{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:9px 16px}
.msum.is-hidden .msum-hide,.morning-workflow .msum.is-hidden .msum-hide{color:var(--lime);text-decoration-color:var(--lime);font-size:13.5px}
.msum.is-pinned .msum-bar{display:none}

/* Where it sits: in the morning section (lists and phones), or left of the board on a computer in the morning. */
.morning-workflow.morning-workflow{background:none;border:0;padding:0;margin:0 0 16px}
.msum-title{margin:0 0 8px;font-size:15px;font-weight:750;color:#174a43}
.board-morning{flex:none;width:300px;position:sticky;top:12px}
.board-morning[hidden]{display:none}
.board-morning .msum{max-height:calc(100vh - 24px)}
.board-morning .msum-sum{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--s-rule) transparent}
.board-morning .msum-send{flex:none}
@media(min-width:1060px){
 body.msum-in-board .morning-workflow,body.msum-away .morning-workflow{display:none}
 .morning-workflow .msum:not(.is-hidden){display:grid;grid-template-columns:minmax(0,1fr) 290px}
 .morning-workflow .msum-send{border-top:0;border-left:1px solid var(--s-rule);border-bottom-left-radius:0;border-top-right-radius:inherit}
}
/* The morning section on a computer or tablet (the peeloff list, or the board with the panel hidden): a dense card.
   The sum's three groups side by side (rooms, who can take a room, the MEOs), small numerals, Send in a narrow
   column beside it (under it below 1060px). Phones and the board's column keep the tall sum. */
@media(min-width:701px){
 .morning-workflow .msum-sum{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(220px,1fr) minmax(240px,1.25fr);grid-template-rows:auto 1fr auto auto;column-gap:16px;align-items:start;padding:8px 14px 10px}
 .morning-workflow .msum-lines{display:contents}
 .morning-workflow .g-rooms{grid-column:1;grid-row:1}
 .morning-workflow .msum-type{grid-column:1;grid-row:2;margin:6px 0 0}
 .morning-workflow .g-who{grid-column:2;grid-row:1/3}
 .morning-workflow .g-meo{grid-column:3;grid-row:1/3;padding-top:4px}
 .morning-workflow .g-who,.morning-workflow .g-meo{border-left:1px solid var(--s-rule);padding-left:14px;align-self:stretch}
 .morning-workflow .morning-relief-panel{grid-column:1/-1;margin-left:0}
 .morning-workflow .msum-h{margin:4px 0 2px;font-size:11.5px}
 .morning-workflow .msum .ln{grid-template-columns:12px 28px minmax(0,1fr) auto;column-gap:6px;padding:0;min-height:21px}
 .morning-workflow .g-rooms .ln,.morning-workflow .g-meo .ln{grid-template-columns:0 auto minmax(0,1fr) auto}
 .morning-workflow .msum .op{font-size:15px}
 .morning-workflow .msum .num{font-size:19px}
 .morning-workflow .msum .lab{font-size:13px}
 .morning-workflow .msum .lab b{font-size:13.5px}
 .morning-workflow .msum .lab small{font-size:11.5px;line-height:1.3}
 .morning-workflow .msum .x{width:22px;height:22px;font-size:15px}
 .morning-workflow .msum .adds{padding:0 0 1px 46px}
 .morning-workflow .msum .adds button,.morning-workflow .msum-link,.morning-workflow .msum-name{font-size:12px}
 .morning-workflow .msum .addform{margin:2px 0 2px 46px}
 .morning-workflow .msum .addform select,.morning-workflow .msum .addform input{height:28px}
 .morning-workflow .msum .rule{height:1px;margin:3px 0 2px 18px}
 .morning-workflow .msum .rule.is-wide{display:none}
 .morning-workflow .msum .ln.res .num{font-size:22px}
 .morning-workflow .msum .ln.res .lab{font-size:13.5px}
 .morning-workflow .msum .ln.final .num{font-size:30px}
 .morning-workflow .msum .ln.final .lab{font-size:14px}
 .morning-workflow .msum .meoline{margin:3px 0 0;line-height:1.2}
 .morning-workflow .msum .meoline .mn{font-size:16px}
 .morning-workflow .msum .meoline .cm{font-size:14px}
 .morning-workflow .msum .skipask{margin:4px 0 0}
 .morning-workflow .msum .passed,.morning-workflow .msum .readline{margin:3px 0 0;font-size:12px;line-height:1.35}
 .morning-workflow .g-who .passed{margin-left:18px}
 .morning-workflow .msum-typed{margin:4px 0 0;font-size:12px}
 .morning-workflow .msum-typed input{width:64px;height:28px;font-size:15px}
 .morning-workflow .msum-type small{font-size:11.5px}
 .morning-workflow .msum-send{padding:10px 14px 12px}
 .morning-workflow .msum-send .hd{margin-bottom:6px}
 .morning-workflow .msum-send .hd b{font-size:13.5px}
 .morning-workflow .msum .sendbtn{height:36px;font-size:14.5px;border-radius:9px}
 .morning-workflow .msum .also{margin-top:4px;font-size:12px}
 .morning-workflow .msum .links{margin-top:5px}
 .morning-workflow .msum .links button{font-size:12px}
 .morning-workflow .msum .rcpt li{font-size:13px}
 .morning-workflow .msum .pin input{height:36px}
 .morning-workflow .msum-notes{margin-top:6px;font-size:12px}
}

@media(max-width:700px){
 .msum{border-radius:12px}
 .msum .ln.final .num{font-size:46px}
 .msum .x{width:36px;height:36px}
 .msum .adds button,.msum .links button,.msum-link{min-height:32px}
}

/* A phone on the board, Count step: the sum pinned at the top as one line (tap to open), Send pinned at the bottom. */
.msum-compact{display:none}
@media(max-width:700px){
 .msum.is-pinned{position:sticky;top:var(--steps-h,0px);z-index:5;margin:0 0 10px;border-radius:12px;box-shadow:0 6px 18px #0f363126}
 .msum.is-pinned .msum-compact{display:flex;align-items:center;width:100%;min-height:48px;padding:0 14px;box-sizing:border-box;font-size:15px;font-weight:700;color:#fff;text-align:left}
 .msum.is-pinned .msum-compact:focus-visible{outline-offset:-3px}
 .msum.is-pinned:not(.is-open) .msum-sum{display:none}
 .msum.is-pinned.is-open{max-height:calc(100dvh - var(--steps-h,0px) - 16px);overflow:auto;overscroll-behavior:contain}
 .msum.is-pinned.is-open .msum-sum{padding-top:0}
 .msum.is-pinned:not(.is-open) .msum-send{position:fixed;left:0;right:0;bottom:0;z-index:25;border-radius:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px #0f363133}
 .msum.is-pinned:not(.is-open) .msum-send .hd,.msum.is-pinned:not(.is-open) .msum-notes{display:none}
 .msum.is-pinned:not(.is-open) .msum-send .sendbtn{height:48px}
 .msum.is-pinned:not(.is-open) .msum-send .also{margin-top:4px}
 .msum.is-pinned:not(.is-open) .msum-send .links{margin-top:4px}
 .msum.is-pinned .links button,.msum.is-pinned .rcpt li button{min-height:36px}
 body.msum-pinned .morning-workflow{display:none!important}
 body.msum-pinned main{padding-bottom:calc(170px + env(safe-area-inset-bottom))}
 body.msum-pinned .save-alert{bottom:calc(160px + env(safe-area-inset-bottom))}
 body.msum-pinned #toast{bottom:calc(160px + env(safe-area-inset-bottom))}
}
/* The afternoon reminder: the MEO credit isn't recorded. */
.credit-nudge{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px;padding:9px 14px;border-radius:10px;background:#d7f68b;color:#0f3631;font-weight:650;font-size:14px}
.credit-nudge[hidden]{display:none}
.credit-nudge .button.small{white-space:nowrap}
.credit-nudge form{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.credit-nudge input{width:96px;height:32px;border-radius:7px;border:1.5px solid #0f3631;text-align:center;letter-spacing:.3em}
.credit-nudge .nudge-error{flex-basis:100%;font-size:14px;font-weight:700;color:#9b1c1c}
.credit-nudge .nudge-done small{display:block;font-weight:500;font-size:13px}
.credit-nudge .nudge-busy{display:flex;align-items:center;gap:8px}
.credit-nudge .nudge-busy .loading-spinner{width:16px;height:16px;flex:0 0 16px;border-width:2px}
.credit-nudge:has(.nudge-done){background:#e3f4e6;color:#14532d;border:1.5px solid #2f855a}

/* The peeloff list shows who has an MEO; MEOs are chosen on the morning panel (no tick boxes, owner). */
.assignment-table .meo-mark{font-size:10px;padding:3px 6px;margin-right:2px;white-space:nowrap}
/* Special requests for the day (special-requests.js). */
.msum-requests{margin:10px 0 0 6px;padding:6px 10px;border-radius:8px;background:#d7f68b;color:#0f3631;font-weight:700;font-size:13.5px;line-height:1.35}

/* The MEO list as rows (whole-app plan step 4): in list order, what happens to each person, and the one change a tap
   makes. MEO rows carry a lime tag; people who can't take one are dimmed with the reason. */
.msum .meolist{list-style:none;margin:4px 0 0 22px;padding:0;display:grid}
.msum .mrow{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;column-gap:8px;min-height:44px;padding:3px 0;border-top:1px solid var(--s-rule)}
.msum .mrow:first-child{border-top:0}
.msum .mpos{font-size:12px;color:var(--s-muted);text-align:right}
.msum .mwho{min-width:0}
.msum .mwho b{font-weight:750;font-size:16px;font-stretch:80%;color:#fff}
.msum .mwho small{display:block;font-size:12.5px;color:var(--s-muted);line-height:1.3}
.msum .mrow:is(.is-meo,.is-hand) .mwho b::after{content:"MEO";margin-left:8px;padding:1px 7px;border-radius:999px;background:var(--lime);color:var(--forest-lo);font-size:11px;font-weight:800;font-stretch:100%;letter-spacing:.04em;vertical-align:2px}
.msum .mrow.is-hand .mwho b::after{content:"MEO · by hand"}
.msum .mrow.is-next .mwho small{color:var(--lime)}
.msum .mrow.is-passed .mwho small{color:#f3d48b}
.msum .mrow.is-grey{opacity:.6}
.msum .mact{min-height:44px;padding:0 12px;border:1.5px solid #4e8277;border-radius:999px;font-size:12.5px;font-weight:650;color:var(--s-ink);white-space:nowrap}
.msum .mact:hover{border-color:var(--lime);color:#fff}
.msum .mact.is-quiet{border-color:transparent;color:var(--s-muted);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#4e8277}
.msum .mremind{grid-column:2/-1;margin:0 0 4px;font-size:12.5px;color:#f3d48b}
.msum .meolist-all{margin:4px 0 0 52px;min-height:44px}
/* The early count email on the page, above Send. */
.msum-preview{display:grid;gap:6px;margin:0 0 12px}
.msum-mail-h{margin:0;font-size:13px;font-weight:650;color:var(--s-muted)}
.msum-mail-subject{margin:0;font-size:13px;color:var(--s-ink)}.msum-mail-subject small{color:var(--s-muted)}
.msum-preview[hidden]{display:none}
.msum-mail{display:block;width:100%;height:300px;border:0;background:#fff;border-radius:10px}
.msum-mail-note{margin:0;font-size:12.5px;color:var(--s-muted);line-height:1.45}
.msum.is-pinned:not(.is-open) .msum-preview{display:none}
/* Beside the board the column is narrow: the email keeps Send in view. */
#board-morning .msum-mail{height:200px}
.credit-nudge:has(.nudge-done.is-none){background:#f1f4f1;color:#0f3631;border-color:#9bb5a5}
