/* ==========================================================================
   Team chat — WhatsApp-style skin (owner-approved canvas "Team Chat Revamp",
   12 Sep 2026). Loads AFTER workspace.css, components.css and
   redesign-pages.css, so equal-specificity rules here win. It restyles the
   chat chrome only (list, conversation, composer, sheets, group info) and adds
   the new pieces: section headers, the attach sheet, the emoji pop, the phone
   long-press sheet, group-info quick rows, the desktop two-pane expand.
   Every behaviour is the existing one — only the look and the reach change.
   ========================================================================== */
:root {
  --wa-ink: #1B1B19; --wa-muted: #6B6A65; --wa-faint: #6C6C64;
  --wa-line: #E6E6E0; --wa-line2: #F0F0EA; --wa-bg: #F6F6F3;
  --wa-green: #3C7538; --wa-green-d: #2D5A2A; --wa-mint: #E4F3E1; --wa-mint2: #EAF1E8;
  --wa-wall: #EDEDE6; --wa-blue: #3A6FA0; --wa-red: #C0443D; --wa-amber: #8C5E13;
  --wa-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wa-list-w: 380px;
}

/* ---- panel head (desktop) + phone head --------------------------------- */
#wsxPanel .wsx-panel-head { padding: 12px 8px 4px 14px; align-items: center; }
.wsx-panel-h-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.wsx-panel-h-sub { font-size: 11.5px; color: var(--wa-muted); }
.wsx-panel-x, .wsx-panel-exp, .wsx-panel-menu, .wsx-panel-bell { width: 34px; height: 34px; border-radius: 50%; color: var(--wa-muted); }
.wsx-panel-x:hover, .wsx-panel-exp:hover, .wsx-panel-menu:hover, .wsx-panel-bell:hover { background: rgba(60,117,56,.08); color: var(--wa-green-d); }
.wsx-mobhead { padding: calc(12px + env(safe-area-inset-top, 0px)) 8px 6px 16px; border-bottom: 0; gap: 4px; }
.wsx-mob-title { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.wsx-mob-actions button { width: 40px; height: 40px; border-radius: 50%; }
.wsx-mob-back { width: 36px; height: 36px; border-radius: 50%; }

/* ---- chat list: search, chips, sections, rows -------------------------- */
.wsx-cl-search { padding: 4px 14px 6px; border-bottom: 0; }
.wsx-cl-search input { background: var(--wa-bg); border: 1px solid var(--wa-line); border-radius: 999px; min-height: 40px; padding: 8px 46px 8px 38px; font-size: 13px; color: var(--wa-ink); }
.wsx-cl-search input:focus { background: #fff; border-color: var(--wa-green); box-shadow: 0 0 0 3px rgba(60,117,56,.12); }
.wsx-cl-search-ic { left: 26px; color: var(--wa-faint); }
.wsx-cl-search-ic svg { width: 16px; height: 16px; }
/* ✕ that closes the search: a 44px target over the box's right end, its icon in the middle
   (owner, 14 Sep 2026 — it was 20px wide with the icon 11px above centre, so taps hit the text). */
.wsx-cl-search-x { top: 50%; right: 14px; width: 44px; height: 44px; min-height: 44px; padding: 0; transform: translateY(-50%); align-items: center; justify-content: center; border-radius: 999px; color: var(--wa-faint); touch-action: manipulation; }
.wsx-cl-search-x svg { width: 16px; height: 16px; }
.wsx-cl-chips { padding: 4px 14px 10px; gap: 6px; }
.wsx-cl-chip { min-height: 32px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--wa-line); background: #fff; color: var(--wa-muted); display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; }
.wsx-cl-chip.active { background: var(--wa-green); border-color: var(--wa-green); color: #fff; }
.wsx-cl-chip .n { font-family: var(--wa-mono); font-size: 10.5px; opacity: .8; }
.wa-sec { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--wa-faint); padding: 10px 14px 4px; display: flex; align-items: center; gap: 6px; }
.wa-sec svg { width: 12px; height: 12px; }
.wsx-cl-rows { padding: 0 0 84px; }
.wsx-cl-row { min-height: 70px; padding: 10px 14px; gap: 12px; border-bottom: 1px solid var(--wa-line2); border-radius: 0; margin: 0; align-items: center; }
.wsx-cl-row::after { display: none; }
.wsx-cl-row:hover { background: #FAFAF7; }
.wsx-cl-row.active { background: var(--wa-mint2); }
.wsx-cl-row.pinned { background: #fff; }
.wsx-cl-row.pinned:hover { background: #FAFAF7; }
.wsx-cl-av { width: 46px; height: 46px; border-radius: 50%; background: var(--wa-green); background-image: none; color: #fff; font-weight: 600; font-size: 15px; position: relative; overflow: visible; box-shadow: none; }
.wsx-cl-av img { border-radius: 50%; }
.wsx-cl-av-grp { background: #2E5880; }
.wsx-cl-av-team { background: #8C5E13; color: #fff; font-size: 15px; }
.wsx-cl-av-client { background: #3C3489; }
.wsx-cl-av-order { background: #A0335C; }
.wsx-cl-av-bot { background: #A0335C; }
/* favourite = the star on the avatar's corner (the old inline pin icon goes) */
.wsx-cl-pin { display: none; }
.wsx-cl-row.pinned .wsx-cl-av::after { content: '★'; position: absolute; right: -3px; top: -3px; width: 16px; height: 16px; border-radius: 50%; background: #FDF0CC; color: var(--wa-amber); font-size: 9px; line-height: 16px; text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.wsx-cl-top { align-items: center; gap: 8px; }
.wsx-cl-name { font-size: 14.5px; font-weight: 600; color: var(--wa-ink); }
.wsx-cl-row.unread .wsx-cl-name { font-weight: 600; }
.wsx-cl-desig { font-weight: 400; font-size: 12px; color: var(--wa-muted); }
.wsx-cl-time { font-family: var(--wa-mono); font-size: 10.5px; font-weight: 500; color: var(--wa-faint); }
.wsx-cl-row.unread .wsx-cl-time { color: var(--wa-green); font-weight: 600; }
.wsx-cl-bot { gap: 6px; margin-top: 3px; min-height: 18px; }
.wsx-cl-prev { font-size: 12.5px; color: var(--wa-muted); }
.wsx-cl-prev b { font-weight: 500; color: var(--wa-ink); }
.wsx-cl-row.unread .wsx-cl-prev { color: var(--wa-ink); font-weight: 500; }
.wsx-cl-mute { margin: 0 0 0 4px; color: var(--wa-faint); }
.wsx-cl-badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--wa-green); font-size: 11px; font-weight: 700; padding: 0 6px; }
.wsx-cl-row.muted .wsx-cl-badge { background: #C9C9C0; }
.wsx-cl-at { background: var(--wa-red); }
.wsx-cl-labels { margin-top: 4px; gap: 4px; }
.wsx-cl-labels .wsx-chat-label { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 1px 6px; border-radius: 999px; line-height: 1.5; }
/* archived entry (top of the list) + the archived view's back button */
.wsx-cl-arch, .wsx-cl-archback { min-height: 44px; padding: 8px 14px; gap: 12px; border-bottom: 1px solid var(--wa-line2); font-size: 13.5px; }
.wsx-cl-arch-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--wa-bg); color: var(--wa-muted); }
.wsx-cl-arch-t { font-weight: 500; }
.wsx-cl-arch-n { font-family: var(--wa-mono); font-size: 11px; font-weight: 500; color: var(--wa-faint); }
.wsx-cl-archback { font-weight: 600; color: var(--wa-ink); }
.wsx-cl-fab { width: 48px; height: 48px; border-radius: 14px; background: var(--wa-green); box-shadow: 0 8px 24px rgba(60,117,56,.35); }
/* swipe tray: pin · mute · archive */
.wsx-cl-tray .wsx-cla { width: 78px; font-size: 11px; font-weight: 600; }
.wsx-cl-tray .wsx-cla-arch { background: #2E5880; }
.wsx-cl-empty-ic { background: var(--wa-mint2); color: var(--wa-green); border-radius: 50%; }
@media (max-width: 900px), (pointer: coarse) {
  .wsx-cl-fab { width: 56px; height: 56px; border-radius: 16px; }
}

/* ---- conversation header + pinned strip -------------------------------- */
.wsx-chat-head { min-height: 60px; padding: 8px 8px 8px 6px; gap: 8px; background: #fff; border-bottom: 1px solid var(--wa-line); }
.wsx-chat-back { width: 34px; height: 34px; border-radius: 50%; font-size: 24px; color: var(--wa-muted); }
.wsx-chat-avatar { flex: none; }
.wsx-chat-avatar img { width: 36px; height: 36px; }
/* The header picture is always there now (14 Sep 2026) — the list avatar at header size. */
.wsx-chat-avatar .wsx-cl-av { width: 36px; height: 36px; font-size: 13px; box-shadow: none; cursor: pointer; }
.wsx-chat-avatar .wsx-cl-av img { width: 100%; height: 100%; }
.wsx-chat-avatar .wsx-cl-av-bot .wsx-bot-spark { font-size: 16px; }
/* Phones with the keyboard up (erp-workspace.js _keyboardFit pins the chat to the
   visible screen): the home-bar padding under the box is not needed above a keyboard. */
body.wsx-kb-open .wsx-composer { padding-bottom: 8px; }
.wsx-chat-title { font-size: 15px; font-weight: 600; }
.wsx-chat-sub { font-size: 11.5px; color: var(--wa-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsx-chat-desig { font-size: 12px; }
.wsx-chat-gear { width: 34px; height: 34px; border-radius: 50%; color: var(--wa-muted); position: relative; }
.wsx-chat-gear:hover { background: rgba(60,117,56,.08); color: var(--wa-green-d); }
.wsx-chat-gear svg { width: 18px; height: 18px; }
.wsx-chat-head-actions { gap: 0; }
/* search / filter and labels live in the ⋯ More menu now (still in the DOM — the
   menu, the phone header 🔍 and Ctrl+Shift+L call the same functions) */
#wsxChatFilterBtn, #wsxChatLabelBtn { display: none !important; }
.wa-more { min-width: 240px; }
.wa-more .wsx-snooze-ic svg { width: 16px; height: 16px; }
.wa-pins-n { position: absolute; top: 1px; right: -1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--wa-amber); color: #fff; font-family: var(--wa-mono); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wsx-pin-bar { background: #FBFBF9; border-bottom: 1px solid var(--wa-line); padding: 6px 14px; gap: 10px; }
.wsx-pin-bar .wsx-pin-ic { color: var(--wa-green); }
.wsx-pin-rail i.on { background: var(--wa-green); }
.wsx-pin-rail i { background: rgba(60,117,56,.25); }
.wsx-pin-lbl { color: var(--wa-ink); font-weight: 600; font-size: 12px; text-transform: none; letter-spacing: 0; }
.wsx-pin-lbl svg { color: var(--wa-green); }
.wsx-pin-tx { font-size: 12.5px; }
.wsx-pin-tx b { color: var(--wa-ink); font-weight: 600; }

/* ---- the wall + bubbles ------------------------------------------------- */
.wsx-msgs { background: var(--wa-wall); background-image: radial-gradient(#E2E2D8 1px, transparent 1px); background-size: 18px 18px; padding: 12px 12px 8px; gap: 3px; }
.wsx-day span { background: #fff; border: 1px solid var(--wa-line); border-radius: 999px; padding: 3px 10px; font-family: var(--wa-mono); font-size: 10.5px; font-weight: 500; color: var(--wa-muted); text-transform: none; letter-spacing: 0; box-shadow: none; }
.wsx-day-pill span { background: #fff; border: 1px solid var(--wa-line); }
.wsx-unread-div span { background: var(--wa-mint2); color: var(--wa-green); border: none; border-radius: 999px; padding: 3px 10px; font-size: 10.5px; letter-spacing: .06em; }
.wsx-msg { max-width: 78%; gap: 6px; margin-top: 8px; }
.wsx-msg.grouped { margin-top: 3px; }
.wsx-av { width: 26px; height: 26px; background: var(--wa-green); background-image: none; font-size: 10px; font-weight: 600; }
.wsx-msg-sender { font-size: 11.5px; font-weight: 600; color: var(--wa-blue); margin: 0 0 2px 2px; }
.wsx-msg-desig { font-size: 10.5px; color: var(--wa-faint); font-weight: 500; }
.wsx-bubble { border-radius: 12px; border: none; box-shadow: 0 1px 1px rgba(0,0,0,.06); background: #fff; padding: 8px 10px 5px; font-size: 13.5px; line-height: 1.42; }
.wsx-msg.them .wsx-bubble { border-radius: 12px 12px 12px 3px; }
.wsx-msg.me .wsx-bubble { background: var(--wa-mint); border: none; border-radius: 12px 12px 3px 12px; }
.wsx-msg.grouped.them .wsx-bubble { border-radius: 12px 12px 12px 3px; }
.wsx-msg.grouped.me .wsx-bubble { border-radius: 12px 12px 3px 12px; }
.wsx-msg-time { font-family: var(--wa-mono); font-size: 10px; color: var(--wa-faint); margin: 3px 0 0 10px; }
.wsx-msg.me .wsx-msg-time { color: var(--wa-faint); }
.wsx-tick { color: var(--wa-faint); }
.wsx-tick.read { color: var(--wa-blue); }
.wsx-msg-edited { font-family: var(--wa-mono); }
.wsx-reply-tag { border-left: 3px solid var(--wa-green); background: rgba(0,0,0,.05); border-radius: 6px; padding: 5px 8px; font-size: 12px; margin-bottom: 6px; color: #4A4A45; }
.wsx-reply-tag b { color: var(--wa-green); font-size: 11px; margin-bottom: 1px; }
.wsx-reacts { margin: -7px 0 0 8px; position: relative; z-index: 1; }
.wsx-msg.me .wsx-reacts { margin: -7px 8px 0 0; }
.wsx-react-chip { background: #fff; border: 1px solid var(--wa-line); border-radius: 999px; padding: 1px 7px; font-size: 11px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wsx-react-chip.on { background: var(--wa-mint2); border-color: var(--wa-green); }
/* ios-pwa.css gives every button on a touch screen min-height 44px, which blew the reaction
   chip up into a 44px circle hanging off the bubble (design sweep, 14 Sep 2026). A pill. */
@media (hover: none) and (pointer: coarse) { .wsx-react-chip { min-height: 26px; padding: 2px 8px; font-size: 12px; } }
.wsx-msg-att a.wsx-att-open, .wsx-msg-att a[data-att-type="file"] { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.045); border: none; font-size: 12.5px; font-weight: 600; color: var(--wa-ink); }
.wsx-msg-att a.wsx-att-open:hover { background: rgba(0,0,0,.07); border-color: transparent; }
.wsx-att-ic { width: 36px; height: 36px; border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--wa-green); }
.wsx-att-ic svg { width: 18px; height: 18px; }
.wsx-att-size { font-family: var(--wa-mono); font-size: 10px; font-weight: 500; color: var(--wa-faint); }
.wsx-msg-att img { border-radius: 10px; }
/* ---- a photo in a bubble (design review "Team Chat Bubbles", 14 Sep 2026) ----
   The file-card rule above also matched a photo's link, so every photo sat in a grey
   padded card; on a phone it was also wider than its bubble and the forward circle
   landed on it. A photo is the picture only: never wider than its bubble, no size chip
   (files keep theirs), and with a caption it fills the bubble inside a 3px frame. */
.wsx-msg-att.wsx-att-photo > a.wsx-att-open { display: block; padding: 0; background: none; border-radius: 9px; overflow: hidden; }
.wsx-msg-att.wsx-att-photo > a.wsx-att-open:hover { background: none; }
.wsx-msg-att.wsx-att-photo .wsx-att-size { display: none; }
.wsx-bubble.wsx-photo-cap { max-width: 306px; box-sizing: border-box; }
.wsx-bubble.wsx-photo-cap > .wsx-msg-att.wsx-att-photo { margin: 0 -7px 6px; }
.wsx-bubble.wsx-photo-cap > .wsx-msg-menu + .wsx-msg-att.wsx-att-photo { margin-top: -5px; }
.wsx-bubble.wsx-photo-cap > .wsx-msg-att.wsx-att-photo img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: 9px; box-shadow: none; }
.wsx-bubble.wsx-photo-cap > .wsx-msg-att.wsx-att-photo img:hover { transform: none; }
.wsx-typing-bar { font-size: 12px; color: var(--wa-muted); font-weight: 500; padding: 4px 14px; background: var(--wa-wall); }
.wsx-typing-dots i { background: var(--wa-muted); }
.wsx-replying { background: var(--wa-bg); border-top: 1px solid var(--wa-line); font-size: 12.5px; }
.wsx-msg-menu { border-radius: 50%; }
.wsx-tobottom { background: #fff; color: var(--wa-muted); border: 1px solid var(--wa-line); }

/* ---- composer: emoji · + · message · mic · send ------------------------ */
.wsx-composer { background: var(--wa-bg); border-top: 1px solid var(--wa-line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
.wa-comp-row { display: flex; align-items: flex-end; gap: 4px; }
.wa-ibtn { width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; color: var(--wa-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; margin: 0 0 2px; transition: background .12s, color .12s, transform .12s; }
.wa-ibtn svg { width: 22px; height: 22px; }
.wa-ibtn:hover { background: rgba(60,117,56,.08); color: var(--wa-green-d); }
.wa-ibtn:active { transform: scale(.92); }
.wa-ibtn.on { color: var(--wa-green-d); background: rgba(60,117,56,.12); }
.wa-comp-row .wsx-input-wrap { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--wa-line); border-radius: 22px; min-height: 44px; box-sizing: border-box; }
.wa-comp-row .wsx-input-wrap:focus-within { border-color: var(--wa-green); box-shadow: 0 0 0 3px rgba(60,117,56,.12); }
.wsx-composer .wa-comp-row .wsx-input-wrap > textarea { border: none !important; box-shadow: none !important; padding: 11px 14px; font-size: 14px; line-height: 1.4; min-height: 42px; box-sizing: border-box; border-radius: 22px; }
.wsx-composer .wa-comp-row .wsx-mn-backdrop { border: none; border-radius: 22px; padding: 11px 14px; font-size: 14px; line-height: 1.4; }
.wsx-composer .wa-comp-row .wsx-attach#wsxVoice { width: 40px; height: 40px; background: transparent; color: var(--wa-muted); margin-bottom: 2px; }
.wsx-composer .wa-comp-row .wsx-attach#wsxVoice:hover { background: rgba(60,117,56,.08); color: var(--wa-green-d); }
.wsx-composer .wa-comp-row .wsx-attach#wsxVoice svg { width: 21px; height: 21px; }
.wsx-composer .wa-comp-row .wsx-send { width: 44px; height: 44px; background: var(--wa-green); box-shadow: none; }
.wsx-composer .wa-comp-row .wsx-send:hover { background: var(--wa-green-d); }
.wsx-composer .wa-comp-row .wsx-send svg { width: 20px; height: 20px; }
.wsx-composer.wsx-note-mode .wa-comp-row .wsx-input-wrap { background: #FFF4E3; border-color: #F2D9A6; }
.wsx-composer.wsx-note-mode .wa-comp-row .wsx-send { background: #E69500; }
.wsx-composer.is-voice-recording .wa-comp-row .wsx-input-wrap { min-height: 44px; }
.wsx-fmt-bar { padding: 2px 4px 0; }
.wsx-composer { position: relative; }
/* the legacy tool buttons stay in the DOM (their handlers + the popups they anchor)
   but out of sight, parked at the composer's top edge so a popup opened from the
   sheet lands just above the composer */
.wsx-comp-tools.wa-comp-hidden { display: flex !important; position: absolute; left: 12px; right: 12px; top: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
@media (pointer: coarse) {
  /* WhatsApp: the mic gives way to Send once there is text */
  .wsx-composer:not(:has(#wsxInput:placeholder-shown)) #wsxVoice { display: none; }
}

/* ---- attach sheet (the "+") -------------------------------------------- */
.wa-scrim { position: fixed; inset: 0; z-index: 10180; background: rgba(27,27,25,.35); opacity: 0; transition: opacity .18s ease; }
.wa-scrim.open { opacity: 1; }
.wa-sheet { position: fixed; z-index: 10200; background: #fff; border-radius: 16px; padding: 8px 16px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.18); border: 1px solid var(--wa-line); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .16s ease, transform .16s cubic-bezier(.23,1,.32,1); box-sizing: border-box; }
.wa-sheet.open { opacity: 1; transform: none; }
.wa-sheet.bottom { border-radius: 16px 16px 0 0; border: none; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 32px rgba(0,0,0,.18); transform: translateY(24px); }
.wa-sheet.bottom.open { transform: none; }
.wa-sheet-grab { width: 38px; height: 4px; border-radius: 2px; background: #D6D6CE; margin: 4px auto 14px; }
.wa-sheet:not(.bottom) .wa-sheet-grab { display: none; }
.wa-sheet:not(.bottom) { padding-top: 16px; }
.wa-sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.wa-sheet-sec { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--wa-faint); margin: 0 0 8px; }
.wa-sheet-grid + .wa-sheet-sec { margin-top: 14px; }
.wa-sheet-grid button { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 7px; font: 500 11.5px/1.2 inherit; text-align: center; color: var(--wa-ink); cursor: pointer; padding: 0; min-height: 0; }
.wa-sheet-grid button:active .ic { transform: scale(.94); }
.wa-sheet-grid .ic { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .12s; }
.wa-sheet:not(.bottom) .wa-sheet-grid .ic { width: 52px; height: 52px; }
.wa-sheet:not(.bottom) .wa-sheet-grid .ic svg { width: 22px; height: 22px; }
.wa-sheet:not(.bottom) .wa-sheet-grid { gap: 10px 6px; }
.wa-sheet-grid .ic svg { width: 24px; height: 24px; }
.wa-tone-doc { background: #E5EEF6; color: #2E5880; }
.wa-tone-cam { background: #F7E5E3; color: var(--wa-red); }
.wa-tone-pho { background: #EEEDFE; color: #3C3489; }
.wa-tone-grn { background: var(--wa-mint2); color: var(--wa-green); }
.wa-tone-amb { background: #FDF0CC; color: var(--wa-amber); }
.wa-tone-gry { background: var(--wa-bg); color: var(--wa-muted); }
.wa-sheet-note { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--wa-line); border-radius: 10px; background: #FBFBF9; font-size: 12px; color: var(--wa-muted); line-height: 1.45; }
.wa-sheet-note b { color: var(--wa-ink); font-weight: 600; }
.wa-sheet-note .mono { font-family: var(--wa-mono); }

/* ---- emoji pop ---------------------------------------------------------- */
.wa-emoji { position: fixed; z-index: 10200; width: 316px; max-width: calc(100vw - 16px); max-height: 232px; overflow-y: auto; background: #fff; border: 1px solid var(--wa-line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.16); padding: 8px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; opacity: 0; transform: translateY(6px); transition: opacity .14s ease, transform .14s ease; box-sizing: border-box; }
.wa-emoji.open { opacity: 1; transform: none; }
.wa-emoji button { border: none; background: transparent; font-size: 22px; line-height: 1; height: 36px; border-radius: 8px; cursor: pointer; padding: 0; min-height: 0; }
.wa-emoji button:hover { background: var(--wa-bg); }
.wa-emoji button:active { transform: scale(.9); }

/* ---- phone long-press (13 Sep, matched to WhatsApp): the message lifts over a
   blurred scrim, a reaction pill sits just above it, and a compact card hangs
   under it on the message's own side — plain icons, six items, then More… --- */
@media (pointer: coarse) {
  .wsx-mm-scrim { background: rgba(16, 20, 16, .30); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .wsx-msgmenu.wa-sheet-menu { width: 78vw; min-width: 260px; max-width: 320px; gap: 0; align-items: stretch; border-radius: 14px; border: none; background: #F7F8F6; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; box-shadow: 0 10px 34px rgba(0,0,0,.20); transform: none; transition: opacity .12s ease; }
  .wsx-msgmenu.wa-sheet-menu.open { transform: none; }
  .wa-sheet-menu .wsx-mm-emojis { display: none; }
  .wa-sheet-menu .wsx-mm-list button { min-height: 44px; padding: 0 16px 0 14px; font-size: 17px; font-weight: 400; letter-spacing: -.01em; color: var(--wa-ink); gap: 14px; border-radius: 0; border-bottom: .5px solid rgba(0,0,0,.14); }
  .wa-sheet-menu .wsx-mm-list button:last-child { border-bottom: none; }
  .wa-sheet-menu .wsx-mm-list button:active { background: rgba(0,0,0,.06); }
  .wa-sheet-menu .wsx-mm-ic { width: 24px; height: 24px; background: none; color: var(--wa-ink); display: flex; align-items: center; justify-content: center; flex: none; }
  .wa-sheet-menu .wsx-mm-ic svg { width: 21px; height: 21px; stroke-width: 1.7; }
  .wa-sheet-menu .wsx-mm-list button.wsx-mm-danger, .wa-sheet-menu .wsx-mm-list button.wsx-mm-danger .wsx-mm-ic { color: #E0403A; }
  .wa-sheet-menu .wsx-mm-more { border-top: 7px solid rgba(0,0,0,.07) !important; }
  .wa-sheet-menu .wsx-mm-more[hidden] { display: none !important; }
  .wa-sheet-menu .wsx-mm-rest { display: flex; flex-direction: column; border-top: 7px solid rgba(0,0,0,.07); }
  .wa-sheet-menu .wsx-mm-rest[hidden] { display: none; }
  .wa-react-bar { position: fixed; z-index: 10205; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: rgba(250, 251, 250, .96); box-shadow: 0 6px 22px rgba(0,0,0,.18); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .14s ease, transform .16s cubic-bezier(.23,1,.32,1); max-width: calc(100vw - 16px); flex-wrap: wrap; }
  .wa-react-bar.open { opacity: 1; transform: none; }
  .wa-react-bar button { border: none; background: transparent; width: 38px; height: 38px; font-size: 27px; line-height: 1; border-radius: 50%; padding: 0; cursor: pointer; }
  .wa-react-bar button:active { transform: scale(1.25); }
  .wa-react-bar button.more { width: 30px; height: 30px; margin-left: 2px; background: #E9EBE8; color: #55564F; font-size: 20px; font-weight: 500; align-self: center; }
}

/* ---- row quick menu + list header menu ---------------------------------- */
.wsx-snooze-menu { border-radius: 14px; border: 1px solid var(--wa-line); box-shadow: 0 14px 40px rgba(0,0,0,.16); }
.wsx-snooze-menu button { font-size: 13.5px; min-height: 40px; }

/* ---- group info / contact info pane ------------------------------------ */
.wsx-group-pane { background: var(--wa-bg); }
.wsx-gp-head { min-height: 52px; background: #fff; padding: 8px 10px 8px 6px; }
.wsx-gp-head .wsx-chat-title { font-size: 15px; }
.wsx-gp-body { background: var(--wa-bg); background-image: none; padding: 0 0 24px; }
.wsx-gi-hero { background: #fff; padding: 18px 16px 14px; border-bottom: 1px solid var(--wa-line); margin: 0; }
.wsx-gi-avwrap, .wsx-gi-av { width: 96px; height: 96px; }
.wsx-gi-avph { background: #8C5E13; font-size: 32px; font-weight: 600; }
.wsx-gi-name, .wsx-gi-name-ro { font-size: 20px; font-weight: 600; }
.wsx-gi-sub, .wsx-ci-role { font-size: 12.5px; color: var(--wa-muted); }
.wsx-gi-tiles { justify-content: center; gap: 18px; background: #fff; margin: 0; padding: 4px 16px 16px; border-bottom: 1px solid var(--wa-line); }
.wsx-gi-tile { flex: 0 0 auto; border: none; background: transparent; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--wa-ink); padding: 0; }
.wsx-gi-tile:hover { background: transparent; border-color: transparent; }
.wsx-gi-tile svg { width: 40px; height: 40px; padding: 10px; box-sizing: border-box; border-radius: 50%; background: var(--wa-mint2); color: var(--wa-green); }
.wsx-gi-card { border-radius: 0; border-left: none; border-right: none; margin: 10px 0 0; padding: 12px 16px; }
.wsx-gi-card-h { font-size: 10.5px; letter-spacing: .08em; }
.wa-gi-tiles { display: flex; justify-content: center; gap: 18px; padding: 4px 16px 16px; background: #fff; border-bottom: 1px solid var(--wa-line); }
.wa-gi-tiles button { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 11.5px/1.2 inherit; color: var(--wa-ink); cursor: pointer; padding: 0; min-height: 0; }
.wa-gi-tiles .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--wa-mint2); color: var(--wa-green); display: flex; align-items: center; justify-content: center; }
.wa-gi-tiles .ic svg { width: 20px; height: 20px; }
.wa-gi-tiles button:active .ic { transform: scale(.94); }
.wa-gi-list { background: #fff; border-top: 1px solid var(--wa-line); border-bottom: 1px solid var(--wa-line); margin-top: 10px; }
.wa-li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; border: 0; border-bottom: 1px solid var(--wa-line2); width: 100%; background: transparent; text-align: left; font: inherit; color: var(--wa-ink); cursor: pointer; box-sizing: border-box; }
.wa-li:last-child { border-bottom: 0; }
.wa-li:hover { background: #FAFAF7; }
.wa-li .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--wa-mint2); color: var(--wa-green); display: flex; align-items: center; justify-content: center; flex: none; }
.wa-li .ic svg { width: 18px; height: 18px; }
.wa-li .ic.red { background: #F7E5E3; color: var(--wa-red); }
.wa-li .tx { flex: 1; min-width: 0; }
/* .t and .s are spans: without display:block they ran together on one line
   ("Media, files & linksPhotos and files shared here") — design sweep, 14 Sep 2026. */
.wa-li .t { display: block; font-size: 14px; font-weight: 500; }
.wa-li .s { display: block; font-size: 12px; color: var(--wa-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-li.danger .t { color: #B53D1F; }
.wa-li .r { color: var(--wa-faint); display: inline-flex; }
.wa-li .r svg { width: 16px; height: 16px; }
.wa-sw { width: 40px; height: 22px; border-radius: 999px; background: #D6D6CE; position: relative; flex: none; transition: background .15s; }
.wa-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.wa-sw.on { background: var(--wa-green); }
.wa-sw.on::after { left: 20px; }
.wsx-ge-leave, .wsx-ge-del { border-radius: 8px; }
.wsx-ge-save { border-radius: 8px; min-height: 40px; }

/* ---- pinned messages sheet ---------------------------------------------- */
.wsx-sheet-head { min-height: 56px; }
.wsx-sheet-head .wsx-pop-ico { border-radius: 50%; background: var(--wa-mint2); color: var(--wa-green); }
.wsx-pinlist { background: var(--wa-wall); background-image: radial-gradient(#E2E2D8 1px, transparent 1px); background-size: 18px 18px; margin: -14px -16px; padding: 12px; min-height: 100%; }
.wsx-pinrow { background: #fff; border: 1px solid var(--wa-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.06); align-items: flex-start; }
.wsx-pinrow .wsx-pin-ic { color: var(--wa-green); margin-top: 2px; }
.wsx-pinrow-tx { white-space: normal; font-size: 13.5px; line-height: 1.42; }
.wsx-pinrow-by { font-family: var(--wa-mono); font-size: 10.5px; margin-top: 4px; }
.wsx-pinrow-main::after { content: 'Jump to'; display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--wa-green); }
.wsx-pinrow-x { color: #B53D1F; }
.wsx-pinrow-x:hover { background: #F7E5E3; }

/* ---- announcements (composer + scheduled manager) ----------------------- */
body .wsx-ac-lbl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--wa-faint); font-weight: 600; }
body .wsx-ac-chip { min-height: 30px; border-radius: 999px; font-size: 12px; }
body .wsx-ac-post { background: var(--wa-green); color: #fff; border-radius: 8px; min-height: 44px; font-weight: 600; }
body .wsx-ac-post:hover { background: var(--wa-green-d); }
body .wsx-ac-cancel { border: 1px solid #D6D6CE; border-radius: 8px; min-height: 44px; font-weight: 500; }
body .wsx-schedm-row { background: #fff; border: 1px solid var(--wa-line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
body .wsx-schedm-edit { background: var(--wa-green); color: #fff; border-radius: 8px; border: none; }
body .wsx-schedm-h { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--wa-faint); }

/* ---- desktop: Expand = two panes, list 380 on the left + conversation ---- */
@media (min-width: 901px) and (pointer: fine) {
  /* The list column moves to the left edge of the content area. transform:none
     is load-bearing twice over: the panel's slide-in translate (100% of its
     width) would shift the column, and a transformed panel becomes the
     containing block of the fixed conversation pane inside it. The
     conversation width comes from the viewport, not from .main-area (whose
     margin-right is 0 in some states), so the two columns always meet. */
  body.wsx-panel-max:not(.wsx-mobile-pings) #wsxPanel { left: var(--wsx-cmax-l, 248px); right: auto; width: var(--wa-list-w); transform: none !important; box-shadow: none; border-left: none; border-right: 1px solid var(--wa-line); }
  body.wsx-panel-max:not(.wsx-mobile-pings) #wsxChatPane { left: calc(var(--wsx-cmax-l, 248px) + var(--wa-list-w)); width: calc(100vw - var(--wsx-cmax-l, 248px) - var(--wa-list-w)); border-left: none; }
  body.wsx-panel-max #wsxMsgs { padding: 14px 60px; }
  body.wsx-panel-max .wsx-msg { max-width: 62%; }
  body.wsx-panel-max .wsx-composer { padding: 10px 24px; }
  body.wsx-panel-max #wsxPanelTab { right: 16px; }
  body.wsx-panel-max .wsx-cl-fab { right: calc(100% - var(--wa-list-w) + 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-sheet, .wa-scrim, .wa-emoji, .wa-ibtn, .wa-sw, .wa-sw::after, .wsx-msgmenu.wa-sheet-menu { transition: none; }
}

/* ---- phones (13 Sep): emoji and + live INSIDE the pill, like WhatsApp, so
   the text box keeps its width — four buttons beside it left ~175px on a
   375px phone and a short sentence wrapped to two lines. Mic and Send stay
   outside; the mic gives way to Send once there is text. ---------------- */
.wa-comp-row .wsx-input-wrap { align-items: flex-end; padding: 0 2px; position: relative; }
.wsx-input-wrap > .wa-ibtn { width: 38px; height: 40px; margin: 1px 0; flex: none; z-index: 2; }
.wsx-composer .wa-comp-row .wsx-input-wrap > textarea { padding: 11px 4px 11px 14px; letter-spacing: normal; }
.wsx-composer .wa-comp-row .wsx-mn-backdrop { left: 0; right: 40px; padding: 11px 4px 11px 14px; letter-spacing: normal; }
.wsx-composer .wa-comp-row .wsx-voice-rec { z-index: 3; }

/* ---- phones: ONE header inside a chat (13 Sep). The Chats header folds away
   while a conversation is open; the chat header's back arrow carries the
   number of other unread chats, WhatsApp-style. --------------------------- */
@media (max-width: 900px), (pointer: coarse) {
  body.wsx-mobile-pings.wa-in-chat #wsxMobHead { display: none; }
  /* the chat app (chat.varthagaminternational.com) shows the desktop panel head instead — fold that one too */
  body.chat-host.wa-in-chat .wsx-panel-head { display: none !important; }
  body.chat-host.wa-in-chat .wsx-chat-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  body.wsx-mobile-pings.wa-in-chat .wsx-chat-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
}
.wsx-chat-back { width: auto; min-width: 34px; padding: 0 8px 0 6px; display: inline-flex; align-items: center; gap: 3px; }
.wa-back-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wa-mint2); color: var(--wa-green-d); font: 600 12px/1 var(--font-sans, system-ui); }
.wa-back-n[hidden] { display: none; }

/* ---- WhatsApp touch gestures (13 Sep) ----------------------------------- */
@media (pointer: coarse) {
  #wsxMsgs .wsx-msg, #wsxMsgs .wsx-sysmsg { touch-action: pan-y; }   /* no browser double-tap zoom — double-tap reacts */
  .wa-reply-hint { position: fixed; z-index: 10150; width: 32px; height: 32px; border-radius: 50%; background: #E9EBE8; color: var(--wa-muted); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: background .12s, color .12s; }
  .wa-reply-hint svg { width: 18px; height: 18px; }
  .wa-reply-hint.on { background: var(--wa-green); color: #fff; }
  .wsx-msgmenu.wa-react-only { display: none; }   /* double-tap: just the pill */
  .wsx-voice-rec.wa-cancel-arm .wsx-vr-cancel { background: #F7E5E3; color: #B53D1F; transform: scale(1.15); }
  .wsx-voice-rec.wa-cancel-arm .wsx-vr-time::after { content: ' · release to cancel'; font-weight: 600; color: #B53D1F; }
}

/* ---- desktop panel (13 Sep): one header inside a chat; Expand from the list;
   no edge buttons while expanded; 📣 lives in + ------------------------- */
@media (min-width: 901px) and (pointer: fine) {
  body.wsx-panel-max #wsxPanelTab { display: none !important; }
  body.wsx-panel-max.wa-nochat #wsxChatPane { display: flex !important; align-items: center; justify-content: center; background: var(--wa-wall); background-image: radial-gradient(#E2E2D8 1px, transparent 1px); background-size: 18px 18px; }
  body.wsx-panel-max.wa-nochat #wsxChatPane > * { display: none !important; }
  body.wsx-panel-max.wa-nochat #wsxChatPane::before { content: 'Pick a chat on the left to start'; font-size: 15px; font-weight: 500; color: var(--wa-muted); background: #fff; border: 1px solid var(--wa-line); border-radius: 999px; padding: 10px 18px; }
  .wsx-chat-head-actions .wsx-panel-bell, .wsx-chat-head-actions .wsx-panel-exp, .wsx-chat-head-actions .wsx-panel-x { display: inline-flex !important; width: 34px; height: 34px; border-radius: 50%; color: var(--wa-muted); margin: 0; }
  .wsx-chat-head-actions .wsx-panel-bell .wsx-tab-badge { top: 0; right: 0; }
}
.wsx-chat-head-actions #wsxAnnBtn { display: none !important; }   /* Announcement is a tile under + (and in ⋯ More) */

/* ---- format bar close (13 Sep) ------------------------------------------ */
.wsx-fmt-bar .wsx-fmt-x { margin-left: auto; min-width: 28px; width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: var(--wa-muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.wsx-fmt-bar .wsx-fmt-x svg { width: 14px; height: 14px; }
.wsx-fmt-bar .wsx-fmt-x:hover { background: #F0F0EA; color: var(--wa-ink); }

/* ---- voice note review (13 Sep): play it back before sending ------------- */
.wsx-vr-audio { flex: 1; min-width: 120px; max-width: 260px; height: 32px; margin: 0 4px; }
/* ---- dock stays hidden while the chat is expanded (13 Sep) --------------- */
body.wsx-panel-max #wsxDock, body.wsx-panel-max #wsxDockLine { display: none !important; }
/* ---- group settings (13 Sep): picture + name on top, quick rows under them; the old
   Search / Media / Add tile row is redundant once the WhatsApp rows follow the hero ---- */
.wsx-gi-hero + .wa-gi { margin-top: 0; }
.wsx-gi-hero + .wa-gi ~ .wsx-gi-tiles { display: none; }
/* ---- notification icons by kind (13 Sep): mail / order / HR / workflow tones ------ */
.wsx-nt-ico.nt-mail  { background: #E8EEF9; color: #3558B5; }
.wsx-nt-ico.nt-order { background: #FBEEE5; color: #C2622C; }
.wsx-nt-ico.nt-hr    { background: #F3EAF9; color: #8A4FB3; }
.wsx-nt-ico.nt-flow  { background: #FFF4E0; color: #B8730A; }

/* ---- phone long-press card, 13 Sep (owner): the reaction pill is the card's TOP ROW and the
   list fills the card — no floating pill, no 216px inner card inside a wider one --------- */
.wsx-msgmenu.wa-sheet-menu .wsx-mm-list { width: 100%; box-sizing: border-box; background: transparent; border: none; border-radius: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wa-react-bar.wa-react-in { position: static; opacity: 1; transform: none; box-shadow: none; border-radius: 14px 14px 0 0; background: transparent; width: 100%; box-sizing: border-box; padding: 8px 8px 6px; gap: 2px; justify-content: space-between; border-bottom: .5px solid rgba(0,0,0,.14); }
.wa-react-bar.wa-react-in button { width: 36px; height: 36px; font-size: 25px; }
.wa-react-bar.wa-react-in button.more { width: 28px; height: 28px; font-size: 18px; }
.wa-react-bar.wa-react-in.wide { flex-wrap: wrap; justify-content: flex-start; }
/* double-tap = the pill alone: the card shrinks to its top row */
.wsx-msgmenu.wa-react-only { display: flex !important; width: max-content; min-width: 0; }
.wsx-msgmenu.wa-react-only .wsx-mm-list { display: none; }
.wsx-msgmenu.wa-react-only .wa-react-in { border-bottom: none; border-radius: 14px; justify-content: flex-start; gap: 4px; }

/* ---- New task dialog INSIDE the chat panel (13 Sep): the modal keeps its own markup and
   handlers; while open from a chat it is sized to the chat rect (inline left/top/width/height
   from _wsxModalInPanel) and fills it like a pane. Phones: the rect is the screen. ---------- */
#taskModal.wsx-in-panel { inset: auto; padding: 0; z-index: 10300; align-items: stretch; justify-content: stretch; background: rgba(27,27,25,.28); backdrop-filter: none; -webkit-backdrop-filter: none; overflow: hidden; animation: none; }
#taskModal.wsx-in-panel .modal { max-width: none; width: 100%; height: 100%; border-radius: 0; box-shadow: none; animation: none; display: flex; flex-direction: column; overflow: hidden; }
#taskModal.wsx-in-panel .modal-header { flex: none; padding: 12px 14px; border-bottom: 1px solid var(--wa-line); }
#taskModal.wsx-in-panel .modal-eyebrow { display: none; }
#taskModal.wsx-in-panel .modal-title { font-size: 17px; }
#taskModal.wsx-in-panel .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 14px; }
#taskModal.wsx-in-panel .modal-footer { flex: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--wa-line); background: var(--wa-bg); }
#taskModal.wsx-in-panel .form-group, #taskModal.wsx-in-panel .field { margin-bottom: 10px; }
#taskModal.wsx-in-panel input, #taskModal.wsx-in-panel textarea, #taskModal.wsx-in-panel select { font-size: 16px; }   /* every field: no iOS focus-zoom */
#taskModal.wsx-in-panel #task-priority-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#taskModal.wsx-in-panel #task-priority-picker .priority-option { padding: 8px 6px; font-size: 13px; }
#taskModal.wsx-in-panel #task-date-quick { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- New task in the chat, per the canvas (13 Sep): eyebrow becomes the 'posts into' line under the title ---- */
#taskModal.wsx-in-panel .modal-titles { display: flex; flex-direction: column-reverse; gap: 2px; }
#taskModal.wsx-in-panel .modal-eyebrow { display: block; font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--wa-muted); }
#taskModal.wsx-in-panel label, #taskModal.wsx-in-panel .form-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--wa-faint); }
#taskModal.wsx-in-panel #task-date-quick .date-chip { min-height: 32px; border-radius: 999px; font-size: 12px; }
#taskModal.wsx-in-panel #task-date-quick .date-chip.active { background: var(--wa-green); border-color: var(--wa-green); color: #fff; }
#taskModal.wsx-in-panel #task-priority-picker .priority-option.active { background: var(--wa-mint2); border-color: var(--wa-green); }
#taskModal.wsx-in-panel #taskSubmitBtn { min-height: 46px; border-radius: 12px; font-size: 15px; width: 100%; }

/* ---- Phones (13 Sep, owner): iOS zooms the page when a focused field is under 16px — the composer
   (14px), the list search (13px) and the filter box did exactly that. 16px on coarse pointers only. ---- */
@media (pointer: coarse) {
  #wsxPanel input, #wsxPanel textarea, #wsxPanel select, #wsxChatPane input, #wsxChatPane textarea,
  #taskModal.wsx-in-panel input, #taskModal.wsx-in-panel textarea, #taskModal.wsx-in-panel select { font-size: 16px !important; }
}

/* ---- reply with the attachment in view (13 Sep): thumbnail in the composer strip and in the quote ---- */
.wsx-replying.has-thumb { display: flex; align-items: center; gap: 10px; }
.wsx-replying .wsx-reply-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.wsx-replying-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsx-reply-tag.has-thumb { display: flex; align-items: center; gap: 8px; padding-right: 5px; }
.wsx-reply-tag .wsx-reply-tx { flex: 1; min-width: 0; }
.wsx-reply-tag .wsx-reply-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }

/* ---- Search found nothing → "Start a new chat" people rows under the empty line (13 Sep) ---- */
.wsx-cl-start { padding: 2px 12px 18px; }
.wsx-cl-start .wsx-nc-sec { padding: 4px 8px 6px; }
.wsx-cl-start .wsx-nc-person { padding: 9px 8px; }
.wsx-cl-start .wsx-nc-pname { font-size: 15px; font-weight: 500; }
.wsx-cl-av-new { background: var(--wa-mint2) !important; color: var(--wa-green) !important; display: flex; align-items: center; justify-content: center; }
.wsx-cl-av-new svg { width: 20px; height: 20px; }

/* ---- Search: message hits + the flash on the message you jumped to (13 Sep) ---- */
.wsx-cl-msghit .wsx-cl-prev mark { background: #FDF0CC; color: inherit; border-radius: 3px; padding: 0 1px; }
.wsx-msg-flash { animation: wsxMsgFlash 1.8s ease-out; }
@keyframes wsxMsgFlash { 0%, 40% { box-shadow: 0 0 0 3px rgba(60,117,56,.45); } 100% { box-shadow: none; } }

/* ---- Square tap targets in the chat on touch screens (owner, 15 Sep 2026: "make it square") ----
   The app-wide touch rule (ios-pwa.css: button { min-height: 44px }) raised only the height,
   so icon buttons sized 28–40px wide became slabs — and the round voice button an oval.
   Measured in the chat app on an iPhone viewport before the change: ⋮ More 34×44, mute bell
   34×44, chat ⋮ 34×44, + 38×44, voice 40×44, group-info back 34×44, photo camera 30×44,
   Notifications header chat 36×44 and search / AI / bell 40×44, row Snooze / Pin / Mark read
   28×44. The chat app (body.chat-host) and the ERP's phone chat overlay (body.wsx-mobile-pings)
   are the same UI. No display here: a hidden button stays hidden. */
@media (hover: none) and (pointer: coarse) {
  :is(body.chat-host, body.wsx-mobile-pings) :is(#wsxPanelMenu, #wsxPanelChat, #wsxChatMute, #wsxChatMoreBtn, #wsxPlusBtn, #wsxVoice, #wsxGpBack, #wsxGeImgBtn, #wsxMobBack, #wsxMobSearch, #wsxMobAI, #wsxMobNotif, #wsxMobBell, #wsxMobAnnBtn, .wsx-nt-act) {
    width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; padding: 0;
  }
}
