/* MISSION CONTROL — the appointment cheat sheet.
   Visual blueprint: design-refs/appointment_command_center_v3.html, transcribed.
   Every rule here is prefixed .mc- so it cannot leak into another screen. */

.mc-backdrop{position:fixed;inset:0;background:rgba(24,33,47,.46);display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;z-index:1200;overflow-y:auto}
.mc-modal{--mc-ink:#22303f;--mc-slate:#64748b;--mc-faint:#94a3b8;--mc-line:#e5eaf0;--mc-hdr:#dbe3ee;--mc-hdr-ink:#33465c;--mc-blue:#2563eb;--mc-green:#188045;--mc-amber:#b45309;--mc-red:#c02626;
  width:min(980px,100%);background:#fff;border:1px solid var(--mc-line);border-radius:12px;box-shadow:0 18px 50px rgba(30,42,58,.18);
  color:var(--mc-ink);font-family:"Segoe UI",system-ui,Arial,sans-serif;display:flex;flex-direction:column;max-height:calc(100vh - 48px)}

/* #419 items 2b/3 — the STATUS STRIP: one line between the header and the cockpit, in Simple AND Extended, so the
   reminder / confirmation state is read where she looks without opening Extended. Sent + confirmed = green (the card's
   own --mc-green), nothing yet = slate, a reschedule / cancel request = amber. */
