.pqr-chat-shell {
  --pqr-forest: #145442;
  --pqr-mint: #dff4ec;
  --pqr-canvas: #eef3f1;
  display: grid;
  grid-template-columns: minmax(350px, 400px) minmax(390px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: min(820px, calc(100vh - 138px));
  height: min(820px, calc(100dvh - 138px));
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #d8e2de;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 48, 40, .09);
}
.pqr-chat-shell.quick-open { grid-template-columns: minmax(330px, 380px) minmax(390px, 1fr) minmax(250px, 300px); }
.pqr-chat-quick[hidden] { display: none; }

body.pqr-chat-view-active { overflow: hidden; }
body.pqr-chat-view-active #app { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.pqr-chat-view-active main { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding: 0; }
body.pqr-chat-view-active main > .topbar { display: none; }
body.pqr-chat-view-active #pqr-chat { height: 100%; min-height: 0; overflow: hidden; }
body.pqr-chat-view-active .pqr-chat-shell { width: 100%; height: 100%; min-height: 0; max-height: none; border-width: 0; border-radius: 0; box-shadow: none; }

@media (min-width: 901px) {
  body.pqr-chat-view-active #app > .sidebar {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.pqr-chat-view-active #app > .sidebar > .nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 231, 235, .55) transparent;
  }
  body.pqr-chat-view-active #app > .sidebar > .nav::-webkit-scrollbar { width: 7px; }
  body.pqr-chat-view-active #app > .sidebar > .nav::-webkit-scrollbar-track { background: transparent; }
  body.pqr-chat-view-active #app > .sidebar > .nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(217, 231, 235, .42); }
}

