﻿
  /* ----------------------------------------------
     ADVANCED FILTER — uses brtm-col-drawer pattern
  ---------------------------------------------- */
  /* Reuse .brtm-col-drawer from barantum.css; just override width */
  #advFilterDrawer { width: 340px; overflow-x: hidden; }
  /* panel header */
  .brtm-adv-filter-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #e8edf2; flex-shrink:0; }
  .brtm-adv-filter-head-title { font-weight:700; font-size:14px; color:#1a2234; display:flex; align-items:center; gap:7px; }
  .brtm-adv-filter-count-badge { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; border-radius:9px; background:#2284C6; color:#fff; font-size:10px; font-weight:700; padding:0 4px; }
  /* scrollable body */
  .brtm-adv-filter-body { flex:1; overflow-y:auto; overflow-x:hidden; }
  .brtm-adv-filter-toggle-row { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; border-bottom:1px solid #f1f5f9; }
  .brtm-adv-filter-toggle-label { font-size:12.5px; color:#1a2234; font-weight:500; display:flex; align-items:center; gap:7px; }
  .brtm-adv-filter-section { padding:10px 14px 12px; border-bottom:1px solid #f1f5f9; }
  .brtm-adv-filter-section:last-of-type { border-bottom:none; }
  .brtm-adv-filter-sec-title { font-size:11px; font-weight:700; color:#8a9ab0; text-transform:uppercase; letter-spacing:.6px; margin-bottom:8px; }
  .brtm-adv-filter-chips { display:flex; flex-wrap:wrap; gap:6px; }
  .brtm-afc { display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:20px; border:1.5px solid #e3e8ef; font-size:12px; cursor:pointer; color:#4a5568; transition:border-color .15s,background .15s,color .15s; user-select:none; white-space:nowrap; }
  .brtm-afc:hover { border-color:#2284C6; color:#2284C6; }
  .brtm-afc.brtm-afc--on { border-color:#2284C6; background:#eef4ff; color:#2284C6; font-weight:600; }
  .brtm-afc .brtm-afc-dot { width:8px; height:8px; border-radius:50%; }
  .brtm-adv-agent-search { width:100%; padding:6px 10px; border:1.5px solid #e3e8ef; border-radius:8px; font-size:12px; font-family:inherit; color:#1a2234; outline:none; margin-bottom:8px; box-sizing:border-box; }
  .brtm-adv-agent-search:focus { border-color:#2284C6; }
  .brtm-adv-agent-list { display:flex; flex-direction:column; gap:3px; max-height:130px; overflow-y:auto; }
  .brtm-adv-agent-item { display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; cursor:pointer; transition:background .1s; }
  .brtm-adv-agent-item:hover { background:#f5f7fa; }
  .brtm-adv-agent-item.brtm-agent-on { background:#eef4ff; }
  .brtm-adv-agent-av { width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,#2284C6,#42a5f5); color:#fff; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .brtm-adv-agent-av.brtm-av-gray { background:#e3e8ef; color:#8a9ab0; }
  .brtm-adv-agent-name { font-size:12px; color:#1a2234; flex:1; }
  .brtm-adv-agent-check { color:#2284C6; font-size:12px; display:none; }
  .brtm-adv-agent-item.brtm-agent-on .brtm-adv-agent-check { display:block; }
  .brtm-adv-filter-date-row { display:flex; gap:8px; align-items:center; }
  .brtm-adv-filter-date-row input[type=date] { flex:1; min-width:0; padding:6px 8px; border:1.5px solid #e3e8ef; border-radius:8px; font-size:12px; font-family:inherit; color:#1a2234; outline:none; width:100%; box-sizing:border-box; }
  .brtm-adv-filter-date-row input[type=date]:focus { border-color:#2284C6; }
  .brtm-adv-filter-footer { display:flex; gap:8px; padding:10px 14px; border-top:1px solid #e8edf2; background:#fff; flex-shrink:0; }
  .brtm-adv-btn-reset { flex:1; padding:7px; border-radius:8px; border:1.5px solid #e3e8ef; background:#fff; font-size:12.5px; font-family:inherit; color:#4a5568; cursor:pointer; font-weight:500; }
  .brtm-adv-btn-apply { flex:2; padding:7px; border-radius:8px; border:none; background:#2284C6; color:#fff; font-size:12.5px; font-family:inherit; cursor:pointer; font-weight:600; }
  .brtm-adv-btn-reset:hover { border-color:#2284C6; color:#2284C6; }
  .brtm-adv-btn-apply:hover { background:#1a72b0; }
  /* Toggle switch */
  .brtm-sw { position:relative; width:36px; height:20px; display:inline-block; flex-shrink:0; }
  .brtm-sw input { opacity:0; width:0; height:0; position:absolute; }
  .brtm-sw-track { position:absolute; cursor:pointer; inset:0; background:#cbd5e0; border-radius:20px; transition:.2s; }
  .brtm-sw-track:before { position:absolute; content:''; height:14px; width:14px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.15); }
  .brtm-sw input:checked + .brtm-sw-track { background:#2284C6; }
  .brtm-sw input:checked + .brtm-sw-track:before { transform:translateX(16px); }
  /* Active filter indicator on button */
  .brtm-header-icon-btn.brtm-filter-active { background:#eef4ff; color:#2284C6; border-color:#2284C6; }
  .brtm-filter-active-dot { position:absolute; top:4px; right:4px; width:7px; height:7px; border-radius:50%; background:#2284C6; border:2px solid #fff; display:none; }
  .brtm-filter-wrap .brtm-header-icon-btn { position:relative; }
  .brtm-filter-wrap.brtm-has-filter .brtm-filter-active-dot { display:block; }

  /* Active filter bar */
  .brtm-active-filter-bar { display:flex; align-items:center; gap:6px; padding:6px 14px 4px; flex-wrap:nowrap; overflow-x:auto; border-bottom:1px solid #f1f5f9; scrollbar-width:none; }
  .brtm-active-filter-bar::-webkit-scrollbar { display:none; }
  .brtm-active-filter-chips { display:inline-flex; gap:5px; flex-wrap:nowrap; flex-shrink:0; }
  .brtm-active-fc { display:inline-flex; align-items:center; gap:3px; padding:3px 7px 3px 9px; border-radius:20px; background:#eef4ff; border:1.5px solid #b3d4f0; color:#2284C6; font-size:11px; font-weight:600; white-space:nowrap; flex-shrink:0; }
  .brtm-active-fc-x { display:inline-flex; align-items:center; justify-content:center; background:none; border:none; cursor:pointer; color:#2284C6; padding:0; font-size:11px; line-height:1; opacity:.7; }
  .brtm-active-fc-x:hover { opacity:1; }
  .brtm-active-filter-reset { flex-shrink:0; display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:20px; border:1.5px solid #e3e8ef; background:#fff; font-size:11px; color:#64748b; cursor:pointer; font-family:inherit; white-space:nowrap; transition:.15s; margin-left:auto; }
  .brtm-active-filter-reset:hover { border-color:#dc2626; color:#dc2626; }
  /* ── COMPACT MODE ── */
  #compactBtn { gap:5px; }
  #compactBtn.brtm-compact-on { background:#eef4ff; color:#2284C6; border-color:#2284C6; width:auto; padding:0 10px; }
  #compactBtn .brtm-compact-label { display:none; font-size:11px; font-weight:700; letter-spacing:.3px; white-space:nowrap; }
  #compactBtn.brtm-compact-on .brtm-compact-label { display:inline; }
  .brtm-chat-list.brtm-compact .brtm-chat-item { padding:6px 14px; }
  .brtm-chat-list.brtm-compact .brtm-avatar { width:30px; height:30px; font-size:13px; }
  .brtm-chat-list.brtm-compact .brtm-avatar-status { width:12px; height:12px; }
  .brtm-chat-list.brtm-compact .brtm-avatar-status i { font-size:10px; }
  .brtm-chat-list.brtm-compact .brtm-chat-name { font-size:12.5px; }
  .brtm-chat-list.brtm-compact .brtm-chat-msg { font-size:11.5px; margin-top:1px; }
  .brtm-chat-list.brtm-compact .brtm-chat-meta { display:none; }
  .brtm-chat-list.brtm-compact .brtm-chat-item-top { gap:8px; }

  /* ── META ROW MARQUEE-ON-HOVER ── */
  /* Meta acts as a viewport; an inner .brtm-meta-track holds chips and translates on hover */
  .brtm-chat-item > .brtm-chat-meta {
    position: relative;
    overflow: hidden !important;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%);
            mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%);
  }
  .brtm-chat-item > .brtm-chat-meta > .brtm-meta-track {
    display: inline-flex;
    align-items: center;
    gap: inherit;
    flex-wrap: nowrap;
    white-space: nowrap;
    transform: translateX(0);
    transition: transform 0s linear;
    will-change: transform;
  }
  .brtm-chat-item > .brtm-chat-meta > .brtm-meta-track > * { flex-shrink: 0; }
  /* When JS marks meta as active (i.e. there is overflow), animate to --mq-shift on hover */
  .brtm-chat-item:hover > .brtm-chat-meta.brtm-mq-active {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .brtm-chat-item:hover > .brtm-chat-meta.brtm-mq-active > .brtm-meta-track {
    transform: translateX(var(--mq-shift, 0));
    transition: transform 1.6s cubic-bezier(.45,.05,.55,.95) .25s;
  }

  /* ----------------------------------------------
     GMAIL-STYLE EMAIL THREAD
  ---------------------------------------------- */
  /* Thread outer — full-width block, not a bubble */
  .brtm-gmail-thread-outer { display:block; padding:4px 0 10px; width:100%; }
  /* Thread card */
  .brtm-gmail-thread-wrap { background:#fff; border:1px solid #e0e0e0; border-radius:8px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.10); }
  /* Subject bar */
  .brtm-gmail-subject-bar { display:flex; align-items:center; gap:8px; padding:10px 16px 9px; border-bottom:1px solid #ebebeb; }
  .brtm-gmail-subject-icon { font-size:14px; flex-shrink:0; }
  .brtm-gmail-subject-text { font-size:14px; font-weight:700; color:#202124; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .brtm-gmail-subject-count { font-size:12px; color:#5f6368; font-weight:400; flex-shrink:0; }
  .brtm-gmail-subject-label { padding:2px 8px; border-radius:12px; font-size:10.5px; font-weight:600; flex-shrink:0; }
  .brtm-gmail-star-btn { background:none; border:none; cursor:pointer; padding:4px; font-size:15px; color:#dadce0; line-height:1; flex-shrink:0; transition:color .15s; }
  .brtm-gmail-star-btn:hover { color:#f4b400; }
  .brtm-gmail-star-btn.brtm-starred { color:#f4b400; }
  /* Individual email in thread */
  .brtm-gmail-email { border-top:1px solid #ebebeb; }
  .brtm-gmail-email:first-of-type { border-top:none; }
  /* Collapsed row */
  .brtm-gmail-email-collapsed { display:flex; align-items:center; gap:10px; padding:9px 16px; cursor:pointer; transition:background .12s; }
  .brtm-gmail-email-collapsed:hover { background:#f5f5f5; }
  /* Avatar */
  .brtm-gmail-av { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff; flex-shrink:0; }
  .brtm-gmail-col-from { font-size:13px; font-weight:600; color:#202124; white-space:nowrap; flex-shrink:0; min-width:72px; }
  .brtm-gmail-col-snippet { font-size:13px; color:#5f6368; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .brtm-gmail-col-attach { font-size:13px; color:#9aa0a6; flex-shrink:0; }
  .brtm-gmail-col-time { font-size:11.5px; color:#5f6368; white-space:nowrap; flex-shrink:0; margin-left:6px; }
  /* Expanded email */
  .brtm-gmail-email-expanded { padding:12px 16px 0; }
  .brtm-gmail-exp-header { display:flex; align-items:flex-start; gap:10px; }
  .brtm-gmail-exp-header-right { flex:1; min-width:0; }
  .brtm-gmail-exp-sender-row { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
  .brtm-gmail-exp-name { font-size:13.5px; font-weight:700; color:#202124; flex:1; min-width:0; }
  .brtm-gmail-exp-time { font-size:11.5px; color:#5f6368; white-space:nowrap; flex-shrink:0; }
  .brtm-gmail-exp-actions { display:flex; gap:0; margin-left:2px; flex-shrink:0; }
  .brtm-gmail-exp-action-btn { width:30px; height:30px; border-radius:50%; border:none; background:none; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#5f6368; font-size:14px; transition:background .12s; }
  .brtm-gmail-exp-action-btn:hover { background:#f1f3f4; }
  /* To row / details toggle */
  .brtm-gmail-exp-to-row { font-size:12px; color:#5f6368; display:flex; align-items:center; gap:4px; cursor:pointer; margin-top:3px; line-height:1.4; user-select:none; }
  .brtm-gmail-exp-to-row:hover { color:#202124; }
  .brtm-gmail-exp-to-row i { font-size:9px; transition:transform .15s; }
  /* Details panel */
  .brtm-gmail-details-panel { display:none; margin-top:6px; padding:4px 0 2px; }
  .brtm-gmail-detail-row { display:flex; gap:8px; font-size:11.5px; margin-bottom:2px; }
  .brtm-gmail-detail-lbl { color:#5f6368; min-width:42px; flex-shrink:0; }
  .brtm-gmail-detail-val { color:#202124; word-break:break-all; }
  /* Email body */
  .brtm-gmail-exp-body { font-size:13px; color:#202124; line-height:1.75; padding:12px 0 10px; }
  /* Quote toggle */
  .brtm-gmail-quote-toggle-btn { display:inline-flex; align-items:center; gap:4px; font-size:12.5px; letter-spacing:2px; color:#5f6368; cursor:pointer; border:1px solid #dadce0; background:#f8f9fa; padding:0 8px 2px; border-radius:3px; margin-bottom:10px; line-height:1.8; }
  .brtm-gmail-quote-toggle-btn:hover { background:#f1f3f4; border-color:#bdc1c6; }
  .brtm-gmail-quote-body { font-size:12.5px; color:#5f6368; border-left:3px solid #dadce0; padding:6px 10px; margin-bottom:10px; display:none; line-height:1.65; }
  /* Attachment cards */
  .brtm-gmail-attachments { display:flex; flex-wrap:wrap; gap:8px; padding:8px 0 12px; border-top:1px solid #ebebeb; margin-top:4px; }
  .brtm-gmail-attach-card { display:flex; align-items:center; gap:8px; border:1px solid #dadce0; border-radius:6px; padding:7px 12px; cursor:pointer; min-width:168px; max-width:238px; transition:border-color .12s,box-shadow .12s; }
  .brtm-gmail-attach-card:hover { border-color:#aecbfa; box-shadow:0 1px 4px rgba(34,132,198,.15); }
  .brtm-gmail-attach-icon { width:36px; height:36px; border-radius:4px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
  .brtm-gmail-attach-meta { min-width:0; }
  .brtm-gmail-attach-name { font-size:11.5px; font-weight:600; color:#202124; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px; display:block; }
  .brtm-gmail-attach-size { font-size:11px; color:#5f6368; }
  /* Reply bar */
  .brtm-gmail-reply-bar { display:flex; gap:8px; padding:10px 0 12px; border-top:1px solid #ebebeb; margin-top:4px; flex-wrap:wrap; }
  .brtm-gmail-reply-btn { display:flex; align-items:center; gap:6px; padding:6px 16px; border-radius:4px; border:1px solid #dadce0; background:#fff; font-size:13px; color:#202124; cursor:pointer; font-family:'Inter',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'; transition:border-color .12s,color .12s; }
  .brtm-gmail-reply-btn:hover { background:#f6f8ff; border-color:#aecbfa; color:#1a72b0; }

  /* -- Gmail Inline Compose (Reply/Forward) -- */
  .brtm-gmail-compose { border-top:1px solid #ebebeb; background:#fff; }
  /* Collapsed / placeholder bar */
  .brtm-gmail-compose-placeholder { display:flex; align-items:center; gap:10px; padding:10px 16px; cursor:text; }
  .brtm-gmail-compose-placeholder-text { flex:1; font-size:13px; color:#bdc1c6; background:#f1f3f4; border-radius:24px; padding:8px 16px; transition:background .12s; }
  .brtm-gmail-compose-placeholder:hover .brtm-gmail-compose-placeholder-text { background:#e8eaed; }
  /* Expanded compose */
  .brtm-gmail-compose-expanded { padding:10px 16px 0; display:none; }
  .brtm-gmail-compose.brtm-compose-open .brtm-gmail-compose-placeholder { display:none; }
  .brtm-gmail-compose.brtm-compose-open .brtm-gmail-compose-expanded { display:block; }
  /* Fields area */
  .brtm-gmail-compose-fields { border:1px solid #e0e0e0; border-radius:6px 6px 0 0; border-bottom:none; }
  .brtm-gmail-compose-field-row { display:flex; align-items:center; gap:6px; padding:6px 12px; border-bottom:1px solid #f1f3f4; min-height:36px; }
  .brtm-gmail-compose-field-row:last-of-type { border-bottom:none; }
  .brtm-gmail-compose-field-lbl { font-size:12px; color:#5f6368; flex-shrink:0; min-width:36px; }
  .brtm-gmail-compose-field-val { flex:1; font-size:13px; color:#202124; outline:none; border:none; background:transparent; font-family:'Inter',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'; }
  .brtm-gmail-compose-field-chip { display:inline-flex; align-items:center; gap:4px; background:#e8eaed; border-radius:12px; padding:2px 8px; font-size:12px; color:#202124; margin-right:4px; }
  .brtm-gmail-compose-field-chip button { background:none; border:none; cursor:pointer; color:#5f6368; font-size:11px; padding:0; line-height:1; }
  .brtm-gmail-compose-cc-bcc { display:flex; gap:6px; margin-left:auto; }
  .brtm-gmail-compose-cc-bcc button { background:none; border:none; cursor:pointer; font-size:12px; color:#5f6368; font-family:'Inter',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'; padding:2px 4px; border-radius:3px; }
  .brtm-gmail-compose-cc-bcc button:hover { background:#f1f3f4; color:#202124; }
  /* Toolbar */
  .brtm-gmail-compose-toolbar { display:flex; align-items:center; gap:1px; padding:5px 10px; border:1px solid #e0e0e0; border-top:none; border-bottom:none; background:#f8f9fa; flex-wrap:wrap; }
  .brtm-gmail-compose-tb-sep { width:1px; height:18px; background:#dadce0; margin:0 4px; flex-shrink:0; }
  .brtm-gmail-compose-tb-btn { width:28px; height:28px; display:flex; align-items:center; justify-content:center; border:none; background:none; cursor:pointer; font-size:12.5px; color:#5f6368; border-radius:4px; font-family:'Inter',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'; font-weight:600; transition:background .1s; flex-shrink:0; }
  .brtm-gmail-compose-tb-btn:hover { background:#e8eaed; color:#202124; }
  .brtm-gmail-compose-tb-btn.brtm-tb-active { background:#d2e3fc; color:#1967d2; }
  /* Body */
  .brtm-gmail-compose-body-wrap { border:1px solid #e0e0e0; border-top:none; border-radius:0 0 6px 6px; background:#fff; overflow:hidden; }
  .brtm-gmail-compose-body { min-height:100px; max-height:280px; overflow-y:auto; padding:10px 14px; font-size:13px; color:#202124; line-height:1.7; outline:none; font-family:'Inter',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'; }
  .brtm-gmail-compose-body:empty:before { content: attr(data-placeholder); color:#bdc1c6; pointer-events:none; display:block; }
  /* Signature divider */
  .brtm-gmail-compose-sig-divider { border:none; border-top:1px solid #e0e0e0; margin:8px 0 4px; }
  .brtm-gmail-compose-sig { font-size:12px; color:#5f6368; line-height:1.5; }
  /* Quoted original in compose */
  .brtm-gmail-compose-quote { border-left:3px solid #dadce0; padding:6px 10px; margin-top:6px; font-size:12.5px; color:#5f6368; line-height:1.65; display:none; }
  .brtm-gmail-compose-quote.brtm-show { display:block; }
  /* Attachment chips inside compose */
  .brtm-gmail-compose-attach-area { display:flex; flex-wrap:wrap; gap:6px; padding:8px 14px 4px; }
  .brtm-gmail-compose-attach-chip { display:inline-flex; align-items:center; gap:6px; border:1px solid #dadce0; border-radius:6px; padding:5px 10px; font-size:11.5px; color:#202124; cursor:default; background:#f8f9fa; }
  .brtm-gmail-compose-attach-chip button { background:none; border:none; cursor:pointer; color:#5f6368; font-size:12px; padding:0; line-height:1; }
  .brtm-gmail-compose-attach-chip button:hover { color:#d93025; }
  /* Footer / actions */
  .brtm-gmail-compose-footer { display:flex; align-items:center; gap:6px; padding:10px 14px 12px; }
  .brtm-gmail-compose-send-btn { display:inline-flex; align-items:center; gap:7px; background:#1a73e8; color:#fff; font-size:13px; font-weight:600; padding:7px 20px; border-radius:4px; border:none; cursor:pointer; font-family:'Inter',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'; transition:background .12s; }
  .brtm-gmail-compose-send-btn:hover { background:#1558b4; }
  .brtm-gmail-compose-footer-icon-btn { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:none; background:none; cursor:pointer; color:#5f6368; font-size:15px; transition:background .12s; }
  .brtm-gmail-compose-footer-icon-btn:hover { background:#f1f3f4; }
  .brtm-gmail-compose-footer-icon-btn.brtm-discard { color:#5f6368; margin-left:auto; }
  .brtm-gmail-compose-footer-icon-btn.brtm-discard:hover { color:#d93025; background:#fce8e6; }
  /* Forward note header */
  .brtm-gmail-compose-fwd-header { font-size:12px; color:#5f6368; padding:8px 0 4px; border-top:1px solid #ebebeb; margin-top:8px; line-height:1.6; }

  /* List preview subject style */
  .brtm-email-subject-preview { color:#1a2234; font-weight:600; font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* ----------------------------------------------
     NEW CHAT MODAL - MULTI STEP
  ---------------------------------------------- */
  .brtm-modal-box.brtm-modal-box--nc { max-width:540px; width:96vw; }
  .brtm-nc-step-bar { display:flex; align-items:center; gap:5px; padding:0 20px 12px; }
  .brtm-nc-step-pip { height:5px; border-radius:3px; background:#e3e8ef; transition:background .3s,width .3s; flex:1; }
  .brtm-nc-step-pip.brtm-nc-pip-done { background:#2284C6; }
  .brtm-nc-step-pip.brtm-nc-pip-active { background:#2284C6; flex:2; }
  .brtm-nc-header-left { display:flex; align-items:center; gap:8px; flex:1; }
  .brtm-nc-back-btn { background:none; border:none; color:#2284C6; font-size:13px; cursor:pointer; font-family:inherit; font-weight:500; padding:0; display:flex; align-items:center; gap:5px; }
  .brtm-nc-back-btn:hover { text-decoration:underline; }
  /* Channel list */
  .brtm-nc-channel-list { display:flex; flex-direction:column; gap:6px; }
  .brtm-nc-ch-item { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; border:1.5px solid #e3e8ef; cursor:pointer; transition:border-color .15s,background .15s; }
  .brtm-nc-ch-item:hover { border-color:rgba(34,132,198,.4); background:#f5f9ff; }
  .brtm-nc-ch-item.brtm-nc-ch-sel { border-color:#2284C6; background:#eef4ff; }
  .brtm-nc-ch-icon { width:36px; height:36px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
  .brtm-nc-ch-info { flex:1; min-width:0; }
  .brtm-nc-ch-name { font-size:13px; font-weight:600; color:#1a2234; }
  .brtm-nc-ch-sub { font-size:11px; color:#8a9ab0; }
  .brtm-nc-bapi-pill { font-size:10px; padding:2px 7px; border-radius:10px; background:#e0e7ff; color:#4338ca; font-weight:600; flex-shrink:0; }
  .brtm-nc-ch-radio { width:16px; height:16px; border-radius:50%; border:2px solid #e3e8ef; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:.15s; }
  .brtm-nc-ch-item.brtm-nc-ch-sel .brtm-nc-ch-radio { border-color:#2284C6; background:#2284C6; }
  .brtm-nc-ch-item.brtm-nc-ch-sel .brtm-nc-ch-radio:after { content:''; width:6px; height:6px; border-radius:50%; background:#fff; display:block; }
  .brtm-nc-notice { display:flex; align-items:flex-start; gap:8px; padding:9px 11px; border-radius:9px; font-size:12px; margin-top:10px; }
  .brtm-nc-notice.brtm-nc-notice-warn { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }
  .brtm-nc-notice.brtm-nc-notice-info { background:#f0f7ff; border:1px solid #bfdbfe; color:#1e40af; }
  .brtm-nc-notice i { font-size:13px; flex-shrink:0; margin-top:1px; }
  .brtm-nc-selected-bar { display:flex; align-items:center; gap:8px; padding:7px 10px; background:#eef4ff; border:1.5px solid #dbeafe; border-radius:8px; margin-bottom:10px; font-size:12.5px; color:#1a2234; }
  /* Template list (step 2) */
  .brtm-tpl-tabs { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:10px; }
  .brtm-tpl-tab { padding:4px 13px; border-radius:16px; border:1.5px solid #e3e8ef; font-size:11.5px; cursor:pointer; color:#4a5568; background:#fff; font-family:inherit; }
  .brtm-tpl-tab.brtm-tpl-tab--on { border-color:#2284C6; background:#eef4ff; color:#2284C6; font-weight:600; }
  .brtm-tpl-search { width:100%; padding:7px 11px; border:1.5px solid #e3e8ef; border-radius:8px; font-size:12.5px; font-family:inherit; color:#1a2234; outline:none; margin-bottom:10px; box-sizing:border-box; }
  .brtm-tpl-search:focus { border-color:#2284C6; }
  .brtm-tpl-list { display:flex; flex-direction:column; gap:7px; max-height:300px; overflow-y:auto; }
  .brtm-tpl-card { border:1.5px solid #e3e8ef; border-radius:10px; padding:10px 12px; cursor:pointer; transition:border-color .15s,background .15s; background:#fff; position:relative; }
  .brtm-tpl-card:hover { border-color:rgba(34,132,198,.5); background:#f5f9ff; }
  .brtm-tpl-card.brtm-tpl-sel { border-color:#2284C6; background:#eef4ff; }
  .brtm-tpl-card-top { display:flex; align-items:center; gap:6px; margin-bottom:4px; }
  .brtm-tpl-card-name { font-size:13px; font-weight:600; color:#1a2234; flex:1; }
  .brtm-tpl-pill { font-size:10px; padding:2px 7px; border-radius:10px; font-weight:600; }
  .brtm-tpl-pill-approved { background:#dcfce7; color:#15803d; }
  .brtm-tpl-pill-utility { background:#dbeafe; color:#1d4ed8; }
  .brtm-tpl-pill-marketing { background:#fce7f3; color:#be185d; }
  .brtm-tpl-card-meta { font-size:11px; color:#8a9ab0; margin-bottom:5px; }
  .brtm-tpl-card-body { font-size:12.5px; color:#4a5568; line-height:1.5; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; }
  .brtm-tpl-card-check { position:absolute; top:10px; right:12px; color:#2284C6; font-size:16px; display:none; }
  .brtm-tpl-card.brtm-tpl-sel .brtm-tpl-card-check { display:block; }
  /* Step 3 */
  .brtm-tpl-preview-box { background:#f0f7ff; border:1.5px solid #b8d4f5; border-radius:10px; padding:12px 14px; margin-bottom:14px; }
  .brtm-tpl-preview-hdr { font-weight:700; font-size:12.5px; color:#1a2234; margin-bottom:5px; }
  .brtm-tpl-preview-body { font-size:13px; color:#1a2234; line-height:1.6; white-space:pre-wrap; }
  .brtm-tpl-preview-ftr { font-size:11px; color:#8a9ab0; margin-top:7px; border-top:1px solid #d0e8f7; padding-top:6px; }
  .brtm-tpl-preview-btns { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
  .brtm-tpl-preview-btn { padding:4px 12px; border-radius:16px; border:1.5px solid #b8d4f5; font-size:11.5px; color:#2284C6; background:#fff; }
  .brtm-var-field { margin-bottom:10px; }
  .brtm-var-label { display:block; font-size:11.5px; color:#5a7396; font-weight:500; margin-bottom:4px; }
  .brtm-var-input { width:100%; padding:7px 10px; border:1.5px solid #e3e8ef; border-radius:8px; font-size:13px; font-family:inherit; color:#1a2234; outline:none; box-sizing:border-box; }
  .brtm-var-input:focus { border-color:#2284C6; }

  /* ----------------------------------------------
     QUICK REPLY PANEL (/ and // trigger)
  ---------------------------------------------- */
  .brtm-qr-panel { position:absolute; bottom:calc(100% + 6px); left:0; right:0; background:#fff; border:1.5px solid #d6e4f0; border-radius:12px; box-shadow:0 -4px 28px rgba(0,0,0,.12); overflow:hidden; display:flex; flex-direction:column; z-index:200; max-height:300px; }
  .brtm-qr-panel-head { display:flex; align-items:center; gap:8px; padding:9px 13px; border-bottom:1px solid #f1f5f9; background:#f9fafb; flex-shrink:0; }
  .brtm-qr-panel-icon { width:24px; height:24px; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:13px; }
  .brtm-qr-panel-head-title { font-size:12.5px; font-weight:600; color:#1a2234; flex:1; }
  .brtm-qr-panel-head-hint { font-size:11px; color:#b0bcc9; }
  .brtm-qr-panel-close { background:none; border:none; color:#8a9ab0; cursor:pointer; font-size:14px; padding:0; line-height:1; }
  .brtm-qr-list { overflow-y:auto; flex:1; }
  .brtm-qr-item { display:flex; align-items:flex-start; gap:10px; padding:9px 13px; cursor:pointer; border-bottom:1px solid #f5f7fb; transition:background .1s; }
  .brtm-qr-item:hover { background:#f0f7ff; }
  .brtm-qr-shortcut-chip { padding:2px 8px; background:#eef4ff; color:#2284C6; border-radius:6px; font-size:11px; font-family:'Inter',monospace; font-weight:700; white-space:nowrap; flex-shrink:0; margin-top:1px; }
  .brtm-qr-info { flex:1; min-width:0; }
  .brtm-qr-label { font-size:12.5px; font-weight:600; color:#1a2234; margin-bottom:2px; }
  .brtm-qr-text { font-size:12px; color:#5a7396; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .brtm-qr-empty { padding:18px; text-align:center; font-size:12.5px; color:#8a9ab0; }
  /* Template quick panel (// trigger) */
  .brtm-qtpl-item { display:flex; align-items:flex-start; gap:10px; padding:9px 13px; cursor:pointer; border-bottom:1px solid #f5f7fb; transition:background .1s; }
  .brtm-qtpl-item:hover { background:#f0f7ff; }
  .brtm-qtpl-shortcut { padding:2px 8px; background:#fce7f3; color:#be185d; border-radius:6px; font-size:11px; font-family:'Inter',monospace; font-weight:700; white-space:nowrap; flex-shrink:0; margin-top:1px; }
  .brtm-qtpl-info { flex:1; min-width:0; }
  .brtm-qtpl-name { font-size:12.5px; font-weight:600; color:#1a2234; }
  .brtm-qtpl-preview { font-size:12px; color:#5a7396; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .brtm-qtpl-badges { display:flex; gap:4px; margin-top:3px; }

  /* ----------------------------------------------
     PROFILE PANEL — Extended Detail Sections
  ---------------------------------------------- */
  .brtm-pp-wabapi-row { display:flex; align-items:center; gap:10px; padding:10px 16px; background:#f8fbff; border-bottom:1px solid #e8edf2; }
  .brtm-pp-wabapi-icon { width:30px; height:30px; border-radius:8px; background:#e7fde9; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
  .brtm-pp-wabapi-info { flex:1; min-width:0; }
  .brtm-pp-wabapi-label { font-size:10px; color:#8a9ab0; font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
  .brtm-pp-wabapi-num { font-size:12.5px; font-weight:600; color:#1a2234; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .brtm-pp-icon-copy-btn { width:28px; height:28px; border-radius:6px; border:1.5px solid #e3e8ef; background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#5a7396; font-size:12px; flex-shrink:0; transition:border-color .15s,color .15s; }
  .brtm-pp-icon-copy-btn:hover { border-color:#2284C6; color:#2284C6; }
  .brtm-pp-copy-link-row { display:flex; align-items:center; gap:8px; padding:7px 16px 10px; border-bottom:1px solid #e8edf2; background:#f8fbff; }
  .brtm-pp-copy-link-icon { font-size:12px; color:#8a9ab0; flex-shrink:0; }
  .brtm-pp-copy-link-url { flex:1; font-size:11.5px; color:#2284C6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
  .brtm-pp-copy-link-url:hover { text-decoration:underline; }
  .brtm-pp-copy-link-btn { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:6px; border:1.5px solid #e3e8ef; background:#fff; font-size:11.5px; color:#4a5568; cursor:pointer; font-family:inherit; font-weight:500; white-space:nowrap; flex-shrink:0; transition:border-color .15s,color .15s; }
  .brtm-pp-copy-link-btn:hover { border-color:#2284C6; color:#2284C6; }
  /* Related chips */
  .brtm-pp-related-chips { display:flex; flex-wrap:wrap; gap:6px; }
  .brtm-pp-related-chip { display:inline-flex; align-items:center; gap:5px; padding:4px 11px; border-radius:20px; border:1.5px solid #e3e8ef; font-size:11.5px; color:#4a5568; cursor:pointer; background:#fff; transition:border-color .15s,color .15s; text-decoration:none; }
  .brtm-pp-related-chip:hover { border-color:#2284C6; color:#2284C6; }
  .brtm-pp-related-chip i { font-size:11px; }
  .brtm-pp-related-count { display:inline-flex; align-items:center; justify-content:center; min-width:16px; height:16px; border-radius:8px; background:#2284C6; color:#fff; font-size:9px; font-weight:700; padding:0 3px; margin-left:2px; }
  .brtm-pp-related-add { display:inline-flex; align-items:center; gap:4px; padding:4px 11px; border-radius:20px; border:1.5px dashed #c8d5e0; font-size:11.5px; color:#8a9ab0; cursor:pointer; background:transparent; font-family:inherit; transition:border-color .15s,color .15s; }
  .brtm-pp-related-add:hover { border-color:#2284C6; color:#2284C6; }
  /* Related quick-preview popover */
  .brtm-related-popover { position:fixed; z-index:9990; background:#fff; border:1px solid #e0e8f0; border-radius:12px; box-shadow:0 8px 32px rgba(0,0,0,.14); width:260px; pointer-events:none; opacity:0; transition:opacity .12s; }
  .brtm-related-popover.brtm-rp-show { opacity:1; pointer-events:auto; }
  .brtm-related-popover-header { display:flex; align-items:center; gap:8px; padding:11px 14px 9px; border-bottom:1px solid #f1f5f9; }
  .brtm-related-popover-icon { width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
  .brtm-related-popover-title { font-size:13px; font-weight:700; color:#1a2234; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .brtm-related-popover-badge { font-size:10px; padding:2px 7px; border-radius:10px; font-weight:600; flex-shrink:0; }
  .brtm-related-popover-rows { padding:8px 14px 10px; display:flex; flex-direction:column; gap:5px; }
  .brtm-related-popover-row { display:flex; align-items:center; gap:7px; font-size:12px; color:#4a5568; min-height:20px; }
  .brtm-related-popover-row i { font-size:11px; color:#8a9ab0; width:13px; text-align:center; flex-shrink:0; }
  .brtm-related-popover-row span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .brtm-related-popover-divider { height:1px; background:#f1f5f9; margin:2px 0; }
  .brtm-related-popover-footer { display:flex; gap:6px; padding:8px 14px 10px; border-top:1px solid #f1f5f9; }
  .brtm-related-popover-btn { flex:1; padding:5px 0; border-radius:7px; border:1.5px solid #e3e8ef; background:#fff; font-size:11.5px; font-family:inherit; color:#2284C6; cursor:pointer; font-weight:600; text-align:center; transition:background .12s,border-color .12s; }
  .brtm-related-popover-btn:hover { background:#eef4ff; border-color:#2284C6; }
  .brtm-related-popover-btn--primary { background:#2284C6; color:#fff; border-color:#2284C6; }
  .brtm-related-popover-btn--primary:hover { background:#1a72b0; }
  /* Chat Category */
  .brtm-pp-chcat-chips { display:flex; flex-wrap:wrap; gap:5px; }
  .brtm-pp-chcat-chip { display:inline-flex; align-items:center; gap:5px; padding:4px 11px; border-radius:20px; font-size:11.5px; font-weight:600; cursor:pointer; }
  .brtm-pp-chcat-chip--green { background:#f0fdf4; border:1.5px solid #86efac; color:#15803d; }
  .brtm-pp-chcat-chip--blue { background:#eff6ff; border:1.5px solid #bfdbfe; color:#1d4ed8; }
  .brtm-pp-chcat-chip--orange { background:#fff7ed; border:1.5px solid #fdba74; color:#c2410c; }
  .brtm-pp-chcat-edit-btn { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:20px; border:1.5px dashed #c8d5e0; font-size:11.5px; color:#8a9ab0; cursor:pointer; background:transparent; font-family:inherit; transition:.15s; }
  .brtm-pp-chcat-edit-btn:hover { border-color:#2284C6; color:#2284C6; }
  /* Conversation Window Cards */
  .brtm-cwin-card { border-radius:10px; border:1.5px solid #e3e8ef; overflow:hidden; margin-bottom:8px; }
  .brtm-cwin-card:last-of-type { margin-bottom:0; }
  .brtm-cwin-card--green { border-color:#86efac; background:#f0fdf4; }
  .brtm-cwin-card--blue { border-color:#bfdbfe; background:#eff6ff; }
  .brtm-cwin-card--orange { border-color:#fdba74; background:#fff7ed; }
  .brtm-cwin-card--red { border-color:#fca5a5; background:#fef2f2; }
  .brtm-cwin-top { display:flex; align-items:flex-start; gap:8px; padding:9px 11px 7px; }
  .brtm-cwin-icon { width:28px; height:28px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; margin-top:1px; }
  .brtm-cwin-meta { flex:1; min-width:0; }
  .brtm-cwin-type { font-size:11.5px; font-weight:700; color:#1a2234; display:flex; align-items:center; gap:5px; }
  .brtm-cwin-desc { font-size:11px; color:#6b7280; margin-top:1px; line-height:1.4; }
  .brtm-cwin-countdown { font-size:16px; font-weight:800; letter-spacing:.5px; font-variant-numeric:tabular-nums; flex-shrink:0; }
  .brtm-cwin-bar-wrap { padding:0 11px 10px; }
  .brtm-cwin-bar-track { height:4px; border-radius:3px; background:rgba(0,0,0,.08); overflow:hidden; }
  .brtm-cwin-bar-fill { height:100%; border-radius:3px; transition:width .5s; }
  /* Escalation badge */
  .brtm-pp-escal-badge { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; background:#fff3eb; border:1.5px solid #fdba74; color:#c2410c; font-size:11.5px; font-weight:600; }
  /* Tags section */
  .brtm-pp-tags-chips { display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
  .brtm-pp-tag-remove { margin-left:3px; background:none; border:none; cursor:pointer; color:inherit; opacity:.6; font-size:10px; padding:0; line-height:1; }
  .brtm-pp-tag-remove:hover { opacity:1; }
  .brtm-pp-tags-add-btn { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:20px; border:1.5px dashed #c8d5e0; font-size:11.5px; color:#8a9ab0; cursor:pointer; background:transparent; font-family:inherit; transition:.15s; }
  .brtm-pp-tags-add-btn:hover { border-color:#2284C6; color:#2284C6; }
  /* Media & File section */
  .brtm-pp-mf-tabs { display:flex; gap:2px; padding:8px 12px 6px; border-bottom:1px solid #f1f5f9; flex-wrap:wrap; }
  .brtm-pp-mf-tab { padding:4px 10px; border-radius:20px; border:1.5px solid transparent; font-size:11.5px; font-weight:500; color:#8a9ab0; background:transparent; cursor:pointer; font-family:inherit; transition:.15s; }
  .brtm-pp-mf-tab:hover { color:#2284C6; border-color:#c8d5e0; }
  .brtm-pp-mf-tab--active { background:#e8f2fb; color:#2284C6; border-color:#b3d4f0; font-weight:600; }
  .brtm-pp-mf-pane { }
  .brtm-pp-mf-pane--hidden { display:none; }
  .brtm-pp-mf-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:3px; padding:8px 12px 10px; }
  .brtm-pp-mf-thumb { position:relative; aspect-ratio:1; border-radius:6px; overflow:hidden; cursor:pointer; background:#f1f5f9; }
  .brtm-pp-mf-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:.2s; }
  .brtm-pp-mf-thumb:hover img { opacity:.75; }
  .brtm-pp-mf-thumb-hover { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transition:.15s; color:#fff; font-size:16px; background:rgba(0,0,0,.18); }
  .brtm-pp-mf-thumb:hover .brtm-pp-mf-thumb-hover { opacity:1; }
  .brtm-pp-mf-file-list { display:flex; flex-direction:column; }
  .brtm-pp-mf-file-item { display:flex; align-items:center; gap:9px; padding:8px 12px; border-bottom:1px solid #f1f5f9; }
  .brtm-pp-mf-file-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
  .brtm-pp-mf-file-icon--pdf { background:#fee2e2; color:#dc2626; }
  .brtm-pp-mf-file-icon--xls { background:#dcfce7; color:#16a34a; }
  .brtm-pp-mf-file-icon--doc { background:#dbeafe; color:#2563eb; }
  .brtm-pp-mf-file-icon--audio { background:#ede9fe; color:#7c3aed; }
  .brtm-pp-mf-file-icon--link { background:#f1f5f9; color:#64748b; }
  .brtm-pp-mf-file-info { flex:1; min-width:0; }
  .brtm-pp-mf-file-name { font-size:12px; font-weight:600; color:#1a2234; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .brtm-pp-mf-file-meta { font-size:10.5px; color:#8a9ab0; margin-top:1px; }
  .brtm-pp-mf-file-dl { width:28px; height:28px; display:flex; align-items:center; justify-content:center; border-radius:7px; border:none; background:#f1f5f9; color:#64748b; cursor:pointer; font-size:13px; flex-shrink:0; text-decoration:none; transition:.15s; }
  .brtm-pp-mf-file-dl:hover { background:#e8f2fb; color:#2284C6; }
  /* Changelog */
  .brtm-pp-changelog { display:flex; flex-direction:column; }
  .brtm-pp-cl-item { display:flex; gap:10px; padding:8px 0; border-bottom:1px solid #f1f5f9; }
  .brtm-pp-cl-item:last-of-type { border-bottom:none; }
  .brtm-pp-cl-dot-col { display:flex; flex-direction:column; align-items:center; padding-top:4px; flex-shrink:0; width:10px; }
  .brtm-pp-cl-dot { width:8px; height:8px; border-radius:50%; background:#2284C6; flex-shrink:0; }
  .brtm-pp-cl-line { width:1.5px; flex:1; background:#e3e8ef; margin-top:4px; min-height:14px; }
  .brtm-pp-cl-content { flex:1; min-width:0; }
  .brtm-pp-cl-text { font-size:12px; color:#374151; line-height:1.5; }
  .brtm-pp-cl-text strong { color:#1a2234; }
  .brtm-pp-cl-actor { font-size:11px; color:#2284C6; font-weight:600; }
  .brtm-pp-cl-time { font-size:10.5px; color:#8a9ab0; margin-top:1px; }
  /* Chatscript Log Choice */
  .brtm-pp-cs-select { width:100%; padding:7px 10px; border:1.5px solid #e3e8ef; border-radius:8px; font-size:12.5px; font-family:inherit; color:#1a2234; background:#fff; outline:none; cursor:pointer; }
  .brtm-pp-cs-select:focus { border-color:#2284C6; }
  /* Timeline rows */
  .brtm-pp-tl-row { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid #f1f5f9; }
  .brtm-pp-tl-row:last-of-type { border-bottom:none; }
  .brtm-pp-tl-icon { width:28px; height:28px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
  .brtm-pp-tl-content { flex:1; min-width:0; }
  .brtm-pp-tl-label { font-size:10.5px; color:#8a9ab0; font-weight:600; text-transform:uppercase; letter-spacing:.4px; }
  .brtm-pp-tl-val { font-size:12.5px; color:#1a2234; font-weight:500; }
  .brtm-pp-tl-val--empty { color:#b0bcc9; font-style:italic; font-size:12px; }

  /* ----------------------------------------------
     CHAT LIST FOOTER (fixed at bottom of panel)
  ---------------------------------------------- */
  .brtm-chat-list-footer { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 14px; border-top:1px solid #e8edf2; background:#fff; }
  .brtm-clf-total { font-size:12px; color:#5a7396; font-weight:500; }
  .brtm-clf-total strong { color:#1a2234; font-weight:700; font-variant-numeric:tabular-nums; }
  .brtm-clf-refresh-btn { display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:8px; border:1.5px solid #e3e8ef; background:#fff; font-size:12px; font-family:inherit; color:#4a5568; cursor:pointer; font-weight:500; transition:border-color .15s,color .15s,background .15s; }
  .brtm-clf-refresh-btn:hover { border-color:#2284C6; color:#2284C6; background:#eef4ff; }
  .brtm-clf-refresh-btn i { font-size:13px; transition:transform .6s ease; }
  .brtm-clf-refresh-btn.brtm-clf-spinning i { transform:rotate(360deg); }

  /* ============================================================
     BILLING LOW CREDIT — orange highlight on sidebar icon row
     ============================================================ */
  .brtm-sidebar-icon.brtm-billing-warn.brtm-low-credit {
    background:#fff3eb; border:1.5px solid #fbd5b5; color:#ea580c;
  }
  .brtm-sidebar-icon.brtm-billing-warn.brtm-low-credit i {
    animation:brtm-billing-pulse 1.8s infinite;
  }
  .brtm-sidebar-icon.brtm-billing-warn.brtm-low-credit .brtm-sidebar-label {
    color:#ea580c; font-weight:600;
  }
  .brtm-billing-low-chip {
    display:none;
    font-size:10px; font-weight:700; color:#ea580c;
    background:#fde8d8; border:1px solid #fbd5b5;
    border-radius:5px; padding:1px 6px;
    white-space:nowrap; margin-left:auto;
    animation:brtm-billing-pulse 1.8s infinite;
  }
  .brtm-icon-sidebar.brtm-expanded .brtm-sidebar-icon.brtm-billing-warn.brtm-low-credit .brtm-billing-low-chip {
    display:inline-block;
  }
  @keyframes brtm-billing-pulse {
    0%,100% { opacity:1; }
    50%      { opacity:.55; }
  }
  /* Billing warning toast banner */
  /* ============================================================
     BILLING SIDEBAR CARD — always visible in sidebar
     ============================================================ */
  /* Collapsed state: 40×40 pulsing icon */


  /* Override action button style to borderless ghost circles, swap icons to cleaner choices */
  .brtm-cv-action-btn {
    width:34px !important; height:34px !important; border-radius:50% !important;
    border:none !important; background:transparent !important;
    color:#94a3b8 !important; font-size:17px !important;
    padding:0 !important;
  }
  .brtm-cv-action-btn:hover {
    background:#f0f4ff !important; color:var(--primary) !important;
  }
  .brtm-cv-action-btn--active,
  .brtm-cv-action-btn.brtm-cv-bot-btn[data-bot-state="on"] {
    background:#eff6ff !important; color:var(--primary) !important;
  }

  /* Chat area subtle dot pattern background */
  .brtm-cv-messages {
    background-color:#f0f2f5;
    background-image: radial-gradient(circle, #c8cdd6 1px, transparent 1px);
    background-size: 22px 22px;
  }

  /* Chat header separator between icon group and resolve button */
  .brtm-cv-header-sep {
    width:1px; height:22px; background:#e3e8ef; flex-shrink:0; margin:0 2px;
  }

  /* ============================================================
     TOPBAR NAV — responsive 7-item menu
     ============================================================ */
  /* Active item: subtle underline animation */
  .brtm-topbar-nav .brtm-nav-item {
    position:relative;
    white-space:nowrap;
    transition:color .18s, background .18s, padding .18s, font-size .18s;
  }
  .brtm-topbar-nav .brtm-nav-item::after {
    content:''; position:absolute; left:14px; right:14px; bottom:2px;
    height:2px; border-radius:1px; background:#fff;
    transform:scaleX(0); transform-origin:left center;
    transition:transform .25s ease;
  }
  .brtm-topbar-nav .brtm-nav-item.brtm-active::after { display:none; }
  .brtm-topbar-nav .brtm-nav-item.brtm-active { background:rgba(255,255,255,.1); font-weight:600; }
  .brtm-topbar-nav .brtm-nav-item:hover::after { display:none; }

  /* Wrapper for nav + overflow dropdown */
  .brtm-topbar-nav-wrap {
    flex:1; min-width:0; position:relative;
    display:flex; align-items:center; gap:4px;
  }
  .brtm-topbar-nav {
    display:flex; gap:4px; min-width:0;
    overflow:hidden;
  }
  .brtm-topbar-nav .brtm-nav-item.is-hidden {
    visibility:hidden; pointer-events:none;
    position:absolute; opacity:0;
  }

  /* More wrapper — controls visibility */
  .brtm-nav-more-wrap {
    position:relative; display:none; align-items:center;
  }
  .brtm-nav-more-wrap.visible { display:flex; }

  /* "More" overflow button — matches .brtm-nav-item sizing */
  .brtm-nav-more {
    flex-shrink:0;
    background:transparent; border:none;
    color:rgba(255,255,255,.65); cursor:pointer;
    padding:6px 14px; border-radius:6px;
    font-size:13.5px; font-weight:500; line-height:1.4;
    display:inline-flex; align-items:center; gap:6px;
    transition:color .18s, background .18s;
    font-family:inherit;
  }
  .brtm-nav-more:hover, .brtm-nav-more.open {
    color:#fff; background:rgba(255,255,255,.1);
  }
  .brtm-nav-more .bi {
    font-size:11px; transition:transform .2s;
  }
  .brtm-nav-more.open .bi { transform:rotate(180deg); }

  /* "More" dropdown panel — absolutely positioned under More button */
  .brtm-nav-more-panel {
    position:fixed;
    background:#fff; border:1px solid var(--border,#e2e8f0);
    border-radius:10px; padding:5px; min-width:170px;
    box-shadow:0 10px 28px rgba(0,0,0,.14);
    z-index:2000; display:none;
    animation:brtm-dd-in .18s ease;
  }
  .brtm-nav-more-panel.open { display:block; }
  .brtm-nav-more-panel .brtm-nav-item {
    display:block; padding:8px 12px; border-radius:7px;
    color:#1a2234 !important; font-size:13px; font-weight:500;
    text-decoration:none;
    background:transparent !important;
  }
  .brtm-nav-more-panel .brtm-nav-item::after { display:none !important; }
  .brtm-nav-more-panel .brtm-nav-item:hover { background:#f1f5f9 !important; }
  .brtm-nav-more-panel .brtm-nav-item.brtm-active {
    background:var(--primary-light,#E7F1FB) !important;
    color:var(--primary,#1B6FBE) !important;
    font-weight:600;
  }

  /* Locked nav item + upgrade dropdown */
  .brtm-nav-locked-wrap { position:relative; display:inline-flex; }
  .brtm-nav-item-locked { opacity:.65; display:flex; align-items:center; gap:5px; cursor:pointer; }
  .brtm-nav-item-locked:hover { opacity:1; }

  .brtm-nav-locked-panel {
    position:fixed;
    background:#fff;
    border:1px solid var(--border,#e2e8f0);
    border-radius:14px;
    padding:0;
    width:260px;
    box-shadow:0 16px 40px rgba(0,0,0,.15);
    z-index:2000; display:none;
    overflow:hidden;
    animation:brtm-dd-in .18s ease;
  }
  .brtm-nav-locked-panel.open { display:block; }
  .brtm-nav-locked-header {
    padding:16px 16px 12px;
    background:linear-gradient(135deg,#3b8de0 0%,#1B6FBE 45%,#0f3d72 100%);
    position:relative; overflow:hidden;
  }
  .brtm-nav-locked-header::before {
    content:''; position:absolute;
    width:120px; height:120px; border-radius:50%;
    background:rgba(255,255,255,.07);
    top:-40px; right:-30px; pointer-events:none;
  }
  .brtm-nav-locked-header::after {
    content:''; position:absolute;
    width:70px; height:70px; border-radius:50%;
    background:rgba(255,255,255,.06);
    bottom:-25px; left:10px; pointer-events:none;
  }
  .brtm-nav-locked-badge {
    display:inline-flex; align-items:center;
    background:rgba(255,255,255,.2); color:#fff;
    font-size:10.5px; font-weight:700; letter-spacing:.04em;
    padding:3px 8px; border-radius:20px; margin-bottom:8px;
  }
  .brtm-nav-locked-title {
    font-size:15px; font-weight:700; color:#fff; margin-bottom:6px;
  }
  .brtm-nav-locked-desc {
    font-size:12px; color:rgba(255,255,255,.8); line-height:1.5;
  }
  .brtm-nav-locked-actions {
    padding:12px 16px; display:flex; flex-direction:column; gap:8px;
  }
  .brtm-nav-locked-preview {
    padding:12px 16px 4px; display:flex; flex-direction:column; gap:10px;
    border-bottom:1px solid #f1f5f9;
  }
  .brtm-nav-locked-step {
    display:flex; align-items:flex-start; gap:10px;
  }
  .brtm-nav-locked-step-icon {
    width:32px; height:32px; border-radius:8px; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    font-size:14px;
    background:#f1f5f9; color:#64748b;
  }
  .brtm-nav-locked-step-title {
    font-size:12.5px; font-weight:600; color:#1a2234; line-height:1.3;
  }
  .brtm-nav-locked-step-desc {
    font-size:11.5px; color:#8a9ab0; margin-top:2px; line-height:1.4;
  }
  .brtm-nav-locked-btn {
    display:flex; align-items:center; justify-content:center; gap:7px;
    padding:9px 14px; border-radius:9px;
    font-size:13px; font-weight:600; text-decoration:none;
    transition:background .15s, transform .1s;
  }
  .brtm-nav-locked-btn:hover { transform:scale(1.02); }
  .brtm-nav-locked-btn.primary {
    background:var(--primary,#1B6FBE); color:#fff;
  }
  .brtm-nav-locked-btn.primary:hover { background:var(--primary-dark,#134e8e); }
  .brtm-nav-locked-btn.secondary {
    background:#f1f5f9; color:#1a2234;
  }
  .brtm-nav-locked-btn.secondary:hover { background:#e2e8f0; }
  .brtm-agent-wrap {
    position:relative; flex-shrink:0;
  }
  .brtm-agent-wrap .brtm-avatar-btn {
    cursor:pointer; position:relative;
  }
  .brtm-topbar-status-dot {
    position:absolute; bottom:0px; right:0px;
    width:12px; height:12px; border-radius:50%;
    border:2.5px solid var(--primary-dark,#134e8e);
    transition:background .2s; pointer-events:none;
  }
  .brtm-topbar-status-dot.online  { background:#22c55e; }
  .brtm-topbar-status-dot.busy    { background:#f59e0b; }
  .brtm-topbar-status-dot.offline { background:#94a3b8; }

  /* Dropdown */
  .brtm-agent-status-dropdown {
    position:absolute; top:calc(100% + 8px); right:0;
    background:#fff; border:1px solid var(--border,#e2e8f0);
    border-radius:12px; padding:6px;
    min-width:160px;
    box-shadow:0 8px 24px rgba(0,0,0,.12);
    z-index:400; display:none;
    animation:brtm-dd-in .15s ease;
  }
  .brtm-agent-status-dropdown.open { display:block; }
  @keyframes brtm-dd-in {
    from { opacity:0; transform:translateY(6px); }
    to   { opacity:1; transform:translateY(0); }
  }
  .brtm-agent-dd-header {
    font-size:11px; color:#8a9ab0; font-weight:600;
    padding:4px 10px 6px; text-transform:uppercase; letter-spacing:.05em;
  }
  .brtm-agent-dd-item {
    display:flex; align-items:center; gap:8px;
    padding:8px 10px; border-radius:8px; cursor:pointer;
    font-size:13px; color:#1a2234;
    transition:background .12s;
  }
  .brtm-agent-dd-item:hover { background:#f1f5f9; }
  .brtm-agent-dd-item.active { font-weight:600; color:var(--primary); }
  .brtm-agent-dd-item .dot {
    width:9px; height:9px; border-radius:50%; flex-shrink:0;
  }
  .brtm-agent-dd-item .dot.online  { background:#22c55e; }
  .brtm-agent-dd-item .dot.busy    { background:#f59e0b; }
  .brtm-agent-dd-item .dot.offline { background:#94a3b8; }

  /* ============================================================
     NEW FEATURE BADGE — sidebar
     ============================================================ */
  .brtm-sidebar-icon.brtm-has-new { position:relative; }
  .brtm-new-feat-badge {
    position:absolute; top:-4px; right:-4px;
    background:#f59e0b; color:#fff;
    font-size:8px; font-weight:800; letter-spacing:.5px;
    padding:2px 5px; border-radius:20px; line-height:1.4;
    border:1.5px solid #fff;
    pointer-events:none;
    box-shadow:0 1px 4px rgba(245,158,11,.45);
  }

  /* ============================================================
     SKELETON LOADING
     ============================================================ */
  @keyframes brtm-skel-shimmer {
    0%   { background-position:200% 0; }
    100% { background-position:-200% 0; }
  }
  .brtm-skeleton-item {
    display:flex; align-items:flex-start; gap:10px; padding:12px 14px;
    border-bottom:1px solid #f1f5f9;
  }
  .brtm-skel-avatar {
    width:38px; height:38px; border-radius:50%; flex-shrink:0;
    background:linear-gradient(90deg,#e8edf2 25%,#f1f5f9 50%,#e8edf2 75%);
    background-size:400% 100%;
    animation:brtm-skel-shimmer 1.4s infinite linear;
  }
  .brtm-skel-content { flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; padding-top:3px; }
  .brtm-skel-line {
    height:10px; border-radius:6px;
    background:linear-gradient(90deg,#e8edf2 25%,#f1f5f9 50%,#e8edf2 75%);
    background-size:400% 100%;
    animation:brtm-skel-shimmer 1.4s infinite linear;
  }
  .brtm-skel-line-title { width:55%; }
  .brtm-skel-line-msg   { width:80%; }
  .brtm-skel-line-meta  { width:42%; height:8px; }
  .brtm-skeleton-item:nth-child(2) .brtm-skel-avatar,
  .brtm-skeleton-item:nth-child(2) .brtm-skel-line { animation-delay:.1s; }
  .brtm-skeleton-item:nth-child(3) .brtm-skel-avatar,
  .brtm-skeleton-item:nth-child(3) .brtm-skel-line { animation-delay:.2s; }
  .brtm-skeleton-item:nth-child(4) .brtm-skel-avatar,
  .brtm-skeleton-item:nth-child(4) .brtm-skel-line { animation-delay:.3s; }
  .brtm-skeleton-item:nth-child(5) .brtm-skel-avatar,
  .brtm-skeleton-item:nth-child(5) .brtm-skel-line { animation-delay:.4s; }
  .brtm-skeleton-item:nth-child(6) .brtm-skel-avatar,
  .brtm-skeleton-item:nth-child(6) .brtm-skel-line { animation-delay:.5s; }

  /* ============================================================
     DRAG & DROP OVERLAY
     ============================================================ */
  .brtm-main-area { position:relative; }
  .brtm-drop-overlay {
    position:absolute; inset:0; z-index:9990;
    background:rgba(34,132,198,.07);
    border:2.5px dashed #2284C6;
    display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:12px;
    pointer-events:none;
    opacity:0; transition:opacity .15s;
  }
  .brtm-drop-overlay.brtm-drop-active {
    opacity:1; pointer-events:auto;
  }
  .brtm-drop-icon {
    width:68px; height:68px; border-radius:50%;
    background:#fff; border:2px solid #e3e8ef;
    display:flex; align-items:center; justify-content:center;
    font-size:30px; color:#2284C6;
    box-shadow:0 4px 24px rgba(34,132,198,.2);
    animation:brtm-drop-bounce .65s ease infinite alternate;
  }
  @keyframes brtm-drop-bounce {
    from { transform:translateY(0); }
    to   { transform:translateY(-7px); }
  }
  .brtm-drop-title { font-size:16px; font-weight:700; color:#1a2234; }
  .brtm-drop-sub   { font-size:12.5px; color:#5a7396; }

  /* ============================================================
     DRAG & DROP SEND MODAL — Barantum light theme
     ============================================================ */
  .brtm-dnd-modal-bg {
    position:fixed; inset:0; z-index:9998;
    background:rgba(15,23,42,.45);
    backdrop-filter:blur(3px);
    display:flex; align-items:center; justify-content:center;
    padding:20px;
    animation:brtm-dnd-bg-in .18s ease;
  }
  @keyframes brtm-dnd-bg-in { from{opacity:0} to{opacity:1} }

  .brtm-dnd-modal {
    background:#fff;
    border-radius:16px;
    width:min(500px, 94vw);
    max-height:90vh;
    display:flex; flex-direction:column;
    overflow:hidden;
    box-shadow:0 24px 64px rgba(0,0,0,.18);
    animation:modalIn .2s cubic-bezier(.34,1.4,.64,1);
  }

  /* Top bar */
  .brtm-dnd-modal-top {
    display:flex; align-items:center; gap:10px;
    padding:14px 16px 13px;
    border-bottom:1px solid #e8edf2;
    flex-shrink:0; background:#fff;
  }
  .brtm-dnd-modal-close {
    width:30px; height:30px; border-radius:8px;
    background:none; border:none;
    color:#8a9ab0; font-size:16px; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background .15s,color .15s; flex-shrink:0;
  }
  .brtm-dnd-modal-close:hover { background:#f0f4ff; color:var(--primary,#1B6FBE); }
  .brtm-dnd-modal-to {
    flex:1; font-size:13.5px; color:#5a7396;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .brtm-dnd-modal-to strong { color:#1a2234; }

  /* Preview area — neutral light bg */
  .brtm-dnd-preview-area {
    flex:1; display:flex; align-items:center; justify-content:center;
    min-height:240px; max-height:380px; overflow:hidden;
    background:#f5f7fa;
    border-bottom:1px solid #e8edf2;
    position:relative;
  }
  .brtm-dnd-preview-img {
    max-width:100%; max-height:380px;
    object-fit:contain; display:block;
  }
  .brtm-dnd-preview-video {
    max-width:100%; max-height:380px; display:block;
  }
  .brtm-dnd-preview-file {
    display:flex; flex-direction:column; align-items:center;
    gap:10px; padding:40px 20px;
  }
  .brtm-dnd-preview-file-icon {
    width:72px; height:72px; border-radius:14px;
    display:flex; align-items:center; justify-content:center;
    font-size:34px;
  }
  .brtm-dnd-preview-file-name {
    font-size:14px; font-weight:600; color:#1a2234;
    text-align:center; max-width:340px;
    overflow:hidden; text-overflow:ellipsis; word-break:break-all;
  }
  .brtm-dnd-preview-file-size { font-size:12px; color:#8a9ab0; }

  /* Strip */
  .brtm-dnd-strip {
    display:flex; gap:7px; padding:10px 14px;
    overflow-x:auto; flex-shrink:0;
    background:#fff; border-bottom:1px solid #e8edf2;
    scrollbar-width:none;
  }
  .brtm-dnd-strip::-webkit-scrollbar { display:none; }

  .brtm-dnd-thumb {
    width:52px; height:52px; border-radius:9px; flex-shrink:0;
    cursor:pointer; position:relative;
    background:#f1f5f9;
    border:2px solid #e3e8ef;
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
    transition:border-color .15s, box-shadow .15s;
  }
  .brtm-dnd-thumb:hover { border-color:var(--primary,#1B6FBE); }
  .brtm-dnd-thumb.brtm-dnd-thumb-active {
    border-color:var(--primary,#1B6FBE);
    box-shadow:0 0 0 3px var(--primary-light,#E7F1FB);
  }
  .brtm-dnd-thumb img,
  .brtm-dnd-thumb video {
    width:100%; height:100%; object-fit:cover; display:block;
  }
  .brtm-dnd-thumb-icon { font-size:22px; color:#8a9ab0; }

  .brtm-dnd-thumb-add {
    width:52px; height:52px; border-radius:9px; flex-shrink:0;
    background:#f1f5f9;
    border:2px dashed #cbd5e0;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; color:#8a9ab0; font-size:20px;
    transition:background .15s, border-color .15s, color .15s;
  }
  .brtm-dnd-thumb-add:hover {
    background:var(--primary-light,#E7F1FB);
    border-color:var(--primary,#1B6FBE);
    color:var(--primary,#1B6FBE);
  }

  .brtm-dnd-thumb-rm {
    position:absolute; top:2px; right:2px;
    width:18px; height:18px; border-radius:50%;
    background:rgba(0,0,0,.45); border:none; cursor:pointer;
    color:#fff; font-size:9px;
    display:none; align-items:center; justify-content:center;
    transition:background .12s;
  }
  .brtm-dnd-thumb-rm:hover { background:rgba(220,38,38,.85); }
  .brtm-dnd-thumb:hover .brtm-dnd-thumb-rm { display:flex; }

  /* Caption row */
  .brtm-dnd-caption-row {
    display:flex; align-items:flex-end; gap:10px;
    padding:12px 14px 14px; flex-shrink:0; background:#fff;
  }

  /* ── SESSION-ENDED STATE (WA API 24h window expired) ── */
  .brtm-session-ended-bar {
    display: none;
  }
  .brtm-cv-input-bar.brtm-session-ended .brtm-session-ended-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px 6px;
  }
  .brtm-cv-input-bar.brtm-session-ended .brtm-cv-input-toprow,
  .brtm-cv-input-bar.brtm-session-ended .brtm-cv-input-row,
  .brtm-cv-input-bar.brtm-session-ended .brtm-cv-note-hint {
    display: none !important;
  }
  .brtm-seb-icon {
    flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px;
    background: #fff7ed;
    display: flex; align-items: center; justify-content: center;
    color: #d97706; font-size: 18px;
    border: 1px solid #fed7aa;
  }
  .brtm-seb-content {
    flex: 1; min-width: 0;
  }
  .brtm-seb-title {
    font-size: 13px; font-weight: 600; color: #1e293b;
    margin-bottom: 2px;
  }
  .brtm-seb-desc {
    font-size: 11.5px; color: #64748b; line-height: 1.45;
  }
  .brtm-seb-btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    background: var(--primary, #1B6FBE); color: #fff;
    border: none; cursor: pointer;
    font-size: 12.5px; font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
  }

  /* ── SEND TEMPLATE DRAWER (reuses qr-drawer pattern) ── */
  .qr-drawer-overlay { position:fixed; inset:0; background:rgba(15,23,42,.35); z-index:1040; opacity:0; pointer-events:none; transition:opacity .25s; }
  .qr-drawer-overlay.open { opacity:1; pointer-events:auto; }
  .qr-drawer { position:fixed; top:0; right:0; height:100vh; width:860px; max-width:100vw; background:#fff; z-index:1050; display:flex; flex-direction:column; box-shadow:-6px 0 32px rgba(15,23,42,.13); transform:translateX(100%); transition:transform .28s cubic-bezier(.4,0,.2,1); }
  .qr-drawer.open { transform:translateX(0); }
  .qr-drawer-header { display:flex; align-items:center; justify-content:space-between; padding:16px 22px; border-bottom:1.5px solid #e3e8ef; flex-shrink:0; background:#fff; z-index:1; }
  .qr-drawer-title { font-size:15px; font-weight:700; color:#1a2234; display:flex; align-items:center; gap:7px; }
  .qr-drawer-close { width:30px; height:30px; border:none; background:#f1f5f9; border-radius:8px; color:#5a7396; font-size:13px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .15s; }
  .qr-drawer-close:hover { background:#e3e8ef; color:#1a2234; }
  .qr-drawer-cols { flex:1; display:flex; overflow:hidden; }
  .qr-drawer-form-col { width:440px; flex-shrink:0; display:flex; flex-direction:column; border-right:1.5px solid #e3e8ef; overflow:hidden; }
  .qr-drawer-form-scroll { flex:1; overflow-y:auto; padding:20px 22px; }
  .qr-drawer-footer { padding:14px 22px; border-top:1.5px solid #e3e8ef; display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-shrink:0; background:#fff; }
  .qr-preview-col { flex:1; display:flex; flex-direction:column; background:#f0f2f5; overflow:hidden; }
  .qr-preview-col-header { padding:14px 18px 10px; flex-shrink:0; }
  .qr-preview-col-label { font-size:11px; font-weight:700; color:#8a9ab0; text-transform:uppercase; letter-spacing:.5px; display:flex; align-items:center; gap:6px; }
  .qr-preview-col-label i { font-size:12px; color:#2284C6; }
  .qr-preview-area { flex:1; overflow-y:auto; padding:12px 18px 24px; display:flex; flex-direction:column; justify-content:flex-end; }
  .qr-preview-phone { flex:1; display:flex; flex-direction:column; background:#e5ddd5; overflow:hidden; }
  .qr-preview-phone-topbar { background:#075e54; padding:10px 14px; display:flex; align-items:center; gap:10px; flex-shrink:0; }
  .qr-preview-phone-avatar { width:34px; height:34px; border-radius:50%; background:#25d366; display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:700; flex-shrink:0; }
  .qr-preview-phone-name { color:#fff; font-size:13px; font-weight:600; }
  .qr-preview-phone-sub { color:rgba(255,255,255,.7); font-size:10.5px; }
  .qr-preview-bubble-wrap { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
  .qr-preview-bubble { background:#d9fdd3; border-radius:14px 14px 4px 14px; padding:10px 13px; max-width:90%; font-size:13px; color:#111b21; line-height:1.55; white-space:pre-wrap; word-break:break-word; box-shadow:0 1px 3px rgba(0,0,0,.1); }
  .qr-preview-bubble-time { font-size:10.5px; color:#8a9ab0; align-self:flex-end; margin-top:1px; }
  .qr-preview-bubble-empty { font-size:12.5px; color:#8a9ab0; font-style:italic; padding:16px; background:rgba(255,255,255,.6); border-radius:14px; text-align:center; border:1.5px dashed #d1d5db; display:flex; flex-direction:column; align-items:center; gap:6px; }
  .qr-preview-bubble-empty i { font-size:20px; color:#c4b5fd; }
  .qr-preview-ibtn-list { display:flex; flex-direction:column; gap:6px; margin-top:6px; width:90%; align-self:flex-end; }
  .qr-preview-ibtn { background:#fff; border:1.5px solid #d9fdd3; border-radius:10px; padding:8px 12px; font-size:12.5px; color:#2284C6; font-weight:600; text-align:center; cursor:default; box-shadow:0 1px 3px rgba(0,0,0,.07); }
  .qr-search-wrap { position:relative; }
  .qr-search-wrap i { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:#8a9ab0; font-size:13px; pointer-events:none; }
  .qr-search-wrap input { width:100%; padding:8px 12px 8px 34px; border:1.5px solid #e3e8ef; border-radius:24px; font-size:13px; font-family:inherit; color:#1a2234; outline:none; background:#f7f9fc; box-sizing:border-box; }
  .qr-search-wrap input:focus { border-color:#2284C6; background:#fff; }
  .brtm-seb-btn:hover { background: var(--primary-dark, #134E8E); }

  .brtm-dnd-caption-wrap {
    flex:1; background:#f1f5f9; border-radius:10px;
    border:1.5px solid #e3e8ef;
    padding:8px 12px; display:flex; align-items:flex-end; gap:6px;
    transition:border-color .15s;
  }
  .brtm-dnd-caption-wrap:focus-within {
    border-color:var(--primary,#1B6FBE);
    background:#fff;
  }
  .brtm-dnd-emoji-btn {
    background:none; border:none; cursor:pointer;
    color:#8a9ab0; font-size:18px;
    padding:0; line-height:1; flex-shrink:0;
    transition:color .15s;
  }
  .brtm-dnd-emoji-btn:hover { color:var(--primary,#1B6FBE); }
  .brtm-dnd-caption-input {
    flex:1; background:none; border:none; outline:none;
    font-family:inherit; font-size:13.5px; color:#1a2234; resize:none;
    max-height:80px; min-height:22px; line-height:1.55;
  }
  .brtm-dnd-caption-input::placeholder { color:#b0bcc9; }

  .brtm-dnd-send-btn {
    width:44px; height:44px; border-radius:50%; flex-shrink:0;
    background:var(--primary,#1B6FBE); border:none; cursor:pointer;
    color:#fff; font-size:18px;
    display:flex; align-items:center; justify-content:center;
    transition:background .15s, transform .1s;
    box-shadow:0 2px 10px rgba(27,111,190,.3);
  }
  .brtm-dnd-send-btn:hover { background:var(--primary-dark,#134E8E); transform:scale(1.06); }
  .brtm-dnd-send-btn:active { transform:scale(.97); }
  