:root { --verm: #E2231A; --fundo: #f4f4f6; --card: #fff; --txt: #1c1c1e; --cinza: #6e6e73; --borda: #e3e3e8; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--fundo); color: var(--txt); }
.oculto { display: none !important; }
header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; background: var(--verm); color: #fff; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
#titulo { font-weight: 700; font-size: 17px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#quem { font-size: 12px; opacity: .9; }
.voltar { background: rgba(255,255,255,.18); border: 0; color: #fff; font-size: 22px; line-height: 1; border-radius: 9px; width: 34px; height: 34px; }
main { padding: 12px; max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.login { position: fixed; inset: 0; background: var(--verm); display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; border-radius: 16px; padding: 24px; width: min(320px, 88vw); display: flex; flex-direction: column; gap: 10px; }
.marca { text-align: center; font-weight: 900; font-size: 20px; color: var(--verm); letter-spacing: 1px; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--borda); border-radius: 10px; background: #fff; width: 100%; }
textarea { min-height: 130px; }
.btn { font: inherit; font-weight: 600; padding: 11px 14px; border: 0; border-radius: 10px; background: #e9e9ee; cursor: pointer; }
.btn.vermelho { background: var(--verm); color: #fff; }
.btn.verde { background: #1f9d44; color: #fff; }
.btn.mini { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.erro { color: var(--verm); font-size: 13px; min-height: 16px; text-align: center; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-menu { background: var(--card); border-radius: 14px; padding: 18px 12px; text-align: center; font-weight: 600; border: 1px solid var(--borda); cursor: pointer; }
.card-menu .ico { font-size: 30px; display: block; margin-bottom: 6px; }
.card-menu small { display: block; color: var(--cinza); font-weight: 400; margin-top: 4px; font-size: 12px; }
.card { background: var(--card); border: 1px solid var(--borda); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.filtros { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.filtros select, .filtros input { width: auto; flex: 1; min-width: 110px; padding: 8px 10px; font-size: 14px; }
.lead-linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px; border-bottom: 1px solid var(--borda); cursor: pointer; }
.lead-linha:last-child { border-bottom: 0; }
.lead-nome { font-weight: 600; font-size: 15px; }
.lead-sub { color: var(--cinza); font-size: 12.5px; margin-top: 2px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.pill.novo { background: #e8f0fe; color: #1a56c4; } .pill.abordado { background: #fff3cd; color: #8a6d00; }
.pill.respondeu, .pill.negociando { background: #d9f2e0; color: #157135; } .pill.cliente { background: #1f9d44; color: #fff; }
.pill.descartado, .pill.sem-interesse, .pill.nao-contatar { background: #eee; color: #777; } .pill.cliente-atual { background: #ddd; color: #555; }
.pill.alvo { background: #fde8e7; color: var(--verm); }
.kv { display: flex; gap: 8px; margin: 3px 0; font-size: 14px; } .kv b { min-width: 86px; color: var(--cinza); font-weight: 600; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.roteiro { background: #fffbe8; border: 1px solid #f0e4b0; border-radius: 12px; padding: 12px; margin-top: 10px; white-space: pre-wrap; font-size: 14px; line-height: 1.45; }
.secao { font-weight: 800; margin: 16px 0 8px; font-size: 15px; }
.num { font-size: 26px; font-weight: 800; } .num small { font-size: 12px; color: var(--cinza); font-weight: 500; display: block; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
td, th { padding: 7px 6px; border-bottom: 1px solid var(--borda); text-align: left; }
th { color: var(--cinza); font-size: 12px; }
.tel { color: var(--verm); font-weight: 700; text-decoration: none; font-size: 20px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 18px; border-radius: 24px; font-size: 14px; z-index: 20; }
.chat { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; padding: 4px 0; }
.bolha { max-width: 82%; padding: 8px 10px; border-radius: 12px; font-size: 14px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.bolha small { display: block; font-size: 10.5px; color: var(--cinza); margin-top: 3px; }
.bolha.eu { align-self: flex-end; background: #dff5e1; border-bottom-right-radius: 4px; }
.bolha.ele { align-self: flex-start; background: #f0f0f4; border-bottom-left-radius: 4px; }
