/* ═══════════════════════════════════════════════════════════════════════════════════════════
   ENCORE on Maine Couriers: what Maine Couriers adds to the cloned look (8 November 2026)

   encore/screens.css is the All Stars compositions, ported and scoped (generated, never hand-edited).
   This file holds what only Maine Couriers has: its job statuses as colours, the job page's two-column
   layout around the Maine Couriers panels, the dispatch board, the phone bar's extra controls and the
   Encore finish on Maine Couriers components that All Stars never had. Everything here is scoped to
   html[data-look="encore"], so Midnight Glass is untouched.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */

/* ── the job statuses as colours (the validated /dataviz steps from screens.css; the words always sit beside) ── */
html[data-look="encore"] { --mst-invoiced: #6a6a6a; }
html[data-look="encore"]:not([data-theme="light"]) { --mst-invoiced: #a3a3a8; }
html[data-look="encore"] .enc .ms-pending { --dot: var(--st-new); }
html[data-look="encore"] .enc .ms-assigned { --dot: var(--st-quoted); }
html[data-look="encore"] .enc .ms-collected { --dot: var(--st-deposit); }
html[data-look="encore"] .enc .ms-transit { --dot: var(--st-completed); }
html[data-look="encore"] .enc .ms-delivered { --dot: var(--st-confirmed); }
html[data-look="encore"] .enc .ms-invoiced { --dot: var(--mst-invoiced); }
html[data-look="encore"] .enc .ms-cancelled { --dot: var(--st-cancelled); }
html[data-look="encore"] .enc .ms-off { --dot: #6a6a6a; }
html[data-look="encore"] .enc .cal-dots i[class^="ms-"], html[data-look="encore"] .enc .cf-dot[class*="ms-"] { background: var(--dot); }
html[data-look="encore"] .enc .legend i[class^="ms-"] { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); margin-right: 6px; }

/* ── the frame: Midnight Glass's sun and moon is the team's switch; Encore's light or dark lives in the look picker ── */
html[data-look] #theme-toggle { display: none; }
html[data-look="encore"] #brand-switch { border-radius: 999px; min-height: 38px; }
@media (max-width: 560px) {
  /* a phone's bar is the logo and the search: the brand filter and the old system move into the Menu sheet */
  html[data-look="encore"][data-shell="rail"] #brand-switch, html[data-look="encore"][data-shell="rail"] #topbar a[href="legacy/index.html"] { display: none; }
}
/* the Menu sheet's own rows that Maine Couriers adds (shell.css owns the rest of the sheet) */
html[data-look] .lk-mbrand { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--lkp-line); border-radius: 12px; color: var(--lkp-ink); font: 600 14px var(--lkp-font); }
html[data-look] .lk-mbrand span { flex: none; }
html[data-look] .lk-mbrand select { flex: 1; min-width: 0; min-height: 40px; border: 0; background: transparent; color: var(--lkp-ink); font: 500 14px var(--lkp-font); }
html[data-look] .lk-msync { width: 9px; height: 9px; border-radius: 50%; background: var(--lk-good); flex: none; }

/* ── the rail's Calendar link (added by encore.js while Encore is on) ── */
html[data-look="encore"] .rl.en-rl svg { width: 17px; height: 17px; }
html[data-look="encore"] .sync { white-space: nowrap; }

/* ── Today ── */
html[data-look="encore"] .enc .en-feed { padding: 8px 20px; }
html[data-look="encore"] .enc .en-feed .feed .ev { padding: 10px 0; }

/* ── Bookings: the Cards view draws tickets ── */
html[data-look="encore"] .en-tkcell { min-width: 0; }
html[data-look="encore"] .en-tkcell .tk-wrap, html[data-look="encore"] .en-tkcell .tk { height: 100%; }

/* ── Bookings: the dispatch board (Linear ccd45807: columns with their counts, compact cards, the reference first) ── */
html[data-look="encore"] .enc .en-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 1fr); gap: 14px; overflow-x: auto;
  overscroll-behavior-x: contain; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
