/* DRIVER CHAT HUB — the Drivers tab of Chat Channels (B1, Ed 2026-10-04; js/components/driverChatHub.js).
 * Skin B: tokens only (both themes resolve through them), square corners, gold only as a marker (the open driver).
 * Targets ≥ 24 px; text ≥ 4.5:1 on its ground in light and dark (test-driver-chat-hub-browser). */
.dch-side { display: flex; flex-direction: column; }
.dch-search { margin: 8px 10px; padding: 6px 8px; min-height: 28px; font: inherit; font-size: 12px; color: var(--text); background: var(--bg2); border: 1px solid var(--border2); border-radius: 0; }
.dch-sec { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); }
.dch-next { min-height: 24px; padding: 0 8px; font: inherit; font-size: 11px; font-weight: 700; color: var(--text); background: var(--bg); border: 1px solid var(--border2); border-radius: 0; cursor: pointer; letter-spacing: 0; text-transform: none; }
.dch-next:focus-visible, .dch-row:focus-visible, .dch-chip:focus-visible, .dch-send:focus-visible { outline: 2px solid var(--ink-info); outline-offset: 1px; }
.dch-row { display: grid; gap: 2px; width: 100%; min-height: 40px; padding: 6px 12px; text-align: left; font: inherit; color: var(--text); background: transparent; border: 0; border-left: 3px solid transparent; cursor: pointer; }
.dch-row:hover { background: var(--bg2); }
.dch-row.is-open { background: var(--bg2); border-left-color: var(--ink-gold); }
.dch-row-top { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.dch-row-sub { font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* D-3 owner tag (Ed 2026-10-05): an assisted dispatcher's driver ("for adam") or a truck with no dispatcher */
.dch-owner { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink-info); }
.dch-owner.is-none { color: var(--text2); font-weight: 600; }
.dch-row-rep { font-size: 10.5px; color: var(--text3); }
.dch-pill { margin-left: auto; min-width: 18px; padding: 0 5px; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; color: var(--bg); background: var(--ink-bad); }
.dch-eye { font-size: 11px; color: var(--ink-info); }
.dch-empty { padding: 6px 12px; font-size: 12px; color: var(--text3); }
.dch-main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dch-blank { align-items: center; justify-content: center; gap: 8px; padding: 24px; font-size: 13px; color: var(--text2); text-align: center; }
.dch-hint { font-size: 11.5px; color: var(--text3); }
.dch-link { font: inherit; color: var(--ink-info); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; min-height: 24px; }
.dch-head { padding: 10px 16px; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.dch-head-1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.dch-head-2 { font-size: 11.5px; color: var(--text2); }
.dch-truck { font-family: var(--mono); font-size: 11.5px; color: var(--text2); }
.dch-rep { margin-left: auto; font-size: 11px; color: var(--text3); }
.dch-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 16px; border-bottom: 1px solid var(--border); }
.dch-chip { min-height: 24px; padding: 0 8px; font: inherit; font-size: 11px; font-weight: 700; color: var(--text2); background: var(--bg); border: 1px solid var(--border2); border-radius: 0; cursor: pointer; }
.dch-chip.is-on { color: var(--bg); background: var(--text); border-color: var(--text); }
.dch-log { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; }
.dch-msg { max-width: 72%; padding: 6px 10px; border: 1px solid var(--border); background: var(--bg); }
.dch-msg.is-office { align-self: flex-end; background: var(--bg2); }
.dch-msg-meta { font-size: 10.5px; color: var(--text3); margin-bottom: 2px; }
.dch-msg-body { font-size: 12.5px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.dch-note { margin: 0 16px; padding: 6px 0; font-size: 11.5px; color: var(--text2); }
.dch-reply { display: flex; gap: 6px; align-items: stretch; padding: 8px 16px 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.dch-dept { min-height: 32px; font: inherit; font-size: 12px; color: var(--text); background: var(--bg2); border: 1px solid var(--border2); border-radius: 0; }
.dch-input { flex: 1 1 240px; min-height: 32px; padding: 6px 8px; font: inherit; font-size: 12.5px; color: var(--text); background: var(--bg2); border: 1px solid var(--border2); border-radius: 0; resize: vertical; }
.dch-send { min-height: 32px; padding: 0 14px; font: inherit; font-size: 12px; font-weight: 700; color: var(--bg); background: var(--text); border: 1px solid var(--text); border-radius: 0; cursor: pointer; }
.dch-send:disabled { color: var(--text3); background: var(--bg2); border-color: var(--border2); cursor: default; }

/* the top chat icon's menu — watched drivers first, then "+N other unread", then Team chat (an in-place dropdown, like
   the alert bell's; never a modal) */
.dch-menu { position: fixed; z-index: 1000; width: min(340px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto; background: var(--bg); color: var(--text); border: 1px solid var(--border2); box-shadow: 0 6px 24px rgba(0,0,0,.25); padding-bottom: 4px; }
.dch-menu-sec { padding: 8px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); }
.dch-menu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; min-height: 36px; padding: 6px 12px; text-align: left; font: inherit; font-size: 12.5px; color: var(--text); background: transparent; border: 0; border-top: 1px solid var(--border); cursor: pointer; }
.dch-menu-row:hover, .dch-menu-row:focus-visible { background: var(--bg2); outline: none; }
.dch-menu-row .dch-row-sub { flex-basis: 100%; }
.dch-menu-more, .dch-menu-team { font-weight: 700; }

/* D-3 "My drivers | All drivers" (Ed 2026-10-05, option A): the hub opens on my drivers; All is one click away */
.dch-scope { display: flex; gap: 0; margin-bottom: 6px; }
.dch-scope-btn { flex: 1 1 0; min-height: 24px; padding: 0 8px; font: inherit; font-size: 11px; font-weight: 700; color: var(--text); background: var(--bg); border: 1px solid var(--border2); border-radius: 0; cursor: pointer; }
.dch-scope-btn + .dch-scope-btn { border-left: 0; }
.dch-scope-btn[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.dch-scope-btn:focus-visible { outline: 2px solid var(--ink-info); outline-offset: 1px; }
