/* Encanta — tela clara inspirada na Natura: branco, respiro, laranja suave como acento, formas em pílula. Logo original intacto. */
:root {
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-2: #F6F5F3; --surface-3: #EFEDEA;
  --ink: #1A1A1A; --ink-2: #363636; --muted: #6B6B6B; --line: #ECEAE7; --line-2: #DAD7D2;
  --acc: #F48646; --acc-hover: #EE7430; --acc-text: #A8481A; --acc-ink: #1A1A1A; --acc-soft: #FFE9DA; --acc-soft-2: #FFF6EF;
  --lat: #FFFFFF; --lat-ink: #363636; --lat-brand: #1A1A1A; --lat-submarca: #6B6B6B; --lat-ativo: #FFE9DA; --lat-ativo-ink: #1A1A1A; --lat-sep: #ECEAE7;
  --lat-hover: rgba(26,26,26,.04); --lat-control: rgba(26,26,26,.04); --lat-control-hover: rgba(26,26,26,.07); --lat-control-active: #FFFFFF; --lat-control-active-ink: #1A1A1A;
  --lat-accent: #F48646; --lat-accent-ink: #1A1A1A; --lat-marker: transparent; --lat-decor: #F48646; --lat-button-border: rgba(26,26,26,.18);
  --luz-1: rgba(244,134,70,.30); --luz-2: rgba(250,196,120,.38); --luz-3: rgba(240,150,160,.22); --luz-base: #FFFBF7;
  --grafico: #F48646; --grade: #ECEAE7;
  --ok: #1E7B4A; --ok-soft: #E3F3EA; --warn: #8A5A00; --warn-soft: #FFF3D6; --bad: #B3261E; --bad-soft: #FDE7E5; --info: #1F5C8B; --info-soft: #E4EEF6;
  --ia: #A8481A; --ia-soft: #FFE9DA;
  --bolha-cli: #FFFFFF; --bolha-ia: #FFF6EF; --bolha-eq: #FFE9DA; --bolha-eq-ink: #1A1A1A;
  --sombra: 0 1px 2px rgba(26,26,26,.03), 0 14px 34px -22px rgba(26,26,26,.16);
  --sombra-leve: 0 1px 2px rgba(26,26,26,.04), 0 8px 20px -16px rgba(26,26,26,.14);
  --raio: 22px; --raio-m: 16px; --raio-s: 12px;
  --faisca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.9 7.2 4.8 11.1 12 12-7.2.9-11.1 4.8-12 12-.9-7.2-4.8-11.1-12-12C7.2 11.1 11.1 7.2 12 0Z'/%3E%3C/svg%3E");
  --f: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-tema="claro"] { color-scheme: light; }
