/* DriveScore — o CRM da LeadScore · aparência "workspace" (escuro, verde-limão, Urbanist) */
:root, [data-theme="dark"] {
  --fundo: #000000; --quadro: #0B0B0C; --card: #1C1C1E; --card2: #2C2C2F; --card3: #3A3A3D; --linha: #2E2E31;
  --txt: #F4F4F2; --mudo: #A3A3A9; --mudo2: #85858C; --inv: #F4F4F2; --inv-txt: #121212;
  --lime: #C2F261; --lime-txt: #121212; --lime-mudo: #3C4214;
  --folha: #EDEDEA; --folha2: #E0E0DC; --folha-txt: #121212; --folha-mudo: #55555D; --folha-linha: #C9C9C3;
  --lav: #A99BF2; --lav-txt: #1A1340; --coral: #F2645A; --cyan: #7FD3E6;
  --d1: #F98C8C; --d2: #F9A66C; --d3: #F7D35C; --d4: #B9E86A; --d5: #5BE36A; --d0: #3A3A3D;
  --ok: #6BD38A; --ruim: #FF8A80;
}
[data-theme="light"] {
  --fundo: #D6D6D2; --quadro: #E9E9E7; --card: #F7F7F5; --card2: #E9E9E7; --card3: #DCDCD8; --linha: #D6D6D2;
  --txt: #121212; --mudo: #5F5F66; --mudo2: #6A6A72; --inv: #121212; --inv-txt: #F4F4F2;
  --folha: #F7F7F5; --folha2: #EDEDEA; --d0: #D6D6D2; --ok: #1F8A3B; --ruim: #C0392B;
}
* { box-sizing: border-box; }
html { background: var(--fundo); }
body { margin: 0; background: var(--fundo); color: var(--txt); font-family: 'Urbanist', system-ui, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* moldura: quadro arredondado sobre o fundo, com a coluna de botões redondos à esquerda */
.app { display: flex; margin: 16px; min-height: calc(100vh - 32px); border-radius: 32px; background: var(--quadro); }
.rail { flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; position: sticky; top: 16px; height: calc(100vh - 32px); }
.rail .marca { width: 46px; height: 46px; color: var(--lime); display: flex; align-items: center; justify-content: center; margin-bottom: 30px; text-decoration: none; font-size: 32px; }
.rail .ir { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linha); background: transparent; color: var(--mudo); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 19px; position: relative; }
.rail .ir:hover { color: var(--txt); background: var(--card); }
.rail .ir.on { background: var(--inv); color: var(--inv-txt); border-color: var(--inv); }
.rail .ir .dica { position: absolute; left: 56px; background: var(--inv); color: var(--inv-txt); font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 60; }
.rail .ir:hover .dica, .rail .ir:focus-visible .dica { opacity: 1; }
.rail .esp { flex: 1; }
.rail .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--lav); color: var(--lav-txt); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.conteudo { flex: 1; min-width: 0; padding: 26px 30px 60px 6px; }

