:root {
  --bg: #0e1621; --panel: #17212b; --panel2: #202b36; --panel3: #121b25;
  --line: #101a24; --text: #f1f5f9; --muted: #8696a0; --accent: #5288c1; --accent2: #6ab3f3; --ok: #22c55e;
  --out: #2b5278; --in: #182533; --hover: #202b36; --sel: #243447;
  --danger: #ef4444; --warn: #f59e0b;
  --wall: #0e1621; --wallDots: rgba(255,255,255,.02);
  --shadow: 0 6px 24px rgba(0,0,0,.45);
}
:root[data-theme="light"] {
  --bg: #f0f2f5; --panel: #ffffff; --panel2: #f0f2f5; --panel3: #f7f8fa;
  --line: #e9edef; --text: #111b21; --muted: #667781; --accent: #00a884; --accent2: #027eb5; --ok: #00a884;
  --out: #d9fdd3; --in: #ffffff; --hover: #f5f6f6; --sel: #e9edef;
  --wall: #efeae2; --wallDots: rgba(0,0,0,.035);
  --shadow: 0 6px 24px rgba(0,0,0,.18);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14.5px/1.4 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(134,150,160,.35); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

#app { height: 100dvh; }
.hidden { display: none !important; }

/* ---------- login ---------- */
.login-wrap { height: 100%; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(79,70,229,.22), transparent 60%), radial-gradient(900px 500px at 90% 100%, rgba(82,136,193,.16), transparent 60%), var(--bg); }
.login-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px; box-shadow: var(--shadow); text-align: center; }
.login-card .logo { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; font-size: 28px; }
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-card p { margin: 0 0 18px; color: var(--muted); }
.field { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); outline: none; margin-bottom: 10px; }
.field:focus { border-color: var(--accent); }
.btn { padding: 10px 18px; border-radius: 20px; background: var(--accent); color: #fff; font-weight: 700; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--panel2); color: var(--text); font-weight: 600; }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.err { color: var(--danger); min-height: 20px; margin-top: 6px; font-size: 13px; }

/* ---------- layout ---------- */
.shell { height: 100%; display: grid; grid-template-columns: 400px minmax(0, 1fr); background: var(--bg); }
.shell.info-open { grid-template-columns: 400px minmax(0, 1fr) 340px; }
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.main { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; background: var(--wall);
  background-image: radial-gradient(var(--wallDots) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.info { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }

/* ---------- barra lateral ---------- */
.side-head { display: flex; align-items: center; gap: 4px; padding: 10px 12px; }
.side-head .title { font-weight: 700; font-size: 19px; flex: 1; display: flex; align-items: center; gap: 8px; }
.side-head .title i { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 18px; position: relative; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.on { color: var(--accent); }
.chips { display: flex; gap: 6px; padding: 2px 12px 8px; overflow-x: auto; flex: none; }
.chip { flex: none; padding: 5px 11px; border-radius: 16px; background: var(--panel2); color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip.on { background: rgba(82,136,193,.22); color: var(--accent2); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip .dot.open { background: #22c55e; } .chip .dot.connecting { background: var(--warn); } .chip .dot.close, .chip .dot.missing { background: var(--danger); }
.tabs { display: flex; padding: 0 12px; border-bottom: 1px solid var(--line); flex: none; }
.tab { flex: 1; padding: 11px 6px; color: var(--muted); font-weight: 600; text-align: center; border-bottom: 3px solid transparent; display: flex; justify-content: center; align-items: center; gap: 8px; }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab .n { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; line-height: 18px; font-weight: 700; }
.search { margin: 10px 12px; position: relative; flex: none; }
.search input { width: 100%; padding: 9px 14px 9px 36px; border-radius: 10px; border: 0; background: var(--panel2); outline: none; }
.search::before { content: "🔍"; position: absolute; left: 11px; top: 8px; font-size: 14px; opacity: .6; }
.list { flex: 1; overflow-y: auto; min-height: 0; }
.row { display: flex; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); align-items: center; }
.row:hover { background: var(--hover); }
.row.on { background: var(--sel); }
.av { width: 48px; height: 48px; border-radius: 50%; flex: none; background: #6b7c85; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 96px; height: 96px; font-size: 36px; }
.av.sm { width: 36px; height: 36px; font-size: 14px; }
.row .mid { flex: 1; min-width: 0; }
.row .l1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.row .name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .time { font-size: 12px; color: var(--muted); flex: none; }
.row .time.new { color: var(--accent); }
.row .l2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 2px; }
.row .last { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.badge { background: var(--accent); color: #fff; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.pin { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 6px; color: #04140f; margin-right: 6px; vertical-align: 1px; font-weight: 700; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.tick { font-size: 13px; letter-spacing: -3px; margin-right: 4px; color: var(--muted); }
.tick.read { color: var(--accent2); }

/* ---------- conversa ---------- */
.empty-main { margin: auto; text-align: center; color: var(--muted); padding: 24px; }
.empty-main .big { font-size: 54px; margin-bottom: 8px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--panel2); border-bottom: 1px solid var(--line); flex: none; }
.chat-head .who { flex: 1; min-width: 0; cursor: pointer; }
.chat-head .nm { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-btn { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 6% 10px; min-height: 0; display: flex; flex-direction: column; }
.day { align-self: center; background: var(--panel2); color: var(--muted); font-size: 12.5px; padding: 4px 12px; border-radius: 8px; margin: 10px 0; box-shadow: 0 1px 1px rgba(0,0,0,.15); }
.more { align-self: center; margin: 6px 0 10px; color: var(--accent2); font-size: 13px; padding: 6px 12px; border-radius: 14px; background: var(--panel2); }
.m { max-width: min(560px, 82%); margin: 2px 0; position: relative; display: flex; flex-direction: column; }
.m.out { align-self: flex-end; align-items: flex-end; }
.m.in { align-self: flex-start; align-items: flex-start; }
.m.gap { margin-top: 8px; }
.bub { background: var(--in); border-radius: 9px; padding: 6px 9px 6px 10px; box-shadow: 0 1px 1px rgba(0,0,0,.2); position: relative; min-width: 76px; word-wrap: break-word; overflow-wrap: anywhere; max-width: 100%; }
.m.out .bub { background: var(--out); border-top-right-radius: 2px; }
.m.in .bub { border-top-left-radius: 2px; }
.m.sticker .bub { background: transparent; box-shadow: none; padding: 0; }
.who-name { font-size: 12.8px; font-weight: 700; margin-bottom: 2px; }
.txt { white-space: pre-wrap; }
.txt a { color: var(--accent2); }
.meta { float: right; margin: 6px 0 -3px 12px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 3px; position: relative; top: 4px; }
.m.out .meta { color: rgba(233,237,239,.65); }
:root[data-theme="light"] .m.out .meta { color: #667781; }
.m.sticker .meta { background: rgba(0,0,0,.4); color: #fff; border-radius: 8px; padding: 0 6px; position: absolute; right: 6px; bottom: 6px; float: none; top: auto; margin: 0; }
.bub img.media, .bub video.media { display: block; max-width: 100%; max-height: 360px; border-radius: 7px; cursor: zoom-in; background: #0003; }
.bub video.media { cursor: default; }
.bub img.stk { width: 150px; height: 150px; object-fit: contain; display: block; cursor: default; }
.bub audio { width: 260px; max-width: 100%; height: 38px; display: block; }
.doc { display: flex; gap: 10px; align-items: center; padding: 8px; background: rgba(0,0,0,.12); border-radius: 8px; min-width: 220px; text-decoration: none; color: inherit; }
.doc .ic { font-size: 26px; }
.doc .dn { font-weight: 600; word-break: break-all; }
.doc .ds { font-size: 12px; color: var(--muted); }
.quote { border-left: 4px solid var(--accent); background: rgba(0,0,0,.14); border-radius: 6px; padding: 5px 8px; margin-bottom: 5px; cursor: pointer; font-size: 13px; }
.quote .qn { font-weight: 700; color: var(--accent); font-size: 12.5px; }
.quote .qt { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deleted { font-style: italic; color: var(--muted); }
.card { background: rgba(0,0,0,.12); border-radius: 8px; padding: 8px 10px; margin-bottom: 4px; min-width: 220px; }
.card .cn { font-weight: 700; }
.card .cs { color: var(--muted); font-size: 13px; }
.card button { margin-top: 6px; width: 100%; padding: 7px; border-radius: 8px; background: rgba(82,136,193,.25); color: var(--accent2); font-weight: 700; }
.poll-opt { padding: 5px 0; border-top: 1px solid rgba(128,128,128,.25); }
.reacts { display: flex; gap: 3px; margin: -7px 8px 0; z-index: 1; }
.reacts span { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 0 6px; font-size: 13px; line-height: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.chev { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 11px; display: none; place-items: center; z-index: 2; }
.m:hover .chev { display: grid; }
.m.sticker .chev { display: none !important; }
.m.flash .bub { animation: flash 1.4s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent2); } 100% { box-shadow: 0 1px 1px rgba(0,0,0,.2); } }
.menu { position: fixed; z-index: 60; background: var(--panel2); border-radius: 10px; box-shadow: var(--shadow); padding: 6px 0; min-width: 190px; border: 1px solid var(--line); }
.menu button { display: block; width: 100%; text-align: left; padding: 9px 16px; white-space: nowrap; }
.menu button:hover { background: var(--sel); }
.menu button.dang { color: var(--danger); }
.emoji-row { display: flex; gap: 2px; padding: 4px 8px; }
.emoji-row button { width: 34px; padding: 4px 0; text-align: center; font-size: 20px; border-radius: 8px; }

/* ---------- composer ---------- */
.reply-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--panel2); border-top: 1px solid var(--line); flex: none; }
.reply-bar .quote { flex: 1; margin: 0; cursor: default; }
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--panel2); flex: none; position: relative; }
.composer textarea { flex: 1; resize: none; max-height: 140px; min-height: 40px; padding: 10px 14px; border-radius: 22px; border: 0; background: var(--panel3); outline: none; line-height: 1.35; }
:root[data-theme="light"] .composer textarea { background: #fff; }
.send-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 19px; flex: none; display: grid; place-items: center; }
.rec { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 10px; height: 42px; }
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.pop { position: absolute; bottom: 62px; left: 10px; background: var(--panel2); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 40; border: 1px solid var(--line); }
.emoji-grid { width: 330px; max-width: 86vw; max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid button { font-size: 22px; padding: 4px 0; border-radius: 8px; }
.emoji-grid button:hover { background: var(--sel); }
.attach-menu button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.attach-menu button:hover { background: var(--sel); }

/* ---------- info ---------- */
.info-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel2); font-weight: 600; flex: none; }
.info-body { flex: 1; overflow-y: auto; }
.info-sec { padding: 16px 20px; border-bottom: 8px solid var(--bg); }
.info-sec h4 { margin: 0 0 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.info-top { text-align: center; padding: 22px 16px 14px; border-bottom: 8px solid var(--bg); }
.info-top .nm { font-size: 20px; margin-top: 10px; }
.info-top .sub { color: var(--muted); margin-top: 2px; }
.part { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.part .pn { font-weight: 600; }
.part .ps { color: var(--muted); font-size: 12.5px; }
.admin-tag { margin-left: auto; font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 0 6px; }
textarea.notes { width: 100%; min-height: 90px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); padding: 10px; outline: none; resize: vertical; }

/* ---------- modais ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: grid; place-items: center; padding: 14px; }
.modal { background: var(--panel); border-radius: 16px; width: min(560px, 100%); max-height: 92dvh; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--line); }
.modal .mh { padding: 16px 20px; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal .mb { padding: 16px 20px; overflow-y: auto; }
.modal .mf { padding: 12px 20px 16px; display: flex; gap: 10px; justify-content: flex-end; }
.conn { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--panel3); flex-wrap: wrap; }
.conn .ci { flex: 1; min-width: 160px; }
.conn .cn { font-weight: 700; }
.conn .cs { color: var(--muted); font-size: 13px; }
.status { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; font-weight: 700; }
.status.open { background: rgba(34,197,94,.18); color: #22c55e; }
.status.connecting { background: rgba(245,158,11,.18); color: var(--warn); }
.status.close, .status.missing { background: rgba(239,68,68,.18); color: var(--danger); }
.qr-box { text-align: center; }
.qr-box img { width: 280px; max-width: 100%; background: #fff; padding: 10px; border-radius: 12px; }
.hint { color: var(--muted); font-size: 13px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 70; display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 92dvh; cursor: zoom-out; }
.preview-media { max-width: 100%; max-height: 46dvh; border-radius: 10px; display: block; margin: 0 auto 12px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #111b21; color: #e9edef; padding: 10px 18px; border-radius: 10px; z-index: 90; box-shadow: var(--shadow); border: 1px solid #2a3942; max-width: 90vw; }
.toast.err { border-color: var(--danger); }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .shell, .shell.info-open { grid-template-columns: 1fr; }
  .side, .main, .info { grid-column: 1; grid-row: 1; }
  .shell.chat-open .side { display: none; }
  .shell:not(.chat-open) .main { display: none; }
  .info { position: fixed; inset: 0; z-index: 30; }
  .shell:not(.info-open) .info { display: none; }
  .back-btn { display: grid; }
  .msgs { padding: 10px 10px 8px; }
  .m { max-width: 90%; }
}

/* ---------- etiquetas, anotacoes, respostas rapidas, figurinhas ---------- */
.rtags { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.rtag { font-size: 10.5px; padding: 0 7px; border-radius: 8px; color: #fff; font-weight: 600; line-height: 16px; text-shadow: 0 1px 1px rgba(0,0,0,.35); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.rtag.more { background: var(--panel2); color: var(--muted); text-shadow: none; }
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tagbtn { padding: 3px 10px; border-radius: 14px; border: 2px solid; font-size: 12.5px; color: var(--text); background: transparent; font-weight: 600; }
.tagbtn.on { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.tagbtn.add { border-color: var(--line); }
.note { background: var(--panel2); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.note .ns { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }
.note .nx { opacity: .6; }
.note .nx:hover { opacity: 1; }
.pop-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.pop-tabs button { flex: 1; padding: 6px; border-radius: 8px; background: var(--panel3); color: var(--muted); font-weight: 600; }
.pop-tabs button:hover { color: var(--text); }
.stk-grid { width: 330px; max-width: 86vw; max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stk-pick { border-radius: 8px; padding: 2px; }
.stk-pick:hover { background: var(--sel); }
.stk-pick img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.quick-pop { width: 380px; max-width: 92vw; }
.qlist { max-height: 300px; overflow-y: auto; }
.qitem { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; }
.qitem:hover { background: var(--sel); }
.qitem .qs { font-weight: 700; color: var(--accent); }
.qitem .qt2 { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Notificarme ---------- */
.qbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 14px; background: var(--panel3); border-bottom: 1px solid var(--line); flex: none; }
.qbar.busy { opacity: .6; pointer-events: none; }
.nb { padding: 5px 12px !important; font-size: 13px; border-radius: 16px !important; }
.nb.block { width: 100%; margin-top: 6px; }
.nchip { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--panel2); color: var(--text); font-size: 12.5px; font-weight: 600; }
.nchip.ok { background: rgba(34,197,94,.2); color: var(--ok); }
.nchip.bad { background: rgba(239,68,68,.2); color: var(--danger); }
.nchip.sel { background: var(--accent); color: #fff; }
.nmp h4 { color: var(--accent); }
.nrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.nlab { font-size: 12px; color: var(--muted); white-space: nowrap; }
.nval { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; text-align: right; word-break: break-all; }
.ncopy { opacity: .6; font-size: 13px; }
.ncopy:hover { opacity: 1; }
.nacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.ntabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ndiv { height: 1px; background: var(--line); margin: 10px 0; }
.nblock { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.nsrv { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 8px; background: var(--panel3); }
.nform { display: flex; flex-direction: column; gap: 4px; }
.nform h5 { margin: 0 0 6px; font-size: 14px; }
.nf { display: block; margin-bottom: 6px; }
.nfl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.nfi { margin: 0 !important; }
.hint.link { cursor: pointer; color: var(--accent2); }

/* ---------- visual do chat.zone1 (Telegram escuro) ---------- */
.side-head, .chat-head, .composer { backdrop-filter: blur(18px); }
.side-head, .chat-head { background: rgba(23,33,43,.92); border-bottom: 1px solid rgba(106,179,243,.2); box-shadow: 0 1px 20px rgba(82,136,193,.12); }
:root[data-theme="light"] .side-head, :root[data-theme="light"] .chat-head { background: var(--panel); box-shadow: none; border-bottom: 1px solid var(--line); }
.modal, .menu, .popover { border-radius: 16px; }
.btn.ghost { border-radius: 20px; }
.info-sec h4 { color: var(--accent2); }

/* ---------- modo privacidade (olho): borra os dados dos leads ---------- */
.privacy .row[data-type="lead"] :is(.name, .last, .av),
.privacy[data-ctype="lead"] .chat-head :is(.who, .av),
.privacy[data-ctype="lead"] .qbar,
.privacy[data-ctype="lead"] .info > * { filter: blur(7px); }

.qitem.sel { background: var(--sel); outline: 1px solid var(--accent); }
.peek { max-height: 60dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.pk { max-width: 85%; padding: 6px 10px; border-radius: 10px; background: var(--in); white-space: pre-wrap; word-break: break-word; }
.pk.out { align-self: flex-end; background: var(--out); }

/* ---------- carregando + aviso de atualizacao ---------- */
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; color: var(--muted); text-align: center; }
.loading-box .lt { font-size: 16px; font-weight: 600; color: var(--text); }
.spin { display: inline-block; font-size: 34px; animation: spin-bob 1.1s ease-in-out infinite; }
@keyframes spin-bob { 0%, 100% { transform: translateY(0) rotate(0); opacity: 1; } 50% { transform: translateY(-6px) rotate(12deg); opacity: .6; } }
.upd-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 12px;
  background: var(--panel2); color: var(--text); border: 1px solid var(--accent); border-radius: 22px; padding: 8px 10px 8px 16px; box-shadow: var(--shadow); max-width: 92vw; }
.upd-bar.ready { border-color: var(--ok); }
.upd-bar .spin { font-size: 18px; animation: spin-rot 1.2s linear infinite; }
@keyframes spin-rot { to { transform: rotate(360deg); } }
.upd-bar .btn { padding: 6px 14px; }