html[data-look="encore"] .enc .bd-col { display: flex; flex-direction: column; min-width: 0; border-radius: var(--lk-r-card); background: var(--lk-card-2); padding: 10px; scroll-snap-align: start; }
html[data-look="encore"] .enc .bd-h { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px 8px; font-size: 14px; color: var(--lk-ink); }
html[data-look="encore"] .enc .bd-h > i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
html[data-look="encore"] .enc .bd-h b { font-weight: 650; }
html[data-look="encore"] .enc .bd-n { color: var(--lk-mute); font-weight: 500; font-variant-numeric: tabular-nums; }
html[data-look="encore"] .enc .bd-add { margin-left: auto; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--lk-ink-2); }
@media (hover: hover) { html[data-look="encore"] .enc .bd-add:hover { background: var(--lk-card); color: var(--lk-ink); } }
html[data-look="encore"] .enc .bd-add svg { width: 18px; height: 18px; }
html[data-look="encore"] .enc .bd-list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
html[data-look="encore"] .enc .bd-card { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 11px 12px 11px 14px; border-radius: 12px; background: var(--lk-card);
  border: 1px solid var(--lk-line); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); color: var(--lk-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .12s; }
html[data-look="encore"] .enc .bd-card::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--st, var(--lk-mute)); }
@media (hover: hover) { html[data-look="encore"] .enc .bd-card:hover { border-color: var(--lk-line-2); box-shadow: var(--lk-shadow-lift); } }
html[data-look="encore"] .enc .bd-card:active { transform: scale(.99); }
html[data-look="encore"] .enc .bd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html[data-look="encore"] .enc .bd-ref { font-size: 12.5px; font-weight: 600; color: var(--lk-mute); letter-spacing: .01em; }
html[data-look="encore"] .enc .bd-av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 10.5px/1 var(--font-b); background: var(--lk-ink); color: var(--lk-page); flex: none; }
html[data-look="encore"] .enc .bd-av.none { background: var(--lk-card-2); color: var(--lk-mute); border: 1px dashed var(--lk-field); }
html[data-look="encore"] .enc .bd-av svg { width: 13px; height: 13px; }
html[data-look="encore"] .enc .bd-name { font-size: 14.5px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
html[data-look="encore"] .enc .bd-route { font-size: 13px; color: var(--lk-ink-2); overflow-wrap: anywhere; }
html[data-look="encore"] .enc .bd-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
html[data-look="encore"] .enc .bd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--lk-ink-2); background: var(--lk-card-2); border: 1px solid var(--lk-line); white-space: nowrap; }
html[data-look="encore"] .enc .bd-chip svg { width: 12px; height: 12px; }
html[data-look="encore"] .enc .bd-chip.now { background: var(--lk-acc-fill); border-color: var(--lk-acc-fill); color: var(--lk-acc-ink); }
html[data-look="encore"] .enc .bd-chip.warn { color: var(--lk-warn); border-color: color-mix(in srgb, var(--lk-warn) 40%, transparent); background: color-mix(in srgb, var(--lk-warn) 9%, var(--lk-card)); }
html[data-look="encore"] .enc .bd-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 3px; padding-top: 7px; border-top: 1px solid var(--lk-line); }
html[data-look="encore"] .enc .bd-foot b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
html[data-look="encore"] .enc .bd-foot small { font-size: 12.5px; color: var(--lk-mute); }
html[data-look="encore"] .enc .bd-more { margin-top: 2px; min-height: 40px; border: 1px dashed var(--lk-field); border-radius: 10px; background: transparent; color: var(--lk-ink); font: 600 13px var(--font-b); cursor: pointer; }
html[data-look="encore"] .enc .bd-none { margin: 6px 4px; font-size: 13px; color: var(--lk-mute); }
html[data-look="encore"] .enc .en-board-note { margin-top: 10px; }