.pqr-chat-conversations,
.pqr-chat-quick {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pqr-chat-conversations { border-right: 1px solid #dfe7e4; }
.pqr-chat-quick { border-left: 1px solid #dfe7e4; }

.pqr-chat-side-head,
.pqr-chat-active-head,
.pqr-chat-quick-head {
  min-height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4ebe8;
}

.pqr-chat-side-head { justify-content: space-between; }
.pqr-chat-side-head > div,
.pqr-chat-quick-head > div { display: grid; gap: 3px; min-width: 0; }
.pqr-chat-side-head strong,
.pqr-chat-quick-head strong { font-size: 16px; }
.pqr-chat-side-head span,
.pqr-chat-quick-head span { color: #718078; font-size: 12px; }
.pqr-chat-total-unread { display: inline-grid; min-width: 23px; height: 23px; place-items: center; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: #18a874; color: #fff !important; font-size: 11px !important; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.pqr-chat-total-unread[hidden] { display: none; }
.pqr-chat-connection.connected { color: #147957; }
.pqr-chat-connection.error { color: #bf3f3b; }

.pqr-chat-icon-btn,
.pqr-chat-quick-toggle,
.pqr-chat-mobile-back {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #d7e1dd;
  border-radius: 11px;
  background: #fff;
  color: #315047;
  font-size: 20px;
  cursor: pointer;
}
.pqr-chat-icon-btn:hover,
.pqr-chat-quick-toggle:hover { background: #edf7f3; border-color: #a8c9bc; }
.pqr-chat-quick-toggle { display: grid; place-items: center; background: #fff9dd; border-color: #e8dca2; }
.pqr-chat-quick-toggle svg { width: 23px; height: 23px; fill: #e3ad00; }
.pqr-chat-quick-toggle[aria-expanded="true"] { background: #fff0ac; border-color: #cc9e16; }

.pqr-chat-search {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin: 12px;
  padding: 0 12px;
  border: 1px solid #dce6e2;
  border-radius: 12px;
  background: #f5f8f7;
}
.pqr-chat-search span { color: #708079; font-size: 20px; }
#pqrChatType, #pqrChatLabelFilter { display: block; flex-shrink: 0; width: calc(100% - 24px); min-height: 36px; margin: 0 12px 12px; padding: 7px 10px; border: 1px solid #dce6e2; border-radius: 10px; background: #f5f8f7; color: #315047; font: inherit; font-size: 12px; }
#pqrChatType:focus-visible, #pqrChatLabelFilter:focus-visible { outline: 2px solid #54a487; outline-offset: 2px; }
.pqr-chat-filter-note { flex-shrink: 0; margin: -5px 14px 10px; color: #7b6841; font-size: 10px; line-height: 1.35; }
.pqr-chat-search input {
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
}

.pqr-chat-sync { flex-shrink: 0; padding: 7px 12px 8px; border-bottom: 1px solid #dce6e2; background: #f1faf6; color: #406258; font-size: 10px; }
.pqr-chat-sync[hidden] { display: none; }
.pqr-chat-sync > div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.pqr-chat-sync progress { width: 100%; height: 5px; display: block; overflow: hidden; border: 0; border-radius: 999px; accent-color: #19a675; }
.pqr-chat-filter-chips { display: flex; flex-shrink: 0; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.pqr-chat-filter-chips::-webkit-scrollbar { display: none; }
.pqr-chat-filter-chips button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #dce6e2; border-radius: 999px; background: #fff; color: #465b53; font: inherit; font-size: 11px; cursor: pointer; }
.pqr-chat-filter-chips button.active { border-color: #a7d8c5; background: #dff4ec; color: #0d6a4b; font-weight: 750; }
.pqr-chat-filter-chips span { font-variant-numeric: tabular-nums; }
.pqr-chat-hidden-filter { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }

.pqr-chat-list,
.pqr-chat-messages,
.pqr-chat-quick-list { overflow: auto; overscroll-behavior: contain; }
.pqr-chat-list { flex: 1; min-height: 0; }
.pqr-chat-conversation {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eef2f0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.pqr-chat-conversation:hover { background: #f5faf8; }
.pqr-chat-conversation.active { background: #e5f4ee; box-shadow: inset 3px 0 var(--pqr-forest); }
.pqr-chat-avatar {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #cde8de;
  color: #145442;
  font-weight: 800;
  text-transform: uppercase;
}
.pqr-chat-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pqr-chat-conversation strong,
.pqr-chat-conversation p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-chat-conversation strong { font-size: 14px; align-self: end; }
.pqr-chat-conversation p { grid-column: 2 / 4; margin: 2px 0 0; color: #6c7b74; font-size: 12px; }
.pqr-chat-conversation time { color: #89948f; font-size: 11px; }
.pqr-chat-conversation-meta { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.pqr-chat-pinned { flex-shrink: 0; font-size: 12px; line-height: 1; }
.pqr-chat-group-label { color: #397361; font-weight: 700; }
.pqr-chat-conversation .pqr-chat-unread {
  justify-self: end;
  min-width: 23px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #18a874;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pqr-chat-main {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--pqr-canvas);
  background-image: radial-gradient(rgba(30, 87, 68, .055) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pqr-chat-empty {
  margin: auto;
  max-width: 440px;
  padding: 32px;
  text-align: center;
  color: #5f7169;
}
.pqr-chat-empty-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: #dceee7;
  color: #176147;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
}
.pqr-chat-empty h2 { margin: 0 0 8px; color: #23342e; font-size: 21px; }
.pqr-chat-empty p { margin: 0; line-height: 1.55; }
.pqr-chat-active { min-height: 0; min-width: 0; height: 100%; flex: 1; display: flex; flex-direction: column; }
.pqr-chat-active[hidden] { display: none; }
.pqr-chat-active-head { background: rgba(255, 255, 255, .96); }
.pqr-chat-active-head .pqr-chat-avatar { grid-row: auto; width: 42px; height: 42px; }
.pqr-chat-active-copy { min-width: 0; display: grid; gap: 3px; flex: 1; }
.pqr-chat-active-copy strong,
.pqr-chat-active-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-chat-active-copy span { color: #6d7b75; font-size: 12px; }
.pqr-chat-live { display: inline-flex; align-items: center; gap: 6px; color: #387563; font-size: 12px; }
.pqr-chat-live i { width: 8px; height: 8px; border-radius: 50%; background: #27b47d; box-shadow: 0 0 0 4px #dff4ec; }
.pqr-chat-mobile-back { display: none; }
.pqr-chat-management { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; gap: 6px 10px; position: relative; z-index: 3; padding: 7px 14px; border-bottom: 1px solid #dce5e1; background: #f8fbf9; }
.pqr-chat-pin-tools { display: flex; gap: 4px; }
.pqr-chat-management button, .pqr-chat-label-menu summary { padding: 5px 8px; border: 1px solid #d7e1dd; border-radius: 7px; background: #fff; color: #315047; font: inherit; font-size: 11px; cursor: pointer; }
.pqr-chat-management button:disabled { opacity: .5; cursor: not-allowed; }
.pqr-chat-pin-tools button[aria-pressed="true"] { border-color: #93bba8; background: #e3f3eb; }
.pqr-chat-label-menu { position: relative; }
.pqr-chat-label-menu summary { list-style: none; }
.pqr-chat-label-menu summary::-webkit-details-marker { display: none; }
.pqr-chat-label-popover { position: absolute; top: calc(100% + 7px); left: 0; width: min(300px, 76vw); max-height: 280px; overflow: auto; padding: 10px; border: 1px solid #d7e1dd; border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(22,55,44,.16); }
.pqr-chat-label-popover p { margin: 0 0 8px; color: #63756b; font-size: 11px; line-height: 1.4; }
#pqrChatLabelOptions { display: flex; flex-wrap: wrap; gap: 6px; }
.pqr-chat-selected-labels { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.pqr-chat-label-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 200px; padding: 3px 7px; border: 1px solid #dce6e2; border-radius: 999px; background: #fff; color: #315047; font-size: 10px; overflow-wrap: anywhere; }
.pqr-chat-label-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #91b5a4; }
.pqr-chat-management-status { flex-basis: 100%; color: #566c5f; font-size: 11px; line-height: 1.3; }
.pqr-chat-management-status.error { color: #9e3530; }

.pqr-chat-notice {
  flex-shrink: 0;
  padding: 9px 15px;
  border-bottom: 1px solid #e4d3a8;
  background: #fff7dd;
  color: #7b5a13;
  font-size: 12px;
  line-height: 1.4;
}
.pqr-chat-notice.error { border-color: #f0c4c2; background: #fff0ef; color: #9e3530; }
.pqr-chat-notice.success { border-color: #bfe0d2; background: #e9f7f1; color: #126347; }

.pqr-chat-messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px clamp(14px, 3vw, 38px);
}
.pqr-chat-day {
  flex-shrink: 0;
  align-self: center;
  margin: 7px 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: #65736d;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(25, 55, 45, .08);
}
.pqr-chat-bubble {
  flex-shrink: 0;
  align-self: flex-start;
  max-width: min(78%, 580px);
  padding: 8px 10px 6px;
  border-radius: 5px 14px 14px 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 53, 44, .14);
}
.pqr-chat-bubble { position: relative; }
.pqr-chat-reply-action { position: absolute; top: 4px; right: -34px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d5e1dc; border-radius: 50%; background: rgba(255,255,255,.96); color: #416157; box-shadow: 0 2px 8px rgba(22,55,44,.12); opacity: 0; cursor: pointer; transition: opacity .12s ease; }
.pqr-chat-bubble.mine .pqr-chat-reply-action { right: auto; left: -34px; }
.pqr-chat-bubble:hover .pqr-chat-reply-action,
.pqr-chat-reply-action:focus-visible { opacity: 1; }
.pqr-chat-quoted { display: grid; gap: 2px; margin-bottom: 6px; padding: 6px 8px; border-left: 3px solid #27a879; border-radius: 6px; background: rgba(20,84,66,.075); color: #576b63; font-size: 11px; }
.pqr-chat-quoted strong { color: #176b50; }
.pqr-chat-quoted span { max-height: 2.8em; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.pqr-chat-bubble.mine { align-self: flex-end; border-radius: 14px 5px 14px 14px; background: #d7f3e7; }
.pqr-chat-bubble.local-sending { opacity: .82; }
.pqr-chat-bubble.local-sent { opacity: .94; }
.pqr-chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.42; }
.pqr-chat-sender { display: block; margin-bottom: 4px; color: #277258; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.pqr-chat-bubble footer { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 3px; color: #728079; font-size: 10px; }
.pqr-chat-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.pqr-chat-reaction { display: inline-flex; align-items: center; padding: 2px 6px; border: 1px solid #d9e6df; border-radius: 999px; background: #fff; font-size: 12px; line-height: 1.35; }
.pqr-chat-reaction.mine { border-color: #68ad90; background: #edf9f3; }
.pqr-chat-history { align-self: center; flex-shrink: 0; padding: 8px 12px; border: 1px solid #cbdad4; border-radius: 10px; background: #fff; color: #145442; cursor: pointer; }
.pqr-chat-history:disabled { opacity: .65; cursor: wait; }
.pqr-chat-media { display: inline-flex; gap: 7px; align-items: center; margin-top: 7px; border: 0; border-radius: 8px; padding: 7px 9px; background: rgba(20,84,66,.1); color: #145442; font-size: 12px; font-weight: 750; cursor: pointer; }
.pqr-chat-bubble.with-image { width: min(78%, 340px); }
.pqr-chat-image { width: 100%; aspect-ratio: 4 / 3; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; overflow: hidden; margin-bottom: 7px; border-radius: 8px; background: rgba(20,84,66,.065); color: #61766b; }
.pqr-chat-image > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; cursor: zoom-in; }
.pqr-chat-image > span { padding: 12px; text-align: center; font-size: 12px; line-height: 1.4; }
.pqr-chat-image .pqr-chat-media { margin: 0 10px 10px; }
.pqr-chat-bubble.with-audio { width: min(78%, 390px); }
.pqr-chat-bubble.with-video { width: min(78%, 430px); }
.pqr-chat-playable { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; margin-bottom: 7px; border-radius: 8px; background: rgba(20,84,66,.065); color: #61766b; overflow: hidden; }
.pqr-chat-playable > span { padding: 12px; text-align: center; font-size: 12px; line-height: 1.4; }
.pqr-chat-playable .pqr-chat-media { margin: 0 10px 10px; }
.pqr-chat-audio { min-height: 58px; background: transparent; }
.pqr-chat-audio > audio { width: 100%; height: 44px; }
.pqr-chat-video { min-height: 180px; aspect-ratio: 16 / 9; background: #101512; }
.pqr-chat-video > video { width: 100%; height: 100%; max-height: 430px; object-fit: contain; background: #101512; }
.pqr-chat-scroll { position: absolute; right: 18px; bottom: 85px; border: 1px solid #cbdad4; border-radius: 999px; padding: 8px 12px; background: #fff; color: #315047; box-shadow: 0 4px 16px rgba(22,55,44,.14); cursor: pointer; }

.pqr-chat-composer {
  display: flex;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  align-items: flex-end;
  gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid #dce5e1;
  background: rgba(255,255,255,.96);
}
.pqr-chat-reply-draft { display: flex; flex-shrink: 0; align-items: stretch; gap: 8px; padding: 7px 14px; border-top: 1px solid #dce5e1; background: #f6faf8; }
.pqr-chat-reply-draft[hidden] { display: none; }
.pqr-chat-reply-draft > div { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 5px 9px; border-left: 3px solid #27a879; background: #fff; }
.pqr-chat-reply-draft strong { color: #176b50; font-size: 11px; }
.pqr-chat-reply-draft span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #66776f; font-size: 11px; }
.pqr-chat-reply-draft button { width: 32px; border: 0; background: transparent; color: #596a63; font-size: 22px; cursor: pointer; }
.pqr-chat-attach { width: 38px; height: 44px; flex: 0 0 auto; border: 1px solid #d7e1dd; border-radius: 11px; background: #fff; color: #315047; font-size: 20px; cursor: pointer; }
.pqr-chat-attach:disabled { opacity: .5; cursor: not-allowed; }
.pqr-chat-image-draft { display: flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid #dce5e1; background: #f6faf8; }
.pqr-chat-image-draft[hidden] { display: none; }
.pqr-chat-image-draft img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 7px; object-fit: contain; background: #e6eee9; }
.pqr-chat-image-draft > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pqr-chat-image-draft strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #315047; font-size: 12px; }
.pqr-chat-image-draft span { color: #63756b; font-size: 11px; line-height: 1.35; }
.pqr-chat-image-draft button { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid #d7e1dd; border-radius: 8px; background: #fff; color: #5b6c62; font-size: 22px; cursor: pointer; }
.pqr-chat-image-draft button:disabled { opacity: .5; cursor: wait; }
.pqr-chat-composer textarea {
  min-width: 0;
  min-height: 44px;
  max-height: 132px;
  flex: 1;
  resize: none;
  overflow-y: auto;
  border: 1px solid #d3ded9;
  border-radius: 13px;
  padding: 11px 13px;
  outline: none;
  font: inherit;
  line-height: 1.35;
}
.pqr-chat-composer textarea:focus { border-color: #54a487; box-shadow: 0 0 0 3px rgba(53,184,135,.13); }
.pqr-chat-slash-menu { position: absolute; bottom: calc(100% + 7px); left: 14px; right: 14px; z-index: 8; display: flex; flex-direction: column; max-height: min(340px, 45vh); border: 1px solid #d7e5de; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px rgba(22,55,44,.2); overflow: hidden; }
.pqr-chat-slash-menu[hidden] { display: none; }
.pqr-chat-slash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; padding: 11px 14px; border-bottom: 1px solid #e4ede8; background: #f6faf8; }
.pqr-chat-slash-head strong { color: #176b50; font-size: 13px; }
.pqr-chat-slash-head span { color: #718078; font-size: 10px; }
.pqr-chat-slash-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pqr-chat-slash-option { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px 12px; width: 100%; border: 0; border-bottom: 1px solid #eef3f0; padding: 11px 14px; background: #fff; color: #24453a; text-align: left; font: inherit; cursor: pointer; }
.pqr-chat-slash-option:hover, .pqr-chat-slash-option[aria-selected="true"] { background: #e9f6ef; box-shadow: inset 3px 0 #27a879; }
.pqr-chat-slash-option strong { font-size: 13px; color: #147452; overflow-wrap: anywhere; }
.pqr-chat-slash-title { align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; text-align: right; }
.pqr-chat-slash-preview { grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: #66796f; font-size: 12px; line-height: 1.4; }
.pqr-chat-slash-status { flex-shrink: 0; padding: 8px 14px; color: #718078; font-size: 11px; border-top: 1px solid #e4ede8; background: #fbfdfc; }
@media (max-width: 760px) {
  .pqr-chat-slash-menu { left: 8px; right: 8px; max-height: min(300px, 40dvh); }
  .pqr-chat-slash-option { gap: 4px 8px; padding: 12px; }
  .pqr-chat-slash-head span { display: none; }
}
.pqr-chat-send,
.pqr-chat-primary,
.pqr-chat-new-quick {
  border: 0;
  border-radius: 10px;
  background: var(--pqr-forest);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.pqr-chat-send { flex-shrink: 0; min-height: 44px; padding: 0 17px; }
.pqr-chat-send:disabled { opacity: .5; cursor: not-allowed; }

.pqr-chat-quick-head { justify-content: space-between; }
.pqr-chat-quick-head .pqr-chat-icon-btn { display: inline-grid; place-items: center; }
.pqr-chat-provider-note { margin: 12px 14px; padding: 11px; border-radius: 10px; background: #f4f7f6; color: #64736d; font-size: 11px; line-height: 1.45; }
.pqr-chat-new-quick { margin: 0 14px 12px; padding: 10px; }
.pqr-chat-quick-list { flex: 1; padding: 0 10px 14px; }
.pqr-chat-quick-card { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; padding: 11px; border: 1px solid #e0e7e4; border-radius: 11px; margin-bottom: 8px; background: #fff; text-align: left; cursor: pointer; }
.pqr-chat-quick-card:hover { border-color: #9dc7b7; background: #f6fbf9; }
.pqr-chat-quick-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pqr-chat-quick-card code { color: #15805c; font-size: 11px; }
.pqr-chat-quick-card p { grid-column: 1 / 3; display: -webkit-box; overflow: hidden; margin: 1px 0 0; color: #68766f; font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pqr-chat-quick-edit { border: 0; background: transparent; color: #547069; font-size: 12px; cursor: pointer; }
.pqr-chat-quick-form { padding: 2px 14px 14px; overflow: auto; }
.pqr-chat-quick-form[hidden] { display: none; }
.pqr-chat-quick-form label { display: grid; gap: 5px; margin: 0 0 10px; color: #51615a; font-size: 11px; font-weight: 750; }
.pqr-chat-quick-form input,
.pqr-chat-quick-form textarea { width: 100%; border: 1px solid #d7e1dd; border-radius: 9px; padding: 9px; outline: 0; font: inherit; }
.pqr-chat-shortcut { display: flex; align-items: center; border: 1px solid #d7e1dd; border-radius: 9px; padding-left: 10px; }
.pqr-chat-shortcut input { border: 0; padding-left: 3px; }
.pqr-chat-quick-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 7px; }
.pqr-chat-primary,
.pqr-chat-secondary,
.pqr-chat-danger { border-radius: 8px; padding: 8px 10px; cursor: pointer; font-weight: 700; }
.pqr-chat-secondary { border: 1px solid #d3ded9; background: #fff; color: #3f564d; }
.pqr-chat-danger { border: 1px solid #efc8c6; background: #fff3f2; color: #b43e39; }
.pqr-chat-loading { padding: 24px 14px; color: #718078; font-size: 13px; text-align: center; }

.pqr-chat-lightbox { position: fixed; z-index: 2000; inset: 0; display: grid; grid-template-rows: auto minmax(0,1fr); background: rgba(13,24,20,.92); color: #fff; }
.pqr-chat-lightbox[hidden] { display: none; }
.pqr-chat-lightbox header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; background: rgba(18,36,30,.94); }
.pqr-chat-lightbox header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-chat-lightbox header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 27px; cursor: pointer; }
.pqr-chat-lightbox > div { min-height: 0; display: grid; place-items: center; padding: 18px; }
.pqr-chat-lightbox img { max-width: 96vw; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; }

@media (max-width: 1240px) {
  .pqr-chat-shell, .pqr-chat-shell.quick-open { grid-template-columns: minmax(310px, 360px) minmax(390px, 1fr); }
  .pqr-chat-quick { position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; width: min(330px, 92vw); transform: translateX(105%); transition: transform .18s ease; box-shadow: -12px 0 36px rgba(22,49,41,.17); }
  .pqr-chat-shell { position: relative; }
  .pqr-chat-shell.quick-open .pqr-chat-quick { transform: translateX(0); }
  .pqr-chat-quick-head .pqr-chat-icon-btn { display: inline-grid; place-items: center; }
}

@media (max-width: 760px) {
  .pqr-chat-shell, .pqr-chat-shell.quick-open { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 120px); height: calc(100dvh - 120px); min-height: 250px; }
  .pqr-chat-label-popover { left: auto; right: 0; }
  .pqr-chat-quick { width: min(330px, calc(100% - 64px)); }
  .pqr-chat-main { display: none; }
  .pqr-chat-shell.chat-open .pqr-chat-conversations { display: none; }
  .pqr-chat-shell.chat-open .pqr-chat-main { display: flex; }
  .pqr-chat-mobile-back { display: inline-grid; place-items: center; }
  .pqr-chat-bubble { max-width: 88%; }
  .pqr-chat-reply-action { opacity: 1; }
  .pqr-chat-live { display: none; }
  .pqr-chat-composer { padding-bottom: max(11px, env(safe-area-inset-bottom)); }
}
