/* La Gâterie SXM order center styling. Card #110: moved verbatim out of index.html. */
:root {
  --pink:#c41e6a; --pink-bright:#f73e87; --purple:#512448; /* card #295: --pink carries white text and small type, so it is the readable one */ --gold:#d79862; --rose:#e96391;
  /* ── Status palette · SINGLE SOURCE OF TRUTH ──────────────────────
     Every status colour in the app resolves here: the calendar dots,
     the legend, the filter control, the day-view chips, the undated
     chips and the customer-card status button.
     Literal hex, NOT var() aliases, because getComputedStyle returns custom
     properties unresolved, so an alias would hand JS the useless
     string "var(--pink)" instead of a colour it can tint.
     *-ink = fill used behind WHITE text, darkened only where the
     swatch is too light to carry it (gold and grey both fail). */
  --st-new:#f73e87; --st-quoted:#d79862; --st-awaiting:#d79862;
  --st-paid:#3b8a2a; --st-fulfilled:#512448; --st-cxl:#bfbfbf;
  --st-refunded:#b3362b; --st-sourcing:#534ab7;
  --st-quoted-ink:#a86a33; --st-awaiting-ink:#a86a33; --st-cxl-ink:#5f5e5a;
  /* Badge roles: dark text on a pale tint. Distinct from the swatch and
     from *-ink, because a badge inverts the contrast problem and needs a
     colour readable AS TEXT, not one readable BEHIND white text. */
  --st-new-tint:#fdeaf2;       --st-new-badge:#c41e6a;
  --st-quoted-tint:#faf0e4;    --st-quoted-badge:#8a5424;
  --st-awaiting-tint:#faf0e4;  --st-awaiting-badge:#8a5424;
  --st-paid-tint:#e0f2da;      --st-paid-badge:#2d6b20;
  --st-fulfilled-tint:#f0e8ff; --st-fulfilled-badge:#512448;
  --st-cxl-tint:#f1efe8;       --st-cxl-badge:#5f5e5a;
  --st-refunded-tint:#fdeaea;  --st-refunded-badge:#b3362b;
  --st-sourcing-tint:#eee5ff;  --st-sourcing-badge:#534ab7;
  --pagepad:48px; --pagepad:clamp(28px,5vw,84px);
  --pink-pale:#fdf0f6; --pink-light:#f4c0d1; --surface:#fdf5f9;
  --border:#f0d8e8; --text:#512448; --text-muted:#8a6070;
  --green:#3b8a2a; --amber:#b86b00; --blue:#3a4fb7; --red:#a32d2d;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light}
/* The stats row and other above-the-fold content go from empty to full height once Supabase data loads, well after initial paint. Browsers' default scroll anchoring then holds whatever was in view (the calendar) in place, which reads as the page auto-scrolling past the logo/stats on load (Odile, 2026-08-23). */
body{overflow-anchor:none}
body{font-family:'Poppins',sans-serif;background:#f9f0f5;color:var(--text);min-height:100vh}

/* ── Topbar ── */
.topbar{position:sticky;top:0;z-index:150;background:#fff;border-bottom:1px solid var(--border);border-radius:16px;padding:calc(10px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-left),env(safe-area-inset-right)) 10px max(20px,env(safe-area-inset-left),env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px}
.brand-name{font-size:15px;font-weight:700;color:var(--purple);letter-spacing:-.01em}
.brand-sub{font-size:16px;font-weight:700;color:var(--purple);letter-spacing:-.01em}
.topbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:relative}
.logo-area{height:48px;display:flex;align-items:center}
.logo-area img{height:48px;width:auto;object-fit:contain;display:block}
.tbtn{background:var(--surface);border:1px solid var(--border);color:var(--purple);border-radius:999px;padding:7px 14px;font-size:12px;font-weight:500;cursor:pointer;font-family:Poppins,sans-serif;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;transition:background .15s}
.tbtn:hover{background:var(--pink-pale)}
#refresh-btn{padding:8px 12px}
#refresh-btn i{font-size:17px}
.tbtn-pink{background:var(--pink);border-color:var(--pink);color:#fff}
.tbtn-pink:hover{background:var(--pink)}
.tbtn-gold{background:var(--gold);border-color:var(--gold);color:#fff}
.tbtn-gold:hover{background:var(--gold)}
.tbtn-green{background:#2d7a1f;border-color:#2d7a1f;color:#fff}
.tbtn-green:hover{background:#2d7a1f}
.refresh-menu{display:none;position:absolute;right:0;top:110%;background:#fff;border:1px solid var(--border);border-radius:10px;padding:6px;min-width:170px;z-index:200;box-shadow:0 4px 16px rgba(0,0,0,.1)}
.refresh-menu button{width:100%;text-align:left;background:none;border:none;padding:8px 12px;font-size:12px;cursor:pointer;font-family:Poppins,sans-serif;border-radius:6px;color:var(--text-muted);display:flex;align-items:center;gap:8px;white-space:nowrap}
.refresh-menu button:hover{background:var(--pink-pale);color:var(--purple)}
.refresh-menu summary{list-style:none;cursor:pointer;width:100%;padding:8px 12px;font-size:12px;font-family:Poppins,sans-serif;border-radius:6px;color:var(--text-muted);display:flex;align-items:center;gap:8px;white-space:nowrap}
.refresh-menu summary::-webkit-details-marker{display:none}
.refresh-menu summary:hover{background:var(--pink-pale);color:var(--purple)}
.refresh-menu summary .chev{margin-left:auto;font-size:10px;transition:transform .15s}
.refresh-menu details[open] summary .chev{transform:rotate(90deg)}
.refresh-menu details>div{padding-left:16px}
/* Cards #211 + #190: the Settings menu groups fold, items say what they did, and the Settings page. */
.gear-lbl{font-size:12.5px;font-weight:600;margin-left:6px}
@media (max-width:380px){.gear-lbl{display:none}}
.refresh-menu{min-width:250px;max-height:calc(100vh - 90px);overflow-y:auto;overscroll-behavior:contain}
.refresh-menu .gm-group>summary{padding:8px 10px 3px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);gap:6px}
.refresh-menu .gm-group>summary::before{content:"\25B8";color:var(--pink);font-size:10px;width:10px;transition:transform .15s}
.refresh-menu .gm-group[open]>summary::before{transform:rotate(90deg)}
.refresh-menu .gm-group>summary:hover{background:none;color:var(--purple)}
.refresh-menu .gm-group>button,.refresh-menu .gm-group>details>summary{padding-left:24px}
.refresh-menu .gm-group>details>div{padding-left:30px}
.gm-note{display:none;margin:0 8px 6px 28px;padding:6px 10px;background:var(--pink-pale);border-radius:8px;font-size:11.5px;color:var(--purple);white-space:normal;line-height:1.45}
.gm-note.on{display:block}
.refresh-menu .gm-all{color:var(--pink);font-weight:600}
.settings-page{display:none;position:fixed;inset:0;z-index:1000;background:var(--surface);overflow-y:auto;font-family:Poppins,sans-serif;overscroll-behavior:contain}
.sp-col{max-width:760px;margin:0 auto;padding:28px 24px 48px;display:flex;flex-direction:column;gap:20px;box-sizing:border-box}
.sp-back,.sp-backmini{align-self:flex-start;font-family:Poppins,sans-serif;font-size:12.5px;padding:6px 12px;border-radius:8px;border:1px solid var(--border);background:#fff;color:var(--purple);cursor:pointer;white-space:nowrap}
.sp-backmini{padding:5px 10px;font-size:12px}
.sp-title{font-size:26px;font-weight:700;color:var(--purple)}
.sp-sub{font-size:13.5px;color:var(--text-muted);margin-top:2px}
.sp-groups{display:flex;flex-direction:column;gap:22px}
/* Card #231 follow-up: search at the top of the Settings page, and in the gear menu */
.sp-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sp-search{flex:0 1 240px;min-width:0}
.sp-search input{width:100%;box-sizing:border-box;font-family:Poppins,sans-serif;font-size:16px;padding:5px 11px;border-radius:9px;border:1px solid var(--border);background:#fff;color:var(--purple)}
@media (hover:hover) and (pointer:fine){.sp-search input{font-size:13.5px;padding:6px 11px}}
@media (max-width:420px){.sp-search{flex-basis:175px}}
.sp-search input:focus{outline:none;border-color:var(--pink)}
.sp-hits[hidden],.sp-none[hidden]{display:none}
.sp-hit-s{font-size:12.5px;color:var(--text-muted)}
.sp-none{font-size:14px;color:var(--text-muted);padding:4px 4px 0}
.refresh-menu .gm-search{padding:8px 10px 4px}
.refresh-menu .gm-search input{width:100%;box-sizing:border-box;font-family:Poppins,sans-serif;font-size:16px;padding:7px 11px;border-radius:9px;border:1px solid var(--border);color:var(--purple)}
.sp-grp-t{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);padding-left:4px;margin-bottom:8px}
.sp-card{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.sp-item+.sp-item{border-top:1px solid #f6e6ef}
.sp-row{width:100%;display:flex;align-items:center;gap:14px;padding:15px 18px;border:none;background:#fff;text-align:left;cursor:pointer;color:var(--purple);font-family:Poppins,sans-serif}
.sp-row:hover{background:var(--pink-pale)}
.sp-l{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.sp-n{font-size:15px;font-weight:600}
.sp-d{font-size:12.5px;color:var(--text-muted)}
.sp-ch{color:var(--pink);font-size:18px;transition:transform .15s}
.sp-subs{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 14px}
.sp-subs[hidden]{display:none}
.sp-subs button{font-family:Poppins,sans-serif;font-size:13px;padding:7px 13px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--purple);cursor:pointer}
.sp-subs button:hover{border-color:var(--pink)}
.sp-item .gm-note{margin:0 18px 12px}
/* Cards #211 + #190: Business Setup, a full page with folding cards. */
#settings-modal.bsetup{position:fixed;inset:0;z-index:998;background:var(--surface);font-family:Poppins,sans-serif;color:var(--purple)}
#settings-modal.bsetup[style*="block"]{display:flex!important;flex-direction:column}
.bs-top{display:flex;align-items:center;gap:16px;padding:14px 24px;background:#fff;border-bottom:1px solid var(--border);flex-shrink:0}
.ov-x{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:50%;border:1px solid var(--border);background:#fff;color:var(--purple);font-size:14px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2} /* 5 Nov review: the X on screens drawn by script */
.bs-x,.sp-x{margin-left:auto;flex-shrink:0;width:34px;height:34px;border-radius:50%;border:1px solid var(--border);background:#fff;color:var(--purple);font-size:15px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center} /* 5 Nov review: X back to the order center */
.sp-x{position:absolute;top:14px;right:16px}
.qb-mv{display:inline-flex;flex-direction:column;vertical-align:middle;margin-right:2px}
.qb-arr{background:none;border:none;padding:0 2px;line-height:1;font-size:12px;color:var(--text-muted);cursor:pointer}@media (pointer:coarse){.qb-arr{font-size:17px;padding:2px 5px}} /* dev QA: easier to tap on a phone */.qb-arr:disabled{opacity:.25;cursor:default}.qb-arr:not(:disabled):hover{color:var(--pink)}
.bs-title{font-size:20px;font-weight:700;line-height:1.2}
.bs-tsub{font-size:12.5px;color:var(--text-muted)}
.bs-body{flex:1;min-height:0;display:flex}
.bs-nav{width:270px;flex-shrink:0;border-right:1px solid var(--border);padding:16px 12px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.bs-nav button{display:flex;flex-direction:column;gap:2px;text-align:left;padding:11px 12px;border-radius:10px;border:1px solid transparent;background:none;cursor:pointer;color:var(--purple);font-family:inherit}
.bs-nav button:hover{background:#fff}
.bs-nav button.on{background:#fff;border-color:var(--border)}
.bs-nt{font-size:14px;font-weight:600}
.bs-nav .set-sec-sum{font-size:11.5px;color:var(--text-muted);margin:0;text-align:left;font-weight:500}
.bs-main{flex:1;min-width:0;overflow-y:auto;padding:24px 36px 48px;background:#fff}
.bs-main>.set-sec{display:none;border:none;margin:0;background:none;max-width:940px}
.bs-main>.set-sec.on{display:block}
/* Card #231: Settings search */
.bs-search{margin:0 0 12px}
.bs-search input{width:100%;box-sizing:border-box;font-size:16px;padding:9px 12px;border-radius:10px}
.bs-search-none{font-size:14px;color:var(--text-muted);padding:18px 4px}
.bs-search-bar{font-size:13.5px;color:var(--text-muted);margin:0 0 14px;display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.bs-search-bar[hidden]{display:none} /* card #231: display:flex above would otherwise beat hidden */
#settings-modal.bs-searching .bs-main>.set-sec{display:none}
#settings-modal.bs-searching .bs-main>.set-sec.bs-hit{display:block;margin-bottom:22px}
#settings-modal.bs-searching .bs-card.bs-miss,#settings-modal.bs-searching details.rc-grp.bs-miss{display:none}
#settings-modal.bs-searching .bs-card.bs-found{border-color:var(--pink)}
#settings-modal.bs-searching .bs-card.bs-found .bs-card-b{display:flex}
#settings-modal.bs-searching .bs-viewonly{display:none}
.bs-sec-h{margin-bottom:18px}
.bs-sec-h h2{font-size:24px;font-weight:700;margin:0;color:var(--purple)}
.bs-sec-h p{font-size:13.5px;color:var(--text-muted);margin:4px 0 0}
.bs-card{border:1px solid var(--border);border-radius:14px;background:#fff;margin-bottom:16px}
.bs-card-h{display:flex;align-items:center}
.bs-card-t{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:16px 20px;border:none;background:none;text-align:left;cursor:pointer;color:var(--purple);font-family:inherit}
.bs-card-t::before{content:"\25B8";color:var(--pink);font-size:13px;width:12px;flex-shrink:0;transition:transform .15s}
.bs-card.open .bs-card-t::before{transform:rotate(90deg)}
.bs-h2{font-size:16px;font-weight:700;white-space:nowrap}
.bs-card-t .set-sec-sum{margin-left:auto;font-size:12.5px;color:var(--text-muted);text-align:right;font-weight:500}
.bs-pin{margin-right:14px;flex-shrink:0;white-space:nowrap;font-family:inherit;font-size:11.5px;font-weight:600;padding:4px 11px;border-radius:999px;cursor:pointer;border:1px solid var(--border);background:#fff;color:var(--text-muted)}
.bs-pin[aria-pressed="true"]{border-color:var(--pink);background:#fdeaf2;color:#c41e6a}
.bs-card-b{display:none;border-top:1px solid var(--border);padding:18px 20px 20px;font-size:13.5px;flex-direction:column;gap:14px}
.bs-card.open .bs-card-b{display:flex}
.bs-card-b .field-label{font-size:12.5px;font-weight:600;color:var(--purple);margin-bottom:5px;text-transform:none;letter-spacing:0}
.bs-card-b table.set-ld{font-size:12.5px}
.bs-card-b table.set-ld th{font-size:11.5px;text-transform:none;letter-spacing:0}
.bs-card-b .field-input{font-size:13.5px}
.bs-help{font-size:13px;color:var(--text-muted);line-height:1.55}
.bs-muted{font-size:12.5px;color:var(--text-muted);font-weight:400}
.bs-note{font-size:13px;padding:8px 12px;background:var(--surface);border-radius:8px}
.bs-h3{font-size:14px;font-weight:700;color:var(--purple)}
.bs-viewonly{padding:12px 16px;background:var(--pink-pale);border-radius:10px;font-size:13.5px;margin-bottom:16px;max-width:940px}
.bs-viewonly[hidden]{display:none}
.bs-areas{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.bs-areas .ar-h{font-weight:700;font-size:13px;margin-bottom:6px}
.bs-areas .ar-row{display:flex;gap:6px;align-items:center;margin-bottom:5px;flex-wrap:wrap}
.bs-areas .ar-row input.ar-fr{flex-basis:100%;font-size:13px} /* card #245 */
.bs-areas .ar-row input.ar-n{flex:1;min-width:0}
.bs-areas .ar-row input.ar-f{width:70px}
.bs-areas .ar-x{border:none;background:none;color:var(--text-muted);cursor:pointer;font-size:15px;padding:2px 6px}
.bs-save{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--border);margin-top:6px;max-width:940px}
.bs-save[hidden]{display:none}
.bs-link{align-self:flex-start;border:none;background:none;padding:0;font-family:inherit;font-size:12.5px;color:#c41e6a;text-decoration:underline;cursor:pointer}
.bs-more{padding:12px 14px;background:var(--surface);border-radius:10px;color:var(--purple)}
.bs-more[hidden]{display:none}
.bs-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;align-items:start}
.bs-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 24px}
.bs-grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}
.bs-narrow{max-width:520px}
.bs-inl{display:flex;gap:8px;align-items:center;font-size:13px}
.bs-num{width:64px!important}
.bs-chk{display:flex;gap:8px;align-items:center;font-size:13.5px;cursor:pointer;flex-wrap:wrap}
.bs-daycaps{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.bs-week{display:grid;grid-template-columns:120px repeat(7,minmax(0,1fr));gap:8px;align-items:center}
.bs-wk-d{font-size:12.5px;font-weight:700;text-align:center}
.bs-wk-b{height:38px;border-radius:8px;font-size:12.5px;font-weight:600;cursor:pointer;border:1px solid var(--border);background:#fff;color:var(--text-muted);font-family:inherit;padding:0 2px}
.bs-wk-b.on{border-color:var(--pink);background:#fdeaf2;color:#c41e6a}
.bs-wk-b:disabled{background:#f6eef2;color:#b8a0ad;cursor:default}
.bs-wk-b .s{display:none}
.bs-reasons:empty{display:none}
.bs-pills{display:flex;gap:6px;flex-wrap:wrap}
.bs-pills .cw-day,.bs-pill{font-family:inherit;font-size:13px!important;padding:6px 14px!important;border-radius:999px;cursor:pointer}
.bs-pill{border:1px solid var(--border);background:#fff;color:var(--purple)}
.bs-pill.on{border-color:var(--pink);background:#fdeaf2;color:#c41e6a;font-weight:700}
.bs-chips span{font-size:12.5px;padding:5px 12px;border-radius:999px;background:var(--pink-pale)}
.bs-form{border:1px solid var(--pink);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;background:#fffafc}
.bs-form[hidden]{display:none}
.bs-btns{display:flex;gap:10px;flex-wrap:wrap}
.bs-add{align-self:flex-start;font-family:inherit;font-size:13px;font-weight:600;padding:8px 16px;border-radius:10px;border:1px dashed var(--pink);background:#fff;color:#c41e6a;cursor:pointer}
.bs-add[hidden]{display:none}
.bs-row{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid var(--border);border-radius:10px;font-size:13.5px;margin-bottom:6px}
.bs-row .bs-rn{flex:1;color:var(--text-muted);min-width:0}
.bs-row .bs-ra{border:none;background:none;font-family:inherit;font-size:13px;cursor:pointer;color:#c41e6a;white-space:nowrap}
.bs-tag{font-size:11.5px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap;background:#fdeaf2;color:#c41e6a}
.bs-tag.private{background:#f1efe8;color:#5f5e5a}
.bs-tipw{position:relative}
.bs-q{width:18px;height:18px;border-radius:50%;border:1px solid #c9a9bb;background:#fff;color:var(--purple);font-size:11px;font-weight:700;cursor:pointer;padding:0;line-height:1;vertical-align:1px;font-family:inherit}
.bs-tip{position:absolute;top:24px;left:0;z-index:5;width:250px;padding:10px 12px;background:var(--purple);color:#fff;border-radius:10px;font-size:12px;line-height:1.5}
.bs-tip[hidden]{display:none}
#settings-modal .set-sec.bs-ro .bs-card-b :is(input,select,textarea,.bs-wk-b,.bs-add,.bs-ra,.bs-pill,.cw-day,label){pointer-events:none}
/* Card #251: Website Menu in Prices and Menu */
.rcm-list{list-style:none;margin:8px 0 0;padding:0 10px;display:flex;flex-direction:column;gap:8px}
.rcm-row{border:1px solid var(--border);border-radius:9px;background:#fff;padding:8px 10px;display:flex;flex-direction:column;gap:6px}
.rcm-row.rcm-soon{background:#fbf6ef}
.rcm-row.rcm-hid{opacity:.62}
.rcm-row.rcm-over{outline:2px dashed var(--purple);outline-offset:1px}
.rcm-row.rcm-drag{opacity:.4}
.rcm-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.rcm-grip{cursor:grab;color:var(--text-muted);font-size:16px;padding:0 2px;user-select:none;-webkit-user-select:none}
.rcm-in{border:1px solid var(--border);border-radius:7px;padding:5px 8px;font:inherit;font-size:13px;background:#fff;color:inherit;min-width:0;box-sizing:border-box}
.rcm-in:focus-visible,.rcm-sel:focus-visible,.rcm-mv:focus-visible{outline:2px solid var(--pink);outline-offset:1px}
.rcm-name{flex:1 1 170px}
.rcm-price{width:88px}
.rcm-wide,.rcm-desc{width:100%}
.rcm-desc{resize:vertical;line-height:1.4;min-height:3.4em;field-sizing:content}
.rcm-chk input{accent-color:var(--purple);width:16px;height:16px;margin:0}
.rcm-sel{border:1px solid var(--border);border-radius:7px;padding:5px 6px;font:inherit;font-size:13px;background:#fff;color:inherit;max-width:100%}
.rcm-acts{display:inline-flex;gap:4px;align-items:center;margin-left:auto}
.rcm-mv{border:1px solid var(--border);background:#fff;border-radius:6px;width:28px;height:28px;cursor:pointer;color:var(--purple);font-size:11px;padding:0}
.rcm-diet{display:flex;flex-wrap:wrap;gap:12px;font-size:12.5px;align-items:center}
.rcm-chk{display:inline-flex;gap:5px;align-items:center;cursor:pointer;font-size:12.5px}
.rcm-months{display:flex;flex-wrap:wrap;gap:4px}
.rcm-mo{position:relative}
.rcm-mo input{position:absolute;opacity:0;width:0;height:0}
.rcm-mo span{display:inline-block;padding:3px 8px;border:1px solid var(--border);border-radius:999px;font-size:11.5px;cursor:pointer;background:#fff}
.rcm-mo input:checked+span{background:var(--purple);color:#fff;border-color:var(--purple)}
.rcm-mo input:focus-visible+span{outline:2px solid var(--pink);outline-offset:1px}
.rcm-sec{margin:14px 10px 0;font-size:13px;font-weight:700;color:var(--purple)}
.rcm-saved{font-size:11.5px;color:#2e7d4f;font-weight:600;margin-left:4px;white-space:nowrap}
.rcm-add{display:flex;gap:6px;padding:8px 10px 12px;flex-wrap:wrap}
.rcm-add .rcm-in{flex:1 1 200px}
@media (max-width:760px),(pointer:coarse){.rcm-in,.rcm-sel{font-size:16px}.rcm-mv{width:36px;height:36px}.rcm-acts{margin-left:0}.rcm-mo span{padding:8px 11px;font-size:13px}}
/* Card #211: Prices and Menu at the size of the rest of Business Setup. */
#settings-modal .rc-grp{border-radius:14px;margin:0 0 16px}
#settings-modal .rc-grp>summary{padding:14px 16px 14px 20px;font-size:16px;flex-wrap:nowrap}
#settings-modal .rc-grp>summary .bs-pin{margin:0 0 0 6px}
#settings-modal .rc-sum{font-size:12.5px}
#settings-modal .rc-gb{padding:12px 16px 16px;gap:10px}
#settings-modal .rc-gb.rc-gb0{padding:0;gap:0}
#settings-modal .rc-sub>summary{padding:11px 14px;font-size:14px}
#settings-modal .rc-note{font-size:12.5px;padding:10px 14px 0;line-height:1.5}
#settings-modal .rc-tbl{font-size:13.5px}
#settings-modal .rc-tbl th{font-size:11px;padding:10px 16px}
#settings-modal .rc-tbl td{padding:7px 16px}
#settings-modal .rc-band td{padding:12px 16px 4px}
#settings-modal .rc-band span{font-size:11px}
#settings-modal .rc-num{font-size:13.5px;width:84px}
#settings-modal .rc-num::placeholder{font-size:12px}
#settings-modal .rc-hand{font-size:12.5px}
#settings-modal .rc-flv-in{font-size:13.5px;padding:6px 10px}
#settings-modal .rc-flv-add{padding:10px 16px;gap:8px}
#settings-modal .rc-draft b{font-size:13.5px}
#settings-modal .rc-draft p,#settings-modal .rc-draft ul{font-size:12.5px}
#settings-modal .rc-pubbar{font-size:13px}
#settings-modal .rc-dtg .rc-tbl{table-layout:fixed}
#settings-modal .rc-dtg .rc-tbl th:first-child,#settings-modal .rc-dtg .rc-tbl td:first-child{width:24%}
#settings-modal .rc-dtg .rc-tbl th:not(:first-child),#settings-modal .rc-dtg .rc-tbl td:not(:first-child){text-align:center}
#settings-modal .rc-dtg .rc-tbl th:last-child,#settings-modal .rc-dtg .rc-tbl td:last-child{width:96px}
#settings-modal .rc-dtg .rc-tbl td{white-space:nowrap}
#settings-modal .rc-dtg .rc-num{width:70px}
#settings-modal .rc-tbl th{text-transform:none;letter-spacing:0;font-size:12px}
@media (max-width:760px){#settings-modal .rc-grp>summary{padding:12px;font-size:14px;flex-wrap:wrap}#settings-modal .rc-sum{flex-basis:100%;order:3;margin-left:21px}}
.bs-static .bs-card-b{border-top:none}
.bs-tabs{margin-bottom:16px}
.bs-panel[hidden]{display:none}
.pw-show{font-family:Poppins,sans-serif;font-size:12px;font-weight:600;padding:5px 11px;border-radius:8px;border:1px solid var(--border);background:#fff;color:var(--purple);cursor:pointer;white-space:nowrap}
.pw-show[aria-pressed="true"]{border-color:var(--pink);color:#c41e6a}
.bs-tl{border:1px solid var(--border);border-radius:12px;overflow:hidden;max-width:1000px}
.bs-tl-r{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(130px,1.2fr) minmax(120px,1fr) auto;gap:12px;align-items:center;padding:11px 16px;border-top:1px solid var(--border);font-size:14px}
.bs-tl-r:first-child{border-top:none}
.bs-tl-h{background:var(--pink-pale);font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:9px 16px}
.bs-tl-add{background:var(--surface)}
.bs-tl-r .field-input{font-size:13.5px;min-width:0}
.bs-tl-a{display:flex;gap:8px;justify-content:flex-end;align-items:center;white-space:nowrap}
.bs-tl-a .btn{white-space:nowrap}
.bs-pw{display:flex;gap:6px;align-items:center}
.bs-pw .field-input{flex:1;min-width:0}
.bs-pw-pair{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.bs-pw-msg{font-size:12px;font-weight:600;color:var(--red)}
.bs-pw-msg:empty{display:none}
.bs-reset{max-width:520px;margin-top:14px;padding:16px;border:1px solid var(--pink);border-radius:12px;background:#fffafc;display:flex;flex-direction:column;gap:10px}
.bs-reset[hidden]{display:none}
.bs-acc{display:grid;grid-template-columns:minmax(180px,2.1fr) repeat(5,minmax(86px,1fr));border:1px solid var(--border);border-radius:12px;overflow:hidden;font-size:13px;max-width:980px}
.bs-acc>div{padding:8px 10px;border-top:1px solid var(--border);display:flex;align-items:center}
.bs-acc .bs-acc-th{background:var(--purple);color:#fff;font-weight:700;font-size:12px;border-top:none}
.bs-acc .bs-acc-g{grid-column:1/-1;background:var(--pink-pale);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#c41e6a}
.bs-acc .bs-acc-n{font-weight:600}
.bs-acc-b{font-family:inherit;font-size:12.5px;padding:5px 12px;border-radius:999px;min-width:88px;cursor:pointer;border:1px solid var(--border);background:#fff;color:var(--purple);font-weight:600;white-space:nowrap}
.bs-acc-b.hid{color:var(--text-muted);font-weight:500}
.bs-acc-b.ch{border-color:var(--pink);background:#fdeaf2}
.bs-acc-s{font-size:12.5px;padding:5px 12px;min-width:88px;text-align:center;color:var(--purple);white-space:nowrap}
.bs-acc-s.hid{color:var(--text-muted)}
.bs-acc-wrap{overflow-x:auto}
/* Card #275 follow-up: between phone and full desktop width the actions column
   has no room beside the three fields, so it takes its own row, as on a phone. */
@media (min-width:761px) and (max-width:1100px){
  .bs-tl-a{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}
  .bs-tl-add .bs-pw-pair{flex:1 1 260px}
}
@media (max-width:760px){
  .bs-tl-h{display:none}
  .bs-tl-r{grid-template-columns:1fr 1fr;gap:8px;padding:12px}
  .bs-tl-a{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}
  .bs-acc{grid-template-columns:minmax(120px,1.6fr) repeat(5,minmax(64px,1fr));font-size:11.5px}
  .bs-acc-b,.bs-acc-s{min-width:0;padding:4px 7px;font-size:11px}
}
#settings-modal .set-sec.bs-ro .field-input{background:#f6eef2;color:var(--text-muted)}
@media (max-width:760px){
  .bs-top{padding:12px 14px;gap:12px}
  .bs-title{font-size:17px}
  .bs-body{display:block;overflow-y:auto;background:var(--surface)}
  .bs-nav{width:auto;border-right:none;padding:12px;gap:8px}
  .bs-nav button{background:#fff;border-color:var(--border);padding:13px 14px}
  .bs-main{padding:14px 12px 28px;overflow:visible;background:var(--surface)}
  #settings-modal.bs-list .bs-main{display:none}
  #settings-modal:not(.bs-list) .bs-nav{display:none}
  .bs-sec-h h2{font-size:20px}
  .bs-card-t{padding:13px 12px}
  .bs-card-t .set-sec-sum{display:none}
  .bs-card-b{padding:12px}
  .bs-pin{margin-right:10px}
  .bs-grid2,.bs-grid3,.bs-grid4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .bs-grid3{grid-template-columns:1fr}
  .bs-daycaps{grid-template-columns:repeat(4,minmax(0,1fr))}
  .bs-week{grid-template-columns:58px repeat(7,minmax(0,1fr));gap:4px}
  .bs-wk-d{font-size:10.5px}
  .bs-wk-b{height:34px;font-size:10px}
  .bs-wk-b .l{display:none}
  .bs-wk-b .s{display:inline}
  .bs-row{flex-wrap:wrap}
  .bs-h2{white-space:normal}
}
@media (max-width:600px){.sp-col{padding:16px 12px 32px;gap:16px}.sp-title{font-size:22px}.sp-row{padding:13px 14px}.sp-n{font-size:14px}.sp-d{font-size:11.5px}}

/* ── Layout ── */
/* Card #23 wrapped the stats bar, main layout and reports modal in here. The
   safe-area max() clears the notch in landscape without touching portrait, and
   both sides take the LARGER of the two insets: iOS reports about 47px on the
   sensor-housing side and near zero on the other, so matching only each side to
   its own inset left the page visibly off-centre, which Odile saw as half an
   inch of dead space down one edge (23 Sep). */
.main{margin:0 auto;padding:0 max(var(--pagepad),env(safe-area-inset-left),env(safe-area-inset-right))}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
  :root{--pagepad:16px}
  .topbar{justify-content:center}
  .brand{flex-direction:column;align-items:center;gap:4px;width:100%;text-align:center}
  .topbar-right{justify-content:center;width:100%}
}
.status-bar{background:#fff;border:1px solid var(--border);border-radius:10px;padding:8px 14px;margin-bottom:14px;font-size:11px;color:var(--text-muted);display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.status-dot{width:8px;height:8px;border-radius:50%;background:#ccc;flex-shrink:0}
.status-dot.live{background:#3b8a2a}
.status-dot.loading{background:var(--gold);animation:pulse 1s infinite}
.status-dot.error{background:var(--red)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}

/* ── Stats ── */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px}
.stat{background:#fff;border-radius:10px;border:1px solid var(--border);padding:12px 14px;border-top:3px solid var(--border)}
.stat.s-pink{border-top-color:var(--pink-bright)}
.stat.s-green{border-top-color:#3b8a2a}
.stat.s-gold{border-top-color:var(--gold)}
.stat.s-purple{border-top-color:var(--purple)}
.stat.s-blue{border-top-color:#e96391}
.stat-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:4px}
.stat-val{font-size:24px;font-weight:700;color:var(--purple)}
.stat.s-green .stat-val{color:#3b8a2a}
.stat.s-gold .stat-val{color:var(--amber)}
.stat.s-blue .stat-val{color:#e96391}
.stat-pop-row:hover{background:var(--surface)}
.scope-btn{border:1px solid var(--border);background:#fff;color:var(--text-muted);font-family:Poppins,sans-serif;font-size:11px;font-weight:600;padding:4px 10px;border-radius:999px;cursor:pointer}
.scope-btn.active{background:var(--purple);border-color:var(--purple);color:#fff}
.stat-mini{display:flex;justify-content:space-between;gap:4px;font-size:9.5px;line-height:1;color:var(--text-muted);margin-top:5px}
.stat-mini span{white-space:nowrap}
/* On phones the pinned summary panel would eat half the screen, so let it scroll away. */
@media (max-width: 700px){ #sticky-bar{position:static !important} }
/* Desktop only: freeze the top panel (logo, status dot, gear). position:fixed with
   runtime-measured body padding (syncStickyOffsets), which is deterministic where sticky
   proved unreliable against this file's div nesting. Mobile stays in normal flow. */
@media (min-width: 701px){ body.topbar-pinned .topbar{position:fixed;top:0;left:0;right:0;z-index:120} }
/* Kiosk touch mode: larger tap targets for the TV touchscreen (gear menu toggle). */
body.kiosk-touch .btn{padding:12px 18px;font-size:14px}
body.kiosk-touch .btn-sm{padding:9px 14px;font-size:12.5px}
body.kiosk-touch .chip{padding:10px 16px;font-size:13px}
body.kiosk-touch .scope-btn{padding:9px 16px;font-size:12.5px}
body.kiosk-touch .cal-cell{min-height:104px}
body.kiosk-touch input,body.kiosk-touch select,body.kiosk-touch textarea{font-size:15px}
body.kiosk-touch .refresh-menu button{padding:14px 18px;font-size:14px}

/* ── Two-column layout ── */
.layout{display:grid;grid-template-columns:1fr 420px;gap:14px;align-items:start}
.layout.cal-only{grid-template-columns:1fr}
/* Card #255: the Overview. While it is on, the summary cards and the calendar step aside. */
.ov-hub{display:none}
body.overview-on .ov-hub{display:block;margin-bottom:18px}
body.overview-on #stats-row,body.overview-on .layout{display:none!important}
/* Pipeline: a pink title, then the stages in plain weight with their counts in bold */
.ov-strip{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:8px 12px;margin-bottom:10px}
.ov-strip-t{font-size:12px;font-weight:700;color:var(--pink);letter-spacing:.2px;flex:none}
.ov-steps{display:flex;align-items:center;gap:2px;flex-wrap:wrap;min-width:0}
.ov-steps i{color:#cdb3c3;font-size:12px}
.ov-step{all:unset;cursor:pointer;padding:3px 9px;border-radius:999px;color:var(--purple);font-family:Poppins,sans-serif;font-size:11.5px;display:inline-flex;gap:5px;align-items:baseline}
.ov-step .ov-fig-l{font-weight:500}
.ov-step .ov-fig-v{font-weight:700}
.ov-step .ov-fig-sh,.ov-step .ov-fig-s{display:none}
.ov-step:hover,.ov-step.open{background:var(--surface)}
.ov-step.open{box-shadow:inset 0 0 0 1px var(--pink-light)}
.ov-step.zero{cursor:default;color:#cdb3c3}
.ov-money{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}
.ov-fig{text-align:left;background:#fff;border:1px solid var(--border);border-radius:10px;padding:9px 12px;font-family:Poppins,sans-serif;color:var(--text);cursor:pointer;min-width:0;display:flex;flex-direction:column;gap:1px}
.ov-fig:hover,.ov-fig.open{border-color:var(--pink-light)}
.ov-fig.open{box-shadow:inset 0 0 0 1px var(--pink-light)}
.ov-fig.zero{cursor:default}
.ov-fig .ov-fig-l{font-size:10.5px;font-weight:600;color:var(--text-muted)}
.ov-fig .ov-fig-sh{display:none}
.ov-fig .ov-fig-v{font-size:20px;font-weight:700;color:var(--purple);line-height:1.2}
.ov-fig.zero .ov-fig-v{color:#cdb3c3}
.ov-fig .ov-fig-s{font-size:10.5px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-expand{background:#fff;border:1px solid var(--pink-light);border-radius:10px;padding:10px 12px;margin:-4px 0 10px}
.ov-expand-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:4px}
.ov-expand-h small{font-weight:500;font-size:10.5px;color:var(--text-muted)}
.ov-cols{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px;align-items:start}
.ov-main,.ov-side{min-width:0;display:flex;flex-direction:column;gap:12px}
.ov-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:11px 13px;min-width:0}
.ov-card-t{font-size:12px;font-weight:700;color:var(--purple)}
/* A folding heading: chevron, title, count. The whole line is the button. */
.ov-card-h{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:7px;width:100%;cursor:pointer;font-family:Poppins,sans-serif;padding:1px 0}
.ov-card-h i{color:var(--pink);font-size:14px;flex:none}
.ov-card-h small{margin-left:auto;font-weight:500;font-size:10.5px;color:var(--text-muted);white-space:nowrap}
.ov-card-h:hover .ov-card-t{color:var(--pink)}
.ov-card-b{margin-top:8px}
.ov-card.folded{padding-top:9px;padding-bottom:9px}
.ov-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.ov-chip{border:1px solid var(--border);background:#fff;color:var(--text-muted);font-family:Poppins,sans-serif;font-size:11px;font-weight:600;padding:3px 10px;border-radius:999px;cursor:pointer}
.ov-chip.on{background:var(--purple);border-color:var(--purple);color:#fff}
.ov-chip.hot:not(.on){color:#c41e6a;border-color:#f4c0d1}
.ov-chip.warn:not(.on){color:#8a6420;border-color:#e8cb8f}
.ov-done{margin-top:8px;border-top:1px dashed var(--border)}
.ov-done-h{display:flex;align-items:center;gap:6px;width:100%;background:none;border:0;padding:8px 2px 4px;cursor:pointer;font-family:Poppins,sans-serif;font-size:11px;font-weight:600;color:var(--text-muted);text-align:left}
.ov-done-h small{margin-left:auto;font-size:10.5px;font-weight:600;background:#e3f1dc;color:#2f6b1f;border-radius:999px;padding:1px 8px}
.ov-done-h:hover,.ov-done-h:focus-visible{color:var(--purple)}
.ov-done-row{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--border)}
.ov-done-row:last-child{border-bottom:0}
.ov-done-row .ov-row{flex:1;min-width:0;border-bottom:0}
.ov-done-row .ov-row-n{color:var(--text-muted);font-weight:500;text-decoration:line-through}
.ov-done-row .ov-tag.done{opacity:.8}
.ov-undo{flex:none;border:1px solid var(--border);background:#fff;color:var(--text-muted);font-family:Poppins,sans-serif;font-size:10.5px;font-weight:600;padding:3px 9px;border-radius:999px;cursor:pointer}
.ov-undo:hover,.ov-undo:focus-visible{color:var(--purple);border-color:var(--purple)}
.ov-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--border);padding:8px 6px;border-radius:6px;cursor:pointer;font-family:Poppins,sans-serif;color:var(--text)}
.ov-row:last-of-type{border-bottom:0}
.ov-row:hover,.ov-row:focus-visible{background:var(--surface)}
.ov-row-m{flex:1;min-width:0}
.ov-row-n{font-size:12.5px;font-weight:600;color:var(--purple);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-row-d{font-size:10.5px;color:var(--text-muted);line-height:1.45}
.ov-row-r{font-size:12px;font-weight:600;color:var(--purple);white-space:nowrap}
.ov-row-sm{padding:6px 6px}
.ov-row .ov-tag{flex:none;min-width:88px;text-align:center}
.ov-tag{font-size:10.5px;font-weight:600;padding:2px 8px;border-radius:999px;white-space:nowrap;background:var(--surface);color:var(--text-muted)}
.ov-tag.hot{background:var(--pink-pale);color:#c41e6a}
.ov-tag.warn{background:#fcf3dd;color:#8a6420}
.ov-tag.paid{background:#e3f1dc;color:#2f6b1f}
.ov-tag.unpaid{background:#fde2e2;color:#a12222}
.ov-tag.done{background:#e3f1dc;color:#2f6b1f}
.ov-row-r.ov-row-ago{font-size:10.5px;font-weight:500;color:var(--text-muted)}
.ov-foot{font-size:10.5px;color:var(--text-muted);padding:8px 2px 0}
.ov-warn{background:#fcf3dd;color:#8a6420;border:1px solid #e8cb8f;border-radius:8px;padding:6px 9px;font-size:11px;margin-bottom:6px}
.ov-dayh{font-size:10.5px;font-weight:700;color:var(--text-muted);padding:7px 6px 2px;display:flex;justify-content:space-between}
.ov-dayh.busy{color:#8a6420}
.ov-empty{font-size:11.5px;color:var(--text-muted);padding:8px 2px}
.ov-cal-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.ov-cal-h button{background:none;border:1px solid var(--border);border-radius:999px;width:26px;height:26px;cursor:pointer;color:var(--purple);display:inline-flex;align-items:center;justify-content:center}
.ov-cal-h span{font-size:12px;font-weight:700;color:var(--purple)}
.ov-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.ov-cal-dn{font-size:10px;font-weight:600;color:var(--text-muted);padding:2px 0}
.ov-cal-d{all:unset;box-sizing:border-box;cursor:pointer;border-radius:6px;padding:4px 0 2px;font-size:11.5px;color:var(--text);font-family:Poppins,sans-serif}
.ov-cal-d:hover,.ov-cal-d:focus-visible{background:var(--pink-pale);color:var(--purple)}
.ov-cal-d.busy{background:var(--pink-pale);font-weight:700;color:var(--purple)}
.ov-cal-d.today{box-shadow:inset 0 0 0 1px var(--pink-bright)}
.ov-cal-d.past{color:#cdb3c3}
.ov-dots{height:6px;display:flex;justify-content:center;gap:2px;margin-top:1px}
.ov-dots i{width:4px;height:4px;border-radius:50%;background:var(--pink)}
.ov-dots i.a{background:var(--gold)}
.ov-cal-k{display:flex;gap:10px;flex-wrap:wrap;font-size:10px;color:var(--text-muted);margin-top:6px}
.ov-cal-k i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--pink);margin-right:3px;vertical-align:1px}
.ov-cal-k i.a{background:var(--gold)}
.ov-cal-info{font-size:11px;color:var(--text-muted);min-height:16px;margin-top:4px}
@media(max-width:900px){.ov-cols{grid-template-columns:minmax(0,1fr)}.ov-money{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
/* Phone: the pipeline is five small cells, count over a short label, never a wrapped line */
@media(max-width:600px){
  .ov-strip{flex-direction:column;align-items:stretch;gap:6px;padding:8px 10px}
  .ov-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .ov-steps i{display:none}
  .ov-step{display:flex;flex-direction:column-reverse;align-items:center;gap:0;padding:5px 2px;border-radius:8px;background:var(--surface)}
  .ov-step .ov-fig-l{display:none}
  .ov-step .ov-fig-sh{display:block;font-size:9.5px;font-weight:500;color:var(--text-muted);white-space:nowrap}
  .ov-step .ov-fig-v{font-size:15px;line-height:1.2}
  .ov-step.zero .ov-fig-v{color:#cdb3c3}
  .ov-row{gap:8px;padding:8px 2px}
  .ov-row .ov-tag{min-width:0;font-size:10px;padding:2px 7px}
  .ov-fig .ov-fig-v{font-size:18px}
}
@media(max-width:900px){.layout{grid-template-columns:1fr}}

/* ── Calendar ── */
.cal-wrap{background:#fff;border-radius:12px;border:1px solid var(--border);padding:16px}
.view-toggle{display:flex;gap:6px;margin-bottom:12px;position:relative;align-items:center}
/* Odile's QA round two: a pill keeps its own height when the row wraps, instead
   of stretching to the tallest thing on the line. */
.view-toggle>*,#day-tools>*,#await-toggle-row>*,#day-filter>*{align-self:center}
/* On a laptop the view's own controls join the same line as Month, Week, Day and
   Add order, in one order, and wrap together when the line runs out, so the tab
   pills are always beside Add order (Odile's QA round two). */
.row-off{display:none!important}
@media(min-width:761px){
  .view-toggle > #await-toggle-row:not(.row-off),.view-toggle > #day-tools:not(.row-off),.view-toggle > #day-filter:not(.row-off){display:contents}
  /* the order within each row lives with that row's own rules, below */
  .view-toggle #add-order-btn{order:10}
  .view-toggle .mobile-row-break{display:none}
  /* Odile, 2026-09-27 (client walkthrough): two fixed groups. Month, Week, Day,
     Today and the date picker stay on the left; the view's own tools and Add
     order stay on the right, whatever the view. The gap between them grows
     with the screen and never closes below 12px, so nothing shifts side to
     side when the view or the tab changes. Month's Filter joins the right
     group, which it used to sit outside of. */
  .view-toggle > #filter-row{order:7}
}
.view-toggle .tb-gap{order:2;flex:1 1 12px;min-width:12px;align-self:stretch}
/* Odile, 2026-09-27: on a laptop the week's row never wraps, so Add order
   stays on the line. Below 1100px the words give way first (P/D, Awaiting,
   Work / Orders), the way a phone already does it. */
@media(min-width:761px){
  body.week-view .view-toggle{flex-wrap:nowrap}
  body.week-view .view-toggle > *{flex-shrink:0}
  body.week-view .view-toggle .tb-gap{flex:1 1 12px;min-width:12px}
}
@media(min-width:761px) and (max-width:1100px){
  body.week-view #await-pill .aw-long,body.week-view .wk-long,body.week-view .dt-label .dt-long{display:none}
  body.week-view .wk-s,body.week-view .dt-label .dt-short{display:inline}
}
/* A narrow laptop window: tighter pills, the plus alone, and the gap can close,
   so the one line still fits and the page never scrolls sideways. */
@media(min-width:761px) and (max-width:900px){
  .layout > div{min-width:0}
  body.week-view .view-toggle{gap:4px}
  body.week-view .view-toggle .tb-gap{min-width:0;flex-basis:0}
  body.week-view #add-order-btn .ao-text{display:none}
  body.week-view #add-order-btn{padding-left:10px;padding-right:10px;margin-left:4px!important}
  body.week-view .view-toggle .vtab,body.week-view .await-pill{padding-left:9px;padding-right:9px}
  body.week-view .dv-tabs button{padding-left:9px;padding-right:9px}
}
/* Month on a laptop: Add order stays on the right even when the line wraps, and below 1300px, where the
   calendar column is narrower, it gives up its words first so it stays on the line (2026-09-29 QA). */
@media(min-width:761px){body.month-view .view-toggle #add-order-btn{margin-left:auto}}
@media(min-width:761px) and (max-width:1300px){body.month-view #add-order-btn .ao-text{display:none}body.month-view #add-order-btn{padding-left:10px;padding-right:10px}}
/* and every control on that row stands the same height, whatever it is */
.view-toggle .vtab,.view-toggle #cal-jump,.view-toggle .await-pill,.view-toggle .dt-pair,
.view-toggle .dv-tabs,.view-toggle #add-order-btn,#day-tools .vtab,#day-filter .vtab,#day-filter .dt-pair{
  min-height:32px;display:inline-flex;align-items:center}
/* Fallback placeholder for #cal-jump (see JS syncCalJumpPlaceholder) -- iOS
   Safari was not rendering the native mm/dd/yyyy placeholder on this field
   even after ruling out font-family, color and size. This overlay doesn't
   depend on the native placeholder rendering at all, and being
   position:absolute it is removed from flex flow entirely -- it does not
   become a flex item, so it cannot affect #cal-jump's own width/order rules. */
#cal-jump-ph{position:absolute;pointer-events:none;color:var(--text-muted);white-space:nowrap;display:none;font-family:-apple-system,BlinkMacSystemFont,Poppins,sans-serif}
/* This overlay exists only to work around iOS Safari not rendering the
   native mm/dd/yyyy placeholder -- desktop browsers already show it fine
   natively, so without this the overlay just duplicated it (confirmed by
   Odile: looked doubled-up on desktop, fine on mobile). */
@media (min-width:761px) and (min-height:501px),(min-width:761px) and (pointer:fine){
  #cal-jump-ph{display:none!important}
}
.vtab{background:transparent;border:1px solid var(--border);border-radius:999px;padding:5px 14px;font-size:12px;cursor:pointer;font-family:Poppins,sans-serif;color:var(--text-muted);font-weight:500;white-space:nowrap}
.vtab.active{background:var(--pink);color:#fff;border-color:var(--pink);font-weight:600}
.cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.cal-nav button{background:transparent;border:1px solid var(--border);border-radius:50%;width:32px;height:32px;cursor:pointer;color:var(--text-muted);display:flex;align-items:center;justify-content:center;font-size:16px}
.cal-nav button:hover{background:var(--pink-pale)}
.cal-title{font-size:16px;font-weight:600;color:var(--purple)}
.cal-legend{display:flex;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.cal-legend span{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-muted)}
.cal-cap{font-size:9px;font-weight:700;border-radius:999px;padding:1px 6px;display:inline-block;background:#efe9f3;color:var(--purple);position:absolute;top:4px;right:4px;line-height:1.4}
.cal-cap.warn{background:#fff3d6;color:#8a6100}
.cal-cap.full{background:#ffe1e1;color:#a12727}
.cal-cell.cal-closed{background:repeating-linear-gradient(45deg,#f5f0f3,#f5f0f3 6px,#eee7ec 6px,#eee7ec 12px);}
.cal-cell.cal-closed .cal-date{color:#b9a8b3}
.cal-closed-lbl{font-size:8px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#b9a8b3;position:absolute;top:6px;right:5px}
.cal-blocked-lbl{font-size:8px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#a12727;position:absolute;top:6px;right:5px}
.wk-pill{border:1px solid var(--border);border-radius:999px;padding:4px 10px;font-size:11px;font-weight:600;cursor:pointer;background:#fff;color:var(--text-muted);user-select:none}
.wk-pill.on{background:var(--purple);color:#fff;border-color:var(--purple)}
.set-chip{background:var(--purple);color:#fff;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:600;cursor:pointer;display:inline-block;margin:2px}
.set-h{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--purple);margin:14px 0 6px}
/* Card #117: Settings folds into sections, each with a one-line summary when closed */
.set-sec{border:1px solid var(--border);border-radius:12px;margin-bottom:8px;background:#fff}
.set-sec>summary{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:11px 14px;cursor:pointer;font-size:13.5px;font-weight:700;color:var(--purple)}
.set-sec>summary::-webkit-details-marker{display:none}
.set-sec>summary::before{content:"\25B8";color:var(--pink);font-size:11px;width:10px;transition:transform .15s}
.set-sec[open]>summary::before{transform:rotate(90deg)}
.set-sec>summary:focus-visible{outline:2px solid var(--pink);outline-offset:2px;border-radius:12px}
.set-sec-sum{margin-left:auto;font-size:11px;font-weight:500;color:var(--text-muted);text-align:right}
.set-sec-b{padding:4px 14px 14px;border-top:1px solid var(--border)}
.set-help{font-size:10px;color:var(--text-muted);line-height:1.4;margin:4px 0 0}
/* Card #194: Pick up & delivery times, a fold inside Booking & Availability */
.set-fold{border:1px solid var(--border);border-radius:10px;background:#fff}
.set-fold>summary{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:9px 12px;cursor:pointer;font-size:12.5px;font-weight:700;color:var(--purple)}
.set-fold>summary::-webkit-details-marker{display:none}
.set-fold>summary::before{content:"\25B8";color:var(--pink);font-size:10px;width:9px;transition:transform .15s}
.set-fold[open]>summary::before{transform:rotate(90deg)}
.set-fold>summary .set-sec-sum{margin-left:auto}
.set-fold>summary:focus-visible{outline:2px solid var(--pink);outline-offset:2px;border-radius:10px}
.set-fold-b{padding:0 12px 12px}
#set-fulfil-body{padding:0 12px 12px;display:flex;flex-direction:column;gap:8px}
.ff-box{background:var(--surface);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.ff-row{display:grid;grid-template-columns:86px minmax(0,130px) auto minmax(0,130px);gap:8px;align-items:center;font-size:12px}
.ff-row .field-input{padding:5px 8px}
.ff-pills{display:flex;flex-wrap:wrap;gap:5px}
.ff-pill{font:inherit;font-size:12px;border:1px solid var(--border);background:#fff;color:var(--text-muted);border-radius:999px;padding:4px 12px;cursor:pointer}
.ff-pill.on{border-color:var(--purple);background:var(--purple);color:#fff}
.ff-item{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;padding:7px 10px;font-size:12px}
.ff-k{white-space:nowrap;flex:0 0 auto;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;border-radius:999px;padding:1px 8px;background:var(--pink-pale);color:var(--purple)}
.ff-item .ff-n{color:var(--text-muted)}
.ff-item .btn{margin-left:auto}
.ff-booked{border:1px solid #f0d98c;background:#fff8e1;border-radius:10px;padding:9px 11px;display:flex;flex-direction:column;gap:6px;font-size:11.5px;color:#7a5c00}
.ff-bo{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border-radius:8px;padding:6px 8px;color:var(--purple)}
.ff-bo .ff-who{flex:1;min-width:150px}
.ff-bo small{color:var(--text-muted)}
.ff-done{color:#2f7a4f;font-weight:600}
@media (max-width:520px){.ff-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.ff-row>b{grid-column:1/-1}} /* QA round A: on a phone the label sits above the two times */
.set-more{margin:8px 0 2px}
.set-more>summary{list-style:none;font-size:10.5px;color:var(--pink);cursor:pointer;font-weight:500}
.set-more>summary::-webkit-details-marker{display:none}
.set-more>summary::before{content:"\25B8 ";font-size:9px}
.set-more[open]>summary::before{content:"\25BE "}
table.set-ld{border-collapse:collapse;font-size:10.5px;margin:6px 0 2px}
table.set-ld td,table.set-ld th{padding:4px 8px 4px 0;border-bottom:1px dashed var(--border);color:var(--text);text-align:left;vertical-align:middle}
table.set-ld th{font-size:9.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}
table.set-ld td:first-child{color:var(--text-muted);white-space:nowrap}
table.set-ld tr:last-child td{border-bottom:none}
#settings-modal table.set-ld input[type=number].field-input{width:46px;padding:2px 5px;font-size:11px;display:inline-block}
@media (max-width:600px){table.set-ld td:first-child{white-space:normal}}
/* Card #151: the pricing catalog. The container query is deliberate: this sits
   inside the Settings modal, so it has to reflow to ITS width, not the window's. */
#rc-wrap,#rcf-wrap{container-type:inline-size}
.rc-grp{border:1px solid var(--border);border-radius:11px;background:#fff;margin:0 0 7px;overflow:hidden}
.rc-grp>summary,.rc-sub>summary{list-style:none;display:flex;align-items:center;gap:8px;flex-wrap:wrap;cursor:pointer}
.rc-grp>summary::-webkit-details-marker,.rc-sub>summary::-webkit-details-marker{display:none}
.rc-grp>summary{padding:10px 12px;font-size:13px;font-weight:700;color:var(--purple)}
.rc-sub>summary{padding:8px 11px;font-size:12.5px;font-weight:600}
.rc-grp>summary::before,.rc-sub>summary::before{content:"\25B8";color:var(--pink);font-size:10px;width:9px;transition:transform .15s}
.rc-sub>summary::before{color:var(--text-muted)}
.rc-grp[open]>summary::before,.rc-sub[open]>summary::before{transform:rotate(90deg)}
.rc-grp>summary:focus-visible,.rc-sub>summary:focus-visible{outline:2px solid var(--pink);outline-offset:2px;border-radius:9px}
.rc-sum{margin-left:auto;font-size:10.5px;font-weight:500;color:var(--text-muted);font-variant-numeric:tabular-nums}
.rc-gb{border-top:1px solid var(--border);padding:6px 8px 8px;display:flex;flex-direction:column;gap:5px}
.rc-sub{border:1px solid var(--border);border-radius:9px;background:var(--bg,#fdf7fa);overflow:hidden}
.rc-note{font-size:10.5px;color:var(--text-muted);padding:7px 11px 0;margin:0}
.rc-scroll{overflow-x:auto;border-top:1px solid var(--border)}
.rc-tbl{width:100%;border-collapse:collapse;font-size:12px;min-width:520px}
.rc-tbl th{font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:700;text-align:left;padding:6px 9px;border-bottom:1px solid var(--border)}
.rc-tbl td{padding:4px 9px;border-bottom:1px solid var(--border)}
.rc-tbl tr:last-child td{border-bottom:0}
.rc-band td{padding:8px 9px 2px;border-bottom:0}
.rc-band span{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--pink)}
.rc-band .rc-size-tag{font-style:normal;font-size:9.5px;font-weight:600;margin-left:6px;padding:1px 7px;border-radius:999px;background:#efe9fb;color:#5a3d8f;white-space:nowrap;vertical-align:1px} /* card #258: the quiet Small / Big tag */
.rc-off .rc-it,.rc-off .rc-sz{color:var(--text-muted)}
.rc-it{font-weight:600}
.rc-sz{color:var(--text-muted)}
.rc-num{width:74px;text-align:right;font:inherit;font-size:12px;font-variant-numeric:tabular-nums;
 border:1px solid var(--border);border-radius:7px;padding:3px 6px;background:#fff;color:var(--text)}
.rc-num::placeholder{color:#c4a7b6;font-style:italic;font-size:10.5px}
.rc-num:focus-visible,.rc-sw input:focus-visible+span{outline:2px solid var(--pink);outline-offset:1px}
.rc-eur{color:var(--text-muted);margin-right:2px}
.rc-num.rc-srv{width:64px;text-align:left}
.rc-hand{color:var(--text-muted);font-style:italic;font-size:11px}
.rc-sw{display:inline-block}
.rc-sw input{position:absolute;opacity:0;width:0;height:0}
.rc-sw span{display:inline-block;width:28px;height:15px;border-radius:999px;background:var(--purple);position:relative;vertical-align:middle;cursor:pointer}
.rc-sw span::after{content:"";position:absolute;top:2px;left:15px;width:11px;height:11px;border-radius:50%;background:#fff;transition:left .12s}
.rc-sw input:not(:checked)+span{background:#dccbd6}
.rc-sw input:not(:checked)+span::after{left:2px}
.rc-draft{background:#fff8e1;border:1px solid #f0d98c;border-radius:10px;padding:10px 12px;color:#7a5c00}
.rc-draft b{display:block;font-size:12px}
.rc-draft p{font-size:11px;margin:4px 0 6px}
.rc-draft ul{margin:0;padding-left:15px;font-size:11px}
.rc-acts{display:flex;gap:7px;margin-top:8px;flex-wrap:wrap}
.rc-quiet{font-size:11px;color:var(--text-muted)}
.rc-pubbar:empty{display:none}
.rc-pubbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 9px 4px;padding:7px 10px;background:#fff8e1;border:1px solid #f0d98c;border-radius:9px;font-size:11.5px;color:#7a5c00;font-weight:600}
.rc-flv{min-width:560px;table-layout:fixed}
.rc-flv th:first-child,.rc-flv td.rc-it{width:32%}
.rc-flv th:last-child,.rc-flv td.rc-flv-act{width:62px}
.rc-flv th:not(:first-child),.rc-flv td:not(.rc-it){text-align:center}
.rc-flv-add{display:flex;gap:6px;align-items:center;padding:7px 9px;border-top:1px solid var(--border)}
.rc-flv-in{flex:1;min-width:0;font:inherit;font-size:12px;padding:4px 7px;border:1px solid var(--border);border-radius:7px;background:#fff}
.rc-flv-in:focus-visible{outline:2px solid var(--pink);outline-offset:1px}
.rc-flv-rm{padding:2px 8px;font-size:10.5px}
.rc-flv-act:empty{display:none}
.rc-sz-add{flex-wrap:wrap}
/* card #267 phase 2: the package list */
.rc-pk .rc-pk-name{width:130px}.rc-pk .rc-pk-cake{max-width:150px}.rc-pk .rc-pk-cups{width:58px}
.rc-pk td.rc-pk-sub{font-size:11.5px;color:var(--text-muted);max-width:260px}.rc-pk .rc-pk-subtext{display:inline}
.rc-pk .rc-pk-subin,.rc-pk .rc-pk-subfr{display:block;width:100%;margin:2px 0;box-sizing:border-box}.rc-pk .rc-pk-subbtns{display:block;margin-top:4px}
.rc-pk td.rc-pk-act{white-space:nowrap}.rc-pk .rc-pk-act .rc-edit{margin:0 1px;font-size:12px}.rc-pk .rc-pk-act .rc-edit[disabled]{opacity:.3;cursor:default}
.rc-sz-add .rc-sz-n{flex:0 0 78px}
.rc-sz-add .rc-sz-sel{flex:0 0 auto;width:auto}
.rc-sz-add .rc-sz-p{flex:1 1 130px}
.rc-sz-rm{margin-left:6px;padding:1px 7px;font-size:10.5px;vertical-align:middle}
.rc-edit{margin-left:6px;border:none;background:none;padding:0;color:#c41e6a;font:inherit;font-size:11px;font-style:normal;text-decoration:underline;cursor:pointer} /* card #238 */
.rc-rn{width:min(220px,60vw)}
/* Cards #198 / #200: Dietary and Flavours in the Pricing catalog. Everything
   under a title starts where the title's text starts (Odile, 22 Oct). */
.rc-gb.rc-gb0{padding:0;gap:0}
.rc-dtg .rc-note,.rc-dtg .rc-tbl th:first-child,.rc-dtg .rc-tbl td:first-child,.rc-dtg .rc-flv-add{padding-left:29px}
.rc-dt .rc-tbl th:first-child,.rc-dt .rc-tbl td:first-child,.rc-dt .rc-flv-add{padding-left:28px}
.rc-pb th,.rc-pb td{background:#fff8e1}
.rc-pb th{border-bottom:0;padding-bottom:2px}
tr.rc-pb:not(.rc-pbh) th,tr.rc-pb:not(.rc-pbh) td{border-bottom:2px solid var(--border);padding-top:2px;padding-bottom:8px;vertical-align:middle}
.rc-pg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;text-align:center;align-items:center}
.rc-pg>span{white-space:nowrap}
.rc-flv2{min-width:560px}
/* Card #197: Colours, the same column grid on the price row and every family */
.rc-col{table-layout:fixed}
.rc-col col.rc-c2{width:88px}.rc-col col.rc-c3{width:80px}.rc-col col.rc-c4{width:88px}
.rc-pg.rc-pg2{grid-template-columns:repeat(2,minmax(0,1fr))}
.rc-cdot{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.12);vertical-align:-2px;margin-right:7px}
.rc-col-hex{width:14px;height:14px;padding:0;border:1px solid rgba(0,0,0,.12);border-radius:50%;flex:0 0 auto;cursor:pointer;-webkit-appearance:none;appearance:none;background:none}
.rc-col-hex::-webkit-color-swatch-wrapper{padding:0}
.rc-col-hex::-webkit-color-swatch{border:0;border-radius:50%}
.rc-col-hex::-moz-color-swatch{border:0;border-radius:50%}
.rc-linkbtn{font:inherit;border:0;background:none;color:var(--pink);cursor:pointer;padding:0;text-decoration:underline}
.rc-col-gone{padding:2px 9px 9px 28px}
.rc-flv2 th:not(:first-child),.rc-flv2 td:not(:first-child){text-align:center}
@container (max-width: 560px){
  .rc-flv2 tr.rc-fh,.rc-flv2 tr.rc-pbh{display:none}
  .rc-flv2 tr.rc-pb th{display:block;padding:6px 9px 0}
  .rc-pg{grid-template-columns:1fr;text-align:left;gap:4px}
  .rc-pg>span{display:flex;align-items:center;gap:6px}
  .rc-pg>span::before{content:attr(data-l);font-size:9.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-weight:700;min-width:96px}
  .rc-tbl{min-width:0;display:block}
  .rc-tbl thead{display:none}
  .rc-tbl tbody,.rc-tbl tr,.rc-tbl td{display:block;width:100%}
  .rc-tbl tr{border-bottom:1px solid var(--border);padding:6px 0}
  .rc-tbl tr:last-child{border-bottom:0}
  .rc-tbl td{border-bottom:0;padding:2px 9px;display:flex;align-items:center;gap:8px}
  .rc-tbl td::before{content:attr(data-l);font-size:9.5px;text-transform:uppercase;letter-spacing:.04em;
   color:var(--text-muted);font-weight:700;min-width:62px;flex:none}
  .rc-tbl td.rc-it{font-size:13px}
  .rc-tbl td.rc-it::before{content:none}
  .rc-band td,.rc-band td::before{display:block;content:none}
  .rc-pk td.rc-it::before{content:attr(data-l)}.rc-pk .rc-pk-name{width:100%}.rc-pk td.rc-pk-sub{max-width:none;flex-wrap:wrap}
  .rc-num{width:96px;font-size:16px;padding:6px 8px}
  .rc-flv-in{font-size:16px;padding:6px 8px}
  .rc-flv-act::before{content:none}
  .rc-flv tr{display:flex;flex-wrap:wrap;align-items:flex-end;padding:7px 0 8px}
  .rc-flv td.rc-it{width:100%;padding-bottom:4px}
  .rc-flv td:not(.rc-it){flex:1 1 0;flex-direction:column;align-items:center;gap:3px;padding:0 2px;min-width:0}
  .rc-flv td:not(.rc-it)::before{content:attr(data-s);font-size:8.5px;letter-spacing:.02em;text-align:center;white-space:nowrap}
  .rc-flv td.rc-flv-act{flex:0 0 100%;align-items:flex-start;padding-top:6px}
  .rc-sum{margin-left:0;width:100%;text-align:left}
}
@media (prefers-reduced-motion:reduce){.rc-grp>summary::before,.rc-sub>summary::before,.rc-sw span::after{transition:none}}
/* Odile's QA: the number boxes were larger than the text around them */
#settings-modal .field-input{font-size:12.5px;padding:6px 8px}
#settings-modal input[type=number].field-input{padding:5px 7px}
@media (max-width:600px){.set-sec-sum{flex-basis:100%;margin-left:20px;text-align:left}}
@media (prefers-reduced-motion:reduce){.set-sec>summary::before{transition:none}}
#mo-cap-warning{display:none;grid-column:1/-1;background:#fff3d6;border:1px solid #e8cf8a;border-radius:8px;padding:8px 10px;font-size:12px;color:#8a6100}
#mo-cap-warning.block{background:#ffe1e1;border-color:#e8a0a0;color:#a12727}
.dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.dot-paid{background:var(--st-paid)}.dot-new{background:var(--st-new)}.dot-awaiting{background:var(--st-awaiting)}.dot-cxl{background:var(--st-cxl)}.dot-complex{background:var(--st-sourcing)}.dot-fulfilled{background:var(--st-fulfilled)}.dot-refunded{background:var(--st-refunded)}.dot-wait{background:var(--amber)} /* card #256 */
.dot{position:relative}
.dot.flag::after{content:'';position:absolute;left:-1px;right:-1px;bottom:-4px;height:2px;border-radius:2px;background:var(--purple)}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-day-name{text-align:center;font-size:10px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;padding:4px 0}
.cal-cell{min-height:70px;border-radius:8px;border:1px solid transparent;padding:5px;cursor:pointer;background:var(--surface);position:relative;transition:border-color .15s}
.cal-cell:hover{border-color:var(--pink-light)}
.cal-cell.today{border-color:var(--pink-bright);border-width:2px}
.cal-cell.other-month{opacity:.35}
.cal-cell.has-orders{cursor:pointer}
.cal-date{font-size:12px;font-weight:500;color:var(--text-muted)}
.cal-cell.today .cal-date{color:var(--pink);font-weight:700}
.cal-dots{display:flex;gap:2px;flex-wrap:wrap;margin-top:4px}

/* ── Order panel ── */
.order-panel{background:#fff;border-radius:12px;border:1px solid var(--border);padding:14px;min-height:300px}
.panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.panel-title{font-size:14px;font-weight:600;color:var(--purple)}
.panel-count{font-size:12px;color:var(--text-muted)}
.empty-state{text-align:center;padding:40px 20px;color:var(--text-muted)}
.empty-state i{font-size:32px;color:var(--pink-light);display:block;margin-bottom:10px}
.empty-state p{font-size:13px}

/* ── Filters ── */
.filters{display:flex;gap:10px;align-items:center;background:transparent;padding:4px 0;margin-bottom:14px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.chip-group{display:flex;gap:6px;flex-shrink:0}
.chip-sep{width:1px;align-self:stretch;background:var(--border);flex-shrink:0}
.chip{background:#fff;border:1px solid var(--border);border-radius:999px;padding:5px 14px;font-size:12px;cursor:pointer;color:var(--text-muted);font-weight:500;white-space:nowrap;transition:all .15s;flex-shrink:0}
.chip:hover{border-color:var(--pink);color:var(--pink)}
.chip.active{background:var(--pink);color:#fff;border-color:var(--pink);font-weight:600}

/* ── Order cards ── */
.ocard{border:1px solid var(--border);border-radius:12px;background:#fff;margin-bottom:8px;transition:box-shadow .15s}
.ocard:hover{box-shadow:0 2px 8px rgba(81,36,72,.08)}
.ocard.expanded{border-color:var(--pink-light)}
.ocard-top{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;cursor:pointer;gap:8px}
.oname{font-size:14px;font-weight:600;color:var(--purple)}
.ometa{font-size:12px;color:var(--text-muted);margin-top:2px}
.contact-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--border);border-radius:999px;padding:2px 8px;font-size:11px;color:var(--text-muted);margin-top:4px}
/* Card #271 round 7: each section is a tile with its icon, its name and one
   line of state at the right; an open tile is the top of a bordered panel. */
.rdsec{padding:0;margin-top:8px}
.rdsh{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap;cursor:pointer;background:var(--surface);border-radius:10px;padding:10px 12px}
.rdsh.exp{border-radius:10px 10px 0 0}
.rdsh.exp + .rdbody{border:1px solid var(--border);border-top:0;border-radius:0 0 10px 10px;padding:10px}
.rdt{font-size:13.5px;font-weight:700;display:flex;align-items:center;gap:7px;flex:none}
.rdt .ti{font-size:14px}
.rdc{font-size:10px}
.rdm{font-size:11.5px;font-weight:500;color:var(--text-muted);white-space:nowrap;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* The schedule rows that opened The Order used to be the Summary & Schedule section. */
.rd-when-rows{display:flex;flex-direction:column;gap:6px;margin:0 0 10px}
.rd-when-rows .rd-when{margin-bottom:0}
.rd-when-rows .rd-when-lbl{min-width:72px}
.rdsh.exp .rdt,.rdsh.exp .rdc{color:var(--pink)}
.rdsh.col .rdt,.rdsh.col .rdc{color:var(--purple)}
.rdstatus{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.rd-ed{border-bottom:1px dashed #d9a9c4;cursor:text;padding:1px 3px;border-radius:3px}
.rd-ed:hover{background:#fdeef5;border-bottom-color:var(--pink)}
.rd-photos{margin-bottom:12px}
.rd-links{margin:10px 0 4px;display:flex;gap:16px;flex-wrap:wrap}
.rd-links a{color:var(--pink);font-weight:600;font-size:12px;cursor:pointer;text-decoration:none}
.rd-links a:before{content:'\25b8 '}
.rd-banner{border-radius:8px;padding:8px 12px;font-size:12px;font-weight:600;margin-bottom:12px}
.rdbody > .rd-banner:last-child{margin-bottom:0}
.rd-banner.block{background:#fdeaea;color:#b3362b;border:1px solid #f3c9c9}
.rd-banner.warn{background:#fff4e0;color:#b86b00;border:1px solid #f0dca8}
.ordno-chip{font-size:11px;font-weight:700;color:var(--purple);background:#f3eef7;border-radius:999px;padding:2px 9px}
.rdsec .qb-header{display:none}
.rd-addphoto{width:74px;height:74px;border-radius:8px;border:1px dashed var(--bstrong,#d9b3c6);background:none;color:var(--text-muted);font-size:11px;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;text-align:center;padding:4px;line-height:1.2}
.rd-when{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin-bottom:8px;min-width:0}
.rd-when-lbl{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);flex:none}
/* min-width:0 lets a control compress rather than push the row past the card edge */
.rd-when-in{border:1px solid var(--border);border-radius:6px;padding:4px 6px;font-size:12px;font-family:Poppins,sans-serif;color:var(--text);min-width:0}
/* Card #113: the delivery address is a wrapping, self-sizing box (was a
   single-line input that clipped long addresses to "St Maar..."). */
.rd-addr-row{align-items:flex-start}
.rd-addr-row .rd-when-lbl{padding-top:6px}
.rd-addr-in{resize:none;overflow:hidden;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;field-sizing:content;display:block}
.rd-paybar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--surface);border-radius:8px;padding:8px 10px;margin:8px 0}
.rd-paybar-lbl{font-size:11px;color:var(--text-muted)}
.rd-paybar-in{flex:1 1 90px;min-width:90px;border:1px solid var(--border);border-radius:6px;padding:5px 8px;font-size:11px;font-family:Poppins,sans-serif}
.rd-paybar-status{margin-left:auto;font-size:11px;color:var(--green);font-weight:600;white-space:nowrap}
.rd-paybar-bal{color:#b86b00;white-space:normal}
/* Continues the pink band rather than sitting on its own white strip --
   the status pill row above stays put; this just holds the action buttons
   (Odile, 2026-08-26, after a few mockup rounds). */
.rd-statusbar{display:block;margin:0 -14px;padding:0 16px 14px;min-width:0;position:relative;z-index:1;box-shadow:0 6px 10px -4px rgba(0,0,0,.35)}
/* The faint shelf itself -- label + buttons together, one line, swipe
   sideways rather than wrapping (Odile, 2026-08-24, carried into the
   pink version 2026-08-26). */
.rd-status-shelf{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border-radius:8px;padding:7px 10px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;width:fit-content;max-width:100%;margin-left:auto}
.rd-status-shelf::-webkit-scrollbar{display:none}
/* Card #271: Update status and More are the only two controls, at every width;
   Cancel, Duplicate and Delete live in More. On a phone the pair fills the row. */
@media (max-width:600px){.rd-status-shelf{width:100%;margin-left:0}.rd-status-shelf select.status-select{flex:1 1 0;min-width:0}.rd-status-shelf .sb-more{flex:0 0 auto}}
.mo-dz-row{display:grid;grid-template-columns:72px repeat(3,minmax(0,1fr));gap:6px;align-items:start;margin-bottom:6px}
.mo-dz-lbl{font-size:12px;font-weight:600;color:var(--purple);padding-top:9px}
.mo-dz-d2{margin-bottom:4px;font-size:12px}
.rd-ed[id^="dc-notes-"],.notes-lines{white-space:pre-line} /* QA round A: one line per note, as the form sends them */
@media (max-width:600px){.mo-dz-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}} /* card #184: label and dietary on one line, the two flavours under them */
@media (max-width:600px){.detail-table select.detail-edit-ctl{max-width:calc(100vw - 150px)!important}} /* card #173: a long package or size name must not push The Order sideways on a phone */
.rd-statusbar select.status-select,.rd-pin select.status-select{appearance:none;-webkit-appearance:none;font-family:Poppins,sans-serif;font-size:10px;font-weight:600;padding:3px 22px 3px 9px;border-radius:999px;background-color:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.55);color:#fff;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}
.rd-statusbar select.status-select,.rd-pin select.status-select:hover{border-color:#fff}
.rd-statusbar select.status-select,.rd-pin select.status-select option{color:var(--text);background:#fff}
.rd-paybar-open{color:var(--gold);text-decoration:none;font-size:11px;font-weight:600;white-space:nowrap}
.rd-cardtop{display:block}
.rd-cardtop + .odetail{border-top:none;padding-top:0}
.rd-divider{border-top:1px solid var(--border);margin:2px 2px 12px}
.rd-preview-ov{position:fixed;inset:0;background:rgba(40,20,35,.55);z-index:9999;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:24px}
.rd-preview-box{overflow-x:hidden;background:#fff;border-radius:14px;max-width:560px;width:100%;max-height:calc(100vh - 48px);overflow-y:auto;padding:0 20px 24px;position:relative;box-shadow:0 20px 50px rgba(0,0,0,.3)}
.rd-preview-bar{position:sticky;top:0;display:flex;justify-content:flex-end;background:#fff;padding:12px 0 6px;z-index:3}
.rd-preview-x{background:var(--surface);border:1px solid var(--border);border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:15px;color:var(--text-muted);flex-shrink:0}
.badges{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;flex-shrink:0;margin-top:4px;overflow-x:auto;scrollbar-width:none;max-width:100%}
.badges::-webkit-scrollbar{display:none}
.badge{border-radius:999px;padding:3px 8px;font-size:10px;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;gap:3px}
/* Status badges resolve from the --st-* palette, same as the dots, the
   legend, the filter control and the card chips. Previously an
   independent set where new read BLUE, quote sent INDIGO and fulfilled
   DARK GREEN. */
.badge-new{background:var(--st-new-tint);color:var(--st-new-badge)}
/* Card #81: new-order toast, stacks top-right below the topbar. */
.no-toast-wrap{position:fixed;top:74px;right:16px;z-index:400;display:flex;flex-direction:column;gap:8px;max-width:290px}
.no-toast{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 28px -8px rgba(81,36,72,.28);
  padding:12px 14px;display:flex;gap:10px;align-items:flex-start;cursor:pointer;animation:no-toast-in .35s ease-out}
@keyframes no-toast-in{from{opacity:0;transform:translate(8px,-6px)}to{opacity:1;transform:translate(0,0)}}
.no-toast-icon{width:32px;height:32px;border-radius:50%;background:var(--st-new-tint);color:var(--st-new-badge);
  display:flex;align-items:center;justify-content:center;font-size:15px;flex:none}
.no-toast-body{flex:1;min-width:0}
.no-toast-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--st-new-badge);margin-bottom:2px}
.no-toast-name{font-size:13.5px;font-weight:700;color:var(--purple)}
.no-toast-meta{font-size:11.5px;color:var(--text-muted);margin-top:1px}
.no-toast-when{font-size:11px;color:var(--text-muted);margin-top:3px}
.no-toast-close{background:none;border:none;color:var(--text-muted);font-size:15px;cursor:pointer;line-height:1;padding:2px;flex:none}
.badge-quoted{background:var(--st-quoted-tint);color:var(--st-quoted-badge)}
.badge-unpaid{background:var(--st-awaiting-tint);color:var(--st-awaiting-badge)}
.badge-paid{background:var(--st-paid-tint);color:var(--st-paid-badge)}
.badge-fulfilled{background:var(--st-fulfilled-tint);color:var(--st-fulfilled-badge)}
.badge-cancelled{background:var(--st-cxl-tint);color:var(--st-cxl-badge)}
.badge-refunded{background:var(--st-refunded-tint);color:var(--st-refunded-badge)}
/* Card #149: the order card's pills are coloured by what they tell you.
   Problems that need action are red, to-dos amber, history quiet plum (green
   stays for Confirmed only). Every pair clears 4.5:1 text contrast. */
.badge-expired{background:#fdecec;color:#a3261e}
.badge-sent{background:#f6eef4;color:#6e4a64}
.badge-info{background:#f6eef4;color:#6e4a64}
.badge-reminder{background:#fdf3d7;color:#735200}
.badge-change{background:#fdf3d7;color:#735200}
.badge-bounce{background:#fdecec;color:#a3261e;cursor:pointer}
.badge-check{background:#fdf3d7;color:#735200;cursor:pointer}
.rd-bounce-mark{display:inline-block;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;background:#fdecec;color:#b3261e;border-radius:999px;padding:1px 6px;margin-left:5px;vertical-align:middle;cursor:help}
.edit-flash{animation:editFlash 1.3s ease}
@keyframes editFlash{0%,55%{box-shadow:0 0 0 3px rgba(247,62,135,.5);border-radius:8px}100%{box-shadow:none}}
.sw-tag-sug{display:inline-flex;align-items:center;gap:3px;border:1px dashed #b9b0e6;color:#3c3489;background:#fff;border-radius:999px;padding:1px 6px 1px 9px;font-size:11px;cursor:pointer}
.sw-tag-sug:hover{background:#eee5ff}
.sw-tag-sug .sw-tag-x{opacity:.55}
.sw-tag-sug .sw-tag-x:hover{opacity:1}
.change-req{background:#fdf3d7;border:1px solid #f1dfa3;border-radius:8px;padding:10px 12px;margin-top:10px;font-size:12.5px;color:#512448}
.change-req-h{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#9a7b00;margin-bottom:3px}
.change-req-body{font-weight:600;color:#512448}
.change-req-note{font-style:italic;color:#6b5a1a;margin-top:2px}
.change-req-sub{font-size:11.5px;color:#6b5a1a;margin-top:6px}
.cl-line{font-size:11px;color:var(--text-muted);padding:2px 0;border-bottom:1px solid var(--border)} /* card #259: the change log, runs folded */
.cl-run>summary{list-style:none;cursor:pointer;user-select:none}.cl-run>summary::-webkit-details-marker{display:none}
.cl-run .cl-arrow{display:inline-block;margin-right:4px;color:var(--pink);transition:transform .15s}.cl-run[open] .cl-arrow{transform:rotate(90deg)}
.cl-run .cl-line b{color:var(--text);font-weight:600}
.cl-sub{padding-left:16px;font-size:10.5px}
.rev-diff{display:grid;grid-template-columns:90px 1fr 1fr;gap:4px 10px;font-size:12px;margin-top:4px} /* card #260 */
.rev-diff .k{font-weight:600;color:#6b5a1a}.rev-diff .was{color:#9a7b00;text-decoration:line-through;word-break:break-word}.rev-diff .now{font-weight:600;word-break:break-word}.rev-diff .hd{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#9a7b00}
@media (max-width:480px){.rev-diff{display:block}.rev-diff .hd{display:none}.rev-diff .k{display:inline;margin-right:4px}.rev-diff .k::after{content:': '}.rev-diff .was{display:inline;margin-right:6px}.rev-diff .now{display:inline}.rev-diff .now::after{content:'';display:block;margin-bottom:6px}} /* card #260: a phone reads each change as one line */
.badge-simple{background:#f5f5f5;color:#888}
.badge-medium{background:#faeeda;color:var(--amber)}
.badge-complex{background:#f0e8ff;color:#512448}
.badge-sourcing{background:var(--st-sourcing-tint);color:var(--st-sourcing-badge)}
.badge-wait{background:#fdf3d7;color:#735200} /* card #256: on a full day's waitlist */
.badge-revision{background:#fde8f0;color:#8a1f4c;white-space:nowrap} /* card #260: the customer sent changes */
.rev-flash{animation:revFlash 1.2s ease-out 1}@keyframes revFlash{0%{box-shadow:0 0 0 3px var(--pink)}100%{box-shadow:0 0 0 0 transparent}} /* card #260: Generate link points here */
.odetail{padding:0 14px 14px;border-top:1px solid var(--border);display:none}
.ocard.expanded .odetail{display:block}

/* ── Detail table ── */
.detail-table{width:100%;border-collapse:collapse;border:1px solid var(--border);border-radius:10px;overflow:hidden;font-size:12px;margin-bottom:12px}
.detail-table tr:nth-child(even){background:var(--surface)}
.detail-table td{padding:7px 11px;border-bottom:1px solid var(--border);vertical-align:top}
.detail-table td:first-child{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);width:36%;padding-top:9px}

/* ── Quote builder ── */
.qb-wrap{background:var(--pink-pale);border-radius:10px;padding:12px;margin-bottom:10px}
.qb-header{font-size:12px;font-weight:600;color:var(--purple);display:flex;align-items:center;gap:6px;margin-bottom:8px}
.qb-summary{font-size:11px;color:var(--text-muted);background:#fff;border-radius:6px;padding:7px 10px;margin-bottom:8px;line-height:1.6}
.qb-table{width:100%;border-collapse:collapse;margin-bottom:8px;background:#fff;border-radius:6px;overflow:hidden}
.qb-table th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:6px 8px;border-bottom:1px solid var(--border);text-align:left;font-weight:600;background:var(--surface)}
.qb-table th:last-child,.qb-table td:last-child{text-align:right}
.qb-table td{padding:5px 8px;border-bottom:1px solid var(--border);font-size:11px}
.qb-table tr:last-child td{border-bottom:none}
.qb-input{border:none;background:transparent;font-size:11px;font-family:Poppins,sans-serif;width:100%;outline:none;color:var(--text)}
.qb-price{border:none;background:transparent;font-size:11px;font-family:Poppins,sans-serif;width:70px;text-align:right;outline:none;color:var(--text)}
.qb-del{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:2px;font-size:14px;line-height:1}
.qb-del:hover{color:var(--red)}
.qb-add-row{display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap}
.qb-add-row select{flex:1;min-width:140px;border:1px solid var(--border);border-radius:6px;padding:5px 8px;font-size:11px;font-family:Poppins,sans-serif;background:#fff}
.qb-totals{background:#fff;border-radius:6px;padding:8px 10px}
.qb-total-row{display:flex;justify-content:space-between;font-size:11px;color:var(--text-muted);margin-bottom:3px}
.qb-total-row.grand{font-size:14px;font-weight:700;color:var(--purple);border-top:1px solid var(--border);padding-top:6px;margin-top:4px}
.qb-note-wrap{margin-top:8px}
.qb-note{width:100%;border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-size:11px;font-family:Poppins,sans-serif;resize:vertical;min-height:50px;background:#fff}

/* ── Card #117: Work plan & sourcing, inside The Order ── */
.work-plan{background:#eee5ff;border-radius:8px;padding:10px 12px;margin:10px 0}
.wp-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--purple);display:flex;align-items:center;gap:5px}
/* Odile's QA round four: the section folds away. A native summary, so it works
   wherever the card is drawn, with the browser's own marker swapped for the
   chevron the day view's sections already use. */
summary.wp-title{list-style:none;cursor:pointer;user-select:none;margin:0;padding:1px 0}
summary.wp-title::-webkit-details-marker{display:none}
/* Odile, 2026-09-27: the chevron leads, the way every other folding section on
   the card reads (.dv-sec-h), and the title wears the brand purple. */
summary.wp-title::before{content:'';flex-shrink:0;width:6px;height:6px;margin:0 3px 0 1px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.work-plan[open] summary.wp-title::before{transform:rotate(45deg);margin-bottom:3px}
summary.wp-title:focus-visible{outline:2px solid var(--pink);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){summary.wp-title::before{transition:none}}
.wp-body{margin-top:8px}
.wp-row{display:grid;grid-template-columns:78px 1fr auto;gap:4px 10px;align-items:baseline;padding:3px 0;font-size:12px}
/* Between the rows only. A border on every row doubled up with the separator
   under the block, because :last-of-type counts every div here, not every row. */
.wp-row + .wp-row{border-top:1px solid #ddd0fb}
.wp-k{font-weight:700;color:#432c7a}
.wp-d{color:#432c7a;font-variant-numeric:tabular-nums}
.wp-s{font-size:11px;color:#7a6ba8;white-space:nowrap}
.wp-row.done .wp-s{color:var(--green);font-weight:600}
.wp-row.done .wp-s::before{content:"\2713 "}
.wp-none{font-size:11.5px;color:#7a6ba8;font-style:italic}
.wp-leads{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:9px;padding-top:8px;border-top:1px solid #ddd0fb}
.wp-leads-h{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#7a6ba8;flex-basis:100%}
.wp-lead{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#432c7a}
.wp-lead-in{width:50px;border:1px solid #c4b5f7;border-radius:6px;padding:3px 6px;font-size:11.5px;font-family:Poppins,sans-serif;background:#fff;color:var(--text)}
.wp-auto{font-size:11px;color:#7a6ba8;font-style:italic}
.wp-reset{font-family:Poppins,sans-serif;font-size:10.5px;font-weight:600;color:#534ab7;background:#fff;border:1px solid #c4b5f7;border-radius:999px;padding:3px 10px;cursor:pointer}
.wp-reset:hover{border-color:#534ab7}
.wp-src{margin-top:9px;padding-top:8px;border-top:1px solid #ddd0fb;display:flex;flex-direction:column;gap:6px}
.wp-check{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#432c7a;cursor:pointer}
.wp-check input{accent-color:#534ab7;width:14px;height:14px;flex:0 0 auto}
.wp-note,.wp-track{width:100%;border:1px solid #c4b5f7;border-radius:6px;padding:5px 8px;font-size:11.5px;font-family:Poppins,sans-serif;background:#f8f5ff;color:var(--text);box-sizing:border-box}
.wp-track{resize:vertical}
.wp-links{display:flex;gap:6px;flex-wrap:wrap}
.wp-link{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;color:#534ab7;background:#fff;border:1px solid #c4b5f7;border-radius:999px;padding:3px 10px;text-decoration:none}
.wp-link:hover{border-color:#534ab7;text-decoration:none}

/* ── Action buttons ── */
.action-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
/* Card #114 */
.comm-off{opacity:.4;cursor:help}
.comm-off-note{font-size:10.5px;color:var(--text-muted);margin-top:6px;font-style:italic}
.sw-namelink{cursor:pointer}
.sw-table{border-collapse:collapse;width:100%;font-size:12.5px;min-width:520px}
.sw-table th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600;padding:6px 8px;border-bottom:1px solid var(--border)}
.sw-table td{padding:9px 8px;border-bottom:1px solid var(--border);vertical-align:middle}
.sw-row{cursor:pointer}
.sw-row:hover td{background:var(--surface)}
.sw-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.sw-pill{display:inline-block;border-radius:999px;padding:1px 9px;font-size:10px;font-weight:700;white-space:nowrap}
.sw-stat{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px}
.sw-stat b{display:block;font-size:16px;color:var(--purple);font-variant-numeric:tabular-nums}
.sw-stat span{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}
/* Card #94: notes, tags, merged numbers */
.sw-note{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:12px!important;font-family:Poppins,sans-serif;resize:vertical;min-height:44px;background:#fbf6f9}
.sw-tag{display:inline-flex;align-items:center;gap:4px;background:#eee5ff;color:#3c3489;border-radius:999px;padding:2px 8px 2px 10px;font-size:11px;font-weight:600}
.sw-tag-mini{padding:0 7px;font-size:9.5px;margin-right:3px}
.sw-tag-x{border:none;background:none;color:#3c3489;cursor:pointer;font-size:10px;padding:0 2px;line-height:1}
.sw-tag-in{border:1px solid var(--border);border-radius:999px;padding:4px 10px;font-size:12px!important;font-family:Poppins,sans-serif;min-width:160px}
/* Card #271: the private sweetheart note is one quiet line under the band. It
   stays in view because it can carry an allergy. */
.rd-band-note{margin:0 2px 10px;color:var(--text-muted);font-size:11.5px;line-height:1.4;display:flex;gap:6px;align-items:flex-start}
.rd-band-note .ti{flex:none;margin-top:1px}
.btn{border-radius:999px;padding:7px 14px;font-size:12px;font-weight:600;cursor:pointer;font-family:Poppins,sans-serif;display:inline-flex;align-items:center;gap:5px;border:none;white-space:nowrap;text-decoration:none}
.btn-pink{background:var(--pink);color:#fff}.btn-pink:hover{background:#a8185a}
.btn-purple{background:var(--purple);color:#fff}
.btn-green{background:#3b8a2a;color:#fff}
.btn-dark-green{background:#1a5c2e;color:#fff}
.btn-gold{background:var(--gold);color:#fff}
.btn-amber{background:#b86b00;color:#fff}
.btn-wa{background:#25D366;color:#fff}
.btn-outline{background:#fff;border:1px solid var(--border);color:var(--text-muted)}.btn-outline:hover{border-color:var(--pink);color:var(--pink)}
.btn-outline-red{background:#fff;border:1px solid #f0caca;color:var(--red)}
.btn-outline-purple{background:#fff;border:1px solid var(--purple);color:var(--purple)}
.btn-sm{padding:5px 10px;font-size:11px}

/* ── Status row ── */
.status-row{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid var(--border)}

/* ── Payment link ── */
.paylink-box{background:var(--surface);border-radius:8px;padding:10px 12px;margin-bottom:10px}
.paylink-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:6px}
.paylink-status{font-size:11px;color:var(--text-muted);margin-bottom:5px}
.paylink-input{width:100%;border:1px solid var(--border);border-radius:6px;padding:5px 10px;font-size:11px;font-family:Poppins,sans-serif;background:#fff}

/* ── Quote preview ── */
.qp-wrap{display:none;background:#fff;border:1px solid #f4d9e8;border-radius:12px;overflow:hidden;margin-top:10px;box-shadow:0 2px 16px rgba(81,36,72,.1)}
.qp-scale{width:100%;overflow:hidden}
.qp-inner{width:600px;transform-origin:top left}

/* ── Add order panel ── */
.add-order-panel{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:998;padding:20px;overflow-y:auto}
.add-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.field-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:4px}
.field-input{width:100%;border:1px solid var(--border);border-radius:7px;padding:7px 10px;font-size:12px;font-family:Poppins,sans-serif;color:var(--text);background:#fff}
.field-input:focus{outline:none;border-color:var(--pink)}
#filter-select:focus{outline:none}
#filter-select:focus-visible{outline:2px solid var(--purple);outline-offset:2px}

/* ── Reports ── */
.report-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:10px;margin-bottom:16px}
/* Mobile overrides, placed after the rules above so equal-specificity
   cascade order doesn't silently lose to them (see note at line ~76). */
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
  .report-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cal-grid{gap:2px}
  .cal-cell{min-height:46px;padding:3px}
  .cal-date{font-size:10px}
  .cal-cap{font-size:7px;padding:0 3px;top:2px;right:2px}
  .cal-closed-lbl{display:none}
}
.report-stat{background:var(--surface);border-radius:8px;padding:12px}
.report-stat-label{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600;margin-bottom:4px}
.report-stat-val{font-size:22px;font-weight:700;color:var(--purple)}
/* Card #118: the tab is two views now, a this-week work list and an all-time
   review, so the four charts and every bar rule that served them are gone. */
.rep-sec{margin-bottom:18px}
.rep-sec-h{font-size:12px;font-weight:600;color:var(--purple);margin-bottom:8px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.rep-sec-h .ct{font-size:10px;font-weight:600;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:0 7px;line-height:16px;color:var(--text-muted)}
.rep-sec-note{font-size:11px;font-weight:400;color:var(--text-muted)}
.rep-list{border:1px solid var(--border);border-radius:10px;overflow:hidden}
.rep-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--border);font-size:12.5px}
.rep-row:last-child{border-bottom:0}
.rep-nm{font-weight:600;color:var(--purple)}
.rep-meta{font-size:11px;color:var(--text-muted)}
.rep-amt{font-weight:600;color:var(--purple);font-variant-numeric:tabular-nums;white-space:nowrap}
.rep-tag{font-size:9.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-radius:5px;padding:1px 7px;white-space:nowrap;border:1px solid}
.rep-tag.late{color:#a8365f;background:#fdeef4;border-color:#f2c6d8}
.rep-tag.due{color:#8a6420;background:#fcf3dd;border-color:#e8cb8f}
.rep-tag.quiet{color:var(--text-muted);background:var(--surface);border-color:var(--border)}
.rep-tag.src{color:#534ab7;background:#eee5ff;border-color:#534ab7}
.rep-empty{font-size:12px;color:var(--text-muted);padding:10px 12px;border:1px dashed var(--border);border-radius:10px}
/* Card #118 charts. Accent #c93a70 not the brand #f73e87: the brand pink fails
   against the grey for red-green colour blindness, the deeper one passes. */
.rep-chart{position:relative;border:1px solid var(--border);border-radius:10px;padding:10px 10px 4px;background:#fff}
.rep-chart svg{display:block;overflow:visible}
.rep-chart .gl{stroke:#f1e6ec;stroke-width:1}
.rep-chart .base{stroke:#a8919d;stroke-width:1}
.rep-chart .tick,.rep-chart .xl{fill:var(--text-muted);font-size:10.5px;font-family:Poppins,sans-serif}
.rep-chart .tick{font-variant-numeric:tabular-nums}
.rep-chart .dl{fill:var(--purple);font-size:11px;font-weight:600;font-family:Poppins,sans-serif}
/* Bars and labels are drawn over their hit rects, so they let the pointer
   through; otherwise pointing at a bar would leave its hit rect and hide the tip. */
.rep-chart .bar,.rep-chart .dl,.rep-chart .xl,.rep-chart .tick,.rep-chart .gl,.rep-chart .base{pointer-events:none}
.rep-chart .bar{fill:#c93a70;transition:opacity .12s}
.rep-chart .bar.ctx{fill:#b39ca8}
.rep-chart .hit{fill:transparent;cursor:pointer;outline:none}
.rep-chart .hit:hover+.bar,.rep-chart .hit:focus-visible+.bar{opacity:.72}
.rep-chart .hit:focus-visible{stroke:#c93a70;stroke-width:1.5}
.rep-tip{position:absolute;pointer-events:none;background:#512448;color:#fff;border-radius:8px;padding:6px 10px;font-size:12px;line-height:1.35;white-space:nowrap;transform:translate(-50%,calc(-100% - 8px));box-shadow:0 4px 14px rgba(0,0,0,.18);z-index:5}
.rep-tip .tv{font-weight:700;font-size:13px;font-variant-numeric:tabular-nums}
.rep-tip .tl{color:#d9c3cf;font-size:11px}
.rep-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--text-muted);margin:0 0 8px}
.rep-legend span{display:inline-flex;align-items:center;gap:6px}
.rep-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
/* Card #118 Kitchen and Review. Stage chips follow the badge pattern: dark
   text on a pale tint, with the stage named in words, never colour alone. */
.rep-band{font-size:9.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);background:var(--surface);padding:5px 12px;border-bottom:1px solid var(--border)}
.rep-band.behind{color:#a8365f;background:#fdeef4}
.rep-tag.stage-open{color:#8a6420;background:#fcf3dd;border-color:#e8cb8f}
.rep-tag.stage-tobake{color:#512448;background:#f3e4ea;border-color:#e2c6d4}
.rep-tag.stage-decorating{color:#534ab7;background:#eee5ff;border-color:#c9c1f0}
.rep-tag.stage-ready{color:#3b7a2a;background:#eef7ea;border-color:#c6e2ba}
.rep-strip{display:flex;flex-wrap:wrap;gap:8px}
.rep-strip span{display:inline-flex;align-items:baseline;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:4px 12px;font-size:12px;color:var(--text-muted)}
.rep-strip b{font-size:14px;color:var(--purple);font-variant-numeric:tabular-nums}
.rep-cat{display:grid;grid-template-columns:minmax(96px,150px) 1fr auto;gap:12px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--border);font-size:12.5px}
.rep-cat:last-child{border-bottom:0}
.rep-catbar{display:block;height:8px;border-radius:0 4px 4px 0;background:#c93a70}
/* Card #118 layout. The view pill sits far left and every other control on the
   right; all of them share one 28px height so the row reads as one set. */
.rep-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
/* Under the view pill sits the control that belongs to the view on screen:
   the week for Money, Print for Kitchen. */
.rep-controls-l{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
#report-mode-pill button{height:26px;padding:0 14px;font-size:12px}
.rep-subctl{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
/* A dropdown is a 12px label with the real select laid over it, invisible.
   On phones the dashboard sets every select to 16px so iOS will not zoom the
   page on tap; the hidden select keeps that, the visible label matches the
   pill, and a tap still opens the phone's own picker. */
.rep-drop{position:relative;display:inline-flex;align-items:center;height:28px;box-sizing:border-box;border:1px solid #c98aa5;border-radius:999px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e1f3d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;padding:0 30px 0 13px;font-family:Poppins,sans-serif;font-size:12px;font-weight:500;color:#6e1f3d;white-space:nowrap;cursor:pointer}
.rep-drop select{position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;opacity:0;cursor:pointer;appearance:none;-webkit-appearance:none}
.rep-drop:focus-within{outline:2px solid var(--pink);outline-offset:1px}
.rep-ctl-btn{height:28px;box-sizing:border-box;padding:0 14px;font-size:12px}
/* Sections fold from their heading. The count and note stay visible when
   folded, so a closed Needs chasing still says how many are waiting. */
.rep-sec-h.rep-toggle{cursor:pointer;user-select:none;border-radius:4px}
.rep-sec-h.rep-toggle::before{content:'';flex-shrink:0;width:6px;height:6px;border-right:1.5px solid var(--text-muted);border-bottom:1.5px solid var(--text-muted);transform:rotate(45deg);margin:0 3px 3px 1px;transition:transform .15s}
.rep-sec.collapsed .rep-sec-h.rep-toggle::before{transform:rotate(-45deg);margin-bottom:0}
.rep-sec.collapsed>:not(.rep-sec-h){display:none}
.rep-sec.collapsed{margin-bottom:10px}
.rep-sec-h.rep-toggle:hover{color:var(--pink)}
.rep-sec-h.rep-toggle:focus-visible{outline:2px solid var(--pink);outline-offset:2px}
.rep-group{font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--pink);margin:24px 0 12px;padding-bottom:6px;border-bottom:1px solid var(--border)}
.rep-group:first-child{margin-top:4px}
@media (prefers-reduced-motion:reduce){.rep-sec-h.rep-toggle::before{transition:none}}
/* Tile rows pick a column count their tiles fill, so a seventh or eighth tile
   never sits alone on a second row. Phones keep two across. */
.report-stat-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-stat-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.report-stat-grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.report-stat-grid.cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){.report-stat-grid[class*="cols-"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* A tile whose value is a word, like Top earner, reads smaller than a number. */
.report-stat-val.txt{font-size:16px;line-height:1.3}
.rep-period{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.rep-period .stream-pill button{height:24px;padding:0 12px;font-size:11.5px}
.rep-strip+.rep-list{margin-top:10px}
@media (prefers-reduced-motion:reduce){.rep-chart .bar{transition:none}}

/* ── Prep report ── */
.prep-table{width:100%;border-collapse:collapse;font-size:12px}
.prep-table th{background:var(--purple);color:#fff;padding:7px 10px;text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.prep-table th:first-child{white-space:nowrap}
.prep-table td{padding:7px 10px;border-bottom:1px solid var(--border)}
.prep-table tr:nth-child(even) td{background:var(--surface)}
.prep-day-header{background:var(--pink-pale);border-radius:8px;padding:8px 12px;margin-bottom:8px;font-weight:600;color:var(--purple);font-size:13px;border:1px solid var(--border)}
/* Card #95 phase 2: bake sheet */
.prep-day{margin-bottom:14px;break-inside:avoid}
.prep-day-sum{font-weight:500;color:var(--text-muted);font-size:11.5px;margin-left:6px}
.prep-rollups{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.week-roll.await{background:#fff;border-style:dashed;color:var(--text-muted)}
.prep-diet{display:inline-block;background:#fcf3dd;color:#8a6420;border:1px solid #e8cb8f;border-radius:4px;padding:1px 7px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.prep-src{color:#534ab7;font-weight:600;white-space:nowrap}
.prep-await td{color:var(--text-muted)!important;font-style:italic}
.prep-await-tag{display:inline-block;font-size:9.5px;font-weight:600;font-style:normal;color:#8a6420;background:#fcf3dd;border-radius:999px;padding:0 6px;margin-left:4px;vertical-align:middle;text-transform:uppercase;letter-spacing:.03em}
.prep-sourcing{background:#eee5ff;border-radius:8px;padding:12px;margin-top:4px;break-inside:avoid}
.prep-sourcing-h{font-size:11px;font-weight:700;color:#534ab7;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.prep-sourcing-row{font-size:12px;color:#534ab7;margin-bottom:4px}
.prep-pull{margin-top:12px;break-inside:avoid}
.prep-pull-h{font-size:11px;font-weight:700;color:#512448;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}
.prep-diets{background:#fcf3dd;border-radius:8px;padding:12px;margin-top:6px;break-inside:avoid}
.prep-diets-h{font-size:11px;font-weight:700;color:#8a6420;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.prep-diets-row{font-size:12px;color:#512448;margin-bottom:5px;line-height:1.6}

/* ── Email modal ── */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;padding:20px;overflow-y:auto}
.modal-box{background:#fff;border-radius:16px;max-width:560px;margin:40px auto;overflow:hidden;box-shadow:0 8px 40px rgba(0,0,0,.15)}
.modal-header{background:linear-gradient(135deg,var(--pink),var(--purple));padding:16px 20px;display:flex;align-items:center;justify-content:space-between}
.modal-title{color:#fff;font-size:14px;font-weight:700}
.modal-sub{color:rgba(255,255,255,.75);font-size:11px;margin-top:2px}
.modal-close{background:rgba(255,255,255,.2);border:none;border-radius:50%;width:28px;height:28px;color:#fff;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}
.modal-body{padding:18px 20px}
.modal-status{display:none;border-radius:7px;padding:9px 12px;font-size:12px;margin-bottom:10px}

/* ── Week/Day views ── */
.week-cell{min-height:100px;border-radius:8px;border:1px solid var(--border);background:var(--surface);padding:6px}
.week-cell.today{border-color:var(--pink);border-width:2px}
.week-header{font-size:10px;font-weight:600;color:var(--text-muted);margin-bottom:4px}
.week-chip{border-radius:5px;padding:3px 6px;font-size:10px;margin-bottom:2px;display:flex;align-items:center;gap:4px;cursor:pointer;white-space:normal;line-height:1.3}
.week-chip:hover{opacity:.85}
.week-chip.done{text-decoration:line-through;opacity:.5}
.week-chip.awaiting{background:#f6ecdd !important;border:1px dashed #b86b00;color:#7a5200 !important}
.diet-badge{display:inline-block;background:var(--pink);color:#fff;border-radius:999px;padding:1px 6px;font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;vertical-align:middle;margin-left:4px}
#await-toggle-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.view-toggle{flex-wrap:wrap}
.await-pill{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #d9b98f;border-radius:999px;padding:5px 14px;font-size:12px;cursor:pointer;color:#7a5200;font-weight:500;font-family:Poppins,sans-serif;user-select:none}
.await-pill.on{background:#f6ecdd;border-color:#b86b00;font-weight:600}
/* Card #116: Pick up / Delivery stream pill (day view, prep list, Reports) */
.stream-pill{display:inline-flex;border:1px solid #c98aa5;border-radius:999px;background:#fff;overflow:hidden;user-select:none;flex-shrink:0}
.stream-pill button{appearance:none;border:0;background:transparent;font-family:Poppins,sans-serif;font-size:12px;font-weight:500;color:#6e1f3d;padding:5px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;line-height:1.2}
.stream-pill button+button{border-left:1px solid #c98aa5}
.stream-pill button.on{background:#f3e4ea;font-weight:600}
.stream-pill button[data-stream="pickup"].on{background:var(--pink);border-color:var(--pink);color:#fff}
.stream-pill button[data-stream="delivery"].on{background:#6e1f3d;border-color:#6e1f3d;color:#fff}
.stream-pill button.on .n{background:rgba(255,255,255,.9);border-color:transparent;color:#6e1f3d}
.stream-pill button[data-stream="pickup"].on .n{color:var(--pink)}
.stream-pill button:focus-visible{outline:2px solid var(--pink);outline-offset:-2px}
.stream-pill .n{font-size:10px;font-weight:600;background:#fff;border:1px solid #c98aa5;border-radius:999px;padding:0 6px;line-height:15px}
.stream-tag{font-size:10px;font-weight:600;border-radius:999px;padding:0 7px;line-height:16px;white-space:nowrap;margin-left:6px;vertical-align:middle;border:1px solid}
.stream-tag.pickup{color:#c2185b;background:var(--pink-pale);border-color:var(--pink-light)}
.stream-tag.delivery{color:#6e1f3d;background:#f3e4ea;border-color:#c98aa5}
.prep-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 12px;margin-bottom:8px;display:flex;gap:10px;align-items:flex-start;cursor:pointer;transition:border-color .15s}
.prep-card:hover{border-color:var(--pink)}
.prep-card.done{background:#f4f4f4;opacity:.75}
.prep-card.awaiting{background:#f9f1e7;border:1px dashed #b86b00}
.prep-card.cxl{background:#f4f4f4;opacity:.7}
/* Card #140: designer's day view. Phone first; wider screens put the photo beside the design details. */
/* Card #140u: the day's tools ride in the controls row, sized like the view tabs. */
#day-tools{display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap}
/* Odile's QA: on every view the tab pills keep the same place, beside Add order,
   with the things that feed them to the left in a fixed order. */
.view-toggle #day-filter{order:8;margin-left:0}
.view-toggle #day-tools{order:9;margin-left:0}
.view-toggle #add-order-btn{order:10}
#day-tools #dv-sheet-btn{order:8}
#day-tools .dv-tabs{order:9}
#day-filter{order:7}
#await-toggle-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#await-toggle-row .dt-pair{order:7}
#await-toggle-row #await-pill{order:8}
#await-toggle-row .dv-tabs{order:9}
/* Card #117: Day view tabs, Bake | Decorate */
.dv-tabs{display:inline-flex;border:1px solid var(--border);border-radius:999px;background:#fff;padding:2px}
.dv-tabs button{border:0;background:transparent;border-radius:999px;padding:5px 14px;font-family:Poppins,sans-serif;font-size:12px;font-weight:500;line-height:1.35;color:var(--text-muted);cursor:pointer;white-space:nowrap}
.dv-tabs button.on{font-weight:600}
.dv-tabs button.on{background:var(--purple);color:#fff}
.dv-tabs button:focus-visible{outline:2px solid var(--pink);outline-offset:1px}
#day-filter{display:flex;align-items:center;gap:6px} /* Card #140z */
#day-filter .vtab{display:inline-flex;align-items:center}
#day-filter select.vtab{appearance:none;-webkit-appearance:none;padding-right:26px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a6070' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
#day-tools .vtab{display:inline-flex;align-items:center;gap:5px}
.view-toggle select.vtab{appearance:none;-webkit-appearance:none;padding-right:26px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a6070' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center} /* Card #140aj */
.view-toggle select.vtab{display:inline-flex;align-items:center}
#await-toggle-row .dt-label{margin-left:4px}
.dt-pair{display:inline-flex;align-items:center;gap:6px} /* Card #140an: label and dropdown move as one */
/* Card #140al: the week's row gives way before Add order does. */
.view-toggle #await-toggle-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;min-width:0;flex:1 1 0} /* Card #140am */
.dt-label{font-size:11.5px;color:var(--text-muted);white-space:nowrap} /* Card #140y */
.dt-label .dt-short{display:none} /* Card #140aa */
/* Card #140ae: a narrow phone keeps the words on the filter and drops them
   from the Add button instead. Narrower again, the filter shortens too. */
@media(max-width:409px){#add-order-btn .ao-text{display:none}#add-order-btn{padding-left:12px;padding-right:12px}} /* Card #140af: measured, 390px wraps and 420px does not */
/* Odile's QA round two: the pills keep their size on a phone, so the labels give
   the room back instead. P/D from 560px down, and the awaiting pill drops the word
   payment, so the week row is two lines rather than three. */
.wk-s{display:none} /* the s that turns "Order days" into "Orders" when the words go */
@media(max-width:560px){.dt-label .dt-long{display:none}.dt-label .dt-short{display:inline}}
/* Odile's QA, 2026-09-23: below 420px the board toggle drops its words the way
   the filter label already drops "Pick up / Delivery", so the week's controls
   finish on two lines instead of three. The pills keep their size. */
@media(max-width:420px){.wk-long{display:none}.wk-s{display:inline}}
@media(max-width:560px){#await-pill .aw-long{display:none}}
@media(max-width:760px){
  /* Card #140ag: every view puts its own controls on the line above the tabs,
     with Add order at the right of it. The row wraps inside itself if it must. */
  .view-toggle #filter-row{order:-3!important;flex:1 1 0;min-width:0} /* Card #140ah: basis 0, so Add order keeps its place on the line */
  .view-toggle #await-toggle-row{order:3!important;flex:1 1 auto;min-width:0;justify-content:flex-start} /* Odile's QA: under the view pills, sharing lines */
  .view-toggle #await-toggle-row{justify-content:flex-start} /* Card #140am: left aligned on a phone */
  #await-toggle-row .dv-tabs{order:0;margin-left:0}
  /* Card #140z: buttons and Add order on one line, the labelled filter under them. */
  .view-toggle #day-tools{order:4;margin-left:0;gap:4px;flex:0 1 auto} /* Odile's QA: under the view pills, not above them */
  .view-toggle #day-filter{order:5;margin:0;gap:4px;flex:0 1 auto}
  .view-toggle #add-order-btn{order:6;margin-left:0}
  #add-order-btn .ao-text{display:none} /* the + on its own, so the button never wraps */
  #add-order-btn{padding-left:12px;padding-right:12px}
  .cal-title{text-align:center;flex:1}
  .bk-dy{min-height:64px}
  /* Odile's QA round two: the pills keep one size at every width; a narrow
     screen wraps them onto another line instead of shrinking them. */
  #day-tools .vtab,#day-filter .vtab{gap:4px}
  #day-filter #dv-stream-select,#await-toggle-row #wk-stream-select{padding-right:22px;background-position:right 7px center}
  /* Odile's QA round two: on a phone the + sits under the date picker, at the end
     of the row, rather than floating above it. */
  .view-toggle #add-order-btn{order:9!important;margin-left:auto!important;align-self:center}
  #dt-break{display:block!important;order:-2;flex-basis:100%;height:0}
}
/* Card #140c: every day-view block is a section that folds away from its heading. */
.dv-sec{background:var(--pink-pale);border:1px solid var(--border);border-radius:10px;padding:8px 10px;margin-bottom:10px}
.dv-sec-h{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);cursor:pointer;user-select:none;border-radius:4px}
.dv-sec-h::before{content:'';flex-shrink:0;width:6px;height:6px;border-right:1.5px solid var(--text-muted);border-bottom:1.5px solid var(--text-muted);transform:rotate(45deg);margin:0 3px 3px 1px;transition:transform .15s}
.dv-sec.collapsed .dv-sec-h::before{transform:rotate(-45deg);margin-bottom:0}
.dv-sec.collapsed .dv-sec-b{display:none}
.dv-sec-h:hover{color:var(--pink)}
.dv-sec-h:focus-visible{outline:2px solid var(--pink);outline-offset:2px}
.dv-sec-b{margin-top:7px}
@media (prefers-reduced-motion:reduce){.dv-sec-h::before{transition:none}}
.dv-chips{display:flex;flex-wrap:wrap;gap:6px}
.dv-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--border);border-radius:999px;padding:3px 10px 3px 4px;font-size:12px;color:var(--text);line-height:1.3}
.dv-chip .sw{width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.15);flex-shrink:0}
.dv-chip .n{color:var(--text-muted);font-size:11px}
.dv-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px;margin-bottom:10px;cursor:pointer;transition:border-color .15s}
.dv-card:hover{border-color:var(--pink)}
.dv-card.done,.dv-card.cxl{background:#f4f4f4;opacity:.75}
.dv-card.awaiting{background:#f9f1e7;border:1px dashed #b86b00}
.dv-head{display:flex;gap:12px;align-items:flex-start}
.dv-when{flex-shrink:0;margin-left:auto;text-align:right;font-weight:700;font-size:14px;color:var(--purple);line-height:1.3;white-space:nowrap} /* Card #140k */
.dv-when .st{color:var(--pink);font-weight:600}
.dv-when.delivery .st{color:#6e1f3d}
.dv-who{flex:1;min-width:0}
.dv-name{font-weight:700;font-size:15px;line-height:1.2;color:var(--purple);display:flex;align-items:center;gap:7px;flex-wrap:wrap} /* Card #140i: same size as the time, on its line */
.dv-name .nm{white-space:nowrap}
.dv-name .tick{font-style:normal;display:inline-block;width:16px} /* Card #140s: a gutter the order line can align to */
.dv-card.done .dv-name .nm{background:var(--st-fulfilled-tint);color:var(--st-fulfilled-badge);border-radius:8px;padding:1px 6px} /* Card #140t: the Fulfilled badge's own colours */
.dv-item{font-size:12px;color:var(--text-muted);display:none} /* Card #140f: the body says this, so the head only needs it while folded */
.dv-card.collapsed .dv-item{display:inline}
.dv-meta{display:none;align-items:center;gap:10px;margin:0 auto;min-width:0} /* Card #140m */
.dv-card.collapsed .dv-meta{display:flex}
.dv-card.collapsed .dv-who{flex:0 1 auto}
.dv-head{flex-wrap:wrap}
.dv-lead{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 14px;margin-bottom:10px}
.dv-f.colours .v{margin-top:3px}
.dv-f.lead .v{font-size:16px;font-weight:600;color:var(--purple);line-height:1.3}
.dv-tags{display:flex;flex-wrap:wrap;gap:4px}
.dv-fold{margin-left:auto;flex-shrink:0;width:30px;height:30px;border:1px solid var(--border);background:#fff;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.dv-fold::before{content:'';width:7px;height:7px;border-right:1.5px solid var(--purple);border-bottom:1.5px solid var(--purple);transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.dv-card.collapsed .dv-fold::before{transform:rotate(-45deg) translateY(1px)}
.dv-fold:focus-visible{outline:2px solid var(--pink);outline-offset:2px}
.dv-card.collapsed .dv-body,.dv-card.collapsed .dv-actions{display:none}
.dv-dots{display:none;gap:4px;align-items:center}
.dv-card.collapsed .dv-dots{display:inline-flex}
.dv-dots span{width:12px;height:12px;border-radius:50%;border:1px solid rgba(0,0,0,.15);display:inline-block}
@media (prefers-reduced-motion:reduce){.dv-fold::before{transition:none}}
.dv-diet{display:inline-block;background:#fcf3dd;color:#8a6420;border:1px solid #e8cb8f;border-radius:4px;padding:1px 7px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.dv-cx{display:inline-block;background:#f0e8ff;color:#512448;border-radius:999px;padding:1px 8px;font-size:10px;font-weight:600}
.dv-contact{display:inline-flex;align-items:center;gap:4px;background:#fff;border:1px solid var(--border);border-radius:999px;padding:1px 9px;font-size:10px;font-weight:600;color:var(--text-muted)} /* Card #140e */
.dv-contact i{font-size:12px}
.dv-contact.wa{color:#1f7a4d;border-color:#bfe3d0;background:#f1faf5}
.dv-state{display:inline-block;font-size:10px;font-weight:600;color:#999;border-radius:999px;padding:1px 0}
.dv-state.await{color:#b86b00}
.dv-state.deco{background:#e9f5e4;color:#2e6b21;padding:1px 8px}
.dv-bal{display:inline-block;background:#fff1dc;color:#b86b00;border-radius:999px;padding:1px 8px;font-size:10px;font-weight:700;white-space:nowrap}
.dv-body{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;margin-top:10px}
.dv-photo{position:relative;width:160px;height:160px;border-radius:10px;overflow:hidden;background:var(--pink-pale);border:1px solid var(--border);cursor:zoom-in}
.dv-photo img{width:100%;height:100%;object-fit:cover;display:block;transform-origin:center center;transition:transform .08s linear}
.dv-photo{touch-action:pan-y}
.dv-photo.zoomed{touch-action:none;cursor:grab}
.dv-zoom-reset{display:none;position:absolute;left:6px;bottom:6px;background:rgba(0,0,0,.6);color:#fff;border:none;border-radius:999px;font-size:11px;font-weight:600;padding:4px 10px;cursor:pointer;font-family:inherit}
.dv-photo.zoomed .dv-zoom-reset{display:block}
@media (prefers-reduced-motion:reduce){.dv-photo img{transition:none}}
.dv-photo .more{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:600;border-radius:999px;padding:1px 8px}
.dv-photo.dv-nophoto{cursor:default;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--text-muted);font-size:11px;text-align:center;padding:6px}
.dv-photo.dv-nophoto i{font-size:20px}
.dv-nocol{font-size:11px;color:var(--text-muted)}
.dv-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 14px;margin-top:10px} /* Card #140h: auto-fit, so two fields spread instead of leaving the row half empty */
.dv-f .k{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}
.dv-f .v{font-size:12.5px;line-height:1.4;overflow-wrap:anywhere}
.dv-f .none{color:var(--text-muted);font-weight:400;font-size:12px}
.dv-f.writing,.dv-f.wide{grid-column:1/-1}
.dv-f.writing .v{font-size:15px;font-weight:600;color:var(--purple)}
.dv-ref{font-size:11px;color:var(--text-muted);margin-top:8px}
.dv-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}
.dv-step{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--pink-light);background:#fff;color:var(--purple);border-radius:999px;padding:6px 14px;font-size:12px;font-weight:600;font-family:inherit;cursor:pointer;user-select:none}
.dv-step input{accent-color:var(--pink);width:16px;height:16px;margin:0;cursor:pointer}
.dv-step.on{background:#e9f5e4;border-color:#3b8a2a;color:#2e6b21}
@media(min-width:761px){
  .view-toggle{gap:4px} /* Card #140an: the 13px the week row was short of */
  /* The kitchen screen and the laptop read this from further away. */
  .dv-name{font-size:16px}
  .dv-when{font-size:16px}
  .dv-actions{justify-content:flex-end} /* Card #140k: the buttons live in the bottom right corner */
  .dv-lead{grid-template-columns:repeat(3,minmax(0,1fr))} /* Card #140i: order, flavour, colours */
  .dv-fields{grid-template-columns:repeat(2,minmax(0,1fr))} /* half the card each, so add-ons stops wrapping early */
  .dv-item{font-size:13px}
  .dv-f .k{font-size:10px}
  .dv-f .v{font-size:14px}
  .dv-f.lead .v{font-size:18px}
  .dv-f.writing .v{font-size:17px}
  .dv-chip{font-size:13px}
  .dv-chip .n{font-size:12px}
  .dv-diet,.dv-cx,.dv-contact{font-size:11px}
}
@media(max-width:760px){
  .dv-card{padding:12px 10px}
  /* Card #140q: a folded card is name and time, then the order underneath,
     with nothing between the two lines. */
  .dv-card.collapsed .dv-head{row-gap:0;column-gap:6px} /* Card #140t: the time sits closer to the name */
  .dv-card.collapsed .dv-who{order:1}
  .dv-card.collapsed .dv-when{order:2}
  .dv-card.collapsed .dv-fold{order:3}
  .dv-card.collapsed .dv-meta{order:4;flex:1 1 100%;justify-content:flex-start;margin:0}
  .dv-card.collapsed.done .dv-meta{padding-left:22px} /* Card #140s and #140t: clears the tick and the tint's padding */
  .dv-card.collapsed .dv-when{margin:0} /* sits beside the name instead of the far right */
  .dv-card.collapsed .dv-when::before{content:'· ';color:var(--text-muted);font-weight:600}
  .dv-card.collapsed .dv-name .dv-contact,
  .dv-card.collapsed .dv-name .dv-diet,
  .dv-card.collapsed .dv-name .dv-cx,
  .dv-card.collapsed .dv-name .dv-state{display:none}
  .dv-lead{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dv-f.colours{grid-column:1/-1} /* Card #140i: the chips need the full width */
  .dv-body{grid-template-columns:minmax(0,1fr)}
  .dv-photo{width:100%;height:auto;aspect-ratio:1/1;max-height:360px}
  .dv-photo.dv-nophoto{aspect-ratio:auto;height:44px;flex-direction:row}
  .dv-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Card #140i: Done and the ready message share a row, with room above them. */
  .dv-actions{gap:8px;margin-top:14px}
  .dv-actions>*{flex:1 1 0;justify-content:center;min-height:40px;padding-left:8px;padding-right:8px}
  .dv-step{font-size:12.5px;white-space:nowrap}
  .dv-actions .btn{font-size:12px}
}
.week-chip.cxl{background:#ececec !important;color:#999 !important;text-decoration:line-through}
/* Card #95: baker week board */
.week-day-sum{font-size:9px;font-weight:500;color:var(--text-muted);line-height:1.3;margin-top:1px}
.week-header.all-baked{color:#3b8a2a}

/* Card #96: shared colour checklist (card Colours edit + Add Order form) */
.cl-box{max-height:190px;overflow-y:auto;border:1px solid var(--border);border-radius:10px;padding:8px 10px;background:var(--surface);user-select:none;-webkit-user-select:none}
.cl-fam{font-size:9.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin:7px 0 4px}
.cl-fam:first-child{margin-top:0}
.cl-row{display:flex;flex-wrap:wrap;gap:5px}
.cl-pill{position:relative;display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border);border-radius:999px;padding:3px 9px 3px 5px;font-size:11px;cursor:pointer;background:#fff;user-select:none;font-family:Poppins,sans-serif}
.cl-pill input{position:absolute;opacity:0;pointer-events:none}
.cl-pill .cl-dot{width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14);flex-shrink:0}
.cl-pill.on{border-color:#e96391;background:#fdeef4;font-weight:600}
.mo-color-row input[type=color]::-webkit-color-swatch-wrapper,.ce-row input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.mo-color-row input[type=color]::-webkit-color-swatch,.ce-row input[type=color]::-webkit-color-swatch{border:none;border-radius:50%}
.mo-color-row input[type=color]::-moz-color-swatch,.ce-row input[type=color]::-moz-color-swatch{border:none;border-radius:50%}
.ce-wrap{user-select:none;-webkit-user-select:none}
.ce-wrap input[type=text]{user-select:text;-webkit-user-select:text}
.week-cell.all-baked{background:#f4faf1}
.wk-day-complete{margin-top:4px;text-align:center;font-size:10px;font-weight:600;color:#3b8a2a}
.wk-w-note{grid-column:1/-1;font-size:11.5px;color:var(--text-muted);padding:0 2px 8px;text-align:center}
.wk-w-role{margin-top:4px}
.wk-w-role-btn{background:none;border:0;padding:0;font:inherit;font-weight:600;color:#c41e6a;text-decoration:underline;cursor:pointer}
@media (max-width:600px),(pointer:coarse){.wk-w-role-btn{display:inline-block;margin-top:4px;padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);text-decoration:none}} /* card #185: room for a thumb */
.wk-work-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.week-cell.wk-work{display:flex;flex-direction:column;gap:6px}
.week-cell.wk-work .week-header[data-bakeday]{cursor:pointer}
.wk-w-closed{display:inline-block;font-size:9px;font-weight:700;background:#fdecec;color:#a3261e;border-radius:999px;padding:0 6px;margin-left:4px;vertical-align:1px}
.wk-w-group{display:flex;flex-direction:column;gap:4px}
.wk-w-h{font-size:9.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.wk-w-h.source{color:#534ab7}.wk-w-h.bake{color:#8a6420}.wk-w-h.decorate{color:#c41e6a}
.wk-w-chip{display:flex;align-items:flex-start;gap:5px;background:#fff;border:1px solid var(--border);border-radius:7px;padding:4px 6px;font-size:10px;line-height:1.35}
.wk-w-chip.got{background:#f3faf0;border-color:#cfe7c6;color:#6b8a63}
.wk-w-chip.plain{background:var(--pink-pale)}
.wk-w-tick input{accent-color:#3b8a2a;width:14px;height:14px;margin:0;cursor:pointer}
.wk-w-done{color:#3b8a2a;font-weight:700;font-size:11px;line-height:1.35}
.wk-w-txt{flex:1;min-width:0;cursor:pointer}
.wk-w-txt b{font-weight:700;color:var(--purple)}
.wk-w-chip.got .wk-w-txt b{color:#6b8a63}
.wk-w-det{display:block}
.wk-w-for{display:block;font-size:9px;color:var(--text-muted)}
.wk-w-txt .wk-w-date{color:inherit;font-weight:700}
.wk-hilite{outline:2px solid var(--pink);outline-offset:2px;border-radius:8px;background:var(--pink-pale);transition:outline-color .6s,background-color .6s}
/* an outline only draws the top edge of a table row, so the row is framed on its cells instead */
tr.wk-hilite{outline:none}
tr.wk-hilite>td{background:var(--pink-light);box-shadow:inset 0 2px 0 var(--pink),inset 0 -2px 0 var(--pink)}
tr.wk-hilite>td:first-child{box-shadow:inset 0 2px 0 var(--pink),inset 0 -2px 0 var(--pink),inset 2px 0 0 var(--pink)}
tr.wk-hilite>td:last-child{box-shadow:inset 0 2px 0 var(--pink),inset 0 -2px 0 var(--pink),inset -2px 0 0 var(--pink)}
.wk-w-chip.late{border-color:#f0b7b7;background:#fdf6f6}
.wk-w-late{display:block;width:max-content;max-width:100%;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:#fdecec;color:#a3261e;border-radius:999px;padding:0 6px;margin-top:2px}
.wk-w-quiet{font-size:10px;color:var(--text-muted);font-style:italic}
@media (max-width:860px){.wk-work-grid{grid-template-columns:1fr}.week-cell.wk-work{min-height:0}
  /* Odile's QA round five: a day with nothing on it shrinks to its heading on
     Order days too, instead of holding a 100px box open. Only where the week
     stacks one day per row; in the seven column grid the row's own height
     already evens the cells up, so there is nothing to win. */
  .week-cell.wk-empty{min-height:0}}
/* Odile's QA: Order days stacks one day per row on a phone, like Work days */
@media (max-width:860px){body.week-view .cal-grid{grid-template-columns:1fr!important}}
/* Odile's QA: the Add order sheet could be dragged sideways on a phone once the
   colour picker had been opened. Nothing on it is meant to scroll sideways, so
   the page and the sheet are pinned; wide things scroll inside their own box. */
@media (max-width:600px),(pointer:coarse){
  /* Odile's QA round three: a sheet on a touch screen takes vertical gestures
     only, and keeps its rubber-band to itself, so a sideways swipe inside it
     cannot pan the page behind it. */
  .add-order-panel,.modal-overlay{overscroll-behavior:contain;touch-action:pan-y pinch-zoom} /* card #295: still no sideways pan, and fingers can zoom a photo or small print again */
  html,body{overflow-x:clip}
  .add-order-panel,.add-order-panel>div,.modal-overlay,.modal-overlay>div{overflow-x:clip;max-width:100%}
  .cl-box{overflow-x:hidden}
  .mo-color-row,.ce-row{flex-wrap:wrap}
  .cl-box label,.mo-color-row,.ce-row{max-width:100%}
  .add-order-grid{grid-template-columns:1fr}
}
.week-roll{background:var(--pink-pale);border:1px solid var(--pink-light);border-radius:999px;padding:3px 10px;font-size:11px;color:var(--purple)}
.week-roll b{font-weight:600}
.week-roll.hot{background:#fcf3dd;border-color:#e8cb8f;color:#8a6420}
.week-cell.closed{background:repeating-linear-gradient(45deg,#f5f0f3,#f5f0f3 6px,#eee7ec 6px,#eee7ec 12px)}
.week-closed-lbl{font-size:8px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#b9a8b3;margin-top:2px}
.day-card{border-radius:10px;padding:12px;margin-bottom:8px;cursor:pointer;transition:opacity .2s}
.day-card:hover{opacity:.9}
.day-card.done{text-decoration:line-through;opacity:.5}
.day-details{padding-left:22px;display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:6px}
.day-detail{font-size:11px;color:var(--text-muted)}
.day-detail strong{color:var(--purple);font-weight:600}

/* ── Undated section ── */
.undated-wrap{background:#fff;border-radius:12px;border:1px solid var(--border);padding:14px;margin-top:14px}
.undated-title{font-size:13px;font-weight:600;color:var(--purple);margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}

/* ── Misc ── */
.section-divider{height:1px;background:var(--border);margin:12px 0}
a{color:var(--pink);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{color:inherit}
input[type=date]{font-family:-apple-system,BlinkMacSystemFont,Poppins,sans-serif}
/* Card #271: no overflow clip here, the Contact panel hangs below the band. */
.rd-header{margin:-12px -14px 0}
/* Card #271: the band is three calm rows. Who (name, order number, EN/FR,
   Contact), where it stands (status pill and the last message in plain words),
   and a white Next step card that shows only while something needs you.
   Everything else moved: contact details behind Contact, Web form, How they
   heard and complexity to The Order, revisions to the change log, Cancel,
   Duplicate and Delete into More, the private note under the band. */
.rd-band{color:#fff;padding:14px 16px 12px;display:flex;flex-direction:column;gap:9px;border-radius:11px 11px 0 0}
.rd-band-row{display:flex;align-items:center;min-width:0}
.rd-band-who{justify-content:space-between;gap:12px}
.rd-band-id{display:flex;align-items:center;gap:10px;min-width:0}
.rd-band-name{font-size:19px;font-weight:700;line-height:1.3;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-band-order{font-size:11.5px;font-weight:600;opacity:.9;font-variant-numeric:tabular-nums;white-space:nowrap}
.rd-band-tools{flex:none}
.rd-band-state{flex-wrap:wrap;gap:6px 8px;font-size:12px;font-weight:500}
.rd-sent{cursor:help}
.rd-next{background:#fff;color:var(--purple);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:9px;cursor:default}
.rd-next-part{display:flex;justify-content:space-between;align-items:center;gap:14px}
.rd-next-body{min-width:0;display:flex;flex-direction:column;gap:2px}
.rd-card-rule{border-top:1px solid var(--border)}
/* Round 7: The order, one line for the bake and one for when. */
.rd-order-part{display:flex;flex-direction:column;gap:4px}
.rd-order-line{font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.rd-dot{display:inline-block;width:11px;height:11px;border-radius:50%;border:1px solid rgba(0,0,0,.08);vertical-align:middle;margin-left:3px}
.rd-order-line .rd-dot:first-of-type{margin-left:6px}
.rd-when-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:12px;font-weight:500}
.rd-when-line > span{display:inline-flex;align-items:center;gap:4px;min-width:0}
.rd-when-line > span.rd-when-how{display:inline}
.rd-when-line .ti{font-size:12px}
.rd-nowrap{white-space:nowrap}
.rd-when-addr{color:var(--text-muted);overflow-wrap:anywhere}
.rd-when-change{margin-left:auto;color:var(--rose);font-size:10.5px;font-weight:700;cursor:pointer;white-space:nowrap;text-decoration:none}
.rd-when-change:hover{text-decoration:underline}
.rd-when-warn{align-self:flex-start;font-size:11px;font-weight:600;color:#8a5424;background:#faf0e4;border-radius:6px;padding:3px 8px;margin-top:2px}
.rd-also-rest{display:inline}
.rd-also-more{display:none;font:inherit;color:var(--rose);font-weight:700;background:none;border:0;padding:0;margin-left:4px;cursor:pointer}
.rd-next-lbl{color:var(--pink);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.rd-next-h{font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.rd-next-also{color:var(--text-muted);font-size:11px;line-height:1.45}
.rd-next-btn{font-family:inherit;color:#fff;font-size:11.5px;font-weight:700;white-space:nowrap;background:var(--pink);border-radius:999px;padding:8px 14px;border:0;cursor:pointer;flex:none}
.rd-next-btn:hover{background:var(--rose)}
/* Contact: a white chip that opens the email and WhatsApp lines, with the
   bounce and check flags, in a small panel. The lines keep their right-click
   (long-press) editor from card #69. */
.rd-contact-wrap{position:relative;display:inline-flex}
.rd-contact-btn{cursor:pointer;font-family:inherit;border:0}
.rd-contact-dot{width:7px;height:7px;border-radius:50%;background:#d6272e;display:inline-block;margin-left:4px}
.rd-contact-pop{position:absolute;top:calc(100% + 6px);right:0;z-index:30;background:#fff;color:var(--purple);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 28px -8px rgba(81,36,72,.35);padding:10px 12px;min-width:250px;max-width:min(340px,calc(100vw - 48px));text-align:left;font-weight:500;cursor:default}
.rd-contact-pop[hidden]{display:none}
.rd-cpop-h{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);margin-bottom:6px}
.rd-contact-pop .rd-band-contact{flex-direction:column;align-items:flex-start;gap:7px}
.rd-contact-pop .rd-band-contact a,.rd-contact-pop .rd-band-contact .rd-noval{color:var(--purple);white-space:normal;overflow-wrap:anywhere;text-align:left}
.rd-contact-pop .rd-cc-edit{flex-wrap:wrap}
.rd-contact-pop .rd-cc-edit input{border:1px solid var(--border);max-width:100%}
.rd-contact-pop .rd-cc-cancel{border:1px solid var(--border)}
.rd-cpop-flags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.rd-cpop-hint{font-size:10.5px;color:var(--text-muted);margin-top:8px}
.rd-band-contact{display:flex;gap:14px;flex-wrap:wrap;align-items:center;font-size:12.5px;font-weight:500;min-width:0}
.rd-band-contact a,.rd-band-contact .rd-noval{color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:5px;-webkit-touch-callout:none;white-space:nowrap}
.rd-band-contact a:hover{text-decoration:underline}
.rd-band-contact .rd-noval{opacity:.75;font-style:italic}
/* Card #271: Web form, How they heard and complexity, under The Order table. */
.rd-order-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:11.5px;color:var(--text-muted);margin-top:8px}
.rd-order-meta .ti{font-size:12px;margin-right:2px}
/* Card #271: the strip that pins under the modal header once the band has
   scrolled off: status, the one most urgent item, Contact, Update status (the
   modal header above it already carries the name by then). The wrap is a
   zero-height sticky box at the top of the card. */
.rd-pin-wrap{position:sticky;top:0;height:0;z-index:6}
.rd-pin{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff;padding:8px 16px;border-radius:0 0 10px 10px;box-shadow:0 6px 10px -4px rgba(0,0,0,.35)}
.rd-pin[hidden]{display:none}
.rd-pin-row{display:flex;align-items:center;gap:8px;min-width:0}
.rd-pin-acts{display:flex;align-items:center;gap:6px;flex:none}
.rd-pin .rd-contact-btn{font-size:10.5px;font-weight:700;padding:2px 8px;line-height:1.35;border-radius:999px;display:inline-flex;align-items:center;gap:3px}
.rd-chipwrap{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
/* Card #149: the contact chip and the complexity pill beside the name share one
   size and font so they read as a pair; each keeps its own colour. */
.rd-chipwrap .rd-chip,.rd-chipwrap .badge{font-size:10.5px;font-weight:700;padding:2px 9px;line-height:1.35;border-radius:999px;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
/* Both chips beside the name are white with plum text, readable on the pink,
   purple and grey bands alike; complexity shows as dots and the word. */
.rd-chip-contact,.rd-chipwrap .badge{background:#fff;color:#512448}
.rd-chip-web{background:#fff;color:#512448;border:1px dashed #c9a2bb}
/* Card #244: the customer's language, EN or FR, one tap switches it. */
.rd-chipwrap .rd-chip-lang{background:#fff;color:#512448;border:1px dashed #c9a2bb;cursor:pointer;gap:0;padding:2px 3px;font-family:inherit}
.rd-chip-lang span{padding:0 6px;border-radius:999px;opacity:.55}
.rd-chip-lang span.on{background:#512448;color:#fff;opacity:1}
.rd-chip-short{background:#fff3d9;color:#7a4f00;border:1px dashed #efc56b}
.rd-chipwrap .badge::before,.rd-chipwrap .badge::after{letter-spacing:1px;font-size:1em;line-height:1}
/* the badge is a flex row, so the dots need their place in it: filled, faded, word */
.rd-chipwrap .badge::before{order:-2}
.rd-chipwrap .badge::after{order:-1;opacity:.3;margin-left:0}
.rd-chipwrap .badge-simple::before{content:"\25CF"}
.rd-chipwrap .badge-simple::after{content:"\25CF\25CF"}
.rd-chipwrap .badge-medium::before{content:"\25CF\25CF"}
.rd-chipwrap .badge-medium::after{content:"\25CF"}
.rd-chipwrap .badge-complex::before{content:"\25CF\25CF\25CF"}
/* Card #149: the email / phone editor on the band keeps the band's sizes. The
   buttons are exactly the chips' size and font; the box matches the contact
   text, so the row does not grow while you edit. */
.rd-cc-edit{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap}
.rd-cc-edit input{font-family:inherit;font-size:12.5px;font-weight:500;line-height:1.3;padding:1px 9px;border:0;border-radius:999px;background:#fff;color:var(--text);width:240px;min-width:0}
.rd-cc-edit input:focus{outline:2px solid rgba(255,255,255,.7);outline-offset:1px}
.rd-cc-edit input[type=tel]{width:150px}
.rd-cc-edit button{font-family:inherit;font-size:10.5px;font-weight:700;line-height:1.35;padding:2px 9px;border:0;border-radius:999px;cursor:pointer;white-space:nowrap}
.rd-cc-edit button:focus-visible{outline:2px solid #fff;outline-offset:1px}
.rd-cc-save{background:var(--green);color:#fff}
.rd-cc-cancel{background:#fff;color:var(--purple)}
.rd-cc-bounced{background:#fff;color:#b3261e}
/* Card #295: read by screen readers, takes no room on screen */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
[role=dialog]:focus{outline:none}
.cal-cell:focus{outline:none}
.cal-cell:focus-visible{outline:2px solid var(--purple);outline-offset:-2px}
.sandbox-only{display:none!important}
.preprod-only{display:none!important}
#filter-row{margin-left:auto}
#await-toggle-row{margin-left:auto}
.gear-wrap{position:relative}
.stat-search-wrap{margin-left:auto;position:relative;min-width:220px;flex:0 1 320px}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
  /* iOS Safari auto-zooms the entire page when focusing any input/select
     under 16px, and the zoom sticks until manually pinched back out --
     the page then needs horizontal panning at that zoom level too. This
     is almost certainly the real cause of "needs to be pinched, moves
     left to right" (Odile, 2026-08-23), distinct from the earlier text
     auto-inflation fix. Blanket, !important because font-size is set
     inline on dozens of scattered inputs throughout the file. */
  input, select, textarea{font-size:16px!important}

  /* Odile chose smaller/consistent text over the iOS zoom-on-focus fix for
     these three fields specifically -- tapping them will zoom the page
     again, a known tradeoff she accepted (2026-08-23). */
  /* Odile's QA round three: these used to be 10px, then 12px, and both are under
     iOS Safari's 16px threshold, so tapping one zooms the whole page and leaves it
     pannable sideways. That is the sideways drag she kept hitting after opening the
     colour picker, so on a touch screen they take the blanket 16px like every other
     field. They read slightly larger than the pills beside them; the page holds still. */
  /* Inline editors on the card band and detail rows: match the text they replace
     (Odile, 2026-09-08: the email/phone edit box was far bigger than the field). */
  /* Card #149: on a phone the editor takes the contact row (the other field
     hides until save or cancel), the box on its own line, the buttons the
     same size as the chips beside the name. */
  .rd-band-contact:has(.rd-cc-edit) > :not(.rd-cc-edit){display:none}
  .rd-cc-edit{flex-wrap:wrap;width:100%}
  .rd-cc-edit input,.rd-cc-edit input[type=tel]{font-size:11px!important;padding:1px 8px!important;width:100%;flex:1 1 100%}
  .rd-cc-edit button{font-size:9.5px;padding:1px 7px}
  span[id^="df-edit-"] input{font-size:12px!important;min-width:0!important;width:min(55vw,200px)}

  /* Gear menu: pinned to the top-right corner like a typical hamburger
     menu, out of the centered brand stack (Odile, 2026-08-23). */
  .topbar{position:relative}
  .topbar-right{position:static}
  .gear-wrap{position:absolute;top:10px;right:14px}

  /* Stat-scope pills (All time/Month/Week/Day) + search on one line. The
     pills shrink first; the search box gets a much smaller minimum width
     so it can share the row instead of forcing a wrap -- it still expands
     naturally on focus. */
  .sticky-bar-mobile{margin-top:6px!important}
  #stat-scope{gap:3px}
  .scope-btn{padding:4px 8px;font-size:10px}
  .stat-search-wrap{min-width:0;flex:0 1 130px}
  #order-search{padding:3px 8px!important}

  /* Stat cards: square, all 5 in one row. Title centered on its own row;
     number (left) + Prv/Cur/Nxt stack (right) share the row below it. */
  .stats{grid-template-columns:repeat(5,1fr);gap:5px}
  .stat{aspect-ratio:1;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;align-items:center;justify-items:center;padding:5px;border-top-width:2px;min-width:0;overflow:hidden}
  .stat-label{text-align:center;font-size:7px;line-height:1.2;margin-bottom:0;white-space:normal}
  .stat-val{text-align:center;font-size:16px}
  .stat-mini{flex-direction:row;justify-content:center;align-items:center;font-size:6px;gap:4px;margin-top:0}

  /* Grid items default to min-width:auto, which floors each track at its
     content's un-shrinkable width -- the Prv/Cur/Nxt row (three nowrap
     spans) was wider than a 1fr track at narrow phone widths (iPhone
     mini/SE and most Android widths), so the whole 5-card grid was
     blowing out past its container and getting clipped off-screen on the
     right. min-width:0 above lets the track win; this narrows the mini
     row further so the text still fits instead of just getting clipped. */
  @media(max-width:360px){
    .stat-mini{font-size:5px;gap:2px}
    .stat-label{font-size:6px}
  }

  /* Calendar controls: Month/Week/Day/Today + date-jump on their own line;
     Filter + Add order on the next, via the spacer inserted above. */
  .view-toggle{gap:4px}
  #cal-jump{min-width:0!important;width:auto!important;flex:0 1 auto!important;padding:3px 4px!important;margin-left:auto!important}
  .mobile-row-break{flex-basis:100%;height:0}
  #filter-row{margin-left:0}
  #await-toggle-row{margin-left:0}
  .stream-pill button{padding:4px 8px;font-size:10px;gap:3px}

  /* Quote builder's item-add dropdown and the SumUp payment-link fields
     were already 11px by class, matching the event-date row, but with no
     !important they were losing to the blanket mobile 16px rule -- same
     fix already applied to .rd-when-in. */
  .qb-add-row select{font-size:11px!important;padding:3px 6px!important}
  .rd-statusbar select.status-select,.rd-pin select.status-select{font-size:10px!important;padding:3px 22px 3px 9px!important}
  .qb-input,.qb-price{font-size:11px!important}
  /* .qb-note (Note to sweetheart) already declared 11px in its base rule
     and was the reference point the fields above were matched to -- but
     its own rule never got !important, so it was itself still losing to
     the blanket mobile 16px rule this whole time. */
  .qb-note{font-size:11px!important}

  /* Header rows (contact info + order #, status badges, status action
     buttons) never wrap on mobile -- horizontal scroll instead, since an
     email address or a long run of badges has no wrap point that reads
     well. */
  .badges{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .badges::-webkit-scrollbar{display:none}
  .status-row{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .status-row::-webkit-scrollbar{display:none}
  .rd-paybar-in,.paylink-input{font-size:11px!important;padding:3px 6px!important}
  #filter-select{max-width:150px!important;padding:3px 8px!important}
  #add-order-btn{margin-left:auto!important;padding:4px 10px!important;font-size:13px!important}

  /* "The Order" table's inline edit controls (Product/Layers/Flavour/
     Dietary dropdowns, their custom-value input, and the plain-text
     Quantity/Theme/Add-ons/Notes input) -- constrained to their cell and
     sized permanently (not just on mobile) so they can never overflow a
     ~200px table column. !important because they carry inline
     font-family/color/border styles already; class specificity alone
     isn't enough to beat the blanket input/select 16px mobile rule. */
  .detail-edit-ctl{font-size:12px!important;max-width:100%!important;box-sizing:border-box!important}

  /* "When" row controls (event date, Pick Up/Delivery, Time) tightened to
     fit two clean lines (date+pickup, then Time) instead of wrapping
     wherever content runs out of room. */
  .rd-when{gap:6px;flex-wrap:wrap}
  .rd-when-in{font-size:11px!important;padding:3px 6px!important}
  .rd-when-lbl{font-size:9px}

  /* Customer name: a deliberate +2px bump to 16px on desktop (card #44
     redesign); mobile has less room to spare, so it comes back down. */
  .oname{font-size:14px!important}

  /* Banded Summary header (Odile approved, 2026-08-23, mobile only;
     recolored purple->pink and given a desktop counterpart 2026-08-23). */
  .rd-band{padding:12px 14px 10px;gap:8px}
  /* Card #271: on a phone the name wraps beside the EN/FR and Contact chips,
     the order number follows its last word, and Contact is its icon alone. */
  .rd-band-who{align-items:flex-start}
  .rd-band-id{display:block}
  .rd-band-name{font-size:15px;white-space:normal;overflow:visible;overflow-wrap:anywhere}
  .rd-band-order{font-size:10.5px;opacity:.82;vertical-align:middle;margin-left:4px}
  .rd-band-tools .rd-chip{font-size:9.5px;padding:1px 7px}
  .rd-band-tools .rd-chip-lang{padding:1px 2px}
  .rd-band-tools .rd-contact-lbl{display:none}
  .rd-band-state{font-size:11px}
  .rd-next-part{flex-direction:column;align-items:stretch;gap:3px}
  .rd-next-btn{width:100%;margin-top:6px;padding:9px 14px;font-size:12px}
  /* Round 7: two waiting items, the rest behind +N more. */
  .rd-next-also:not(.open) .rd-also-rest{display:none}
  .rd-next-also:not(.open) .rd-also-more{display:inline}
  .rdsh{padding:9px 11px}
  .rdt{font-size:13px}
  .rdm{font-size:10.5px}
  .rd-when-line{font-size:11.5px;gap:4px 10px}
  .rd-contact-pop .rd-band-contact{font-size:12px}
  .rd-pin{flex-direction:column;align-items:stretch;gap:7px;padding:8px 14px 9px}
  .rd-pin-row{flex-wrap:wrap}
  .rd-pin-acts .status-select{flex:1 1 auto;min-width:0}
  .rd-order-meta{font-size:11px}

  /* Add Order + Settings modals: both put every field pair in a fixed
     2-column grid with no mobile collapse, squeezing long labels/values
     (a full email placeholder, "Minimum days' notice") into ~130-145px
     columns on a 375px phone -- confirmed via a background audit across
     both modals. Settings' own 3 inline copies of this same grid were
     consolidated onto this shared class so one rule reaches all of them.
     Deliberately NOT shrinking these fields' font-size (unlike the 3
     landing-page fields Odile explicitly asked to shrink): ~35-45 fields
     across both forms means a zoom-per-tap tradeoff here is materially
     worse than for 2-3 standalone fields, so they keep the existing
     16px anti-zoom floor and just get more room via single-column layout. */
  .add-order-grid{grid-template-columns:1fr}

  /* Padding/font now exactly match .vtab; the remaining width difference is
     just the "+" icon plus "Add order" being longer text than "Today" --
     dropping the icon closes some of that gap without changing the label. */
  .add-order-icon{font-size:14px;margin-right:1px}

  /* Odile, preprod pass: the new-order toast is built for a desktop corner. At
     290px on a 390px phone it covers most of the screen, so it comes down. */
  .no-toast-wrap{top:62px;right:10px;max-width:212px;gap:6px}
  .no-toast{padding:8px 10px;gap:8px;border-radius:10px}
  .no-toast-icon{width:24px;height:24px;font-size:12px}
  .no-toast-title{font-size:8.5px}
  .no-toast-name{font-size:12px}
  .no-toast-meta{font-size:10px}
  .no-toast-close{font-size:13px}

  /* Calendar dots: shrunk so 6-7 in one day fit without stacking. */
  .cal-dots{gap:1px}
  .dot{width:5px;height:5px}

  /* Closed day: an icon instead of nothing when the text can't fit,
     rather than relying on the stripe pattern alone. */
  .cal-closed-lbl{font-size:0}
  .cal-closed-lbl::before{content:"\1F6AB";font-size:8px}

  /* Legend: tightened to fit in ~2 lines instead of sprawling across 3-4. */
  .cal-legend{gap:6px 10px;margin-bottom:0;margin-top:10px}
  .cal-legend span{font-size:10px}
  .cal-legend .dot{width:7px;height:7px}
}
@media (orientation:landscape) and (max-height:500px) and (pointer:coarse){
  .stats{grid-template-columns:repeat(5,72px);justify-content:flex-start;gap:6px}
  /* Landscape has enough width to merge the two calendar-control rows into
     one. Odile's call: Filter (or the Baker report's Show-awaiting-payment
     toggle) sits flush at the far left, Month/Week/Day/Today/date-jump in
     the middle, Add order pushed all the way to the right as the last pill.
     #filter-row{margin-left:0} from the shared mobile block now also
     matches landscape (since that block's condition was widened to include
     max-height:500px), so it needs restoring here. cal-jump's shared-block
     margin-left:auto (which pushes it to the far right in PORTRAIT, its own
     row there) is reset back to a normal small gap here, since in landscape
     it's add-order-btn that owns the "pushed to the far right" role. */
  .mobile-row-break{display:none}
  #filter-row{margin-left:0}
  #await-toggle-row{margin-left:0}
  #cal-jump{margin-left:8px!important}
  .view-toggle #filter-row, .view-toggle #await-toggle-row{order:1}
  .view-toggle .vtab, .view-toggle #cal-jump, .view-toggle span[title="Jump straight to a date"]{order:2}
  .view-toggle #add-order-btn{order:3;margin-left:auto}
}
@media(max-width:760px){
  /* Scoped to .view-toggle specifically -- .mobile-row-break is now reused
     inside the customer card's .rd-when row too (a separate flex-wrap
     context with no order overrides of its own), and an unscoped order:2
     here pushed ITS break elements to the end of that row's flex sequence
     instead of between their intended siblings, since everything else in
     .rd-when defaults to order:0. */
  .view-toggle #filter-row, .view-toggle #add-order-btn, .view-toggle #await-toggle-row{order:1}
  .view-toggle .mobile-row-break{order:2}
  .view-toggle .vtab, .view-toggle #cal-jump, .view-toggle span[title="Jump straight to a date"]{order:3}
}
/* ── The calendar controls on a touch screen (Odile's QA, 2026-09-23) ──
   Sized to the All time / Month / Week / Day pills above the summary cards,
   which on a phone are 10px, weight 600, 4px by 8px. Chosen by what the device
   is rather than how wide it happens to be: a phone sideways is 844 across and
   an iPad upright is 768, so the old 760px cut-off handed both of them the
   desktop sizing and the row changed size when the phone turned. "A screen you
   touch and cannot hover on" covers every way up of a phone and an iPad, and
   leaves a laptop with a touch screen alone.
   Last block in the stylesheet on purpose: a block near the foot of the file
   puts the view pills at order 3, so every order here states its own case. */
@media (max-width:760px), (pointer:coarse) and (hover:none) {
  .scope-btn{padding:4px 8px!important;font-size:10px!important}
  .view-toggle .vtab,.view-toggle .await-pill,.view-toggle .dv-tabs button,
  #day-tools .vtab,#day-filter .vtab,.view-toggle .dt-label,
  #add-order-btn,#filter-row span{font-size:10px!important;font-weight:600!important}
  .view-toggle .vtab,.view-toggle .await-pill,#day-tools .vtab,#day-filter .vtab{padding:4px 7px!important}
  .view-toggle .dv-tabs button{padding:4px 7px!important}
  .view-toggle .dt-pair{gap:4px}
  .view-toggle .vtab,.view-toggle .await-pill,.view-toggle .dv-tabs,
  .view-toggle #add-order-btn,.view-toggle .dt-pair,
  #day-tools .vtab,#day-filter .vtab{min-height:24px!important;box-sizing:border-box}
  .view-toggle .dv-tabs{padding:1px}
  .view-toggle{gap:3px}
  .await-pill{gap:4px}
  /* An iPad upright has 657px of row and the week wanted 716. These three are
     what close it, and each one the row already does on a phone. */
  #await-pill .aw-long{display:none}
  .view-toggle #cal-today-btn{margin-left:0!important}

  /* The fields keep a 16px font. iOS Safari zooms the whole page when you focus
     a box or a dropdown under 16px and leaves it zoomed, and a zoomed page pans
     sideways, which is the "moves side to side" from QA. The zoom property draws
     them at the pills' 10px while the size iOS reads stays 16px, so the row
     matches and the page holds still. Every length here is the wanted one times
     1.6, because zoom shrinks the box as well as the text. */
  .view-toggle #cal-jump,.view-toggle select.vtab,#day-filter select.vtab,
  #filter-select{font-size:16px!important;zoom:.625;font-weight:600!important}
  /* Card #152: the role dropdowns on the Team logins card, 11px to the eye (11/16),
     padding and radius pre-scaled the same way as the calendar pickers above. */
  .tl-role{font-size:16px!important;zoom:.6875;padding:4px 10px!important;border-radius:12px!important}
  /* 4 Nov 2026 (Odile): the order card's deposit rule dropdown, 13px to the eye (13/16), same zoom rule. */
  .dep-mode{font-size:16px!important;zoom:.8125}

  /* Odile's QA round four: the date box and the dropdowns hold the page still,
     but the search box still zoomed it. Same rule, same computed style, so the
     difference is the control. A field that opens the KEYBOARD makes iOS zoom to
     the caret, and it reads the size AFTER zoom; a picker never needed to. So
     anything you type in is scaled instead, which is a paint-time transform the
     heuristic cannot see, and it keeps a real 16px underneath.
     The layout box stays full size, so the width is divided by the scale to put
     it back and the leftover height is taken off with a negative margin. */
  #order-search{font-size:16px!important;font-weight:600!important;
    transform:scale(.625);transform-origin:left top;
    width:160%!important;height:38.4px!important;min-height:0!important;
    margin-right:-60%;margin-bottom:-14.4px;padding:4.8px 12.8px!important}
  .wp-lead-in{font-size:16px!important;transform:scale(.7188);transform-origin:left top;
    width:70px!important;height:33.4px!important;min-height:0!important;
    margin-bottom:-9.4px;margin-right:-20px;padding:4.2px 8.3px!important}
  /* Settings hour boxes (Odile, 23 Oct 2026: a field must never look bigger than
     the text beside it). 11px to the eye, 16px underneath; lengths are the
     desktop ones divided by the scale. */
  /* Cards #211 + #190: Business Setup fields at the size of the text beside them
     (13px to the eye), 16px underneath. Pickers zoom; number boxes scale with the
     spare room taken back by negative margins; full-width typing boxes keep 16px. */
  #settings-modal .bs-card-b select.field-input,#settings-modal .bs-tl-r select.field-input,#settings-modal input[type=date].field-input{font-size:16px!important;zoom:.8125}
  #settings-modal .bs-grid2 input[type=number].field-input,#settings-modal .bs-grid4 input[type=number].field-input,#settings-modal #set-daycaps input.field-input{font-size:16px!important;
    height:38px!important;min-height:0!important;padding:7px 10px!important;box-sizing:border-box;transform:scale(.8125);transform-origin:left top;
    width:123.08%!important;max-width:none!important;margin-right:-23.08%;margin-bottom:-7.125px}
  #settings-modal input.bs-num.field-input{font-size:16px!important;height:38px!important;min-height:0!important;box-sizing:border-box;transform:scale(.8125);
    transform-origin:left center;width:78.8px!important;margin-right:-14.8px}
  #settings-modal .bs-card-b input.field-input:not([type=number]):not([type=date]),#settings-modal .bs-tl-r input.field-input,#settings-modal .bs-pw input.field-input,#settings-modal .rc-flv-in{font-size:16px!important}
  #settings-modal .rc-num{font-size:16px!important;transform:scale(.8125);transform-origin:left center;width:103.4px!important;margin-right:-19.4px}
  #settings-modal table.set-ld input[type=number].field-input{font-size:16px!important;transform:scale(.6875);transform-origin:left top;
    width:67px!important;height:27.9px!important;min-height:0!important;margin-right:-21px;margin-bottom:-8.7px;padding:2.9px 7.3px!important}
  /* The note and the tracker are full-width boxes rather than pills in a row, so
     they simply keep the 16px iOS wants and read all the better for it. */
  .wp-note,.wp-track{font-size:16px!important;padding:6px 10px!important}
  .view-toggle #cal-jump{padding:4.8px 8px!important;margin-left:0!important;
    min-height:38.4px!important;width:auto!important;min-width:0!important}
  /* A touch screen opens the picker by tapping the field, so the native icon is
     only taking room. Dropping it is what lets Add order finish the top line
     instead of starting the second one (Odile, on her phone, 23 Sep). */
  .view-toggle #cal-jump::-webkit-calendar-picker-indicator{display:none}
  .view-toggle select.vtab,#day-filter select.vtab,#filter-select{
    padding:4.8px 25.6px 4.8px 11.2px!important;background-position:right 8px center!important;
    min-height:38.4px!important;max-width:none!important}
  #order-search{padding:4.8px 12.8px!important;min-height:38.4px!important}

  /* Her order, 2026-09-23. Line one is where you are; the line below is what you
     are looking at, and it always ends the same way: the segmented toggle beside
     the plus, the filters to the left of it.
       Week   Awaiting | P/D | Work days / Order days | +
       Day    Design sheet | P/D | Bake / Decorate | +
       Month  Filter | + */
  .view-toggle > .vtab{order:0!important}
  .view-toggle #cal-jump{order:1!important}
  .view-toggle > #await-toggle-row:not(.row-off),
  .view-toggle > #day-tools:not(.row-off){display:contents}
  .view-toggle > #await-toggle-row > #await-pill{order:4!important}
  .view-toggle > #await-toggle-row > .dt-pair{order:5!important}
  .view-toggle > #await-toggle-row > .dv-tabs{order:6!important}
  .view-toggle > #day-tools > #dv-sheet-btn{order:4!important}
  .view-toggle > #day-filter:not(.row-off){order:5!important;display:flex;
    align-items:center;gap:5px;margin:0!important}
  .view-toggle > #day-tools > .dv-tabs{order:6!important}
  .view-toggle > #filter-row:not(.row-off){order:5!important;flex:0 0 auto!important;
    min-width:auto!important;margin-left:0!important}
  /* Add order sits in the corner, held there by the auto margin. On a row that
     fits one line, which is a phone sideways or an iPad, the corner is the end
     of the row. */
  .view-toggle #add-order-btn{order:9!important;margin-left:auto!important;
    padding:4px 9px!important}
  /* Add order is the plus alone on every touch screen, not only a narrow one,
     so the row has a chance of finishing on one line. */
  #add-order-btn .ao-text{display:none!important}
  .add-order-icon{font-size:11px!important;margin-right:0!important}
  .view-toggle #dt-break,.view-toggle .mobile-row-break{display:none!important}
  /* A narrow screen takes two lines, and there Add order belongs in the top
     corner with Month / Week / Day rather than down on the second line
     (Odile, on her phone, 23 Sep). The break after it keeps that group whole,
     so on a screen too narrow to hold all six, Add order can only drop to a
     line of its own and never land in the middle of the view's own tools. */
  @media (max-width:760px){
    .view-toggle #add-order-btn{order:2!important}
    .view-toggle #dt-break{display:block!important;order:3!important;flex-basis:100%;
      height:0;margin:0;min-height:0!important}
  }
  /* "P/D" rather than "Pick up / Delivery" on an iPad too: it is what tips the
     row onto one line there. */
  .dt-label .dt-long{display:none}
  .dt-label .dt-short{display:inline}
}
/* Card #269: the order form pause banner, under the top bar */
.form-pause-banner{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:10px 14px;border-radius:12px;background:#fff4e0;border:1px solid #f0dca8;color:#7a4a00;font-size:13px;font-weight:600;line-height:1.4}
.form-pause-banner[hidden]{display:none}
.form-pause-banner .ti{font-size:18px;flex:none}
.form-pause-banner span{flex:1;min-width:0}
.form-pause-banner .fpb-btn{flex:none;border:1px solid #d79862;background:#fff;color:#7a4a00;border-radius:999px;padding:6px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.form-pause-banner .fpb-btn:hover{background:#fdf3e6}
@media (max-width:760px){.form-pause-banner{flex-wrap:wrap}.form-pause-banner span{flex:1 1 calc(100% - 28px)}.form-pause-banner .fpb-btn{margin-left:28px}}

/* Card #252: pop-up sales. Teal, so a pop-up never reads as an order status. */
:root{--pu:#1f7a74;--pu-tint:#e6f4f2;--pu-line:#b7ded9}
.wk-w-h.pu{color:var(--pu)}
.wk-w-chip.pu{background:var(--pu-tint);border-color:var(--pu-line)}
.wk-w-chip.pu .wk-w-txt b{color:var(--pu)}
.wk-w-chip.pu.got{background:#f3faf0;border-color:#cfe7c6}
.week-chip.pu{background:var(--pu-tint);border:1px solid var(--pu-line);color:var(--purple);cursor:pointer}
.week-chip.pu b{color:var(--pu)}
.bk-sec.pu-sec{color:var(--pu)}
#ao-choose{position:absolute;z-index:400;width:260px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(59,42,38,.16);overflow:hidden}
#ao-choose button{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;width:100%;padding:10px 12px;font-family:Poppins,sans-serif;font-size:12px;color:var(--purple);cursor:pointer;border-top:1px solid var(--border)}
#ao-choose button:first-child{border-top:none}
#ao-choose button span{font-size:10.5px;color:var(--text-muted)}
#ao-choose button:hover,#ao-choose button:focus-visible{background:var(--pink-pale)}
#ao-choose button[data-k="popup"] b{color:var(--pu)}
#popup-modal{position:fixed;inset:0;z-index:9000;background:rgba(59,42,38,.45);overflow-y:auto;padding:0 12px}
#popup-modal .pu-box{max-width:520px}
.pu-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pu-lbl{margin-top:12px}
.pu-row{display:grid;grid-template-columns:minmax(0,1fr) 92px 32px;gap:6px;align-items:center;margin-bottom:6px}
.pu-x{border:1px solid var(--border);background:#fff;border-radius:50%;width:30px;height:30px;color:var(--text-muted);cursor:pointer}
.pu-x:hover{color:var(--red);border-color:#f0caca}
.pu-add{border:none;background:none;padding:2px 0;font-family:Poppins,sans-serif;font-size:12px;font-weight:600;color:var(--pink);cursor:pointer}
.pu-total{font-size:12px;font-weight:600;color:var(--purple);margin-top:8px;font-variant-numeric:tabular-nums}
.pu-err{font-size:12px;color:var(--red);margin-top:6px;min-height:1px}
.pu-btns{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}
.pu-sp{flex:1}
@media (max-width:600px){.pu-g3{grid-template-columns:1fr 1fr}.pu-g3>div:first-child{grid-column:1/-1}#popup-modal .field-input{font-size:16px}}
/* Card #279: pop-up pre-orders. Name and phone on the first line, the rest on the second; nothing wraps. */
.pu-presec{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}
.pu-presec>.pu-lbl:first-child{margin-top:0}
.pu-prow{display:grid;grid-template-columns:minmax(0,1fr) 64px auto auto 30px;gap:6px;align-items:center;padding:8px 0;border-bottom:1px dashed var(--border)}
.pu-prow .pu-pn{grid-column:1/3}.pu-prow .pu-pp{grid-column:3/6}
.pu-chk{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--purple);white-space:nowrap;cursor:pointer}
.pu-chk input{accent-color:var(--pink)}
@media (max-width:600px){.pu-prow .field-input{font-size:16px}.pu-prow{grid-template-columns:minmax(0,1fr) 58px auto auto 30px;gap:5px}}
/* Card #252 step 2: the end-of-day tally */
.pu-tally{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}
.pu-tally>.pu-lbl:first-child{margin-top:0}
.pu-tnote{font-size:11.5px;color:var(--text-muted);margin-bottom:6px}
.pu-ttbl{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.pu-ttbl th{text-align:left;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:4px 6px;border-bottom:1px solid var(--border)}
.pu-ttbl td{padding:5px 6px;border-bottom:1px solid var(--border)}
.pu-ttbl th:not(:first-child),.pu-ttbl td:not(:first-child){text-align:right;width:76px}
.pu-ttbl tfoot td{font-weight:700;border-bottom:none}
.pu-ttbl .pu-left{width:70px;text-align:right;padding:5px 7px}
.pu-tk{max-width:180px}
.wk-w-chip.pu.late{border-color:#e7c48f;background:#fdf6ea}
.wk-w-chip.pu.late .wk-w-txt b{color:#8a5424}
@media (max-width:600px){.pu-ttbl th:not(:first-child),.pu-ttbl td:not(:first-child){width:60px}.pu-ttbl .pu-left{width:58px;font-size:16px}}
/* Card #252 step 4: pop-ups in Reports */
.rep-tag.pu{color:#1f7a74;background:#e6f4f2;border-color:#b7ded9}
.rep-putw{overflow-x:auto}
.rep-putbl{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.rep-putbl th{padding:6px 10px;text-align:right;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);white-space:nowrap;border-bottom:1px solid var(--border)}
.rep-putbl td{padding:6px 10px;text-align:right;border-bottom:1px solid var(--border);white-space:nowrap}
.rep-putbl th:first-child,.rep-putbl td:first-child{text-align:left}
/* Card #280: Email Routing rows */
.er-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.er-row:last-of-type { border-bottom: 0; }
.er-row .bs-help { margin: 2px 0 6px 24px; }
.er-row .field-input { width: 100%; max-width: 420px; margin-left: 24px; box-sizing: border-box; }
@media (max-width: 760px) { .er-row .field-input { max-width: none; width: calc(100% - 24px); } }

/* Card #295: the order card's small controls on a phone. iOS zooms the whole page when a field under
   16px takes focus, so each one keeps a real 16px and is drawn at the size it always had. Same rule as
   the calendar row above: pickers use zoom, and anything that opens the keyboard is scaled, because iOS
   reads a typing field's size after zoom. Every length is the wanted one divided by the scale, and the
   room left over is taken back with negative margins, so nothing on the card moves. */
.rd-paybar-box,.rd-addr-box{display:contents}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
  .rd-when .rd-addr-box{display:block;flex:1;min-width:160px}
  .rd-addr-box .rd-addr-in{font-size:16px!important;transform:scale(.6875);transform-origin:left top;width:145.45%;min-width:0!important;padding:4.36px 8.73px!important;
    border-width:1.45px;border-radius:8.73px}
  .rd-statusbar select.status-select,.rd-pin select.status-select{font-size:16px!important;zoom:.625;height:35.2px;padding:4.8px 35.2px 4.8px 14.4px!important;
    border-width:1.6px!important;background-position:right 12.8px center!important;background-size:16px 9.6px!important}
  input.rd-when-in{font-size:16px!important;zoom:.6875;height:33.45px;min-width:167.3px;padding:4.36px 8.73px!important;border-width:1.45px!important;border-radius:8.73px!important}
  select.rd-when-in{font-size:16px!important;zoom:.6875;height:37.1px;padding:4.36px 13.1px 4.36px 8.73px!important;border-width:1.45px!important;border-radius:8.73px!important}
  .qb-add-row select{font-size:16px!important;zoom:.6875;min-height:37.1px;min-width:203.6px!important;padding:4.36px 8.73px!important;border-width:1.45px!important;border-radius:8.73px!important}
  select.qb-input{font-size:16px!important;zoom:.6875;height:25.45px}
  select.detail-edit-ctl{font-size:16px!important;zoom:.75;height:32.67px;padding:2.67px 11.33px 2.67px 8px!important;border-width:1.33px!important;border-radius:6.67px!important}
  .detail-table select.detail-edit-ctl{max-width:calc((100vw - 150px)/.75)!important}

  .qb-price{font-size:16px!important;display:block;transform:scale(.6875);transform-origin:left top;width:101.82px;height:24px;margin:0 -31.82px -7.5px auto}
  input.qb-input{font-size:16px!important;display:block;transform:scale(.6875);transform-origin:left top;width:145.45%;height:24px;margin:0 -45.45% -7.5px 0}
  .qb-note-wrap{display:flow-root}
  .qb-note{font-size:16px!important;display:block;transform:scale(.6875);transform-origin:left top;width:145.45%;height:72.73px;min-height:72.73px;padding:8.73px 14.55px;
    border-width:1.45px;border-radius:8.73px;margin:0 -45.45% -16.23px 0}
  .rd-paybar .rd-paybar-box{display:block;flex:1 1 90px;min-width:90px;height:24.5px}
  .rd-paybar-box .rd-paybar-in{font-size:16px!important;display:block;transform:scale(.6875);transform-origin:left top;width:145.45%;max-width:none;min-width:0;height:35.64px;
    padding:4.36px 8.73px!important;border-width:1.45px;border-radius:8.73px}
  input.detail-edit-ctl{font-size:16px!important;transform:scale(.75);transform-origin:left top;vertical-align:top;width:181.33px;max-width:133.33%!important;height:31.33px;
    padding:2.67px 8px!important;border-width:1.33px!important;border-radius:6.67px!important;margin:0 -45.33px -4.83px 0}
  .rd-cc-edit input,.rd-cc-edit input[type=tel]{font-size:16px!important;transform:scale(.6875);transform-origin:left top;flex:0 0 auto;width:145.45%;max-width:none!important;height:26.62px;
    padding:1.45px 11.64px!important;margin:0 -45.45% -8.32px 0}
  .rd-contact-pop .rd-cc-edit input{border-width:1.45px}
  span[id^="df-edit-"] input{font-size:16px!important;transform:scale(.75);transform-origin:left top;vertical-align:top;width:min(73.33vw,266.67px);max-width:none!important;margin-right:calc(-1*min(18.33vw,66.67px))}
}

/* Card #296: the text sizes. New rules use these, and older rules move over as cards touch them. */
:root{--t-xs:10px;--t-sm:11px;--t-base:12px;--t-md:13px;--t-lg:15px;--t-xl:18px}
/* Card #296: the smallest phone text is 10px. The summary tiles, calendar capacity pills and day strip summary stay smaller on purpose: at 10px their words are cut off. */
@media (max-width:760px),(pointer:coarse) and (hover:none){
  .week-closed-lbl,.week-day-sum,.dv-f .k,.rd-when-lbl,.detail-table td:first-child,.qb-table th,.ov-step .ov-fig-sh,.rd-band-tools .rd-chip,.rep-tag,[style*="font-size:9px"],[style*="font-size:9.5px"],[style*="font-size:8px"],[style*="font-size:8.5px"]{font-size:var(--t-xs)!important}
}
/* Card #296: larger tap areas on touch screens. The area is invisible, so nothing changes how a control looks or where it sits. Each size stops short of the next control. */
@media (pointer:coarse){
  .rd-band-tools .rd-chip,.rd-when-change,.qb-del,.scope-btn,.ov-chip,.ov-card-h,.ov-done-h,.ov-cal-h button,.btn-sm{position:relative}
  .rd-band-tools .rd-chip::after,.rd-when-change::after,.qb-del::after,.scope-btn::after,.ov-chip::after,.ov-card-h::after,.ov-done-h::after,.ov-cal-h button::after,.btn-sm::after{content:"";position:absolute;top:var(--tap-t,-6px);bottom:var(--tap-b,-6px);left:var(--tap-x,-3px);right:var(--tap-x,-3px)}
  .rd-band-tools .rd-chip{--tap-t:-14px;--tap-b:-6px;--tap-x:-3px}
  .rd-when-change{--tap-t:-8px;--tap-b:-14px;--tap-x:-8px}
  .qb-del{--tap-t:-12px;--tap-b:-12px;--tap-x:-1px}
  .scope-btn{--tap-t:-9px;--tap-b:-4px;--tap-x:-3px}
  .ov-chip{--tap-t:-3px;--tap-b:-3px;--tap-x:-3px}
  .ov-card-h{--tap-t:-10px;--tap-b:-3px;--tap-x:0px}
  .ov-done-h{--tap-t:-6px;--tap-b:-6px;--tap-x:0px}
  .ov-cal-h button{--tap-t:-9px;--tap-b:-9px;--tap-x:-8px}
  .btn-sm{--tap-t:-6px;--tap-b:-6px;--tap-x:-3px}
}
/* Card #296: the note shown while a screen loads for the first time, or when it could not load. */
.od-note{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:100000;display:flex;align-items:center;gap:12px;box-sizing:border-box;width:max-content;max-width:calc(100vw - 24px);padding:10px 14px;border-radius:10px;background:var(--purple);color:#fff;font-family:Poppins,sans-serif;font-size:var(--t-md);line-height:1.4;box-shadow:0 8px 24px rgba(59,42,38,.25)}
.od-note button{flex:none;min-height:36px;padding:0 14px;border:0;border-radius:999px;background:#fff;color:var(--purple);font-family:inherit;font-size:var(--t-md);font-weight:600;cursor:pointer;white-space:nowrap}
.od-note button.od-x{min-width:36px;padding:0;background:none;color:#fff;font-size:var(--t-xl);line-height:1}
/* Card #296: the quick finder. */
.qf-overlay{position:fixed;inset:0;z-index:99990;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;background:rgba(59,42,38,.45);box-sizing:border-box}
.qf-box{display:flex;flex-direction:column;width:100%;max-width:560px;max-height:70vh;background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(59,42,38,.3);overflow:hidden}
.qf-input{flex:none;width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--border);padding:15px 18px;font-family:Poppins,sans-serif;font-size:16px;color:var(--text);outline:none}
.qf-input:focus-visible{box-shadow:inset 0 0 0 2px var(--pink)}
.qf-list{overflow-y:auto;padding:6px}
.qf-head{padding:9px 12px 4px;font-size:var(--t-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.qf-row{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:9px;cursor:pointer;color:var(--purple)}
.qf-row[aria-selected="true"]{background:var(--pink-pale)}
.qf-row .ti{flex:none;font-size:18px}
.qf-words{display:flex;flex-direction:column;min-width:0}
.qf-words b{font-size:var(--t-md);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qf-words small{font-size:var(--t-sm);color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qf-none{padding:18px 12px;font-size:var(--t-md);color:var(--text-muted);text-align:center}
