:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --line: #e6e8ec;
  --text: #15181e;
  --muted: #6b7280;
  --accent: #0f766e;
  --accent-soft: #e6f4f2;
  --danger: #dc2626;
  --warn: #b45309;
  --bubble-in: #ffffff;
  --bubble-out: #dcf3ee;
  --chat-bg: #eef0f3;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12; --panel: #15181d; --panel-2: #1b1f25; --line: #262b33; --text: #e8eaed; --muted: #9aa1ab;
    --accent: #2dd4bf; --accent-soft: #11302d; --bubble-in: #1d2128; --bubble-out: #12403a; --chat-bg: #0f1215;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }
.icon { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.btn {
  height: 40px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: filter .15s, transform .1s;
}
@media (prefers-color-scheme: dark) { .btn { color: #04201d; } }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.field { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); outline: none; }
textarea.field { height: auto; padding: 10px 12px; resize: vertical; min-height: 90px; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.lbl { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }

/* ---------- login ---------- */
#login { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.login-card h1 { margin: 12px 0 4px; font-size: 22px; letter-spacing: -.01em; }
.login-card p { margin: 0 0 20px; color: var(--muted); }
.logo { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* ---------- layout ---------- */
#app { height: 100dvh; display: grid; grid-template-columns: 380px 1fr; overflow: hidden; }
#list-pane { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
#chat-pane { display: flex; flex-direction: column; min-width: 0; background: var(--chat-bg); }
@media (max-width: 820px) {
  #app { grid-template-columns: 100%; }
  #chat-pane { position: fixed; inset: 0; transform: translateX(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); z-index: 5; }
  #app.chat-open #chat-pane { transform: none; }
}

.topbar { display: flex; align-items: center; gap: 4px; padding: 10px 8px 6px 16px; }
.topbar h2 { flex: 1; margin: 0; font-size: 20px; letter-spacing: -.01em; }
.chips { display: flex; gap: 6px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--muted);
}
.chip.active { background: var(--text); color: var(--panel); border-color: var(--text); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .count { font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 10px; padding: 0 6px; line-height: 17px; }
.chip.active .count { background: var(--panel); color: var(--text); }
.st-off { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--danger); }

.search { margin: 0 12px 8px; position: relative; }
.search input { padding-left: 38px; height: 38px; background: var(--panel-2); border-color: transparent; }
.search .icon { position: absolute; left: 11px; top: 8px; width: 20px; height: 20px; color: var(--muted); }

.banner { margin: 0 12px 8px; padding: 10px 12px; border-radius: 10px; background: #fef3c7; color: #78350f; font-size: 13px; display: flex; gap: 8px; align-items: center; }
@media (prefers-color-scheme: dark) { .banner { background: #3a2a07; color: #fcd34d; } }
.banner button { margin-left: auto; font-weight: 600; text-decoration: underline; color: inherit; }

#chat-list { flex: 1; overflow-y: auto; }
.chat-item { display: flex; gap: 12px; padding: 10px 16px; align-items: center; cursor: pointer; position: relative; }
.chat-item:hover { background: var(--panel-2); }
.chat-item.active { background: var(--accent-soft); }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 16px; position: relative; }
.avatar .acc-dot { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--panel); }
.chat-main { flex: 1; min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: -10px; }
.chat-item:last-child .chat-main { border-bottom: 0; }
.row1, .row2 { display: flex; align-items: center; gap: 8px; }
.row1 .name { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row1 .time { font-size: 12px; color: var(--muted); flex: none; }
.row2 .preview { flex: 1; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item.unread .time { color: var(--accent); font-weight: 600; }
.chat-item.unread .preview { color: var(--text); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
@media (prefers-color-scheme: dark) { .badge { color: #04201d; } }
.acc-tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; flex: none; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 16px; }

/* ---------- chat pane ---------- */
.chat-head { background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 60px; }
.chat-head .avatar { width: 40px; height: 40px; font-size: 14px; }
.chat-head .meta { flex: 1; min-width: 0; }
.chat-head .meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .meta span { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#back-btn { display: none; }
@media (max-width: 820px) { #back-btn { display: grid; } }

#messages { flex: 1; overflow-y: auto; padding: 12px 4% 8px; display: flex; flex-direction: column; gap: 2px; }
.day { align-self: center; font-size: 12px; color: var(--muted); background: var(--panel); padding: 3px 10px; border-radius: 8px; margin: 10px 0 6px; box-shadow: var(--shadow); }
.msg { max-width: min(78%, 560px); align-self: flex-start; background: var(--bubble-in); padding: 6px 9px 4px; border-radius: 10px; box-shadow: var(--shadow); position: relative; word-wrap: break-word; overflow-wrap: anywhere; margin-top: 4px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); }
.msg.cont { margin-top: 1px; }
.msg .txt { white-space: pre-wrap; }
.msg .txt a { color: var(--accent); }
.msg .foot { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); margin-top: 1px; float: right; margin-left: 10px; position: relative; top: 4px; }
.msg .foot .tick { width: 16px; height: 16px; }
.msg .foot .tick.read { color: #0ea5e9; }
.msg .quoted { border-left: 3px solid var(--accent); background: rgba(0,0,0,.04); border-radius: 6px; padding: 4px 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; max-height: 56px; overflow: hidden; }
@media (prefers-color-scheme: dark) { .msg .quoted { background: rgba(255,255,255,.05); } }
.msg.deleted .txt { font-style: italic; color: var(--muted); }
.msg img.media { display: block; max-width: 100%; width: 300px; max-height: 360px; object-fit: cover; border-radius: 8px; margin: -2px -5px 4px; cursor: zoom-in; background: var(--panel-2); min-height: 120px; }
.msg img.sticker { width: 140px; height: 140px; object-fit: contain; background: none; box-shadow: none; }
.msg.sticker-msg { background: none; box-shadow: none; }
.msg video, .msg audio { display: block; max-width: 100%; border-radius: 8px; margin-bottom: 4px; }
.msg video { width: 300px; }
.msg audio { width: 260px; height: 40px; }
.doc { display: flex; align-items: center; gap: 10px; padding: 8px; background: rgba(0,0,0,.04); border-radius: 8px; margin-bottom: 4px; color: inherit; text-decoration: none; min-width: 200px; }
@media (prefers-color-scheme: dark) { .doc { background: rgba(255,255,255,.05); } }
.doc .icon { color: var(--accent); }
.doc span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .reply-btn { position: absolute; top: 4px; right: -36px; opacity: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--muted); transition: opacity .15s; }
.msg.out .reply-btn { right: auto; left: -36px; }
.msg:hover .reply-btn, .msg.show-actions .reply-btn { opacity: 1; }
.msg .reply-btn .icon { width: 16px; height: 16px; }
.load-more { align-self: center; margin: 4px 0 8px; }

.no-chat { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.no-chat .big { width: 64px; height: 64px; border-radius: 20px; background: var(--panel); display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--shadow); color: var(--accent); }

/* composer */
.composer-wrap { background: var(--panel); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + var(--safe-b)); }
.reply-bar, .file-bar { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border-left: 3px solid var(--accent); font-size: 13px; }
.reply-bar span, .file-bar span { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-bar img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.composer { display: flex; align-items: flex-end; gap: 4px; }
#input { flex: 1; resize: none; max-height: 140px; min-height: 42px; border: 1px solid var(--line); border-radius: 21px; padding: 10px 16px; outline: none; background: var(--panel-2); line-height: 1.4; }
#input:focus { border-color: var(--accent); }
#send-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
@media (prefers-color-scheme: dark) { #send-btn { color: #04201d; } }
#send-btn:disabled { opacity: .45; }
.offline-note { text-align: center; font-size: 13px; color: var(--danger); padding: 4px 0 8px; }

/* template popup */
#tpl-pop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); max-height: 300px; overflow-y: auto; padding: 6px; }
.tpl-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; }
.tpl-item:hover, .tpl-item.sel { background: var(--accent-soft); }
.tpl-item b { display: block; font-size: 14px; }
.tpl-item span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 12, 16, .45); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s ease-out; }
.modal { background: var(--panel); border-radius: 16px; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: pop .18s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 600px) {
  .modal-bg { place-items: end stretch; padding: 0; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; max-height: 92dvh; animation: up .22s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--safe-b); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.modal-head { display: flex; align-items: center; padding: 14px 8px 8px 20px; }
.modal-head h3 { flex: 1; margin: 0; font-size: 18px; }
.modal-body { padding: 4px 20px 20px; overflow-y: auto; }
.tabs { display: flex; gap: 4px; padding: 0 20px 8px; border-bottom: 1px solid var(--line); }
.tab { padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); font-size: 14px; }
.tab.active { background: var(--accent-soft); color: var(--accent); }

.acc-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.acc-card .top { display: flex; align-items: center; gap: 10px; }
.acc-card .top .sw { width: 12px; height: 36px; border-radius: 6px; flex: none; }
.acc-card .top .info { flex: 1; min-width: 0; }
.acc-card .top .info b { display: block; }
.acc-card .top .info span { font-size: 13px; color: var(--muted); }
.status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; flex: none; }
.status.open { background: #dcfce7; color: #166534; }
.status.qr, .status.connecting, .status.reconnecting { background: #fef3c7; color: #92400e; }
.status.idle, .status.logged_out { background: #fee2e2; color: #991b1b; }
@media (prefers-color-scheme: dark) {
  .status.open { background: #0f3a22; color: #86efac; }
  .status.qr, .status.connecting, .status.reconnecting { background: #3a2a07; color: #fcd34d; }
  .status.idle, .status.logged_out { background: #3b1111; color: #fca5a5; }
}
.acc-card .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qr-box { margin-top: 12px; text-align: center; padding: 12px; background: var(--panel-2); border-radius: 10px; }
.qr-box img { width: 240px; height: 240px; background: #fff; padding: 8px; border-radius: 10px; }
.qr-box p { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pair-code { font: 700 28px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; margin: 8px 0; user-select: all; }
.pair-row { display: flex; gap: 6px; margin-top: 10px; }
.pair-row .btn { white-space: nowrap; flex: none; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; }
.colors button.sel { border-color: var(--text); }
.tpl-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tpl-row .info { flex: 1; min-width: 0; }
.tpl-row .info span { display: block; color: var(--muted); font-size: 13px; white-space: pre-wrap; max-height: 60px; overflow: hidden; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch-row small { display: block; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }

#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: grid; place-items: center; z-index: 60; }
#lightbox img { max-width: 96vw; max-height: 92dvh; object-fit: contain; }
#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); background: var(--text); color: var(--panel); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 70; box-shadow: var(--shadow); max-width: 90vw; }


/* WA-INBOX-RESPONSIVE-V1 START */
html, body {
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

#app {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

#list-pane, #chat-pane, #chat-view {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#chat-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#messages {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

#messages > * {
  flex-shrink: 0;
}

.topbar, .chips, .search, #banner,
.chat-head, .composer-wrap {
  flex-shrink: 0;
}

.composer, .chat-head .meta,
.reply-bar span, .file-bar span {
  min-width: 0;
}

#input {
  min-width: 0;
  width: 0;
  flex: 1 1 0;
}

.composer .icon-btn, #send-btn, #back-btn {
  flex-shrink: 0;
}

.msg {
  min-width: 0;
  overflow-wrap: anywhere;
}

.msg .txt {
  overflow-wrap: anywhere;
}

.msg img.media, .msg video, .msg audio {
  max-width: 100%;
}

.doc {
  min-width: 0;
  max-width: 100%;
}

.doc span {
  min-width: 0;
}

.modal {
  min-width: 0;
  overflow: hidden;
}

.modal-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

.tabs {
  overflow-x: auto;
  flex-shrink: 0;
}

.tab {
  flex-shrink: 0;
}

.qr-box img {
  max-width: 100%;
  height: auto;
}

.pair-row, .switch-row > div {
  min-width: 0;
}

#login {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 820px) {
  #app {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  #chat-pane {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    pointer-events: none;
  }

  #app.chat-open #chat-pane {
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .topbar, .chat-head {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  #messages {
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  .composer-wrap {
    padding-left: max(6px, env(safe-area-inset-left, 0px));
    padding-right: max(6px, env(safe-area-inset-right, 0px));
  }

  .msg {
    max-width: 86%;
  }

  #input, .field {
    font-size: 16px;
  }

  .msg .reply-btn {
    right: 0;
  }

  .msg.out .reply-btn {
    left: 0;
    right: auto;
  }
}

@media (max-width: 360px) {
  .composer {
    gap: 2px;
  }

  .composer .icon-btn {
    width: 32px;
  }

  #input {
    padding-left: 10px;
    padding-right: 10px;
  }

  .chat-item {
    padding-left: 10px;
    padding-right: 10px;
    gap: 8px;
  }
}
/* WA-INBOX-RESPONSIVE-V1 END */


/* WA-INBOX-PURPLE-BACKGROUND START */
:root {
  color-scheme: dark;
  --bg: #08050f;
  --panel: #151020;
  --panel-2: #241833;
  --line: rgba(199,158,255,.20);
  --text: #f5efff;
  --muted: #c2b3d2;
  --accent: #bc83ff;
  --accent-soft: rgba(155,76,255,.24);
  --bubble-in: rgba(28,19,43,.94);
  --bubble-out: rgba(82,35,119,.95);
  --chat-bg: transparent;
}

body {
  background: #08050f;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(5,2,12,.35), rgba(5,2,12,.55)),
    url('/background.jpg') center / cover no-repeat;
}

#app, #login, #chat-view, #messages, .no-chat {
  background: transparent;
}

#list-pane {
  background: rgba(12,8,21,.70);
}

#chat-pane {
  background: rgba(9,5,17,.25);
}

.topbar, .chat-head, .composer-wrap {
  background: rgba(15,9,26,.90);
}

.login-card, .modal {
  background: rgba(17,10,29,.94);
  color: var(--text);
  border: 1px solid var(--line);
}

.modal-bg {
  background: rgba(4,1,9,.55);
}

.field, #input {
  background: rgba(23,14,38,.94);
  color: var(--text);
  border-color: var(--line);
}

.field::placeholder, #input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.chip, .day, #tpl-pop, .reply-bar, .file-bar, .qr-box {
  background: rgba(25,15,41,.94);
  color: var(--text);
}

.chip.active {
  background: #b780f2;
  color: #160921;
}

.chat-item:hover {
  background: rgba(160,94,242,.12);
}

.chat-item.active {
  background: rgba(144,66,228,.28);
}

.msg {
  background: var(--bubble-in);
  color: var(--text);
}

.msg.out {
  background: var(--bubble-out);
}

.msg.sticker-msg {
  background: transparent;
}

.msg .quoted, .doc {
  background: rgba(255,255,255,.07);
}

.btn, #send-btn {
  color: #160921;
}

.btn.ghost {
  background: rgba(47,29,67,.94);
  color: var(--text);
}

.btn.danger {
  background: transparent;
  color: var(--danger);
}

#toast {
  background: #eee0ff;
  color: #1a0c29;
}
/* WA-INBOX-PURPLE-BACKGROUND END */


/* WA-INBOX-MOBILE-CHAT-LAYER START */
@media (max-width: 820px) {
  #app.chat-open #list-pane {
    visibility: hidden;
    pointer-events: none;
  }

  #app.chat-open #chat-pane {
    visibility: visible;
    pointer-events: auto;
  }
}
/* WA-INBOX-MOBILE-CHAT-LAYER END */
