/* LiveChat operator console: contrast and target-size floor (review 2026-11-11).
   Loaded after livechat.css and livechat-phone-touch-targets.css.

   Contrast (WCAG 1.4.3, 4.5:1 for text). The dark theme's accent #3b9eff is a text and border
   colour; under white text it reaches only 2.80:1. Every surface that puts white text on the
   accent uses the solid accent #2563eb instead (5.17:1, the light theme's accent), and accent
   text on the dark selected-item tint uses the light accent text. The SLA chips and the "Seen"
   receipt follow the console theme (html[data-theme]) rather than the operating-system scheme,
   with colours that reach 4.5:1 on their tints in both themes.

   Targets (WCAG 2.5.8, 24x24 CSS px on desktop). The inbox selection checkbox keeps a 16px box
   but takes a 24px hit area (44px on phones, in livechat-phone-touch-targets.css); the overview
   "open inbox" button and the empty-pane overview link reach 24px.

   Identifiers (WCAG 1.4.10 reflow, review 2026-11-11). E-mail addresses, UUIDs and visitor IDs,
   which the console marks dir="ltr", are read character by character: they render as one
   left-to-right isolate and wrap instead of being cut off by the single-line truncation of the
   surrounding prose, in LTR and RTL alike. The send-shortcut hint (Enter adds a new line,
   Ctrl+Enter sends) is visible text under the composer on a fine pointer. */
:root{ --accent-solid:#2563eb; }

html[data-theme="dark"] :is(.unread-badge, .brand-badge, .btn.primary, .btn.primary:hover, .reply-send,
  .qr-mgr-tab.active, .lc-locale-option.is-active){
  background:var(--accent-solid); border-color:var(--accent-solid);
}
html[data-theme="dark"] .msg-row.agent .msg-bubble{ background:linear-gradient(180deg, #2563eb, #1d4ed8); }
html[data-theme="dark"] .nav-item.active{ color:var(--accent-text); }

html:not([data-theme="dark"]) .sla-wait.sla-ok{ color:#065f46; }
html:not([data-theme="dark"]) .sla-wait.sla-warn{ color:#92400e; }
html:not([data-theme="dark"]) .sla-wait.sla-breach{ color:#991b1b; }
html[data-theme="dark"] .sla-wait.sla-ok{ color:#34d399; }
html[data-theme="dark"] .sla-wait.sla-warn{ color:#fbbf24; }
html[data-theme="dark"] .sla-wait.sla-breach{ color:#fca5a5; }
html:not([data-theme="dark"]) .receipt-label.receipt-read{ color:#1e40af; }

/* Chatbot messages (sender kind "bot"): sent on the business side, shown with their sender label. */
.msg-row.bot{ align-self:flex-end; align-items:flex-end; }
.msg-row.bot .msg-bubble{ background:var(--panel-2); color:var(--text); border:1px dashed var(--border);
  border-end-end-radius:4px; }

/* The selection checkbox draws its 16px box inside a larger transparent hit area. */
.inbox-checkbox{
  -webkit-appearance:none; appearance:none; position:relative; box-sizing:border-box;
  flex:0 0 24px; width:24px; height:24px; margin:-4px; padding:0;
  border:0; border-radius:6px; background:transparent; cursor:pointer;
}
.inbox-checkbox::before{
  content:""; position:absolute; inset:4px; box-sizing:border-box;
  border:1.5px solid var(--muted); border-radius:4px; background:var(--panel);
}
.inbox-checkbox:checked::before{ background:var(--accent-solid); border-color:var(--accent-solid); }
.inbox-checkbox:checked::after{
  content:""; position:absolute; left:50%; top:46%; width:4px; height:8px;
  border:solid #fff; border-width:0 2px 2px 0; transform:translate(-50%, -50%) rotate(45deg);
}
.inbox-checkbox:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }

@media (min-width:761px){
  .ov-viewall{ display:inline-flex; align-items:center; min-height:24px; }
  .chat-empty-ov{ display:inline-block; min-height:24px; padding:2px 4px; line-height:20px; }
}

@media (max-width:760px){
  .inbox-checkbox{ flex-basis:44px; width:44px; height:44px; margin:-14px; }
  .inbox-checkbox::before{ inset:14px; }
}
.info-row .v[dir="ltr"],
.chat-title-block .chat-meta code[dir="ltr"],
.app-header .who b[dir="ltr"]{ unicode-bidi:isolate; white-space:normal; overflow-wrap:anywhere;
  overflow:visible; text-overflow:clip; min-width:0; }
.chat-title-block .chat-meta{ flex-wrap:wrap; white-space:normal; }
.reply-shortcut-hint{ margin:0; padding:0 var(--sp-3) var(--sp-2); background:var(--bg-2);
  color:var(--muted); font-size:var(--fs-xs); line-height:1.4; text-align:start; }