:root[data-tema="escuro"] {
  --bg: #090909; --surface: #121212; --surface-2: #191919; --surface-3: #232323;
  --ink: #FAFAF8; --ink-2: #CAC7C2; --muted: #9E9A94; --line: #2B2B2B; --line-2: #3A3A3A;
  --acc: #F48646; --acc-hover: #F7A06E; --acc-text: #F7A06E; --acc-ink: #0D0D0D; --acc-soft: #3A1C0A; --acc-soft-2: #24130A;
  --lat: #0D0D0D; --lat-ink: #FFFFFF; --lat-brand: #FFFFFF; --lat-submarca: rgba(255,255,255,.78); --lat-ativo: rgba(244,134,70,.22); --lat-ativo-ink: #FFFFFF; --lat-sep: rgba(255,255,255,.1);
  --lat-hover: rgba(255,255,255,.08); --lat-control: rgba(255,255,255,.08); --lat-control-hover: rgba(255,255,255,.14); --lat-control-active: #F48646; --lat-control-active-ink: #0D0D0D;
  --lat-accent: #F48646; --lat-accent-ink: #0D0D0D; --lat-marker: #F48646; --lat-decor: #F48646; --lat-button-border: rgba(255,255,255,.45);
  --grafico: #F48646; --grade: #262626;
  --ok: #6FD39A; --ok-soft: #12281D; --warn: #F2B84B; --warn-soft: #33260A; --bad: #FF8A80; --bad-soft: #351513; --info: #7DB4E6; --info-soft: #12222F;
  --ia: #F7A06E; --ia-soft: #351A0A;
  --bolha-cli: #191919; --bolha-ia: #24130A; --bolha-eq: #F48646; --bolha-eq-ink: #0D0D0D;
  --sombra: 0 12px 32px -14px rgba(0,0,0,.7); --sombra-leve: 0 4px 14px -6px rgba(0,0,0,.6);
  color-scheme: dark;
  --luz-1: rgba(244,134,70,.22); --luz-2: rgba(250,196,120,.12); --luz-3: rgba(240,150,160,.10); --luz-base: #141414;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f); -webkit-font-smoothing: antialiased; transition: background-color .2s ease, color .2s ease; }
a { color: var(--acc-text); }
h1, h2, h3 { font-family: var(--f); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 32px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .pequeno { font-size: 14px; } .mini { font-size: 13px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 45%, transparent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- aparência ---------- */
.tema-seletor { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-3); box-shadow: var(--sombra-leve); flex: none; }
.tema-seletor button { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 12px/1 var(--f); cursor: pointer; transition: background .15s ease, color .15s ease, transform .1s ease; }
.tema-seletor button:hover { color: var(--acc-text); }
.tema-seletor button:active { transform: translateY(1px); }
.tema-seletor button.ativo, .tema-seletor button[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); box-shadow: var(--sombra-leve); }
.tema-seletor button:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 45%, transparent); outline-offset: 2px; }
.tema-lateral { width: 100%; margin-bottom: 16px; border-color: var(--lat-sep); background: var(--lat-control); box-shadow: none; }
.tema-lateral button { flex: 1; color: var(--lat-ink); }
.tema-lateral button:hover { color: var(--lat-ink); background: var(--lat-control-hover); }
.tema-lateral button.ativo, .tema-lateral button[aria-pressed="true"] { background: var(--lat-control-active); color: var(--lat-control-active-ink); }
.tema-login { position: absolute; top: 24px; right: 24px; z-index: 3; }
.tema-flutuante { position: fixed; top: 20px; right: 20px; z-index: 50; }
.tema-legal { margin-left: auto; margin-right: 12px; }
.tema-central { margin-left: auto; }
@media (max-width: 700px) {
  .tema-seletor:not(.tema-lateral) .tema-rotulo { display: none; }
  .tema-seletor:not(.tema-lateral) button { width: 34px; padding: 0; }
  .tema-login { top: 16px; right: 16px; }
  .tema-flutuante { top: 14px; right: 14px; }
  .tema-legal { margin-right: 6px; }
}

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .1s ease, box-shadow .16s ease; }
.btn:hover { border-color: var(--acc-text); color: var(--acc-text); box-shadow: var(--sombra-leve); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); box-shadow: var(--sombra-leve); }
.btn.pri:hover { background: var(--acc-hover); border-color: var(--acc-hover); color: var(--acc-ink); }
.btn.suave { background: var(--acc-soft); border-color: transparent; color: var(--acc-text); }
.btn.perigo { color: var(--bad); }
.btn.perigo:hover { border-color: var(--bad); }
.btn.fantasma { background: transparent; border-color: transparent; }
.btn.pq { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ic { width: 46px; padding: 0; }
.btn.ic.pq { width: 38px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.campo > span { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.inp, select.inp, textarea.inp { width: 100%; min-height: 48px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--raio-s); padding: 10px 14px; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.inp:focus { outline: none; border-color: var(--acc-text); box-shadow: 0 0 0 4px var(--acc-soft); }
textarea.inp { resize: vertical; min-height: 96px; }
.busca { position: relative; }
.busca svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.busca .inp { padding-left: 46px; border-radius: 999px; }
.linha { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grade3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pilha > * + * { margin-top: 20px; }
@media (max-width: 1100px) { .grade3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grade2, .grade3 { grid-template-columns: 1fr; } }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100dvh; }
.lateral { background: var(--lat); color: var(--lat-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow-y: auto; border-right: 1px solid var(--lat-sep); }
.marca { display: flex; align-items: center; gap: 12px; padding: 30px 26px 26px; }
.marca img { width: 46px; height: 46px; }
.marca b { color: var(--lat-brand); font-size: 19px; font-weight: 600; line-height: 1.1; display: block; }
.marca small { color: var(--lat-submarca); font-size: 13px; }
.nav { display: flex; align-items: center; gap: 14px; margin: 2px 12px; padding: 12px 14px; border-radius: 12px; color: var(--lat-ink); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; transition: background .15s ease, color .15s ease; }
.nav svg { width: 22px; height: 22px; flex: none; }
.nav:hover { background: var(--lat-hover); }
.nav.ativo { background: var(--lat-ativo); color: var(--lat-ativo-ink); font-weight: 600; box-shadow: var(--sombra-leve); }
.nav.ativo::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--lat-marker); }
.nav .cont { margin-left: auto; background: var(--lat-accent); color: var(--lat-accent-ink); border-radius: 99px; font-size: 12px; padding: 1px 9px; font-weight: 700; }
.nav-sep { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; padding: 22px 26px 8px; border-top: 1px solid var(--lat-sep); margin-top: 12px; }
.lateral .rodape { margin-top: auto; padding: 18px 20px 22px; border-top: 1px solid var(--lat-sep); }
.lateral .rodape .avatar { background: var(--lat-control); color: var(--lat-ink); }
.lateral .rodape .btn { border-color: var(--lat-button-border); background: transparent; color: var(--lat-ink); }
.lateral .rodape .btn:hover { background: var(--lat-control-hover); color: var(--lat-ink); }
.assinatura-vai { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--lat-sep); font-size: 11px; letter-spacing: .02em; }
.assinatura-vai span { opacity: .72; }
.assinatura-vai strong { font-size: 12px; letter-spacing: .04em; }
.conteudo { min-width: 0; display: flex; flex-direction: column; }
.topo { display: flex; align-items: center; gap: 14px; padding: 20px 40px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); backdrop-filter: blur(18px); }
.topo .busca { flex: 0 1 420px; }
.topo .busca .inp { background: var(--surface); border-color: transparent; box-shadow: var(--sombra-leve); }
.topo .espaco { flex: 1; }
.btn-redondo { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; position: relative; color: var(--ink-2); flex: none; }
.btn-redondo svg { width: 22px; height: 22px; }
.btn-redondo:hover { border-color: var(--acc-text); color: var(--acc-text); }
.btn-redondo .ponto { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); }
.btn-redondo.ligado { background: var(--acc-soft); color: var(--acc-text); border-color: transparent; }
.topo select.inp { width: auto; min-width: 190px; border-radius: 999px; box-shadow: var(--sombra-leve); border-color: transparent; }
.cab-pagina { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 40px 24px; }
.cab-pagina p { margin: 6px 0 0; color: var(--muted); max-width: 760px; }
.pagina { padding: 0 40px 56px; }
.menu-btn { display: none !important; }
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-102%); transition: transform .22s; box-shadow: var(--sombra); }
  .lateral.aberta { transform: none; }
  .menu-btn { display: inline-grid !important; }
  .fundo-menu { position: fixed; inset: 0; background: rgba(13,13,13,.48); z-index: 55; }
  .topo { padding: 14px 20px; }
  .cab-pagina { padding: 4px 20px 18px; }
  .pagina { padding: 0 20px 40px; }
}
@media (max-width: 640px) {
  .topo { gap: 8px; }
  .topo .busca, .topo .so-largo { display: none; }
  h1 { font-size: 26px; }
  .topo select.inp { min-width: 0; max-width: 150px; font-size: 14px; }
  .btn-redondo { width: 44px; height: 44px; }
}

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); padding: 26px; box-shadow: var(--sombra); min-width: 0; }
.card.plano { box-shadow: none; border: 1.5px solid var(--line); }
.card-tit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); padding: 24px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.kpi:hover { transform: translateY(-2px); border-color: var(--acc-text); box-shadow: 0 22px 50px -32px rgba(13,13,13,.5); }
.kpi .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--acc-soft); color: var(--acc-text); display: grid; place-items: center; }
.kpi .ic svg { width: 26px; height: 26px; }
.kpi .rot { font-size: 15px; color: var(--muted); }
.kpi .val { font-size: 34px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .sub { font-size: 13px; color: var(--muted); }
.kpi.destaque { position: relative; overflow: hidden; background: var(--acc); border-color: var(--acc); color: var(--acc-ink); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--acc) 80%, transparent); }
.kpi.destaque::after { content: ''; position: absolute; right: -40px; bottom: -50px; width: 220px; height: 220px; background: #fff; opacity: .16; pointer-events: none; -webkit-mask: var(--faisca) center/contain no-repeat; mask: var(--faisca) center/contain no-repeat; }
.kpi.destaque > * { position: relative; z-index: 1; }
.kpi.destaque .ic { background: var(--acc-ink); color: var(--acc); }
.kpi.destaque .val { font-size: clamp(26px, 2.4vw, 34px); white-space: nowrap; }
.kpi.destaque .rot, .kpi.destaque .sub { color: rgba(13,13,13,.82); }
.kpi.destaque:hover { border-color: var(--acc-hover); }
/* 4 indicadores lado a lado sempre que houver ~220px para cada um: com menu lateral (1025–1250px) e no celular ficam 2x2 */
@media (min-width: 1025px) and (max-width: 1250px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .kpis { gap: 14px; } .kpi { padding: 18px 20px; gap: 10px; } .kpi .val { font-size: 28px; } }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* valor do indicador encolhe para caber ("R$ 12.608,80" num cartão de 160px) */
@media (max-width: 520px) { .kpi .val { font-size: clamp(18px, 5.6vw, 26px) !important; white-space: nowrap; } .kpi .rot { font-size: 13px; } .kpi::after { opacity: .5; } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 12px; } .kpi { padding: 18px; } .kpi .val { font-size: 26px; } .kpi .ic { width: 42px; height: 42px; } }

/* ---------- tabelas (Noto: cabeçalho em faixa, linha alta com foto) ---------- */
.tabela { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabela th { text-align: left; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 16px 18px; background: var(--surface-2); white-space: nowrap; }
.tabela th:first-child { border-radius: 14px 0 0 14px; } .tabela th:last-child { border-radius: 0 14px 14px 0; }
.tabela td { padding: 16px 18px; border-bottom: 1.5px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr.click { cursor: pointer; }
.tabela tr.click:hover td { background: var(--acc-soft-2); }
.rolavel { overflow-x: auto; }
.prod { display: flex; align-items: center; gap: 14px; min-width: 0; }
.foto { width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); object-fit: contain; flex: none; }
.foto.p { width: 44px; height: 44px; border-radius: 11px; }
.foto.g { width: 88px; height: 88px; border-radius: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 10px; padding: 5px 12px; white-space: nowrap; }
.pill.novo { background: var(--acc-soft); color: var(--acc-text); } .pill.separado { background: var(--ia-soft); color: var(--ia); } .pill.saiu { background: var(--info-soft); color: var(--info); }
.pill.entregue, .pill.retirado, .pill.ok, .pill.conectado { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--line); } .pill.cancelado, .pill.erro { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 28%, transparent); }
.pill.ia { background: var(--ia-soft); color: var(--ia); } .pill.humano { background: var(--warn-soft); color: var(--warn); }
.pill.encerrada, .pill.pendente, .pill.desligado { background: var(--surface-3); color: var(--muted); }
.pill.pq { font-size: 12px; padding: 3px 9px; border-radius: 8px; }
.etiqueta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; border-radius: 99px; padding: 4px 12px; background: var(--surface-3); color: var(--ink-2); }
.etiqueta button { border: 0; background: none; cursor: pointer; padding: 0; color: var(--muted); font-size: 16px; line-height: 1; }

