/* Admin back end for BM Staff — layered on the BM tool's styles.css tokens.
   styles.css turns <body> into a sidebar+main flex shell at ≥920px; this page
   has its own header, so put body back to a normal block at every width. */
body, body.x { display: block !important; height: auto !important; overflow: visible !important; padding-bottom: 24px; }
.stats { display: flex; grid-template-columns: none; }
.stat { cursor: default; gap: 2px; padding: 10px 14px; }
.sf-top {
  display: flex; align-items: center; gap: 18px; padding: 10px 18px; background: var(--card);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; flex-wrap: wrap;
}
.sf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sf-nav { display: flex; gap: 4px; flex: 1; }
.sf-nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.sf-nav a.active { background: var(--hover); color: var(--text); }
.pill { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
#sf-user { color: var(--muted); font-size: 13px; }
#view { max-width: 1180px; margin: 0 auto; padding: 18px; }
.sf-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sf-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-right: auto; }
.sf-head input[type=date] { width: auto; }
.sf-head .btn, .sf-head button { width: auto; margin: 0; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; min-width: 110px; }
.stat b { display: block; font-family: var(--font-display); font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.warn { border-color: var(--red); }
table.sf { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 13.5px; }
table.sf th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--border); }
table.sf td { padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
table.sf tr.flag-unassigned td:first-child { box-shadow: inset 4px 0 var(--red); }
table.sf tr.flag-too_many_checkins td:first-child { box-shadow: inset 4px 0 var(--amber); }
/* Photo-check conveyor: the request given to ME is marked red (Sam, 16 Nov). */
table.sf tr.flag-mine td:first-child { box-shadow: inset 4px 0 var(--red); }
.problems .pr.mine { background: var(--red-light); }
table.sf select, table.sf input { font-size: 13px; padding: 6px 8px; width: auto; min-width: 140px; }
table.sf input.hrs { width: 64px; min-width: 0; }
.code-box { background: var(--primary-light); color: var(--primary); border-radius: 12px; padding: 8px 14px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.15em; }
.st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.st.unassigned { background: var(--red-light); color: var(--red); }
.st.assigned { background: var(--gray-light); color: var(--gray); }
.st.confirmed { background: var(--blue-light); color: var(--blue); }
.st.declined { background: var(--red-light); color: var(--red); }
.st.in_progress { background: var(--amber-light); color: var(--amber); }
.st.finished { background: var(--green-light); color: var(--green); }
.st.signed_out { background: var(--primary-light); color: var(--primary); }
.st.checked { background: var(--green-light); color: var(--green); }
.req { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.req .meta { color: var(--muted); font-size: 12.5px; }
.req .ask { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 4px 0; }
.req .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.req .acts button, .req .acts input { width: auto; margin: 0; }
.req .acts input { width: 70px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.card .form-actions button { width: auto; margin-right: 8px; }
.onecode { background: var(--green-light); color: var(--green); padding: 12px 14px; border-radius: 12px; margin-top: 12px; font-size: 14px; }
.onecode b { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.15em; }
.muted { color: var(--muted); }
.alert-line { background: var(--red-light); color: var(--red); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; margin-bottom: 4px; }
table.sf tr:has(.alert-line) td:first-child { box-shadow: inset 4px 0 var(--red); }
.link-btn { background: none; border: 0; padding: 0; margin: 0; width: auto; font: inherit; font-size: 12.5px; color: var(--primary); text-decoration: underline; cursor: pointer; }
.ph-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ph-modal { background: var(--card); border-radius: 16px; padding: 18px; width: min(1000px, 100%); max-height: 90vh; overflow: auto; }
.ph-modal .sf-head h2 { font-size: 18px; }
.sf-nav a.sf-home { color: var(--primary); font-weight: 600; }
/* Photo viewer with Previous / Next (Sam, 17 Nov 2026) */
.lb-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 40; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; }
.lb-stage { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.lb-media { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px; }
.lb-media img { cursor: pointer; }
.lb-bar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 0 2px; width: 100%; }
.lb-nav { background: #fff; color: #111; border: 0; border-radius: 999px; padding: 12px 24px; font-size: 16px; font-weight: 700; cursor: pointer; width: auto; min-width: 130px; margin: 0; }
.lb-nav:disabled { opacity: 0.3; cursor: default; }
.lb-nav.lb-ok { background: #16a34a; color: #fff; }
.lb-nav.lb-ok.last { box-shadow: 0 0 0 4px rgba(255,255,255,0.55); }
.lb-count { color: #fff; font-weight: 700; font-size: 15px; min-width: 64px; text-align: center; }
.appr .thumbs .viewall { align-self: center; margin-right: 6px; }
.lb-cap { color: #fff; font-size: 13px; padding: 8px 0 0; text-align: center; }
.lb-cap a { color: #ddd; margin-left: 6px; }
.lb-btn { background: rgba(255,255,255,0.15); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.lb-btn:disabled { opacity: 0.25; cursor: default; }
.lb-close { position: fixed; top: 12px; right: 12px; background: rgba(255,255,255,0.15); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }
@media (max-width: 600px) { .lb-btn { display: none; } .lb-bg { padding: 8px; } .lb-nav { padding: 12px 14px; min-width: 0; flex: 1; } .lb-nav.lb-ok { flex-basis: 100%; } }
.ph-grid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-grid-admin figure { margin: 0; }
.ph-grid-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: var(--gray-light); }
.ph-grid-admin figcaption { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 6px; }
.ph-grid-admin video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #000; display: block; }
.sf-head a.btn { width: auto; margin: 0; text-decoration: none; }
.small-btn { padding: 5px 10px; font-size: 12px; width: auto; margin: 0; }
@media (max-width: 700px) { .req { grid-template-columns: 1fr; } table.sf { font-size: 12.5px; } }

/* Traffic light (three colours only): red = to do, amber = in progress, green = done */
.tl { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; flex: none; }
.tl.red { background: var(--red); } .tl.amber { background: var(--amber); } .tl.green { background: var(--green); }
.tl.big { width: 18px; height: 18px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cl-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.cl-card .cl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cl-card .cl-head b { font-family: var(--font-display); font-size: 16px; flex: 1; }
.cl-card .cl-times { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cl-card .cl-flat { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; border-top: 1px solid var(--border-subtle); }
.cl-card .cl-flat .nm { flex: 1; }
.cl-card .cl-flat .tm { color: var(--muted); font-size: 12px; }
.cl-card .cl-flat .ok { color: var(--green); font-size: 12px; }
.cl-card .cl-flat .qy { color: var(--amber); font-size: 12px; }
.cl-card.light-red { border-left: 4px solid var(--red); } .cl-card.light-amber { border-left: 4px solid var(--amber); } .cl-card.light-green { border-left: 4px solid var(--green); }
.problems { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 18px; }
.problems .pr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
.problems .pr:last-child { border-bottom: 0; }
.problems .pr .txt { flex: 1; }
.problems .pr .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--red-light); color: var(--red); white-space: nowrap; }
.problems .pr .k.approve, .problems .pr .k.request, .problems .pr .k.query, .problems .pr .k.stock, .problems .pr .k.photo_check { background: var(--amber-light); color: var(--amber); }
.problems .pr .k.damage, .problems .pr .k.location { background: var(--gray-light); color: var(--gray); }
.problems .pr button, .problems .pr a.btn { width: auto; margin: 0; }
.problems .none { padding: 14px; color: var(--green); font-weight: 600; }
.appr { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.appr .top-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.appr .top-line .ask { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.appr .facts { color: var(--muted); font-size: 13px; }
.appr .thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.appr .thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--gray-light); }
.appr .thumbs figure { margin: 0; text-align: center; font-size: 10px; color: var(--muted); }
.appr .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.appr .acts button, .appr .acts input { width: auto; margin: 0; }
.appr .acts input { width: 220px; }
.appr .warn { color: var(--red); font-size: 13px; }
.appr .query-box { background: var(--amber-light); color: var(--amber); border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-top: 6px; }
.fin-ready { color: var(--green); font-weight: 600; }
.task-line { font-size: 12.5px; color: var(--primary); }
table.sf td.tlcell { width: 28px; text-align: center; }
.sum-tiles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.photo-strip img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; margin-right: 4px; }

.bm-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bm-row a.stat { text-decoration: none; color: inherit; display: block; }
.bm-row a.stat:hover { border-color: var(--primary); }
.bm-row .stat b small { font-size: 13px; color: var(--muted); font-weight: 500; }
table.sf td.num, table.sf th.num { text-align: right; font-variant-numeric: tabular-nums; }
.hist-day { font-weight: 700; font-family: var(--font-display); padding-top: 14px; }
.who { display: flex; align-items: center; gap: 8px; }

.fin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.fin-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--card); border: 1px solid var(--border); }
.fin-nav a.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
@media print { .sf-top, .fin-nav, .sf-head button, .sf-head a { display: none !important; } }

#sf-clock { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
#sf-clock button { width: auto; margin: 0; }
.fchips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; background: var(--card); }
.fchip .ok, .appr .ok { color: var(--green); font-weight: 600; }
.fchip .wt { color: var(--amber); }
.fchip .qy { color: var(--red); font-weight: 600; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; }
tr.hidden { display: none; }

.sugg { font-size: 12px; margin-top: 3px; }
.ticks { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ticks .on { color: var(--green); font-weight: 600; } .ticks .mid { color: var(--amber); font-weight: 600; }
table.sf input[type=time] { min-width: 0; }

a.btn.disabled { opacity: 0.45; pointer-events: none; }

.board.runs { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.ordn { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 700; align-items: center; justify-content: center; flex: none; }
.cl-flat .link-btn { text-decoration: none; padding: 0 3px; }

/* Deliveries: route map + labelled key photos (Nov 2026 driver feedback) */
.rmap { height: 480px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-top: 8px; }
.rpin { display: flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font: 700 12px/1 system-ui, sans-serif; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.rpin.sq { border-radius: 6px; }
.rkey { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; white-space: nowrap; }
.rkey i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.photo-strip .kphoto { display: inline-block; text-align: center; text-decoration: none; vertical-align: top; max-width: 76px; }
.photo-strip .kphoto span { display: block; font-size: 10px; line-height: 1.2; color: var(--muted); }

/* Deliveries: one-tap driver names, who is driving, check-in colours, map filter */
.dchip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; white-space: nowrap; }
.dchip:hover { border-color: var(--primary); color: var(--primary); }
.dchip.home { background: var(--primary-light); border-color: transparent; color: var(--primary); }
.dchip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink, #fff); }
.dchip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dchip.big { padding: 7px 14px; font-size: 13.5px; text-align: left; }
.dchip.big small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; }
.rosterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chiprow { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
/* Drivers page: flat search + "No delivery required" (Sam, 2 Dec 2026) */
.dchip.nodel { border-style: dashed; color: var(--muted); font-weight: 500; }
.dchip.nodel:hover { border-color: var(--red); color: var(--red); }
.drvsearch { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; padding: 10px 12px; }
.drvsearch input { flex: 1; min-width: 220px; font-size: 16px; padding: 9px 12px; border: 2px solid var(--muted, #78716c); border-radius: 10px; }
.drvsearch input:focus { border-color: var(--primary); outline: none; }
.drvsearch #drvqon { flex: 1 1 100%; }
.drvqline { font-size: 13px; padding: 2px 0; }
.nodelbox summary { cursor: pointer; }
.nodelbox[open] summary { margin-bottom: 6px; }
.card > .cl-flat { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-top: 1px solid var(--border-subtle); border-left: 4px solid transparent; }
.card > .cl-flat .nm { flex: 1; min-width: 0; }
.cl-flat.dc-pink { border-left: 4px solid #d9489b; background: color-mix(in srgb, #d9489b 9%, transparent); }
.cl-flat.dc-yellow { border-left: 4px solid #d4a800; background: color-mix(in srgb, #d4a800 12%, transparent); }
.cl-flat.dc-orange { border-left: 4px solid #e08a17; background: color-mix(in srgb, #e08a17 10%, transparent); }
.cl-flat.dc-green { border-left: 4px solid #2e9e63; background: color-mix(in srgb, #2e9e63 9%, transparent); }
.cl-card .cl-flat.dc-pink, .cl-card .cl-flat.dc-orange, .cl-card .cl-flat.dc-green { padding-left: 6px; }
.cibadge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cibadge.pink { background: color-mix(in srgb, #d9489b 18%, transparent); color: #b0307a; }
.cibadge.yellow { background: color-mix(in srgb, #d4a800 25%, transparent); color: #7a6100; }
.cibadge.orange { background: color-mix(in srgb, #e08a17 20%, transparent); color: #a05e08; }
.cibadge.green { background: color-mix(in srgb, #2e9e63 18%, transparent); color: #1f7a4a; }
.cilegend { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.mapfilter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.addrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.addrow input { flex: 1; min-width: 220px; }
#addres .cl-flat:first-child { margin-top: 8px; }


/* ---- Office on a phone (Nov 2026) ----
   The office was desktop-only: on a phone it rendered as a shrunken desktop
   page that slid around under the thumb. Below 820px nothing may be wider than
   the screen: the menu becomes one swipeable strip, tables scroll inside
   themselves, cards stack, and name buttons are finger-sized. */
@media (max-width: 820px) {
  /* No overflow rules on html/body at all: the B&M Tool scrolls on Sam's Samsung with the
     browser defaults, while any overflow override on the ROOT left the Staff pages unable
     to scroll by touch there (23 Nov 2026). Horizontal overflow is clipped on the page
     parts instead (clip never creates a scroll container). */
  .sf-top, #view { max-width: 100%; overflow-x: clip; }
  .sf-top { gap: 8px 12px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
  .sf-brand .mark { width: 34px; height: 34px; font-size: 14px; }
  .sf-nav { order: 3; flex: 0 0 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 2px; margin: 0 -12px; padding: 0 12px 2px; }
  .sf-nav::-webkit-scrollbar { display: none; }
  .sf-nav a { white-space: nowrap; padding: 9px 12px; }
  .sf-nav a.active { background: var(--primary); color: var(--primary-ink, #fff); }
  #sf-user { margin-left: auto; }
  #view { padding: 12px; }
  .sf-head { gap: 8px; }
  .sf-head h2 { flex: 0 0 100%; margin: 0; }
  .stats { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { min-width: 0; }
  .board, .board.runs { grid-template-columns: 1fr; }
  table.sf { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  table.sf td.muted, table.sf .task-line { white-space: normal; min-width: 160px; }
  .form-grid { grid-template-columns: 1fr; }
  input, select, textarea, table.sf select, table.sf input { font-size: 16px !important; } /* under 16px an iPhone zooms the page on focus */
  .cl-flat, .card > .cl-flat { flex-wrap: wrap; row-gap: 6px; }
  .cl-flat .nm { flex: 1 1 100%; }
  .chiprow { width: 100%; justify-content: flex-start; gap: 6px; }
  .dchip { padding: 8px 13px; font-size: 14px; }
  .dchip.big { flex: 1 1 calc(50% - 8px); }
  .link-btn { padding: 6px 10px; font-size: 16px; }
  .cl-card .cl-flat .link-btn { order: 5; }
  [data-store-all] { align-items: flex-start; }
  .rmap { height: 62vh; }
  .addrow input { min-width: 0; flex: 1 1 100%; }
  .cilegend { font-size: 12px; }
  .photo-strip img { width: 56px; height: 56px; object-fit: cover; }
}

/* Search results in "Add a delivery by hand" are rows like the lists below them. */
#addres .cl-flat { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 7px 8px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
#addres .cl-flat .nm { flex: 1; min-width: 200px; }

/* Rota round 2 (16 Nov 2026): publish bar, access lines, second cleaner */
.pubbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 10px; font-size: 12.5px; }
table.sf td .acc { font-size: 12px; line-height: 1.35; margin-top: 2px; }
table.sf td .second { margin-top: 6px; display: flex; gap: 4px; align-items: center; }
table.sf td .second select { font-size: 12.5px; }

/* Language switch (EN / PT) */
.sf-top .lang-switch { width: auto; font: inherit; font-size: 12px; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); margin-left: 8px; }

/* Photo-check badge in the header */
.chk-badge { text-decoration: none; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--amber-light); color: var(--amber); margin-left: 8px; white-space: nowrap; }
.chk-badge.mine { background: var(--red-light); color: var(--red); animation: chk-pulse 1.4s ease-in-out infinite; }
@keyframes chk-pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .chk-badge.mine { animation: none; } }

/* Rota messages to copy by hand (Rota → Individual messages) */
.rm-modal { width: min(640px, 100%); }
.rm-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 10px; }
.rm-card.rm-missed { border-color: var(--red); }
.rm-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-text { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13.5px; background: var(--hover); border-radius: 9px; padding: 10px; margin: 8px 0; user-select: all; }
.rm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-btns .small-btn { padding: 8px 14px; font-size: 13px; text-decoration: none; }
.rm-warn { color: var(--red); }