/* ── a job's page: the record layout around the Maine Couriers panels ── */
html[data-look="encore"] .en-rec-page { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
html[data-look="encore"] .en-rec-head .pg { gap: 14px; }
html[data-look="encore"] .en-rec-head .rec-head { gap: 10px; }
html[data-look="encore"] .en-rec-titles { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
html[data-look="encore"] .en-rec-head .tags .bstat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--lk-card-2); color: var(--lk-ink); border: 0; }
html[data-look="encore"] .en-rec-head .tags .bstat .chip { border: 0; padding: 0; background: none; }
html[data-look="encore"] .en-rec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 392px); gap: 28px; align-items: start; }
html[data-look="encore"] .en-rec-main, html[data-look="encore"] .en-rec-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
html[data-look="encore"] .en-rec-main > .enc { display: flex; flex-direction: column; gap: 16px; }
html[data-look="encore"] .en-rec-main > .glass, html[data-look="encore"] .en-rec-main > div[style*="margin-bottom"] { margin-bottom: 0 !important; }
html[data-look="encore"] .en-acts { padding: 18px 20px 20px; border-radius: var(--lk-r-card); background: var(--lk-card); border: var(--lk-card-edge); }
html[data-look="encore"] .en-acts h3 { margin: 0 0 12px; font: 650 15px/1.3 var(--font-b); color: var(--lk-ink); }
html[data-look="encore"] .en-acts .toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
html[data-look="encore"] .en-acts .toolbar .btn { flex: 1 1 auto; justify-content: center; }
/* the route as numbered stops (PamPam ec262ecb) */
html[data-look="encore"] .enc .en-stoplist { margin: 0; padding: 0; list-style: none; }
html[data-look="encore"] .enc .en-stop { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; }
html[data-look="encore"] .enc .en-stop::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--lk-line-2); }
html[data-look="encore"] .enc .en-stop.last { padding-bottom: 0; }
html[data-look="encore"] .enc .en-stop.last::before { display: none; }
html[data-look="encore"] .enc .en-sn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-b); background: var(--lk-card-2); color: var(--lk-ink); border: 2px solid var(--lk-line-2); }
html[data-look="encore"] .enc .en-stop.del .en-sn { background: var(--lk-ink); color: var(--lk-page); border-color: var(--lk-ink); }
html[data-look="encore"] .enc .en-stop.last .en-sn { background: var(--lk-acc-fill); color: var(--lk-acc-ink); border-color: var(--lk-acc-fill); }
html[data-look="encore"] .enc .en-stop b { display: block; font-size: 14.5px; font-weight: 650; color: var(--lk-ink); padding-top: 5px; }
html[data-look="encore"] .enc .en-stop small { display: block; font-size: 13px; color: var(--lk-mute); margin-top: 2px; overflow-wrap: anywhere; }
/* one column (a tablet, a phone, a narrow pop-up): the ticket and its step track come straight after the cover and the
   route, then the Maine Couriers panels, then every action, so the next step is never a long scroll away */
@media (max-width: 1180px) {
  html[data-look="encore"] .en-rec { display: flex; flex-direction: column; gap: 16px; }
  html[data-look="encore"] .en-rec-main, html[data-look="encore"] .en-rec-side { display: contents; }
  html[data-look="encore"] .en-rec-main > .enc:first-child { order: 1; }
  html[data-look="encore"] .en-rec-side > .enc { order: 2; }
  html[data-look="encore"] .en-rec-main > :not(.enc) { order: 3; }
  html[data-look="encore"] .en-rec-side > .en-acts { order: 4; }
}
/* the job's pop-up: Midnight Glass's shell is only a width (its glass panels were the surface), so Encore gives it the white sheet */
html[data-look="encore"] .bkmodal { background: var(--lk-page); border-radius: var(--lk-r-pop); padding: 26px 30px 30px; box-shadow: var(--lk-shadow-pop); }
@media (max-width: 720px) { html[data-look="encore"] .bkmodal { padding: 18px 14px 22px; border-radius: 16px; } }
/* the job's pop-up as a panel on the right (Jermaine, 9 November 2026): on a desktop the list stays open and usable beside it,
   squeezed left to make room; a click on another row swaps the panel (openBookingModal redraws in place); Close, Esc and
   "Full page" work as before. CSS only: views.js still opens and closes the same shell. A phone keeps the full sheet. */