/* ---------- abas: segmentado (Vora) e sublinhado (Noto) ---------- */
.segmento { display: inline-flex; background: var(--surface-3); border-radius: 24px; padding: 5px; gap: 4px; flex-wrap: wrap; }
.segmento button { border: 0; background: transparent; border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.segmento button[aria-pressed="true"] { background: var(--surface); color: var(--acc-text); box-shadow: var(--sombra-leve); font-weight: 600; }
.segmento button b { margin-left: 6px; font-weight: 700; }
.sublinhado { display: flex; gap: 30px; border-bottom: 1.5px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.sublinhado button { border: 0; background: none; padding: 12px 0; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.sublinhado button[aria-pressed="true"] { color: var(--acc-text); border-bottom-color: var(--acc-text); }
.sublinhado button b { margin-left: 6px; }

/* ---------- estados ---------- */
.vazio { text-align: center; padding: 56px 20px; color: var(--muted); }
.vazio svg { width: 52px; height: 52px; color: var(--acc-text); opacity: .55; margin-bottom: 12px; }
.vazio b { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.carregando { padding: 56px; text-align: center; color: var(--muted); }
.carregando::before { content: ''; display: block; width: 32px; height: 32px; margin: 0 auto 12px; border: 3px solid var(--line); border-top-color: var(--acc-text); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.aviso { border-radius: var(--raio-m); padding: 16px 20px; background: var(--acc-soft-2); border: 1.5px solid color-mix(in srgb, var(--acc) 28%, transparent); margin-bottom: 20px; display: flex; gap: 14px; align-items: flex-start; }
.aviso.erro { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.aviso svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--acc-text); }
.aviso.erro svg { color: var(--bad); }

/* ---------- gráfico ---------- */
.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .dica { position: absolute; pointer-events: none; background: var(--surface); border-radius: 12px; box-shadow: var(--sombra); padding: 10px 14px; font-size: 14px; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); border: 1.5px solid var(--line); }

/* ---------- ATENDIMENTO (layout Mensagens do Vora: três painéis) ---------- */
.atend { display: grid; grid-template-columns: 380px minmax(0, 1fr) 350px; grid-template-rows: minmax(0, 1fr); gap: 20px; height: calc(100dvh - 94px); padding: 0 40px 24px; }
.painel-a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); box-shadow: var(--sombra); display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.lista-cab { padding: 22px 22px 14px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1.5px solid var(--line); }
.eu-status { display: flex; align-items: center; gap: 12px; }
.eu-status b { display: block; font-size: 16px; }
.disp { font-size: 13px; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.disp::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.filtros-conv { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filtros-conv button { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; color: var(--ink-2); }
.filtros-conv button[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.filtros-grupos { flex-wrap: wrap; overflow: visible; }
.itens-conv { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 14px; padding: 16px 22px; cursor: pointer; border-bottom: 1.5px solid var(--line); position: relative; }
.conv:hover { background: var(--surface-2); }
.conv.ativa { background: var(--acc-soft-2); }
.conv.ativa::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--acc); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-text); display: grid; place-items: center; font-weight: 600; font-size: 16px; flex: none; position: relative; }
.avatar.g { width: 88px; height: 88px; font-size: 30px; margin: 0 auto; }
.avatar.p { width: 38px; height: 38px; font-size: 14px; }
.avatar .canal { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--acc); border: 2.5px solid var(--surface); display: grid; place-items: center; }
.avatar .canal svg { width: 11px; height: 11px; color: var(--acc-ink); }
.conv .meio { flex: 1; min-width: 0; }
.conv .nome { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 16px; }
.conv .nome span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .hora { font-size: 13px; color: var(--muted); font-weight: 400; flex: none; }
.conv .prev { color: var(--muted); font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 2px; }
.conv .tags { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.bolinha { background: var(--acc); color: var(--acc-ink); border-radius: 99px; font-size: 12px; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; font-weight: 700; margin-left: auto; }
.chat-cab { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1.5px solid var(--line); flex-wrap: nowrap; }
.chat-cab > * { flex-shrink: 0; }
.chat-cab .quem { flex: 1 1 0; min-width: 0; }
.chat-cab .quem > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-cab .btn.fantasma { border-color: var(--line-2); }
@media (max-width: 1499px) { .chat-cab > .pill { display: none; } }
.chat-cab .quem b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-cab .quem span { font-size: 13px; color: var(--muted); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.msg.dir { align-self: flex-end; flex-direction: row-reverse; }
.bolha { padding: 12px 16px; border-radius: 20px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,.04); min-width: 0; }
.bolha.cliente { background: var(--bolha-cli); border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.bolha.ia { background: var(--bolha-ia); border-bottom-right-radius: 6px; }
.bolha.atendente { background: var(--bolha-eq); color: var(--bolha-eq-ink); border-bottom-right-radius: 6px; }
.bolha img { display: block; width: 240px; max-width: 100%; border-radius: 14px; background: #fff; margin-bottom: 8px; }
.bolha .meta { font-size: 12px; opacity: .8; margin-top: 6px; text-align: right; }
.bolha.falhou { outline: 2px solid var(--bad); }
.selo-ia { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ia); background: var(--ia-soft); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
.nota-sis { align-self: center; font-size: 13px; color: var(--muted); background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: 99px; padding: 5px 16px; max-width: 90%; text-align: center; }
.chat-envio { padding: 14px 20px 18px; border-top: 1.5px solid var(--line); background: var(--surface); position: relative; }
.chat-envio .caixa { display: flex; gap: 10px; align-items: flex-end; background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: 22px; padding: 8px 8px 8px 18px; }
.chat-envio .caixa:focus-within { border-color: var(--acc-text); box-shadow: 0 0 0 4px var(--acc-soft); }
.chat-envio textarea { flex: 1; border: 0; background: transparent; resize: none; min-height: 44px; max-height: 160px; padding: 10px 0; outline: none; font-size: 15px; }
.acoes-envio { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.acoes-envio .btn { min-height: 36px; padding: 0 14px; font-size: 14px; background: var(--surface-2); border-color: transparent; }
.acoes-envio .btn:hover { background: var(--acc-soft); color: var(--acc-text); }
.acoes-envio .btn svg { width: 18px; height: 18px; }
.enviar { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.enviar svg { width: 20px; height: 20px; }
.enviar:disabled { opacity: .5; }
.rapidas { position: absolute; left: 20px; right: 20px; bottom: calc(100% - 6px); background: var(--surface); border-radius: var(--raio-m); box-shadow: var(--sombra); border: 1.5px solid var(--line); max-height: 340px; overflow-y: auto; z-index: 10; padding: 8px; }
.rapidas button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.rapidas button:hover, .rapidas button.sel { background: var(--acc-soft-2); }
.rapidas b { color: var(--acc-text); font-weight: 600; margin-right: 8px; }
.rapidas span { color: var(--muted); font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha { overflow-y: auto; padding: 26px 22px; flex: 1; min-height: 0; }
.ficha .topo-ficha { text-align: center; padding-bottom: 20px; border-bottom: 1.5px solid var(--line); }
.ficha .topo-ficha b { display: block; font-size: 19px; margin-top: 12px; }
.ficha section { padding: 18px 0; border-bottom: 1.5px solid var(--line); }
.ficha section:last-child { border-bottom: 0; }
.ficha h3 { font-size: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ficha dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.ficha dt { color: var(--muted); } .ficha dd { margin: 0; word-break: break-word; }
.compra { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.compra + .compra { border-top: 1px solid var(--line); }
.compra .info { flex: 1; min-width: 0; font-size: 14px; }
.compra .info b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nota-int { background: var(--warn-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 8px; }
.nota-int small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.voltar-lista, .fechar-ficha { display: none !important; }
@media (max-width: 1440px) {
  .atend { grid-template-columns: 350px minmax(0, 1fr); }
  .atend .ficha-painel { display: none; }
  .atend.com-ficha .ficha-painel { display: flex; position: fixed; right: 24px; top: 96px; bottom: 24px; width: 380px; z-index: 30; }
  .fechar-ficha { display: inline-grid !important; }
}
@media (min-width: 1441px) { .so-ficha-flutuante { display: none !important; } }
@media (max-width: 1024px) { .atend { padding: 0 20px 16px; height: calc(100dvh - 80px); } }
@media (max-width: 860px) {
  .atend { grid-template-columns: 1fr; gap: 0; padding: 0 12px 12px; }
  .atend.com-conversa .lista-painel { display: none; }
  .atend:not(.com-conversa) .chat-painel { display: none; }
  .voltar-lista { display: inline-grid !important; }
  .msg { max-width: 92%; }
  .atend.com-ficha .ficha-painel { left: 12px; right: 12px; top: 76px; bottom: 12px; width: auto; }
  .chat-msgs { padding: 16px; }
}

/* ---------- fila de preço ---------- */
.fila { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.fila-item { display: flex; flex-direction: column; gap: 16px; }
.fila-item .pergunta { background: var(--surface-2); border-radius: var(--raio-m); padding: 14px 16px; }
.fila-item form { display: flex; gap: 10px; }
.fila-item form .inp { font-size: 18px; font-weight: 600; }
@media (max-width: 420px) { .fila { grid-template-columns: 1fr; } }

/* ---------- vitrine de produtos ---------- */
.grade-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .grade-prod { grid-template-columns: 1fr 1fr; gap: 12px; } }
.cartao-prod { background: var(--surface); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); text-align: left; padding: 0; font: inherit; color: inherit; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
button.cartao-prod { cursor: pointer; }
button.cartao-prod:hover { transform: translateY(-2px); border-color: var(--acc-text); box-shadow: 0 20px 44px -30px rgba(13,13,13,.5); }
.cartao-prod img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 12px; }
.cartao-prod .b { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.marca-p { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.preco { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.preco s { color: var(--muted); font-weight: 400; font-size: 14px; margin-right: 6px; }
.perfil-p { font-size: 13px; color: var(--acc-text); }

/* ---------- diálogos (nunca alert/confirm do navegador) ---------- */
.dlg-fundo { position: fixed; inset: 0; background: rgba(13,13,13,.52); display: grid; place-items: center; z-index: 100; padding: 16px; backdrop-filter: blur(4px); }
.dlg { background: var(--surface); border-radius: 26px; padding: 30px; width: min(520px, 100%); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); max-height: 90vh; overflow-y: auto; }
.dlg.largo { width: min(920px, 100%); }
.dlg h2 { font-size: 22px; margin-bottom: 10px; }
.dlg .acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 999px; z-index: 110; box-shadow: var(--sombra); font-size: 15px; font-weight: 500; max-width: calc(100% - 32px); }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); z-index: 90; box-shadow: -20px 0 60px -20px rgba(0,0,0,.35); display: flex; flex-direction: column; border-radius: 26px 0 0 26px; }
.gaveta.larga { width: min(1000px, 100%); }
.gaveta .cab { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1.5px solid var(--line); gap: 12px; }
.gaveta .corpo { padding: 24px 28px; overflow-y: auto; flex: 1; }
.gaveta .pe { padding: 18px 28px; border-top: 1.5px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 640px) { .gaveta { border-radius: 0; } .gaveta .cab, .gaveta .corpo, .gaveta .pe { padding-left: 18px; padding-right: 18px; } }

/* montar pedido */
.montar { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .montar { grid-template-columns: 1fr; } }
.item-carrinho { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item-carrinho .info { flex: 1; min-width: 0; font-size: 14px; }
.qtd { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; flex: none; }
.qtd button { border: 0; background: none; width: 34px; height: 34px; cursor: pointer; font-size: 18px; color: var(--acc-text); }
.qtd span { min-width: 22px; text-align: center; font-weight: 600; }
.totais { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 15px; margin: 16px 0; }
.totais .total { font-size: 22px; font-weight: 700; }
.resultados-busca { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-height: 52vh; overflow-y: auto; padding: 4px; }
.resultados-busca .cartao-prod img { padding: 8px; }
.resultados-busca .cartao-prod .b { padding: 10px 12px 12px; font-size: 13px; }
.resultados-busca .preco { font-size: 15px; }

/* ---------- login ---------- */
.login-tela { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; min-width: 0; }
.login-arte { background: var(--lat); color: var(--lat-ink); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-arte::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; background: var(--lat-decor); opacity: .13; pointer-events: none; -webkit-mask: var(--faisca) center/contain no-repeat; mask: var(--faisca) center/contain no-repeat; }
.login-arte > * { position: relative; z-index: 1; }
.login-arte h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; max-width: 560px; font-weight: 600; }
.login-arte p { max-width: 480px; opacity: .92; font-size: 18px; }
.login-arte .tagline-login { margin: 12px 0 0; color: var(--lat-accent); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; opacity: 1; }
.assinatura-login { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; font-size: 12px; }
.assinatura-login span { max-width: 320px; opacity: .8; }
.assinatura-login strong { white-space: nowrap; letter-spacing: .04em; }
.login-form { display: grid; place-items: center; padding: 32px 20px; min-width: 0; position: relative; }
.login-form form { width: min(420px, 100%); min-width: 0; }
@media (max-width: 860px) {
  .login-tela { grid-template-columns: minmax(0, 1fr); }
  .login-tela > *, .login-arte > div, .cartao-login { min-width: 0; max-width: 100%; }
  .login-arte { padding: 32px 24px; min-height: 300px; }
  .login-arte h1 { font-size: clamp(31px, 9vw, 44px); overflow-wrap: anywhere; }
  .login-lista { font-size: 15px; }
  .assinatura-login { align-items: flex-start; flex-direction: column; gap: 6px; }
  .login-form { padding: 24px 16px; }
  .cartao-login { width: 100%; }
}
.data-sep { align-self: center; margin: 10px auto 2px; padding: 4px 14px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 12.5px; font-weight: 500; }
/* textos só para leitor de tela ficam presos dentro das áreas que rolam (não esticam a página) */
.painel-a, .ficha, .itens-conv, .chat-msgs, .gaveta .corpo, .dlg { position: relative; }
@media (max-width: 640px) {
  .chat-cab { padding: 12px 14px; gap: 8px; }
  .chat-cab > .avatar { display: none; }
  .chat-cab .quem { flex: 1 1 120px; }
  .chat-cab .btn-redondo { width: 42px; height: 42px; }
  .chat-cab .btn.pq { min-height: 40px; padding: 0 14px; }
  .acoes-envio { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 10px; padding: 0 4px; }
  .acoes-envio::-webkit-scrollbar { display: none; }
  .acoes-envio .btn { flex: none; }
  .chat-envio { padding: 12px; }
  .so-largo { display: none !important; }
}
.gaveta .fechar-ficha { display: none !important; }

/* ---------- Encanta: marca e Encantar ---------- */
.marca .nome-marca { font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.encantar-card .card-tit svg { color: var(--acc-text); width: 24px; height: 24px; flex: none; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mini-kpis > div { background: var(--surface-2); border-radius: var(--raio-m); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.mini-kpis .rot { font-size: 13px; color: var(--muted); }
.mini-kpis b { font-size: 26px; font-weight: 600; }
.mini-kpis small { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .mini-kpis { grid-template-columns: 1fr 1fr; } }
.estrelas { color: var(--acc-text); letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.estrelas span { color: var(--line-2); }
.estrelas-num { color: var(--acc-text); font-weight: 600; }
.nota-grande { font-size: 56px; font-weight: 600; line-height: 1; }
.barras-nota { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.barras-nota > div { display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; gap: 10px; font-size: 14px; }
.barras-nota .trilho { height: 10px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.barras-nota .trilho i { display: block; height: 100%; background: var(--acc); border-radius: 9px; }
.barras-nota b { text-align: right; font-weight: 500; }
.pilha-mini { display: flex; flex-direction: column; gap: 10px; }
.aval { background: var(--surface-2); border-radius: var(--raio-m); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.aval.baixa { background: var(--bad-soft); }
.regras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .regras { grid-template-columns: 1fr; } }
.regra { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-2); border-radius: var(--raio-m); padding: 16px; cursor: pointer; }
.regra input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--acc-text); flex: none; }
.regra b { display: block; margin-bottom: 2px; }
.regra span { font-size: 14px; color: var(--muted); }
.grupo-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--raio-m); background: var(--surface-2); }
.grupo-item .avatar svg { width: 20px; height: 20px; }
.grupo-item.ativo { background: var(--acc-soft-2); box-shadow: inset 0 0 0 1.5px var(--acc-soft); }
.chave { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; cursor: pointer; }
.chave input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chave i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; }
.chave i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.chave input:checked + .sr + i, .chave input:checked ~ i { background: var(--acc); }
.chave input:checked ~ i::after { transform: translateX(20px); }
.chave input:focus-visible ~ i { outline: 3px solid var(--acc-soft); outline-offset: 2px; }
.envio-grupo { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.envio-grupo:last-child { border-bottom: 0; }
.previa-whats { white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bolha-grupo { background: var(--acc-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--acc) 24%, transparent); border-radius: 16px; padding: 8px; margin: 12px 0; white-space: pre-wrap; font-size: 15px; max-height: 60vh; overflow: auto; }
.bolha-grupo img { width: 100%; max-height: 260px; object-fit: contain; background: #fff; border-radius: 12px; display: block; margin-bottom: 8px; }
.bolha-grupo > div { padding: 0 6px 6px; }
/* campanhas e réguas */
.camp { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.camp:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.trilho-camp { height: 8px; border-radius: 9px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.trilho-camp i { display: block; height: 100%; background: var(--acc); border-radius: 9px; }
.regra.regua { cursor: default; }
.regra.regua.ativa { background: var(--acc-soft-2); box-shadow: inset 0 0 0 1.5px var(--acc-soft); }
.mini-inp { width: 64px; min-height: 32px; padding: 2px 8px; font-size: 14px; display: inline-block; margin: 0 4px; }
.avancado { background: var(--surface-2); border-radius: var(--raio-m); padding: 12px 16px; margin-bottom: 12px; }
.avancado summary { cursor: pointer; font-weight: 500; }
.gaveta .cab .pill { margin-left: auto; margin-right: 10px; }
@keyframes pulsar { from { opacity: .45 } to { opacity: 1 } }
/* inteligência artificial */
.escolha-ia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 760px) { .escolha-ia { grid-template-columns: 1fr; } }
.opcao-ia { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--raio-m); background: var(--surface-2); cursor: pointer; border: 1.5px solid transparent; }
.opcao-ia.sel { background: var(--acc-soft-2); border-color: var(--acc-text); }
.opcao-ia input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--acc-text); flex: none; }
.opcao-ia b { display: block; margin-bottom: 2px; }
.opcao-ia span { font-size: 14px; color: var(--muted); }
/* grupos e QR code */
.autor-g { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.autor-g span { font-weight: 400; color: var(--muted); font-size: 12px; }
.conv.saiu { opacity: .55; }
.part { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.part:last-child { border-bottom: 0; }
.part .info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.part .info b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .info span { font-size: 12.5px; }
.acoes-part { display: flex; gap: 4px; width: 100%; padding-left: 46px; }
.acoes-part .btn { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.qr-dlg { max-width: 760px; }
.qr-corpo { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; margin-top: 12px; }
@media (max-width: 700px) { .qr-corpo { grid-template-columns: 1fr; } }
.qr-img { width: 300px; height: 300px; max-width: 100%; display: grid; place-items: center; background: #fff; border-radius: var(--raio-m); box-shadow: inset 0 0 0 1.5px var(--line); margin: 0 auto; }
.qr-img img { width: 100%; height: 100%; object-fit: contain; }
.qr-passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.qr-ok { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px; }
.qr-ok svg { width: 56px; height: 56px; color: var(--acc-text); }
.qr-ok b { font-size: 20px; }
/* login profissional */
.cartao-login { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: 22px; box-shadow: 0 28px 70px -42px rgba(13,13,13,.55); padding: 34px; }
.cartao-login h2 { font-size: 26px; margin: 0 0 6px; }
.cartao-login .muted { margin: 0 0 22px; }
.largo-100 { width: 100%; min-height: 50px; font-size: 16px; }
.com-olho { position: relative; }
.com-olho .inp { padding-right: 48px; }
.olho { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 18px; opacity: .75; padding: 6px; color: var(--muted); display: grid; place-items: center; }
.erro-login { margin: 4px 0 14px; }
.login-lista { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.login-lista li { padding-left: 30px; position: relative; opacity: .95; }
.login-lista li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--lat-accent); -webkit-mask: var(--faisca) center/contain no-repeat; mask: var(--faisca) center/contain no-repeat; }
@media (max-width: 640px) { .cartao-login { padding: 26px 20px; box-shadow: none; background: transparent; } }
.links-legais { display: flex; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.aceite-legal { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 13px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.5; }
.aceite-legal input { width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: var(--acc-text); }
/* SaaS: bloqueio, plano, ajuda, tour, primeiros passos */
.bloqueio { position: relative; min-height: 100dvh; overflow: hidden; }
.bloqueio-fundo { position: absolute; inset: 0; filter: blur(7px) saturate(.9); opacity: .55; pointer-events: none; user-select: none; }
.bloqueio-fundo .app { min-height: 100dvh; }
.bloqueio-caixa { position: relative; z-index: 2; width: min(620px, calc(100% - 32px)); margin: 6vh auto; padding: 30px; box-shadow: 0 30px 80px rgba(13,13,13,.24); }
.plano-resumo { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--surface-2); border-radius: var(--raio-m); padding: 14px 16px; margin-bottom: 14px; }
.plano-resumo span { display: block; font-size: 13px; color: var(--muted); }
.faturas { display: flex; flex-direction: column; gap: 8px; }
.fatura { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--raio-m); flex-wrap: wrap; }
.fatura > div:first-child { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.fatura span { font-size: 13px; }
.fatura .num { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pix { display: flex; gap: 16px; align-items: center; margin-top: 14px; padding: 14px; border-radius: var(--raio-m); box-shadow: inset 0 0 0 1.5px var(--line); }
.pix img { width: 130px; height: 130px; background: #fff; border-radius: 8px; }
.uso { margin-bottom: 12px; }
.uso span { font-size: 14px; }
.faixa-atraso { display: flex; align-items: center; gap: 12px; margin: 0 40px 16px; padding: 12px 18px; border-radius: var(--raio-m); background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.faixa-atraso svg { width: 20px; height: 20px; flex: none; }
.faixa-atraso span { flex: 1; }
@media (max-width: 1024px) { .faixa-atraso { margin: 0 20px 14px; } }
.bt-ajuda { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--acc); color: var(--acc-ink); font: 600 15px Poppins, sans-serif; box-shadow: 0 10px 30px rgba(13,13,13,.24); cursor: pointer; }
.bt-ajuda svg { width: 20px; height: 20px; }
.bt-ajuda i { font-style: normal; background: #fff; color: var(--acc-text); border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
@media (max-width: 860px) { .bt-ajuda span { display: none; } .bt-ajuda { padding: 12px; bottom: 84px; } }
.resposta-vai { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--acc-soft-2); font-size: 14px; white-space: pre-wrap; }
.resposta-vai b { display: block; font-size: 12px; color: var(--acc-text); margin-bottom: 2px; }
.aval.nova-resposta { box-shadow: inset 3px 0 0 var(--acc); }
.lista-passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lista-passos li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--raio-m); background: var(--surface-2); }
.lista-passos li .t { flex: 1; }
.lista-passos li.ok { opacity: .6; }
.lista-passos li.ok .t { text-decoration: line-through; }
.num-passo { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: 600; font-size: 13px; flex: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.lista-passos li.ok .num-passo { background: var(--ok); color: var(--bg); box-shadow: none; }
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-foco { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(13,13,13,.62); transition: all .25s ease; pointer-events: none; }
.tour-balao { position: fixed; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); transition: top .25s, left .25s; }
.tour-balao h3 { margin: 4px 0 6px; font-size: 19px; }
.tour-balao p { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
/* admin da VAI */
.lateral-admin { background: var(--lat); }
.lateral-admin .nav.ativo { background: var(--lat-ativo); color: var(--lat-ativo-ink); }
.etapas-n { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.etapas-n span { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.etapas-n span.on { background: var(--acc-soft); color: var(--acc-text); font-weight: 500; }
.resumo-n { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--raio-m); background: var(--acc-soft-2); margin: 6px 0 14px; font-size: 14px; }
.dl-ficha { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.dl-ficha dt { color: var(--muted); } .dl-ficha dd { margin: 0; word-break: break-word; }
.pre-erro { white-space: pre-wrap; font-size: 11.5px; background: var(--surface-2); padding: 8px; border-radius: 8px; max-height: 240px; overflow: auto; }
.chamado h2 { font-size: 18px; }

/* campanha atual */
.campanha-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 92% 12%, rgba(255,95,0,.24), transparent 30%), linear-gradient(135deg, #0D0D0D, #1A1A1A); color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: var(--raio); padding: clamp(24px, 4vw, 44px); box-shadow: var(--sombra); margin-bottom: 20px; }
.campanha-hero::after { content: '✦'; position: absolute; right: 4%; top: -42px; font-size: 190px; opacity: .09; transform: rotate(12deg); }
.campanha-hero h1 { max-width: 760px; margin: 5px 0 8px; font-size: clamp(27px, 4vw, 44px); line-height: 1.12; }
.campanha-hero p { max-width: 760px; margin: 0; opacity: .9; }
.campanha-hero .linha { margin-top: 22px; position: relative; z-index: 1; }
.campanha-hero .btn { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.campanha-chamada { display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; background: linear-gradient(120deg, var(--acc-soft-2), var(--surface)); border: 1.5px solid var(--line); margin-bottom: 20px; }
.campanha-chamada .selo-campanha { width: 54px; height: 54px; border-radius: 18px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; flex: none; }
.campanha-chamada .selo-campanha svg { width: 27px; height: 27px; }
.campanha-chamada .texto { flex: 1; min-width: 0; }
.campanha-chamada .texto span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.campanha-chamada .seta { color: var(--acc-text); font-size: 25px; }
.campanha-destaques { white-space: pre-line; line-height: 1.65; }
.campanha-produtos { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.campanha-produtos .cartao-prod .b { padding: 12px 14px 16px; }
.campanha-produtos .cartao-prod img { padding: 10px; }
.tag-campanha { align-self: flex-start; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--acc-text); font-weight: 600; }
.materiais-campanha { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.material-campanha { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--raio-m); text-decoration: none; color: inherit; }
.material-campanha:hover { border-color: var(--acc-text); background: var(--acc-soft-2); }
.material-campanha svg { color: var(--acc-text); width: 27px; height: 27px; flex: none; }
.material-campanha span { display: block; font-size: 12px; color: var(--muted); }
.progressivas-campanha { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.progressiva-campanha { background: var(--surface-2); border-radius: var(--raio-m); padding: 15px; }
.progressiva-campanha b { display: block; margin-bottom: 7px; text-transform: capitalize; }
.progressiva-campanha .faixas { display: flex; flex-wrap: wrap; gap: 6px; }

/* páginas institucionais e manual */
.legal-body { background: var(--bg); color: var(--ink); min-height: 100dvh; }
.legal-topo { height: 80px; padding: 0 max(24px, calc((100vw - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.legal-topo picture, .legal-topo img { display: block; width: auto; }
.legal-pagina, .manual-pagina { width: min(880px, calc(100% - 40px)); margin: 64px auto; }
.legal-pagina h1, .manual-pagina h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.035em; margin: 10px 0 20px; }
.legal-lead { font-size: 20px; line-height: 1.6; color: var(--ink-2); margin: 0 0 34px; }
.legal-selo { display: inline-flex; padding: 6px 12px; border-radius: 99px; background: var(--acc-soft-2); color: var(--acc-text); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.legal-indice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 24px; background: var(--surface); padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sombra); margin: 0 0 36px; }
.legal-indice b { grid-column: 1 / -1; margin-bottom: 4px; }
.legal-pagina section { scroll-margin-top: 100px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-pagina h2 { font-size: 23px; margin: 0 0 12px; }
.legal-pagina p, .legal-pagina li { line-height: 1.75; color: var(--ink-2); }
.legal-pagina ul { padding-left: 22px; }
.legal-rodape { padding: 26px 20px 50px; text-align: center; color: var(--muted); font-size: 13px; }
.pagina-pagar { background: var(--bg); min-height: 100dvh; }
.pagar-caixa { width: min(460px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.logo-pagar-wrap, .logo-pagar { display: block; height: 44px; width: auto; }
.pagar-conteudo { margin-top: 22px; }
.pagar-conteudo h1 { font-size: 26px; margin: 6px 0 4px; }
.valor-fatura { font-size: 40px; font-weight: 700; margin: 8px 0 2px; }
.vencimento-fatura { margin: 0 0 18px; }
.pagamento-ok { background: var(--ok-soft); }
.rodape-pagar { text-align: center; margin-top: 18px; }
.manual-pagina { width: min(1080px, calc(100% - 40px)); }
.manual-hero { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 40px; margin-bottom: 50px; }
.manual-hero p:not(.legal-selo) { color: var(--muted); font-size: 18px; }
.manual-atalhos { display: flex; flex-direction: column; gap: 8px; }
.manual-atalhos a { background: var(--surface); padding: 13px 16px; border-radius: 12px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.manual-pagina > section:not(.manual-ajuda) { display: grid; grid-template-columns: 82px 1fr; gap: 24px; padding: 38px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.manual-num { font-size: 34px; color: var(--acc-text); font-weight: 600; }
.manual-pagina h2 { font-size: 28px; margin: 0 0 22px; }
.manual-passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: item; }
.manual-passos li { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 18px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 6px; }
.manual-passos b { font-size: 16px; }
.manual-passos span, .manual-cards p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.manual-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.manual-cards article { background: var(--surface); border: 1px solid var(--line); padding: 18px; border-radius: 17px; }
.manual-cards p { margin: 6px 0 0; }
.manual-ajuda { background: #0D0D0D; color: #fff; border-radius: var(--raio); padding: 30px; margin-top: 30px; }
.manual-ajuda h2 { margin-bottom: 6px; }
.manual-ajuda p { opacity: .82; max-width: 700px; }
@media (max-width: 700px) {
  .legal-topo { height: 68px; padding: 0 18px; }
  .legal-topo img { height: 34px; }
  .legal-pagina, .manual-pagina { width: min(100% - 30px, 880px); margin: 38px auto; }
  .legal-indice, .manual-passos, .manual-cards { grid-template-columns: 1fr; }
  .manual-hero { grid-template-columns: 1fr; gap: 20px; }
  .manual-pagina > section:not(.manual-ajuda) { grid-template-columns: 1fr; gap: 6px; }
  .manual-num { font-size: 21px; }
  .campanha-chamada { align-items: flex-start; }
  .campanha-chamada .seta { display: none; }
}

/* áreas seguras dos aplicativos iOS e Android */
.capacitor-native body {
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}
.capacitor-native .toast-area { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.capacitor-native .bt-ajuda { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 860px) {
  .capacitor-native .login-arte { min-height: 0; padding: 24px 22px; gap: 12px; justify-content: flex-start; }
  .capacitor-native .login-arte > img { height: 46px !important; margin-bottom: 6px !important; }
  .capacitor-native .login-arte h1 { margin: 0; font-size: 28px; }
  .capacitor-native .login-lista, .capacitor-native .assinatura-login { display: none; }
  .capacitor-native .login-form { place-items: start center; padding-top: 20px; }
}

/* login — prévia da conversa e métricas */
.login-chat { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin-top: 30px; }
.lc-msg { padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.45; max-width: 86%; box-shadow: var(--sombra-leve); }
.lc-msg.cli { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--lat-control-active); color: var(--lat-control-active-ink); }
.lc-msg.ia { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--lat-accent); color: var(--lat-accent-ink); }
.lc-ok { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--lat-button-border); }
.login-metricas { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.login-metricas li { flex: 1 1 110px; padding: 12px 14px; border-radius: 14px; background: var(--lat-control); display: flex; flex-direction: column; gap: 2px; }
.login-metricas b { font-size: 20px; line-height: 1.2; }
.login-metricas span { font-size: 12px; opacity: .85; }
@media (max-width: 640px) { .login-chat, .login-metricas { display: none; } }

h1 { text-wrap: balance; }
.card-tit > h2 { position: relative; padding-left: 14px; }
.card-tit > h2::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--acc); }

/* polimento do painel */
:where(a, button, [role="button"], .inp, summary):focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: 2px; }
.pill.pendente { background: var(--warn-soft); color: var(--warn); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.pq::before { width: 5px; height: 5px; }
.tabela th { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rolavel { scrollbar-width: thin; }
.tabela tr.click:hover td { background: var(--surface-2); }
.segmento button:hover:not([aria-pressed="true"]) { color: var(--acc-text); }
.card { transition: box-shadow .16s ease, border-color .16s ease; }
.vazio { border: 1.5px dashed var(--line-2); border-radius: var(--raio-m); margin: 8px 0; }
.vazio svg { opacity: .8; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: brilho-skel 1.2s ease-in-out infinite; border-radius: var(--raio-s); min-height: 16px; }
@keyframes brilho-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* atendimento: Ajuda não cobre o envio; vazio sem moldura dentro do chat */
/* no atendimento o botão de ajuda vira só o ícone, acima da caixa de escrever (não cobre o campo nem o enviar) */
body:has(.atend) .bt-ajuda { bottom: 200px; padding: 12px; }
body:has(.atend) .bt-ajuda span { display: none; }
body:has(.atend.com-ficha) .bt-ajuda { display: none; }
.atend .vazio { border: 0; margin: 0; }
.campanha-topicos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.campanha-topicos li { background: var(--surface-2); border-radius: var(--raio-m); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; border-left: 3px solid var(--acc); }
.campanha-topicos b { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--acc-text); }
.tabela td .prod { min-width: 180px; }
.tabela td, .tabela th { padding-left: 14px; padding-right: 14px; }
.lista-passos li .t { min-width: 0; }
@media (max-width: 560px) {
  .lista-passos li { flex-wrap: wrap; }
  .lista-passos li .t { flex: 1 1 calc(100% - 44px); }
  .lista-passos li .btn { width: 100%; margin-left: 40px; width: calc(100% - 40px); }
}

/* ================= direção clara (referência Natura) ================= */
h1 { font-weight: 500; letter-spacing: -.025em; }
h2 { font-weight: 600; letter-spacing: -.015em; }
.btn { border-radius: 999px; font-weight: 500; border-width: 1px; }
.btn.pri { font-weight: 600; box-shadow: none; }
.btn.pri:hover { box-shadow: var(--sombra-leve); }
.inp, select.inp { border-radius: 999px; padding-left: 20px; padding-right: 20px; border-width: 1px; }
textarea.inp, select.inp[multiple] { border-radius: 18px; }
.inp:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.card, .kpi { border-color: var(--line); }
.pill, .pill.pq { border-radius: 999px; }
.tabela th { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0 !important; }
.tabela td { border-bottom-width: 1px; }
.vazio { border: 1px dashed var(--line-2); }
.aviso { border-width: 1px; }
a { text-underline-offset: 3px; }

/* menu lateral branco, item ativo em pílula */
.nav { border-radius: 999px; font-weight: 400; padding: 11px 16px; }
.nav.ativo { box-shadow: none; font-weight: 600; }
.nav svg { color: var(--muted); }
.nav.ativo svg, .nav:hover svg { color: var(--acc-text); }
.nav.ativo::before { display: none; }
.nav-sep { color: var(--lat-submarca); opacity: 1; font-size: 11px; letter-spacing: .14em; }
.marca .nome-marca { color: var(--lat-brand); }

/* números: leves, com um cartão principal em luz pêssego */
.kpi .ic { border-radius: 50%; width: 46px; height: 46px; }
.kpi .ic svg { width: 22px; height: 22px; }
.kpi .val { font-weight: 500; }
.kpi:hover { border-color: var(--acc); box-shadow: var(--sombra); }
.kpi.destaque { background: radial-gradient(90% 120% at 100% 0%, var(--luz-2), transparent 60%), linear-gradient(150deg, var(--acc-soft-2), var(--acc-soft)); border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); color: var(--ink); box-shadow: var(--sombra); }
.kpi.destaque::after { background: linear-gradient(135deg, #FBC59A, #F48646); opacity: .55; width: 130px; height: 130px; right: -34px; bottom: -44px; }
.kpi.destaque .ic { background: var(--surface); color: var(--acc-text); }
.kpi.destaque .val { font-size: clamp(26px, 2.3vw, 34px); font-weight: 600; white-space: nowrap; }
.kpi.destaque .rot, .kpi.destaque .sub { color: var(--ink-2); }

/* banner da campanha e ajuda do manual: claros */
.campanha-hero { background: radial-gradient(60% 90% at 95% 0%, var(--luz-1), transparent 65%), radial-gradient(50% 80% at 70% 110%, var(--luz-2), transparent 70%), linear-gradient(120deg, var(--acc-soft-2), var(--acc-soft)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--acc) 22%, var(--line)); }
.campanha-hero::after { content: ''; width: 220px; height: 220px; right: 3%; top: -60px; opacity: .5; transform: rotate(12deg); background: linear-gradient(135deg, #FBC59A, #F48646); -webkit-mask: var(--faisca) center/contain no-repeat; mask: var(--faisca) center/contain no-repeat; }
.campanha-hero h1 { font-weight: 500; }
.manual-ajuda { background: linear-gradient(120deg, var(--acc-soft-2), var(--acc-soft)); color: var(--ink); }

/* login: página branca, painel de luz suave, tipografia leve */
.login-tela { background: var(--surface); padding: 16px; grid-template-columns: 1.15fr 1fr; min-height: 100dvh; }
.login-arte { border-radius: 32px; padding: clamp(32px, 4vw, 60px); color: var(--ink); background: radial-gradient(46% 40% at 82% 16%, var(--luz-1), transparent 70%), radial-gradient(42% 40% at 12% 92%, var(--luz-2), transparent 70%), radial-gradient(38% 36% at 92% 86%, var(--luz-3), transparent 70%), var(--luz-base); }
.login-arte::after { background: linear-gradient(135deg, #FDD9B8, #F48646); opacity: .5; width: 300px; height: 300px; right: 6%; top: 8%; bottom: auto; }
.login-arte h1 { font-weight: 300; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.05; letter-spacing: -.035em; max-width: 600px; }
.login-arte h1 em { font-style: normal; font-weight: 600; }
.login-arte .tagline-login { margin-top: 22px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.login-arte .tagline-login::before { content: ''; width: 36px; height: 1px; background: var(--acc); flex: none; }
.login-chat { margin-top: 40px; max-width: 420px; gap: 12px; }
.lc-msg { border-radius: 22px; padding: 14px 18px; box-shadow: 0 18px 40px -28px rgba(26,26,26,.35); }
.lc-msg.cli { background: var(--surface); color: var(--ink); border-bottom-left-radius: 8px; }
.lc-msg.ia { background: var(--acc-soft); color: var(--ink); border-bottom-right-radius: 8px; }
.lc-ok { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; box-shadow: 0 10px 24px -20px rgba(26,26,26,.4); }
.lc-ok svg { color: var(--ok); }
.login-metricas { gap: 0; margin-top: 44px; max-width: 520px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.login-metricas li { background: transparent; border-radius: 0; padding: 18px 20px 0 0; }
.login-metricas b { font-weight: 300; font-size: 30px; letter-spacing: -.03em; }
.login-metricas span { color: var(--muted); opacity: 1; font-size: 13px; }
.assinatura-login { color: var(--muted); }
.assinatura-login span { opacity: 1; }
.assinatura-login strong { color: var(--ink); font-weight: 600; }
.login-form { background: var(--surface); }
.cartao-login { border: 0; box-shadow: none; background: transparent; padding: 24px; width: min(420px, 100%); }
.cartao-login h2 { font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.cartao-login .campo > span { font-size: 13px; color: var(--muted); }
.cartao-login .inp { min-height: 54px; background: var(--surface-2); border-color: transparent; }
.cartao-login .inp:focus { background: var(--surface); }
.cartao-login .largo-100 { min-height: 54px; }
.olho { right: 14px; }
@media (max-width: 860px) {
  .login-tela { padding: 10px; grid-template-columns: minmax(0, 1fr); }
  .login-arte::after { right: -60px; bottom: -40px; }
  .login-chat, .login-metricas { display: none; }
  .cartao-login { padding: 24px 12px; }
  .login-arte { border-radius: 24px; min-height: 0; padding: 28px 22px; }
  .login-arte::after { width: 160px; height: 160px; }
  .login-arte h1 { font-size: clamp(32px, 9vw, 44px); }
}
.login-arte { gap: 28px; }
.login-arte::after { width: 360px; height: 360px; right: -70px; top: auto; bottom: 14%; opacity: .45; }
.login-arte h1 { font-size: clamp(38px, 4.2vw, 60px); }
.login-chat { margin-top: 30px; }
.login-metricas { margin-top: 30px; }
.pix-qr { display: block; margin: 8px auto 16px; border-radius: 16px; background: #fff; padding: 8px; border: 1px solid var(--line); }

/* tabela que vira cartões no celular (pedidos): cada linha é um cartão, cada célula mostra o rótulo */
@media (max-width: 640px) {
  .tabela.cartoes thead { display: none; }
  .tabela.cartoes, .tabela.cartoes tbody, .tabela.cartoes tr, .tabela.cartoes td { display: block; width: 100%; }
  .tabela.cartoes tr { padding: 12px 0; border-bottom: 1.5px solid var(--line); }
  .tabela.cartoes tr:last-child { border-bottom: 0; }
  .tabela.cartoes td { border: 0; padding: 4px 4px; }
  .tabela.cartoes td[data-rot] { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); align-items: start; gap: 10px; text-align: left; }
  .tabela.cartoes td[data-rot]::before { content: attr(data-rot); color: var(--muted); font-size: 13px; padding-top: 2px; }
  .tabela.cartoes td[data-rot].num { text-align: left; }
  .tabela.cartoes td[data-rot] > * { min-width: 0; }
  .tabela.cartoes td:first-child { font-size: 15px; }
  .tabela.cartoes td:empty { display: none; }
  .tabela.cartoes td:not([data-rot]) .linha, .tabela.cartoes td:not([data-rot]) > .btn { margin-top: 6px; }
  .tabela.cartoes tr.click:hover td { background: transparent; }
  .tabela.cartoes .prod .pequeno { max-width: none !important; white-space: normal !important; }
  /* cabeçalho do atendimento no celular: nome em cima, ações embaixo */
  .chat-cab { flex-wrap: wrap; }
  .chat-cab .quem { flex: 1 1 calc(100% - 60px); order: -1; }
  .chat-cab .voltar-lista { order: -2; }
  /* seletor de loja: cabe o nome inteiro; conteúdo não fica atrás do botão de ajuda */
  .topo #selLoja { flex: 1 1 auto; min-width: 0; max-width: none; padding-left: 14px; padding-right: 30px; }
  .pagina { padding-bottom: 96px; }
}

#pillAsaas:empty { display: none; }

/* filtros em segmento: no celular rolam de lado em vez de virar um bloco de várias linhas */
@media (max-width: 640px) {
  .segmento { flex-wrap: nowrap !important; overflow-x: auto; max-width: 100%; scrollbar-width: none; border-radius: 999px; }
  .segmento::-webkit-scrollbar { display: none; }
  .segmento > button { flex: none; white-space: nowrap; }
  .cab-pagina .linha, .cab-pagina > div:last-child { flex-wrap: wrap; }
}
