:root {
  --azul: #0F1B33;
  --azul-2: #1B2A4A;
  --gelo: #F5F7FA;
  --verde: #2ECC40;
  --verde-escuro: #1E9E2E;
  --texto: #0F1B33;
  --muted: #5B6680;
  --linha: #E1E6EF;
  --card: #FFFFFF;
  --vermelho: #D63C3C;
  --amarelo: #E8A317;
  --raio: 10px;
  --sombra: 0 1px 2px rgba(15, 27, 51, .06), 0 2px 8px rgba(15, 27, 51, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--texto);
  background: var(--gelo);
}
a { color: var(--azul-2); }
h1 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
h3 { font-size: 13px; font-weight: 700; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.atraso { color: var(--vermelho) !important; }

/* Cabeçalho */
.top {
  background: var(--azul);
  color: var(--gelo);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo { font-weight: 800; font-size: 22px; color: var(--gelo); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.logo span { color: var(--verde); }
.logo small { font-size: 11px; font-weight: 600; opacity: .6; margin-left: 4px; letter-spacing: .1em; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #C8D0E0; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--azul-2); color: #fff; }
.nav a.on { background: var(--azul-2); color: #fff; box-shadow: inset 0 -2px 0 var(--verde); }
.me { display: flex; align-items: center; gap: 12px; font-size: 13px; white-space: nowrap; }
.me a { color: var(--gelo); text-decoration: none; }
.me .muted { color: #9AA6BE; }
.top .btn.ghost { color: var(--gelo); border-color: #3A4A6B; }

.page { max-width: 1400px; margin: 0 auto; padding: 24px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--linha);
  background: #fff; color: var(--texto); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: #C3CBDA; }
.btn.primary { background: var(--verde); border-color: var(--verde); color: var(--azul); }
.btn.primary:hover { background: #3ADB4D; }
.btn.ghost { background: transparent; }
.btn.danger { background: #fff; color: var(--vermelho); border-color: #F1C4C4; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.full { width: 100%; }

/* Cards e grids */
.card { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; margin-bottom: 16px; box-shadow: var(--sombra); }
.card.warn { border-color: var(--amarelo); background: #FFF9EC; }
.card.narrow { max-width: 520px; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Formulários */
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
input, select, textarea {
  font: inherit; font-size: 15px; color: var(--texto);
  padding: 9px 11px; border: 1px solid #CED5E2; border-radius: 8px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--verde); outline-offset: -1px; border-color: var(--verde); }
input:disabled { background: var(--gelo); color: var(--muted); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--verde-escuro); }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 800; font-size: 13px; padding: 0 6px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filtros input, .filtros select { width: auto; min-width: 150px; flex: 1 1 160px; max-width: 260px; }
.filtros label.inline { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.flash.ok { background: #E7F9EA; color: #17692A; border: 1px solid #B9EBC2; }
.flash.erro { background: #FDECEC; color: #962A2A; border: 1px solid #F3C2C2; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px 16px; box-shadow: var(--sombra); }
.kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 24px; font-weight: 800; }

/* Badges de etapa */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #E9EDF4; color: var(--azul); white-space: nowrap; }
.et-lista { background: #EEF1F6; }
.et-abordagem { background: #E3ECFB; color: #1F4FA8; }
.et-conversa { background: #E5F3FA; color: #186B8C; }
.et-diagnostico { background: #EFE7FB; color: #5A33A8; }
.et-teste { background: #FFF2D6; color: #8A5A00; }
.et-fechamento { background: #FDE8DA; color: #A0471B; }
.et-cliente { background: #DDF7E1; color: #17692A; }
.et-nutricao { background: #F1F1F1; color: #666; }
.et-perdido { background: #FBE4E4; color: #962A2A; }

/* Tarefas */
.tarefas { list-style: none; padding: 0; margin: 0; }
.tarefa a { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--linha); text-decoration: none; color: inherit; border-radius: 6px; }
.tarefa a:hover { background: var(--gelo); }
.t-data { font-size: 13px; font-weight: 700; color: var(--muted); }
.tarefa.atraso .t-data { color: var(--vermelho); }
.tarefa.hoje .t-data { color: var(--verde-escuro); }
h3.atraso { color: var(--vermelho); }
.mini-funil { list-style: none; margin: 0; padding: 0; }
.mini-funil a { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; text-decoration: none; color: inherit; border-bottom: 1px dashed var(--linha); }

/* Kanban */
.hint-drag { margin-top: -6px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: #E9EDF4; border-radius: var(--raio); padding: 10px; min-height: 200px; display: flex; flex-direction: column; }
.col header { padding: 4px 4px 10px; display: flex; flex-direction: column; gap: 2px; }
.col header small { font-size: 11.5px; line-height: 1.35; }
.col .count { background: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; margin-left: 4px; }
.col .soma { font-weight: 700; color: var(--verde-escuro); }
.col.over { outline: 2px dashed var(--verde); outline-offset: -2px; background: #E2F5E5; }
.col-drop { background: transparent; border: 2px dashed #C3CBDA; min-height: 120px; }
.cards { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 40px; }
.card-op { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 8px; padding: 10px 12px; text-decoration: none; color: inherit; border: 1px solid var(--linha); border-left: 3px solid var(--azul-2); cursor: grab; box-shadow: var(--sombra); }
.card-op:hover { border-color: #B9C3D6; }
.card-op.late { border-left-color: var(--vermelho); }
.card-op.dragging { opacity: .5; }
.card-op .foot { display: flex; justify-content: space-between; color: var(--muted); margin-top: 2px; }
.card-op .passo { color: var(--azul-2); }

/* Tabelas */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--linha); background: #FAFBFD; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: #FAFBFD; }
.tbl a { text-decoration: none; color: inherit; }
tr.inativo, li.inativo { opacity: .55; }
.paginas { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; }

/* Oportunidade */
.etapa-bar { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; }
.step { flex: 1; min-width: 110px; text-align: center; padding: 8px 6px; font-size: 12.5px; font-weight: 700; background: #E9EDF4; color: var(--muted); border-radius: 6px; white-space: nowrap; }
.step.done { background: #CFEFD5; color: #17692A; }
.step.on { background: var(--azul); color: #fff; box-shadow: inset 0 -3px 0 var(--verde); }
.step.alt { background: #7A8296; }
.etapa-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; flex-wrap: wrap; }
.etapa-head select { width: auto; }
.marcos { list-style: none; padding: 0; margin: 0; }
.marcos li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--linha); }
.marcos li.feito > span:nth-child(2) { text-decoration: line-through; color: var(--muted); }
.marcos form { margin: 0; }
.chk { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #B9C3D6; background: #fff; font-weight: 800; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 14px; }
.feito .chk { background: var(--verde); border-color: var(--verde); color: var(--azul); }
.quote { background: var(--gelo); border-left: 3px solid var(--verde); padding: 10px 14px; border-radius: 6px; }
.atividade-form { border-bottom: 1px solid var(--linha); padding-bottom: 12px; margin-bottom: 8px; }
.grid-at { display: grid; grid-template-columns: 150px 1fr; gap: 8px; margin-bottom: 8px; }
.atividade-form details { margin-bottom: 10px; }
.atividade-form summary { cursor: pointer; color: var(--azul-2); font-weight: 600; margin-bottom: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 14px; border-left: 2px solid var(--linha); margin-left: 4px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #B9C3D6; }
.timeline li.tl-etapa::before { background: var(--verde); }
.timeline li.tl-sistema { color: var(--muted); font-size: 13px; }
.dados dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; font-size: 14px; }
.dados dt { color: var(--muted); font-weight: 600; }
.dados dd { margin: 0; word-break: break-word; }
.danger-zone { margin-top: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Métricas */
.barras { list-style: none; padding: 0; margin: 0; }
.barras li { display: grid; grid-template-columns: 130px 1fr 90px; gap: 10px; align-items: center; padding: 6px 0; }
.b-label { font-weight: 600; font-size: 14px; }
.b-bar { background: #EEF1F6; border-radius: 6px; height: 22px; overflow: hidden; }
.b-bar i { display: block; height: 100%; background: var(--azul-2); border-radius: 6px; }
.barras li:last-child .b-bar i { background: var(--verde); }
.b-val { font-weight: 800; text-align: right; }
.lista-simples { list-style: none; padding: 0; margin: 0; }
.lista-simples li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--linha); }
.lista-edit { list-style: none; padding: 0; margin: 0 0 12px; }
.lista-edit li { padding: 6px 0; border-bottom: 1px dashed var(--linha); }
.lista-edit form { margin: 0; }
.lista-edit input { max-width: 260px; }
.lista-edit span { flex: 1; }
.permissoes { line-height: 1.6; }
.code { background: var(--azul); color: #D8E0EE; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }

/* Login */
body.auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; background: var(--azul); }
.auth-box { background: #fff; border-radius: 14px; padding: 32px; width: 100%; max-width: 400px; }
.auth-box.wide { max-width: 560px; }
.auth-box .logo { color: var(--azul); font-size: 30px; display: block; margin-bottom: 4px; }
.auth-box h1 { margin: 12px 0 8px; font-size: 20px; }

/* Celular */
@media (max-width: 900px) {
  .cols, .cols.even { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px; }
  .nav { order: 3; flex-basis: 100%; }
  .me { margin-left: auto; }
  .page { padding: 16px; }
}
@media (max-width: 600px) {
  h1 { font-size: 20px; }
  .grid2, .grid3, .grid-at { grid-template-columns: 1fr; }
  .filtros input, .filtros select { max-width: none; flex-basis: 100%; }
  .tarefa a { grid-template-columns: 70px 1fr; }
  .tarefa a .badge { display: none; }
  .kanban { grid-auto-columns: 82%; }
  .barras li { grid-template-columns: 100px 1fr 70px; }
  .me .muted { display: none; }
  .card { padding: 16px; }
}

/* WhatsApp */
.btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.btn.wa:hover { background: #1FB958; }
.wa-mini { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #E6F9EE; color: #128C4A !important; flex: none; vertical-align: middle; }
.wa-mini:hover { background: #25D366; color: #fff !important; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card-op:focus-visible { outline: 2px solid var(--verde); outline-offset: 1px; }

/* Resultados e metas */
.kpis-valor .kpi small { display: block; font-size: 12px; margin-top: 4px; }
.kpi.destaque { border-color: var(--verde); box-shadow: inset 0 3px 0 var(--verde), var(--sombra); }
.meta-bar { position: relative; display: block; height: 8px; background: #EEF1F6; border-radius: 99px; margin-top: 8px; overflow: visible; min-width: 80px; }
.meta-bar i { display: block; height: 100%; border-radius: 99px; background: var(--azul-2); }
.meta-bar i.ok { background: var(--verde); }
.meta-bar i.meio { background: var(--amarelo); }
.meta-bar i.baixo { background: #E07A5F; }
.meta-bar .esperado { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--azul); border-radius: 2px; }
.meta-cell .meta-bar { margin: 2px 0 4px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #EEF1F6; color: var(--muted); }
.tag.individual { background: #E3ECFB; color: #1F4FA8; }
.tbl.vend td { white-space: nowrap; }
.tbl tfoot td { border-top: 2px solid var(--linha); background: #FAFBFD; }
.table-wrap.plain { border: 0; box-shadow: none; }
.barras-valor .b-bar { position: relative; height: 26px; }
.barras-valor .b-bar i { background: #C9D3E6; position: absolute; left: 0; top: 0; }
.barras-valor .b-bar em { position: absolute; left: 0; top: 0; height: 100%; background: var(--verde); border-radius: 6px; }
.barras-valor li { grid-template-columns: 150px 1fr 170px; }
.barras-valor li:last-child .b-bar i { background: #C9D3E6; }
.meta-hoje .meta-linha { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.meta-hoje .meta-bar { margin-top: 0; height: 12px; }
.meta-hoje .meta-bar .esperado { top: -3px; height: 18px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 600px) {
  .grid5 { grid-template-columns: 1fr 1fr; }
  .meta-hoje .meta-linha { grid-template-columns: 1fr; gap: 4px; }
  .barras-valor li { grid-template-columns: 90px 1fr 110px; }
}

/* Ponto */
.inline-form { margin: 0; display: inline; }
.ponto-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gelo); font-variant-numeric: tabular-nums; }
.ponto-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 3px rgba(46, 204, 64, .25); }
.pausa-menu { position: relative; }
.pausa-menu summary { list-style: none; }
.pausa-menu summary::-webkit-details-marker { display: none; }
.pausa-lista { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(15, 27, 51, .25); padding: 6px; min-width: 220px; z-index: 30; display: flex; flex-direction: column; }
.pausa-lista button { font: inherit; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 6px; color: var(--texto); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.pausa-lista button:hover { background: var(--gelo); }
.pausa-lista small { color: var(--muted); font-weight: 500; }
.pausa-overlay { position: fixed; inset: 0; background: rgba(15, 27, 51, .92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pausa-box { background: #fff; border-radius: 16px; padding: 32px; text-align: center; width: 100%; max-width: 380px; }
.pausa-box h2 { font-size: 22px; margin: 4px 0 12px; }
.pausa-crono { font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--azul); }
.pausa-crono.estourou { color: var(--vermelho); }
.pausa-estourou { color: var(--vermelho); font-weight: 700; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.status-pessoa { border: 1px solid var(--linha); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.status-pessoa .st { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.st.online { color: var(--verde-escuro); } .st.pausa { color: #8A5A00; } .st.off { color: var(--muted); }
.st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.alerta { color: var(--vermelho); font-weight: 700; font-size: 12px; }
.tl-ponto { list-style: none; padding: 0; margin: 0; }
.tl-ponto li { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--linha); font-size: 14px; }
.tl-ponto li.p { padding-left: 16px; color: #8A5A00; }
.num { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .ponto-chip { display: none; }
  .tl-ponto li { grid-template-columns: 90px 1fr; }
}

/* Gráficos */
.viz-wrap { position: relative; }
.viz { width: 100%; max-width: 100%; height: auto; display: block; overflow: visible; }
.viz .grid { stroke: #E6EAF1; stroke-width: 1; }
.viz .grid.base { stroke: #B9C3D6; }
.viz .ax { font-size: 11.5px; fill: var(--muted); font-family: inherit; }
.viz .lbl { font-size: 11.5px; fill: var(--texto); font-weight: 700; font-family: inherit; }
.viz .meta-ln { stroke: var(--azul); stroke-width: 2; stroke-dasharray: 5 3; }
.viz .viz-hit { fill: transparent; cursor: crosshair; outline: none; }
.viz .viz-hit:hover, .viz .viz-hit:focus { fill: rgba(15, 27, 51, .05); }
.viz-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-bottom: 8px; color: var(--texto); }
.viz-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.viz-legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.viz-legenda i.meta-ic { height: 0; border-top: 2px dashed var(--azul); border-radius: 0; width: 16px; }
.viz-tabela { margin-top: 8px; font-size: 13px; }
.viz-tabela summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.viz-tabela .tbl td, .viz-tabela .tbl th { padding: 6px 10px; }
.viz-tip { position: fixed; z-index: 200; pointer-events: none; background: var(--azul); color: #fff; font-size: 13px; line-height: 1.5; padding: 8px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(15, 27, 51, .3); max-width: 280px; }
.viz-tip i.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.hbar { list-style: none; margin: 0; padding: 0; }
.hbar li { display: grid; grid-template-columns: minmax(110px, 180px) 1fr minmax(110px, auto); gap: 12px; align-items: center; padding: 6px 4px; border-radius: 6px; outline: none; }
.hbar li:hover, .hbar li:focus { background: #F4F6FA; }
.hb-l { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { position: relative; height: 20px; background: #EEF1F6; border-radius: 4px; }
.hb-t i { display: block; height: 100%; border-radius: 4px; }
.hbar-meta { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--azul); }
.hb-v { font-weight: 800; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.hb-v small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid .card { margin-bottom: 0; }
.dash-grid .span2 { grid-column: 1 / -1; }
.seg-ctrl { display: inline-flex; background: #E9EDF4; border-radius: 8px; padding: 3px; gap: 2px; }
.seg-ctrl a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 13px; }
.seg-ctrl a.on { background: #fff; color: var(--texto); box-shadow: var(--sombra); }
.card h2 small { font-weight: 600; color: var(--muted); font-size: 12px; margin-left: 6px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hbar li { grid-template-columns: 1fr auto; } .hb-t { grid-column: 1 / -1; grid-row: 2; } }

/* Meta pessoal */
.meta-hero { border-width: 2px; }
.meta-link { display: block; text-decoration: none; color: inherit; }
.meta-hero .mh-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.mh-status { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 99px; }
.mh-num { font-size: 28px; font-weight: 800; margin: 8px 0 4px; }
.mh-num small { font-size: 14px; font-weight: 600; color: var(--muted); }
.mh-msg { font-size: 15px; font-weight: 600; margin: 4px 0; }
.mh-plano { margin: 6px 0 0; color: var(--texto); }
.mh-pct { font-size: 40px; font-weight: 800; line-height: 1; }
.meta-bar.big { height: 14px; margin-top: 14px; }
.meta-bar.big .esperado { top: -4px; height: 22px; width: 3px; }
.meta-bar i.batida, .meta-bar i.verde { background: #17A34A; }
.meta-bar i.amarelo { background: #E8A317; }
.meta-bar i.vermelho { background: #D63C3C; }
.meta-batida, .meta-verde { border-color: #17A34A; background: linear-gradient(180deg, #F1FBF4, #fff 60%); }
.meta-batida .mh-status, .meta-verde .mh-status { background: #DDF7E1; color: #17692A; }
.meta-batida .mh-pct, .meta-verde .mh-pct { color: #17A34A; }
.meta-amarelo { border-color: #E8A317; background: linear-gradient(180deg, #FFF9EC, #fff 60%); }
.meta-amarelo .mh-status { background: #FFF2D6; color: #8A5A00; }
.meta-amarelo .mh-pct { color: #B57C00; }
.meta-vermelho { border-color: #D63C3C; background: linear-gradient(180deg, #FDF0F0, #fff 60%); }
.meta-vermelho .mh-status { background: #FBE4E4; color: #962A2A; }
.meta-vermelho .mh-pct { color: #D63C3C; }
.meta-neutro .mh-status { background: #EEF1F6; color: var(--muted); }
.caminho { list-style: none; margin: 0; padding: 0; }
.caminho li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--linha); }
.c-num { font-size: 26px; font-weight: 800; text-align: center; background: var(--gelo); border-radius: 10px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.c-tx { white-space: nowrap; }
.dia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dia-item { border: 1px solid var(--linha); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.dia-item b { font-size: 22px; }
.dia-item.ok { border-color: #17A34A; } .dia-item.baixo { border-color: #D63C3C; } .dia-item.meio { border-color: #E8A317; }
.mini-dl { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; margin: 16px 0 0; }
.mini-dl dt { color: var(--muted); } .mini-dl dd { margin: 0; font-weight: 700; text-align: right; }
.st-pendente { background: #FDE8DA; color: #A0471B; } .st-paga { background: #DDF7E1; color: #17692A; } .st-cancelada { background: #F1F1F1; color: #666; }
@media (max-width: 600px) { .dia-grid { grid-template-columns: 1fr; } .mh-num { font-size: 22px; } .mh-pct { font-size: 28px; } }
/* Topo compacto quando há muitos itens */
@media (max-width: 1500px) {
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .me .muted { display: none; }
  .top { gap: 16px; }
}
@media (max-width: 700px) {
  .viz-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .viz-scroll .viz { max-width: none; width: calc(var(--w, 720) * 0.85px); }
  .kpi b { font-size: 19px; white-space: nowrap; }
}

/* Avatar */
.avatar { position: relative; width: var(--av); height: var(--av); flex: none; display: inline-block; vertical-align: middle; }
.avatar img, .avatar > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: calc(var(--av) * .38); letter-spacing: .02em; }
.av-dot { position: absolute; right: -1px; bottom: -1px; width: calc(var(--av) * .3); height: calc(var(--av) * .3); min-width: 10px; min-height: 10px; border-radius: 50%; border: 2px solid #fff; background: #B9C3D6; }
.av-dot.online { background: #25D366; } .av-dot.pausa { background: #E8A317; }
.me-perfil { display: inline-flex; align-items: center; gap: 8px; }
.perfil-foto { display: flex; gap: 20px; align-items: center; }
.perfil-foto form { margin: 6px 0 0; }
.file-btn { cursor: pointer; }

/* Botão do chat no topo */
.chat-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--gelo) !important; }
.chat-btn:hover, .chat-btn.on { background: var(--azul-2); }
.chat-badge { position: absolute; top: 1px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #25D366; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--azul); }
.chat-badge[hidden] { display: none; }
.chat-toast { position: fixed; right: 20px; bottom: 20px; z-index: 150; background: #fff; border-left: 4px solid #25D366; border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 27, 51, .25); padding: 12px 16px; max-width: 320px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--texto); animation: toastIn .25s ease-out; }
.chat-toast span { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-toast.sai { opacity: 0; transform: translateY(10px); transition: all .5s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Tela do chat */
.chat-app { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 110px); min-height: 480px; background: #fff; border: 1px solid var(--linha); border-radius: 12px; overflow: hidden; box-shadow: var(--sombra); }
.chat-lista { border-right: 1px solid var(--linha); display: flex; flex-direction: column; min-height: 0; }
.chat-eu { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--gelo); border-bottom: 1px solid var(--linha); }
.chat-eu > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-busca { margin: 10px 12px; width: auto; border-radius: 99px; background: var(--gelo); border-color: transparent; padding: 8px 14px; }
.chat-contatos { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.chat-contatos a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid #F0F2F6; }
.chat-contatos a:hover { background: #F7F8FB; }
.chat-contatos a.on { background: #EAF1FB; }
.cc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-l1, .cc-l2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cc-l1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.cc-l1 small { color: var(--muted); font-size: 12px; flex: none; }
.cc-funcao { font-size: 12px; color: var(--muted); }
.cc-prev { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tem-nova .cc-prev { color: var(--texto); font-weight: 600; }
.tem-nova .cc-l1 small { color: #128C4A; font-weight: 700; }
.cc-badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #25D366; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.chat-conversa { display: flex; flex-direction: column; min-height: 0; background: #EFEAE2; background-image: radial-gradient(rgba(15, 27, 51, .045) 1px, transparent 1px); background-size: 18px 18px; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--gelo); border-bottom: 1px solid var(--linha); min-height: 66px; }
.chat-quem { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-quem > div { display: flex; flex-direction: column; min-width: 0; }
.st-txt.online { color: #128C4A; font-weight: 700; } .st-txt.pausa { color: #8A5A00; font-weight: 700; }
.chat-voltar { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px 6%; display: flex; flex-direction: column; gap: 3px; outline: none; }
.chat-vazio { text-align: center; margin: auto; background: rgba(255, 255, 255, .8); padding: 8px 14px; border-radius: 8px; }
.msg { display: flex; }
.msg.minha { justify-content: flex-end; }
.msg-b { max-width: min(560px, 78%); padding: 7px 10px 6px; border-radius: 10px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); word-wrap: break-word; overflow-wrap: anywhere; position: relative; }
.dele .msg-b { background: #fff; border-top-left-radius: 2px; }
.minha .msg-b { background: #D9FDD3; border-top-right-radius: 2px; }
.msg + .msg.dele .msg-b, .msg.minha + .msg.minha .msg-b { border-radius: 10px; }
.msg-h { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: #667781; display: inline-flex; gap: 3px; align-items: center; }
.tick { font-style: normal; font-size: 12px; letter-spacing: -3px; color: #8696A0; margin-left: 2px; padding-right: 3px; }
.tick.lida { color: #53BDEB; }
.msg-dia { text-align: center; margin: 10px 0 6px; }
.msg-dia span { background: #fff; color: #54656F; font-size: 12px; padding: 4px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px; background: var(--gelo); border-top: 1px solid var(--linha); }
.chat-form[hidden] { display: none; }
.chat-form textarea { resize: none; border-radius: 22px; padding: 10px 16px; max-height: 140px; line-height: 1.4; }
.chat-enviar { border-radius: 22px; }
@media (max-width: 760px) {
  .page:has(.chat-app) { padding: 0; }
  .chat-app { grid-template-columns: 1fr; border-radius: 0; border: 0; height: calc(100vh - 96px); height: calc(100dvh - 96px); }
  .chat-app .chat-conversa { display: none; }
  .chat-app.com-conversa .chat-lista { display: none; }
  .chat-app.com-conversa .chat-conversa { display: flex; }
  .chat-voltar { display: inline-flex; }
  .chat-msgs { padding: 12px; }
  .msg-b { max-width: 85%; }
  .chat-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
.chat-lista, .chat-conversa { min-width: 0; overflow: hidden; }
.chat-busca { width: calc(100% - 24px); box-sizing: border-box; }
.chat-contatos a { min-width: 0; }

/* v6: qualificação, saúde, playbook, conversas */
.saude-pill { font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 99px; }
.saude-pill.verde { background: #DDF7E1; color: #17692A; } .saude-pill.amarelo { background: #FFF2D6; color: #8A5A00; } .saude-pill.vermelho { background: #FBE4E4; color: #962A2A; }
.saude-card.saude-vermelho { border-color: #F3C2C2; box-shadow: inset 4px 0 0 #D63C3C, var(--sombra); }
.saude-card.saude-amarelo { box-shadow: inset 4px 0 0 #E8A317, var(--sombra); }
.saude-card.saude-verde { box-shadow: inset 4px 0 0 #17A34A, var(--sombra); }
.saude-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.saude-grid > div { border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.saude-grid span { font-size: 12px; color: var(--muted); font-weight: 600; } .saude-grid b { font-size: 20px; }
.inline-det { display: inline-block; } .inline-det summary { list-style: none; } .inline-det summary::-webkit-details-marker { display: none; }
.et-cancelado { background: #3A3F4B; color: #fff; }
.pb-item { border: 1px solid var(--linha); border-radius: 8px; margin-bottom: 8px; }
.pb-item summary { cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.pb-txt { padding: 0 12px 12px; font-size: 14px; color: var(--texto); }
.tag.pb-script { background: #E3ECFB; color: #1F4FA8; } .tag.pb-objecao { background: #FDE8DA; color: #A0471B; } .tag.pb-regra { background: #EEF1F6; } .tag.pb-material { background: #DDF7E1; color: #17692A; }
.whats-log { background: #EFEAE2; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; margin-top: 10px; }
@media (max-width: 600px) { .saude-grid { grid-template-columns: 1fr 1fr; } }
.nps-box h1 { font-size: 20px; line-height: 1.35; }
.nps-escala { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin: 12px 0 4px; }
.nps-n { margin: 0 !important; }
.nps-n input { position: absolute; opacity: 0; pointer-events: none; }
.nps-n span { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 8px; border: 1px solid var(--linha); font-weight: 800; cursor: pointer; font-size: 15px; }
.nps-n.nd input:checked + span { background: #D63C3C; color: #fff; border-color: #D63C3C; }
.nps-n.np input:checked + span { background: #E8A317; color: #fff; border-color: #E8A317; }
.nps-n.nr input:checked + span { background: #17A34A; color: #fff; border-color: #17A34A; }
.nps-n input:focus-visible + span { outline: 2px solid var(--azul); }
.nps-legenda { display: flex; justify-content: space-between; margin-bottom: 14px; }
.hook { border: 1px solid var(--linha); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; word-break: break-all; }
code { font-size: 12.5px; background: #EEF1F6; padding: 1px 5px; border-radius: 4px; }
.tag.fc-commit { background: #DDF7E1; color: #17692A; } .tag.fc-provavel { background: #E3ECFB; color: #1F4FA8; } .tag.fc-otimista { background: #FFF2D6; color: #8A5A00; } .tag.fc-fora { background: #EEF1F6; }
.nav-mais summary { list-style: none; color: #C8D0E0; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.nav-mais summary::-webkit-details-marker { display: none; }
.nav-mais summary:hover, .nav-mais summary.on, .nav-mais[open] summary { background: var(--azul-2); color: #fff; }
.nav-mais summary.on { box-shadow: inset 0 -2px 0 var(--verde); }
.nav-menu { position: fixed; z-index: 40; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 27, 51, .28); padding: 6px; min-width: 220px; display: flex; flex-direction: column; }
.nav .nav-menu a { color: var(--texto); padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.nav .nav-menu a:hover, .nav .nav-menu a.on { background: var(--gelo); color: var(--texto); box-shadow: none; }
@media (max-width: 1500px) { .nav-mais summary { padding: 8px 9px; font-size: 13.5px; } }
.alerta-card { border-color: #F3C2C2; box-shadow: inset 4px 0 0 #D63C3C, var(--sombra); }
.kpis-valor .kpi b { white-space: nowrap; }
@media (max-width: 1500px) { .kpis-valor .kpi b { font-size: 21px; } }

/* Responsivo: colunas nunca crescem além da tela por causa de gráfico ou tabela larga */
.cols > *, .cols.even > *, .dash-grid > *, .grid2 > *, .grid3 > *, .grid5 > * { min-width: 0; }
.card, .viz-wrap { min-width: 0; max-width: 100%; }
.viz-scroll { max-width: 100%; }
code { word-break: break-all; }
.tbl td .row-gap input { min-width: 0; }
@media (max-width: 600px) {
  .head { align-items: flex-start; }
  .head > .row-gap, .head > form { width: 100%; }
  .head > form select { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis-valor .kpi b { font-size: 18px; }
  .marcos li { grid-template-columns: 32px 1fr; }
  .marcos li > span.small { grid-column: 2; }
  .etapa-head form { width: 100%; }
  .etapa-head form select { flex: 1; }
  .card h2 small { display: block; margin: 2px 0 0; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 8px 10px; }
}
.row-gap .badge, .head .badge { white-space: normal; text-align: left; }
.campo-banner { display: none; }
@media (max-width: 760px) { .campo-banner { display: block; background: var(--azul); color: #fff; text-decoration: none; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; } .campo-banner b { color: var(--verde); } }

.col-mais { display: block; text-align: center; padding: 8px; margin-top: 6px; border-radius: 8px; background: rgba(15,27,51,.05); color: inherit; text-decoration: none; }
.col-mais:hover { background: rgba(15,27,51,.1); }

/* Atualizações */
.flash.aviso { background: #FFF6E0; color: #7A5200; border: 1px solid #F2DDA4; font-weight: 500; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #EEF1F6; color: #3B4458; }
.pill.ok { background: #DDF7E1; color: #17692A; } .pill.aviso { background: #FFF2D6; color: #8A5A00; } .pill.erro { background: #FBE4E4; color: #962A2A; }
.atu-drop { display: grid; gap: 6px; padding: 22px; border: 2px dashed #CBD3E1; border-radius: 12px; text-align: center; cursor: pointer; background: #FAFBFD; }
.atu-drop input { justify-self: center; max-width: 100%; }
.atu-versoes { font-size: 18px; margin: 4px 0 12px; } .atu-versoes span { color: #6b7385; }
.atu-notas { background: #F6F8FB; border-radius: 10px; padding: 12px 14px; line-height: 1.55; margin: 8px 0 12px; white-space: normal; }
.atu-arquivos summary { cursor: pointer; font-weight: 700; margin: 8px 0; }
.atu-arquivos ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 280px; overflow: auto; }
.atu-arquivos code, .atu-passos code { font-size: 12.5px; word-break: break-all; }
.atu-arquivos [class^="tag-"] { display: inline-block; min-width: 68px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tag-criar { color: #17692A; } .tag-alterar { color: #2a5bd6; } .tag-remover { color: #962A2A; }
.atu-passos { border-top: 1px solid #EEF1F6; margin-top: 14px; padding-top: 12px; }
.atu-passos ol, .atu-como ol { padding-left: 20px; line-height: 1.6; margin: 8px 0; }
.atu-confirma { align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
.atu-confirma .grow { flex: 1 1 220px; }
.atu-hist { display: grid; gap: 8px; }
.atu-item { border: 1px solid #E6EAF1; border-radius: 10px; padding: 10px 14px; }
.atu-item summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.atu-item summary .atu-t { flex: 1 1 200px; min-width: 0; }
/* Exportar PDF */
.btn-pdf { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
main > .btn-pdf.solto { float: right; margin-bottom: 8px; }
.head .head-pdf { margin-left: auto; }
@media (max-width: 640px) { .head .head-pdf { margin-left: 0; } }
/* E-mail */
.modo-op { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--linha); border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 500; }
.radio-card:has(input:checked) { border-color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); background: #F4FCF5; }
.radio-card input { margin-top: 3px; }
.radio-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.link-btn { background: none; border: 0; padding: 0; color: #2a5bd6; font: inherit; cursor: pointer; text-decoration: underline; }
.email-acoes { flex-wrap: wrap; align-items: center; } .email-acoes .grow { flex: 1; } .email-acoes input { min-width: 220px; flex: 1 1 220px; max-width: 320px; }
.grid3 .span2c { grid-column: span 2; }
@media (max-width: 640px) { .grid3 .span2c { grid-column: auto; } .email-acoes input { max-width: none; } }
.ok-txt { color: var(--verde-escuro); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
/* Marca */
.marca-logo { display: grid; gap: 10px; margin-bottom: 14px; }
.marca-logo-prev { border-radius: 10px; padding: 18px; display: flex; align-items: center; min-height: 76px; }
.marca-logo-prev img { max-height: 48px; max-width: 220px; }
.cor-campo { display: flex; align-items: center; gap: 10px; } .cor-campo input[type=color] { width: 54px; height: 40px; padding: 2px; border-radius: 8px; cursor: pointer; }
.cor-sugestoes { display: flex; gap: 8px; flex-wrap: wrap; } .cor-sugestoes button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--linha); cursor: pointer; }
.marca-prev { border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; max-width: 560px; margin-bottom: 14px; background: #fff; }
.mp-topo { background: var(--c1); color: var(--t1); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; min-height: 58px; }
.mp-topo img { max-height: 34px; max-width: 160px; } .mp-topo span { font-size: 11px; opacity: .9; text-align: right; }
.mp-faixa { height: 4px; background: var(--c2); }
.mp-corpo { padding: 14px 18px; display: grid; gap: 6px; } .mp-corpo b { font-size: 17px; } .mp-corpo span { color: var(--muted); font-size: 12px; }
.mp-corpo i { display: block; height: 8px; background: var(--gelo); border-radius: 4px; } .mp-corpo i.curto { width: 60%; }

/* Editor do layout do orçamento */
.orc-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
.orc-painel { display: grid; gap: 12px; }
.orc-painel label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.orc-painel .rot { font-weight: 700; margin: 4px 0 0; font-size: 14px; }
.orc-abas { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--linha); margin: -4px 0 4px; scrollbar-width: none; }
.orc-abas button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); padding: 10px 12px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.orc-abas button.on { color: var(--texto); border-bottom-color: var(--verde); }
.orc-fixo { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--gelo); color: var(--muted); }
.orc-blocos { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.orc-bloco { border: 1px solid var(--linha); border-radius: 10px; background: #fff; }
.orc-bloco.oculto .ob-nome { opacity: .45; }
.orc-bloco.arrastando { box-shadow: 0 8px 24px rgba(15, 27, 51, .18); border-color: var(--verde); position: relative; z-index: 2; }
.ob-linha { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 2px; }
.ob-mao { cursor: grab; touch-action: none; user-select: none; padding: 10px 8px; color: var(--muted); font-weight: 800; letter-spacing: -2px; }
.orc-bloco.arrastando .ob-mao { cursor: grabbing; }
.ob-nome { flex: 1; min-width: 0; display: grid; } .ob-nome b { font-size: 14px; } .ob-nome small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-btn, .ob-olho { border: 0; background: none; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--muted); flex: none; }
.ob-btn:hover, .ob-olho:hover { background: var(--gelo); color: var(--texto); }
.ob-campos { padding: 4px 12px 12px; display: grid; gap: 8px; }
.orc-vars summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; }
#orc-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.var-chip { border: 1px solid var(--linha); background: #fff; border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 12.5px; font-family: ui-monospace, Menlo, monospace; cursor: pointer; display: grid; text-align: left; }
.var-chip small { font-family: 'Manrope', sans-serif; color: var(--muted); font-size: 11px; }
.chips-edit { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-edit .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--gelo); border-radius: 99px; padding: 5px 6px 5px 12px; font-weight: 600; font-size: 14px; }
.chips-edit .chip button { border: 0; background: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; }
.orc-acoes { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--linha); padding-top: 12px; }
.orc-wa-api summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.orc-wa-api[open] { display: grid; gap: 8px; }
.orc-previa-wrap { position: sticky; top: 76px; }
.orc-ver-previa { display: none; }

/* Folha da prévia (imita o PDF A4) */
.orc-papel { background: #fff; border-radius: 6px; box-shadow: 0 2px 16px rgba(15, 27, 51, .12); font-size: 11px; color: var(--ct); overflow: hidden; aspect-ratio: 210 / 297; overflow-y: auto; display: flex; flex-direction: column; }
.pp-cab { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 3px solid var(--c2); gap: 12px; }
.pp-cab.faixa { background: var(--c1); }
.pp-logo img { max-height: 34px; max-width: 150px; display: block; } .pp-logo b { font-size: 17px; color: var(--s1); }
.pp-num { text-align: right; display: grid; color: var(--s1); } .pp-num small { font-weight: 800; font-size: 8.5px; letter-spacing: .04em; opacity: .9; } .pp-num b { font-size: 16px; } .pp-num span { font-size: 9px; opacity: .85; }
.pp-cab.limpo .pp-num small, .pp-cab.limpo .pp-num span { color: var(--muted); }
.pp-corpo { padding: 14px 22px; display: grid; gap: 10px; align-content: start; flex: 1; }
.pp-corpo p { margin: 0; line-height: 1.5; }
.pp-corpo h4 { margin: 4px 0 0; font-size: 11.5px; border-left: 3px solid var(--c2); padding-left: 7px; }
.pp-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-pessoa { border: 1px solid #E1E6EF; border-radius: 7px; padding: 8px 10px; display: grid; gap: 1px; min-width: 0; }
.pp-pessoa small { font-size: 7.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; } .pp-pessoa span { color: var(--muted); font-size: 9.5px; overflow-wrap: anywhere; }
.pp-tab { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.pp-tab th { background: var(--tb); color: var(--stb); text-align: left; font-size: 7.5px; text-transform: uppercase; padding: 6px; }
.pp-tab th:first-child { border-radius: 4px 0 0 4px; } .pp-tab th:last-child { border-radius: 0 4px 4px 0; }
.pp-tab td { padding: 6px; border-bottom: 1px solid #E1E6EF; vertical-align: top; } .pp-tab td small { display: block; color: var(--muted); font-size: 8.5px; }
.pp-tab th:nth-child(n+3), .pp-tab td:nth-child(n+3) { text-align: right; }
.pp-tot { justify-self: end; width: min(260px, 100%); display: grid; gap: 4px; }
.pp-tot div { display: flex; justify-content: space-between; padding: 4px 8px; border-bottom: 1px solid #E1E6EF; } .pp-tot span { color: var(--muted); }
.pp-tot .forte { background: var(--c2); color: var(--s2); border-radius: 6px; border: 0; font-size: 12px; } .pp-tot .forte span { color: inherit; font-weight: 700; }
.pp-val { border: 1.5px solid var(--c2); border-radius: 7px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; } .pp-val i { width: 9px; height: 9px; border-radius: 50%; background: var(--c2); } .pp-val span { margin-left: auto; color: var(--muted); font-size: 9px; }
.pp-lista { margin: 0; padding-left: 16px; line-height: 1.6; } .pp-lista li::marker { color: var(--c2); }
.pp-assina { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; } .pp-assina div { display: grid; } .pp-assina i { border-top: 1px solid #9AA3B2; margin-bottom: 4px; } .pp-assina small { color: var(--muted); font-size: 8.5px; }
.pp-link { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.pp-contato { background: #F5F7FA; border-radius: 9px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; } .pp-contato div { flex: 1; display: grid; } .pp-contato span { color: var(--muted); font-size: 9.5px; }
.pp-contato em { font-style: normal; background: var(--c2); color: var(--s2); border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 9.5px; white-space: nowrap; }
.pp-rod { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #E1E6EF; margin: 0 22px; padding: 8px 0 12px; color: var(--muted); font-size: 8px; }
@media (max-width: 960px) {
  .orc-editor { grid-template-columns: 1fr; }
  .orc-previa-wrap { position: static; order: -1; }
  .orc-ver-previa { display: inline-flex; margin-bottom: 8px; }
  .orc-papel { display: none; aspect-ratio: auto; max-height: none; }
  .orc-papel.aberta { display: flex; }
}

/* Orçamento: formulário, tela e página pública */
.orc-itens { display: grid; gap: 10px; margin-bottom: 10px; }
.orc-item { border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; background: #fff; }
.orc-item[data-tipo=implantacao] { background: #FAFBFD; }
.oi-topo { display: flex; justify-content: space-between; align-items: center; } .oi-rot { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.oi-nums { display: grid; grid-template-columns: 80px 1fr 100px 1fr auto; gap: 8px; align-items: end; }
.oi-nums .oi-total { text-align: right; display: grid; } .oi-total small { color: var(--muted); font-size: 12px; } .oi-total b { font-size: 16px; white-space: nowrap; }
input.ro { background: var(--gelo); color: var(--muted); } input.erro { border-color: var(--vermelho); box-shadow: 0 0 0 2px #FBE4E4; }
.orc-totais { display: grid; gap: 4px; justify-self: end; margin-left: auto; width: min(360px, 100%); }
.orc-totais div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-bottom: 1px solid var(--linha); } .orc-totais span { color: var(--muted); }
.orc-totais .forte { background: var(--verde); color: #0F1B33; border-radius: 8px; border: 0; font-size: 16px; } .orc-totais .forte span { color: inherit; font-weight: 700; }
.chips-radio { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips-radio label { cursor: pointer; position: relative; } .chips-radio input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; margin: 0; left: 0; top: 0; }
.chips-radio span { display: grid; border: 1px solid var(--linha); border-radius: 10px; padding: 8px 14px; font-weight: 700; } .chips-radio small { color: var(--muted); font-weight: 500; font-size: 12px; }
.chips-radio input:checked + span { border-color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); background: #F4FCF5; }
.chips-radio input:focus-visible + span { outline: 2px solid var(--azul); }
.orc-salvar { display: flex; gap: 8px; margin: 16px 0 40px; flex-wrap: wrap; }
.orc-canais { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.canal { display: grid; gap: 2px; text-align: left; border: 1px solid var(--linha); border-radius: 12px; padding: 14px; background: #fff; font: inherit; color: inherit; text-decoration: none; cursor: pointer; width: 100%; }
.canal:hover:not([disabled]) { border-color: var(--azul); } .canal[disabled] { opacity: .5; cursor: not-allowed; } .canal small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.canal-wa { border-color: #25D366; background: #F2FCF5; } .canal-form { display: contents; }
.orc-email { margin-top: 14px; border-top: 1px solid var(--linha); padding-top: 14px; }
.orc-enviar { margin-bottom: 16px; }
.orc-toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 300; box-shadow: 0 6px 20px rgba(15,27,51,.2); }
.btn.danger { color: var(--vermelho); }
@media (max-width: 720px) { .oi-nums { grid-template-columns: 1fr 1fr; } .oi-nums .oi-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; } }
.prop-body { background: var(--gelo); margin: 0; }
.prop-in { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.prop-topo { background: var(--c1); border-bottom: 4px solid var(--c2); color: var(--s1); }
.prop-topo .prop-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 76px; }
.prop-topo img { max-height: 40px; max-width: 180px; } .prop-topo span { display: grid; text-align: right; font-size: 11px; font-weight: 800; letter-spacing: .04em; } .prop-topo span b { font-size: 18px; letter-spacing: 0; }
.prop-main { display: grid; gap: 14px; padding-top: 18px; padding-bottom: 24px; }
.prop-cab { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; } .prop-cab h1 { margin: 2px 0; font-size: 22px; } .prop-cab p { margin: 0; }
.prop-val { border: 2px solid var(--c2); border-radius: 12px; padding: 10px 16px; display: grid; text-align: center; } .prop-val small { color: var(--muted); font-weight: 700; } .prop-val b { font-size: 18px; } .prop-val.venceu { border-color: var(--vermelho); }
.prop-itens { display: grid; } .prop-item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.prop-item > div:first-child { display: grid; gap: 2px; min-width: 0; } .prop-item span { color: var(--muted); font-size: 14px; } .prop-item small { color: var(--muted); font-size: 12.5px; }
.prop-item-v { text-align: right; display: grid; align-content: start; white-space: nowrap; } .prop-item-v small { color: var(--muted); font-size: 12px; }
.prop-tot { margin: 12px 0 16px auto; } .prop-tot .forte { background: var(--c2); color: var(--s2); }
.prop-cond { padding-left: 20px; line-height: 1.6; } .prop-cond li::marker { color: var(--c2); }
.prop-aceite { border: 2px solid var(--c2); } .prop-recusa { margin-top: 14px; } .prop-recusa summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.prop-vend { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .prop-vend div { display: grid; }
.prop-rod { color: var(--muted); font-size: 12.5px; padding-bottom: 30px; text-align: center; }
.orc-op-lista { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.orc-op-lista li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--linha); border-radius: 8px; padding: 8px 10px; }
.orc-op-lista a { display: grid; color: inherit; text-decoration: none; min-width: 0; } .orc-op-lista a span { color: var(--muted); font-size: 12.5px; }

/* Ajuda */
.ajuda-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--gelo) !important; }
.ajuda-btn:hover, .ajuda-btn.on { background: rgba(255, 255, 255, .1); }
.aj { display: grid; gap: 16px; }
.aj-topo { text-align: center; padding: 10px 0 4px; } .aj-topo h1 { margin: 0; } .aj-topo > p { margin: 4px 0 14px; }
.aj-busca { position: relative; max-width: 680px; margin: 0 auto; }
.aj-busca svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.aj-busca input { width: 100%; padding: 16px 16px 16px 48px; font-size: 16px; border-radius: 14px; border: 1.5px solid var(--linha); box-shadow: var(--sombra); }
.aj-busca input:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 3px rgba(46, 204, 64, .2); }
.aj-sugestoes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.aj-sugestoes button { border: 1px solid var(--linha); background: #fff; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.aj-sugestoes button:hover { color: var(--texto); border-color: var(--azul); }
.aj-div { justify-self: center; }
.aj-resultados { display: grid; gap: 12px; max-width: 820px; width: 100%; margin: 0 auto; }
.aj-resposta { border: 2px solid var(--verde); } .aj-resposta small { color: var(--verde-escuro); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; }
.aj-resposta h2 { margin: 6px 0 8px; font-size: 19px; } .aj-resposta p { line-height: 1.6; }
.aj-outros ul, .aj-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.aj-outros a, .aj-card a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.aj-outros a:hover, .aj-card a:hover { background: var(--gelo); } .aj-outros span, .aj-card span { color: var(--muted); font-size: 13px; }
.aj-nada p { margin: 6px 0 0; }
.aj-corpo { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.aj-nav { position: sticky; top: 76px; }
.aj-nav-det summary { display: none; }
.aj-nav .aj-sec { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; }
.aj-nav ul { list-style: none; padding: 0; margin: 0; } .aj-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--texto); text-decoration: none; font-size: 14px; }
.aj-nav a:hover { background: #fff; } .aj-nav a.on { background: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--verde); }
.aj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.aj-card h2 { font-size: 16px; }
.aj-art { max-width: 820px; line-height: 1.6; } .aj-art h2 { font-size: 23px; margin: 4px 0 6px; } .aj-art h3 { margin: 22px 0 8px; font-size: 16px; }
.aj-trilha { font-size: 13px; color: var(--muted); margin: 0; } .aj-trilha a { color: inherit; }
.aj-resumo { font-size: 16px; color: var(--muted); margin-top: 0; }
.aj-passos { padding-left: 0; list-style: none; counter-reset: p; display: grid; gap: 8px; margin: 0; }
.aj-passos li { counter-increment: p; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.aj-passos li::before { content: counter(p); width: 26px; height: 26px; border-radius: 50%; background: var(--azul); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.aj-botoes { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 0; margin: 0; border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; }
.aj-botoes dt { font-weight: 700; padding: 9px 12px; background: var(--gelo); border-bottom: 1px solid var(--linha); }
.aj-botoes dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--linha); }
.aj-botoes dt:last-of-type, .aj-botoes dd:last-of-type { border-bottom: 0; }
.aj-faq { display: grid; gap: 6px; } .aj-faq details { border: 1px solid var(--linha); border-radius: 10px; padding: 0 14px; background: #fff; }
.aj-faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; } .aj-faq details p { margin: 0 0 12px; color: var(--texto); }
.aj-faq details[open] { border-color: var(--verde); }
.aj-lista-simples { padding-left: 18px; margin: 0; }
@media (max-width: 860px) {
  .aj-corpo { grid-template-columns: 1fr; }
  .aj-nav { position: static; }
  .aj-nav-det { background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 4px 12px 10px; }
  .aj-nav-det summary { display: block; cursor: pointer; font-weight: 700; padding: 8px 0; }
  .aj-botoes { grid-template-columns: 1fr; } .aj-botoes dt { border-bottom: 0; padding-bottom: 2px; } .aj-botoes dd { padding-top: 0; background: var(--gelo); }
}
@media (min-width: 861px) { .aj-nav-det > summary { pointer-events: none; } }
.radio-card input[type=radio] { width: auto; flex: none; }

/* ===================== Instagram ===================== */
.ig-nav-badge, .ig-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #E1306C; color: #fff; font-size: 11px; font-weight: 800; margin-left: 4px; vertical-align: 1px; }
.ig-nav-badge[hidden], .ig-badge[hidden] { display: none; }
.ig-abas { flex-wrap: wrap; }
.ig-abas a { display: inline-flex; align-items: center; }
.ig-conectar { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: linear-gradient(90deg, #FFF0F5, #F3EEFF); border: 1px solid #F3C9DA; border-radius: var(--raio); padding: 12px 16px; margin-bottom: 16px; }
.ig-conectar > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ig-conectar span { font-size: 13px; color: var(--muted); }
.ig-conectar.manual { background: #F7F8FB; border-color: var(--linha); }
.ig-kpis { margin-bottom: 14px; }
.ig-add summary { cursor: pointer; list-style: none; }
.ig-add summary::-webkit-details-marker { display: none; }
.ig-filas { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.ig-filas a { text-decoration: none; padding: 7px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--linha); color: var(--muted); font-weight: 700; font-size: 13px; }
.ig-filas a b { margin-left: 4px; color: var(--texto); }
.ig-filas a.on { background: var(--azul); border-color: var(--azul); color: #fff; }
.ig-filas a.on b { color: #fff; }
.ig-filas a.quente:not(.on) { border-color: #E1306C; color: #B0204F; }
.ig-fila { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ig-item { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px 16px; box-shadow: var(--sombra); display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.ig-item.aguarda { border-color: #F3C9DA; box-shadow: inset 3px 0 0 #E1306C, var(--sombra); }
.ig-item.ok { border-color: #BFE8C6; box-shadow: inset 3px 0 0 var(--verde), var(--sombra); }
.ig-quem { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; min-width: 0; }
.ig-quem > div { display: flex; flex-direction: column; min-width: 0; }
.ig-quem > .ig-passo { grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; }
.ig-h { font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.ig-emp { color: var(--texto); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.ig-emp:hover, .ig-h:hover { text-decoration: underline; }
.ig-av { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 800; background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.ig-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag.ig-d0 { background: #FCE4EE; color: #A3184A; } .tag.ig-d3 { background: #EFE6FB; color: #5B2DA0; } .tag.ig-d7 { background: #EEF1F6; color: #3B4458; }
.ig-msg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ig-msg .ig-txt { font-size: 14px; line-height: 1.45; resize: vertical; min-height: 84px; }
.ig-msg .ig-txt[readonly] { background: #F7F8FB; color: var(--muted); }
.ig-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ig-espera { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: #A3184A; }
.ig-espera[hidden], .ig-feito[hidden] { display: none; }
.ig-pulso { width: 9px; height: 9px; border-radius: 50%; background: #E1306C; animation: igPulso 1.4s ease-in-out infinite; }
@keyframes igPulso { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .ig-pulso { animation: none; } }
.ig-feito { color: var(--verde-escuro); }
.ig-visto { color: #5B2DA0; }
.vazio-ig { text-align: center; padding: 28px 16px; }
.ig-dicas ul { margin: 0; padding-left: 18px; color: var(--muted); }
.ig-dicas li { margin-bottom: 4px; }
/* Direct */
.ig-head-direct { margin-bottom: 12px; }
.ig-filtros { padding: 0 0 6px; border-bottom: 1px solid var(--linha); }
.ig-chips { display: flex; flex-wrap: wrap; gap: 6px; overflow-x: auto; padding: 0 12px 6px; scrollbar-width: none; }
.ig-chips::-webkit-scrollbar { display: none; }
.ig-chips button { flex: none; border: 1px solid var(--linha); background: #fff; color: var(--muted); border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ig-chips button.on { background: var(--azul); color: #fff; border-color: var(--azul); }
.ig-vend { margin: 4px 12px 4px; width: calc(100% - 24px); }
.ig-direct .chat-contatos a .ig-av { width: 44px; height: 44px; }
.ig-st { font-weight: 700; } .ig-st.prospeccao { color: #A3184A; } .ig-st.entrada { color: #1F4FA8; } .ig-st.lead { color: #17692A; } .ig-st.ignorada { color: var(--muted); }
.ig-ponto { width: 9px; height: 9px; border-radius: 50%; background: #E1306C; flex: none; }
.ig-faixa { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--linha); font-size: 13.5px; }
.ig-faixa[hidden] { display: none; }
.ig-janela { padding: 6px 14px; background: #EAF7EC; color: #17692A; border-top: 1px solid var(--linha); }
.ig-janela.humano { background: #FFF5DD; color: #7A5200; }
.ig-janela.fechada, .ig-janela.sem_entrada { background: #FBEDED; color: #8A2626; }
.ig-janela[hidden], .ig-rapidas[hidden] { display: none; }
.ig-rapidas { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 0; background: var(--gelo); border-top: 1px solid var(--linha); }
.ig-rapidas button { flex: none; border: 1px solid #D9C8F2; background: #F6F0FF; color: #5B2DA0; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ig-anexo img { display: block; max-width: 240px; max-height: 260px; border-radius: 8px; margin-bottom: 4px; }
.ig-anexo-txt { display: block; color: var(--muted); font-size: 13px; }
.ig-dialog { border: 0; border-radius: 14px; padding: 20px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(15, 27, 51, .3); }
.ig-dialog::backdrop { background: rgba(15, 27, 51, .45); }
.ig-vinc-lista { list-style: none; margin: 0 0 12px; padding: 0; max-height: 300px; overflow-y: auto; }
.ig-vinc-lista button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--linha); padding: 10px 6px; font: inherit; cursor: pointer; }
.ig-vinc-lista button:hover { background: #F7F8FB; }
/* Oportunidade, perfil, configuração */
.ig-op .ig-cad { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.ig-op .ig-cad li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.ig-op .ig-cad .chk { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--linha); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.ig-op .ig-cad li.feito .chk { background: var(--verde); border-color: var(--verde); }
.ig-op .ig-cad li.resp b { color: #A3184A; }
.ig-fila-op { margin-bottom: 10px; }
.ig-fila-op .ig-item { grid-template-columns: 1fr; padding: 0; border: 0; box-shadow: none; }
.ig-fila-op .ig-item.aguarda, .ig-fila-op .ig-item.ok { box-shadow: none; }
.ig-log { max-height: 260px; overflow-y: auto; margin-bottom: 10px; }
.ig-perfil-conta { display: flex; gap: 12px; align-items: center; }
.ig-perfil-conta > div { display: flex; flex-direction: column; }
.ig-check { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.ig-check li { display: flex; gap: 12px; align-items: flex-start; }
.ig-check li > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ig-check .chk { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #EEF1F6; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.ig-check li.ok .chk { background: var(--verde); color: #fff; }
.ig-passos { margin: 12px 0; padding-left: 20px; display: grid; gap: 8px; }
.ig-guia summary, .ig-rot-novo summary { cursor: pointer; }
.ig-copiar { display: flex; gap: 6px; margin-top: 4px; }
.ig-copiar input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; min-width: 0; }
.ig-rot-lista { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.ig-rot-lista > li { border: 1px solid var(--linha); border-radius: 8px; padding: 10px 12px; background: #fff; }
.ig-rot-lista > li.inativo { opacity: .6; }
.ig-rot-lista summary { cursor: pointer; }
.ig-rot-txt { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); white-space: pre-wrap; }
.ig-eventos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.ig-eventos li { overflow-wrap: anywhere; }
.ig-eventos li.erro b { color: var(--vermelho); }
.ig-toast { border-left-color: #E1306C; }
.rel-cols { position: relative; }
.rel-cols-lista { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(15, 27, 51, .15); display: grid; gap: 4px; min-width: 220px; }
.rel-cols-lista label { font-size: 13.5px; white-space: nowrap; }
.rel-atalhos { color: var(--muted); }
.rel-padrao { margin: -6px 0 14px; }
.rel-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.rel-dl dt { color: var(--muted); } .rel-dl dd { margin: 0; font-weight: 700; }
@media (max-width: 760px) {
  .ig-item { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .ig-conectar { flex-direction: column; align-items: stretch; }
  .ig-copiar { flex-direction: column; }
  .page:has(.ig-direct) .head { padding: 12px 12px 0; }
  .page:has(.ig-direct) > .ig-conectar, .page:has(.ig-direct) > .flash { margin: 0 12px 10px; }
  .ig-faixa { padding: 8px 12px; }
  .ig-anexo img { max-width: 200px; }
  .rel-cols-lista { position: static; box-shadow: none; margin-top: 6px; }
  .ig-acoes .btn { flex: 1 1 auto; }
}
/* Notebook (até ~1480 px): o menu vai para uma segunda linha inteira, assim nenhum item (nem Gestão/Mais) fica escondido */
@media (min-width: 901px) and (max-width: 1480px) {
  .top { flex-wrap: wrap; row-gap: 0; padding: 6px 24px 0; }
  .top .me { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; overflow: visible; margin: 2px -9px 4px; }
}
.ig-dicas h3 { margin-top: 0; }