@media (min-width: 1100px) {
  html[data-look="encore"] { --en-panel-w: clamp(560px, 44vw, 860px); --en-panel-top: 77px; }
  /* under the top bar (sticky, 77px at every desktop width), so search, the look button and New stay in reach */
  html[data-look="encore"] .bkmodal-overlay { inset: var(--en-panel-top) 0 0 auto; width: var(--en-panel-w); padding: 0; background: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; align-items: stretch; animation: en-panel-in .24s cubic-bezier(.2,.8,.2,1); }
  html[data-look="encore"] .bkmodal { width: 100%; min-height: 100%; margin: 0; border-radius: 0; padding: 22px 26px 34px;
    border-left: 1px solid var(--lk-line-2); box-shadow: -18px 0 48px rgba(10, 14, 30, .12); }
  html[data-look="encore"] body:has(> #bkmodal[style*="flex"]) { overflow: auto !important; }
  html[data-look="encore"] body:has(> #bkmodal[style*="flex"]) #view { margin-right: calc(var(--en-panel-w) - 20px); }
  /* the record inside the panel is one column, whatever the screen's width */
  html[data-look="encore"] .bkmodal .en-rec { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  html[data-look="encore"] .bkmodal .en-rec-main > *, html[data-look="encore"] .bkmodal .en-rec-side > * { width: auto; max-width: none; min-width: 0; align-self: stretch; }
  html[data-look="encore"] .bkmodal .en-rec .rec-photo, html[data-look="encore"] .bkmodal .en-rec .en-stops { width: 100%; }
  html[data-look="encore"] .bkmodal .en-rec-main, html[data-look="encore"] .bkmodal .en-rec-side { display: contents; }
  html[data-look="encore"] .bkmodal .en-rec-main > .enc:first-child { order: 1; }
  html[data-look="encore"] .bkmodal .en-rec-side > .enc { order: 2; }
  html[data-look="encore"] .bkmodal .en-rec-main > :not(.enc) { order: 3; }
  html[data-look="encore"] .bkmodal .en-rec-side > .en-acts { order: 4; }
}
@keyframes en-panel-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html[data-look="encore"] .bkmodal-overlay { animation: none; } }

/* ── New booking: the ticket fills as you type, in place of the summary's photograph ── */
html[data-look="encore"] .nb-sumhero { display: none; }
html[data-look="encore"] .en-nbtk { margin: 0 0 16px; }

/* ── calm motion: the compositions stop moving for anyone who asked for less ── */
@media (prefers-reduced-motion: reduce) {
  html[data-look="encore"] .enc *, html[data-look="encore"] .enc *::before, html[data-look="encore"] .enc *::after { animation: none !important; transition: none !important; }
}

/* ── the bar on a tablet or phone: Maine Couriers has more in it than All Stars (brand filter, sync, the old system),
   so below a desk the words go and the icons stay (each keeps its words for a screen reader) ── */
@media (max-width: 1099px) {
  html[data-look="encore"] #topbar { gap: 8px; }
  html[data-look="encore"] #topbar .lbl-sm, html[data-look="encore"] #topbar .lk-btn-name { display: none; }
  html[data-look="encore"] #topbar .sync { padding: 0 6px; }
  html[data-look="encore"] #topbar #sync-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-look="encore"] #topbar a.btn-volt { padding: 10px 14px; }
}
@media (max-width: 760px) {
  html[data-look="encore"] #topbar a.btn-volt { font-size: 0; gap: 0; padding: 0; width: 44px; height: 44px; justify-content: center; }
  html[data-look="encore"] #topbar a.btn-volt svg { width: 20px; height: 20px; }
  html[data-look="encore"] #topbar #brand-switch { max-width: 132px; }
}

/* ── Maine Couriers components All Stars never had, in the Encore finish (found by encore/tools/gate.mjs) ── */
/* secondary words that Midnight Glass dims with an inline opacity keep their own ink in Encore: the pill counts, the edit
   pencils, "basis unconfirmed", "upload-driven", the margin under a price (All Stars' lesson, /refero §5: "an opacity on a
   count inside a pill passed in one look and fell to 3.5:1 in another") */
html[data-look="encore"] #view span[style*="opacity"], html[data-look="encore"] #bkmodal-body span[style*="opacity"],
html[data-look="encore"] #modal-root span[style*="opacity"] { opacity: 1 !important; }
html[data-look="encore"] .tbl th .sarr.sarr-dim, html[data-look="encore"] .tbl th.th-sort:hover .sarr.sarr-dim { opacity: 1; color: var(--lk-mute); }
/* Reset Filters: Midnight Glass paints it with --bad, which Encore's dark re-points to a pink for words; it takes the error FILL */
html[data-look="encore"] .btn-reset { background: var(--lk-bad-fill); border-color: var(--lk-bad-fill); color: #ffffff; box-shadow: none; }
html[data-look="encore"] .btn-reset:hover:not(:disabled) { transform: none; box-shadow: none; filter: brightness(1.08); }
/* the send flow's step pills (flowShell) read --accent and --ink-soft, which only ever had fallbacks: Encore sets both */
html[data-look="encore"] { --accent: var(--lk-acc-soft); --ink-soft: var(--lk-mute); }
html[data-look="encore"]:not([data-theme="light"]) { --accent: #ff7a7a; }
/* sentence case inside the job's pop-up too (flat.css covers #app and #modal-root; the pop-up is its own overlay) */
html[data-look] #bkmodal .kick, html[data-look] #bkmodal .lbl, html[data-look] #bkmodal .tbl thead th, html[data-look] #bkmodal .chip,
html[data-look] #bkmodal .fld label, html[data-look] #bkmodal .panel-h h3, html[data-look] #bkmodal .fsec-h h3, html[data-look] #bkmodal .bkj-label,
html[data-look] #bkmodal .mini { text-transform: none; letter-spacing: 0; }

/* ═══════════════ ROUND 2 (8 November 2026): the lists, the record pages and Settings on All Stars' compositions ═══════════════ */

/* ── a record page's side card where Maine Couriers keeps its own columns (a quote's right column, the invoice editor) ── */
html[data-look="encore"] .en-sidecard { margin-bottom: 16px; }
html[data-look="encore"] .en-sidecard .side-tk { margin: 0; }
html[data-look="encore"] .en-grid-tk > .en-sidecard { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
html[data-look="encore"] .en-inv-tk .sd-money .due { background: var(--lk-acc-soft); }

/* ── Settings: the sections down the side, with All Stars' own values (screens.css .setx / .set-nav / .set-tab, c8c6dff)
   applied to Maine Couriers' own .tabs: a 230px column, the open section a soft grey pill in weight 650 (never the dark
   pressed pill), one sideways-scrolling row of sections under 1100px ── */
html[data-look="encore"] .en-set { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
html[data-look="encore"] .en-set > .tabs { position: sticky; top: 92px; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px;
  width: auto; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
html[data-look="encore"] .en-set > .tabs .tab { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; margin: 0; padding: 10px 14px;
  border: 0; border-radius: 12px; background: none; box-shadow: none; text-align: left; font: 500 14.5px/1.3 var(--font-b); color: var(--lk-ink-2); }
@media (hover: hover) { html[data-look="encore"] .en-set > .tabs .tab:hover { background: var(--lk-card-2); color: var(--lk-ink); } }
html[data-look="encore"] .en-set > .tabs .tab.on { background: var(--lk-card-2); color: var(--lk-ink); font-weight: 650; border: 0; box-shadow: none; }
html[data-look="encore"] .en-set > .tabs .tab svg { width: 18px; height: 18px; }
html[data-look="encore"] .en-set > .tabs .tab.on svg { stroke: var(--lk-ink); }
@media (max-width: 1100px) {
  html[data-look="encore"] .en-set { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html[data-look="encore"] .en-set > .tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  html[data-look="encore"] .en-set > .tabs::-webkit-scrollbar { display: none; }
  html[data-look="encore"] .en-set > .tabs .tab { white-space: nowrap; flex: none; }
}

/* ── LISTS: every Maine Couriers table as All Stars' quiet list (Brickfeed's request list): roomier rows on hairlines ── */
html[data-look="encore"] .tbl.en-q thead th { padding-top: 12px; padding-bottom: 12px; font-size: 13px; font-weight: 600; }
html[data-look="encore"] .tbl.en-q tbody td { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
html[data-look="encore"] .tbl.en-q tbody tr { transition: background .15s; }
html[data-look="encore"] .tbl.en-q .refno, html[data-look="encore"] .tbl.en-q td.ref { font-size: 15px; font-weight: 600; }
html[data-look="encore"] .tbl.en-q .money { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── …and a card per row on a phone: the first value is the card's title, every other value wears its column's heading ── */
@media (max-width: 860px) {
  html[data-look="encore"] .tbl-wrap:has(> .tbl.en-q) { overflow: visible; border: 0; background: none; box-shadow: none; }
  html[data-look="encore"] .tbl.en-q, html[data-look="encore"] .tbl.en-q > tbody { display: block; width: 100%; min-width: 0 !important; }
  html[data-look="encore"] .tbl.en-q > thead { display: none; }
  html[data-look="encore"] .tbl.en-q > tbody > tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px;
    margin: 0 0 12px; padding: 14px 16px; border: var(--lk-card-edge); border-radius: var(--lk-r-card); background: var(--lk-card); }
  html[data-look="encore"] .tbl.en-q > tbody > tr > td { display: block; min-width: 0; padding: 0 !important; border: 0 !important; white-space: normal !important; text-align: left !important; overflow-wrap: break-word; }
  html[data-look="encore"] .tbl.en-q > tbody > tr > td:empty { display: none; }
  html[data-look="encore"] .tbl.en-q > tbody > tr > td[colspan] { grid-column: 1 / -1; }
  /* a cell with no heading (the row's actions, as a rule) runs across the card: a word is never split to fit a half */
  html[data-look="encore"] .tbl.en-q > tbody > tr > td:not([data-label]):not(.cb) { grid-column: 1 / -1; }
  html[data-look="encore"] .tbl.en-q > tbody > tr > td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 12px/1.3 var(--font-b); color: var(--lk-mute); }
  /* the record's own name or number is the card's title, across the card, with no label */
  html[data-look="encore"] .tbl.en-q > tbody > tr > td:first-child:not(.cb), html[data-look="encore"] .tbl.en-q > tbody > tr > td.cb + td { grid-column: 1 / -1; font-size: 15px; font-weight: 650; padding-right: 40px !important; }
  html[data-look="encore"] .tbl.en-q > tbody > tr > td:first-child:not(.cb)::before, html[data-look="encore"] .tbl.en-q > tbody > tr > td.cb + td::before { display: none; }
  /* the tick box sits in the card's corner */
  html[data-look="encore"] .tbl.en-q > tbody > tr > td.cb { position: absolute; top: 12px; right: 12px; }
  html[data-look="encore"] .tbl.en-q > tbody > tr > td.cb::before { display: none; }
}

/* ── round 2: the record head ──
   Its "‹ Quotes" link is the way back; Maine Couriers' own Back button (the same address) stays in the page, out of sight.
   Anything else a band carries sits under the title. */
html[data-look="encore"] .en-rec-head .en-acts-slot > .btn-back { display: none; }
html[data-look="encore"] .en-rec-head .en-band-rest { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
html[data-look="encore"] .en-rec-head .en-tags { flex-wrap: wrap; }

/* ── round 2: a record's ticket comes first once the two columns fold into one (Maine Couriers folds .grid2c at 1100px),
   as All Stars orders its record side card (.rec-side > .side-first { order: -1 }) ── */
@media (max-width: 1100px) {
  html[data-look="encore"] .grid2c:has(> div > .en-sidecard) { display: flex; flex-direction: column; gap: 14px; }
  html[data-look="encore"] .grid2c:has(> div > .en-sidecard) > div { display: contents !important; }
  html[data-look="encore"] .grid2c:has(> div > .en-sidecard) .en-sidecard { order: -1; margin-bottom: 0; }
  html[data-look="encore"] .en-grid-tk > .en-sidecard { grid-column: auto; grid-row: auto; order: -1; }
}

/* ── the ticket keeps its own insets on a phone: screens.css pads every .cd 18px under 860px, a rule that comes after the
   ticket's padding: 0 and so doubled its inset (found 8 November 2026; All Stars' screens.css has the same order) ── */
@media (max-width: 860px) {
  html[data-look="encore"] .enc .side-tk { padding: 0; }
  /* a row's actions keep each link whole */
  html[data-look="encore"] .tbl.en-q > tbody > tr > td:not([data-label]):not(.cb) a { white-space: nowrap; }
}

/* ── a page's actions wrap (All Stars' .pg-actions { flex-wrap: wrap }): on a phone Maine Couriers' band actions ran past the
   edge and were cut off, out of reach (found 8 November 2026 by the gate's cut-off-controls check) ── */
html[data-look="encore"] .band .actions { flex-wrap: wrap; }

/* ── nothing a phone cannot reach (the gate's cut-off-controls check, 8 November 2026). Maine Couriers draws these rows
   inline and never wraps them; Encore follows All Stars, whose rows of actions wrap: ──
   · a drop-down may shrink inside its row: its minimum is otherwise its longest option, and a customer's contact
     ("Priya Shah · logistics@…") pushed the Contact field's + button off the screen on Edit booking */
html[data-look="encore"] #view select { min-width: 0; max-width: 100%; }
/* · a row of buttons wraps (Data import ran its third button to 690px) */
html[data-look="encore"] #view [style*="display:flex"]:not([style*="overflow"]):has(> .btn),
html[data-look="encore"] #view [style*="display: flex"]:not([style*="overflow"]):has(> .btn) { flex-wrap: wrap; }
/* · a panel's header wraps (Remote control's search ran 13px past the edge) */
html[data-look="encore"] .panel-h { flex-wrap: wrap; }
/* · a job's route and its map stack on a phone (the 1fr 2fr row squeezed the map to 112px and cut its Maps button) */
@media (max-width: 860px) {
  html[data-look="encore"] #view [style*="grid-template-columns:1fr 2fr"] { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ── the ticket opens: the pop-up's cover takes the ticket's photograph (screens.css ported this rule as
   ".enc .vt-open .rec-photo", which never matches: the class sits on <html>) ── */
html[data-look="encore"].vt-open #bkmodal-body .rec-photo { view-transition-name: tk-cover; }
