/* ORYA Atendimento — mesma identidade do ORYA Flow: preto, laranja #FB4328, degradê da marca, Space Grotesk */
@font-face { font-family:"Space Grotesk"; font-weight:400; src:url(/fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-weight:500; src:url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-weight:700; src:url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
:root {
  --p:#fb4328; --bg:#060607; --side:rgba(12,12,14,.86); --card:rgba(20,20,23,.78); --card2:#1a1a1e; --line:rgba(255,255,255,.07); --line2:rgba(255,255,255,.12);
  --text:#f3f0ea; --muted:#8a8690; --accent:#ffa24c; --ok:#3fbf91; --warn:#f5b041; --bad:#f87171; --glow:rgba(251,67,40,.22);
  --grad:linear-gradient(100deg,#e00a12 0%,#f5301e 35%,#fb5a22 65%,#ff8a1f 100%);
  --r:14px; --ease:cubic-bezier(.2,.8,.2,1);
  --bubble-in:#17171b; --bubble-out:#2a1712;
}
* { box-sizing:border-box; }
html, body { height:100%; }
body { margin:0; font-family:"Space Grotesk", system-ui, sans-serif; font-size:14px; color:var(--text); letter-spacing:.005em;
  background: radial-gradient(900px 500px at 12% -10%, rgba(251,67,40,.10), transparent 60%), radial-gradient(700px 500px at 110% 110%, rgba(255,138,31,.06), transparent 60%), var(--bg);
  background-attachment:fixed; }
::selection { background:rgba(251,67,40,.35); }
* { scrollbar-width:thin; scrollbar-color:#2a2a30 transparent; }
.hidden { display:none !important; }
.muted { color:var(--muted); font-size:13px; }
.error { color:var(--bad); min-height:18px; margin:0; font-size:14px; }
input, select, textarea { width:100%; padding:9px 11px; border:1px solid var(--line2); border-radius:10px; font:inherit; background:var(--card2); color:var(--text); }
input:focus, select:focus, textarea:focus { outline:1px solid var(--p); border-color:transparent; }
textarea { resize:none; }
button { font:inherit; color:inherit; cursor:pointer; }
a { color:var(--accent); }
.btn { background:var(--grad); background-size:180% 100%; color:#fff; border:0; padding:9px 16px; border-radius:10px; font-weight:600;
  box-shadow:0 6px 22px rgba(251,67,40,.22), inset 0 1px 0 rgba(255,255,255,.18); transition:background-position .5s var(--ease), transform .12s; }
.btn:hover { background-position:100% 0; }
.btn:active { transform:scale(.97); }
.btn:disabled { opacity:.5; cursor:default; }
.btn.ghost { background:transparent; box-shadow:none; border:1px solid var(--line2); color:var(--text); }
.btn.ghost:hover { background:rgba(255,255,255,.05); }
.btn.ok { background:linear-gradient(100deg,#1f9c70,#3fbf91); box-shadow:0 6px 18px rgba(63,191,145,.18); }
.btn.small { padding:6px 11px; font-size:13px; border-radius:8px; }
.icon-btn { background:none; border:0; color:var(--muted); width:32px; height:32px; border-radius:8px; font-size:16px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.icon-btn:hover { background:rgba(255,255,255,.06); color:var(--text); }
.chip { border:1px solid var(--line2); background:rgba(255,255,255,.03); border-radius:99px; padding:4px 11px; font-size:12px; color:var(--muted); white-space:nowrap; max-width:220px; overflow:hidden; text-overflow:ellipsis; }
.chip.linked { color:var(--text); border-color:rgba(251,67,40,.45); background:rgba(251,67,40,.08); }
.chip:hover { color:var(--text); }
.badge { min-width:18px; height:18px; padding:0 5px; border-radius:99px; background:var(--grad); color:#fff; font-size:11px; font-style:normal; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.badge.soft { background:rgba(245,176,65,.18); color:var(--warn); }
.seg { display:inline-flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.02); }
.seg button { border:0; background:none; padding:5px 10px; border-radius:8px; font-size:13px; color:var(--muted); }
.seg button.on { background:rgba(251,67,40,.14); color:var(--text); }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:26px; backdrop-filter:blur(14px); }

/* Login */
.center { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:16px; }
#loginForm { width:340px; max-width:100%; display:flex; flex-direction:column; gap:12px; }
.login-logo { width:170px; height:auto; align-self:center; }
.login-sub { text-align:center; font-size:12px; letter-spacing:.3em; text-transform:uppercase; color:var(--accent); margin-top:-6px; }
#loginForm .muted { text-align:center; margin:0 0 4px; }

/* Estrutura */
#app { display:flex; height:100vh; overflow:hidden; }
#rail { width:76px; flex:none; background:var(--side); border-right:1px solid var(--line); display:flex; flex-direction:column; align-items:center; padding:14px 6px 10px; gap:4px; backdrop-filter:blur(14px); }
.rail-logo { width:34px; height:34px; margin-bottom:12px; }
.rail-btn { position:relative; width:64px; border:0; background:none; color:#b9b5bd; border-radius:12px; padding:8px 2px 6px; display:flex; flex-direction:column; align-items:center; gap:3px; font-size:11px; text-decoration:none; }
.rail-btn svg { width:21px; height:21px; }
.rail-btn:hover { background:rgba(255,255,255,.05); color:var(--text); }
.rail-btn.on { background:linear-gradient(180deg, rgba(251,67,40,.18), rgba(251,67,40,.04)); color:var(--text); }
.rail-btn.on svg { color:#ff7a4d; }
.rail-btn .badge { position:absolute; top:3px; right:9px; }
.rail-btn.small { padding:6px 2px; }
.rail-fill { flex:1; }
.dot { position:absolute; top:7px; right:16px; width:8px; height:8px; border-radius:50%; background:#666; box-shadow:0 0 0 2px #0c0c0e; }
.dot.open { background:var(--ok); } .dot.close, .dot.erro, .dot.missing { background:var(--bad); } .dot.connecting { background:var(--warn); }
.rail-me { width:36px; height:36px; margin:6px 0 2px; }
.avatar { width:38px; height:38px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; color:#fff; background:#333; overflow:hidden; background-size:cover; background-position:center; }
.avatar.sm { width:28px; height:28px; font-size:11px; }
.avatar.group { border-radius:12px; }
.sim-banner { position:fixed; top:0; left:76px; right:0; z-index:30; text-align:center; font-size:12px; padding:3px; background:rgba(245,176,65,.14); color:var(--warn); border-bottom:1px solid rgba(245,176,65,.25); }
.sim-on .view { padding-top:22px; }
.view { flex:1; min-width:0; display:flex; height:100vh; }

/* Lista de conversas */
.col-list { width:340px; flex:none; border-right:1px solid var(--line); display:flex; flex-direction:column; background:rgba(10,10,12,.55); }
.list-head { padding:16px 14px 10px; display:flex; flex-direction:column; gap:10px; border-bottom:1px solid var(--line); }
.list-head h2 { margin:0; font-size:20px; letter-spacing:-.02em; }
.list-head .seg { align-self:flex-start; }
#chatItems { list-style:none; margin:0; padding:6px; overflow:auto; flex:1; }
#chatItems li { display:flex; gap:11px; align-items:center; padding:9px 10px; border-radius:12px; cursor:pointer; transition:background .15s; }
#chatItems li:hover { background:rgba(255,255,255,.035); }
#chatItems li.on { background:rgba(251,67,40,.10); box-shadow:inset 2px 0 0 var(--p); }
.ci-main { flex:1; min-width:0; }
.ci-top { display:flex; gap:6px; align-items:baseline; }
.ci-name { flex:1; font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ci-time { font-size:11px; color:var(--muted); flex:none; }
.ci-bottom { display:flex; gap:6px; align-items:center; margin-top:2px; }
.ci-last { flex:1; font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
li.unread .ci-name { color:#fff; } li.unread .ci-last { color:#cfcbd2; } li.unread .ci-time { color:var(--accent); }
.ci-client { font-size:11px; color:var(--accent); border:1px solid rgba(255,162,76,.3); border-radius:99px; padding:0 7px; white-space:nowrap; max-width:110px; overflow:hidden; text-overflow:ellipsis; flex:none; }
.ci-pend { font-size:11px; color:var(--warn); flex:none; }
.list-empty { padding:30px 16px; text-align:center; color:var(--muted); }

/* Conversa */
.col-conv { flex:1; min-width:0; display:flex; flex-direction:column; }
.conv-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--muted); gap:8px; }
.conv-empty img { width:54px; opacity:.35; }
#convMain { flex:1; display:flex; flex-direction:column; min-height:0; }
.conv-head { display:flex; align-items:center; gap:11px; padding:10px 14px; border-bottom:1px solid var(--line); background:rgba(12,12,14,.6); backdrop-filter:blur(12px); }
.conv-title { flex:1; min-width:0; display:flex; flex-direction:column; }
.conv-title b { font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv-title span { font-size:12px; }
.msgs { flex:1; overflow:auto; padding:16px 6% 10px; display:flex; flex-direction:column; gap:3px;
  background: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px) 0 0 / 100% 36px, linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px) 0 0 / 36px 100%; }
.sys-note { align-self:center; max-width:86%; text-align:center; font-size:12px; color:var(--muted); background:rgba(255,255,255,.04); border:1px solid var(--line); border-radius:10px; padding:5px 12px; margin:6px 0; display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:center; }
.sys-note b { color:var(--text); font-weight:600; }
.sys-note small { font-size:10px; opacity:.7; }
.sys-note[data-goto] { cursor:pointer; }
.sys-note[data-goto]:hover { border-color:var(--accent); }
.sys-note .ic { width:13px; height:13px; }
.day-sep { align-self:center; font-size:12px; color:var(--muted); background:rgba(255,255,255,.04); border:1px solid var(--line); border-radius:99px; padding:2px 11px; margin:12px 0 6px; }
.more-btn { align-self:center; margin-bottom:8px; }
.m { display:flex; flex-direction:column; max-width:min(560px, 78%); position:relative; }
.m.in { align-self:flex-start; } .m.out { align-self:flex-end; align-items:flex-end; }
.m.gap { margin-top:8px; }
.bubble { position:relative; padding:7px 10px 6px; border-radius:14px; background:var(--bubble-in); border:1px solid var(--line); line-height:1.4; word-wrap:break-word; overflow-wrap:anywhere; min-width:80px; }
.m.out .bubble { background:var(--bubble-out); border-color:rgba(251,67,40,.18); }
.m.in .bubble { border-top-left-radius:5px; } .m.out .bubble { border-top-right-radius:5px; }
.m.flash .bubble { animation:flash 1.4s var(--ease); }
@keyframes flash { 0%,40% { box-shadow:0 0 0 2px var(--p); } 100% { box-shadow:0 0 0 0 transparent; } }
.who { font-size:12px; font-weight:700; margin-bottom:2px; }
.by { font-size:11px; color:var(--muted); margin:0 4px 2px; }
.txt { white-space:pre-wrap; }
/* Cartão de prévia do link */
.lk-card { display:flex; align-items:stretch; width:420px; max-width:100%; margin:0 0 5px; border-radius:9px; overflow:hidden; background:rgba(0,0,0,.28); border:1px solid var(--line); color:var(--text); text-decoration:none; }
.lk-card:hover { border-color:var(--line2); background:rgba(0,0,0,.4); }
.lk-card img { flex:none; width:84px; min-height:84px; object-fit:cover; }
.lk-txt { display:flex; flex-direction:column; justify-content:center; gap:2px; min-width:0; padding:8px 10px; }
.lk-txt b, .lk-txt span { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lk-txt b { font-size:13px; font-weight:600; line-height:1.3; }
.lk-txt span { font-size:12px; color:var(--muted); line-height:1.3; }
.lk-txt small { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:4px; }
.lk-txt small .ic { width:11px; height:11px; flex:none; }
.meta { font-size:11px; color:var(--muted); text-align:right; margin-top:2px; }
.quote { border-left:3px solid var(--accent); background:rgba(255,255,255,.04); border-radius:6px; padding:4px 8px; margin-bottom:5px; font-size:13px; color:#cfcbd2; cursor:pointer; max-height:60px; overflow:hidden; }
.media img, .media video { display:block; max-width:100%; max-height:340px; border-radius:9px; margin:-1px -3px 4px; background:#000; }
.media img { cursor:zoom-in; min-height:60px; min-width:120px; }
/* Vídeo: miniatura + play (o arquivo só carrega ao clicar) */
.vcard { position:relative; width:240px; max-width:100%; border-radius:12px; overflow:hidden; cursor:pointer; margin:-1px -3px 4px; background:#0b0b0d; border:1px solid var(--line2); }
.vthumb { width:100%; height:auto; min-height:150px; max-height:340px; object-fit:cover; display:block; filter:saturate(.95); transition:transform .25s ease, filter .25s ease; }
.vthumb.vnone { aspect-ratio:9/12; display:flex; align-items:center; justify-content:center; background:radial-gradient(120% 90% at 30% 20%, rgba(251,67,40,.22), transparent 60%), #111114; color:var(--muted); }
.vthumb.vnone .ic { width:38px; height:38px; opacity:.6; }
.vcard:hover .vthumb { transform:scale(1.03); filter:saturate(1.05) brightness(1.05); }
.vplay { position:absolute; left:50%; top:50%; width:54px; height:54px; margin:-27px 0 0 -27px; border-radius:50%; background:var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 22px rgba(251,67,40,.45); transition:transform .2s ease; }
.vplay svg { width:24px; height:24px; margin-left:3px; }
.vcard:hover .vplay { transform:scale(1.08); }
.vmeta { position:absolute; left:8px; bottom:8px; font-size:11px; font-weight:600; padding:2px 8px; border-radius:99px; background:rgba(0,0,0,.6); color:#fff; backdrop-filter:blur(4px); }
.vplayer { display:block; width:240px; max-width:100%; max-height:420px; border-radius:12px; margin:-1px -3px 4px; background:#000; }
.vname { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:5px; margin:0 0 2px; word-break:break-all; }
.vname .ic { width:13px; height:13px; flex:none; }
.dl-btn { display:inline-flex; align-items:center; gap:5px; margin:2px 0 4px; padding:3px 10px 3px 8px; border-radius:99px; font-size:12px; font-weight:600; color:var(--text); text-decoration:none; background:rgba(251,67,40,.1); border:1px solid rgba(251,67,40,.35); transition:background .15s, border-color .15s; }
.dl-btn:hover { background:rgba(251,67,40,.2); border-color:var(--p); }
.dl-btn .ic { width:13px; height:13px; color:var(--p); }
.dl-btn span { color:var(--muted); font-weight:500; }
.doc { display:flex; align-items:center; gap:9px; padding:8px 10px; background:rgba(255,255,255,.04); border-radius:9px; margin-bottom:4px; text-decoration:none; color:var(--text); }
.doc span { font-size:22px; }
.media-err { font-size:12px; color:var(--muted); padding:16px 10px; border:1px dashed var(--line2); border-radius:9px; margin-bottom:4px; }
.reacts { display:flex; gap:3px; margin:-6px 8px 0; position:relative; z-index:1; }
.reacts span { background:#202025; border:1px solid var(--line2); border-radius:99px; padding:0 6px; font-size:12px; }
.ap-tag { --c:var(--muted); margin-top:4px; border-radius:10px; padding:7px 8px 7px 10px; font-size:12px; border:1px solid var(--line2); border-left:3px solid var(--c); background:rgba(255,255,255,.03); max-width:100%; min-width:min(320px,100%);
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
.ap-tag.pendente { --c:var(--warn); } .ap-tag.aprovado { --c:var(--ok); } .ap-tag.ajuste { --c:var(--bad); }
.ap-main { flex:1 1 260px; min-width:0; }
.ap-top { display:flex; align-items:baseline; gap:7px; min-width:0; }
.ap-top b { font-size:13px; font-weight:600; min-width:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ap-pill { flex:none; font-size:11px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; color:var(--c); }
.ap-sub { font-size:12px; margin-top:1px; }
.ap-sub .ic, .ap-drive .ic { width:12px; height:12px; vertical-align:-2px; }
.ap-tag .ap-drive { color:var(--accent); text-decoration:none; font-size:inherit; } .ap-drive:hover { text-decoration:underline; } .ap-tag .ap-drive.bad { color:var(--bad); }
.ap-acts { display:flex; align-items:center; gap:5px; flex:none; margin-left:auto; }
.ap-acts .btn.small { padding:5px 10px; font-size:12px; }
.ap-acts .ap-x { width:28px; height:28px; color:var(--muted); } .ap-acts .ap-x:hover { color:var(--bad); }
.ap-tag .ap-undo { color:var(--muted); text-decoration:none; font-size:12px; } .ap-tag .ap-undo:hover { color:var(--text); }
.ap-tag > .ap-reply, .ap-tag > .ap-row { flex-basis:100%; margin-top:2px; }
.ap-row { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.ap-reply.ap-change { background:rgba(251,67,40,.12); border:1px solid rgba(251,67,40,.45); }
/* Pedidos de alteração (#/changes) */
#ccMonth { width:auto; padding:5px 8px; }
.cc-item { align-items:flex-start; }
.cc-item .ap-main { min-width:0; }
.cc-text { margin:6px 0 2px; font-size:14px; line-height:1.45; }
.ap-item .ap-main .cc-text b, .cc-sum b { display:inline; font-size:inherit; }
.cc-text .ic { display:inline-block; vertical-align:-2px; margin-right:3px; }
.cc-sum { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; color:var(--muted); margin-bottom:4px; }
.cc-sum b { color:var(--text); }
.cc-st.edicao { background:rgba(248,113,113,.15); color:var(--bad); } .cc-st.corrigido { background:rgba(63,191,145,.15); color:var(--ok); } .cc-st.sem_mudanca { background:rgba(255,255,255,.06); color:var(--muted); }
.ap-reply { margin-top:5px; padding:5px 8px; border-radius:7px; background:rgba(0,0,0,.25); font-size:12px; }
.reply-bar { display:flex; align-items:center; gap:10px; margin:0 14px; padding:7px 10px; border-left:3px solid var(--accent); background:rgba(255,255,255,.04); border-radius:8px 8px 0 0; }
.reply-bar div { flex:1; min-width:0; font-size:13px; display:flex; flex-direction:column; }
.reply-bar span { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.composer { display:flex; gap:8px; align-items:flex-end; padding:10px 14px 14px; }
.composer textarea { max-height:160px; min-height:40px; line-height:1.4; padding:10px 12px; }
.composer .send { height:40px; }
.composer .icon-btn { height:40px; width:40px; }
.drop-hint { position:absolute; inset:0; background:rgba(251,67,40,.08); border:2px dashed var(--p); border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:16px; z-index:5; pointer-events:none; }

/* Painel do cliente */
.col-side { width:320px; flex:none; border-left:1px solid var(--line); overflow:auto; padding:16px 14px; background:rgba(10,10,12,.55); }
.col-side h3 { font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:18px 0 8px; font-weight:500; }
.col-side h3:first-child { margin-top:0; }
.side-client { display:flex; gap:10px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.02); }
.side-client b { flex:1; }
.side-client-acts { display:flex; flex-direction:column; align-items:flex-end; gap:2px; font-size:12px; }
.side-relink { font:inherit; font-size:12px; color:var(--muted); text-decoration:underline; background:none; border:0; padding:0; cursor:pointer; }
.side-relink:hover { color:#FB4328; }
.unlink-warn { border:1px solid rgba(232,181,74,.5); color:#e8b54a; border-radius:10px; padding:8px 10px; margin:8px 0; }
.task { padding:9px 10px; border:1px solid var(--line); border-radius:11px; margin-bottom:6px; background:rgba(255,255,255,.02); }
.task-t { font-size:13px; font-weight:600; line-height:1.3; }
.task-m { display:flex; gap:6px; align-items:center; margin-top:5px; flex-wrap:wrap; }
.st { font-size:11px; padding:1px 8px; border-radius:99px; background:rgba(255,255,255,.06); color:#cfcbd2; }
.st.aprovacao { background:rgba(245,176,65,.16); color:var(--warn); } .st.veiculacao { background:rgba(63,191,145,.15); color:var(--ok); }
.st.edicao, .st.para_editar { background:rgba(124,92,255,.17); color:#b7a6ff; }
.task .btn { margin-left:auto; }
.side-note { font-size:12px; color:var(--muted); line-height:1.45; }
details.more summary { cursor:pointer; color:var(--muted); font-size:13px; margin:6px 0; }

/* Páginas */
.page { flex-direction:column; overflow:auto; padding:24px 32px 40px; }
.page-head { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:8px; }
.page-head h2 { font-size:24px; letter-spacing:-.02em; margin:0; }
.page-hint { max-width:760px; line-height:1.5; margin:4px 0 18px; }
.widget { border:1px solid var(--line); background:var(--card); border-radius:var(--r); padding:18px 20px; margin-bottom:14px; max-width:760px; }
.widget h3 { margin:0 0 10px; font-size:16px; }
.ap-list { display:flex; flex-direction:column; gap:8px; max-width:900px; }
.ap-item { display:flex; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--card); cursor:pointer; }
.ap-item:hover { border-color:var(--line2); }
.ap-item .ap-main { flex:1; min-width:0; }
.ap-item .ap-main b { display:block; font-size:14px; }
.ap-st { font-size:12px; padding:2px 10px; border-radius:99px; flex:none; }
.ap-st.pendente { background:rgba(245,176,65,.16); color:var(--warn); } .ap-st.aprovado { background:rgba(63,191,145,.15); color:var(--ok); }
.ap-st.ajuste { background:rgba(248,113,113,.15); color:var(--bad); } .ap-st.cancelado { background:rgba(255,255,255,.06); color:var(--muted); }
.qr { display:flex; gap:20px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.qr img { width:230px; height:230px; background:#fff; border-radius:12px; padding:10px; image-rendering:pixelated; }
.state { display:inline-flex; align-items:center; gap:7px; font-weight:600; }
.state i { width:9px; height:9px; border-radius:50%; background:#666; }
.state.open i { background:var(--ok); } .state.close i, .state.missing i, .state.erro i { background:var(--bad); } .state.connecting i { background:var(--warn); }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:8px 0; }
.switch { display:flex; gap:10px; align-items:center; cursor:pointer; }
.switch input { width:auto; }

/* Janela */
#modalBg { position:fixed; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; z-index:50; padding:16px; }
#modal { width:460px; max-width:100%; max-height:90vh; overflow:auto; display:flex; flex-direction:column; gap:12px; padding:22px; }
#modal h3 { margin:0; font-size:17px; }
#modal .actions { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
#modal label { font-size:13px; color:var(--muted); display:flex; flex-direction:column; gap:5px; }
.pick-list { max-height:280px; overflow:auto; display:flex; flex-direction:column; gap:5px; }
.pick-list label { flex-direction:row !important; align-items:center; gap:9px !important; padding:8px 10px; border:1px solid var(--line); border-radius:10px; color:var(--text) !important; cursor:pointer; }
.pick-list label:has(input:checked) { border-color:var(--p); background:rgba(251,67,40,.07); }
.pick-list input { width:auto; }
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.88); z-index:60; display:flex; align-items:center; justify-content:center; cursor:zoom-out; }
.lightbox img { max-width:94vw; max-height:94vh; border-radius:8px; }

/* Avisos */
#toasts { position:fixed; right:18px; bottom:18px; display:flex; flex-direction:column; gap:8px; z-index:70; }
.toast { background:#1c1c21; border:1px solid var(--line2); border-left:3px solid var(--p); border-radius:10px; padding:10px 14px; max-width:340px; font-size:13px; box-shadow:0 10px 30px rgba(0,0,0,.4); animation:tin .3s var(--ease); cursor:pointer; }
.toast.ok { border-left-color:var(--ok); } .toast.bad { border-left-color:var(--bad); }
@keyframes tin { from { opacity:0; transform:translateY(8px); } }
.mob-only { display:none; }

/* Notebook pequeno / janela estreita (revisão final, 26/11/2026): com o painel do cliente aberto, a caixa de escrever ficava com ~90 px */
@media (min-width: 901px) and (max-width: 1250px) {
  .col-list { width:270px; }
  .col-side { width:280px; }
}
/* Celular */
@media (max-width: 900px) {
  .col-side { position:fixed; right:0; top:0; bottom:0; z-index:20; width:min(340px, 90vw); background:#0c0c0e; box-shadow:-10px 0 40px rgba(0,0,0,.5); }
}
@media (max-width: 720px) {
  #app { flex-direction:column-reverse; }
  #rail { width:100%; height:62px; flex-direction:row; padding:4px 8px; justify-content:space-around; border-right:0; border-top:1px solid var(--line); }
  .rail-logo, .rail-fill, .rail-me { display:none; }
  .rail-btn { width:auto; flex:1; }
  .view { height:calc(100vh - 62px); }
  .sim-banner { left:0; }
  .col-list { width:100%; border-right:0; }
  .chat-open .col-list { display:none; }
  .col-conv { display:none; }
  .chat-open .col-conv { display:flex; }
  .mob-only { display:inline-flex; }
  .msgs { padding:12px 10px; }
  .m { max-width:88%; }
  .page { padding:16px; }
  .form-grid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation:none !important; transition:none !important; } }
.link-btn { background:none; border:0; color:var(--accent); padding:0; font-size:12px; text-decoration:underline; }
.side-close { display:none; float:right; margin:-6px -6px 0 0; }
@media (max-width: 900px) { .side-close { display:inline-flex; } .sim-on .col-side { padding-top:34px; } }

/* Fotos, informações e menções */
.avatar { position:relative; }
.avatar img.pic { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.avatar.xl { width:96px; height:96px; font-size:32px; }
#convAvatar, .conv-title { cursor:pointer; }
.msgs .m.in.g { padding-left:34px; }
.m-av { position:absolute; left:0; top:0; width:26px !important; height:26px !important; font-size:10px !important; }
.mention { color:#7fb2ff; font-weight:600; }
.m.out .mention { color:#ffb08f; }
.side-tabs { display:flex; margin-bottom:14px; }
.side-tabs button { flex:1; }
.info-top { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; padding:6px 0 4px; }
.info-top b { font-size:17px; margin-top:4px; }
.info-desc { white-space:pre-wrap; line-height:1.45; font-size:13px; }
.info-media { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; }
.info-media img, .info-media .im-v { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; cursor:pointer; background:#1a1a1e; }
.info-media .im-v { display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:22px; border:1px solid var(--line); }
.info-media .im-v span { font-size:10px; color:var(--muted); margin-top:3px; }
.ppl { display:flex; align-items:center; gap:10px; padding:7px 6px; border-radius:10px; cursor:pointer; }
.ppl:hover { background:rgba(255,255,255,.04); }
.ppl-t { flex:1; min-width:0; display:flex; flex-direction:column; }
.ppl-t b { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.adm { font-size:11px; color:var(--ok); border:1px solid rgba(63,191,145,.4); border-radius:99px; padding:0 7px; }
.composer { position:relative; }
.mention-box { position:absolute; left:62px; bottom:calc(100% - 4px); width:min(340px, calc(100% - 80px)); max-height:300px; overflow:auto; background:#1c1c21; border:1px solid var(--line2); border-radius:12px; padding:4px; box-shadow:0 -10px 30px rgba(0,0,0,.45); z-index:6; }
.mb-it { display:flex; align-items:center; gap:10px; padding:7px 8px; border-radius:9px; cursor:pointer; }
.mb-it > div:last-child { display:flex; flex-direction:column; min-width:0; }
.mb-it b { font-size:13px; font-weight:600; }
.mb-it.on, .mb-it:hover { background:rgba(251,67,40,.12); }

/* ---------- Ícones de linha (substituem os emojis) — desenhos em #icSprite ---------- */
.ic { width:1.12em; height:1.12em; vertical-align:-0.2em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; display:inline-block; }
.icon-btn .ic { width:19px; height:19px; vertical-align:middle; }
.im-v .ic { width:22px; height:22px; }
.doc > span .ic { width:24px; height:24px; }
.ap-change .ic { color:#f5b942; }

/* ---------- Como o WhatsApp: menu da mensagem, reações, seleção, encaminhar, áudio, informações ---------- */
.m-chev { position:absolute; top:3px; right:3px; width:24px; height:22px; border:0; border-radius:7px; display:none; align-items:center; justify-content:center; color:var(--muted); background:linear-gradient(90deg, transparent, var(--bubble-in) 35%); z-index:2; padding:0; }
.m.out .m-chev { background:linear-gradient(90deg, transparent, var(--bubble-out) 35%); }
.m-chev .ic { width:17px; height:17px; }
.m:hover .m-chev, .m-chev:focus-visible { display:flex; }
.m-chev:hover { color:var(--text); }
.m-side { position:absolute; top:4px; display:none; gap:2px; z-index:2; }
.m.in .m-side { left:calc(100% + 6px); } .m.out .m-side { right:calc(100% + 6px); flex-direction:row-reverse; }
.m:hover .m-side { display:flex; }
.m-side button { width:30px; height:30px; border-radius:50%; border:1px solid var(--line2); background:#1c1c21; color:var(--muted); display:flex; align-items:center; justify-content:center; padding:0; }
.m-side button:hover { color:var(--text); background:#26262c; }
.m-side .ic { width:16px; height:16px; }
.fwd { font-size:12px; color:var(--muted); font-style:italic; display:flex; align-items:center; gap:4px; margin-bottom:2px; }
.fwd .ic { width:12px; height:12px; }
.txt.del { color:var(--muted); font-style:italic; display:flex; align-items:center; gap:6px; }
.meta .ic { width:11px; height:11px; vertical-align:-1px; color:var(--warn); fill:currentColor; }
.reacts { cursor:pointer; }
.reacts span { display:inline-flex; align-items:center; gap:3px; padding:1px 7px; font-size:13px; }
.reacts small { font-size:11px; color:var(--muted); }
.reacts:hover span { border-color:var(--p); }
/* Áudio compacto (v0.15.5): o tempo fica embaixo da barra, na mesma linha do horário da mensagem */
.audp { display:grid; grid-template-columns:32px minmax(0,1fr) 36px; align-items:center; column-gap:8px; width:250px; max-width:100%; position:relative; padding-bottom:10px; }
.au-play { width:32px; height:32px; padding:0; border:0; border-radius:50%; background:var(--p); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.au-play svg { width:18px; height:18px; fill:currentColor; }
.audp input.au-bar { -webkit-appearance:none; appearance:none; width:100%; height:20px; min-height:0; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; cursor:pointer; --p-au:0%; }
.au-bar::-webkit-slider-runnable-track { height:4px; border-radius:4px; background:linear-gradient(to right, var(--accent) var(--p-au), rgba(255,255,255,.18) var(--p-au)); }
.au-bar::-webkit-slider-thumb { -webkit-appearance:none; width:12px; height:12px; margin-top:-4px; border:0; border-radius:50%; background:var(--accent); }
.au-bar::-moz-range-track { height:4px; border-radius:4px; background:rgba(255,255,255,.18); }
.au-bar::-moz-range-progress { height:4px; border-radius:4px; background:var(--accent); }
.au-bar::-moz-range-thumb { width:12px; height:12px; border:0; border-radius:50%; background:var(--accent); }
.au-speed { padding:2px 0; border:1px solid var(--line2); border-radius:99px; background:rgba(255,255,255,.04); color:var(--muted); font-family:inherit; font-size:11px; font-weight:700; cursor:pointer; }
.au-speed:hover { color:var(--text); border-color:var(--p); }
.au-time { position:absolute; left:40px; bottom:-2px; font-size:11px; line-height:15px; color:var(--muted); }
.bubble > .audp + .meta { margin-top:-13px; line-height:15px; }
.bubble > .audp + .meta:has(.m-task) { margin-top:3px; line-height:18px; }
.m:has(> .m-check) .audp { pointer-events:none; } /* selecionando várias: o clique marca a mensagem */

/* janelinha flutuante */
.pop { position:fixed; z-index:60; background:#1c1c21; border:1px solid var(--line2); border-radius:14px; box-shadow:0 14px 40px rgba(0,0,0,.55); padding:6px; animation:popIn .14s var(--ease); max-width:calc(100vw - 16px); }
@keyframes popIn { from { opacity:0; transform:translateY(-4px) scale(.98); } to { opacity:1; transform:none; } }
.pop-menu { min-width:230px; padding:6px 0; }
.mm-it { display:flex; align-items:center; gap:12px; width:100%; padding:8px 16px; border:0; background:none; color:var(--text); font-size:14px; text-align:left; text-decoration:none; cursor:pointer; }
.mm-it:hover { background:rgba(255,255,255,.06); }
.mm-it .ic { width:17px; height:17px; color:var(--muted); }
.mm-it.bad, .mm-it.bad .ic { color:var(--bad); }
.mm-sep { height:1px; background:var(--line2); margin:5px 0; }
.react-quick { display:flex; gap:2px; align-items:center; }
.react-quick button, .emo-grid button { border:0; background:none; font-size:24px; width:42px; height:42px; border-radius:50%; padding:0; cursor:pointer; transition:transform .12s; }
.react-quick button:hover, .emo-grid button:hover { background:rgba(255,255,255,.08); transform:scale(1.12); }
.react-quick button.on { background:rgba(251,67,40,.22); }
.react-quick .more { font-size:20px; color:var(--muted); background:rgba(255,255,255,.06); }
.pop.wide { width:340px; }
.emo-grid { display:grid; grid-template-columns:repeat(8, 1fr); max-height:260px; overflow:auto; }
.emo-grid button { font-size:21px; width:38px; height:38px; }
.pop-list { min-width:230px; max-height:320px; overflow:auto; }
.pop-title { font-size:12px; color:var(--muted); padding:4px 8px 6px; }
.pop-row { display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:9px; }
.pop-row div { display:flex; flex-direction:column; font-size:13px; }
.pop-row.mine { cursor:pointer; } .pop-row.mine:hover { background:rgba(255,255,255,.06); }
.pop-emo { font-size:20px; }

/* seleção de várias mensagens */
.msgs.selecting .m { cursor:pointer; padding-left:34px; }
.msgs.selecting .m.in.g { padding-left:68px; }
.msgs.selecting .m.out { align-self:stretch; max-width:none; }
.m-check { position:absolute; left:0; top:50%; transform:translateY(-50%); width:20px; height:20px; border-radius:6px; border:2px solid var(--line2); display:flex; align-items:center; justify-content:center; color:#fff; }
.m.picked .m-check { background:var(--p); border-color:var(--p); }
.m-check .ic { width:15px; height:15px; }
.m.picked .bubble { box-shadow:0 0 0 2px rgba(251,67,40,.35); }
.sel-bar { display:flex; align-items:center; gap:12px; padding:10px 14px 14px; border-top:1px solid var(--line); }
.sel-bar b { flex:1; font-size:14px; }
.sel-acts { display:flex; gap:6px; align-items:center; }
.sel-acts .icon-btn:disabled, .sel-acts .btn:disabled { opacity:.35; cursor:not-allowed; }

/* caixa de mensagem: microfone e gravação */
.mic-btn { color:var(--text); background:var(--grad) !important; border-color:transparent !important; border-radius:50% !important; }
.mic-btn .ic { color:#fff; }
.composer.recording .c-norm { display:none !important; }
.rec-bar { flex:1; display:flex; align-items:center; gap:10px; height:40px; }
.rec-dot { width:10px; height:10px; border-radius:50%; background:#f43f3f; animation:recBlink 1s infinite; }
@keyframes recBlink { 50% { opacity:.25; } }
#recTime { font-variant-numeric:tabular-nums; min-width:38px; }
.rec-wave { flex:1; display:flex; align-items:center; gap:3px; height:28px; overflow:hidden; }
.rec-wave i { width:3px; height:4px; border-radius:2px; background:var(--accent); transition:height .1s; }
.rec-bar .send .ic { width:16px; height:16px; vertical-align:-3px; }

/* encaminhar */
.fw-picked { display:flex; flex-wrap:wrap; gap:5px; margin:6px 0; }
.fw-picked:empty { display:none; }
.fw-list { max-height:320px; }
.fw-row .avatar { flex:none; }
.btn.danger { background:#d6363b; }

/* informações (como no WhatsApp) */
.info-acts { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin:14px 0 10px; }
.info-acts button { display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 4px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.03); color:var(--text); font-size:12px; }
.info-acts button:hover { background:rgba(255,255,255,.07); }
.info-acts .ic { width:20px; height:20px; color:var(--accent); }
.info-card { border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:14px; padding:12px; margin-bottom:10px; }
.info-card.list { padding:4px 0; }
.info-card.list .info-media { padding:2px 12px 8px; }
.info-lbl { font-size:12px; color:var(--muted); margin-bottom:6px; }
.info-desc.clamp { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.info-created { font-size:12px; margin-top:8px; }
.info-row { display:flex; align-items:center; gap:12px; width:100%; padding:11px 12px; border:0; background:none; color:var(--text); font-size:14px; text-align:left; }
.info-row:hover { background:rgba(255,255,255,.04); }
.info-row span { flex:1; } .info-row b { font-weight:500; color:var(--muted); font-size:13px; }
.info-row .ic { width:18px; height:18px; color:var(--muted); }
.info-top a { color:var(--ok); text-decoration:none; }
.im-t { position:relative; overflow:hidden; padding:0 !important; }
.im-t img { width:100%; height:100%; object-fit:cover; }
.im-t .ic { position:absolute; right:4px; bottom:4px; width:14px !important; height:14px !important; color:#fff; }
.adm { font-size:11px; color:var(--ok); border:1px solid rgba(63,191,145,.4); border-radius:99px; padding:1px 7px; white-space:nowrap; }
.info-sub { display:flex; align-items:center; gap:8px; margin:0 0 10px; }
.info-sub b { font-size:15px; }
.gal-tabs { margin-bottom:10px; }
.gal-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; }
.gal-it { position:relative; aspect-ratio:1; border-radius:8px; overflow:hidden; background:#1a1a1e; cursor:pointer; border:1px solid var(--line); }
.gal-it img { width:100%; height:100%; object-fit:cover; display:block; }
.gal-v { display:flex; align-items:center; justify-content:center; height:100%; color:var(--muted); }
.gal-badge { position:absolute; left:4px; bottom:4px; font-size:11px; color:#fff; background:rgba(0,0,0,.6); border-radius:99px; padding:1px 6px; display:flex; align-items:center; gap:3px; }
.gal-badge .ic { width:11px; height:11px; }
.gal-doc { display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid var(--line); }
.gd-ic .ic { width:22px; height:22px; color:var(--accent); }
.gd-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; cursor:pointer; font-size:13px; }
.gd-t b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gd-t a { color:var(--text); text-decoration:none; }
.gd-url { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.gd-t .muted a { color:var(--accent); }
.hit { padding:9px 6px; border-bottom:1px solid var(--line); cursor:pointer; border-radius:8px; }
.hit:hover { background:rgba(255,255,255,.04); }
.hit-h { display:flex; justify-content:space-between; gap:8px; font-size:13px; }
.hit-t { font-size:13px; margin-top:3px; color:#d8d4dc; overflow-wrap:anywhere; }
.hit mark { background:rgba(251,67,40,.35); color:var(--text); border-radius:3px; padding:0 1px; }
.sr-body { margin-top:8px; }
.ci-mute .ic { width:14px; height:14px; color:var(--muted); }

@media (max-width: 720px) {
  .m-side { position:static; display:flex; margin-top:3px; }
  .m.out .m-side { flex-direction:row; }
  .m-chev { display:flex; }
  .info-acts button { font-size:11px; }
}
.msgs.selecting .m-av { left:34px; }
.msgs.selecting .m.gap.in.g .m-check { top:20px; transform:none; }
/* "Parece aprovação" (cliente escreveu aprovado sem responder ao material) */
.hint-tag { margin-top:4px; border-radius:10px; padding:7px 9px; font-size:12px; border:1px solid rgba(245,176,65,.5); background:rgba(245,176,65,.08); max-width:100%; }
.hint-tag b { display:flex; align-items:center; gap:5px; font-size:13px; margin-bottom:2px; }
.hint-tag b .ic { color:var(--warn); }
.hint-tag.done { border-color:var(--line2); background:rgba(255,255,255,.03); color:var(--muted); display:flex; align-items:center; gap:5px; }
.hint-tag.done b { display:inline; margin:0; color:var(--text); }
.hint-tag.change { border-color:rgba(248,113,113,.5); background:rgba(248,113,113,.07); }
.hint-tag.change b .ic { color:var(--bad); }
.hint-tag.change .btn .muted { font-weight:400; } .hint-tag.change .btn.danger .muted { color:rgba(255,255,255,.8); }
#apFilter .badge { position:static; margin-left:4px; }
/* Outros números da ORYA */
.who.team { color:var(--p); display:flex; align-items:center; gap:6px; }
.team-tag { font-size:10px; font-weight:600; color:var(--p); border:1px solid rgba(251,67,40,.45); border-radius:99px; padding:0 6px; }
.adm.team-tag { color:var(--p); border-color:rgba(251,67,40,.45); margin-right:4px; }
.team-row { display:grid; grid-template-columns:1fr 1.3fr 1.2fr auto; gap:6px; margin-bottom:6px; align-items:center; }
@media (max-width: 720px) { .team-row { grid-template-columns:1fr; } }
.composer .ai-btn { color:#FB4328; }

.hint-tag .ap-row { align-items:center; }
.link-btn.hint-no { color:var(--muted); text-decoration:none; padding:4px 6px; } .link-btn.hint-no:hover { color:var(--text); }

/* Mensagem oculta para a equipe (só o administrador vê) */
.m.hid .bubble, .m.hid > div:not(.hid-tag) { opacity:.55; }
.hid-tag { margin-top:3px; font-size:12px; color:var(--muted); display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.hid-tag .ic { width:12px; height:12px; }
.hid-tag .link-btn { color:var(--accent); text-decoration:none; font-size:12px; }
/* Conteúdo original de mensagem apagada (só administradores) */
.log-box { margin-top:5px; padding:6px 8px; border-radius:8px; border:1px dashed var(--line2); background:rgba(0,0,0,.2); font-size:12px; color:var(--muted); }
.log-box .ic { width:12px; height:12px; vertical-align:-2px; }
.log-box img { display:block; max-width:120px; border-radius:6px; margin-top:5px; }
.log-txt { color:var(--text); margin-top:3px; white-space:pre-wrap; word-break:break-word; font-size:13px; }
/* Tela Registro */
.reg-item { border:1px solid var(--line2); border-left:3px solid var(--muted); border-radius:10px; padding:9px 12px; background:rgba(255,255,255,.03); margin-bottom:8px; }
.reg-item.apagada { border-left-color:var(--bad); } .reg-item.oculta { border-left-color:var(--warn); } .reg-item.undone { opacity:.55; }
.reg-top { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; font-size:13px; }
.reg-pill { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.02em; color:var(--muted); }
.reg-item.apagada .reg-pill { color:var(--bad); } .reg-item.oculta .reg-pill { color:var(--warn); }
.reg-open { margin-left:auto; color:var(--accent); text-decoration:none; font-size:12px; }
.reg-body { display:flex; gap:10px; margin-top:5px; font-size:13px; }
.reg-body img { width:64px; border-radius:6px; flex:none; }

/* Horário na mesma linha do fim do texto (como no WhatsApp): o texto ganha um espaço invisível do tamanho
   do horário no final e o horário sobe para essa última linha. Texto que enche a linha empurra o espaço
   para a linha de baixo, e o horário vai junto. */
.bubble { min-width:0; }
.bubble > .txt::after { content:""; display:inline-block; width:var(--meta-w, 42px); height:1px; }
.bubble > .txt + .meta { margin-top:-15px; line-height:15px; }
.bubble > .txt.del + .meta { margin-top:-15px; }
.bubble > .txt + .meta:has(.m-task) { margin-top:3px; line-height:18px; } /* com o selo “📌 Tarefa” o rodapé fica numa linha própria (antes subia e cobria o fim do texto) */
.bubble:has(> .meta .ic) { --meta-w:56px; } /* favorita: estrela antes do horário */
.bubble:has(> .meta .m-task) { --meta-w:0px; }

/* Menu do botão ✨ (ajuda da IA) */
.ai-menu { width:330px; }
.ai-pop .ai-h { display:flex; align-items:center; gap:6px; font-weight:600; font-size:13px; padding:6px 8px 4px; }
.ai-pop .ai-h .ic { color:var(--p); }
.ai-pop .ai-note { font-size:12px; color:var(--accent); padding:0 8px 4px; display:flex; align-items:center; gap:5px; }
.ai-pop .ai-note .ic { width:12px; height:12px; }
.ai-pop .ai-g span { display:flex; flex-direction:column; line-height:1.25; text-align:left; }
.ai-pop .ai-g small { color:var(--muted); font-size:11px; font-weight:400; }
.ai-pop .ai-free { display:flex; gap:6px; padding:8px; border-top:1px solid var(--line); margin-top:4px; }
.ai-pop .ai-free input { font-size:13px; padding:7px 9px; }
.ai-pop .ai-free .btn { flex:none; padding:6px 10px; }

/* Sugestão da IA dentro do sistema */
.ai-res { white-space:pre-wrap; background:var(--bg2, rgba(127,127,127,.12)); border-radius:10px; padding:10px 12px; font-size:14px; line-height:1.45; flex:none; }
.ai-warn { display:flex; gap:6px; align-items:flex-start; font-size:13px; color:var(--accent); margin:8px 0 2px; }
.ai-warn .ic { width:14px; height:14px; flex:none; margin-top:2px; }

/* Figurinha: tamanho do WhatsApp (~150px), sem fundo preto; sem balão quando não responde a nada */
.media.stk img { width:150px; height:150px; max-width:100%; min-width:0; min-height:0; max-height:none; object-fit:contain; background:transparent; margin:0 0 2px; border-radius:0; cursor:zoom-in; }
.m.stk-only .bubble { background:transparent; border-color:transparent; padding:2px 4px 2px; min-width:0; }
.m.stk-only .bubble .meta { color:var(--muted); }

/* ---- Conexão: visual mais limpo ---- */
#connectionView .widget { padding:22px 24px; }
.cx-status { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.cx-ico { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; flex:none; background:rgba(255,255,255,.05); color:var(--muted); }
.cx-ico .ic { width:23px; height:23px; }
.cx-ico.open { background:color-mix(in srgb, var(--ok) 15%, transparent); color:var(--ok); }
.cx-ico.connecting { background:color-mix(in srgb, var(--warn) 15%, transparent); color:var(--warn); }
.cx-ico.off { background:color-mix(in srgb, var(--bad) 13%, transparent); color:var(--bad); }
.cx-info { flex:1; min-width:200px; }
.cx-t { font-weight:600; font-size:16px; }
.cx-s { display:flex; align-items:center; gap:7px; font-size:13px; color:var(--muted); margin-top:3px; }
.cx-dot { width:7px; height:7px; border-radius:50%; background:#666; flex:none; }
.cx-dot.open { background:var(--ok); } .cx-dot.connecting { background:var(--warn); } .cx-dot.off { background:var(--bad); }
.cx-acts { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.cx-acts .ic { width:14px; height:14px; margin-right:5px; vertical-align:-2px; }
.btn.ghost.danger-h:hover { color:var(--bad); border-color:color-mix(in srgb, var(--bad) 45%, transparent); background:transparent; }
#waBox > .muted, #waBox > .error { margin:14px 0 0; font-size:13px; line-height:1.5; }
#qrBox:not(:empty) { margin-top:16px; }
#prefBox h3, #eqCfg h3 { margin:0 0 4px; font-size:15px; font-weight:600; letter-spacing:-.005em; }
#prefBox h3:not(:first-child), #eqCfg h3:not(:first-child) { margin-top:28px; padding-top:26px; border-top:1px solid var(--line); }
#prefBox p.muted, #eqCfg p.muted { margin:0 0 14px; font-size:13px; line-height:1.55; max-width:64ch; }
#prefBox label.muted, #eqCfg label.muted { display:flex; flex-direction:column; gap:6px; margin:12px 0 0; font-size:13px; }
#prefBox .row, #eqCfg .row { margin-top:14px; }
#prefBox .switch, #eqCfg .switch { display:flex; align-items:flex-start; gap:12px; margin:14px 0 0; cursor:pointer; font-size:14px; line-height:1.4; }
#prefBox .switch small, #eqCfg .switch small { display:block; margin-top:2px; font-size:12px; color:var(--muted); }
#prefBox .switch input[type=checkbox], #eqCfg .switch input[type=checkbox] { appearance:none; -webkit-appearance:none; flex:none; width:34px; height:20px; padding:0; margin:1px 0 0; border-radius:99px; border:0; background:rgba(255,255,255,.14); position:relative; cursor:pointer; transition:background .2s; }
#prefBox .switch input[type=checkbox]::after, #eqCfg .switch input[type=checkbox]::after { content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .2s; }
#prefBox .switch input[type=checkbox]:checked, #eqCfg .switch input[type=checkbox]:checked { background:var(--p); }
#prefBox .switch input[type=checkbox]:checked::after, #eqCfg .switch input[type=checkbox]:checked::after { transform:translateX(14px); }
#prefBox .switch input[type=checkbox]:disabled, #eqCfg .switch input[type=checkbox]:disabled { opacity:.5; cursor:default; }
.cx-grid { display:grid; grid-template-columns:1fr 150px; gap:12px; }
.cx-more { margin-top:8px; }
.cx-more > summary { cursor:pointer; font-size:13px; color:var(--muted); list-style:none; display:inline-flex; align-items:center; gap:6px; padding:4px 0; user-select:none; }
.cx-more > summary::-webkit-details-marker { display:none; }
.cx-more > summary::before { content:"›"; display:inline-block; transition:transform .15s; font-size:16px; line-height:1; }
.cx-more[open] > summary::before { transform:rotate(90deg); }
.cx-more > summary:hover { color:var(--text); }
.cx-test { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:18px; padding-top:16px; border-top:1px dashed var(--line); }
.cx-test select { width:auto; min-width:150px; padding:6px 10px; font-size:13px; border-radius:8px; }
@media (max-width:720px) { .cx-grid { grid-template-columns:1fr; } }

/* Conexão: etiquetas de quem vê (só administrador enxerga) */
.tg { display:inline-block; vertical-align:middle; margin-left:8px; padding:2px 9px; border-radius:99px; font-size:11px; font-weight:600; letter-spacing:.2px; white-space:nowrap; border:1px solid transparent; font-family:inherit; text-transform:none; }
.tg-adm { background:color-mix(in srgb, #FB4328 16%, transparent); color:#FB4328; border-color:color-mix(in srgb, #FB4328 45%, transparent); }
.tg-mix { background:color-mix(in srgb, var(--warn) 14%, transparent); color:var(--warn); border-color:color-mix(in srgb, var(--warn) 40%, transparent); }
.tg-all { background:color-mix(in srgb, var(--ok) 14%, transparent); color:var(--ok); border-color:color-mix(in srgb, var(--ok) 40%, transparent); }
.tg-top { margin-bottom:10px; } .tg-top .tg { margin-left:0; }
.cx-leg, .cx-as { border:1px dashed var(--line); border-radius:12px; padding:12px 14px; margin-bottom:14px; font-size:13px; color:var(--muted); display:flex; flex-direction:column; gap:7px; }
.cx-leg-t { color:var(--text); font-weight:600; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.cx-leg-i .tg { margin:0 8px 0 0; }
.cx-as { border-style:solid; border-color:#FB4328; color:var(--text); flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; }

/* Caixas de seleção: seta própria com folga da borda direita */
select { -webkit-appearance:none; appearance:none; padding-right:38px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238a8690' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:12px 8px; }
select:disabled { cursor:not-allowed; }
.cx-test select { padding-right:32px; background-position:right 11px center; }

/* Informações do grupo — acabamento parecido com o WhatsApp Web */
.info-card.list .info-row + .info-row, .info-card.list .info-media + .info-row { border-top:1px solid var(--line); }
.info-row.static { cursor:default; } .info-row.static:hover { background:none; }
.info-row.green, .info-row.green .ic { color:var(--ok); }
a.info-row { text-decoration:none; box-sizing:border-box; }
.info-row .ir-ic { flex:none; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.07); display:flex; align-items:center; justify-content:center; }
.info-row .ir-ic .ic { color:var(--text); width:18px; height:18px; }
.info-row > span:not(.ir-ic) { text-align:left; }
.ppl-head { display:flex; align-items:center; justify-content:space-between; padding:6px 8px 4px 12px; }
.ppl-head b { font-size:14px; }
#pplSearch { margin:2px 12px 6px; width:calc(100% - 24px); box-sizing:border-box; }
#pplList .ppl { padding:9px 12px; border-radius:0; }
#pplList .ppl + .ppl { border-top:1px solid var(--line); }
#pplList .ppl.me { cursor:default; } #pplList .ppl.me:hover { background:none; }
.ppl .adm { font-size:11px; color:var(--muted); border:0; padding:0; }
.ppl .adm.team-tag { color:var(--p); border:1px solid rgba(251,67,40,.45); padding:0 6px; }
.ppl-more { opacity:.55; } .ppl:hover .ppl-more, .ppl-more:focus { opacity:1; }
.ppl-t b { font-size:14px; } .ppl-t .muted { font-size:12px; }
.info-created.foot { text-align:center; margin:4px 0 16px; }
.chg { display:flex; gap:10px; padding:10px 12px; font-size:13px; align-items:flex-start; }
.chg + .chg { border-top:1px solid var(--line); }
.chg .muted { font-size:12px; margin-top:2px; }
.chg-i { flex:none; width:28px; height:28px; border-radius:50%; background:rgba(255,255,255,.07); display:flex; align-items:center; justify-content:center; }
.chg-i .ic { width:14px; height:14px; } .chg-i.add .ic { color:var(--ok); } .chg-i.remove .ic { color:var(--bad); } .chg-i.promote .ic { color:var(--p); }
.ci-fav .ic { width:13px; height:13px; color:#f5b041; fill:#f5b041; }
.ci-pin .ic { width:13px; height:13px; opacity:.6; }
#chatItems li { position:relative; }
#chatItems li .ci-more { position:absolute; right:8px; top:8px; width:22px; height:22px; padding:0; border:0; border-radius:50%; background:inherit; color:inherit; opacity:.7; display:none; align-items:center; justify-content:center; cursor:pointer; }
#chatItems li .ci-more .ic { width:14px; height:14px; transform:rotate(90deg); }
#chatItems li:hover .ci-more { display:flex; }
#chatItems li:hover .ci-time { visibility:hidden; }
@media (hover:none) { #chatItems li .ci-more { display:none !important; } }
#chatFilter button { padding:5px 9px; }
.info-row > svg.ic:last-child { transform:rotate(-90deg); }
.info-row b { white-space:nowrap; }

.info-row.cg > span { display:flex; flex-direction:column; min-width:0; text-align:left; }
.info-row.cg .cg-n { color:var(--text); font-weight:500; font-size:14px; }
.info-row.cg small { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.info-row.cg .avatar { width:38px; height:38px; }
#commonGroups .ppl-head { padding-left:4px; }

/* Equipe */
.eq-list { display:flex; flex-direction:column; gap:8px; max-width:640px; }
.eq-warn { color:#ffd2a8; background:#2a1a10; border:1px solid #6b3a1f; border-radius:10px; padding:9px 13px; font-size:13px; }
.eq-row { display:flex; align-items:center; gap:12px; padding:9px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.03); }
.eq-who { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.eq-nm { display:flex; flex-direction:column; line-height:1.25; min-width:0; } .eq-nm small { color:var(--muted); font-size:12px; }
.eq-in { width:170px; background:var(--card2); border:1px solid var(--line2); color:var(--text); border-radius:8px; padding:7px 10px; font:inherit; }
.eq-in:focus { outline:none; border-color:var(--p); }
.eq-ok { color:var(--ok); font-size:13px; width:58px; }
.eq-save { width:58px; }

/* Testes de envio (relatórios) */
.rp-tests { display:grid; gap:12px; margin-top:16px; padding-top:16px; border-top:1px dashed var(--line); }
.rp-card { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:rgba(255,255,255,.025); }
.rp-h { display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; margin-bottom:10px; }
.rp-h .link-btn { margin-left:auto; font-size:13px; font-weight:400; }
.rp-btns { display:flex; flex-wrap:wrap; gap:8px; }
.rp-people { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:8px; }
.rp-p { display:flex; align-items:center; gap:8px; padding:7px 10px; border:1px solid var(--line); border-radius:10px; }
.rp-pn { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; } .rp-pn small { color:var(--muted); font-size:12px; }

/* Campos de data e hora: ícone claro (tema escuro) e com folga da borda */
:root { color-scheme: dark; }
input[type="date"], input[type="time"], input[type="month"] { padding-right:10px; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator, input[type="month"]::-webkit-calendar-picker-indicator { margin-left:6px; margin-right:2px; padding:4px; border-radius:6px; cursor:pointer; opacity:.75; }
input[type="date"]::-webkit-calendar-picker-indicator:hover, input[type="time"]::-webkit-calendar-picker-indicator:hover, input[type="month"]::-webkit-calendar-picker-indicator:hover { opacity:1; background:rgba(255,255,255,.08); }

/* Celular: campos com letra de 16 px. Abaixo disso o Safari do iPhone dá zoom sozinho ao tocar no campo e a página fica ampliada e deslocada depois. */
@media (max-width:800px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { font-size:16px !important; }
}

/* ---------- Revisão de interface (21/11/2026) ---------- */
/* páginas mais largas (antes usavam menos da metade da tela) */
.widget { max-width:980px; }
.eq-list { max-width:820px; }
#eqCfg { max-width:820px; margin-top:22px; padding:22px 24px; }
.page-hint { max-width:980px; }
/* Conexão: abas e cadeado no lugar dos selos */
.cx-tabs { margin:4px 0 14px; align-self:flex-start; }
.cx-off { display:none !important; }
.cx-leg-1 { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; max-width:980px; }
.tg-lock { display:inline-flex; align-items:center; gap:4px; margin-left:8px; font-size:12px; font-weight:500; color:var(--muted); letter-spacing:0; text-transform:none; vertical-align:middle; }
.tg-lock .ic { width:13px; height:13px; }
.cx-pane h3:not(:first-child) { margin-top:26px; padding-top:20px; border-top:1px solid var(--line); }
/* lista de conversas mais legível */
.ci-name { font-size:14px; } .ci-last { font-size:13px; } .ci-time { font-size:12px; }
.rail-logo { width:40px; height:40px; }
/* nome do app embaixo do logo */
.app-tag { display:block; margin:-8px 0 8px; font:700 10px/1 "Space Grotesk",system-ui,sans-serif; letter-spacing:.12em; color:#ff8a5c; text-transform:uppercase; }
@media (max-width:900px) { .app-tag { display:none; } }
/* celular */
@media (max-width: 720px) {
  #eqRail, #regRail { display:none !important; } /* Equipe e Registro: só no computador (menu de baixo cabia 8 itens cortados) */
  .rail-btn { font-size:11px; }
  #convSub { display:none; }
  #clientChip { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .m-side { display:none !important; } /* responder/reagir ficam no menu ˅ da mensagem */
  .bubble { padding-right:30px; }
}
#cxLegend .cx-leg.cx-leg-1 { flex-direction:row; justify-content:space-between; align-items:center; text-align:left; padding:10px 14px; }
@media (max-width: 720px) {
  /* cliente ligado: no topo fica só o ícone (o nome do cliente está no painel), para o nome do grupo caber */
  #clientChip.linked { font-size:0; max-width:none; padding:6px 9px; gap:0; }
  #clientChip.linked .ic { width:16px; height:16px; }
}

/* Agendar a gravação pelo WhatsApp */
.sched-bar { display:flex; align-items:center; gap:10px; margin:0 14px 6px; padding:8px 10px; border-radius:11px; border:1px solid var(--line2); background:rgba(245,176,65,.08); }
.sched-bar.ok { background:rgba(63,191,145,.10); border-color:rgba(63,191,145,.35); } .sched-bar.bad { background:rgba(248,113,113,.08); }
.sched-bar > div { flex:1; min-width:0; display:flex; flex-direction:column; font-size:13px; } .sched-bar span { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sched-bar .ic { color:var(--warn); } .sched-bar.ok .ic { color:var(--ok); }
.sched-line { display:flex; gap:6px; align-items:flex-start; font-size:13px; margin:6px 0; color:var(--warn); } .sched-line.ok { color:var(--ok); } .sched-line.bad { color:var(--bad); }
.sched-line:not(.ok):not(.bad):not(.warn) { color:var(--muted); } .sched-line .ic { flex:none; margin-top:2px; }
.sched-warn { display:flex; gap:6px; font-size:12px; color:var(--warn); margin:6px 0; }
.sched-hist b { font-weight:600; }
.sched-acts { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.sched-ask.ok { border-color:rgba(63,191,145,.4); }
.sched-chk { display:flex; gap:8px; align-items:flex-start; cursor:pointer; } .sched-chk input { width:auto; margin-top:3px; }
.sched-brief { margin-top:6px; } .sched-brief summary { cursor:pointer; color:var(--muted); font-size:12px; }
.brief-text { white-space:pre-wrap; font-size:13px; line-height:1.45; max-height:220px; overflow:auto; margin:6px 0; padding:8px 10px; border-radius:9px; background:rgba(255,255,255,.04); }
.sched-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; } .sched-grid label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.sched-opt { display:flex !important; flex-direction:row !important; align-items:center !important; justify-content:flex-start; text-align:left; gap:8px !important; font-size:13px; color:var(--text); margin:8px 0; } .sched-opt input { width:auto; flex:none; }
.sched-pick { max-height:130px; }

/* Painel Hoje */
.hj-total { font-size:13px; padding:3px 11px; border-radius:99px; background:rgba(255,255,255,.06); }
.hj-body { display:flex; flex-direction:column; gap:18px; max-width:900px; }
.hj-sec h3 { display:flex; align-items:center; gap:8px; font-size:13px; letter-spacing:.08em; text-transform:uppercase; margin:0 0 6px; font-weight:600; }
.hj-sec.bad h3 { color:var(--bad); } .hj-sec.warn h3 { color:var(--warn); } .hj-sec.quiet h3 { color:var(--muted); }
.hj-n { font-style:normal; font-size:11px; padding:1px 8px; border-radius:99px; background:rgba(255,255,255,.08); color:var(--text); }
.hj-hint { font-size:12px; margin:0 0 8px; }
.hj-list { display:flex; flex-direction:column; gap:6px; }
.hj-item { display:flex; gap:12px; align-items:center; padding:10px 14px; border:1px solid var(--line); border-left-width:3px; border-radius:11px; background:var(--card); cursor:pointer; }
.hj-item:hover { border-color:var(--line2); } .hj-item.bad { border-left-color:var(--bad); } .hj-item.warn { border-left-color:var(--warn); } .hj-item.ok { border-left-color:var(--ok); } .hj-item.quiet { border-left-color:var(--line2); }
.hj-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .hj-main b { font-size:14px; font-weight:600; }
.hj-main span { font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hj-tag { flex:none; font-size:11px; padding:2px 9px; border-radius:99px; background:rgba(255,255,255,.06); color:#cfcbd2; }
.hj-tag.bad { background:rgba(248,113,113,.15); color:var(--bad); } .hj-tag.warn { background:rgba(245,176,65,.16); color:var(--warn); } .hj-tag.ok { background:rgba(63,191,145,.15); color:var(--ok); }
.hj-more summary { cursor:pointer; color:var(--muted); font-size:13px; margin:4px 0 8px; }
.hj-ok { font-size:15px; line-height:1.6; } .hj-ok .ic { width:28px; height:28px; color:var(--ok); }
.hj-notes { font-size:12px; }

.hj-acts { display:flex; gap:6px; flex:none; }

/* Mensagem vira tarefa */
.m-task { display:inline-flex; align-items:center; gap:3px; font-size:11px; color:var(--accent); text-decoration:none; margin-right:4px; padding:0 6px; border-radius:99px; background:rgba(255,162,76,.12); }
.m-task .ic { width:11px; height:11px; } .m-task:hover { background:rgba(255,162,76,.22); }
.mt-quote { max-height:150px; overflow:auto; font-size:12px; color:var(--muted); white-space:pre-wrap; padding:8px 10px; border-radius:9px; background:rgba(255,255,255,.04); margin:6px 0; }
.mt-modes { display:flex; gap:6px; margin:8px 0; flex-wrap:wrap; } .mt-modes button { flex:1; min-width:120px; }
.mt-modes button.on { border-color:var(--p); background:rgba(251,67,40,.12); color:var(--text); }

/* Modelos de mensagem */
.pop-qr { width:340px; padding:8px; } .qr-pop input { width:100%; margin-bottom:6px; }
#qrList { height:250px; overflow:auto; display:flex; flex-direction:column; gap:4px; margin-bottom:6px; }
.qr-item { display:flex; align-items:center; gap:6px; padding:7px 9px; border:1px solid var(--line); border-radius:10px; cursor:pointer; } .qr-item:hover { border-color:var(--line2); background:rgba(255,255,255,.04); }
.qr-main { flex:1; min-width:0; display:flex; flex-direction:column; } .qr-main b { font-size:13px; } .qr-main span { font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.var-chip { font-size:12px; padding:1px 8px; border-radius:99px; border:1px solid var(--line2); background:rgba(255,255,255,.05); color:var(--accent); cursor:pointer; margin:1px 2px; }
.var-chip:hover { background:rgba(255,162,76,.15); } .var-chip:disabled { opacity:.5; cursor:default; }
.tpl-prev { white-space:pre-wrap; font-size:12px; color:var(--muted); padding:8px 10px; border-radius:9px; background:rgba(255,255,255,.04); margin:6px 0; }

/* Grupo oficial do cliente */
.off-box { margin:8px 0 4px; padding:8px 10px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.02); }
.off-box.on { border-color:rgba(63,191,145,.4); background:rgba(63,191,145,.06); } .off-box.warn { border-color:rgba(245,176,65,.5); background:rgba(245,176,65,.07); }
.off-box .sched-opt { margin:0 0 4px; } .off-box b .ic { width:13px; height:13px; color:var(--accent); }

.sched-hist-h { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:8px 0 2px; }
.sched-hist { max-height:150px; overflow:auto; list-style:none; padding:0; margin:0 0 6px; font-size:12px; color:var(--text); }
.sched-hist li { padding:2px 0; border-bottom:1px dashed var(--line); } .sched-hist .sh-t { color:var(--muted); font-size:11px; margin-right:4px; }

/* ---------- Beta, versão e feedback (23/11/2026) ---------- */
.beta-chip { display:inline-block; font:700 10px/1 "Space Grotesk",system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase; padding:4px 7px; border-radius:99px; background:rgba(251,67,40,.14); color:#ff8a5c; border:1px solid rgba(251,67,40,.45); cursor:pointer; white-space:nowrap; margin:-4px 0 8px; }
#loginForm .beta-chip { align-self:center; cursor:default; margin:-2px 0 2px; font-size:11px; }
#modal.fb-modal { width:600px; }
.fb-ver { font-size:12px; font-weight:700; color:#ff8a5c; margin-left:6px; }
.fb-log { max-height:46vh; overflow:auto; display:grid; gap:12px; } .fb-log ul { margin:6px 0 0; padding-left:18px; display:grid; gap:3px; }
.fb-kinds { display:flex; gap:6px; flex-wrap:wrap; }
.fb-kinds button { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:99px; border:1px solid var(--line2); background:rgba(255,255,255,.03); color:var(--muted); font:inherit; font-weight:600; cursor:pointer; }
.fb-kinds button.on { border-color:#fb4328; color:var(--text); background:rgba(251,67,40,.14); }
.fb-shots { display:flex; gap:8px; flex-wrap:wrap; } .fb-shots:empty { display:none; }
.fb-shot { position:relative; width:108px; height:76px; border-radius:8px; overflow:hidden; border:1px solid var(--line2); }
.fb-shot img { width:100%; height:100%; object-fit:cover; display:block; }
.fb-shot button { position:absolute; top:3px; right:3px; width:22px; height:22px; border-radius:50%; border:0; background:rgba(0,0,0,.75); color:#fff; font-size:15px; line-height:20px; cursor:pointer; padding:0; } .fb-shot button:hover { background:#e00a12; }
.fb-shot-btns { display:flex; gap:8px; flex-wrap:wrap; }

/* Painel Hoje em colunas */
.hj-body { max-width:none; gap:14px; }
.hj-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.hj-kpi { text-align:left; padding:12px 14px; border:1px solid var(--line); border-radius:13px; background:var(--card); display:flex; flex-direction:column; gap:2px; cursor:pointer; color:var(--text); font:inherit; }
.hj-kpi b { font-size:26px; line-height:1.05; } .hj-kpi span { font-size:12px; color:var(--muted); } .hj-kpi small { font-size:11px; color:var(--warn); }
.hj-kpi.bad { border-color:rgba(248,113,113,.45); } .hj-kpi.bad b { color:var(--bad); } .hj-kpi.warn b { color:var(--warn); } .hj-kpi.ok b { color:var(--ok); }
.hj-kpi.zero { opacity:.55; } .hj-kpi:hover { border-color:var(--line2); }
.hj-cols { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
.hj-col { border:1px solid var(--line); border-radius:15px; background:rgba(255,255,255,.02); overflow:hidden; }
.hj-col-h { display:flex; align-items:center; gap:8px; padding:11px 14px; border-bottom:1px solid var(--line); font-size:14px; background:var(--card2,#1a1a1e); }
.hj-col.bad .hj-col-h { box-shadow:inset 0 3px 0 var(--bad); } .hj-col.warn .hj-col-h { box-shadow:inset 0 3px 0 var(--warn); } .hj-col.quiet .hj-col-h { box-shadow:inset 0 3px 0 var(--line2); }
.hj-col-h .ic { width:15px; height:15px; } .hj-col-h .hj-n { margin-left:auto; }
.hj-col-b { padding:10px; display:flex; flex-direction:column; gap:14px; max-height:calc(100vh - 300px); overflow:auto; }
.hj-col-empty { text-align:center; color:var(--muted); font-size:13px; padding:26px 8px; }
.hj-col .hj-sec h3 { font-size:12px; margin:0 0 6px; }
.hj-col .hj-item { padding:9px 11px; gap:6px 8px; flex-wrap:wrap; }
.hj-col .hj-main span { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hj-who { color:var(--text); font-weight:600; }
.hj-notcli { flex:none; display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:500; color:var(--text); background:rgba(255,255,255,.04); border:1px solid var(--line2); border-radius:8px; padding:5px 10px; cursor:pointer; font-family:inherit; transition:background .15s, border-color .15s, color .15s; }
.hj-notcli:hover { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.22); }
.hj-notcli.hj-dismiss { color:var(--ok); border-color:color-mix(in srgb, var(--ok) 40%, transparent); background:color-mix(in srgb, var(--ok) 10%, transparent); }
.hj-notcli.hj-dismiss:hover { background:color-mix(in srgb, var(--ok) 18%, transparent); border-color:var(--ok); }
.hj-more-btn { background:none; border:0; color:var(--accent); font-size:12px; cursor:pointer; padding:4px 2px; text-align:left; font-family:inherit; }
.hj-extra { display:flex; flex-direction:column; gap:6px; } .hj-extra.hidden { display:none; }
.hj-flash { animation:hjFlash 1.3s ease; } @keyframes hjFlash { 0% { box-shadow:0 0 0 2px var(--accent); } 100% { box-shadow:0 0 0 0 transparent; } }
@media (max-width:1180px) { .hj-cols { grid-template-columns:repeat(2,minmax(0,1fr)); } .hj-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } .hj-col-b { max-height:none; } }
@media (max-width:760px) { .hj-cols { grid-template-columns:1fr; } .hj-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.hj-col .hj-acts { flex-basis:100%; } .hj-col .hj-notcli { text-align:left; }
.hj-wacts { display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center; } .hj-col .hj-wacts { flex-basis:100%; margin-top:4px; }
.hj-dismiss { display:inline-flex; align-items:center; gap:4px; } .hj-notcli .ic { width:14px; height:14px; }
.eq-phone { min-width:140px; font-size:13px; } .eq-list { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.sim-on .view.page { padding-top:46px; } /* faixa do simulador (22px) + o respiro normal da página (24px) */
#equipeView > .widget { max-width:820px; width:100%; box-sizing:border-box; } #equipeView > .widget + .widget { margin-top:16px; padding:22px 24px; } #equipeView > .widget h3 { margin:0 0 4px; font-size:15px; font-weight:600; }

/* ---------- Liga/desliga em todo o sistema (pedido do Rafael, 24/11/2026) ----------
   Toda caixinha (input checkbox) vira o botão de ligar e desligar, igual nos dois apps (Flow e Atendimento).
   Para uma caixinha que precise continuar quadrada, use a classe .no-switch. */
input[type="checkbox"]:not(.no-switch) {
  -webkit-appearance:none !important; appearance:none !important; flex:none; display:inline-block; vertical-align:middle;
  width:34px !important; height:20px !important; min-width:34px; padding:0 !important; margin:0 8px 0 0; border:0 !important; border-radius:99px !important;
  background:rgba(255,255,255,.14) !important; position:relative; cursor:pointer; transform:none !important; box-shadow:none !important;
  transition:background .2s; accent-color:auto;
}
input[type="checkbox"]:not(.no-switch)::after {
  content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.35); transition:transform .2s;
}
input[type="checkbox"]:not(.no-switch):checked { background:#fb4328 !important; }
input[type="checkbox"]:not(.no-switch):checked::after { transform:translateX(14px); }
input[type="checkbox"]:not(.no-switch):hover:not(:disabled) { background:rgba(255,255,255,.22) !important; }
input[type="checkbox"]:not(.no-switch):checked:hover:not(:disabled) { background:#ff5a3d !important; }
input[type="checkbox"]:not(.no-switch):focus-visible { outline:2px solid rgba(251,67,40,.6); outline-offset:2px; }
input[type="checkbox"]:not(.no-switch):disabled { opacity:.45; cursor:default; }
@media (prefers-reduced-motion: reduce) { input[type="checkbox"]:not(.no-switch), input[type="checkbox"]:not(.no-switch)::after { transition:none; } }
/* As abas da Conexão movem os blocos de #prefBox para .cx-pane: mesmo arranjo de títulos, textos e liga/desliga */
.cx-pane h3 { margin:0 0 4px; font-size:15px; font-weight:600; letter-spacing:-.005em; }
.cx-pane h3:not(:first-child) { margin-top:28px; padding-top:26px; border-top:1px solid var(--line); }
.cx-pane p.muted { margin:0 0 14px; font-size:13px; line-height:1.55; max-width:64ch; }
.cx-pane label.muted { display:flex; flex-direction:column; gap:6px; margin:12px 0 0; font-size:13px; }
.cx-pane .row { margin-top:14px; }
.cx-pane .switch { display:flex; align-items:flex-start; gap:12px; margin:14px 0 0; cursor:pointer; font-size:14px; line-height:1.4; }
.cx-pane .switch small { display:block; margin-top:2px; font-size:12px; color:var(--muted); }
.switch input[type="checkbox"]:not(.no-switch) { margin:1px 0 0; } /* dentro de .switch o espaço vem do gap */

/* ---------- Padrão Orya (pacote 2 da revisão, 24/11/2026): o mesmo visual do ORYA Flow ----------
   Título da página 26px; abas (.seg) iguais às do Flow (bloco, a ativa em laranja); letras na escala 10/11/12/13/14/16 (sem meio pixel). */
button, input, select, textarea { font-family:inherit; }
button { font-size:13px; }
.page-head h2 { font-size:26px; font-weight:700; letter-spacing:-.02em; }
.seg { gap:2px; padding:3px; border-radius:12px; }
.seg button { padding:7px 14px; border-radius:9px; font-size:13px; transition:background .2s var(--ease), color .2s; }
.seg button:hover { color:var(--text); }
.seg button.on { background:linear-gradient(180deg, rgba(251,67,40,.18), rgba(251,67,40,.08)); color:var(--text); box-shadow:inset 0 0 0 1px rgba(251,67,40,.35), 0 0 18px rgba(251,67,40,.12); }
#chatFilter button, .side-tabs button { padding:5px 10px; font-size:12px; } /* colunas estreitas (lista de conversas e painel lateral): abas compactas */

/* Versão pequena abaixo do selo BETA na lateral */
.beta-ver { display:block; margin:-5px 0 8px; font:500 10px/1 "Space Grotesk",system-ui,sans-serif; color:var(--muted,#8a8a8a); letter-spacing:.03em; text-align:center; }
.beta-ver.hidden { display:none; }

.info-edit { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:2px 0 4px; } .info-edit .btn { display:inline-flex; align-items:center; gap:6px; }

/* Bolinha vermelha de fechar (estilo Mac) no canto da janela */
#modal { position:relative; }
.mac-x { position:absolute; top:12px; right:14px; width:13px; height:13px; padding:0; border:0; border-radius:50%; background:#ff5f57; cursor:pointer; z-index:5; box-shadow:inset 0 0 0 .5px rgba(0,0,0,.25); }
.mac-x::before, .mac-x::after { content:""; position:absolute; left:50%; top:50%; width:7px; height:1.5px; background:rgba(60,0,0,.75); border-radius:1px; opacity:0; transition:opacity .12s; }
.mac-x::before { transform:translate(-50%,-50%) rotate(45deg); } .mac-x::after { transform:translate(-50%,-50%) rotate(-45deg); }
.mac-x:hover::before, .mac-x:hover::after, .mac-x:focus-visible::before, .mac-x:focus-visible::after { opacity:1; }
.mac-x:hover { background:#ff4a41; } .mac-x:focus-visible { outline:2px solid var(--p, #fb4328); outline-offset:2px; }

/* Caixa de seleção no padrão Orya (lista aberta) */
.os-pop { position:fixed; z-index:99999; overflow:auto; padding:6px; background:#141417; border:1px solid rgba(255,255,255,.12); border-radius:12px; box-shadow:0 14px 40px rgba(0,0,0,.55); font:inherit; font-size:14px; color:var(--text,#f4f1ec); }
.os-it { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; cursor:pointer; white-space:nowrap; }
.os-ck { width:14px; flex:none; color:var(--p,#fb4328); font-size:13px; }
.os-it.hov { background:rgba(255,255,255,.07); }
.os-it.on { color:var(--accent,#ffa24c); font-weight:500; }
.os-it.dis { opacity:.4; cursor:default; }
.os-gr { padding:8px 10px 4px; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted,#8f8b86); }
select.os-open { border-color:var(--p,#fb4328); }

/* Caixas de confirmação e de aviso (padrão Orya) */
.oc-ov { position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(4,4,6,.66); backdrop-filter:blur(6px); }
.oc-card { width:440px; max-width:100%; overflow:hidden; background:#141417; border:1px solid rgba(255,255,255,.12); border-radius:16px; box-shadow:0 24px 70px rgba(0,0,0,.6); font:inherit; color:var(--text,#f4f1ec); }
.oc-title { padding:20px 22px 0; font-size:17px; font-weight:600; }
.oc-msg { padding:12px 22px 4px; font-size:14px; line-height:1.5; color:var(--muted,#b9b4ad); white-space:pre-wrap; word-break:break-word; max-height:50vh; overflow:auto; }
.oc-btns { display:flex; justify-content:flex-end; gap:10px; padding:16px 22px 20px; }
.oc-btns button { font:inherit; font-size:14px; font-weight:600; padding:9px 18px; border-radius:10px; cursor:pointer; border:1px solid rgba(255,255,255,.14); background:transparent; color:var(--text,#f4f1ec); }
.oc-btns button:hover { background:rgba(255,255,255,.06); }
.oc-btns .oc-ok { border:0; color:#fff; background:linear-gradient(100deg,#e00a12,#f5301e 35%,#fb5a22 65%,#ff8a1f); box-shadow:0 6px 22px rgba(251,67,40,.28); }
.oc-btns .oc-ok:hover { filter:brightness(1.12); background:linear-gradient(100deg,#e00a12,#f5301e 35%,#fb5a22 65%,#ff8a1f); }
.oc-btns button:focus-visible { outline:2px solid #ff8a1f; outline-offset:2px; }
.oc-card.alto { border-color:rgba(251,90,34,.6); }
.oc-head { display:flex; align-items:center; gap:10px; padding:16px 22px; color:#fff; background:linear-gradient(100deg,#e00a12,#f5301e 35%,#fb5a22 65%,#ff8a1f); }
.oc-head b { font-size:16px; font-weight:700; } .oc-ic { font-size:18px; line-height:1; }
.oc-step { margin-left:auto; font-style:normal; font-size:12px; font-weight:600; padding:2px 10px; border-radius:99px; background:rgba(0,0,0,.28); }
.oc-card.alto .oc-msg { color:var(--text,#f4f1ec); padding-top:16px; }

/* Dica ao passar o mouse nos ícones (padrão Orya) */
.os-tip { position:fixed; z-index:100001; max-width:260px; padding:8px 11px; border-radius:10px; background:#141417; border:1px solid rgba(255,255,255,.14); box-shadow:0 10px 30px rgba(0,0,0,.5); font:inherit; font-size:12.5px; line-height:1.4; color:var(--muted,#b9b4ad); pointer-events:none; animation:osTipIn .12s ease-out; }
.os-tip b { display:block; margin-bottom:2px; font-size:13px; font-weight:600; color:var(--text,#f4f1ec); }
@keyframes osTipIn { from { opacity:0; transform:translateY(2px); } to { opacity:1; transform:none; } }

/* novidades: frase que só administradores veem (o servidor nem manda para os outros) */
.fb-adm { color:var(--muted); } .fb-adm-tag { display:inline-block; font-size:10px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--p); border:1px solid currentColor; border-radius:6px; padding:0 5px; margin-right:4px; vertical-align:1px; }
/* Agenda da ORYA na combinação de data (06f-agenda-livre.js) */
.sched-ag { margin:8px 0 4px; padding:8px 10px; border:1px dashed var(--line); border-radius:10px; }
.sched-ag:empty { display:none; }
.sched-ag-h { font-size:12px; font-weight:600; display:flex; gap:6px; align-items:center; margin-bottom:2px; }
.sched-ag-h .muted { font-weight:400; }
.sched-ag-sug { font-size:12px; color:var(--text); display:flex; gap:6px; align-items:flex-start; margin:4px 0; }
.sched-ag .sched-acts { margin-top:6px; }
.hj-ag { font-size:12px; } .hj-ag.ok { color:var(--ok); } .hj-ag.warn { color:var(--warn); } .hj-ag.bad { color:var(--bad); }
.hj-ag .ic { width:13px; height:13px; vertical-align:-2px; }

/* Agenda da ORYA RESUMIDA no painel (pedido do Rafael: só mostrar, uma linha por dia; o atendente decide) */
.ag-line { font-size:12px; line-height:1.5; padding:3px 0; border-bottom:1px dashed var(--line); display:flex; flex-wrap:wrap; gap:2px 4px; align-items:baseline; }
.ag-line:last-child { border-bottom:0; }
.ag-d { font-weight:600; min-width:78px; }
.ag-it b { font-weight:600; font-variant-numeric:tabular-nums; }
.ag-it.same { color:var(--ok); }
.ag-sep { color:var(--muted); }
.ag-hol { color:var(--warn); }
.ag-row { margin-bottom:6px; }
.ag-rowday .ag-line { border-bottom:0; padding-top:0; }
.sched-lbl { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); margin:8px 0; }

/* Celular (revisão final, 26/11/2026): o menu de baixo tinha 9 itens em 375 px e "Registrar erro", "Operação" e "Sair" ficavam fora da tela,
   sem como chegar neles. Agora o menu rola para o lado. A caixa de escrever ganha espaço com botões um pouco menores. */
@media (max-width: 720px) {
  #rail { overflow-x:auto; overflow-y:hidden; justify-content:flex-start; scrollbar-width:none; }
  #rail::-webkit-scrollbar { display:none; }
  #rail > * { flex:none; }
  #rail .rail-btn { flex:none; min-width:60px; }
  .composer { gap:4px; padding:8px 8px 10px; }
  .composer .icon-btn { width:34px; }
}

/* Carrossel: miniaturas na janela de envio, selo dos cards e sugestão na conversa */
.f-prev { align-self:center; max-width:100%; max-height:24vh; min-height:0; flex-shrink:0; object-fit:contain; border-radius:10px; }
/* busca com ✕ para limpar */
.srch { position:relative; display:flex; flex-direction:column; }
.srch input { padding-right:36px; }
.srch-x { position:absolute; right:5px; top:50%; transform:translateY(-50%); width:24px; height:24px; padding:0; display:flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:transparent; color:var(--muted); cursor:pointer; }
.srch-x:hover { color:var(--p); background:rgba(251,67,40,.12); }
.srch-x.hidden { display:none; }
#fMode { flex-shrink:0; max-height:none; }
.car-thumbs { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 4px; }
.car-th { position:relative; width:60px; height:74px; border-radius:8px; overflow:hidden; background:var(--line2); display:flex; align-items:center; justify-content:center; cursor:grab; border:1px solid var(--line2); }
.car-th img { width:100%; height:100%; object-fit:cover; display:block; }
.car-th b { position:absolute; left:4px; top:4px; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:#FB4328; color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center; }
.car-th.drag { opacity:.4; }
.car-chip { margin-top:4px; font-size:12px; padding:4px 8px; border-radius:8px; border:1px solid var(--line2); color:var(--muted); cursor:pointer; display:inline-flex; gap:6px; align-items:center; max-width:100%; }
.car-chip.aprovado { color:var(--ok); } .car-chip.ajuste { color:var(--warn); }
.car-sug { margin-top:4px; font-size:12px; color:var(--muted); display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
/* do 2º card em diante o carrossel aparece menor (o 1º, com o cartão da aprovação, fica no tamanho normal) */
.m.car-sm .media img { max-height:140px; width:auto; }
.m.car-sm .media .vcard { max-height:140px; }

/* Seletor de emoji com a aba Figurinhas */
.pop-emo-stk { padding-top:4px; }
.emo-tabs { display:flex; gap:4px; padding:2px 4px 8px; border-bottom:1px solid var(--line2); margin-bottom:6px; }
.emo-tabs button { flex:1; border:0; background:none; color:var(--muted); font-size:13px; padding:7px 0; border-radius:8px; cursor:pointer; }
.emo-tabs button:hover { background:rgba(255,255,255,.06); color:var(--text); }
.emo-tabs button.on { background:rgba(251,67,40,.16); color:var(--text); font-weight:600; }
.pop-emo-stk .emo-body { height:300px; max-height:calc(100vh - 140px); overflow:auto; }
.pop-emo-stk .emo-grid { max-height:none; overflow:visible; }
.stk-scroll { padding:0 2px 4px; }
.stk-h { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin:10px 4px 6px; }
.stk-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; }
.stk-cell { position:relative; }
.stk-send { width:100%; aspect-ratio:1; border:0; background:none; border-radius:10px; padding:4px; cursor:pointer; }
.stk-send:hover { background:rgba(255,255,255,.08); }
.stk-send img { width:100%; height:100%; object-fit:contain; display:block; }
.stk-fav { position:absolute; top:0; right:0; border:0; background:rgba(0,0,0,.55); color:#fff; width:22px; height:22px; border-radius:50%; font-size:12px; padding:0; cursor:pointer; opacity:0; transition:opacity .12s; }
.stk-cell:hover .stk-fav, .stk-fav.on { opacity:1; }
.stk-fav.on { color:#FB4328; }
.stk-new { width:100%; border:1px dashed var(--line2); background:none; color:var(--text); font-size:13px; padding:9px; border-radius:10px; cursor:pointer; }
.stk-new:hover { border-color:#FB4328; }
.stk-note { font-size:12px; color:var(--muted); padding:10px 6px; text-align:center; }
@media (hover:none) { .stk-fav { opacity:1; } }

/* Mensagem editada no WhatsApp */
.m-edited { font-style:italic; opacity:.85; margin-right:2px; }
.bubble:has(> .meta .m-edited) { --meta-w:96px; } /* reserva o espaço de “Editada ⚠ 13:00” no fim do texto (antes ficava por cima) */
.bubble:has(> .meta .m-edited):has(> .meta .ic) { --meta-w:110px; }

/* Documento igual ao WhatsApp (v0.12.1): ícone com a extensão, nome, tamanho • extensão e botão redondo de baixar */
.doc-card { display:flex; align-items:center; gap:10px; min-width:240px; max-width:360px; padding:8px 10px; margin-bottom:4px; border-radius:10px; background:rgba(255,255,255,.05); }
.doc-open { display:flex; align-items:center; gap:10px; flex:1; min-width:0; text-decoration:none; color:var(--text); }
.doc-ico { flex:none; width:34px; height:40px; border-radius:5px; display:flex; align-items:flex-end; justify-content:center; padding-bottom:5px; font-size:10px; font-weight:700; letter-spacing:0; white-space:nowrap; overflow:hidden; color:#fff; background:#7c7c86; }
.doc-ico .ic { width:18px; height:18px; margin-bottom:6px; }
.doc-ico.l4 { font-size:9px; }
.doc-ico.vid { background:#6d5ce7; } .doc-ico.img { background:#0ea5a4; } .doc-ico.pdf { background:#e5484d; } .doc-ico.doc { background:#2f6fe4; }
.doc-ico.xls { background:#1f9d55; } .doc-ico.ppt { background:#e8772e; } .doc-ico.zip { background:#a16207; }
.doc-txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.doc-txt b { font-size:13px; font-weight:500; line-height:1.3; word-break:break-word; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.doc-txt small { font-size:12px; color:var(--muted); }
.doc-dl { flex:none; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#FB4328; border:1.5px solid rgba(251,67,40,.7); text-decoration:none; }
.doc-dl:hover { background:rgba(251,67,40,.12); }
.doc-dl .ic { width:16px; height:16px; }

/* ---------- Comunicados (v0.14.0): aviso para os grupos de vários clientes ---------- */
.cm-list { display:flex; flex-direction:column; gap:8px; max-width:980px; }
.cm-item { display:flex; align-items:center; gap:16px; padding:12px 16px; border:1px solid var(--line); border-left:3px solid var(--line2); border-radius:12px; background:var(--card); cursor:pointer; }
.cm-item:hover { border-color:var(--line2); } .cm-item.enviando { border-left-color:var(--warn); } .cm-item.concluido { border-left-color:var(--ok); } .cm-item.parado { border-left-color:var(--muted); }
.cm-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .cm-main b { font-size:14px; font-weight:600; } .cm-main span { font-size:12px; }
.cm-prog { width:200px; display:flex; flex-direction:column; gap:5px; font-size:12px; color:var(--muted); }
.cm-prog i, .cm-bar { display:block; height:6px; border-radius:99px; background:rgba(255,255,255,.07); overflow:hidden; }
.cm-prog u, .cm-bar u { display:block; height:100%; background:var(--grad); text-decoration:none; transition:width .4s; }
.cm-bar { height:8px; margin:12px 0 8px; }
.bad { color:var(--bad); } em.bad { font-style:normal; }
.cm-st { font-size:11px; font-weight:600; padding:3px 10px; border-radius:99px; background:rgba(255,255,255,.06); color:var(--muted); white-space:nowrap; }
.cm-st.enviando { background:rgba(245,176,65,.16); color:var(--warn); } .cm-st.concluido { background:rgba(63,191,145,.15); color:var(--ok); }
.cm-new { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; max-width:1180px; }
.cm-col .widget { max-width:none; }
.cm-col label { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; font-size:13px; }
.cm-col textarea { resize:vertical; min-height:180px; line-height:1.5; }
.cm-models { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 12px; font-size:12px; }
.cm-tools { display:flex; align-items:center; gap:10px; margin:-4px 0 10px; font-size:12px; }
.cm-tools input { flex:1; height:32px; }
.cm-tip { font-size:12px; margin:0 0 10px; line-height:1.45; } .cm-tip.warn { color:var(--warn); }
.cm-bubble { background:#1f2c27; border-radius:10px 10px 10px 2px; padding:10px 12px; font-size:14px; line-height:1.5; max-width:440px; word-break:break-word; }
.cm-n { font-size:12px; font-weight:600; margin-left:6px; padding:2px 9px; border-radius:99px; background:rgba(251,67,40,.14); }
.cm-pills { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.cm-pills button { border:1px solid var(--line2); background:none; color:var(--muted); border-radius:99px; padding:5px 12px; font-size:12px; }
.cm-pills button.on { border-color:rgba(251,67,40,.6); background:rgba(251,67,40,.14); color:var(--text); }
.cm-dest { display:flex; flex-direction:column; gap:4px; max-height:460px; overflow:auto; padding-right:4px; }
.cm-col .cm-row { flex-direction:row; align-items:center; gap:10px; padding:7px 10px; margin:0; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.cm-row.off { opacity:.5; cursor:default; }
.cm-row-main { flex:1; min-width:0; display:flex; flex-direction:column; } .cm-row-main b { font-size:13px; font-weight:600; } .cm-row-main small { font-size:11px; }
.cm-tags { display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.cm-tags i { font-style:normal; font-size:10px; padding:1px 7px; border-radius:99px; background:rgba(255,255,255,.06); color:var(--muted); } .cm-tags i.warn { color:var(--warn); background:rgba(245,176,65,.14); }
.cm-foot { display:flex; gap:10px; align-items:center; max-width:1180px; margin-top:4px; position:sticky; bottom:0; padding:12px 0; background:linear-gradient(transparent, var(--bg) 35%); }
.cm-detail { max-width:980px; } .cm-dhead { margin-bottom:8px; }
.cm-dtitle { display:flex; align-items:center; gap:10px; } .cm-dtitle h3 { margin:0; }
.cm-nums { font-size:13px; margin:0 0 10px; } .cm-warn { color:var(--warn); font-size:13px; }
.cm-targets { display:flex; flex-direction:column; gap:4px; }
.cm-t { display:flex; align-items:center; gap:12px; padding:7px 10px; border:1px solid var(--line); border-radius:10px; }
.cm-tst { font-size:11px; font-weight:600; color:var(--muted); white-space:nowrap; }
.cm-tst.enviado { color:var(--ok); } .cm-tst.erro { color:var(--bad); } .cm-tst.enviando { color:var(--warn); }
@media (max-width: 900px) {
  .cm-new { grid-template-columns:1fr; }
  .cm-item { flex-wrap:wrap; } .cm-prog { width:100%; order:3; }
  .cm-t { flex-wrap:wrap; }
}
.cm-col label.cm-row input[type=checkbox] { width:16px; height:16px; flex:none; margin:0; padding:0; }
.cm-col label.cm-row .cm-row-main { flex:1 1 auto; }
.cm-col label.cm-row .cm-tags { flex:none; max-width:45%; }

/* Ícone antes do meu nome (Conexão → Preferências, v0.14.10) */
.sg-box { margin:16px 0 0; padding:14px; border:1px solid var(--line); border-radius:12px; max-width:420px; display:flex; flex-direction:column; gap:10px; }
.sg-box label.muted { margin:0 !important; }
.sg-sug { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.sg-sug .btn { font-size:16px; padding:4px 8px; min-width:36px; }
.sg-emo input { width:100%; height:38px; }
.sg-prev { font-size:13px; }
.sg-box > .btn { align-self:flex-start; }

/* Faixa "Saiu uma versão nova" (v0.14.11, igual ao Flow) */
#newVerBar { position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:9998; display:flex; gap:12px; align-items:center; padding:10px 14px; border-radius:12px; background:#111; color:#fff; border:1px solid #FB4328; font-size:13px; box-shadow:0 8px 24px rgba(0,0,0,.35); max-width:calc(100vw - 32px); }
#newVerBar .btn { white-space:nowrap; padding:7px 12px; font-size:13px; }
#newVerBar .nv-x { background:none; border:0; color:#bbb; cursor:pointer; font-size:14px; padding:4px; }
@media (max-width:700px) { #newVerBar { left:16px; right:16px; transform:none; bottom:12px; flex-wrap:wrap; } }
/* Risquinhos de entregue/lida (v0.14.13): cinza = enviada/entregue, azul = lida (no grupo, por um cliente) */
.m-tk { display:inline-flex; align-items:center; gap:1px; margin-left:3px; padding:0; border:0; background:none; color:var(--muted); cursor:pointer; vertical-align:-1px; line-height:1; }
.m-tk svg { width:16px; height:11px; fill:currentColor; }
.m-tk.lv3 { color:#53bdeb; }
.m-tk small { font-size:10px; font-weight:600; }
.m-tk:hover { opacity:.8; }
.bubble:has(> .meta .m-tk) > .txt::after { width:calc(var(--meta-w, 42px) + 22px); }
.rc-pop { min-width:250px; max-width:320px; }
.rc-pop .rc-row { justify-content:space-between; }
.rc-pop .rc-row div { flex-direction:row; align-items:center; gap:6px; }
.rc-pop .rc-row .muted { font-size:12px; white-space:nowrap; }
.rc-pop .rc-note { font-size:12px; padding:4px 8px 6px; }

/* Grupo compartilhado (v0.15.0): unidades atendidas no mesmo grupo */
.unit-tag { display:inline-block; font-size:10px; font-weight:600; color:var(--accent); border:1px solid rgba(255,162,76,.3); border-radius:99px; padding:0 6px; margin-left:4px; vertical-align:1px; white-space:nowrap; }
.unit-pill { display:inline-flex; align-items:center; gap:2px; font-size:12px; font-weight:600; border:1px solid var(--line, rgba(255,255,255,.12)); border-radius:99px; padding:1px 8px; margin:2px 2px 0 0; }
.unit-pill { gap:4px; padding:2px 4px 2px 9px; background:rgba(255,255,255,.04); color:var(--text); }
.unit-pill .unit-x { background:none; border:0; color:var(--muted); font-size:11px; line-height:1; padding:3px 5px; border-radius:99px; cursor:pointer; }
.unit-pill .unit-x:hover { color:var(--text); background:rgba(255,255,255,.08); }
.unit-pill .unit-x[data-sure] { color:var(--accent); font-weight:600; }
.off-units .unit-add { margin-top:8px; padding:5px 10px; font-size:12px; }
.mt-unit { display:block; margin-bottom:8px; }
.mt-unit select { width:100%; margin-top:4px; }

/* Downloads (v0.15.10): andamento no botão e na caixinha do canto */
.dl-spin { flex:none; display:inline-block; width:16px; height:16px; border-radius:50%; border:2px solid rgba(251,67,40,.25); border-top-color:var(--p); animation:dlSpin .8s linear infinite; }
.dl-spin.pct { border:0; animation:none; background:conic-gradient(var(--p) var(--dl), rgba(251,67,40,.22) 0); -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
@keyframes dlSpin { to { transform:rotate(360deg); } }
.dl-btn .dl-spin { width:13px; height:13px; }
.dl-btn.dl-on, .doc-dl.dl-on { cursor:progress; }
.dl-btn.dl-ok { border-color:var(--ok); background:rgba(63,191,145,.12); } .dl-btn.dl-ok .ic { color:var(--ok); }
.doc-dl.dl-ok { border-color:var(--ok); color:var(--ok); background:rgba(63,191,145,.12); }
.dl-btn.dl-err, .doc-dl.dl-err { border-color:var(--bad); }
.icon-btn.dl-ok .ic { color:var(--ok); } .icon-btn.dl-err .ic { color:var(--bad); }
#dlBox { position:fixed; right:18px; bottom:84px; z-index:75; display:flex; flex-direction:column; gap:8px; width:320px; max-width:calc(100vw - 24px); max-height:50vh; overflow:auto; }
.dl-row { display:flex; align-items:flex-start; gap:10px; flex:none; padding:10px 12px; border-radius:12px; background:#1c1c21; border:1px solid var(--line2); box-shadow:0 10px 30px rgba(0,0,0,.4); }
.dl-row.nudge { animation:dlNudge .6s ease; }
@keyframes dlNudge { 0%,100% { transform:none; } 25% { transform:translateX(-8px); border-color:var(--p); } 50% { transform:translateX(5px); border-color:var(--p); } 75% { transform:translateX(-3px); } }
.dl-ico { flex:none; display:flex; padding-top:2px; } .dl-ico .ic { width:16px; height:16px; }
.dl-row.ok { border-color:var(--ok); } .dl-row.ok .dl-ico .ic { color:var(--ok); }
.dl-row.erro { border-color:var(--bad); } .dl-row.erro .dl-ico .ic { color:var(--bad); }
.dl-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.dl-t b { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dl-t small { font-size:12px; color:var(--muted); }
.dl-bar { height:4px; margin-top:3px; border-radius:99px; background:rgba(255,255,255,.1); overflow:hidden; }
.dl-bar i { display:block; height:100%; width:0; border-radius:99px; background:linear-gradient(100deg,#E00A12,#FB5A22 65%,#FF8A1F); transition:width .2s linear; }
.dl-row.unknown .dl-bar i { width:35%; animation:dlRun 1.2s ease-in-out infinite; }
@keyframes dlRun { from { transform:translateX(-100%); } to { transform:translateX(290%); } }
.dl-row.ok .dl-bar i { background:var(--ok); } .dl-row.erro .dl-bar, .dl-row:not(.erro) .dl-retry { display:none; }
.dl-retry { align-self:flex-start; }
.dl-x { flex:none; border:0; background:none; color:var(--muted); cursor:pointer; font-size:13px; padding:2px 4px; }
.dl-x:hover { color:var(--text); }
@media (max-width:900px) { #dlBox { top:10px; bottom:auto; right:12px; left:12px; width:auto; max-width:none; } }


/* Menu da conversa na lista, arquivadas e janela só da conversa (v0.16.0) */
.chat-menu .mm-r { margin-left:auto; transform:rotate(-90deg); }
.chat-menu .mm-back { color:var(--muted); font-size:13px; }
#chatItems li.arch-row { gap:14px; padding:10px 12px 10px 21px; font-size:14px; font-weight:600; border-radius:12px; }
#chatItems li.arch-row .ic { width:18px; height:18px; color:var(--p); }
#chatItems li.arch-row b { margin-left:auto; font-size:12px; color:var(--muted); }
.ci-arch { font-size:10px; color:var(--muted); border:1px solid var(--line2); border-radius:99px; padding:0 6px; flex:none; }
.badge.dot { min-width:12px; width:12px; height:12px; padding:0; }
body.solo #rail, body.solo #chatList, body.solo #convBack { display:none !important; }
body.solo .col-conv { display:flex; flex:1; }