h1 { font-size: 34px; font-weight: 400; margin: 0; letter-spacing: -.005em; }
h2 { font-size: 20px; font-weight: 500; margin: 0; }
.sub { color: var(--mudo); font-size: 14px; margin-top: 4px; }
.topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.card { background: var(--card); border-radius: 26px; padding: 20px 22px; }
.grade { display: grid; gap: 16px; }
.btn { border: 0; border-radius: 999px; padding: 11px 20px; background: var(--inv); color: var(--inv-txt); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 14px; }
.btn i { font-size: 17px; }
.btn.lime { background: var(--lime); color: var(--lime-txt); }
.btn.fant { background: transparent; color: var(--txt); border: 1px solid var(--linha); }
.btn.claro { background: rgba(255,255,255,.6); color: #121212; }
.btn.escuro { background: #121214; color: #F4F4F2; }
.btn.mini { padding: 7px 14px; font-size: 13px; }
.btn.perigo { background: transparent; color: var(--ruim); border: 1px solid var(--linha); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.redondo, .bola { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linha); background: transparent; color: var(--txt); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; text-decoration: none; flex-shrink: 0; }
.redondo { background: var(--lime); color: var(--lime-txt); border: 0; width: 50px; height: 50px; font-size: 20px; }
.bola:hover { background: var(--card); }
.bola.p { width: 40px; height: 40px; font-size: 16px; }
.bola.inv { background: var(--inv); color: var(--inv-txt); border: 0; }
.bola.lime { background: var(--lime); color: var(--lime-txt); border: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.g { padding: 6px 14px; font-size: 14px; }
.c-alt { background: var(--d5); color: #0E2A10; } .c-alta { background: var(--d4); color: #24320B; } .c-media { background: var(--d3); color: #3A2C05; }
.c-baixa { background: var(--d2); color: #3A1B05; } .c-an { background: var(--card2); color: var(--mudo); }
.c-ok { background: #D9F2DF; color: #145A26; } .c-ruim { background: #FBE0DD; color: #7A1D13; } .c-neutro { background: var(--card2); color: var(--mudo); }
.c-lav { background: var(--lav); color: var(--lav-txt); }
.tag { border-radius: 999px; padding: 3px 10px; font-size: 12px; white-space: nowrap; }
.t-cyan { background: #DFF3F7; color: #0B4652; } .t-lav { background: #E6E1FB; color: #2D2170; } .t-lime { background: #EEF6C8; color: #3C4214; }
.t-coral { background: #FBE0DD; color: #7A1D13; } .t-ok { background: #D9F2DF; color: #145A26; } .t-cinza { background: var(--card2); color: var(--mudo); }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .rot { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mudo); font-weight: 600; }
.campo input, .campo select, .campo textarea { background: var(--card2); border: 1.5px solid transparent; border-radius: 14px; padding: 11px 14px; outline: none; width: 100%; color: var(--txt); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--lime); }
.campo input[type=date], .campo input[type=datetime-local] { color-scheme: dark; }
[data-theme="light"] .campo input[type=date], [data-theme="light"] .campo input[type=datetime-local] { color-scheme: light; }
.aviso { border-radius: 16px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.aviso.ok { background: #D9F2DF; color: #145A26; } .aviso.erro { background: #FBE0DD; color: #7A1D13; } .aviso.info { background: var(--card); color: var(--mudo); }
table.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tab th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mudo); font-weight: 600; padding: 0 10px 10px; }
table.tab td { padding: 12px 10px; border-top: 1px solid var(--linha); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }
.vazio { text-align: center; color: var(--mudo); padding: 40px 16px; }
.vazio i { font-size: 34px; display: block; margin-bottom: 8px; opacity: .6; }
.ini { width: 44px; height: 44px; border-radius: 50%; background: var(--card3); color: var(--txt); font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.ini.a1 { background: #A99BF2; color: #1A1340; } .ini.a2 { background: #7FD3E6; color: #0B2A31; } .ini.a3 { background: #F9A66C; color: #3A1B05; } .ini.a4 { background: #F7D35C; color: #3A2C05; } .ini.a5 { background: #B9E86A; color: #24320B; }

/* qualidade em 5 bolinhas */
.pontos { display: inline-flex; gap: 4px; background: var(--card2); border-radius: 999px; padding: 5px 7px; }
.pontos i { width: 11px; height: 11px; border-radius: 50%; background: var(--d0); }
.pontos i.p1 { background: var(--d1); } .pontos i.p2 { background: var(--d2); } .pontos i.p3 { background: var(--d3); } .pontos i.p4 { background: var(--d4); } .pontos i.p5 { background: var(--d5); }
.qual { font-size: 11.5px; color: var(--mudo2); display: inline-flex; gap: 4px; align-items: center; }
.qual b { color: var(--d1); font-size: 12px; }

/* ------------------------------------------------ workspace (tela inicial) */
.ws { display: flex; flex-direction: column; gap: 26px; }
.agenda-barra { display: flex; gap: 14px; align-items: center; }
.agenda { flex: 1 1 auto; min-width: 0; max-width: 920px; margin: 0 auto; background: #FFFFFF; color: #121212; border-radius: 999px; padding: 6px; display: flex; align-items: center; gap: 10px; }
.agenda .tit { font-size: 15px; font-weight: 600; padding-left: 12px; white-space: nowrap; }
.agenda .dia { display: flex; align-items: center; gap: 6px; background: #EFEFEC; border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 12.5px; white-space: nowrap; }
.agenda .dia span { width: 28px; height: 28px; border-radius: 50%; background: #E2E2DE; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.trilha { flex: 1 1 auto; min-width: 0; background: var(--lime); border-radius: 999px; padding: 4px; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.trilha::-webkit-scrollbar { display: none; }
.trilha .vazia { font-size: 13px; color: var(--lime-mudo); padding: 8px 12px; }
.compromisso { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.5); border-radius: 999px; padding: 4px; text-decoration: none; color: #121212; flex-shrink: 0; }
.compromisso.prox { background: #FFFFFF; }
.compromisso .ini { width: 30px; height: 30px; font-size: 11px; }
.compromisso small { font-size: 12.5px; color: var(--lime-mudo); padding-right: 4px; white-space: nowrap; }
.compromisso small b { color: #121212; font-weight: 600; }
.compromisso .sta { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(18,18,18,.2); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.compromisso.atrasado small { color: #7A1D13; }
.agora { position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; margin: 0 4px; }
.agora span { background: #121212; color: #F4F4F2; font-size: 10px; border-radius: 999px; padding: 2px 7px; white-space: nowrap; margin-bottom: 2px; }
.agora i { width: 2px; height: 16px; background: #121212; border-radius: 2px; }
.ws-cab { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
.marca-tit { margin: 0; font-size: 50px; font-weight: 400; letter-spacing: .01em; line-height: 1; display: flex; align-items: center; }
.marca-tit .o { display: inline-flex; width: .78em; height: .78em; border-radius: 50%; border: .1em solid currentColor; align-items: center; justify-content: center; margin: 0 .02em; position: relative; top: .02em; }
.marca-tit .o::after { content: ''; width: .26em; height: .26em; border-radius: 50%; background: var(--lime); }
.nums { display: flex; gap: 34px; margin-left: auto; flex-wrap: wrap; }
.num-g { display: flex; align-items: baseline; gap: 6px; position: relative; text-decoration: none; }
.num-g b { font-size: 42px; font-weight: 400; line-height: 1; }
.num-g span { font-size: 15px; color: var(--mudo2); }
.num-g em { position: absolute; top: -6px; right: -20px; font-style: normal; background: var(--lime); color: #121212; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 1px 6px; }
.num-g em.ruim { background: var(--coral); color: #2A0A07; }
.ws-corpo { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ws-main { flex: 999 1 720px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.secao-cab { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.secao-cab h2 { font-size: 23px; font-weight: 400; margin-right: 18px; display: flex; align-items: baseline; gap: 12px; }
.secao-cab h2 small { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; color: var(--txt); }
.secao-cab h2 small b { font-weight: 700; }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.filtro { border: 1px solid var(--linha); color: var(--txt); border-radius: 999px; padding: 8px 14px; font-size: 13px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; opacity: .85; }
.filtro:hover { opacity: 1; }
.filtro.on { background: var(--inv); color: var(--inv-txt); border-color: var(--inv); font-weight: 600; opacity: 1; }
.filtro small { opacity: .7; }
.filtro .ph-fire { color: var(--d1); }
.busca-ws { display: none; }
.busca-ws.on { display: flex; }
.busca-ws input, .busca-ws select { background: var(--card); border: 1px solid var(--linha); border-radius: 999px; padding: 9px 16px; color: var(--txt); outline: none; min-width: 200px; font-size: 13.5px; }
/* cartões com o canto recortado pelo botão redondo */
.corte { position: relative; }
.corte .canto { position: absolute; top: -6px; right: -6px; display: flex; gap: 6px; padding: 6px; background: var(--quadro); border-bottom-left-radius: 26px; z-index: 1; }
.corte .canto .bola { background: var(--card); }
.leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.lcard { text-decoration: none; color: var(--txt); background: var(--card); border-radius: 26px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; min-height: 186px; border: 2px solid transparent; transition: transform .15s; }
.lcard:hover { transform: translateY(-2px); }
.lcard.on { border-color: var(--lime); }
.lcard .ini { width: 46px; height: 46px; }
.lcard .nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lcard .nm b { font-size: 21px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .nm span { font-size: 13px; color: var(--mudo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .pe { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; }
.lcard .pe > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lcard .pe > span:last-child { align-items: flex-end; }
.lcard .rotulo { font-size: 11px; color: var(--mudo2); }
.midias { display: flex; gap: 4px; flex-wrap: wrap; }
.midias span { background: var(--card2); color: var(--mudo); border-radius: 999px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.lcard .espera { font-size: 12px; color: var(--mudo); display: flex; align-items: center; gap: 6px; }
.lcard .espera.atraso { color: var(--ruim); font-weight: 600; }
.tarefas { display: grid; grid-template-columns: repeat(auto-fill, minmax(296px, 1fr)); gap: 14px; }
.tcard { background: var(--card3); color: var(--txt); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 18px; min-height: 222px; }
.tcard.top { background: var(--lime); color: #121212; }
.tcard .quem { display: flex; gap: 10px; align-items: center; padding-right: 100px; text-decoration: none; }
.tcard .quem .ini { width: 38px; height: 38px; font-size: 13px; background: var(--card2); }
.tcard.top .quem .ini { background: #F7F7F5; color: #121212; }
.tcard .quem b { font-size: 14px; font-weight: 600; display: block; }
.tcard .quem small { font-size: 11.5px; color: var(--mudo); }
.tcard.top .quem small, .tcard.top .mud { color: var(--lime-mudo); }
.tcard .oque { display: flex; gap: 14px; align-items: center; }
.tcard .oque > span:first-child { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tcard.top .oque > span:first-child { border-color: rgba(18,18,18,.18); }
.tcard .oque b { font-size: 24px; font-weight: 500; line-height: 1.1; display: block; }
.tcard .mud { font-size: 13px; color: var(--mudo); }
.tcard .mud.atraso { color: var(--ruim); font-weight: 600; }
.tcard.top .mud.atraso { color: #7A1D13; }
.tcard .st { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.tcard .st > small { font-size: 11px; color: var(--mudo); }
.tcard.top .st > small { color: var(--lime-mudo); }
.tcard .st > div { display: flex; gap: 8px; align-items: center; }
.tcard .status { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; gap: 10px; padding: 0 14px 0 5px; font-size: 13.5px; text-decoration: none; color: inherit; }
.tcard.top .status { border-color: rgba(18,18,18,.18); }
.tcard .status .ini { width: 36px; height: 36px; font-size: 12px; background: var(--card2); }
.tcard.top .status .ini { background: #F7F7F5; color: #121212; }
.tcard .status span:not(.ini) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .bola { border-color: rgba(255,255,255,.18); color: inherit; }
.tcard .bola.inv { background: #F4F4F2; color: #121212; }
.tcard.top .bola { border-color: rgba(18,18,18,.18); }
.tcard.top .bola.inv { background: #121214; color: #F4F4F2; }
.tcard.corte .canto .bola { background: var(--card); color: var(--txt); border-color: var(--linha); }
[data-theme="light"] .tcard:not(.top) { background: var(--card); }
[data-theme="light"] .tcard:not(.top) .bola, [data-theme="light"] .tcard:not(.top) .status, [data-theme="light"] .tcard:not(.top) .oque > span:first-child { border-color: var(--linha); }
[data-theme="light"] .tcard.corte .canto .bola, [data-theme="light"] .lcard .canto .bola { background: #FFFFFF; border-color: transparent; color: #121212; }

/* painel da pessoa (lado direito do workspace) */
.painel-p { flex: 1 1 340px; max-width: 400px; background: var(--folha); color: var(--folha-txt); border-radius: 32px; padding: 12px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.pp-topo { background: #1C1C1E; color: #F4F4F2; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.pp-topo .l1 { display: flex; gap: 12px; align-items: center; }
.pp-topo .ini { width: 58px; height: 58px; font-size: 20px; }
.pp-topo .l1 > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pp-topo .l1 b { font-size: 21px; font-weight: 500; }
.pp-topo .l1 small { font-size: 12.5px; color: #A3A3A9; }
.anel { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--lime); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.pp-topo .l2 { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #A3A3A9; flex-wrap: wrap; }
.pp-topo .pontos { background: #2A2A2C; }
.pp-topo .pontos i:not([class]) { background: #3A3A3D; }
.pp-topo .l3 { display: flex; gap: 8px; }
.pp-topo .l3 .bola { background: rgba(255,255,255,.12); border: 0; color: #F4F4F2; }
.pp-topo .l3 .bola.lime { background: var(--lime); color: #121212; margin-left: auto; }
.pp-leitura { background: var(--folha2); border-radius: 26px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pp-leitura .cab { display: flex; align-items: center; gap: 10px; }
.pp-leitura .cab h2 { flex: 1; font-size: 22px; font-weight: 400; }
.pp-leitura .bola { border-color: var(--folha-linha); color: var(--folha-txt); }
.pp-linha { display: flex; gap: 10px; }
.pp-tempo { width: 38px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--folha-mudo); padding-top: 4px; }
.pp-tempo i { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #121212; font-style: normal; }
.pp-tempo .fio { width: 1.5px; flex: 1; background: var(--folha-linha); min-height: 20px; }
.pp-blocos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-bloco { background: #FFFFFF; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
[data-theme="light"] .pp-bloco { background: #FFFFFF; }
.pp-bloco .t { display: flex; justify-content: space-between; align-items: center; }
.pp-bloco .t b { font-size: 15px; font-weight: 600; }
.pp-bloco .bola { width: 32px; height: 32px; font-size: 13px; border-color: #DCDCD6; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jmini { background: #F2F2EF; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--folha-mudo); min-width: 0; }
.jmini b { font-size: 12.5px; color: #121212; font-weight: 600; }
.jmini em { align-self: flex-start; font-style: normal; background: #E4E4E0; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; }
.pp-bloco.lime { background: var(--lime); }
.pp-bloco.lime p { margin: 0; font-size: 13px; line-height: 1.45; color: #2B3010; }
.pp-bloco.lime .bola { border-color: rgba(18,18,18,.2); }
.pp-abrir { display: flex; gap: 8px; }
.pp-abrir .btn { flex: 1; height: 50px; }

/* ------------------------------------------------ ficha completa */
.ficha { display: flex; flex-direction: column; gap: 20px; }
.voltar { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--mudo); font-size: 14px; }
.f-cab { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.foto { width: 104px; height: 104px; border-radius: 32px; background: var(--lav); color: var(--lav-txt); font-size: 38px; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.f-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.f-info h1 { font-size: 42px; }
.f-nome { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.f-linha { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--mudo); }
.f-linha span { display: inline-flex; gap: 6px; align-items: center; }
.f-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.score { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 999px; padding: 8px 18px 8px 8px; }
.score b.n { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--lime); color: var(--txt); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.score span { display: flex; flex-direction: column; font-size: 12px; color: var(--mudo); line-height: 1.25; }
.score span b { font-size: 15px; color: var(--txt); font-weight: 600; }
.f-abas { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--linha); padding-bottom: 10px; }
.f-abas button { border: 0; background: transparent; color: var(--mudo); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
.f-abas button[aria-selected="true"] { background: var(--inv); color: var(--inv-txt); padding: 9px 18px; font-weight: 600; }
.f-corpo { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.f-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.f-lado { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.painel[hidden] { display: none !important; }
.cab-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cab-card span { font-size: 13px; color: var(--mudo2); }
.jornada { display: flex; flex-direction: column; gap: 16px; }
.j-item { display: flex; gap: 14px; }
.j-quando { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 54px; flex-shrink: 0; font-size: 12px; color: var(--mudo2); text-align: center; }
.j-ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--card2); }
.j-ico.cyan { background: var(--d2); color: #3A1B05; } .j-ico.lav { background: var(--lav); color: var(--lav-txt); } .j-ico.lime { background: var(--lime); color: var(--lime-txt); }
.j-ico.escuro { background: var(--inv); color: var(--inv-txt); } .j-ico.coral { background: #FBE0DD; color: #7A1D13; } .j-ico.ok { background: #D9F2DF; color: #145A26; }
.j-corpo { flex: 1; min-width: 0; border-radius: 18px; background: var(--card2); padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.j-corpo .t { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.j-corpo .t b { font-size: 15px; font-weight: 600; }
.j-corpo p { margin: 0; font-size: 13px; color: var(--mudo); white-space: pre-line; word-break: break-word; }
.conversa { display: flex; flex-direction: column; gap: 12px; }
.conv-cab { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.conv-cab .av { width: 34px; height: 34px; border-radius: 50%; background: var(--lav); color: var(--lav-txt); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.conv-cab b { font-weight: 600; display: block; }
.conv-cab small { font-size: 12px; color: var(--mudo2); }
.bolha { max-width: 78%; border-radius: 18px; padding: 10px 14px; font-size: 14px; white-space: pre-line; word-break: break-word; }
.bolha.eu { align-self: flex-end; background: var(--card2); border-radius: 18px 18px 4px 18px; }
.bolha.sis { align-self: flex-start; background: var(--inv); color: var(--inv-txt); border-radius: 18px 18px 18px 4px; }
.bolha small { display: block; font-size: 11.5px; color: var(--mudo2); margin-top: 4px; }
.bolha.sis small { opacity: .7; color: inherit; }
.compor { display: flex; align-items: center; gap: 10px; border: 1px solid var(--linha); border-radius: 999px; padding: 6px 6px 6px 18px; background: var(--card2); }
.compor input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 14px; background: transparent; color: var(--txt); }
.compor button.env { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--lime); color: #121212; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.canais { display: flex; flex-wrap: wrap; gap: 6px; }
.canais label { cursor: pointer; position: relative; }
.canais input { position: absolute; opacity: 0; pointer-events: none; }
.canais span { display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; padding: 7px 13px; font-size: 13px; border: 1px solid var(--linha); color: var(--mudo); }
.canais input:checked + span { background: var(--inv); color: var(--inv-txt); border-color: var(--inv); }
.canais input:focus-visible + span { outline: 2px solid var(--lime); }
.leitura { background: var(--folha2); color: var(--folha-txt); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.leitura h2 { font-size: 24px; font-weight: 400; line-height: 1.15; }
.leitura .topo-l { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.leitura .topo-l i { font-size: 18px; }
.seg { display: flex; background: #FFFFFF; border-radius: 999px; padding: 4px; gap: 4px; font-size: 13px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 999px; color: var(--folha-mudo); }
.seg button.on { background: #121214; color: #F4F4F2; font-weight: 600; flex: 1.3; }
.leitura .num span { font-size: 13px; color: var(--folha-mudo); display: block; }
.leitura .num b { font-size: 38px; font-weight: 300; line-height: 1.1; }
.leitura .num b small { font-size: 18px; }
.leitura ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.leitura li { display: flex; gap: 10px; align-items: center; line-height: 1.3; }
.leitura li i { width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.leitura li i.ph-check { background: var(--lime); }
.proxima { background: var(--lime); color: var(--lime-txt); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.proxima h2 { font-size: 22px; font-weight: 400; }
.proxima .sb { font-size: 13px; color: var(--lime-mudo); }
.proxima .quando { background: #FFFFFF; border-radius: 999px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.proxima .quando i { font-size: 17px; }
.proxima p { margin: 0; font-size: 14px; line-height: 1.4; }
.proxima .dois { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.proxima .dois .btn { height: 52px; width: 100%; padding: 0 12px; white-space: nowrap; }
.proxima details summary { list-style: none; cursor: pointer; font-size: 13.5px; color: var(--lime-mudo); display: inline-flex; gap: 6px; align-items: center; }
.proxima details summary::-webkit-details-marker { display: none; }
.proxima .campo label { color: var(--lime-mudo); }
.proxima .campo input { background: rgba(255,255,255,.75); color: #121212; color-scheme: light; }
.encerrar { display: flex; gap: 8px; flex-wrap: wrap; }
.encerrar details { flex: 1 1 140px; }
.encerrar summary { list-style: none; width: 100%; }
.encerrar summary::-webkit-details-marker { display: none; }

/* equipe e regras */
.lista-check { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow: auto; padding: 2px; }
.lista-check label { display: inline-flex; gap: 6px; align-items: center; background: var(--card2); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; border: 1.5px solid transparent; }
.lista-check input { accent-color: #8FC23A; }
.lista-check label:has(input:checked) { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 18%, var(--card)); }
.campo .lista-check label { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--txt); font-size: 13px; white-space: nowrap; }
.regra { display: flex; gap: 14px; align-items: flex-start; }
.regra .ord { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: #121212; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.regra .cond { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fonte { border: 1px solid var(--linha); border-radius: 18px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; }
.fonte legend { display: flex; gap: 10px; align-items: center; padding: 0 6px; font-weight: 600; }

/* login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--fundo); position: relative; overflow: hidden; }
.login .caixa { position: relative; z-index: 1; width: 100%; max-width: 400px; background: var(--card); border-radius: 30px; padding: 34px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.login .redondo { border-radius: 16px; }
.login .fundo-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login .fundo-video video { width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(55%) brightness(38%) contrast(115%); transition: opacity 1.5s ease; }
.login .fundo-video video.ok { opacity: .55; }
.login .fundo-video::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.85) 75%); }
@media (prefers-reduced-motion: reduce) { .login .fundo-video video { display: none; } }

@media (max-width: 1180px) {
  .painel-p { max-width: none; position: static; }
}
@media (max-width: 860px) {
  .app { margin: 0; border-radius: 0; min-height: 100vh; flex-direction: column; }
  .rail { position: fixed; bottom: 16px; top: auto; left: 50%; transform: translateX(-50%); height: auto; flex-direction: row; padding: 6px; z-index: 50; gap: 4px; border-radius: 999px; background: #121212; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
  .rail .marca, .rail .esp, .rail .avatar, .rail .ir .dica, .rail .so-pc { display: none; }
  .rail .ir { width: 50px; height: 50px; border: 0; background: #232326; color: #C9C9CE; }
  .rail .ir.on { background: #F4F4F2; color: #121212; }
  .conteudo { padding: 22px 16px 110px; }
  .agenda .tit, .agenda .dia { display: none; }
  .marca-tit { font-size: 40px; }
  .nums { margin-left: 0; gap: 26px; }
  .num-g b { font-size: 32px; }
  .leads { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .leads .lcard { flex: 0 0 82%; scroll-snap-align: start; }
  .painel-p { display: none; }
  .foto { width: 72px; height: 72px; border-radius: 22px; font-size: 26px; }
  .f-info h1 { font-size: 30px; }
  .f-corpo { flex-direction: column; align-items: stretch; }
  .f-lado { order: -1; max-width: none; flex: none; width: 100%; }
  .f-main { flex: none; width: 100%; }
  h1 { font-size: 28px; }
  .tcard .quem { padding-right: 96px; }
}
.c-quente { background: var(--lime); color: #121212; } .c-frio { background: var(--cyan); color: #0B2A31; }
/* cartão inteiro clicável, com o botão do canto por cima */
.lcard.corte { position: relative; }
.lcard .cobre { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.lcard > :not(.cobre):not(.canto) { position: relative; pointer-events: none; }
.lcard .canto { z-index: 2; }
/* tema claro: o volante ganha um fundo escuro para aparecer, e o ponto do "O" do título fica num verde mais fechado */
[data-theme="light"] .marca-tit .o::after { background: #6FA12A; }
@media (max-width: 860px) { [data-theme="light"] .rail .marca { display: none; } }
[data-theme="light"] .tcard:not(.top) .bola.inv { background: #121212; color: #F4F4F2; border-color: #121212; }
/* fotos dos usuários */
.com-foto { overflow: hidden; padding: 0; background: var(--card3); }
.com-foto img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar-link { text-decoration: none; border-radius: 50%; }
.avatar-link:hover .avatar { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (max-width: 860px) { .avatar-link { display: none; } }

/* logos (PNG): um para o tema escuro, outro para o claro */
.so-claro { display: none !important; }
[data-theme="light"] .so-claro { display: inline-block !important; }
[data-theme="light"] .so-escuro { display: none !important; }
.rail .marca img { width: 44px; height: 44px; object-fit: contain; }
.marca-tit img { height: 52px; width: auto; display: inline-block; }
@media (max-width: 860px) { .marca-tit img { height: 38px; } }
/* conversa do WhatsApp */
.zap-lista { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; padding: 4px 2px; }
.zap-lista .bolha { max-width: 78%; }
.zap-img { max-width: 240px; max-height: 240px; border-radius: 12px; display: block; margin-bottom: 6px; }
.zap-lista audio { max-width: 240px; display: block; margin-bottom: 4px; }
.zap-novas { background: #25D366; color: #06290F; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }

.ws-tit { margin: 0; font-size: 34px; font-weight: 400; letter-spacing: -.01em; line-height: 1; }
@media (max-width: 860px) { .ws-tit { font-size: 28px; } }
.zap-lista .visto { display: inline-flex; vertical-align: -2px; margin-left: 2px; }
.zap-lista .visto.st-lido { color: #4FB6E8; }
.zap-lista .visto.st-erro { color: var(--d1, #F98C8C); }
.zap-lista .bolha.bot { box-shadow: inset 0 0 0 1.5px var(--linha); }
.dia-hora { min-width: 0; border: 1px solid var(--linha); border-radius: 18px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dia-hora .dia { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.dia-hora .horas { display: flex; gap: 8px; align-items: center; }
.dia-hora input[type=time] { flex: 1 1 0; width: 0; min-width: 0; background: var(--card2); color: var(--txt); border: 1.5px solid transparent; border-radius: 12px; padding: 9px 10px; font: inherit; font-size: 14px; color-scheme: dark; outline: none; }
.dia-hora input[type=time]:focus { border-color: var(--lime); }
.dia-hora:has(.dia input:not(:checked)) .horas { opacity: .4; }
[data-theme="light"] .dia-hora input[type=time] { color-scheme: light; }
/* bolinha dentro de botão (ex.: Buscar pessoa): o hover acompanha a cor do botão, não fica branco */
.btn .bola, .btn .bola:hover { background: transparent; border-color: color-mix(in srgb, currentColor 22%, transparent) !important; }
.btn:hover .bola { background: color-mix(in srgb, currentColor 14%, transparent); }
