/* Celular da consulta e Bastidor da IA: mesmo CSS do demo iPrado (crm.css), nas cores do Prontora. */
.crm-phone-col{width:338px;flex-shrink:0;display:flex;flex-direction:column;min-height:0;padding:0 8px 10px 8px}
.crm-ph-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-fg);height:30px;margin-bottom:8px;flex-shrink:0}
.crm-ph-dot{width:8px;height:8px;border-radius:50%;background:#1C9A63;box-shadow:0 0 0 3px rgba(28,154,99,.2)}
.crm-ph-toggle{margin-left:auto;display:inline-flex;background:var(--muted);border-radius:10px;padding:2px;letter-spacing:0;text-transform:none}
.crm-ph-toggle button{height:26px;padding:0 10px;border-radius:8px;font-size:12px;font-weight:500;color:var(--muted-fg)}
.crm-ph-toggle button.on{background:#fff;color:var(--foreground);box-shadow:var(--shadow-sm)}
.crm-phone{flex:1;min-height:0;max-height:780px;background:#1a1a1c;border-radius:46px;padding:9px;position:relative;
  box-shadow:0 0 0 1.5px #3a3a3e,0 0 0 4px #121214,0 30px 60px -20px rgba(15,23,42,.45),0 18px 36px -18px rgba(15,23,42,.35)}
.crm-phone::before{content:"";position:absolute;right:-6px;top:120px;width:3px;height:64px;border-radius:0 3px 3px 0;background:#2b2b2f}
.crm-phone::after{content:"";position:absolute;left:-6px;top:100px;width:3px;height:36px;border-radius:3px 0 0 3px;background:#2b2b2f;box-shadow:0 52px 0 #2b2b2f,0 100px 0 #2b2b2f}
.crm-phone-screen{height:100%;border-radius:38px;overflow:hidden;display:flex;flex-direction:column;background:#EFEAE2;position:relative;font-family:-apple-system,'SF Pro Text','Segoe UI',Roboto,Helvetica,Arial,sans-serif;letter-spacing:0}
.wa-status{height:36px;flex-shrink:0;background:#0A5D64;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:4px 22px 0 28px;position:relative;font-size:13px;font-weight:600}
.wa-island{position:absolute;left:50%;top:8px;transform:translateX(-50%);width:92px;height:25px;border-radius:999px;background:#000}
.wa-sicons{display:flex;align-items:center;gap:4px}
.wa-sicons svg.lucide{width:14px;height:14px}
.wa-head{flex-shrink:0;background:#0A5D64;color:#fff;display:flex;align-items:center;gap:8px;padding:6px 12px 9px 6px}
.wa-back{width:22px;height:22px}
.wa-avatar{width:34px;height:34px;border-radius:50%;background:#fff;color:#09090B;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:-.02em;font-family:var(--font)}
.wa-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.wa-who b{font-size:15px;font-weight:600}
.wa-sub{font-size:11.5px;opacity:.85;transition:color .2s}
.wa-sub.typing{color:#9EF5C0;opacity:1;font-style:italic}
.wa-hic{width:19px;height:19px;margin-left:12px;opacity:.95}
.wa-body{flex:1;min-height:0;overflow-y:auto;padding:10px 10px 8px;display:flex;flex-direction:column;gap:2px;
  background-color:#EFEAE2;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9cfc1' stroke-width='1.3' stroke-linecap='round' opacity='.45'%3E%3Ccircle cx='18' cy='20' r='7'/%3E%3Cpath d='M48 12l8 8-8 8M78 18h14M85 11v14'/%3E%3Cpath d='M100 52c4-6 12-6 14 0s-6 10-7 14c-1-4-11-8-7-14z'/%3E%3Crect x='14' y='56' width='16' height='12' rx='3'/%3E%3Cpath d='M52 60c6-8 16 0 10 6M70 92l6-10 6 10zM20 96c4 4 10 4 14 0M104 96a6 6 0 1 1-12 0'/%3E%3Ccircle cx='60' cy='106' r='3'/%3E%3Cpath d='M38 82l6 4M90 74h8'/%3E%3C/g%3E%3C/svg%3E");background-size:120px 120px}
.wa-day{align-self:center;background:#fff;color:#54656F;font-size:11px;font-weight:500;padding:4px 10px;border-radius:7px;box-shadow:0 1px .5px rgba(11,20,26,.13);margin:2px 0 8px;text-transform:uppercase;letter-spacing:.02em}
.wa-e2e{align-self:center;background:#FFEECD;color:#54656F;font-size:10.5px;line-height:1.35;padding:6px 10px;border-radius:8px;text-align:center;max-width:90%;margin-bottom:10px;box-shadow:0 1px .5px rgba(11,20,26,.1)}
.wa-e2e svg.lucide{width:10px;height:10px;display:inline;vertical-align:-1px;margin-right:4px}
.wa-row{display:flex;margin-top:1px}
.wa-row.tail{margin-top:7px}
.wa-row.out{justify-content:flex-end}
.wa-bubble{position:relative;max-width:84%;padding:6px 8px 7px 9px;border-radius:8px;font-size:13.2px;line-height:1.36;color:#111B21;box-shadow:0 1px .5px rgba(11,20,26,.13);word-wrap:break-word;overflow-wrap:anywhere}
.wa-row.in .wa-bubble{background:#fff}
.wa-row.out .wa-bubble{background:#D9FDD3}
.wa-row.in.tail .wa-bubble{border-top-left-radius:0}
.wa-row.out.tail .wa-bubble{border-top-right-radius:0}
.wa-row.in.tail .wa-bubble::before{content:"";position:absolute;left:-7px;top:0;border-top:0 solid transparent;border-right:8px solid #fff;border-bottom:10px solid transparent}
.wa-row.out.tail .wa-bubble::before{content:"";position:absolute;right:-7px;top:0;border-left:8px solid #D9FDD3;border-bottom:10px solid transparent}
.wa-bubble b{font-weight:700}
.wa-meta{float:right;display:inline-flex;align-items:center;gap:3px;font-size:10.5px;color:#667781;margin:6px 0 -4px 10px;line-height:1}
.wa-ticks{color:#53BDEB;width:15px;height:10px}
.wa-anim{animation:waIn .32s cubic-bezier(.2,.8,.2,1) both}
.wa-row.out.wa-anim{transform-origin:right bottom}.wa-row.in.wa-anim{transform-origin:left bottom}
@keyframes waIn{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:none}}
.wa-typing .wa-bubble{padding:9px 12px}
.wa-empty{margin:auto;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:18px;background:rgba(255,255,255,.75);border-radius:16px;max-width:82%;color:#54656F;font-size:12px;line-height:1.4;backdrop-filter:blur(4px);box-shadow:0 1px 2px rgba(11,20,26,.08)}
.wa-empty b{color:#111B21;font-size:13px}
.wa-empty-ic{width:40px;height:40px;border-radius:50%;background:rgba(28,154,99,.14);color:#0E7C86;display:flex;align-items:center;justify-content:center}
.wa-empty-ic svg.lucide{width:20px;height:20px}
.wa-compose{flex-shrink:0;display:flex;align-items:flex-end;gap:6px;padding:6px 7px 6px;background:#EFEAE2}
.wa-input{flex:1;min-width:0;min-height:40px;background:#fff;border-radius:22px;display:flex;align-items:flex-end;gap:8px;padding:10px 12px;box-shadow:0 1px .5px rgba(11,20,26,.1);color:#8696A0}
.wa-cic{width:19px;height:19px;flex-shrink:0}
.wa-field{flex:1;min-width:0;font-size:13.5px;line-height:1.3;color:#111B21;max-height:84px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end}
.wa-ph{color:#8696A0}
.wa-mic{width:40px;height:40px;border-radius:50%;background:#0E7C86;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .15s}
.wa-mic svg.lucide{width:19px;height:19px}
.wa-mic.send{transform:scale(1.05)}
.wa-home{height:18px;flex-shrink:0;background:#EFEAE2;position:relative}
.wa-home::after{content:"";position:absolute;left:50%;top:5px;transform:translateX(-50%);width:110px;height:4px;border-radius:999px;background:#111}

/* pontinhos animados (digitando / aguardando) */
.crm-dots{display:inline-flex;gap:3px;align-items:center;font-style:normal}
.crm-dots i{width:5px;height:5px;border-radius:50%;background:#0E7C86;animation:crmDot 1.2s infinite ease-in-out}
.crm-dots.dark i{background:#8696A0;width:6px;height:6px}
.crm-dots i:nth-child(2){animation-delay:.15s}.crm-dots i:nth-child(3){animation-delay:.3s}
@keyframes crmDot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}

/* ---------------- Bastidor da IA (faixa no rodapé do quadro) ---------------- */
.crm-trace{position:absolute;left:10px;right:10px;bottom:54px;z-index:5;display:flex;align-items:stretch;gap:10px;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);
  border:1px solid rgba(14,124,134,.28);border-radius:16px;padding:8px 8px 8px 12px;box-shadow:0 18px 40px -16px rgba(14,124,134,.45),0 4px 12px -4px rgba(15,23,42,.12)}
.crm-trace.crm-trace-in{animation:animIn .35s both}
.crm-trace-h{flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;gap:3px;color:#0A5D64;padding-right:10px;border-right:1px solid rgba(14,124,134,.15)}
.crm-trace-h>div{display:flex;align-items:center;gap:5px}
.crm-trace-h svg.lucide{width:13px;height:13px}
.crm-trace-h b{font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:10px;white-space:nowrap}
.crm-trace-h span{color:var(--muted-fg);font-size:10px;background:rgba(14,124,134,.08);padding:1px 7px;border-radius:999px;align-self:flex-start;white-space:nowrap}
.crm-trace-body{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:6px}
.crm-trace-list{display:contents}
.crm-chip{flex:1 1 150px;min-width:0;display:flex;align-items:center;gap:7px;padding:5px 8px;border-radius:10px;background:rgba(14,124,134,.06);border:1px solid rgba(14,124,134,.14)}
.crm-chip-e{font-size:13px;line-height:1;width:16px;text-align:center;flex-shrink:0}
.crm-chip-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.crm-chip-t b{font-size:12px;font-weight:600;color:var(--foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-chip-t span{font-size:10.5px;color:var(--muted-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-chip-s{width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#0E7C86;flex-shrink:0}
.crm-chip-s svg.lucide{width:13px;height:13px}
.crm-chip.done .crm-chip-s{background:#10B981;color:#fff}
.crm-chip.done .crm-chip-s svg.lucide{width:11px;height:11px;stroke-width:3}
.crm-chip.audit{background:rgba(16,185,129,.07);border-color:rgba(16,185,129,.22)}
.crm-chip.hand{background:rgba(245,158,11,.08);border-color:rgba(245,158,11,.28)}
.crm-chip.crm{background:rgba(59,130,246,.06);border-color:rgba(59,130,246,.18)}
.crm-trace-wait{flex:1 1 100%;display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:10px;background:rgba(14,124,134,.06);border:1px solid rgba(14,124,134,.14)}
.crm-trace-wait>svg.lucide{width:18px;height:18px;color:#0E7C86;flex-shrink:0;animation:crmHg 2s ease-in-out infinite}
.crm-trace-wait div{flex:1;display:flex;flex-direction:column;line-height:1.3;min-width:0}
.crm-trace-wait b{font-size:12.5px;font-weight:600}
.crm-trace-wait span{font-size:11px;color:var(--muted-fg)}
.crm-trace-body .crm-trace-wait.silent{flex:1 1 220px;min-width:0;padding:5px 8px;gap:7px}
.crm-trace-body .crm-trace-wait.silent b,.crm-trace-body .crm-trace-wait.silent span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-trace-body .crm-trace-wait.silent b{font-size:12px}.crm-trace-body .crm-trace-wait.silent span{font-size:10.5px}
.crm-trace-body .crm-trace-wait.silent>svg.lucide{width:15px;height:15px}
.crm-trace-wait.silent{background:rgba(245,158,11,.08);border-color:rgba(245,158,11,.28)}
.crm-trace-wait.silent>svg.lucide{color:#D97706;animation:none}

/* posição no demo: coluna fixa à direita da tela real, e o bastidor no rodapé da área de trabalho */
.demo-fone{position:fixed;right:14px;top:50%;transform:translateY(-50%);z-index:2147480500;width:338px;height:min(700px,calc(100vh - 110px));padding:0;animation:animInFone .4s both}
.demo-fone .crm-phone{max-height:none}
@keyframes animInFone{from{opacity:0;transform:translateY(calc(-50% + 10px)) scale(.98)}to{opacity:1;transform:translateY(-50%)}}
.demo-trace{position:fixed;bottom:86px;z-index:2147480600;padding:12px 12px 12px 16px;gap:14px}
.demo-trace .crm-trace-h b{font-size:12px}.demo-trace .crm-trace-h span{font-size:11.5px}.demo-trace .crm-trace-h svg.lucide{width:16px;height:16px}
.demo-trace .crm-trace-wait{padding:10px 14px}.demo-trace .crm-trace-wait b{font-size:15px}.demo-trace .crm-trace-wait span{font-size:13px}.demo-trace .crm-trace-wait>svg.lucide{width:22px;height:22px}
.demo-trace .crm-chip{padding:8px 10px;gap:9px}.demo-trace .crm-chip-e{font-size:17px;width:20px}.demo-trace .crm-chip-t b{font-size:14px}.demo-trace .crm-chip-t span{font-size:12px}
.demo-trace .crm-chip-s{width:22px;height:22px}
.demo-trace .crm-trace-list .crm-chip{flex:1 1 210px}
.wa-row .wa-quem{display:block;font-size:10.5px;font-weight:700;margin-bottom:1px}
.wa-row.out .wa-quem{color:#0A5D64}.wa-row.in .wa-quem{color:#B4553F}
.wa-row.out .wa-bubble{background:#DDF1EF}
.wa-row.out.tail .wa-bubble::before{border-left-color:#DDF1EF}
.wa-rec{display:inline-flex;align-items:center;gap:6px}
.wa-rec i{width:8px;height:8px;border-radius:50%;background:#FF6B6B;animation:crmDot 1.2s infinite}
@keyframes animIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
