/*
 * "Whose call was this?" with its buttons (lane t22-whosecall, 13 Oct 2026; js/v21_callwhose.js). One calm box under
 * the open Job's top bar: each client a button with its short why, the Recommended one first and marked, then Someone
 * else (search), It is a new lead, Not a client. The desk's own tokens, so it follows every theme, light and dark and
 * High contrast. Nothing moves. No inline styles.
 */
.cwh-box {
  max-width: 1160px; margin: 0 auto 14px; display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px;
  background: var(--solid); color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--info) 45%, transparent);
}
.cwh-box h2 { margin: 0; font-size: 1.0625rem; }
.cwh-sub { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.cwh-list, .cwh-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cwh-pick {
  display: grid; gap: 4px; align-content: start; min-height: 64px; padding: 12px; border: 2px solid var(--glass-rim);
  border-radius: 12px; background: var(--solid); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.cwh-pick:hover:not(:disabled) { border-color: var(--edge-strong); }
.cwh-pick:focus-visible, .cwh-input:focus-visible, .cwh-more .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cwh-pick:disabled { cursor: default; opacity: .7; }
.cwh-pick.is-rec { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--solid)); }
.cwh-name { display: flex; flex-wrap: wrap; gap: 4px 8px; font-weight: 700; overflow-wrap: anywhere; }
.cwh-rec { color: var(--ok); font-weight: 700; }
.cwh-why { color: var(--ink-2); font-size: .875rem; line-height: 1.35; overflow-wrap: anywhere; }
.cwh-does { color: var(--brand-text); font-size: .8125rem; font-weight: 600; }
.cwh-more { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.cwh-search { display: grid; gap: 6px; padding-top: 4px; border-top: 1px solid var(--glass-rim); }
.cwh-label { font-weight: 600; }
.cwh-row { display: flex; gap: 8px; min-width: 0; }
.cwh-input {
  flex: 1 1 auto; min-width: 0; padding: 8px 10px; border: 2px solid var(--edge-strong); border-radius: 10px;
  background: var(--solid); color: var(--ink); font: inherit;
}
.cwh-help, .cwh-wait, .cwh-none { margin: 0; color: var(--ink-2); font-size: .875rem; }
.cwh-err { margin: 0; color: var(--danger); font-weight: 600; }
/* t23-fixDM A1: what happened, and the call's own words folded under it */
.cwh-said { display: grid; gap: 4px; padding: 8px 0 4px; border-top: 1px solid var(--glass-rim); }
.cwh-said-h { margin: 0; color: var(--ink-2); font-size: .8125rem; font-weight: 700; }
.cwh-said-sum { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.cwh-tr { margin-top: 2px; }
.cwh-tr-sum { cursor: pointer; font-weight: 600; color: var(--brand-text); }
.cwh-tr-sum:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cwh-tr-n { color: var(--ink-2); font-weight: 400; }
.cwh-tr-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.cwh-tr-line { line-height: 1.4; overflow-wrap: anywhere; }
.cwh-tr-who { font-weight: 700; }
@media (max-width: 640px) {
  .cwh-list, .cwh-results { grid-template-columns: minmax(0, 1fr); }
  .cwh-box { margin: 0 0 12px; padding: 12px; }
}
:root[data-theme="high_contrast"] .cwh-box { box-shadow: none; border: 3px solid #000; background: #fff; }
:root[data-theme="high_contrast"] .cwh-pick { border-color: #000; background: #fff; color: #000; }
:root[data-theme="high_contrast"] .cwh-pick.is-rec { border-width: 4px; }
:root[data-theme="high_contrast"] .cwh-why, :root[data-theme="high_contrast"] .cwh-sub { color: #000; }
:root[data-theme="high_contrast"] .cwh-said-h, :root[data-theme="high_contrast"] .cwh-tr-n { color: #000; }
@media (forced-colors: active) {
  .cwh-box, .cwh-pick { border: 2px solid CanvasText; box-shadow: none; }
  .cwh-pick.is-rec { border-width: 4px; }
}