.mc-status-strip{flex:0 0 auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 26px;border-bottom:1px solid var(--mc-line);font-size:13px;line-height:1.4;color:var(--mc-slate);white-space:nowrap}
.mc-status-strip[hidden]{display:none}
.mc-status-sent,.mc-status-confirmed{color:var(--mc-green,#188045);font-weight:600}
.mc-status-none,.mc-status-wait{color:var(--mc-slate,#64748b)}
.mc-status-asked{color:var(--mc-amber,#b45309);font-weight:600}
.mc-status-sep{color:var(--mc-faint,#94a3b8)}
#p3MissionControl.mc-theme-dark .mc-status-strip{background:#131a2b;border-color:#2a3550;color:#9aa7bd}
#p3MissionControl.mc-theme-dark .mc-status-sent,#p3MissionControl.mc-theme-dark .mc-status-confirmed{color:#4cc59c}
#p3MissionControl.mc-theme-dark .mc-status-asked{color:#e0a23a}
/* #501 — THE WAITING-FAXES SECTION, to the approved mockup (artifact KdHrtPphSAsXU97nTUsHoD). Arrow cursor (law 5.21). */
/* NO overflow:hidden here: the card body is a GRID, and a clipped grid item's minimum size is zero — the track collapsed the
   whole section to its 2 px of border and every line underneath was clipped and unpressable (found by the 501 rig pin). The
   rounded corners are carried by the header and the last line instead. */
.mc-fx{border:1px solid #f0d8ae;background:#fffdf6;border-radius:9px;margin:12px 0}
.mc-fx-head{display:flex;align-items:center;gap:9px;padding:8px 14px;background:#fdf6e6;border-bottom:1px solid #f3e3bd;border-radius:8px 8px 0 0}
.mc-fx-item:last-child,.mc-fx-item:last-child .mc-fx-go{border-bottom-left-radius:8px}
.mc-fx-item:last-child .mc-fx-caret{border-bottom-right-radius:8px}
.mc-fx-head h3{margin:0;font-size:11.5px;font-weight:700;letter-spacing:.04em;color:#8a6a2f}
.mc-fx-count{font-size:11px;font-weight:700;background:#8a6a2f;color:#fff;border-radius:999px;padding:1px 7px}
.mc-fx.is-empty .mc-fx-count{background:#cdbb92}
.mc-fx-note{margin-left:auto;font-size:11.5px;color:#a08a5e}
.mc-fx-msg{padding:9px 14px;font-size:12.5px;color:#6b6250}
.mc-fx-msg.is-bad{color:#a3281c}
.mc-fx-foot,.mc-fx-done{padding:6px 14px 8px;font-size:11.5px;color:#9a8a6a;border-top:1px solid #f6ecd6}
.mc-fx-item{border-top:1px solid #f6ecd6}
.mc-fx-item:first-child{border-top:0}
.mc-fx-line{display:flex;align-items:center}
.mc-fx-go{display:flex;align-items:center;gap:9px;padding:7px 4px 7px 14px;flex:1 1 auto;min-width:0;text-align:left;background:transparent;border:0;font:inherit;cursor:default;color:inherit}
.mc-fx-go:hover,.mc-fx-item.on .mc-fx-go{background:#fdf8ec}
.mc-fx-go:focus-visible,.mc-fx-caret:focus-visible{outline:2px solid #d9a93c;outline-offset:-2px}
.mc-fx-date{font-size:11.5px;color:#9a8a6a;flex:0 0 auto;min-width:44px}
.mc-fx-from{font-size:12.5px;font-weight:700;color:#4a3d22;flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34%}
.mc-fx-what{font-size:12.5px;color:#6b6250;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-fx-match{font-size:11px;border-radius:4px;padding:1px 7px;white-space:nowrap;flex:0 1 auto;max-width:38%;overflow:hidden;text-overflow:ellipsis}
.mc-fx-match.is-yes{background:#e6f3ea;color:#1f6b3d;border:1px solid #c3e0cd}
.mc-fx-match.is-no{background:#fdeee6;color:#9a5420;border:1px solid #f2d3bc}
.mc-fx-match.is-ours{background:#f1f3f6;color:#5b6775;border:1px solid #dde2e8}
#p3MissionControl.mc-theme-dark .mc-fx-match.is-ours{background:#232a36;color:#9aa6b6;border-color:#34405a}
.mc-fx-caret{flex:0 0 auto;font:inherit;font-size:10px;color:#b9a77f;background:transparent;border:0;padding:7px 14px 7px 8px;cursor:default;align-self:stretch}
.mc-fx-caret:hover{color:#8a6a2f;background:#fdf8ec}
/* #503 PART C — quiet Archive / Delete at the far right; the gaps around them open Process Fax (never a destructive act) */
.mc-fx-tools{display:flex;gap:6px;padding:0 12px 0 4px;flex:0 0 auto;align-self:stretch;align-items:center}
.mc-fx-tool{font:inherit;font-size:11px;line-height:1.3;padding:2px 8px;border-radius:5px;border:1px solid #e6dcc4;background:transparent;color:#8a7a58;cursor:default}
.mc-fx-tool:hover{background:#fdf3df;border-color:#d9c79c;color:#5c4c2c}
.mc-fx-tool.is-del:hover{background:#fdeceb;border-color:#f3c4bf;color:#a3281c}
.mc-fx-tool:disabled{opacity:.5}
.mc-fx-confirm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 14px 9px;background:#fdf1ef;border-top:1px solid #f3d3cd;font-size:12.5px;color:#5c2a22}
.mc-fx-confirm span{flex:1 1 280px}
.mc-fx-confirm .mc-fx-btn{margin:0}
.mc-fx-btn.is-del{background:#b42318;border-color:#b42318;color:#fff}
.mc-fx-btn.is-del:hover{background:#9a1e14}
.mc-fx-rowerr{margin:0 14px 8px}
#p3MissionControl.mc-theme-dark .mc-fx-tool{border-color:#4d3e22;color:#c8b48a}
#p3MissionControl.mc-theme-dark .mc-fx-tool:hover{background:#2a2316;color:#f2e3bf}
#p3MissionControl.mc-theme-dark .mc-fx-tool.is-del:hover{background:#3a1714;border-color:#7a2d25;color:#f3a196}
#p3MissionControl.mc-theme-dark .mc-fx-confirm{background:#2b1613;border-color:#5a2a23;color:#f2d2cc}
.mc-fx-open{padding:0 14px 12px;background:#fffdf6}
.mc-fx-why{font-size:12px;color:#7a6a4a;background:#fdf8ec;border:1px solid #f0e2c2;border-radius:6px;padding:7px 10px;margin:2px 0 9px;line-height:1.5}
.mc-fx-why b{color:#5c4c2c}
.mc-fx-prev{display:flex;gap:11px;align-items:flex-start}
.mc-fx-page{width:92px;height:118px;object-fit:cover;object-position:top;background:#fff;border:1px solid #ddd3bb;border-radius:4px;flex:0 0 auto}
.mc-fx-page.is-blank{padding:7px 6px;overflow:hidden}
.mc-fx-page.is-blank i{display:block;height:2.5px;background:#e3e0d6;border-radius:2px;margin-bottom:3.5px}
.mc-fx-page.is-blank i:first-child{background:#c9c4b4;height:4px;width:66%;margin-bottom:6px}
.mc-fx-page.is-blank i:nth-child(3n){width:78%}.mc-fx-page.is-blank i:nth-child(3n+1){width:92%}
.mc-fx-act{flex:1 1 auto;min-width:0}
.mc-fx-btn{font:inherit;font-size:12.5px;padding:5px 13px;border-radius:7px;cursor:default;margin:0 7px 7px 0;background:#fff;color:#6b6250;border:1px solid #ddd3bb}
.mc-fx-btn:hover{background:#faf6ea}
.mc-fx-btn.is-go{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.mc-fx-btn.is-go:hover{background:#1a45bd}
.mc-fx-pagect{font-size:11.5px;color:#9a8a6a;margin-top:3px}
.mc-order-faxwait{margin-left:5px}
#p3MissionControl.mc-theme-dark .mc-fx{background:#1f1b12;border-color:#5a4824}
#p3MissionControl.mc-theme-dark .mc-fx-head{background:#2b2414;border-color:#5a4824}
#p3MissionControl.mc-theme-dark .mc-fx-head h3{color:#f0c674}
#p3MissionControl.mc-theme-dark .mc-fx-count{background:#c79a3c;color:#1b160c}
#p3MissionControl.mc-theme-dark .mc-fx-note,#p3MissionControl.mc-theme-dark .mc-fx-date,#p3MissionControl.mc-theme-dark .mc-fx-pagect,#p3MissionControl.mc-theme-dark .mc-fx-foot,#p3MissionControl.mc-theme-dark .mc-fx-done{color:#b8a57c}
#p3MissionControl.mc-theme-dark .mc-fx-item,#p3MissionControl.mc-theme-dark .mc-fx-foot,#p3MissionControl.mc-theme-dark .mc-fx-done{border-color:#3d3220}
#p3MissionControl.mc-theme-dark .mc-fx-from{color:#f2e3bf}
#p3MissionControl.mc-theme-dark .mc-fx-what,#p3MissionControl.mc-theme-dark .mc-fx-msg{color:#d8ccb0}
#p3MissionControl.mc-theme-dark .mc-fx-go:hover,#p3MissionControl.mc-theme-dark .mc-fx-item.on .mc-fx-go,#p3MissionControl.mc-theme-dark .mc-fx-caret:hover,#p3MissionControl.mc-theme-dark .mc-fx-open{background:#2a2316}
#p3MissionControl.mc-theme-dark .mc-fx-match.is-yes{background:#16301f;border-color:#2c5a3b;color:#8fd3a5}
#p3MissionControl.mc-theme-dark .mc-fx-match.is-no{background:#3a2316;border-color:#6e4128;color:#f0aa7a}
#p3MissionControl.mc-theme-dark .mc-fx-why{background:#2a2316;border-color:#4d3e22;color:#d8ccb0}
#p3MissionControl.mc-theme-dark .mc-fx-why b{color:#f2e3bf}
#p3MissionControl.mc-theme-dark .mc-fx-btn{background:#1c212c;color:#e6eaf0;border-color:#4d3e22}
#p3MissionControl.mc-theme-dark .mc-fx-btn.is-go{background:#2563eb;border-color:#2563eb;color:#fff}
/* #500 — the waiting-faxes summary in the fixed strip: amber when faxes wait, plain grey when none; Show scrolls to the section */
.mc-wf-sum{font:inherit;font-size:13px;line-height:1.4;padding:1px 9px;border-radius:999px;white-space:nowrap}
.mc-wf-sum.is-wait,.mc-wf-sum.is-none{color:var(--mc-slate,#64748b);padding:0}
button.mc-wf-sum{cursor:default;border:1px solid #f0d9a8;background:#fdf6e6;color:#8a5a00;font-weight:650}
button.mc-wf-sum:hover{background:#fbedd0;border-color:#e3c27a}
button.mc-wf-sum.is-bad{border-color:#f3c4bf;background:#fdeceb;color:#a3281c}
#p3MissionControl.mc-theme-dark button.mc-wf-sum{background:#3a2c12;border-color:#6b5320;color:#f5c06b}
#p3MissionControl.mc-theme-dark button.mc-wf-sum.is-bad{background:#3a1714;border-color:#7a2d25;color:#f3a196}
#p3MissionControl.mc-theme-dark .mc-wf-sum.is-wait,#p3MissionControl.mc-theme-dark .mc-wf-sum.is-none{color:#9aa7bd}
.mc-waiting-flash{animation:mcWaitingFlash 1.6s ease-out 1}
@keyframes mcWaitingFlash{0%{box-shadow:0 0 0 3px rgba(217,169,60,.75)}100%{box-shadow:0 0 0 3px rgba(217,169,60,0)}}
@media (prefers-reduced-motion:reduce){.mc-waiting-flash{animation:none}}

/* Header — template .hd/.when/.x */
.mc-hd{padding:18px 26px 14px;border-bottom:1px solid var(--mc-line);display:flex;justify-content:space-between;align-items:baseline;flex:0 0 auto}
.mc-hd h1{font-size:20px;font-weight:700;display:inline;margin:0}
.mc-when{font-size:14px;color:var(--mc-slate);margin-left:14px}
/* #373 — the header stays ONE line: the left side may shrink, the summary ellipsises (full text on hover), the right side never wraps */
/* #379 (2026-09-03): the #373 one-line header put overflow:hidden on this whole div, and the Reschedule pill — last
   thing inside .mc-when — was the first thing clipped whenever name + when + kind + summary ran long (every Simple
   card at 1440). The TEXT still ellipsizes (.mc-hd-text); the pill is its own flex item and can never be clipped. */
/* #381 A (2026-09-03): ONE header line — name · DOB · "85 year old female" · date · time · type · phone · Reschedule.
   The line never wraps and never truncates: the MODAL widens to the line (fit-content between 1180 px and 98 vw). */
/* #410 (David, 2026-09-06) — the header never wraps and never widens the card past its cap: when the line does not fit,
   the VISIT-TYPE label truncates first (ellipsis), then AGE/SEX; the name, DOB, date · time, phone and the Reschedule pill
   never shrink. The cut text is on hover through the ONE global truncation tip (law 5.45). fitHeaderLine() still steps
   the font down as the last resort when the never-shrinking parts alone overflow. */
/* #485 (David's ruling 2026-09-30, approved mockup) — TRUNCATION IS BANNED ON THIS LINE.
   #410/#411's "sacrifice order" (pill ellipsises, then age/sex, then the font steps 15 → 11 px, then the name) is
   RETIRED, and fitHeaderLine() with it: what it protected against was a line that must never wrap, and the line
   wraps now. The thing he opens the card to read was the thing it hid — "73 year old fem…", "AN…" where the type
   says "Annual H&P Exam".
     · everything on the line is 10% smaller — ONE change, because every size here is an em off this base
       (15px → 13.5px; h1 1.34em, the pills, DOB/age/phone all follow automatically), exactly the mockup's --s:0.9;
     · nothing ellipsises, at any width, for any patient — no overflow:hidden, no text-overflow anywhere on it;
     · when the line runs out of room it WRAPS to a second row. The modal still widens to whatever the window
       allows (.mc-dash-modal, fit-content to 98vw) — wrapping is the safety net, not a replacement for that. */
.mc-hd-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 7px;white-space:normal;flex:1 1 auto;min-width:0;overflow:visible;font-size:13.5px}
.mc-hd-line>*{flex:0 0 auto;min-width:0;overflow:visible;text-overflow:clip;white-space:nowrap}
.mc-hd-line .mc-kind-pill{vertical-align:baseline}
.mc-hd-line h1{margin:0;font-size:1.34em}
.mc-hd-line .mc-when,.mc-hd-line .mc-kind-pill{font-size:1em}
.mc-hd-line .mc-rs-pill,.mc-hd-line .mc-del-pill{font-size:.87em}
.mc-hd-sep{color:var(--mc-faint,#94a3b8)}
.mc-hd-dob,.mc-hd-agesex,.mc-hd-phone{font-size:1em;color:var(--mc-ink,#22303f)}
.mc-hd-dob b{font-weight:700;margin-right:4px}
.mc-hd-agesex{font-weight:700}
.mc-hd-phone{font-variant-numeric:tabular-nums}
.mc-hd .mc-when{margin-left:0}
.mc-hd .mc-rs-pill{flex:0 0 auto;margin-left:6px}
/* #485 — THE DELETE CONFIRMATION MUST SIT ABOVE THE CARD THAT OPENED IT.
   The calendar's confirmation backdrop is z-index 100 and this card is 1200, so a Delete pressed on the card
   would have opened a confirmation the user cannot see — a destructive action waiting behind an opaque modal.
   Found by comparing the two stylesheets before pressing anything, and asserted on top by hit test in the proof
   (law 5.15's 2026-09-03 amendment: a rect is where an element WOULD be; only elementFromPoint says what is seen).
   Scoped to the DELETE backdrop by id, so every other calendar panel keeps its own stacking. */
#dcCalendarDeleteBackdrop{z-index:1300}
/* #486 — the Cancel (CX) confirmation had the SAME defect: More's Cancel opened it at z-index 100 under this 1200 card. */
#dcCalendarCancelBackdrop{z-index:1300}

/* #486 — CANCEL (CX), between Reschedule and Delete. Same pill shape and size; amber, not red and not blue, because
   a cancel is neither a move nor an erasure — the visit stays as history. */
.mc-hd-line .mc-cx-pill{font-size:.87em}
.mc-cx-pill{margin-left:4px;border:1px solid #f1d39a;background:#fff6e5;color:#8a5300;border-radius:999px;padding:2px 12px;font-weight:600;cursor:default}
.mc-cx-pill:hover{background:#fdecc8}
.mc-cx-pill:focus-visible{outline:2px solid #8a5300;outline-offset:2px}
/* #565 — a visit with no type: a red pill that opens the type picker (the grey kind pill steps aside) */
.mc-kind-pill[hidden]{display:none}
.mc-type-missing{margin-right:4px;border:1px solid #fca5a5;background:#fef2f2;color:#b91c1c;border-radius:999px;padding:2px 12px;font-weight:800;font-size:.87em;cursor:default}
#p3MissionControl.mc-theme-dark .mc-type-missing{background:#3b1414;border-color:#7f1d1d;color:#fca5a5}
#p3MissionControl.mc-theme-dark .mc-cx-pill{background:#3a2e14;border-color:#5e4a1f;color:#f5c66b}
#p3MissionControl.mc-theme-dark .mc-cx-pill:hover{background:#4a3b19}
/* a cancelled visit's reason rides its chip on the top line; a long reason wraps inside the chip, never cut (#485's ban) */
.mc-hd-line .mc-cx{white-space:normal;max-width:100%}

/* #488 — PRACTICE FUSION on the card's face: a full-width line under the reminder status; nothing at all when verified */
.mc-status-strip .mc-pf-line{flex:1 0 100%;white-space:normal}
.mc-status-strip .mc-pf-line .dc-cheat-pfstatus{margin:0}
.mc-pf-line[data-mc-pf="loading"]{color:var(--mc-faint,#94a3b8)}
.dc-cheat-pfstatus.unknown i{background:#94a3b8}
.dc-cheat-pfstatus.unknown span{color:#475569}
.dc-cheat-pfstatus.bad span{color:#b42318;font-weight:600}
.dc-cheat-pfstatus[data-pf-state="absent"]{background:#fdecec;border:1px solid #f6c9c4;border-radius:8px;padding:6px 10px}
#p3MissionControl.mc-theme-dark .dc-cheat-pfstatus.unknown span{color:#9aa7bd}
#p3MissionControl.mc-theme-dark .dc-cheat-pfstatus.bad span{color:#ff9f95}
#p3MissionControl.mc-theme-dark .dc-cheat-pfstatus[data-pf-state="absent"]{background:#3a1f1f;border-color:#5c2d2a}

/* #488 — FAXES WAITING IN THE INBOX for this patient */
.mc-waiting{margin:12px 0}
.mc-waiting-msg{font-size:13px;color:var(--mc-slate,#475569);margin-top:6px;line-height:1.5}
.mc-waiting-msg.is-bad{color:#b42318}
.mc-waiting-note{font-size:12px;color:#8a5300;margin-top:6px}
.mc-waiting-done{font-size:13px;color:var(--mc-ink,#22303f);margin:6px 0;padding:6px 10px;border-left:3px solid #16a34a;background:rgba(22,163,74,.06);border-radius:4px}
.mc-wf-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.mc-wf{border:1px solid var(--mc-line,#e5eaf0);border-radius:10px;padding:8px 12px;background:var(--card,#fff)}
.mc-wf-top{font-size:13.5px;line-height:1.45;color:var(--mc-ink,#22303f);outline-offset:2px}
.mc-wf-conf{font-weight:600;color:#1d4ed8}
.mc-wf-name .mc-wf-conf{color:#8a5300}
.mc-wf-confirmed .mc-wf-conf{color:#15803d}
.mc-wf-line{font-size:12.5px;color:var(--mc-slate,#475569);margin-top:2px}
.mc-wf-answers{font-size:12.5px;margin-top:4px;color:#7b3f00}
.mc-wf-err{font-size:12.5px;margin-top:4px}
.mc-wf-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#p3MissionControl.mc-theme-dark .mc-wf{background:#16233a;border-color:#24344d}
#p3MissionControl.mc-theme-dark .mc-wf-top{color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-wf-line,#p3MissionControl.mc-theme-dark .mc-waiting-msg{color:#9aa7bd}
#p3MissionControl.mc-theme-dark .mc-wf-conf{color:#93b4f5}
#p3MissionControl.mc-theme-dark .mc-wf-name .mc-wf-conf,#p3MissionControl.mc-theme-dark .mc-waiting-note,#p3MissionControl.mc-theme-dark .mc-wf-answers{color:#f5c66b}
#p3MissionControl.mc-theme-dark .mc-wf-confirmed .mc-wf-conf{color:#86efac}
#p3MissionControl.mc-theme-dark .mc-waiting-done{color:#e8edf6;background:rgba(34,197,94,.1)}
#p3MissionControl.mc-theme-dark .mc-waiting-msg.is-bad{color:#ff9f95}
/* the ONE pageable preview (full-chart-browser.js), used outside its modal: above the card (1200) and its confirmations */
.fax-hover-preview.p3-hover-standalone{z-index:1400}

/* #485 — DELETE, beside Reschedule and before the close ×. Same pill shape and size as Reschedule;
   the mockup's exact colours (red text on a pale red fill), light and dark. */
.mc-del-pill{margin-left:4px;border:1px solid #f6c9c4;background:#fdecec;color:#b42318;border-radius:999px;padding:2px 12px;font-weight:600;cursor:default}
.mc-del-pill:hover{background:#fbdedb}
.mc-del-pill:focus-visible{outline:2px solid #b42318;outline-offset:2px}
#p3MissionControl.mc-theme-dark .mc-del-pill{background:#3a1f1f;border-color:#5c2d2a;color:#ff9f95}
#p3MissionControl.mc-theme-dark .mc-del-pill:hover{background:#4a2726}
#p3MissionControl.mc-theme-dark .mc-hd-dob,#p3MissionControl.mc-theme-dark .mc-hd-agesex,#p3MissionControl.mc-theme-dark .mc-hd-phone{color:#e8edf6}
/* #382 — THIS VISIT NOTE (visit-note.js): one look on every surface; the box grows (law 5.46); save state is quiet */
.p3-visit-note{margin:10px 0 12px;padding:10px 12px;border:1px solid var(--mc-line,#e5eaf0);border-radius:10px;background:var(--card,#fff)}
.p3-visit-note-label{margin:0 0 6px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;color:var(--mc-slate,#5b6b82)}
.p3-visit-note-box{width:100%;box-sizing:border-box;border:1px solid var(--mc-line,#dfe6f0);border-radius:8px;padding:8px 10px;font:inherit;font-size:14px;line-height:1.45;color:var(--mc-ink,#22303f);background:#fff;resize:none;overflow:hidden;min-height:44px;field-sizing:content}
.p3-visit-note-box:focus{outline:2px solid rgba(52,120,223,.35);border-color:var(--blue,#3478df)}
.p3-visit-note-row{display:flex;align-items:center;gap:10px;margin-top:6px;min-height:28px}
.p3-visit-note-save{min-width:96px;border:1px solid var(--mc-line,#dfe6f0);background:#fff;color:var(--mc-ink,#22303f);border-radius:8px;padding:4px 12px;font-size:12px;font-weight:700;line-height:1.4;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.p3-visit-note-save:disabled{opacity:.55}
.p3-visit-note-save.is-saved{background:#e9f8f1;border-color:#9fd9bf;color:#0f6b4f}
.p3-visit-note-state{font-size:12px;color:var(--mc-slate,#5b6b82)}
.p3-visit-note-state.is-ok{color:#0f6b4f}
.p3-visit-note-state.is-bad{color:#b42318;font-weight:700}
#p3MissionControl.mc-theme-dark .p3-visit-note{background:#171f30;border-color:#2a3550} #p3MissionControl.mc-theme-dark .p3-visit-note-box{background:#111827;border-color:#2a3550;color:#e8edf6} #p3MissionControl.mc-theme-dark .p3-visit-note-save{background:#1b2a45;border-color:#34496a;color:#e8edf6} #p3MissionControl.mc-theme-dark .p3-visit-note-save.is-saved{background:#12352a;border-color:#2a6a4f;color:#8fe0bd} #p3MissionControl.mc-theme-dark .p3-visit-note-label,#p3MissionControl.mc-theme-dark .p3-visit-note-state{color:#c8d3e2}
/* #381 E — Refresh shows it is working and when it finished */
.mc-refresh-spin{display:inline-block;width:11px;height:11px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;margin-right:6px;vertical-align:-1px;animation:mcSpin .8s linear infinite}
@keyframes mcSpin{to{transform:rotate(360deg)}}
.mc-refresh-done{font-size:12px;color:var(--mc-slate,#5b6b82);margin-left:6px}
/* #381 G — Print Prep Sheet: the card, whole and unfolded, on paper; nothing else on the page */
/* #421 (David's ruling 2026-09-10): this block fires ONLY for the Print Prep Sheet PRESS — printPrepSheet() marks the
   press with body.mc-printing (and the card root's mc-printing) for the duration of the print. The #381 G version selected
   `body>*:not(#p3MissionControl)` unconditionally, which blanked every other print door on every page (Print PVT, Ctrl+P,
   the Fax Center) whether or not a card was open — the same disease #381 G had named, re-created by its own fix. */
@media print{
  body.mc-printing>*:not(#p3MissionControl){display:none!important}
  body.mc-printing #p3MissionControl{display:block!important}
  body.mc-printing #p3MissionControl .mc-backdrop{position:static;background:none;display:block;padding:0}
  /* #490 Part 5 — max-height:none + overflow:visible. The screen rule caps the card at calc(100vh - 48px); this print block
     reset height / width / position but never the CAP, so on paper the card was clamped to ONE page: Donna Marquis's card
     printed the top 852 px of 6,472 (1 page) — everything from This Visit Note down was silently dropped. Lifted: 7 pages,
     nothing dropped (measured, _490_printProbe.mjs). */
  body.mc-printing #p3MissionControl .mc-modal{position:static;width:auto;min-width:0;max-width:none;height:auto;max-height:none;overflow:visible;box-shadow:none;border-radius:0;display:block}
  body.mc-printing #p3MissionControl .mc-cockpit{display:block}
  body.mc-printing #p3MissionControl .mc-body{overflow:visible;height:auto;max-height:none;padding:0 4px}
  body.mc-printing #p3MissionControl .mc-rail,body.mc-printing #p3MissionControl .mc-right,body.mc-printing #p3MissionControl .mc-foot,body.mc-printing #p3MissionControl .mc-hd-right,body.mc-printing #p3MissionControl .mc-rs-pill,body.mc-printing #p3MissionControl .mc-chip-acts,body.mc-printing #p3MissionControl .mc-chips-summary,body.mc-printing #p3MissionControl .mc-wanted-toggle,body.mc-printing #p3MissionControl .mc-nt-toggle,body.mc-printing #p3MissionControl .mc-dash-foot,body.mc-printing #p3MissionControl .toast{display:none!important}
  body.mc-printing #p3MissionControl .mc-wanted,body.mc-printing #p3MissionControl .mc-problem,body.mc-printing #p3MissionControl .mc-synth,body.mc-printing #p3MissionControl .mc-doc{break-inside:avoid}
}
/* #379 — the blue box's schedule lines: appointments + heads-ups below her words, both modes, never folded */
.mc-sched{margin-top:10px;padding-top:8px;border-top:1px dashed rgba(52,120,223,.35)}
.mc-sched-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.mc-sched-list li{font-size:13px;line-height:1.35;color:var(--mc-ink,#1e2a3a)}
.mc-sched-list li b{font-weight:700;margin-right:4px}
.mc-sched-appt b{color:var(--blue,#3478df)}
.mc-sched-hu b{color:#b45309}
.mc-sched-why{color:var(--mc-slate,#5b6b82)}
.mc-sched-empty,.mc-sched-hidden{display:block;margin-top:4px;font-size:12px;color:var(--mc-slate,#5b6b82)}
/* #388 — Recent / Upcoming groups on the same list; past rows quieter; a "Note" tag marks rows whose visit note shows on hover */
.mc-sched-grp{display:grid;grid-template-columns:104px minmax(0,1fr);gap:0 10px;align-items:start}
.mc-sched-grp+.mc-sched-grp{margin-top:6px}
.mc-sched-grp-lbl{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted,#6d788d);line-height:1.5;padding-top:2px}
.mc-sched-past{color:var(--mc-slate,#5b6b82)}
.mc-sched-past b{font-weight:600;color:var(--mc-slate,#5b6b82)}
/* #394 — the row prefix IS the navigation link ("Scheduled" / "Previous Visit"), link-blue; the self row reads "You Are Here". */
.mc-sched-go{appearance:none;background:none;border:0;padding:0;margin:0 4px 0 0;font:inherit;font-weight:700;color:var(--blue,#3478df);text-decoration:underline;text-decoration-color:rgba(52,120,223,.35);text-underline-offset:2px;line-height:inherit;cursor:default}   /* law 5.21: arrow cursor, never the hand (the modal's button rule would inherit pointer) */
.mc-note-pill,.mc-back-pill,.mc-note-pop-x,.mc-sched-go.mc-sched-here{cursor:default}
.mc-sched-go:hover,.mc-sched-go:focus-visible{text-decoration-color:currentColor;outline:none}
.mc-sched-past .mc-sched-go{font-weight:700;color:var(--blue,#3478df)}
.mc-sched-go.mc-sched-here{color:var(--mc-slate,#5b6b82);text-decoration:none;border:1px solid rgba(91,107,130,.45);border-radius:999px;padding:0 7px;font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;line-height:1.6;vertical-align:1px}
.mc-sched-self{background:rgba(52,120,223,.07);border-radius:4px;margin-left:-4px;padding-left:4px}
/* #410 — UPCOMING is capped at the next three; the rest sit behind one quiet line that expands in place */
.mc-sched-more{appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;font-size:12px;color:var(--mc-slate,#5b6b82);text-decoration:underline dotted;text-decoration-color:rgba(91,107,130,.5);text-underline-offset:2px;cursor:default;line-height:1.5}
.mc-sched-more:hover,.mc-sched-more:focus-visible{color:var(--blue,#3478df);text-decoration-color:currentColor;outline:none}
#p3MissionControl.mc-theme-dark .mc-sched-more{color:#c8d3e2}
/* #394 — the NOTE pill: preview text, one line, ellipsis; the only hover / click target for the note. */
.mc-note-pill{appearance:none;display:inline-flex;align-items:center;max-width:min(38ch,100%);margin-left:8px;padding:0 7px;border-radius:999px;border:1px solid rgba(52,120,223,.45);background:rgba(52,120,223,.06);color:var(--blue,#3478df);font:inherit;font-size:11px;line-height:1.7;vertical-align:1px;white-space:nowrap;overflow:hidden}
.mc-note-pill-k{font-weight:700;letter-spacing:.05em}
.mc-note-pill-sep{white-space:pre}
.mc-note-pill-t{font-weight:500;overflow:hidden;text-overflow:ellipsis;color:var(--mc-ink,#1e2a3a)}
.mc-note-pill:hover,.mc-note-pill:focus-visible,.mc-note-pill.is-pinned{background:rgba(52,120,223,.14);border-color:var(--blue,#3478df);outline:none}
.mc-note-pill.is-pinned{box-shadow:0 0 0 2px rgba(52,120,223,.25)}
/* #394 — the ONE note popup: beside the pill (fixed, above every modal), read-only; pinned = selectable text + X. */
.mc-note-pop{position:fixed;z-index:2147482500;width:min(380px,calc(100vw - 24px));max-height:min(60vh,520px);display:flex;flex-direction:column;background:#fff;color:#1e2a3a;border:1px solid rgba(52,120,223,.5);border-radius:10px;box-shadow:0 14px 40px rgba(24,33,47,.28);pointer-events:none;font-size:13px;line-height:1.45}
.mc-note-pop.is-pinned{pointer-events:auto}
.mc-note-pop[hidden]{display:none}
.mc-note-pop-hd{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px 6px 12px;border-bottom:1px solid rgba(52,120,223,.25);font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--blue,#3478df)}
.mc-note-pop:not(.is-pinned) .mc-note-pop-x{visibility:hidden}
.mc-note-pop-x{appearance:none;background:none;border:0;padding:2px 6px;font-size:13px;line-height:1;color:#5b6b82;border-radius:6px}
.mc-note-pop-x:hover{background:rgba(52,120,223,.12);color:#1e2a3a}
.mc-note-pop-txt{padding:10px 12px 12px;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;user-select:text;-webkit-user-select:text}
.mc-note-pop.mc-theme-dark{background:#17233a;color:#e8edf6;border-color:rgba(106,158,240,.6);box-shadow:0 14px 40px rgba(0,0,0,.5)}
.mc-note-pop.mc-theme-dark .mc-note-pop-hd{color:#a9c6f5;border-bottom-color:rgba(106,158,240,.35)} .mc-note-pop.mc-theme-dark .mc-note-pop-x{color:#c8d3e2} .mc-note-pop.mc-theme-dark .mc-note-pop-x:hover{background:rgba(106,158,240,.2);color:#fff}
/* #394 — header: the one-step Back pill (near Reschedule, unobtrusive) and the Past Visit record tag. */
.mc-back-pill{appearance:none;flex:0 0 auto;margin-left:6px;padding:2px 10px;border-radius:999px;border:1px solid rgba(52,120,223,.5);background:rgba(52,120,223,.08);color:var(--blue,#3478df);font:inherit;font-size:.8em;font-weight:600;line-height:1.5;white-space:nowrap}
.mc-back-pill:hover,.mc-back-pill:focus-visible{background:rgba(52,120,223,.16);outline:none}
.mc-hd-past{flex:0 0 auto;margin-left:6px;padding:2px 9px;border-radius:999px;border:1px solid rgba(91,107,130,.45);color:var(--mc-slate,#5b6b82);font-size:.78em;font-weight:600;letter-spacing:.04em;text-transform:uppercase;line-height:1.5;white-space:nowrap}
#p3MissionControl.mc-theme-dark .mc-sched-grp-lbl{color:#a9c6f5} #p3MissionControl.mc-theme-dark .mc-sched-past,#p3MissionControl.mc-theme-dark .mc-sched-past b{color:#c8d3e2}
#p3MissionControl.mc-theme-dark .mc-sched-go,#p3MissionControl.mc-theme-dark .mc-sched-past .mc-sched-go{color:#6a9ef0;text-decoration-color:rgba(106,158,240,.4)} #p3MissionControl.mc-theme-dark .mc-sched-go.mc-sched-here{color:#c8d3e2;border-color:rgba(200,211,226,.45)} #p3MissionControl.mc-theme-dark .mc-sched-self{background:rgba(106,158,240,.12)}
#p3MissionControl.mc-theme-dark .mc-note-pill{border-color:rgba(106,158,240,.6);background:rgba(106,158,240,.1);color:#a9c6f5} #p3MissionControl.mc-theme-dark .mc-note-pill-t{color:#e8edf6} #p3MissionControl.mc-theme-dark .mc-note-pill:hover,#p3MissionControl.mc-theme-dark .mc-note-pill.is-pinned{background:rgba(106,158,240,.22);border-color:#6a9ef0}
#p3MissionControl.mc-theme-dark .mc-back-pill{border-color:rgba(106,158,240,.6);background:rgba(106,158,240,.12);color:#a9c6f5} #p3MissionControl.mc-theme-dark .mc-hd-past{color:#c8d3e2;border-color:rgba(200,211,226,.45)}
#p3MissionControl.mc-theme-dark .mc-sched{border-top-color:rgba(106,158,240,.45)} #p3MissionControl.mc-theme-dark .mc-sched-list li{color:#e8edf6} #p3MissionControl.mc-theme-dark .mc-sched-appt b{color:#6a9ef0} #p3MissionControl.mc-theme-dark .mc-sched-hu b{color:#f5b04a} #p3MissionControl.mc-theme-dark .mc-sched-why,#p3MissionControl.mc-theme-dark .mc-sched-empty,#p3MissionControl.mc-theme-dark .mc-sched-hidden{color:#c8d3e2}
.mc-hd .mc-summary{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.mc-hd-right{flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.mc-when b{color:var(--mc-ink)}
.mc-x{color:var(--mc-faint);font-size:16px;background:none;border:none;cursor:pointer;padding:2px 6px;line-height:1}
.mc-x:hover{color:var(--mc-ink)}

/* The scrolling middle. Item 11: the modal grows with content; the header and
   the footer actions stay put, so law 4.10 holds however long this gets. */
.mc-body{overflow-y:auto;flex:1 1 auto;padding-bottom:6px}

.mc-meta{padding:8px 26px 0;font-size:12.5px;color:var(--mc-slate)}
.mc-meta span{margin-right:22px;display:inline-block}
.mc-meta b{color:var(--mc-ink);font-weight:600}

.mc-notes{margin:12px 26px 0;border-left:3px solid #d8c98a;background:#fcfaf3;padding:9px 14px;font-size:13px;color:#4c4735}
.mc-notes b.mc-label{font-size:10.5px;letter-spacing:.8px;color:#8a7a35;display:block;margin-bottom:2px}
.mc-notes .mc-note-date{color:#8a7a35;font-weight:600}
.mc-notes .mc-note-empty{color:#8a7a35;font-style:italic}
.mc-gap{margin:8px 26px 0;border-left:3px solid var(--mc-red);background:#fdf5f5;padding:8px 14px;font-size:12px;color:#7c2d2d}
.mc-gap b{display:block;font-size:10.5px;letter-spacing:.8px;margin-bottom:2px}

.mc-tbl{margin:16px 26px 0;border:1px solid var(--mc-line);border-radius:10px;overflow:hidden}
.mc-sec{display:flex;align-items:center;padding:8px 14px;background:var(--mc-hdr);border-top:1px solid #cbd6e4;font-size:12px;font-weight:800;letter-spacing:1.1px;color:var(--mc-hdr-ink)}
.mc-sec:first-child{border-top:none}
.mc-sec .mc-tally{margin-left:auto;font-weight:600;letter-spacing:0;font-size:11.5px;color:#5b7191}
.mc-row{display:grid;grid-template-columns:110px 1fr 190px;align-items:center;gap:10px;padding:9px 14px 9px 38px;border-top:1px solid #f0f3f7;font-size:13px;background:#fff}
.mc-st{font-size:11px;font-weight:700;letter-spacing:.3px}
.mc-st.in{color:var(--mc-green)}.mc-st.out{color:var(--mc-amber)}.mc-st.fail{color:var(--mc-red)}
.mc-what .mc-sub{font-size:11.5px;color:var(--mc-faint);margin-top:1px}
.mc-end{display:flex;justify-content:flex-end}

/* An unbuilt slice says so in the product, never pretends (rule 1.4). */
.mc-stub{padding:10px 14px 12px 38px;font-size:12px;color:var(--mc-faint);background:#fbfcfd;border-top:1px solid #f0f3f7}
.mc-stub b{color:var(--mc-amber);letter-spacing:.4px}

.mc-foot{display:flex;justify-content:space-between;align-items:center;padding:14px 26px 18px;border-top:1px solid var(--mc-line);flex:0 0 auto;background:#fff;border-radius:0 0 12px 12px}
/* #580 — the smart Open PVT: the button, and under it the small "or open the last PVT (MM/DD)" link */
.mc-pvt-slot{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.mc-pvt-last{font:inherit;font-size:12.5px;background:none;border:0;padding:0;color:#1d4ed8;text-decoration:underline;cursor:default}
.mc-pvt-last:hover{color:#1e3a8a}
[data-theme="dark"] .mc-pvt-last{color:#93c5fd}
.mc-quiet{border:1px solid var(--mc-line);background:#fff;color:var(--mc-slate);font-weight:600;font-size:12.5px;padding:8px 13px;border-radius:8px;margin-right:8px;cursor:pointer}
.mc-quiet:hover{border-color:#9fb6d8;color:var(--mc-ink)}
.mc-primary{background:var(--mc-blue);color:#fff;border:none;font-weight:700;font-size:13px;padding:9px 18px;border-radius:8px;cursor:pointer}

/* The kind confirm — suggest-and-confirm on an uncertain title (item C). */
.mc-confirm{margin:14px 26px;border:1px solid #e6c887;background:#fdf3e0;border-radius:8px;padding:12px 14px;font-size:13px;color:#7a5a12}
.mc-confirm b{display:block;margin-bottom:6px}
.mc-confirm button{margin-right:8px;border:1px solid #d9a441;background:#fff;color:#7a5a12;font-weight:700;font-size:12.5px;padding:7px 14px;border-radius:8px;cursor:pointer}

/* The caller's button on a reminders row. */
.p3-mc-cell button{border:1px solid var(--line,#d9dee7);background:#fff;border-radius:7px;padding:5px 9px;font-size:11px;font-weight:700;color:#33465c;cursor:pointer;white-space:nowrap}
.p3-mc-cell button:hover{border-color:#9fb6d8;background:#f5f8fc}

/* COCKPIT A (David's pick 2026-08-17): three columns — Lighthouse Package Rail
   · the cheat sheet · Lighthouse said. Fixed height so the rail can pin its
   fax button (law 4.10); each column scrolls on its own. */
.mc-modal{width:min(1240px,100%);height:min(780px,calc(100vh - 48px))}
.mc-cockpit{display:grid;grid-template-columns:340px minmax(0,1fr) 300px;flex:1 1 auto;min-height:0}
.mc-rail{border-right:1px solid var(--mc-line);min-height:0;overflow:hidden;display:flex;flex-direction:column}
.mc-right{border-left:1px solid var(--mc-line);background:#fbfcfe;min-height:0;overflow:auto;padding:12px 16px}
.mc-right-h{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#64748b;font-weight:800;margin:0 0 8px}
.mc-right-h span{font-weight:600;text-transform:none;letter-spacing:0}
.mc-log{margin-bottom:14px}
.mc-stub-plain{border:0;background:transparent;padding:0 0 12px;font-size:12px}
@media (max-width:1100px){.mc-cockpit{grid-template-columns:300px minmax(0,1fr)}.mc-right{display:none}}


/* ── DASHBOARD-FIRST (David's build order 2026-08-28, #308) ────────────────────────────────── */
.mc-dash-modal .mc-body{display:grid;gap:12px;align-content:start;padding:14px 18px;overflow:auto}
.mc-hd-right{display:flex;align-items:center;gap:14px}
.mc-meta-inline{font-size:13px;color:var(--muted,#6d788d);white-space:nowrap}
.mc-kind-pill{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--blue-soft,#eaf3ff);color:var(--blue,#3478df);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.mc-lbl{display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px}
.mc-lbl-blue{color:var(--blue,#3478df)} .mc-lbl-purple{color:var(--purple,#7655b5)}
.mc-wanted{border-left:4px solid var(--blue,#3478df);background:var(--blue-soft,#eaf3ff);padding:10px 14px;border-radius:0 8px 8px 0}
.mc-wanted-list{margin:0;padding:0;list-style:none;display:grid;gap:2px;font-size:15px;color:var(--ink,#16213a)}
.mc-wanted-list li.mc-w-next-visit{font-weight:600}
/* #385 — labeled Next Visit lines: Reason · Visit · Timing · Visit Details · Chart Prep · Prep Notes · Must See By (her words verbatim, newlines kept) */
.mc-wanted-list li.mc-w-labeled{display:grid;grid-template-columns:104px minmax(0,1fr);gap:0 10px;align-items:baseline}
.mc-w-lbl{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted,#6d788d);line-height:1.5;padding-top:3px}
.mc-w-txt{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.mc-wanted-list li.mc-w-reason .mc-w-txt{font-weight:600}
/* #448: the "Order ·" flattening prefix is retired — every order row carries its real kind label (.mc-order-kind) */
.mc-wanted-toggle{display:inline-block;margin-top:7px;padding:2px 11px;border:1px solid var(--blue,#3478df);border-radius:999px;background:transparent;color:var(--blue,#3478df);font-family:inherit;font-size:12px;font-weight:600;line-height:1.7;letter-spacing:.02em}
.mc-wanted-toggle:hover{background:var(--card,#fff)}
.mc-wanted-toggle:focus-visible{outline:2px solid var(--blue,#3478df);outline-offset:2px}
.mc-src{display:block;margin-top:4px;font-size:12.5px;color:var(--muted,#6d788d)}
/* #372 — Simple / Extended toggle (top-right), PDF document cards, non-green problem lines */
.mc-mode{display:inline-flex;border:1px solid var(--mc-line,#dfe6f0);border-radius:999px;overflow:hidden;margin-right:8px;vertical-align:middle}
.mc-mode-btn{border:0;background:#fff;color:var(--mc-slate,#5b6b82);font-weight:700;font-size:12px;padding:6px 12px;line-height:1}
.mc-mode-btn.is-on{background:var(--blue,#3478df);color:#fff}
.mc-mode-btn:focus-visible{outline:2px solid var(--blue,#3478df);outline-offset:-2px}
.mc-docs{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.mc-docs-empty{display:block;color:var(--muted,#6d788d);font-size:13px;padding:4px 2px}
/* #384 — Bring In Results tells the truth: working button, landing line, the new PDF card lit for a moment */
.mc-landing{padding:8px 12px;border-radius:8px;font-size:13.5px;line-height:1.4}
.mc-landing-ok{background:#e9f7ef;border:1px solid #b7e2c6;color:#1b5e35}
.mc-landing-none{background:#fff7e6;border:1px solid #f1d9a6;color:#7a4b00}
.mc-doc.mc-doc-new{box-shadow:0 0 0 2px var(--blue,#3478df);animation:mcDocNew 1.1s ease-in-out 3}
@keyframes mcDocNew{0%,100%{box-shadow:0 0 0 2px var(--blue,#3478df)}50%{box-shadow:0 0 0 6px rgba(52,120,223,.25)}}
.mc-quiet.is-working{opacity:.72;cursor:default}
#p3MissionControl.mc-theme-dark .mc-landing-ok{background:#173324;border-color:#2c6a45;color:#bfe8cf} #p3MissionControl.mc-theme-dark .mc-landing-none{background:#3a2b10;border-color:#8a6a2a;color:#f3d9a0}
.mc-doc{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;border:1px solid var(--line,#dfe6f0);border-radius:10px;background:var(--card,#fff);padding:8px 10px;color:var(--ink,#16213a);font:inherit}
.mc-doc:hover{border-color:#b9d4fa;background:var(--blue-soft,#eaf3ff)}
.mc-doc:focus-visible{outline:2px solid var(--blue,#3478df);outline-offset:2px}
.mc-doc-icon{grid-row:1/3;width:34px;height:40px;border-radius:5px;background:#d93025;color:#fff;font-size:10px;font-weight:900;letter-spacing:.04em;display:grid;place-items:center;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.mc-doc-name{font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-doc-meta{font-size:11.5px;color:var(--muted,#6d788d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-problems{display:grid;gap:4px}
.mc-problem{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;padding:6px 10px;border-radius:8px}
.mc-problem i{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
.mc-problem-warn{background:#fff7e6;color:#8a5a00} .mc-problem-warn i{background:var(--amber,#c77a0a)}
.mc-problem-bad{background:#fff1f2;color:#991b1b} .mc-problem-bad i{background:var(--red,#ce4c4c)}
.mc-chip-quiet{color:var(--muted,#6d788d)}
/* #380 — triaged chips: green = Handled (resolved in real life), grey = Won't Track; the text is a link; actions inline */
.mc-problem{flex-wrap:wrap}
.mc-problem-ok{background:#e9f8f1;color:#0f6b4f} .mc-problem-ok i{background:var(--mint,#169a72)}
.mc-problem-off{background:#f1f3f6;color:#6d788d} .mc-problem-off i{background:#a5adba}
.mc-chip-link{color:inherit;text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:3px;min-width:0;flex:1 1 auto}
.mc-chip-stamp{font-size:11px;font-weight:500;color:var(--mc-slate,#5b6b82);white-space:nowrap}
.mc-chip-acts{display:inline-flex;gap:6px;margin-left:auto;flex:0 0 auto}
.mc-chip-act{border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.8);color:inherit;border-radius:7px;padding:2px 9px;font-size:11px;font-weight:700;line-height:1.4}
.mc-chip-act:disabled{opacity:.6}
.mc-chips-summary{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--mc-line,#dfe6f0);background:#fff;color:var(--mc-ink,#1e2a3a);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;margin:2px 0 6px}
.mc-chips-dot{width:9px;height:9px;border-radius:50%;background:var(--amber,#c77a0a)} .mc-chips-dot.is-red{background:var(--red,#ce4c4c)}
.mc-chips-caret{color:var(--mc-slate,#5b6b82);font-weight:400}
.mc-nt-toggle{border:0;background:transparent;color:var(--mc-slate,#5b6b82);font-size:12px;font-weight:700;padding:6px 0 2px}
.mc-problems-nt{margin-top:4px}
#p3MissionControl.mc-theme-dark .mc-problem-ok{background:#12352a;color:#8fe0bd} #p3MissionControl.mc-theme-dark .mc-problem-off{background:#20283a;color:#9aa6ba}
#p3MissionControl.mc-theme-dark .mc-chip-act{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}
#p3MissionControl.mc-theme-dark .mc-chips-summary{background:#171f30;border-color:#2a3550;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-chip-stamp,#p3MissionControl.mc-theme-dark .mc-chips-caret,#p3MissionControl.mc-theme-dark .mc-nt-toggle{color:#c8d3e2}
#p3MissionControl.mc-theme-dark .mc-mode{border-color:#34496a} #p3MissionControl.mc-theme-dark .mc-mode-btn{background:#1b2a45;color:#c8d3e2} #p3MissionControl.mc-theme-dark .mc-mode-btn.is-on{background:#6a9ef0;color:#0d1726}
#p3MissionControl.mc-theme-dark .mc-doc{background:#16233a;border-color:#34496a;color:#e8eef7} #p3MissionControl.mc-theme-dark .mc-doc:hover{background:#1f3050;border-color:#6a9ef0}
#p3MissionControl.mc-theme-dark .mc-problem-warn{background:#3a2a10;color:#f5c06b} #p3MissionControl.mc-theme-dark .mc-problem-bad{background:#3a1a1e;color:#f5a3a8}
.mc-chips{display:flex;flex-wrap:wrap;gap:8px}
.mc-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line,#dfe6f0);border-radius:999px;padding:3px 10px;font-size:13px;background:var(--card,#fff)}
.mc-chip i{width:8px;height:8px;border-radius:50%;background:var(--muted,#6d788d)} .mc-chip-ok i{background:var(--mint,#169a72)} .mc-chip-warn i{background:var(--amber,#c77a0a)} .mc-chip-bad i{background:var(--red,#ce4c4c)}
.mc-synth{border:1px solid var(--line,#dfe6f0);border-radius:8px;padding:12px 14px;background:var(--card,#fff)}
.mc-synth p{margin:0 0 10px;font-size:15px;line-height:1.45;max-width:80ch}
.mc-synth-rows{display:grid;grid-template-columns:150px 1fr;gap:6px 12px;font-size:14px}
.mc-synth-rows>b{color:var(--muted,#6d788d);font-weight:600}
.mc-synth-rows ul{margin:0;padding-left:18px} .mc-synth-rows li{margin:0 0 3px}
.mc-synth-one .mc-sentence{font-size:15px}
.mc-cite{color:var(--blue,#3478df);text-decoration:none;border-bottom:1px dotted var(--blue,#3478df);font-size:13px;white-space:nowrap;cursor:default}
.mc-cite:focus-visible{outline:2px solid var(--blue,#3478df);outline-offset:2px}
.mc-stale{font-weight:400;text-transform:none;letter-spacing:0;color:var(--amber,#c77a0a);margin-left:6px}
.mc-out-red{color:var(--red,#ce4c4c);font-weight:600} .mc-out-amber{color:var(--amber,#c77a0a)}
.mc-ok{color:var(--mint,#169a72);font-weight:600} .mc-bad{color:var(--red,#ce4c4c);font-weight:600} .mc-empty{color:var(--muted,#6d788d)}
.mc-sec-grid{display:grid;grid-template-columns:130px 1fr;gap:8px 14px;align-items:baseline;font-size:14px}
.mc-sec-grid>b{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#6d788d)}
.mc-sec-grid em{font-style:normal;color:var(--muted,#6d788d);font-size:12.5px} .mc-sec-grid small{color:var(--muted,#6d788d)}
.mc-more{border-top:1px solid var(--line,#dfe6f0);padding-top:10px}
/* #404 — the M&G SHELL card and the relocated legacy blocks (Extended, every patient visit) */
.mc-shell-note{font-size:13.5px;color:var(--muted,#6d788d);margin:0 0 10px;padding:8px 10px;border-radius:8px;background:var(--canvas,#f4f7fb)}
.mc-prospect-lite{margin:10px 0;font-size:14px}.mc-prospect-lite .mc-lbl{display:block;margin-bottom:2px}
.mc-hosted dl{display:grid;grid-template-columns:max-content 1fr;gap:3px 14px;margin:4px 0 10px;font-size:14px}
.mc-hosted dt{color:var(--muted,#6d788d);font-size:12px;letter-spacing:.04em;text-transform:uppercase;align-self:baseline}
.mc-hosted dd{margin:0;color:var(--ink,#16213a)}
.mc-hosted .dc-cal-prospect-read{margin:0 0 10px;padding:8px 10px;border-radius:8px;background:var(--canvas,#f4f7fb);color:var(--ink,#16213a);font-size:13.5px;white-space:pre-wrap}
.mc-hosted .dc-cal-prospect-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
/* #404 relocated grid: the Manifest's Find button and the Autopilot row labels never break mid-word in their columns */
.mc-hosted .mc-col-center button,.mc-hosted .mc-arm .row>span:first-child{white-space:nowrap}
.mc-hosted .mc-arm .row{display:flex;gap:10px;align-items:baseline;justify-content:space-between}
#p3MissionControl.mc-theme-dark .mc-shell-note{background:#171f30;color:#c8d3e2}
/* #404 dark theme for the relocated legacy blocks (seen in the 09-06 proof screenshot: dl values and the Autopilot card
   kept their light-theme ink and vanished on the dark canvas) */
#p3MissionControl.mc-theme-dark .mc-hosted dd,#p3MissionControl.mc-theme-dark .mc-hosted dt,#p3MissionControl.mc-theme-dark .mc-hosted h4,#p3MissionControl.mc-theme-dark .mc-hosted .dc-right-h,#p3MissionControl.mc-theme-dark .mc-hosted p,#p3MissionControl.mc-theme-dark .mc-hosted li,#p3MissionControl.mc-theme-dark .mc-hosted small,#p3MissionControl.mc-theme-dark .mc-hosted span{color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-hosted dt,#p3MissionControl.mc-theme-dark .mc-hosted .dc-cal-note,#p3MissionControl.mc-theme-dark .mc-hosted .mc-arm .row>span:first-child{color:#aab7cc}
#p3MissionControl.mc-theme-dark .mc-hosted .mc-arm,#p3MissionControl.mc-theme-dark .mc-hosted .dc-cal-prospect-read,#p3MissionControl.mc-theme-dark .mc-hosted section,#p3MissionControl.mc-theme-dark .mc-hosted .dc-cheat-readiness{background:#171f30;border-color:#2a3550;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-hosted .mc-status{background:#243049;color:#e8edf6}
.mc-dash-foot{display:flex;justify-content:space-between;font-size:13px;color:var(--muted,#6d788d)}
.mc-refreshing{color:var(--purple,#7655b5)}
.mc-loading,.mc-error{padding:14px;border-radius:8px;background:var(--canvas,#f4f7fb);font-size:14px}
.mc-error{background:var(--red-soft,#fff0f0);color:var(--ink,#16213a)}
/* #428 — the degraded card: the truth first, then everything the row carries, then the Link Patient door */
.mc-degraded{display:flex;flex-direction:column;gap:12px;font-size:14px}
.mc-degraded-truth{padding:12px 14px;border-radius:8px;background:#fff7e6;border:1px solid #f1d38a;color:var(--ink,#16213a);line-height:1.45}
.mc-degraded .mc-facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:0;padding:12px 14px;border-radius:8px;background:var(--canvas,#f4f7fb)}
.mc-degraded .mc-facts dt{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#5b6b82);padding-top:2px}
.mc-degraded .mc-facts dd{margin:0;color:var(--ink,#16213a)}
.mc-degraded .mc-notes{padding:12px 14px;border-radius:8px;background:#fff;border:1px solid var(--line,#e5eaf0);display:flex;flex-direction:column;gap:8px}
.mc-degraded .mc-note-row{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px}
.mc-degraded .mc-note-row b{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#5b6b82);padding-top:2px}
.mc-degraded .mc-note-row span{white-space:pre-wrap;line-height:1.45;color:var(--ink,#16213a)}
.mc-degraded .mc-link-patient{padding:12px 14px;border-radius:8px;background:#eef6ff;border:1px solid #bcd7f5}
.mc-degraded .mc-link-patient>b{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#1d4f91;margin-bottom:8px}
.mc-degraded .mc-link-host{display:flex;flex-direction:column;gap:6px}
#p3MissionControl.mc-theme-dark .mc-degraded-truth{background:#3b2f14;border-color:#7a5b1e;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-degraded .mc-facts{background:#171f30}
#p3MissionControl.mc-theme-dark .mc-degraded .mc-facts dd,#p3MissionControl.mc-theme-dark .mc-degraded .mc-note-row span{color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-degraded .mc-notes{background:#111827;border-color:#2b3648}
#p3MissionControl.mc-theme-dark .mc-degraded .mc-link-patient{background:#14283f;border-color:#2f5a8c}
#p3MissionControl.mc-theme-dark .mc-degraded .mc-link-patient>b{color:#cfe3ff}
.mc-confirm button{margin:6px 6px 0 0}

/* #308 — dashboard-first: hidden rails must not keep their grid tracks; the body takes the full width */
.mc-dash-modal .mc-cockpit{display:grid;grid-template-columns:auto minmax(0,1fr) auto}
/* #373 — each pane owns its column. Without this, hiding the rail (Simple, most kinds) let the body fall into the
   first, content-sized column and left the 1fr column empty — the right-hand gap David would have seen. */
.mc-dash-modal .mc-rail{grid-column:1} .mc-dash-modal .mc-body{grid-column:2} .mc-dash-modal .mc-right{grid-column:3}
.mc-dash-modal .mc-body{min-width:0;max-width:none;width:auto}
/* #410 → #411 A (David, 2026-09-06) — WIDTH PER VISIT TYPE, one number per tier, centered, the calendar visible behind;
   on a small screen the card takes the backdrop's width (viewport minus 2 × 24 px). The #381 A "widen to the header line"
   rule is retired — the header truncates its middle segments instead (see .mc-hd-line). COMPACT = blood draw · M&G shell;
   WORKSPACE = every other patient visit. Membership modals are not Mission Control and are untouched. */
.mc-dash-modal{width:min(980px,100%);max-width:100%}          /* WORKSPACE — David's "10 inches" */
.mc-dash-modal.mc-w-compact{width:min(760px,100%)}             /* COMPACT — the narrowest that still holds name · DOB · date · time · phone · Reschedule whole at 12 px */
.mc-dash-modal .mc-foot button{white-space:nowrap}             /* at COMPACT the footer wraps between buttons, never inside one */
/* the hosted (relocated) blocks stack in ONE column inside the card at these widths — the calendar's own three-column
   grid (300 / 1fr / 330) was built for the old full-width panel */
.mc-hosted .dc-cal-detail-body.mc-grid{grid-template-columns:1fr;gap:14px}
/* #411 A4 — the header's CONTROLS (Simple / Extended · Dark) sit on their own right-aligned row under the name line and the
   X stays pinned top-right, so the name line has the card's whole width: at WORKSPACE a normal line fits intact, at COMPACT
   the visit-type label and age/sex ellipsize (below) and fitHeaderLine() steps the font as the last resort. */
.mc-dash-modal .mc-hd{position:relative;flex-wrap:wrap;padding-right:52px;row-gap:6px}
.mc-dash-modal .mc-hd-right{flex:0 0 100%;justify-content:flex-end;gap:10px}
.mc-dash-modal .mc-hd .mc-x{position:absolute;top:12px;right:14px}


/* ── #310: one skin, nine actions, theme ─────────────────────────────────────────────────────── */
.mc-backdrop{z-index:95}   /* the calendar's own confirm dialogs (cancel / delete / hold) are z-index 100 and must sit above */
.mc-foot-left{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mc-more-actions{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.mc-quiet-danger{color:#b91c1c} .mc-quiet-danger:hover{background:#fef2f2;border-color:#fecaca}
.mc-cx{color:var(--mc-red,#c02626);font-weight:600}
.mc-theme-btn{font-size:12px;padding:4px 10px}
.mc-chip-lh{border-color:var(--purple,#7655b5)}
/* the calendar's old card body, hosted inside More, wears the card's skin */
.mc-hosted{margin-top:14px;border-top:1px solid var(--line,#dfe6f0);padding-top:12px}
.mc-hosted .dc-card-pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.mc-hosted .dc-pill{border:1px solid var(--line,#dfe6f0);background:var(--card,#fff);color:var(--ink,#16213a);border-radius:999px;padding:3px 10px;font-size:13px;font:inherit}
.mc-hosted h4,.mc-hosted .dc-right-h{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#6d788d);margin:12px 0 4px}
.mc-hosted section{margin:0 0 10px}
.mc-hosted .mc-grid{display:grid;grid-template-columns:1fr;gap:14px}
.mc-hosted textarea,.mc-hosted input,.mc-hosted select{font:inherit;color:var(--ink,#16213a);background:var(--card,#fff);border:1px solid var(--line,#dfe6f0);border-radius:6px;padding:6px 8px;width:100%;box-sizing:border-box}
.mc-hosted button{font:inherit;border:1px solid var(--line,#dfe6f0);background:var(--card,#fff);color:var(--ink,#16213a);border-radius:6px;padding:5px 10px;font-weight:600}
.mc-hosted button.primary{background:var(--blue,#3478df);border-color:var(--blue,#3478df);color:#fff}
.mc-hosted button.danger{color:#b91c1c}
.mc-hosted .dc-cheat-readiness{display:flex;gap:8px;align-items:center;font-size:14px;margin:6px 0}
.mc-hosted .dc-cheat-recrow{display:flex;gap:10px;align-items:center;padding:4px 0;border-bottom:1px dashed var(--line,#dfe6f0);font-size:14px}
.mc-hosted .dc-cheat-status.got{color:var(--mint,#169a72)} .mc-hosted .dc-cheat-status.waiting{color:var(--amber,#c77a0a)}
.mc-hosted .dc-cal-note{color:var(--muted,#6d788d);font-size:13.5px}
/* DARK — the mockup's palette; scoped to the card, the calendar underneath stays light */
#p3MissionControl.mc-theme-dark .mc-dash-modal{--ink:#e8edf6;--muted:#9aa7bd;--canvas:#0f1522;--card:#171f30;--line:#2a3550;--blue:#6a9ef0;--blue-soft:#1b2a45;--mint:#4cc59c;--mint-soft:#15302a;--purple:#a58ae0;--purple-soft:#2a2340;--amber:#e0a23a;--amber-soft:#3a2c12;--red:#ef7a7a;--red-soft:#3b1d1d;--mc-ink:#e8edf6;--mc-slate:#9aa7bd;--mc-faint:#6f7d97;--mc-line:#2a3550;--mc-hdr:#171f30;--mc-hdr-ink:#e8edf6;--mc-blue:#6a9ef0;--mc-green:#4cc59c;--mc-amber:#e0a23a;--mc-red:#ef7a7a;background:#171f30;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-hd,#p3MissionControl.mc-theme-dark .mc-foot,#p3MissionControl.mc-theme-dark .mc-rail,#p3MissionControl.mc-theme-dark .mc-right{background:#131a2b;border-color:#2a3550;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-body{background:#0f1522}
#p3MissionControl.mc-theme-dark .mc-quiet,#p3MissionControl.mc-theme-dark .mc-hosted button,#p3MissionControl.mc-theme-dark .mc-chip{background:#171f30;border-color:#2a3550;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-quiet-danger,#p3MissionControl.mc-theme-dark .mc-hosted button.danger{color:#ef7a7a} #p3MissionControl.mc-theme-dark .mc-quiet-danger:hover{background:#3b1d1d;border-color:#5a2a2a}
#p3MissionControl.mc-theme-dark .mc-wanted{background:#1b2a45;border-left-color:#6a9ef0}
#p3MissionControl.mc-theme-dark .mc-w-lbl{color:#a9c6f5}
#p3MissionControl.mc-theme-dark .mc-wanted-toggle{border-color:#6a9ef0;color:#a9c6f5}
#p3MissionControl.mc-theme-dark .mc-wanted-toggle:hover{background:#243756}
#p3MissionControl.mc-theme-dark .mc-synth,#p3MissionControl.mc-theme-dark .mc-hosted textarea,#p3MissionControl.mc-theme-dark .mc-hosted input,#p3MissionControl.mc-theme-dark .mc-hosted select{background:#171f30;border-color:#2a3550;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-loading{background:#171f30} #p3MissionControl.mc-theme-dark .mc-error{background:#3b1d1d;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-x{color:#e8edf6}
#p3MissionControl.mc-theme-dark h1,#p3MissionControl.mc-theme-dark .mc-when,#p3MissionControl.mc-theme-dark .mc-meta-inline,#p3MissionControl.mc-theme-dark .mc-log,#p3MissionControl.mc-theme-dark .mc-hosted{color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-kind-pill{background:#1b2a45;color:#6a9ef0}

/* #310 proof finding: long synthesis strings must never widen the body past the modal */
.mc-dash-modal .mc-body{overflow-x:hidden;overflow-wrap:anywhere}
.mc-more-actions{flex-wrap:wrap}

/* #310 dark — the Lighthouse rail is part of the card: it goes dark with it (badges and buttons keep their own colours) */
#p3MissionControl.mc-theme-dark .mc-rail{background:#131a2b;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-rail *:not(button):not(input):not([class*="badge"]):not([class*="pill"]):not([class*="tag"]):not([class*="chip"]):not([class*="due"]){background-color:transparent !important;color:#e8edf6 !important;border-color:#2a3550 !important}
#p3MissionControl.mc-theme-dark .mc-rail a{color:#6a9ef0 !important}

/* ── #448 (David's order 2026-09-15) — ONE CARD: directive band · order rows · records grid · messages · More ─────── */
.mc-build-marker{font-size:10px;padding:2px 7px;margin-right:6px}
/* the DIRECTIVE band — her typed words, big and whole; the picked facts one line beneath */
.mc-directive .mc-dir-line{display:grid;grid-template-columns:104px minmax(0,1fr);gap:0 10px;align-items:baseline;margin:2px 0}
.mc-directive .mc-dir-txt{font-size:16px;font-weight:600;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink,#16213a)}
.mc-directive .mc-dir-empty{font-size:14px;color:var(--muted,#6d788d);margin:2px 0 4px}
.mc-directive .mc-dir-facts{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:6px;font-size:13.5px;color:var(--ink,#16213a)}
.mc-directive .mc-dir-fact .mc-w-lbl{display:inline;margin:0 2px 0 0}
/* WHAT SHE ORDERED — KIND · WHAT · WHO, the linked record to the right */
.mc-orders{border:1px solid var(--line,#dfe6f0);border-radius:8px;padding:10px 14px;background:var(--card,#fff)}
.mc-order-list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:0}
.mc-order{display:grid;grid-template-columns:108px minmax(0,1fr) minmax(190px,34%);gap:6px 12px;align-items:center;padding:7px 0;border-top:1px solid var(--line,#eef2f7)}
.mc-order:first-child{border-top:0}
.mc-order-kind{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--blue,#3478df);padding:2px 8px;border-radius:999px;background:var(--blue-soft,#eaf3ff);justify-self:start;white-space:nowrap}
.mc-order-note .mc-order-kind{color:#b45309;background:#fff4e0}
.mc-order-body{min-width:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.mc-order-what{color:var(--ink,#16213a);font-weight:600;text-decoration:none;border-bottom:1px dotted rgba(52,120,223,.5)}
.mc-order-what:hover,.mc-order-what:focus-visible{color:var(--blue,#3478df);outline:none}
.mc-order-who{color:var(--muted,#6d788d)}
.mc-order-when{color:#b45309;font-weight:600}
.mc-order-status{display:inline-block;margin-left:8px;font-style:normal;font-size:11.5px;color:var(--muted,#6d788d);border:1px solid var(--line,#dfe6f0);border-radius:999px;padding:0 7px;line-height:1.6;white-space:nowrap}
.mc-order-headsup{display:block;margin:5px 0 0;padding:3px 10px;font-size:12px;border-color:#e6c887;color:#7a5a12;background:#fdf3e0}
.mc-order-headsup:hover{border-color:#d9a441;color:#5c4106}
.mc-order-rec{display:flex;align-items:center;gap:8px;min-width:0;justify-self:stretch}
.mc-order-rec.is-empty{justify-content:flex-end}
.mc-order-rec .pvt3-pdf{flex:0 0 auto}
.mc-order-rec-name{font-size:12.5px;line-height:1.3;color:var(--ink,#16213a);min-width:0;overflow-wrap:anywhere;font-weight:600}
.mc-order-link{margin:0;padding:4px 12px;font-size:12px;white-space:nowrap}
/* #491 — the APPROVED MOCKUP's own values (artifact J7bVTWz5WbEnHLtrAdUp9E): two-line rows, the Scheduled field, the reminder
   tag, the follow-up tick, the signed amber notes and the "+ note" line. Cursors stay the arrow (law 5.21). */
#p3MissionControl .mc-order .mc-order-kind{font-size:11px;font-weight:700;letter-spacing:.03em;background:#e4edfd;color:#1d4ed8;border-radius:5px;padding:3px 8px;align-self:start;margin-top:2px}
#p3MissionControl .mc-order{align-items:start}
#p3MissionControl .mc-order-what{font-size:13.5px;font-weight:600;color:#17202c;line-height:1.4;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c9d2dd;border-bottom:0}
.mc-order-sub{font-size:12.5px;color:#64748b;margin-top:2px}
.mc-order-sub .mc-order-dates{display:inline;margin:0;font-size:inherit;color:inherit}
.mc-order-sub .mc-order-who{color:inherit}
.mc-order-sub .mc-order-pill.mc-order-status{font-style:normal;line-height:inherit;margin-left:5px;padding:1px 8px;font-size:11.5px;color:#44525f;border-color:#d7dee7}
.mc-order-sub .mc-order-pill.mc-order-status.is-ok{background:#eaf4ec;border-color:#c5e2cd;color:#226b3b}
.mc-order-sub b{color:#2a3442;font-weight:600}
.mc-order-sub .mc-order-dt{color:#8b96a5}
.mc-order-pill{display:inline-block;font-size:11.5px;border:1px solid #d7dee7;border-radius:999px;padding:1px 8px;color:#44525f;margin-left:5px;vertical-align:1px;white-space:nowrap}
.mc-order-pill.is-ok{background:#eaf4ec;border-color:#c5e2cd;color:#226b3b}
#p3MissionControl .mc-order .mc-order-fax{font-size:12.5px;margin-top:2px}
.mc-order-addons{grid-column:1 / -1;margin-top:7px}
.mc-order-sched{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:#5b6775}
.mc-order-sched-lbl{font-weight:600;color:#5b6775;font-size:11.5px;letter-spacing:.01em}
.mc-order-date{font:inherit;font-size:12px;padding:2px 7px;border:1px solid #d7dee7;border-radius:5px;background:#fff;color:#1f2937;line-height:1.4;cursor:default}
.mc-order-date::-webkit-calendar-picker-indicator{cursor:default;opacity:.6;padding:1px;margin-left:3px}
.mc-order-date:hover{border-color:#b9c3cf}
.mc-order-date:focus-visible{outline:2px solid #2563eb;outline-offset:1px}
.mc-order-headsup-tag{font-size:11.5px;color:#92650a;background:#fdf6e6;border:1px solid #f0e0b8;border-radius:5px;padding:1px 8px}
.mc-order-headsup-tag.is-overdue{color:#a3281c;background:#fdeceb;border-color:#f3c4bf;font-weight:650}
.mc-order-headsup-tag.is-quiet{color:#5b6775;background:#f3f5f8;border-color:#dfe4ea}
.mc-order-tele{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:#5b6775;cursor:default}
.mc-order-tele input{margin:0;width:12px;height:12px;cursor:default}
.mc-order-notes{margin-top:5px}
.mc-order-note{font-size:12px;color:#a15c07;line-height:1.45;padding:0 0 1px;font-weight:700;overflow-wrap:anywhere}
.mc-order-note-who{color:#bda070;font-size:11px;font-weight:400}
.mc-order-noteline{display:flex;gap:6px;align-items:center;margin-top:4px;width:66%;min-width:240px}
.mc-order-note-input{flex:1 1 auto;min-width:0;font:inherit;font-size:12px;padding:2px 8px;line-height:1.4;border:1px solid #d7dee7;border-radius:5px;background:#fff;color:#a15c07;font-weight:700}
.mc-order-note-input::placeholder{color:#b89a5e;font-weight:400}
.mc-order-note-input:hover{border-color:#b9c3cf}
.mc-order-note-input:focus-visible{outline:2px solid #d9a93c;outline-offset:0}
.mc-order-note-save{font:inherit;font-size:11.5px;padding:2px 10px;border-radius:5px;cursor:default;border:1px solid #d7dee7;background:#fff;color:#8a6a2f;flex:0 0 auto}
.mc-order-note-save:hover{background:#faf6ec}
#p3MissionControl.mc-theme-dark .mc-order .mc-order-kind{background:#1b2a45;color:#a9c6f5}
#p3MissionControl.mc-theme-dark .mc-order-what{color:#e6eaf0;text-decoration-color:#46536a}
#p3MissionControl.mc-theme-dark .mc-order-sub{color:#9aa6b6}
#p3MissionControl.mc-theme-dark .mc-order-sub b{color:#d4dbe6}
#p3MissionControl.mc-theme-dark .mc-order-pill{border-color:#34496a;color:#c4cedb}
#p3MissionControl.mc-theme-dark .mc-order-pill.is-ok{background:#16301f;border-color:#2c5a3b;color:#8fd3a5}
#p3MissionControl.mc-theme-dark .mc-order-sched,#p3MissionControl.mc-theme-dark .mc-order-sched-lbl,#p3MissionControl.mc-theme-dark .mc-order-tele{color:#9aa6b6}
#p3MissionControl.mc-theme-dark .mc-order-date,#p3MissionControl.mc-theme-dark .mc-order-note-input,#p3MissionControl.mc-theme-dark .mc-order-note-save{background:#1c212c;border-color:#34405a;color:#e6eaf0;color-scheme:dark}
#p3MissionControl.mc-theme-dark .mc-order-note-input{color:#f0b04a}
#p3MissionControl.mc-theme-dark .mc-order-headsup-tag{background:#3a2c12;border-color:#6b5320;color:#f5c06b}
#p3MissionControl.mc-theme-dark .mc-order-headsup-tag.is-overdue{background:#3a1714;border-color:#7a2d25;color:#f3a196}
#p3MissionControl.mc-theme-dark .mc-order-headsup-tag.is-quiet{background:#232a36;border-color:#34405a;color:#9aa6b6}
#p3MissionControl.mc-theme-dark .mc-order-note{color:#f0b04a}
#p3MissionControl.mc-theme-dark .mc-order-note-who{color:#b89a5e}
/* #449 — dates, the fax line, the Get button */
.mc-order-dates{display:block;margin-top:2px;font-size:12px;color:var(--muted,#6d788d)}
.mc-order-dates b{font-weight:600;color:var(--ink,#16213a)}
.mc-order-status.is-dated{color:var(--ink,#16213a)}
.mc-order-fax{display:block;margin-top:3px;font-size:12px;font-weight:600;line-height:1.4}
.mc-order-fax.is-ok{color:#188045}
.mc-order-fax.is-wait{color:#5b6b82}
.mc-order-fax.is-bad{color:#c02626}
.mc-order-fax.is-warn{color:#b45309}
.mc-order-fax.is-never{color:#c02626;text-transform:uppercase;letter-spacing:.03em}
.mc-order-fax small{font-weight:500;color:var(--muted,#6d788d)}
/* #453 — the return-fax line on a faxed, unlinked request / referral row; the popup over the card; the lit inbox row */
.mc-order-return{display:block;margin-top:3px;font-size:12px;line-height:1.5;color:#3d4a5f}
.mc-order-return.is-found,.mc-order-return.is-found b{color:#7b3f00}
.mc-order-return.is-none{color:#5b6b82}.mc-order-return.is-bad{color:#c02626}.mc-order-return.is-wait{color:#7b8699}
.mc-return-btn{margin:0 0 0 2px;padding:2px 9px;font-size:11.5px;vertical-align:baseline}
.mc-rf-backdrop{position:fixed;inset:0;z-index:1300;background:rgba(24,33,47,.42);display:grid;place-items:center;padding:16px}
.mc-rf-modal{width:min(760px,96vw);max-height:min(88vh,860px);display:flex;flex-direction:column;background:#fff;color:#1e2a3a;border-radius:14px;box-shadow:0 20px 60px rgba(20,26,38,.35);overflow:hidden;font-size:13px}
.mc-rf-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid #e3e8ef}
.mc-rf-head h3{margin:0;font-size:17px}.mc-rf-head p{margin:3px 0 0;color:#7b8699;font-size:12px}
.mc-rf-body{flex:1;min-height:0;overflow-y:auto;padding:14px 20px}
.mc-rf-row{padding:10px 0 14px;border-bottom:1px solid #eef2f7}.mc-rf-row:last-of-type{border-bottom:0}
.mc-rf-row h4{margin:0 0 2px;font-size:13.5px}.mc-rf-faxed{font-size:12px;color:#5b6b82;margin-bottom:8px}
.mc-rf-suspect{border:1px solid #e3e8ef;border-radius:10px;padding:10px 12px;margin:8px 0;background:#fafbfc}
.mc-rf-strong{border-color:#b9d4fa;background:#f4f8ff}.mc-rf-possible{opacity:.92}
.mc-rf-top{font-size:12.5px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mc-rf-grade{margin-left:auto;border-radius:999px;padding:1px 8px;font-size:9.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:#e6f4ec;color:#0f7a4f}
.mc-rf-possible .mc-rf-grade{background:#eef2f7;color:#5c6a80}.mc-rf-drive .mc-rf-grade{background:#fff3df;color:#8a5200}
.mc-rf-line{font-size:13px;font-weight:600;margin-top:4px}.mc-rf-why{font-size:11.5px;color:#5c6a80;margin-top:3px}
.mc-rf-acts{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.mc-rf-modal button.mc-quiet{margin:0;padding:6px 12px;font:inherit;font-size:12.5px;border:1px solid #d6dde7;border-radius:8px;background:#fff;color:#3d4a5f;cursor:default}
.mc-rf-modal button.mc-primary{margin:0;padding:6px 14px;font:inherit;font-size:12.5px;font-weight:700;border:1px solid #2c62c9;border-radius:8px;background:#3478df;color:#fff;cursor:default}
.mc-rf-none{font-size:13px;line-height:1.5;padding:10px 12px;border:1px dashed #d6dde7;border-radius:10px;background:#fafbfc}
.mc-rf-none.is-bad{border-color:#f0b4b4;color:#c02626}
.mc-rf-foot-note{margin:12px 0 0;font-size:11.5px;color:#7b8699}
.mc-rf-sub{margin:10px 0 2px;font-size:11.5px;font-weight:700;color:#7b8699;text-transform:uppercase;letter-spacing:.04em}
.mc-rf-foot{padding:12px 20px;border-top:1px solid #e3e8ef;display:flex;justify-content:flex-end}
.mc-rf-dark .mc-rf-modal{background:#101827;color:#e8edf6}.mc-rf-dark .mc-rf-head,.mc-rf-dark .mc-rf-foot,.mc-rf-dark .mc-rf-row{border-color:#2a3550}
.mc-rf-dark .mc-rf-suspect,.mc-rf-dark .mc-rf-none{background:#171f30;border-color:#2a3550}.mc-rf-dark .mc-rf-strong{background:#1b2a45;border-color:#34496a}
.mc-rf-dark .mc-rf-why,.mc-rf-dark .mc-rf-faxed,.mc-rf-dark .mc-rf-head p,.mc-rf-dark .mc-rf-foot-note{color:#a9b4c6}
.mc-rf-dark .mc-rf-modal button.mc-quiet{background:#171f30;border-color:#2a3550;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-order-return{color:#c8d3e2}#p3MissionControl.mc-theme-dark .mc-order-return.is-found,#p3MissionControl.mc-theme-dark .mc-order-return.is-found b{color:#f3d6a6}
.fax-rich-row.fax-row-highlight{outline:3px solid #f59e0b;outline-offset:2px;box-shadow:0 0 0 6px rgba(245,158,11,.25)}
/* #452 — several documents on one order row (each with the global icon), and the session Undo beside a fresh link */
.mc-order-rec.is-many{flex-wrap:wrap;row-gap:4px}
.mc-order-rec-item{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.mc-order-undo{margin:0 0 0 4px;padding:3px 9px;font-size:11.5px;white-space:nowrap;color:#7b3f00;border-color:#f0d2a8;background:#fff7ea}
.mc-order-undo:hover{border-color:#d99a4e;color:#7b3f00}
#p3MissionControl.mc-theme-dark .mc-order-dates b{color:#e8edf6} #p3MissionControl.mc-theme-dark .mc-order-status.is-dated{color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-order-fax.is-ok{color:#4cc59c} #p3MissionControl.mc-theme-dark .mc-order-fax.is-wait{color:#c8d3e2} #p3MissionControl.mc-theme-dark .mc-order-fax.is-bad,#p3MissionControl.mc-theme-dark .mc-order-fax.is-never{color:#ef7a7a} #p3MissionControl.mc-theme-dark .mc-order-fax.is-warn{color:#e0a23a}
#p3MissionControl.mc-theme-dark .mc-order-undo{background:#3a2a12;border-color:#6b4a1e;color:#f3d6a6}
/* RECENT RECORDS — two across, the whole title */
.mc-records{border:1px solid var(--line,#dfe6f0);border-radius:8px;padding:10px 14px;background:var(--card,#fff)}
.mc-docs.mc-docs-two{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:6px}
.mc-rec{display:flex;align-items:flex-start;gap:10px;min-width:0;border:1px solid var(--line,#dfe6f0);border-radius:10px;background:var(--card,#fff);padding:8px 10px;color:var(--ink,#16213a);cursor:default}
.mc-rec:hover,.mc-rec:focus-visible{border-color:#b9d4fa;background:var(--blue-soft,#eaf3ff);outline:none}
.mc-rec .pvt3-pdf{flex:0 0 auto}
.mc-rec-text{min-width:0;flex:1 1 auto}
.mc-rec-name{font-size:13.5px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;white-space:normal}
.mc-rec-meta{font-size:11.5px;color:var(--muted,#6d788d);margin-top:2px}
/* MORE — the one fold: its header names what it holds; the body opens in place */
.mc-more-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:4px 0 0;border-top:1px solid var(--line,#dfe6f0)}
.mc-more-toggle{appearance:none;border:1px solid var(--line,#dfe6f0);background:var(--card,#fff);color:var(--mc-slate,#5b6b82);font:inherit;font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:8px;cursor:default}
.mc-more-toggle:hover,.mc-more-toggle:focus-visible{border-color:#9fb6d8;color:var(--ink,#16213a);outline:none}
.mc-more-holds{font-size:12px;color:var(--muted,#6d788d);min-width:0;overflow-wrap:anywhere}
.mc-more-body{display:grid;gap:12px}
.mc-more-chips .mc-problems{margin-top:4px}
#p3MissionControl.mc-theme-dark .mc-orders,#p3MissionControl.mc-theme-dark .mc-records,#p3MissionControl.mc-theme-dark .mc-rec{background:#16233a;border-color:#34496a;color:#e8eef7}
#p3MissionControl.mc-theme-dark .mc-rec:hover{background:#1f3050;border-color:#6a9ef0}
#p3MissionControl.mc-theme-dark .mc-order{border-top-color:#2a3550}
#p3MissionControl.mc-theme-dark .mc-order-kind{background:#1b2a45;color:#a9c6f5}
#p3MissionControl.mc-theme-dark .mc-order-note .mc-order-kind{background:#3a2c12;color:#f5c06b}
#p3MissionControl.mc-theme-dark .mc-order-what,#p3MissionControl.mc-theme-dark .mc-order-rec-name,#p3MissionControl.mc-theme-dark .mc-rec-name,#p3MissionControl.mc-theme-dark .mc-directive .mc-dir-txt,#p3MissionControl.mc-theme-dark .mc-dir-facts{color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-order-who,#p3MissionControl.mc-theme-dark .mc-order-status,#p3MissionControl.mc-theme-dark .mc-rec-meta,#p3MissionControl.mc-theme-dark .mc-more-holds,#p3MissionControl.mc-theme-dark .mc-dir-empty{color:#c8d3e2}
#p3MissionControl.mc-theme-dark .mc-order-status{border-color:#34496a}
#p3MissionControl.mc-theme-dark .mc-order-headsup{background:#3a2c12;border-color:#8a6a2a;color:#f3d9a0}
#p3MissionControl.mc-theme-dark .mc-more-head{border-top-color:#2a3550}
#p3MissionControl.mc-theme-dark .mc-more-toggle{background:#171f30;border-color:#2a3550;color:#e8edf6}
#p3MissionControl.mc-theme-dark .mc-order-link{background:#171f30;border-color:#2a3550;color:#e8edf6}
@media (max-width:1100px){.mc-order{grid-template-columns:96px minmax(0,1fr)}.mc-order-rec{grid-column:2;justify-self:start}.mc-order-rec.is-empty{justify-content:flex-start}}
/* the Messages strip's trail rows (#448 item 7) */
.pm-trail{display:grid;gap:4px;margin-top:6px;padding-top:6px;border-top:1px dashed var(--line,#dfe6f0)}
.pm-trail-row{font-size:12.5px;line-height:1.4;color:var(--ink,#16213a)}
.pm-trail-row b{font-weight:700;margin-right:4px}
.pm-trail-row small{color:var(--muted,#6d788d)}
.pm-trail-row p{margin:2px 0 0 0;padding:4px 8px;border-radius:6px;background:#fff7e6;color:#5c4106}
.pm-trail-inbound b{color:#b45309}
#p3MissionControl.mc-theme-dark .pm-trail{border-top-color:#2a3550} #p3MissionControl.mc-theme-dark .pm-trail-row{color:#e8edf6} #p3MissionControl.mc-theme-dark .pm-trail-row small{color:#c8d3e2} #p3MissionControl.mc-theme-dark .pm-trail-row p{background:#3a2c12;color:#f3d9a0}

/* #320 — scheduled-confirmation chip on the card face, with its own Cancel */
.mc-chip.mc-chip-ss{background:#eef6ff;border-color:#bcd6f8;color:#1656B3}
.mc-chip.mc-chip-ss i{background:#1A73E8}
.mc-chip .mc-chip-x{margin-left:8px;border:1px solid #bcd6f8;background:#fff;color:#1656B3;border-radius:7px;padding:2px 8px;font-size:11px;font-weight:700;cursor:default}
#p3MissionControl.mc-theme-dark .mc-chip.mc-chip-ss{background:#1e2a44;border-color:#3b5a8a;color:#9db8e6}
#p3MissionControl.mc-theme-dark .mc-chip .mc-chip-x{background:#243352;border-color:#3b5a8a;color:#c7d8f5}

/* #505 (David, 2026-10-02) — THE FOOTER BY CONSEQUENCE. Solid blue = reaches a real person (a text, an e-mail, a message);
   green outline = Print Prep Sheet; dark navy = Open PVT; dark outline = Edit Details; quiet grey = More, Refresh, Bring In
   Results. Arrow cursor on all of them (law 5.21). */
#p3MissionControl .mc-foot button{cursor:default}
#p3MissionControl .mc-foot .mc-c-reach{background:#2563eb;border-color:#2563eb;color:#fff}
#p3MissionControl .mc-foot .mc-c-reach:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
#p3MissionControl .mc-foot .mc-c-print{background:#fff;border-color:#16a34a;color:#15803d}
#p3MissionControl .mc-foot .mc-c-print:hover{background:#f0fdf4;color:#166534}
#p3MissionControl .mc-foot .mc-c-edit{background:#fff;border-color:#1e2a4a;color:#1e2a4a}
#p3MissionControl .mc-foot .mc-c-edit:hover{background:#f1f4fa}
#p3MissionControl .mc-foot .mc-c-grey{background:#f3f5f8;border-color:#e2e6ec;color:#6b7587;font-weight:600}
#p3MissionControl .mc-foot .mc-c-grey:hover{background:#eceff4;color:#3f4a5c}
#p3MissionControl .mc-foot .mc-c-navy{background:#1e2a4a;border:1px solid #1e2a4a;color:#fff}
#p3MissionControl .mc-foot .mc-c-navy:hover:not(:disabled){background:#152039}
#p3MissionControl .mc-foot .mc-c-navy:disabled{opacity:.45}
#p3MissionControl.mc-theme-dark .mc-foot .mc-c-reach{background:#3b82f6;border-color:#3b82f6;color:#fff}
#p3MissionControl.mc-theme-dark .mc-foot .mc-c-reach:hover{background:#2563eb;border-color:#2563eb}
#p3MissionControl.mc-theme-dark .mc-foot .mc-c-print{background:transparent;border-color:#22c55e;color:#4ade80}
#p3MissionControl.mc-theme-dark .mc-foot .mc-c-edit{background:transparent;border-color:#9fb0d0;color:#dbe4f5}
#p3MissionControl.mc-theme-dark .mc-foot .mc-c-grey{background:#1b2234;border-color:#2a3550;color:#94a0b8}
#p3MissionControl.mc-theme-dark .mc-foot .mc-c-navy{background:#2c3d6b;border-color:#4a5f96;color:#fff}

/* #512 (David, 2026-10-03) — ONE LONG SCROLL. One column, one vertical scroll for the whole card: the package rail ("For this
   visit" + the add-a-checklist link) sits at the top of the column, the card body below it in its existing order. The header and
   the footer stay pinned where they were. Nothing scrolls sideways: the calendar block hosted inside the card kept its own scroll
   box from the calendar page (overflow-y:auto makes the other axis scroll too), and its 749 px of content scrolled sideways in a
   656 px space — it now lays out inside the column instead. No overflow:hidden / min-height:min-content on the column's children
   (law 5.70: either gives a grid item a zero minimum). */
.mc-dash-modal .mc-cockpit{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}
.mc-dash-modal .mc-rail{flex:0 0 auto;min-height:auto;overflow:visible;border-right:0;border-bottom:1px solid var(--mc-line,#e3e8f0)}
.mc-dash-modal .mc-rail .lh-items{overflow:visible;flex:0 0 auto}
.mc-dash-modal .mc-body{flex:0 0 auto;min-height:auto;overflow:visible;min-width:0}
.mc-dash-modal .mc-right{display:none}
.mc-dash-modal .mc-hosted .dc-cal-detail-body{overflow:visible;min-height:auto;flex:none}
.mc-dash-modal .mc-hosted .dc-cal-detail-body.mc-grid{grid-template-columns:minmax(0,1fr)}
.mc-dash-modal .mc-hosted .dc-cal-detail-body.mc-grid>*,.mc-dash-modal .mc-body>*{min-width:0;max-width:100%}
.mc-dash-modal .mc-hosted table{max-width:100%;table-layout:fixed}
.mc-dash-modal .mc-hosted td,.mc-dash-modal .mc-hosted th{overflow-wrap:anywhere}
@media print{.mc-dash-modal .mc-cockpit{overflow:visible;height:auto}}
/* #552 Part 3 (David, 2026-10-09) — the card carries only what makes this appointment go right:
   · the empty "For This Visit · Nothing outstanding · Add a Checklist…" rail and the empty "What happened" column are gone;
   · the card is as tall as the window allows (it was a fixed 780px, so the scroll area stayed ~435px on any screen) */
.mc-dash-modal .mc-rail,.mc-dash-modal .mc-right{display:none!important}
.mc-dash-modal.mc-modal,.mc-modal.mc-dash-modal{height:calc(100vh - 32px);max-height:calc(100vh - 32px)}
.mc-contact{position:relative;display:inline-block}
.mc-contact-menu{position:absolute;left:0;bottom:calc(100% + 6px);z-index:30;min-width:220px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.18);padding:6px;display:flex;flex-direction:column;gap:4px}
.mc-contact-menu[hidden]{display:none}
.mc-contact-menu .mc-menu-item{font:inherit;font-size:13px;font-weight:600;text-align:left;background:#fff;border:0;border-radius:7px;padding:9px 12px;color:#1e3a8a;cursor:default}
.mc-contact-menu .mc-menu-item:hover{background:#eff6ff}
#p3MissionControl.mc-theme-dark .mc-contact-menu{background:#0f1626;border-color:#3a4a6a}
#p3MissionControl.mc-theme-dark .mc-contact-menu .mc-menu-item{background:#0f1626;color:#bfdbfe}
/* #553 — "Handled / Won't Track" behind a small "⋯" on each order row */
.mc-order-more{position:relative;display:inline-block;margin-left:6px;vertical-align:middle;text-transform:none;letter-spacing:0}
.mc-order-kind .mc-order-tri{display:block;margin:4px 0 0;width:max-content}
.mc-order-more-btn{font:inherit;font-size:15px;line-height:1;padding:1px 7px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#475569;cursor:default}
.mc-order-more-btn:hover{background:#f1f5f9}
.mc-order-more-menu{position:absolute;left:0;top:calc(100% + 4px);z-index:30;min-width:150px;background:#fff;border:1px solid #cbd5e1;border-radius:9px;box-shadow:0 10px 26px rgba(15,23,42,.18);padding:5px;display:flex;flex-direction:column;gap:3px}
.mc-order-more-menu .mc-menu-item{font:inherit;font-size:13px;font-weight:600;text-align:left;background:#fff;border:0;border-radius:6px;padding:7px 10px;color:#1e3a8a;cursor:default}
.mc-order-more-menu .mc-menu-item:hover{background:#eff6ff}
.mc-order-tri{display:inline-block;margin-left:6px;font-size:11px;font-weight:700;border-radius:999px;padding:1px 8px;vertical-align:middle}
.mc-order-tri-ok{background:#dcfce7;color:#166534}.mc-order-tri-off{background:#e5e7eb;color:#4b5563}
#p3MissionControl.mc-theme-dark .mc-order-more-btn,#p3MissionControl.mc-theme-dark .mc-order-more-menu,#p3MissionControl.mc-theme-dark .mc-order-more-menu .mc-menu-item{background:#0f1626;color:#bfdbfe;border-color:#3a4a6a}
/* #552 Part 1 (5) — results waiting for Dr. Becker, at the top of the card: the same three buttons as her e-mail */
[data-mc-results-slot]:empty{display:none}
.mc-rv{margin:6px 24px 8px;padding:12px 14px;border:2px solid #fdba74;border-radius:10px;background:#fff7ed;color:#1f2937}
.mc-rv.is-done{border-color:#86efac;background:#f0fdf4;color:#166534;font-weight:600}
.mc-rv-hd{font-size:14px;margin:0 0 8px}
.mc-rv-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mc-rv-btn{font:inherit;font-size:14px;font-weight:700;color:#fff;border:0;border-radius:8px;padding:9px 14px;cursor:default}
.mc-rv-clear{background:#15803d}.mc-rv-tele{background:#2563eb}.mc-rv-office{background:#7c3aed}
.mc-rv-btn:disabled{opacity:.6}
.mc-rv-link{font:inherit;font-size:13px;background:none;border:0;padding:0;color:#1d4ed8;text-decoration:underline;cursor:default}
.mc-rv-text{width:100%;box-sizing:border-box;font:inherit;font-size:14px;line-height:1.5;padding:8px;border:1px solid #cbd5e1;border-radius:8px;margin:6px 0 8px;resize:vertical}
.mc-rv-sub{font-size:13px;color:#4b5563}.mc-rv-note{font-size:12px;color:#6b7280}
.mc-rv-err{color:#b91c1c;font-weight:700;font-size:13px;margin:0 0 6px}
#p3MissionControl.mc-theme-dark .mc-rv{background:#2a1a0c;border-color:#9a3412;color:#f1f5f9}
#p3MissionControl.mc-theme-dark .mc-rv.is-done{background:#0f2a1a;border-color:#22c55e;color:#86efac}
