.wa-shell[hidden], .wa-toast[hidden], .wa-shell [hidden] { display: none !important; }
body.wa-open { overflow: hidden !important; }
.wa-shell, .wa-shell * { box-sizing: border-box; }
.wa-shell { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 22px; background: rgba(15, 32, 37, .58); overscroll-behavior: contain; color: #20343a; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wa-layout { width: min(1040px, 100%); height: min(760px, calc(100vh - 44px)); height: min(760px, calc(100dvh - 44px)); display: grid; grid-template-columns: minmax(285px, 345px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .24); }
.wa-shell.wa-single .wa-layout { width: min(600px, 100%); height: min(650px, calc(100vh - 44px)); height: min(650px, calc(100dvh - 44px)); grid-template-columns: minmax(0, 1fr); }
.wa-single .wa-sidebar, .wa-single .wa-back { display: none !important; }
.wa-sidebar, .wa-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.wa-sidebar { border-right: 1px solid #e3eae9; background: #fff; }
.wa-thread { background: #f5f8f7; }
.wa-side-head, .wa-thread-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 11px 18px; border-bottom: 1px solid #e5ecea; background: #fff; }
.wa-side-head { justify-content: space-between; }
.wa-eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .15em; color: #72918b; }
.wa-side-head h2 { margin: 1px 0 0; font-size: 20px; line-height: 1.15; color: #183c37; }
.wa-side-actions { display: flex; align-items: center; gap: 4px; }
.wa-shell button { font: inherit; cursor: pointer; }
.wa-notify, .wa-close, .wa-thread-close, .wa-back { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 0 9px; border: 0; border-radius: 9px; background: transparent; color: #4b6661; }
.wa-notify:hover, .wa-close:hover, .wa-thread-close:hover, .wa-back:hover { background: #eaf3f0; color: #14584b; }
.wa-close, .wa-thread-close { font-size: 22px !important; line-height: 1; }
.wa-close span, .wa-thread-close span { font-size: 12px; font-weight: 650; }
.wa-search { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin: 12px 14px 8px; padding: 0 12px; height: 38px; border-radius: 10px; background: #f1f5f4; color: #64837d; }
.wa-search span { font-size: 23px; line-height: 1; }
.wa-search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: #20343a; font: inherit; }
.wa-search input::placeholder, .wa-compose textarea::placeholder { color: #8a9b99; }
.wa-filters { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 11px; }
.wa-filters button { padding: 5px 10px; border: 0; border-radius: 999px; background: #f2f5f4; color: #5f7671; font-size: 12px; }
.wa-filters button.active { background: #d9f0e7; color: #126451; font-weight: 700; }
.wa-contacts, .wa-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #bccdc9 transparent; }
.wa-contact { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 78px; padding: 11px 14px; border: 0; border-bottom: 1px solid #eef2f1; background: #fff; text-align: left; color: #20343a; }
.wa-contact:hover, .wa-contact.selected { background: #edf6f2; }
.wa-avatar { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #dcefe8; color: #21735d; font-weight: 750; font-size: 17px; }
.wa-contact-main { display: block; flex: 1 1 auto; min-width: 0; }
.wa-contact-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wa-contact-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wa-contact-top time { flex: 0 0 auto; color: #8a9d98; font-size: 11px; }
.wa-contact-company, .wa-contact-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6c807a; font-size: 12px; }
.wa-contact-preview { margin-top: 2px; }
.wa-unread { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: #1c9a70; color: #fff; font-size: 11px; font-weight: 750; }
.wa-list-empty, .wa-intro { margin: auto; padding: 24px; color: #82948e; text-align: center; }
.wa-back { display: none; font-size: 24px !important; }
.wa-thread-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wa-thread-info strong, .wa-thread-info span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa-thread-info strong { font-size: 14px; color: #1e3933; }
.wa-thread-info span { color: #81948e; font-size: 12px; }
.wa-connection { flex: 0 0 auto; color: #2d9872; font-size: 11px; white-space: nowrap; }
.wa-connection.wa-offline { color: #b25b43; }
.wa-messages { display: flex; flex-direction: column; gap: 9px; padding: 20px 24px; }
.wa-message-row { flex: 0 0 auto; display: flex; justify-content: flex-start; }
.wa-message-row.mine { justify-content: flex-end; }
.wa-bubble { max-width: min(82%, 510px); min-width: 90px; padding: 9px 12px 6px; border-radius: 13px 13px 13px 3px; background: #fff; box-shadow: 0 1px 3px rgba(20, 50, 42, .08); overflow-wrap: anywhere; }
.wa-message-row.mine .wa-bubble { background: #dff4e7; border-radius: 13px 13px 3px 13px; }
.wa-author { margin-bottom: 3px; color: #24745e; font-size: 11px; font-weight: 750; }
.wa-text { color: #20343a; white-space: normal; line-height: 1.5; }
.wa-bubble time { display: block; margin-top: 3px; color: #8aa09a; text-align: right; font-size: 10px; }
.wa-compose { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 9px; padding: 12px 18px; border-top: 1px solid #e3ece8; background: #fff; }
.wa-compose textarea { flex: 1 1 auto; min-width: 0; max-height: 105px; min-height: 40px; resize: vertical; padding: 10px 13px; border: 1px solid #dce7e3; border-radius: 12px; outline: none; background: #f7faf9; color: #20343a; font: inherit; }
.wa-compose textarea:focus { border-color: #75bda4; background: #fff; }
.wa-compose button { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 11px; background: #188461; color: #fff; font-size: 18px; }
.wa-compose button:disabled { opacity: .45; cursor: default; }
.wa-toast { position: fixed; z-index: 100001; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 12px 17px; border: 0; border-radius: 12px; background: #1b6855; color: #fff; box-shadow: 0 10px 30px #0002; text-align: left; font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
@media (max-width: 700px) {
  .wa-shell { padding: 0; }
  .wa-layout, .wa-shell.wa-single .wa-layout { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; grid-template-columns: minmax(0, 1fr); }
  .wa-sidebar, .wa-thread { grid-area: 1 / 1; }
  .wa-thread { display: none; }
  .wa-shell.wa-has-thread .wa-sidebar { display: none; }
  .wa-shell.wa-has-thread .wa-thread { display: flex; }
  .wa-shell.wa-single .wa-thread { display: flex; }
  .wa-back { display: inline-flex; }
  .wa-side-head, .wa-thread-head { padding-top: max(11px, env(safe-area-inset-top)); }
  .wa-compose { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .wa-messages { padding: 16px; }
  .wa-connection { display: none; }
}
