:root {
  --navy: #0b3d91;
  --blue: #1e66d0;
  --blue-50: #eef4fd;
  --blue-100: #dbe7fa;
  --ink: #16243a;
  --ink-2: #4a5b75;
  --ink-3: #8592a6;
  --line: #e3e9f3;
  --bg: #f3f6fb;
  --card: #ffffff;
  --ok: #138a52;
  --ok-bg: #e6f6ee;
  --warn: #a86400;
  --warn-bg: #fff4de;
  --bad: #c22f2f;
  --bad-bg: #fdeaea;
  --note: #fff8db;
  --note-line: #f0d97a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 36, 70, .06), 0 4px 14px rgba(16, 36, 70, .05);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); line-height: 1.5; font-size: 15px; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .6rem; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 1rem 0 .4rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.pre { white-space: pre-wrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }
.wrap--wide { max-width: 1280px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 10px 18px;
  background: var(--navy); color: #fff; box-shadow: 0 2px 10px rgba(11, 61, 145, .25); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); }
.brand em { font-style: normal; opacity: .75; font-weight: 400; }
.topnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.topnav a { color: rgba(255,255,255,.82); padding: 7px 12px; border-radius: 8px; font-weight: 500; font-size: .92rem; white-space: nowrap; }
.topnav a:hover { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.topnav a.on { background: rgba(255,255,255,.16); color: #fff; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 700; }
.usermenu__panel { position: absolute; right: 0; top: 44px; background: #fff; color: var(--ink); min-width: 220px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16,36,70,.18); padding: 8px; display: grid; }
.usermenu__panel a, .usermenu__panel button { display: block; text-align: left; padding: 9px 10px; border-radius: 6px; color: var(--ink);
  background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--blue-50); text-decoration: none; }
.usermenu__who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.usermenu__who small { color: var(--ink-3); }
.public-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.public-head .brand { color: var(--navy); }
.foot { text-align: center; color: var(--ink-3); font-size: .82rem; padding: 18px 16px 28px; }
.back { display: inline-block; margin-bottom: 12px; font-size: .9rem; color: var(--ink-2); }

/* ---------- Componentes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.narrow { max-width: 460px; margin: 30px auto; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row--center { justify-content: center; }
.grid2, .grid3 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }

label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=month], input:not([type]), select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid #cfd9e8; border-radius: 9px;
  padding: 11px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,102,208,.16); }
textarea { resize: vertical; min-height: 90px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; border-radius: 9px;
  padding: 10px 18px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .05s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #1757b5; }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--blue-100); }
.btn--ghost:hover { background: var(--blue-50); }
.btn--lg { padding: 13px 22px; font-size: 1.02rem; }
.btn--sm { padding: 7px 12px; font-size: .88rem; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 4px 6px; }
.linkbtn:hover { text-decoration: underline; }

.alert { padding: 12px 14px; border-radius: 9px; font-size: .92rem; }
.alert--error { background: var(--bad-bg); color: var(--bad); }
.alert--ok { background: var(--ok-bg); color: var(--ok); }
.alert--info { background: var(--blue-50); color: #1c4c97; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge--xs { padding: 1px 7px; font-size: .7rem; }
.badge--aberto { background: var(--blue-100); color: #134a9c; }
.badge--em_atendimento { background: #e9e3fb; color: #5130a8; }
.badge--aguardando_cliente { background: var(--warn-bg); color: var(--warn); }
.badge--desenvolvimento { background: #e3f4f8; color: #0b6b82; }
.sla--dev { background: #e3f4f8; color: #0b6b82; }
.badge--resolvido { background: var(--ok-bg); color: var(--ok); }
.badge--fechado { background: #edf0f4; color: #5b6778; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: #edf0f4; color: var(--ink-2); margin-left: 4px; }
.tag--client { background: var(--warn-bg); color: var(--warn); }
.tag--team { background: var(--blue-100); color: #134a9c; }
.tag--internal { background: var(--note-line); color: #6b5300; }
.chip { display: inline-block; background: var(--blue-50); color: #1c4c97; border-radius: 6px; padding: 2px 8px; font-size: .78rem; margin: 0 4px 4px 0; }
.prio { font-size: .8rem; font-weight: 600; }
.prio--urgente { color: var(--bad); }
.prio--alta { color: var(--warn); }
.prio--normal { color: var(--ink-2); }
.prio--baixa { color: var(--ink-3); }
.sla { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.sla--ok { background: var(--blue-50); color: #1c4c97; }
.sla--alerta { background: var(--warn-bg); color: var(--warn); }
.sla--estourado { background: var(--bad); color: #fff; }
.sla--estourado_respondido { background: var(--bad-bg); color: var(--bad); }
.sla--cumprido { background: var(--ok-bg); color: var(--ok); }

/* ---------- Login ---------- */
body.auth { background: linear-gradient(160deg, #0b3d91 0%, #1e66d0 55%, #f3f6fb 55.1%); }
.auth-card { max-width: 420px; margin: 7vh auto 0; background: #fff; border-radius: 16px; padding: 30px 28px; box-shadow: 0 20px 50px rgba(11, 61, 145, .22); }
.auth-card__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.auth-card__brand img { border-radius: 10px; }
.auth-card__brand div { display: grid; line-height: 1.2; }
.auth-card__brand span { color: var(--ink-3); font-size: .88rem; }
.auth-card__help { margin: 18px 0 0; text-align: center; font-size: .9rem; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Cliente ---------- */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.hero h1 { margin: 0; }
.hero p { margin: 0; }
.hero--search { display: block; text-align: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 34px 20px; border-radius: 16px; margin-bottom: 22px; }
.hero--search h1 { margin-bottom: 16px; }
.search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.search--sm { margin: 0; max-width: 320px; flex: 1; }
.search--sm input { padding: 8px 12px; }
.status-line { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .88rem; color: var(--ink-2); }
.status-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status-line--on .dot { background: #1fb36b; box-shadow: 0 0 0 4px rgba(31,179,107,.18); }
.section-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 26px 0 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.count { background: #e4eaf3; color: var(--ink-2); border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.closed summary { list-style: none; }
.closed summary::-webkit-details-marker { display: none; }
.closed summary::after { content: "▸"; }
.closed[open] summary::after { content: "▾"; }
.ticket-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 14px 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ticket-row:hover { text-decoration: none; border-color: var(--blue-100); box-shadow: var(--shadow); }
.ticket-row--attention { border-left: 4px solid #f0a020; }
.ticket-row--closed { opacity: .78; }
.ticket-row__main { display: grid; gap: 2px; min-width: 0; }
.ticket-row__main strong { overflow-wrap: anywhere; }
.ticket-row__id { font-size: .76rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.empty { text-align: center; padding: 34px 16px; background: #fff; border: 1.5px dashed #d4ddeb; border-radius: var(--radius); color: var(--ink-2); }

.impact { display: grid; gap: 8px; }
.impact__opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid #cfd9e8; border-radius: 10px; padding: 11px 13px; cursor: pointer; font-weight: 500; }
.impact__opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.impact__opt--parado:has(input:checked) { border-color: var(--bad); background: var(--bad-bg); }
.kb-suggest { background: var(--blue-50); border-radius: 10px; padding: 12px 14px; margin-top: -4px; }
.kb-suggest ul { margin: 0; padding-left: 18px; }
.dropzone { border: 1.5px dashed #b9c8de; border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; background: #fafcff; font-weight: 400; }
.dropzone:hover { border-color: var(--blue); }
.dropzone input { display: none; }
.dropzone span { display: grid; gap: 2px; }
.dropzone small { color: var(--ink-3); }
.dropzone__list { list-style: none; padding: 0; margin: 6px 0 0; font-size: .82rem; text-align: left; color: var(--ink-2); }
.dropzone__list .too-big { color: var(--bad); }

/* ---------- Conversa ---------- */
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.ticket-head h1 { margin: 2px 0 4px; }
.ticket-head__badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 86%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 1px 2px rgba(16,36,70,.04); }
.msg--theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--mine { align-self: flex-end; background: var(--blue-50); border-color: var(--blue-100); border-bottom-right-radius: 4px; }
.msg--internal { align-self: stretch; max-width: none; background: var(--note); border: 1px dashed var(--note-line); }
.msg--system { align-self: center; background: none; border: 0; box-shadow: none; padding: 0; text-align: center; }
.msg--system span { font-size: .76rem; color: var(--ink-3); background: #e9eef6; border-radius: 999px; padding: 3px 10px; display: inline-block; }
.msg__meta { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: .8rem; margin-bottom: 4px; }
.msg__meta time { color: var(--ink-3); margin-left: auto; font-size: .74rem; }
.msg__body { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumb img { display: block; max-width: 220px; max-height: 160px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.file { background: #f3f6fb; padding: 6px 10px; border-radius: 7px; font-size: .85rem; }
.composer { position: sticky; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: 0 -4px 18px rgba(16,36,70,.08); display: grid; gap: 10px; margin-bottom: 12px; }
.composer textarea { min-height: 70px; }
.composer__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.composer__bar .dropzone__list { flex: 1; margin: 0; }
.composer__bar .btn--primary { margin-left: auto; }
.composer__mode { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.composer__mode label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.composer__mode select { width: auto; margin-left: auto; padding: 6px 10px; font-size: .85rem; }
.composer--internal { background: var(--note); border-color: var(--note-line); }
.attach { position: relative; }
.rate { text-align: center; }
.stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; }
.stars button { font-size: 2rem; color: #f0b429; background: none; border: 0; cursor: pointer; transition: transform .1s; }
.stars button:hover { transform: scale(1.2); }

/* ---------- Painel ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); display: grid; box-shadow: var(--shadow); }
.kpi:hover { text-decoration: none; border-color: var(--blue-100); }
.kpi span { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.kpi small { color: var(--ink-2); font-size: .8rem; }
.kpi--warn span { color: var(--warn); }
.kpi--bad { background: var(--bad-bg); border-color: #f3c3c3; }
.kpi--bad span { color: var(--bad); }
.kpi--good span { color: var(--ok); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar h1 { margin: 0 auto 0 0; }
.tabs { display: flex; gap: 2px; background: #e4eaf3; padding: 3px; border-radius: 10px; overflow-x: auto; }
.tabs a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .88rem; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,36,70,.1); }
.toolbar .tabs { margin-right: auto; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.queue { width: 100%; border-collapse: collapse; font-size: .9rem; }
.queue th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.queue td { padding: 11px 12px; border-bottom: 1px solid #eef2f8; vertical-align: middle; }
.queue tbody tr:last-child td { border-bottom: 0; }
.queue tr[data-href] { cursor: pointer; }
.queue tbody tr:hover { background: #f8faff; }
.queue .row--waiting { background: #fffbf1; }
.queue .row--off { opacity: .5; }
.queue__subject { display: grid; color: var(--ink); }
.queue__subject span { color: var(--ink-2); font-size: .86rem; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .queue th { background: none; }
.actions { display: flex; gap: 2px; justify-content: flex-end; }
.ticket-layout { display: grid; gap: 18px; }
@media (min-width: 980px) { .ticket-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .ticket-layout__side { position: sticky; top: 70px; } }
.side { padding: 18px; }
.side h3 { margin-bottom: 4px; }
.inline-form label { font-size: .8rem; color: var(--ink-2); margin-bottom: 10px; }
.inline-form select { padding: 8px 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .84rem; margin: 6px 0 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; text-align: right; }
.contacts, .mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .85rem; }
.mini-list li { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.mini-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.mini-list .badge { flex: none; }
.add-user { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.canned { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f8; }
.canned:last-child { border-bottom: 0; }

/* ---------- Ajuda ---------- */
.kb-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.kb-grid__title { grid-column: 1 / -1; }
.kb-card { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; color: var(--ink); }
.kb-card:hover { text-decoration: none; border-color: var(--blue-100); box-shadow: var(--shadow); }
.article h1 { font-size: 1.6rem; margin-top: 4px; }
.prose { font-size: 1rem; line-height: 1.65; }
.prose h2 { margin-top: 1.4em; }
.prose img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.prose code { background: #f0f3f8; padding: 1px 5px; border-radius: 4px; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }

@media (max-width: 640px) {
  .topbar { gap: 10px; padding: 8px 12px; }
  .brand span { display: none; }
  .msg { max-width: 94%; }
  .ticket-head { flex-direction: column; }
  .hero .btn { width: 100%; }
  .queue th:nth-child(3), .queue td:nth-child(3), .queue th:nth-child(8), .queue td:nth-child(8) { display: none; }
  .card { padding: 18px 16px; }
}

/* =====================================================================
   Conversa estilo WhatsApp (cliente e equipe)
   ===================================================================== */
body.chat-page { background: #dfe7f3; }
body.chat-page main.wrap { max-width: none; padding: 0; display: flex; flex-direction: column; }
body.chat-page .foot { display: none; }
.wa { display: flex; flex-direction: column; height: 100dvh; max-width: 900px; width: 100%; margin: 0 auto; background: #eef3fa;
  box-shadow: 0 0 40px rgba(11, 61, 145, .12); }
@media (min-width: 920px) { .wa { height: calc(100dvh - 40px); margin: 20px auto; border-radius: 16px; overflow: hidden; } }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--navy); color: #fff; flex: none; min-height: 60px; }
.wa-head a { color: inherit; }
.wa-head__logo { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.6); flex: none; }
.wa-head__title { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.wa-head__title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head__title small { opacity: .8; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head__title small.online::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ee08b; margin-right: 6px; vertical-align: 1px; }
.wa-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: inherit;
  font-size: 1.15rem; cursor: pointer; text-decoration: none !important; flex: none; }
.wa-icon:hover { background: rgba(255,255,255,.12); }
.wa-push-tip { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fff8db; font-size: .88rem; flex: none; }
.wa-body { flex: 1; overflow-y: auto; padding: 14px 12px 10px; overscroll-behavior: contain;
  background-color: #eef3fa;
  background-image: radial-gradient(rgba(11,61,145,.06) 1px, transparent 1px); background-size: 18px 18px; }
.wa-thread { display: flex; flex-direction: column; gap: 4px; max-width: 760px; margin: 0 auto; }
.wa-day { align-self: center; margin: 10px 0 6px; }
.wa-day span { background: #fff; color: var(--ink-2); font-size: .74rem; font-weight: 600; padding: 4px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.wa-sys { align-self: center; text-align: center; margin: 4px 0; max-width: 90%; }
.wa-sys span { display: inline-block; background: #fffbe6; color: #6b5a12; font-size: .76rem; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.wa-msg { position: relative; max-width: min(78%, 560px); padding: 6px 9px 18px; border-radius: 10px; font-size: .95rem; line-height: 1.4;
  box-shadow: 0 1px 1.5px rgba(16, 36, 70, .13); margin: 2px 0; min-width: 84px; word-wrap: break-word; overflow-wrap: anywhere; }
.wa-msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.wa-msg--out { align-self: flex-end; background: #d3e4fd; border-top-right-radius: 3px; }
.wa-msg--bot { background: #f2f7ff; border: 1px solid #d6e4fb; }
.wa-msg--note { align-self: stretch; max-width: none; background: #fff6cc; border: 1px dashed #e7cd5d; }
.wa-msg__name { font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wa-msg--bot .wa-msg__name { color: var(--navy); }
.wa-msg__name--mine { justify-content: flex-end; color: #2b5aa8; }
.wa-alias { font-weight: 500; color: var(--ink-3); font-size: .72rem; }
.wa-msg__body { white-space: pre-wrap; }
.wa-msg__time { position: absolute; right: 8px; bottom: 3px; font-size: .68rem; color: #7a8699; white-space: nowrap; }
.wa-check { color: #3a8fe8; letter-spacing: -2px; margin-left: 2px; }
.wa-files { display: grid; gap: 6px; margin-top: 4px; }
.wa-img img { display: block; max-width: 100%; max-height: 280px; border-radius: 7px; }
.wa-files audio { width: 260px; max-width: 100%; height: 40px; }
.wa-files video { max-width: 100%; max-height: 300px; border-radius: 7px; }
.wa-file { display: block; background: rgba(11,61,145,.06); padding: 8px 10px; border-radius: 7px; font-size: .88rem; }
.wa-rate { align-self: flex-start; background: #fff; border-radius: 10px; padding: 8px 12px; margin: 2px 0 8px; box-shadow: 0 1px 1.5px rgba(16,36,70,.13); font-size: .88rem; display: grid; gap: 2px; }
.wa-rate button { font-size: 1.7rem; line-height: 1; color: #f0b429; background: none; border: 0; cursor: pointer; padding: 0 3px; transition: transform .1s; }
.wa-rate button:hover { transform: scale(1.2); }
.wa-compose { flex: none; background: #f6f8fc; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #dfe6f1; }
.wa-compose--note { background: #fff8d9; }
.wa-compose--sending { opacity: .7; }
.wa-compose__bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 0 4px 6px; }
.wa-compose__bar select { width: auto; padding: 5px 8px; font-size: .82rem; }
.wa-compose__files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.wa-compose__files:not(:empty) { padding-bottom: 6px; }
.wa-chip { background: #e4ecf8; border-radius: 6px; padding: 3px 8px; font-size: .78rem; }
.wa-chip--bad { background: var(--bad-bg); color: var(--bad); }
.wa-compose__row { display: flex; align-items: flex-end; gap: 8px; }
.wa-compose__row textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; border-radius: 22px; padding: 11px 16px; border: 0;
  box-shadow: 0 1px 2px rgba(16,36,70,.1); font-size: .98rem; line-height: 1.35; }
.wa-attach { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); cursor: pointer; flex: none; }
.wa-attach:hover { background: #e4ecf8; }
.wa-send { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; flex: none;
  box-shadow: 0 2px 6px rgba(30,102,208,.35); }
.wa-send:hover { background: #1757b5; }
.wa-send--rec { background: var(--bad); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(194,47,47,.15); } }
.wa-rec { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; background: #fff; border-radius: 22px; font-variant-numeric: tabular-nums; }
.wa-rec__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite; }
.wa-rec__cancel { margin-left: auto; background: none; border: 0; color: var(--bad); font: inherit; cursor: pointer; }
.wa-readonly { flex: none; padding: 12px 14px; background: #f6f8fc; border-top: 1px solid #dfe6f1; text-align: center; color: var(--ink-2); font-size: .9rem; }
.wa-body--list { padding: 0; background: #fff; }
.wa-list { list-style: none; margin: 0; padding: 0; }
.wa-list a { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eef2f8; color: var(--ink); }
.wa-list a:hover { background: #f6f9ff; text-decoration: none; }
.wa-list__main { display: grid; gap: 2px; min-width: 0; }
.wa-list__main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-list__main small, .wa-list__side small { color: var(--ink-3); }
.wa-list__side { display: grid; justify-items: end; gap: 4px; flex: none; }
.stars-sm { color: #f0b429 !important; }
.wa-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #5b8def, var(--navy)); color: #fff; font-weight: 700; flex: none; }

/* Primeiro acesso */
.start { min-height: 100dvh; display: grid; place-items: center; align-content: center; padding: 24px 16px;
  background: linear-gradient(165deg, #0b3d91 0%, #1e66d0 48%, #dfe7f3 48.2%); }
.start__card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 28px 24px 20px; box-shadow: 0 24px 60px rgba(11,61,145,.25); text-align: center; }
.start__card form { text-align: left; }
.start__logo { border-radius: 50%; margin: -64px auto 8px; display: block; box-shadow: 0 0 0 5px #fff, 0 8px 20px rgba(0,0,0,.15); }
.start__card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.start__intro { color: var(--ink-2); margin-bottom: 18px; }
.start__status { margin: 16px 0 0; font-size: .82rem; color: var(--ink-3); display: flex; justify-content: center; align-items: center; gap: 7px; }
.start__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.start__status.on .dot { background: #1fb36b; box-shadow: 0 0 0 4px rgba(31,179,107,.18); }
.start__foot { margin-top: 18px; font-size: .78rem; color: var(--ink-2); text-align: center; }
.start .btn--primary { margin-top: 4px; }

/* =====================================================================
   Caixa de entrada da equipe (WhatsApp Web)
   ===================================================================== */
body.inbox-page main.wrap { max-width: none; padding: 0; }
body.inbox-page .foot { display: none; }
.inbox { display: grid; grid-template-columns: 370px 1fr; height: calc(100dvh - 54px); background: #fff; }
.inbox__list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.inbox__tools { padding: 10px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); background: #f8fafd; }
.inbox__tools input { padding: 8px 12px; }
.tabs--block { display: grid; grid-template-columns: repeat(3, 1fr); }
.tabs--block a { text-align: center; }
.convs { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.convs__empty { padding: 30px 16px; text-align: center; color: var(--ink-3); }
.conv { display: flex; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #f0f3f8; color: var(--ink); align-items: center; }
.conv:hover { background: #f5f8fd; text-decoration: none; }
.conv--on { background: #e8f0fc !important; }
.conv__main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.conv__top { display: flex; justify-content: space-between; gap: 8px; }
.conv__top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__top time { font-size: .72rem; color: var(--ink-3); flex: none; }
.conv__company { font-size: .76rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__company em { font-style: normal; }
.conv__last { font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv--unread .conv__last { color: var(--ink); font-weight: 600; }
.conv__side { display: grid; justify-items: end; gap: 5px; flex: none; }
.conv__side .sla { font-size: .68rem; padding: 2px 6px; }
.conv__dot { width: 11px; height: 11px; border-radius: 50%; background: #1fb36b; }
.inbox__pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #eef3fa; }
.inbox__placeholder { margin: auto; text-align: center; padding: 30px; }
.inbox__placeholder img { border-radius: 50%; opacity: .9; margin-bottom: 10px; }
.wa-head--staff { gap: 10px; }
.wa-head--staff .wa-head__title small a { color: #cfe0ff; }
.wa-head--staff .sla { flex: none; }
.btn--danger { background: #fff; color: var(--bad); border-color: #f3c3c3; }
.btn--danger:hover { background: var(--bad-bg); }
.inbox__back { display: none; }
.conv-layout { flex: 1; display: flex; min-height: 0; }
.conv-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.conv-info { width: 290px; flex: none; border-left: 1px solid var(--line); background: #fff; padding: 14px 16px; overflow-y: auto; }
.conv-info label { margin-bottom: 10px; color: var(--ink-2); }
.conv-info select { padding: 7px 9px; }
.conv-info h4:first-child { margin-top: 0; }
.wa-thread--page { max-width: none; background: #eef3fa; padding: 14px; border-radius: 12px; }
@media (max-width: 860px) {
  .inbox { grid-template-columns: 1fr; height: calc(100dvh - 50px); }
  .inbox__pane { display: none; }
  .inbox--chat .inbox__list { display: none; }
  .inbox--chat .inbox__pane { display: flex; }
  .inbox__back { display: grid; }
  .conv-info { position: absolute; right: 0; top: 110px; bottom: 0; box-shadow: -8px 0 24px rgba(0,0,0,.12); z-index: 5; }
  .wa-head--staff .sla { display: none; }
}

.dev-form { flex: none; display: grid; gap: 8px; padding: 12px 14px; background: #e9f6fa; border-bottom: 1px solid #c7e6ef; }
.dev-form .row input { flex: 1; min-width: 160px; }
.dev-form textarea { min-height: 70px; font-size: .9rem; }
.btn--dev { background: #fff; color: #0b6b82; border-color: #bfe1ea; }
.btn--dev:hover { background: #e3f4f8; }
.tabs--block { grid-template-columns: repeat(4, 1fr); }
.tabs--block a { padding: 6px 4px; font-size: .82rem; }
.tabs .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 9px; background: #d6deea; color: var(--ink-2); font-size: .7rem; font-weight: 700; }
.tabs .n--dev { background: #c7e6ef; color: #0b6b82; }

/* Câmera só em celular/tablet */
.wa-attach--cam { display: none; }
@media (pointer: coarse) { .wa-attach--cam { display: grid; } .wa-attach { width: 40px; } }

.attend { display: grid; gap: 8px; background: var(--blue-50); border-radius: 10px; padding: 12px 14px; }
.attend legend { float: left; width: 100%; margin-bottom: 4px; }
.attend .check { align-items: flex-start; }
.attend .check input { margin-top: 4px; }

.select-sm { padding: 5px 8px; font-size: .82rem; width: auto; }

/* =====================================================================
   Modo escuro (botão 🌙/☀️; escolha salva no aparelho)
   ===================================================================== */
.theme-ico::before { content: "🌙"; }
[data-theme="dark"] .theme-ico::before { content: "☀️"; }
.theme-btn { background: none; border: 0; color: inherit; font-size: 1.05rem; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.theme-btn:hover { background: rgba(255,255,255,.12); }
.usermenu__panel .theme-row { display: flex; justify-content: space-between; align-items: center; }

[data-theme="dark"] {
  color-scheme: dark;
  --navy: #0d2b63;
  --blue: #4c8dff;
  --blue-50: #16243f;
  --blue-100: #1f3560;
  --ink: #e6edf7;
  --ink-2: #a9b6c9;
  --ink-3: #7d8ba2;
  --line: #243149;
  --bg: #0b1220;
  --card: #131c2e;
  --ok: #45c98a; --ok-bg: #12301f;
  --warn: #f0b050; --warn-bg: #33270f;
  --bad: #ff6b6b; --bad-bg: #3a1618;
  --note: #2c2812; --note-line: #6d5d1e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.25);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .topbar { background: #0f1a2e; box-shadow: 0 1px 0 var(--line); }
[data-theme="dark"] .usermenu__panel { background: var(--card); color: var(--ink); }
[data-theme="dark"] .usermenu__panel a, [data-theme="dark"] .usermenu__panel button { color: var(--ink); }
[data-theme="dark"] .avatar { background: #1f3560; color: #fff; }
[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=file]), [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: #0f1828; color: var(--ink); border-color: #2c3a55; }
[data-theme="dark"] .btn--ghost, [data-theme="dark"] .btn--danger, [data-theme="dark"] .btn--dev { background: transparent; }
[data-theme="dark"] .btn--ghost { border-color: #2c4670; color: #8fb4ff; }
[data-theme="dark"] .btn--primary:hover { background: #3a7af0; }
[data-theme="dark"] .card, [data-theme="dark"] .kpi, [data-theme="dark"] .table-wrap, [data-theme="dark"] .ticket-row,
[data-theme="dark"] .kb-card, [data-theme="dark"] .status-line, [data-theme="dark"] .empty, [data-theme="dark"] .composer,
[data-theme="dark"] .msg, [data-theme="dark"] .side { background: var(--card); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .queue th { background: #101a2b; }
[data-theme="dark"] .queue td { border-color: #1c2840; }
[data-theme="dark"] .queue tbody tr:hover { background: #17233a; }
[data-theme="dark"] .queue .row--waiting { background: #2a2410; }
[data-theme="dark"] .tabs { background: #18233a; }
[data-theme="dark"] .tabs a.on { background: #26365a; color: var(--ink); }
[data-theme="dark"] .tabs .n { background: #26365a; color: var(--ink-2); }
[data-theme="dark"] .count, [data-theme="dark"] .tag { background: #22304a; color: var(--ink-2); }
[data-theme="dark"] .badge--aberto { background: #1f3560; color: #9cc0ff; }
[data-theme="dark"] .badge--em_atendimento { background: #2d2550; color: #c3b3ff; }
[data-theme="dark"] .badge--fechado { background: #22304a; color: var(--ink-2); }
[data-theme="dark"] .badge--desenvolvimento, [data-theme="dark"] .sla--dev { background: #10343e; color: #7fd3e6; }
[data-theme="dark"] .sla--ok { background: #1f3560; color: #9cc0ff; }
[data-theme="dark"] .alert--info { background: #16243f; color: #a9c6ff; }
[data-theme="dark"] .attend { background: #16243f; }
[data-theme="dark"] .divider::before, [data-theme="dark"] .divider::after { background: var(--line); }
[data-theme="dark"] .prose code { background: #1c2840; }
[data-theme="dark"] .hero--search { background: linear-gradient(135deg, #0f1a2e, #1d3b7a); }
[data-theme="dark"] body.auth { background: linear-gradient(160deg, #0f1a2e 0%, #1d3b7a 55%, #0b1220 55.1%); }
[data-theme="dark"] .auth-card { background: var(--card); box-shadow: 0 20px 50px rgba(0,0,0,.5); }

/* Conversa */
[data-theme="dark"] body.chat-page { background: #070d18; }
[data-theme="dark"] .wa { background: #0f1828; box-shadow: 0 0 40px rgba(0,0,0,.5); }
[data-theme="dark"] .wa-head { background: #0f1a2e; border-bottom: 1px solid var(--line); }
[data-theme="dark"] .wa-body, [data-theme="dark"] .inbox__pane { background-color: #0b1322; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); }
[data-theme="dark"] .wa-msg--in { background: #1a2538; color: var(--ink); }
[data-theme="dark"] .wa-msg--out { background: #1e3a6e; color: #eef4ff; }
[data-theme="dark"] .wa-msg--bot { background: #162238; border-color: #26385a; }
[data-theme="dark"] .wa-msg--note { background: #2c2812; border-color: #6d5d1e; }
[data-theme="dark"] .wa-msg__name { color: #8fb4ff; }
[data-theme="dark"] .wa-msg--bot .wa-msg__name { color: #b9cdf5; }
[data-theme="dark"] .wa-msg__time { color: #8c99ae; }
[data-theme="dark"] .wa-day span { background: #1a2538; color: var(--ink-2); }
[data-theme="dark"] .wa-sys span { background: #2a2614; color: #e6d28a; }
[data-theme="dark"] .wa-rate { background: #1a2538; }
[data-theme="dark"] .wa-file { background: rgba(255,255,255,.06); }
[data-theme="dark"] .wa-compose, [data-theme="dark"] .wa-readonly { background: #0f1a2e; border-color: var(--line); }
[data-theme="dark"] .wa-compose--note { background: #2a2512; }
[data-theme="dark"] .wa-compose__row textarea, [data-theme="dark"] .wa-rec { background: #1a2538; color: var(--ink); }
[data-theme="dark"] .wa-attach { color: var(--ink-2); }
[data-theme="dark"] .wa-attach:hover { background: #1a2538; }
[data-theme="dark"] .wa-chip { background: #1f3560; }
[data-theme="dark"] .wa-push-tip { background: #2a2614; color: #e6d28a; }
[data-theme="dark"] .wa-body--list, [data-theme="dark"] .wa-list a { background: var(--card); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .wa-list a:hover { background: #17233a; }
[data-theme="dark"] .dev-form { background: #0f2a33; border-color: #1d4a57; }

/* Primeiro acesso */
[data-theme="dark"] .start { background: linear-gradient(165deg, #0f1a2e 0%, #1d3b7a 48%, #070d18 48.2%); }
[data-theme="dark"] .start__card { background: var(--card); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
[data-theme="dark"] .start__logo { box-shadow: 0 0 0 5px var(--card), 0 8px 20px rgba(0,0,0,.4); }

/* Caixa de entrada */
[data-theme="dark"] .inbox { background: var(--card); }
[data-theme="dark"] .inbox__tools { background: #101a2b; border-color: var(--line); }
[data-theme="dark"] .inbox__list, [data-theme="dark"] .conv-info { border-color: var(--line); background: var(--card); }
[data-theme="dark"] .conv { color: var(--ink); border-color: #1c2840; }
[data-theme="dark"] .conv:hover { background: #17233a; }
[data-theme="dark"] .conv--on { background: #1f3560 !important; }
[data-theme="dark"] .wa-head--staff .wa-head__title small a { color: #9cc0ff; }
.mini-list li { min-width: 0; overflow: hidden; }
.side, .ticket-layout__side .card { overflow: hidden; }
.stack > .btn:not(.btn--block) { justify-self: start; }

.wa-dictate { border: 0; background: none; }
.wa-dictate--on { color: #fff !important; background: var(--bad) !important; animation: pulse 1.2s infinite; }

.tag--reopen { background: #fde8d8; color: #a2470f; }
[data-theme="dark"] .tag--reopen { background: #3a2212; color: #ffb37a; }
.reopen-form { background: #eef4fd; border-color: var(--blue-100); }
[data-theme="dark"] .reopen-form { background: #16243f; border-color: #1f3560; }

.wa-chip { display: inline-flex; align-items: center; gap: 6px; }
.wa-chip__thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; }
.wa-chip__x { border: 0; background: none; color: var(--ink-2); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.wa-drop { outline: 3px dashed var(--blue); outline-offset: -8px; }

.tabs--block { grid-template-columns: repeat(5, auto); }
.badge--aguardando_terceiro, .sla--terceiro { background: #f3e8fd; color: #7a3fb0; }
[data-theme="dark"] .badge--aguardando_terceiro, [data-theme="dark"] .sla--terceiro { background: #2c1c3d; color: #d6b4ff; }
.tabs .n--wait { background: #ead9fb; color: #7a3fb0; }
.btn--wait { background: #fff; color: #7a3fb0; border-color: #e2cdf7; }
.btn--wait:hover { background: #f6effd; }
[data-theme="dark"] .btn--wait { background: transparent; color: #d6b4ff; border-color: #4b3366; }
.wait-form { background: #f7f0fe; border-color: #e6d4f8; }
[data-theme="dark"] .wait-form { background: #22172f; border-color: #3d2a55; }
.tabs--block a { padding: 6px 2px; font-size: .78rem; }

/* Escolha de chamado (cliente) */
.wa-pick { flex: none; background: #f6f8fc; border-top: 1px solid #dfe6f1; padding: 10px 12px; display: grid; gap: 8px; max-height: 45vh; overflow-y: auto; }
.wa-pick__head { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.wa-pick__item { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; background: #fff; border: 1.5px solid #dbe5f3; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.wa-pick__item:hover { border-color: var(--blue); }
.wa-pick__item span:last-child { display: grid; gap: 1px; min-width: 0; }
.wa-pick__item small { color: var(--ink-3); font-size: .78rem; }
.wa-pick__item em { font-style: normal; color: var(--blue); font-size: .85rem; font-weight: 600; margin-top: 2px; }
.wa-pick__item--new { border-style: dashed; }
.wa-pick__ico { font-size: 1.2rem; line-height: 1.4; }
.wa-target { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px 6px; font-size: .8rem; color: var(--ink-2); }
.wa-compose__row textarea:disabled { opacity: .6; }
[data-theme="dark"] .wa-pick { background: #0f1a2e; border-color: var(--line); }
[data-theme="dark"] .wa-pick__item { background: #1a2538; border-color: #2c3a55; color: var(--ink); }
[data-theme="dark"] .wa-pick__item em { color: #8fb4ff; }

.demo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #f59e0b; color: #1f1300; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; }
body.is-demo { padding-top: 22px; }
body.is-demo .topbar { top: 22px; }
body.is-demo .wa { height: calc(100dvh - 22px); }
body.is-demo .inbox { height: calc(100dvh - 76px); }
@media (min-width: 920px) { body.is-demo .wa { height: calc(100dvh - 62px); } }
.demo-bar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 22px; line-height: 16px; }
@media (max-width: 640px) { .demo-bar .demo-bar__more { display: none; } }
