/* Cabarrus monitor view (cabarrus.html only; Oct 29 2026, Jeremy).
   >=1200px (main page, not ?me=): three columns side by side —
     Interpreters today (with Available | Busy switch) | Team chat | Pending appointments
   then New case + Totals below. 861–1199px keeps the earlier two-column layout; phones stay stacked.
   Layout + look only; the chat and status logic are unchanged. */

/* ---------- Pending appointments card (all widths it shows at) ---------- */
.cab-pending-panel { display: none; }
/* Oct 29 2026: Pending is now a live task list, so it shows on phones/tablets too (stacked under Team chat). */
html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel { display: block; }
.cab-pending-panel h2 { margin-top: 0; }
.cab-pending-empty {
  margin-top: 6px; padding: 26px 20px 22px; text-align: center;
  border: 1px dashed var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(232,121,249,.05), transparent 70%);
}
.cab-pending-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #E2B65C; background: rgba(226,182,92,.12); margin-bottom: 10px; }
.cab-pending-ico svg { width: 22px; height: 22px; }
.cab-pending-title { display: block; font-family: Outfit, sans-serif; font-size: 16px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.cab-pending-empty p { margin: 0 auto 14px; max-width: 36ch; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cab-pending-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cab-pend-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font: 700 12px/1.3 Outfit, system-ui, sans-serif; white-space: nowrap; border: 1px solid; }
.cab-pend-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cab-pend-badge.is-assigned { color: #86efac; background: rgba(34,197,94,.16); border-color: rgba(134,239,172,.45); }
.cab-pend-badge.is-unassigned { color: #fcd34d; background: rgba(245,158,11,.14); border-color: rgba(252,211,77,.45); }
html[data-theme="maroon"] .cab-pending-empty { background: linear-gradient(180deg, #FBF5EA, transparent 75%); border-color: #D9CBBF; }
html[data-theme="enterprise"] .cab-pending-empty { background: linear-gradient(180deg, #F4F7FB, transparent 75%); border-color: #C4CFDB; }
html[data-theme="maroon"] .cab-pending-ico { color: #8A1538; background: rgba(138,21,56,.08); }
html[data-theme="enterprise"] .cab-pending-ico { color: #1A6E8E; background: rgba(26,110,142,.09); }
html[data-theme="maroon"] .cab-pending-empty p { color: #5E5459; }
html[data-theme="enterprise"] .cab-pending-empty p { color: #405068; }
html[data-theme="maroon"] .cab-pend-badge.is-assigned, html[data-theme="enterprise"] .cab-pend-badge.is-assigned { color: #14532D; background: #DCFCE7; border-color: #86EFAC; }
html[data-theme="maroon"] .cab-pend-badge.is-unassigned, html[data-theme="enterprise"] .cab-pend-badge.is-unassigned { color: #7C2D12; background: #FEF3C7; border-color: #FCD34D; }

/* ---------- Available | Busy switch on each Interpreters today row ---------- */
.lais-st-toggle { display: inline-flex; flex: 0 0 auto; padding: 2px; gap: 2px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.lais-st-tog { -webkit-appearance: none; appearance: none; border: 0; margin: 0; cursor: pointer;
  min-height: 32px; min-width: 70px; padding: 0 11px; border-radius: 999px;
  font: 600 12.5px/1 Outfit, system-ui, sans-serif; color: var(--muted); background: transparent;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.lais-st-tog:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.lais-st-tog:focus-visible { outline: 2px solid #C9A45C; outline-offset: 2px; }
.lais-st-tog-available[aria-pressed="true"] { background: #16A34A; color: #fff; box-shadow: 0 1px 6px rgba(22,163,74,.35); }
.lais-st-tog-busy[aria-pressed="true"] { background: #DC2626; color: #fff; box-shadow: 0 1px 6px rgba(220,38,38,.35); }
html[data-theme="maroon"] .lais-st-toggle, html[data-theme="enterprise"] .lais-st-toggle { background: #F6F3F1; border-color: #DDD3CF; }
html[data-theme="enterprise"] .lais-st-toggle { background: #F2F5F9; border-color: #CBD5E1; }
html[data-theme="maroon"] .lais-st-tog { color: #5E5459; }
html[data-theme="enterprise"] .lais-st-tog { color: #405068; }
html[data-theme="maroon"] .lais-st-tog:hover, html[data-theme="enterprise"] .lais-st-tog:hover { color: #1F1A1D; background: rgba(0,0,0,.05); }
html[data-theme="maroon"] .lais-st-tog[aria-pressed="true"], html[data-theme="enterprise"] .lais-st-tog[aria-pressed="true"] { color: #fff; }
html[data-theme="maroon"] .lais-st-tog-available[aria-pressed="true"], html[data-theme="enterprise"] .lais-st-tog-available[aria-pressed="true"] { background: #15803D; }
html[data-theme="maroon"] .lais-st-tog-busy[aria-pressed="true"], html[data-theme="enterprise"] .lais-st-tog-busy[aria-pressed="true"] { background: #B91C1C; }
/* when the switch shows the status, the Available / Busy pill would just repeat it */
.lais-st-has-toggle.lais-st-available .lais-st-pill, .lais-st-has-toggle.lais-st-busy .lais-st-pill { display: none; }
.lais-st-has-toggle { padding-top: 5px; padding-bottom: 5px; flex-wrap: wrap; row-gap: 6px; }
.lais-st-has-toggle .lais-st-name { flex: 1 1 130px; }
.lais-st-has-toggle .lais-st-right { margin-left: auto; flex-wrap: nowrap; }
@media (max-width: 520px) {
  .lais-st-has-toggle { box-sizing: border-box; max-width: 100%; min-width: 0; }
  .lais-st-has-toggle .lais-st-right { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 8px; max-width: 100%; min-width: 0; }
  .lais-st-tog { min-height: 40px; min-width: 76px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .lais-st-tog { transition: none; } }

/* ---------- 861–1199px: pending card spans under the two columns ---------- */
@media (min-width: 861px) {
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel { display: block; grid-column: 1 / -1; grid-row: 4; }
}

/* ---------- >=1200px: the three monitor columns ---------- */
@media (min-width: 1200px) {
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col {
    --cab3-h: clamp(560px, calc(100vh - 190px), 860px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: var(--cab3-h) auto;
  }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-avail-panel,
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-chat-panel,
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel {
    grid-row: 1; align-self: stretch; margin-top: 0; min-height: 0; overflow: hidden;
    display: flex; flex-direction: column;
  }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-avail-panel { grid-column: 1; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-chat-panel { grid-column: 2; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel { grid-column: 3; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-newcase-panel { grid-column: 1 / span 2; grid-row: 2; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-totals-panel { grid-column: 3; grid-row: 2; align-self: start; }
  /* Interpreters today fills its column; the list scrolls inside */
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-avail-panel > .lais-st { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-avail-panel .lais-st-list { flex: 1 1 0; min-height: 0; max-height: none; align-content: start; }
  /* Team chat: messages scroll inside, the composer stays in view */
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-chat-panel .cab-chat-list { flex: 1 1 0; height: auto; min-height: 160px; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-chat-panel .cab-chat-form { flex: 0 0 auto; }
  /* time-since moves into the button tooltip on mid-size monitors so name + switch share one line */
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col .lais-st-has-toggle .lais-st-since { display: none; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col .lais-st-has-toggle .lais-st-name { flex-basis: 84px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col .lais-st-has-toggle .lais-st-right { gap: 6px; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col .lais-st-toggle button { min-width: 62px; padding: 0 9px; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel .cab-task-list { flex: 1 1 0; min-height: 120px; max-height: none; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel .cab-task-form { flex: 0 0 auto; }
}
@media (min-width: 1600px) {
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col .lais-st-has-toggle .lais-st-since { display: inline; }
}

/* ---------- Pending tasks list (Oct 29 2026): type → park; tap the box → Done ---------- */
.cab-pending-panel .hint { margin: 2px 0 10px; }
.cab-task-list { list-style: none; margin: 0; padding: 2px 2px 4px; display: flex; flex-direction: column; gap: 8px;
  max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.cab-task { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.045); transition: opacity .2s, background .2s; }
.cab-task-box { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 34px; height: 34px; margin: -2px 0 0;
  padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 9px;
  border: 2px solid rgba(226,182,92,.75); background: transparent; color: transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s; position: relative; }
.cab-task-box::after { content: ""; position: absolute; inset: -6px; }   /* 46px tap target */
.cab-task-box svg { width: 20px; height: 20px; }
.cab-task-box:hover { border-color: #E2B65C; background: rgba(226,182,92,.10); }
.cab-task-box:active { transform: scale(.94); }
.cab-task-box:focus-visible { outline: 2px solid #E2B65C; outline-offset: 2px; }
.cab-task-box[aria-checked="true"] { background: #16A34A; border-color: #16A34A; color: #fff; }
.cab-task-box:disabled { cursor: progress; }
.cab-task-body { min-width: 0; flex: 1 1 auto; }
.cab-task-text { font-size: 15px; line-height: 1.35; color: var(--fg); overflow-wrap: anywhere; font-weight: 600; }
.cab-task-meta { margin-top: 3px; font-size: 12px; color: var(--muted); }
.cab-task.is-done { opacity: .6; background: transparent; }
.cab-task.is-done .cab-task-text { text-decoration: line-through; text-decoration-thickness: 1.5px; font-weight: 500; }
.cab-task.is-done .cab-task-meta { color: #4ade80; }
.cab-task-empty { margin: 6px 0 8px; padding: 18px 12px; text-align: center; font-size: 13.5px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 12px; }
.cab-task-empty[hidden] { display: none; }
.cab-task-form { display: flex; gap: 8px; margin-top: 12px; }
.cab-task-form input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px;
  border: 1px solid rgba(232,121,249,.22); background: rgba(0,0,0,.35); color: var(--fg); }
.cab-task-form input::placeholder { color: rgba(196,181,224,.78); }
.cab-task-form input:focus { outline: none; border-color: rgba(226,182,92,.75); box-shadow: 0 0 0 3px rgba(226,182,92,.22); }
.cab-task-form .cab-task-send { flex: 0 0 auto; min-height: 44px; padding: 0 18px; margin: 0; }
.cab-task-err { margin: 6px 0 0; min-height: 0; font-size: 12.5px; color: #fca5a5; }
.cab-task-err:empty { display: none; }
/* light themes */
html[data-theme="maroon"] .cab-task { background: #fff; border-color: #E4D9D3; }
html[data-theme="enterprise"] .cab-task { background: #fff; border-color: #D3DCE6; }
html[data-theme="maroon"] .cab-task.is-done, html[data-theme="enterprise"] .cab-task.is-done { background: transparent; }
html[data-theme="maroon"] .cab-task-text { color: #1F1A1D; }
html[data-theme="enterprise"] .cab-task-text { color: #14202E; }
html[data-theme="maroon"] .cab-task-meta, html[data-theme="maroon"] .cab-task-empty { color: #5E5459; }
html[data-theme="enterprise"] .cab-task-meta, html[data-theme="enterprise"] .cab-task-empty { color: #405068; }
html[data-theme="maroon"] .cab-task.is-done .cab-task-meta, html[data-theme="enterprise"] .cab-task.is-done .cab-task-meta { color: #15803D; }
html[data-theme="maroon"] .cab-task-box { border-color: #8A1538; }
html[data-theme="maroon"] .cab-task-box:hover { background: rgba(138,21,56,.07); border-color: #8A1538; }
html[data-theme="enterprise"] .cab-task-box { border-color: #1A6E8E; }
html[data-theme="enterprise"] .cab-task-box:hover { background: rgba(26,110,142,.08); border-color: #1A6E8E; }
html[data-theme="maroon"] .cab-task-box[aria-checked="true"], html[data-theme="enterprise"] .cab-task-box[aria-checked="true"] { background: #15803D; border-color: #15803D; color: #fff; }
html[data-theme="maroon"] .cab-task-empty { border-color: #D9CBBF; }
html[data-theme="enterprise"] .cab-task-empty { border-color: #C4CFDB; }
html[data-theme="maroon"] .cab-task-form input { background: #fff; border-color: #CFC3C8; color: #1F1A1D; }
html[data-theme="enterprise"] .cab-task-form input { background: #fff; border-color: #C4CFDB; color: #14202E; }
html[data-theme="maroon"] .cab-task-form input::placeholder { color: #7A6B72; }
html[data-theme="enterprise"] .cab-task-form input::placeholder { color: #5A6B80; }
html[data-theme="maroon"] .cab-task-err, html[data-theme="enterprise"] .cab-task-err { color: #B91C1C; }
@media (prefers-reduced-motion: reduce) { .cab-task, .cab-task-box { transition: none; } }

/* ---------- Notes as a clean card list (Oct 29 2026 11:17, Jeremy: no ruled lines; modern rows) ----------
   Each note is a soft rounded row with a small check circle. Tap the row to cross it off (or back on). ✎ edits your
   own note. Open notes first, done notes below (faded, struck through), and a clean input box at the bottom. */
.cab-notelist {
  --nl-row: rgba(255, 255, 255, .045); --nl-row-hover: rgba(255, 255, 255, .08); --nl-line: rgba(196, 181, 224, .16);
  --nl-ink: #F4F7FB; --nl-meta: rgba(196, 181, 224, .78); --nl-accent: #E2B65C; --nl-accent-ink: #1B1230;
  --nl-input: rgba(255, 255, 255, .06); --nl-done: #16A34A; --nl-focus: rgba(226, 182, 92, .45);
  display: flex; flex-direction: column; gap: 10px; min-height: 0;
  background: none; border: 0; padding: 0; box-shadow: none; overflow: visible; max-height: none;
}
html[data-theme="maroon"] .cab-notelist {
  --nl-row: #FFFFFF; --nl-row-hover: #FBF6EF; --nl-line: #E9DED0;
  --nl-ink: #1F1A1D; --nl-meta: #6E6066; --nl-accent: #8A1538; --nl-accent-ink: #FFFFFF;
  --nl-input: #FFFFFF; --nl-done: #15803D; --nl-focus: rgba(138, 21, 56, .35);
}
html[data-theme="enterprise"] .cab-notelist {
  --nl-row: #FFFFFF; --nl-row-hover: #F3F7FB; --nl-line: #D9E3ED;
  --nl-ink: #14202E; --nl-meta: #4E5F74; --nl-accent: #1A6E8E; --nl-accent-ink: #FFFFFF;
  --nl-input: #FFFFFF; --nl-done: #15803D; --nl-focus: rgba(26, 110, 142, .35);
}
.cab-nl-scroll {
  display: flex; flex-direction: column; gap: 6px; min-height: 0; max-height: 520px;
  overflow-y: auto; overscroll-behavior: contain; padding: 1px 2px 1px 1px; scrollbar-width: thin;
}
html body .cab-notelist .cab-task-list { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; max-height: none; min-height: 0; overflow: visible; }
html body .cab-notelist .cab-task-list:empty { display: none; }
html body .cab-notelist .cab-task-done-list { margin-top: 4px; }
/* the older desktop column rule (flex: 1 1 0; min-height: 120px on .cab-task-list) must not stretch or squash the card lists */
html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel .cab-notelist .cab-task-list,
html body .cab-notelist .cab-nl-scroll > * { flex: 0 0 auto; min-height: 0; max-height: none; }
html body .cab-notelist .cab-task {
  display: flex; align-items: center; gap: 0; margin: 0; padding: 0; min-height: 50px;
  border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-row);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06); opacity: 1; transition: background .15s, opacity .25s, border-color .15s;
}
html[data-theme="maroon"] body .cab-notelist .cab-task { box-shadow: 0 1px 2px rgba(92, 6, 50, .05); }
html[data-theme="enterprise"] body .cab-notelist .cab-task { box-shadow: 0 1px 2px rgba(15, 53, 80, .05); }
html body .cab-notelist .cab-task:hover { background: var(--nl-row-hover); }
.cab-notelist .cab-task-hit {
  -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 10px 10px 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--nl-ink);
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cab-notelist .cab-task-hit:focus-visible { outline: 2px solid var(--nl-accent); outline-offset: -2px; }
.cab-notelist .cab-task-hit:disabled { cursor: progress; }
html body .cab-notelist .cab-task-box {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 0; padding: 0; border-radius: 50%;
  border: 1.75px solid var(--nl-accent); background: transparent; color: transparent; display: grid; place-items: center;
  transition: background .15s, border-color .15s, color .15s;
}
.cab-notelist .cab-task-box::after { content: none; }
.cab-notelist .cab-task-box svg { width: 12px; height: 12px; }
.cab-notelist .cab-task-hit:hover .cab-task-box { color: var(--nl-accent); }
.cab-notelist .cab-task-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0; line-height: 1.35; }
html body .cab-notelist .cab-task-text { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--nl-ink); overflow-wrap: anywhere; transition: color .2s; }
html body .cab-notelist .cab-task-meta { display: block; margin: 0; font-size: 11.5px; line-height: 1.3; color: var(--nl-meta); white-space: normal; }
html body .cab-notelist .cab-task.is-done { opacity: .62; box-shadow: none; }
html body .cab-notelist .cab-task.is-done .cab-task-text { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: currentColor; }
html body .cab-notelist .cab-task.is-done .cab-task-box,
html body .cab-notelist .cab-task-hit[aria-checked="true"] .cab-task-box { background: var(--nl-done); border-color: var(--nl-done); color: #fff; }
html body .cab-notelist .cab-task.is-done .cab-task-meta { color: var(--nl-meta); }
.cab-notelist .cab-task-edit {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 38px; height: 38px; margin: 0 6px 0 0; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--nl-meta); cursor: pointer; display: grid; place-items: center; opacity: .75;
}
.cab-notelist .cab-task-edit svg { width: 16px; height: 16px; }
.cab-notelist .cab-task-edit:hover, .cab-notelist .cab-task-edit:focus-visible { opacity: 1; color: var(--nl-accent); background: var(--nl-row-hover); }
.cab-notelist .cab-task-edit:focus-visible { outline: 2px solid var(--nl-accent); outline-offset: -2px; }
html body .cab-notelist .cab-task.is-editing { padding: 6px; border-color: var(--nl-accent); }
.cab-notelist .cab-task-editbox {
  flex: 1 1 auto; min-width: 0; height: 38px; margin: 0; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--nl-ink); font: inherit; font-size: 15px; outline: none;
}
html body .cab-notelist .cab-task-form {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin: 0; min-height: 50px; padding: 4px 5px 4px 14px;
  border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-input); transition: border-color .15s, box-shadow .15s;
}
html body .cab-notelist .cab-task-form:focus-within { border-color: var(--nl-accent); box-shadow: 0 0 0 3px var(--nl-focus); }
.cab-notelist .cab-task-plus { flex: 0 0 auto; width: 20px; display: grid; place-items: center; font: 600 18px/1 system-ui, sans-serif; color: var(--nl-accent); }
html body .cab-notelist .cab-task-form input {
  flex: 1 1 auto; min-width: 0; height: 40px; min-height: 0; margin: 0; padding: 0 4px 0 6px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--nl-ink); font-size: 15px;
}
html body .cab-notelist .cab-task-form input::placeholder { color: var(--nl-meta); opacity: 1; }
html body .cab-notelist .cab-task-form input:focus { outline: none; box-shadow: none; border: 0; background: transparent; }
html body .cab-notelist .cab-task-form .cab-task-send {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; min-height: 0; height: 38px; margin: 0; padding: 0 16px;
  border-radius: 9px; border: 0; background: var(--nl-accent); color: var(--nl-accent-ink); font: 600 13px/1 system-ui, sans-serif; cursor: pointer;
  transition: opacity .15s;
}
html body .cab-notelist .cab-task-form input:placeholder-shown + .cab-task-send { opacity: .35; pointer-events: none; }
.cab-notelist .cab-task-send:disabled { cursor: progress; opacity: .6; }
.cab-notelist .cab-task-empty { display: none; }
.cab-nb-note { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
/* monitor column: the list fills the column height, the input box stays at the bottom */
@media (min-width: 1200px) {
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel .cab-notelist { flex: 1 1 0; min-height: 0; max-height: none; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel .cab-nl-scroll { flex: 1 1 0; max-height: none; }
}
@media (max-width: 520px) {
  .cab-nl-scroll { max-height: 60vh; }
  html body .cab-notelist .cab-task-text { font-size: 15px; }
  html body .cab-notelist .cab-task-form input, .cab-notelist .cab-task-editbox { font-size: 16px; }   /* 16px: no iOS zoom on focus */
}
@media (prefers-reduced-motion: reduce) { .cab-notelist .cab-task, .cab-notelist .cab-task-text, .cab-notelist .cab-task-box, .cab-notelist .cab-task-form { transition: none; } }

/* ---------- Jeremy 10:39: wide screens give Team chat more room + a compact thread (phones unchanged) ----------
   Dispatch: Interpreters today 1fr | Team chat 1.5fr | Notes 1fr.  Interpreter page: Team chat 1.5fr (leftmost, Jeremy 10:30) | status 1fr | New case 1fr. */
@media (min-width: 1200px) {
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
  html.cab-interp-mode body .layout.cab-3col { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
  /* compact messages: name · time on one line, tighter padding and line-height, smaller time */
  html body .cab-3col .cab-chat-list { gap: 6px; padding: 10px 6px 10px 0; }
  html body .cab-3col .cab-msg { margin-left: 32px; padding: 6px 12px 7px; border-radius: 10px; }
  html body .cab-3col .cab-msg::after { left: -17px; top: -6px; bottom: -6px; }
  html body .cab-3col .cab-chat-list > .cab-msg:first-of-type::after { top: 16px; }
  html body .cab-3col .cab-chat-list > .cab-msg:last-child::after { bottom: auto; height: 22px; }
  html body .cab-3col .cab-msg::before { left: -26px; top: 7px; width: 18px; height: 18px; font-size: 9px; }
  html body .cab-3col .cab-msg-meta { flex-wrap: nowrap; gap: 6px; margin-bottom: 0; line-height: 1.35; min-width: 0; }
  html body .cab-3col .cab-msg-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  html body .cab-3col .cab-msg-role { flex: 0 0 auto; font-size: 9.5px; padding: 0 6px; line-height: 1.55; }
  html body .cab-3col .cab-msg-time { margin-left: 0; flex: 0 0 auto; font-size: 10.5px; white-space: nowrap; opacity: .9; }
  html body .cab-3col .cab-msg-time::before { content: "·"; margin-right: 6px; opacity: .7; }
  html body .cab-3col .cab-msg-text { font-size: 15.5px; line-height: 1.38; }
  html body .cab-3col .cab-msg-more { margin: 2px 0 -2px -8px; min-height: 26px; padding: 3px 8px; }
}
@media (min-width: 1200px) {
  /* compact reactions: with no reactions yet, the ☺+ button sits in the top-right corner instead of its own line */
  html body .cab-3col .cab-react-row { min-height: 0; margin: 4px 0 0; gap: 5px; }
  html body .cab-3col .cab-react-pill, html body .cab-3col .cab-react-add { height: 24px; min-width: 24px; padding: 0 8px 0 6px; }
  html body .cab-3col .cab-react-add { width: 26px; padding: 0; }
  html body .cab-3col .cab-react-add svg { width: 15px; height: 15px; }
  html body .cab-3col .cab-react-emoji { font-size: 13.5px; }
  html body .cab-3col .cab-react-count { font-size: 11.5px; }
  html body .cab-3col .cab-msg:has(.cab-react-row):not(:has(.cab-react-pill)) { padding-right: 44px; }
  html body .cab-3col .cab-react-row:not(:has(.cab-react-pill)) { position: absolute; top: 5px; right: 8px; margin: 0; }
}
@media (min-width: 1200px) {
  html body .cab-3col .cab-react-row:not(:has(.cab-react-pill)) .cab-react-picker { left: auto; right: -4px; transform-origin: calc(100% - 20px) 100%; }
}
/* Oct 29 2026 (Jeremy): phones (under 768px): Team chat first, at the top, before Interpreters today, New case, totals and Notes.
   CSS order only; the desktop 3-column layout and the DOM are unchanged. */
@media (max-width: 767px) {
  html:not(.cab-me-mode) body .layout.cab-3col > .cab-chat-panel { order: -1; }
}
/* Oct 29 2026 11:25 (Jeremy: no chime on a Chromebook): "Tap to turn on sound" pill in the chat header,
   shown only while sound is on but the browser has audio paused; it hides itself once audio is running. */
html body .cab-chat-panel .cab-chat-head .cab-sound-pill {
  display: inline-flex; align-items: center; gap: 4px; margin: 6px auto 2px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(226,182,92,.55);
  background: rgba(226,182,92,.16); color: #F3D58E; font: 600 12px/1.2 inherit; font-family: inherit;
  cursor: pointer; white-space: nowrap; animation: cabPillPulse 2.4s ease-in-out infinite;
}
html body .cab-chat-panel .cab-chat-head .cab-sound-pill:hover { background: rgba(226,182,92,.26); }
html body .cab-chat-panel .cab-chat-head .cab-sound-pill:focus-visible { outline: 2px solid #E2B65C; outline-offset: 2px; }
html[data-theme="maroon"] body .cab-chat-panel .cab-chat-head .cab-sound-pill { border-color: rgba(138,21,56,.35); background: #FBEFF3; color: #8A1538; }
html[data-theme="maroon"] body .cab-chat-panel .cab-chat-head .cab-sound-pill:hover { background: #F6DFE7; }
html[data-theme="enterprise"] body .cab-chat-panel .cab-chat-head .cab-sound-pill { border-color: rgba(26,110,142,.35); background: #EAF4F8; color: #135A75; }
html[data-theme="enterprise"] body .cab-chat-panel .cab-chat-head .cab-sound-pill:hover { background: #DCEDF4; }
html body .cab-chat-panel .cab-chat-head .cab-sound-pill[hidden] { display: none !important; }
@keyframes cabPillPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226,182,92,0); } 50% { box-shadow: 0 0 0 3px rgba(226,182,92,.22); } }
@media (prefers-reduced-motion: reduce) { html body .cab-chat-panel .cab-chat-head .cab-sound-pill { animation: none; } }
@media (max-width: 420px) { html body .cab-chat-panel .cab-chat-head .cab-sound-pill { font-size: 11px; padding: 4px 8px; } }
/* Oct 29 2026 evening (Jeremy): on monitors (>=1200px) Notes sits in the middle column and Team chat in the
   right column: Interpreters today | Notes | Team chat. Phones and the 861-1199px layout are unchanged. */
@media (min-width: 1200px) {
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); }   /* chat keeps its wider column, now on the right */
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-pending-panel { grid-column: 2; }
  html:not(.cab-me-mode):not(.cab-interp-mode) body .layout.cab-3col > .cab-chat-panel { grid-column: 3; }
}
