@font-face { font-family: Geist; src: url(/static/fontes/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/static/fontes/geist-mono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --c2: #a78bfa;
  --bg: #050505; --s1: #0d0d0d; --s2: #141414; --s3: #1c1c1c;
  --ln: rgba(255,255,255,.08); --ln2: rgba(255,255,255,.14);
  --ink: #ededed; --ink-2: #a3a3a3; --ink-3: #6e6e6e;
  --acc: #00e676; --acc-2: #00b85e; --acc-bg: rgba(0,230,118,.12);
  --err: #ff6b6b; --warn: #ffc857;
  --r: 14px;
  --hov: rgba(255,255,255,.05); --ln3: rgba(255,255,255,.22); --mira: rgba(255,255,255,.25); --row-h: #121212; --row-s: #0c1811; --q-ink: #7ee8b0; --acc-h: #2bff95; --acc-tx: #00e676; --sombra: 0 18px 50px -12px rgba(0,0,0,.7);
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 Geist, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ln2); background: transparent; font-weight: 600; transition: background .2s, border-color .2s, opacity .2s; }
.btn:hover { background: var(--hov); }
.btn-acc { background: var(--acc); border-color: var(--acc); color: #00180b; }
.btn-acc:hover { background: var(--acc-h); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-full { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.link:hover { color: var(--ink); }

.campo { display: grid; gap: 6px; }
.campo label { font-size: .82rem; color: var(--ink-2); }
.campo input { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ln2); background: var(--s2); outline: none; transition: border-color .2s; }
.campo input:focus { border-color: var(--acc); }
.campo input.cod { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .4em; text-align: center; }

.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--s2); border: 1px solid var(--ln); }
.abas button { height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.abas button[aria-selected="true"] { background: var(--s3); color: var(--ink); }
.msg { min-height: 1.2em; font-size: .88rem; color: var(--err); }
.msg.ok { color: var(--acc); }
.opcoes { display: grid; gap: 10px; }
.opcao { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--ln2); background: var(--s2); transition: border-color .2s; }
.opcao:hover { border-color: var(--acc); }
.opcao i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-bg); color: var(--acc); }
.opcao i svg { width: 22px; height: 22px; }
.opcao b { display: block; font-size: .95rem; }
.opcao small { color: var(--ink-2); font-size: .82rem; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 200px; margin: 0 auto; }
.qr svg { display: block; width: 100%; height: auto; }
.segredo { text-align: center; font-family: var(--mono); font-size: .85rem; color: var(--ink-2); word-break: break-all; }
.passos { color: var(--ink-2); font-size: .88rem; padding-left: 18px; display: grid; gap: 4px; }
.sep { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .78rem; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--ln); }

.marca { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.marca img { width: 24px; height: 24px; object-fit: contain; }
.marca small { color: var(--ink-3); font-weight: 500; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--s1); border: 1px solid var(--ln); flex: none; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--ink); }

main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 64px; display: grid; gap: 16px; }
.grade { display: grid; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--s1); border: 1px solid var(--ln); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; }
.tile span { color: var(--ink-2); font-size: .8rem; }
.tile b { font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile small { color: var(--ink-3); font-size: .76rem; }
.card { background: var(--s1); border: 1px solid var(--ln); border-radius: var(--r); padding: 16px; min-width: 0; }
.card h2 { font-size: .98rem; font-weight: 650; }
.card .desc { color: var(--ink-3); font-size: .8rem; margin-top: 2px; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vazio { color: var(--ink-3); font-size: .88rem; padding: 18px 0; text-align: center; }
.atualizado { color: var(--ink-3); font-size: .76rem; text-align: right; }


.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .eixo { fill: var(--ink-3); font-size: 11px; font-family: var(--mono); }
.grafico .grade-l { stroke: var(--hov); stroke-width: 1; }
.grafico .linha { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafico .area { fill: url(#gArea); }
.grafico .mira { stroke: var(--mira); stroke-width: 1; }
.grafico .ponto { fill: var(--acc); stroke: var(--s1); stroke-width: 2; }
.grafico .linha-l { fill: none; stroke: var(--c2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafico .ponto-l { fill: var(--c2); stroke: var(--s1); stroke-width: 2; }
.leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); }
.leg span { display: inline-flex; align-items: center; gap: 6px; }
.dica .dl { display: flex; align-items: center; gap: 6px; }
.leg i, .dica i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.leg-s { background: var(--acc); } .leg-l { background: var(--c2); }
.rk-wrap { min-width: 0; overflow-x: auto; }
.rk { width: 100%; border-collapse: collapse; font-size: .86rem; }
.rk th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 0 8px 8px; border-bottom: 1px solid var(--ln); white-space: nowrap; }
.rk td { padding: 9px 8px; border-bottom: 1px solid var(--ln); font-variant-numeric: tabular-nums; }
.rk tr:last-child td { border-bottom: 0; }
.rk th:first-child, .rk td:first-child { padding-left: 0; }
.rk th:last-child, .rk td:last-child { padding-right: 0; }
.rk .n { text-align: right; white-space: nowrap; }
.rk-n { color: var(--ink); overflow-wrap: anywhere; }
.rk-i { width: 26px; color: var(--ink-3); font-family: var(--mono); font-size: .76rem; }
.rk-bw { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.rk-bw b { font-weight: 600; min-width: 2ch; }
.rk-bar { width: 72px; height: 6px; border-radius: 3px; background: var(--hov); overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: 3px; background: var(--acc); }
@media (max-width: 559px) { .rk { font-size: .8rem; } .rk-bar { width: 40px; } .rk td, .rk th { padding-left: 5px; padding-right: 5px; } }
.dica { position: absolute; pointer-events: none; background: var(--s3); border: 1px solid var(--ln2); border-radius: 10px; padding: 8px 10px; font-size: .8rem; white-space: nowrap; max-width: calc(100vw - 16px); box-shadow: 0 10px 30px -10px #000; z-index: 5; }
.dica b { display: block; font-weight: 600; }
.dica span { color: var(--ink-2); }
details.tabela { margin-top: 12px; }
details.tabela summary { color: var(--ink-3); font-size: .8rem; cursor: pointer; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ln); vertical-align: top; }
th { color: var(--ink-3); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.rolagem-x { overflow-x: auto; }


.btn-p { height: 38px; padding: 0 14px; font-size: .84rem; flex: none; }
.btn-p svg { width: 16px; height: 16px; }
.fn-box { width: 100%; min-width: 0; }
.fn-svg { display: block; overflow: visible; }
.fn-band { fill: color-mix(in srgb, var(--acc) 26%, transparent); stroke: var(--acc); stroke-width: 1; stroke-opacity: .55; }
.fn-liga { fill: color-mix(in srgb, var(--acc) 9%, transparent); }
.fn-liga.pior { fill: color-mix(in srgb, var(--err) 18%, transparent); }
.fn-v { fill: var(--ink); font: 600 13px var(--mono); text-anchor: middle; dominant-baseline: central; }
.fn-lb { fill: var(--ink-2); font-size: 13px; dominant-baseline: central; }
.fn-num { fill: var(--ink-3); font: 600 12px var(--mono); dominant-baseline: central; }
.fn-pc { fill: var(--ink-2); font: 600 12px var(--mono); text-anchor: end; dominant-baseline: central; }
.fn-pc.pior { fill: var(--err); font-weight: 700; }
@media (max-width: 559px) { .fn-lb { font-size: 11px; } .fn-num { font-size: 11px; } .fn-v { font-size: 12px; } .fn-pc { font-size: 11px; } .card-h .btn-p span { display: none; } .btn-p { width: 38px; padding: 0; } }

.rq-wrap { overflow-x: auto; }
table.rq { font-size: .88rem; }
.rq thead th { padding-top: 0; }
.rq th.rq-p, .rq td.rq-p { width: 34%; }
.rq th.rq-p { text-align: right; }
.rq tr.rq-h th { padding: 18px 10px 10px; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); background: transparent; }
.rq tbody:first-of-type tr.rq-h th { padding-top: 10px; }
.rq-h th { display: table-cell; }
.rq-num { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-right: 10px; border-radius: 999px; background: var(--s3); color: var(--ink-2); font: 600 .72rem/1 var(--mono); vertical-align: 1px; }
.rq-q { font-weight: 600; }
.rq-h small { display: block; margin: 4px 0 0 32px; font-weight: 400; font-size: .76rem; color: var(--ink-3); }
.rq td { vertical-align: middle; color: var(--ink-2); }
.rq td:first-child { padding-left: 42px; }
.rq tr.rq-top td { color: var(--ink); font-weight: 600; }
.rq td em { font-style: normal; font-size: .7rem; font-weight: 500; padding: 2px 8px; margin-left: 6px; border-radius: 999px; background: var(--acc-bg); color: var(--acc); white-space: nowrap; }
.rq-pc { display: flex; align-items: center; gap: 10px; }
.rq-pc > span:last-child { flex: none; width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.rq-nm { display: none; }
.rq-outros { list-style: none; margin-top: 6px; display: grid; gap: 3px; }
.rq-outros li { font-size: .8rem; font-weight: 400; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--ln2); }
.rq-outros span { color: var(--ink-3); font-size: .74rem; }
.rq-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.rq-bar i { display: block; height: 100%; border-radius: 999px; background: var(--acc-2); }
.rq tr.rq-top .rq-bar i { background: var(--acc); }
@media (max-width: 559px) {
  .rq td:first-child { padding-left: 10px; }
  .rq-h small { margin-left: 32px; }
  .rq th.rq-p, .rq td.rq-p { width: 38%; }
  .rq-bar { display: none; }
  .rq th.n, .rq td.n { display: none; }
  .rq th.rq-p, .rq td.rq-p { width: 72px; }
  .rq-nm { display: block; margin-top: 2px; font-size: .76rem; font-weight: 400; color: var(--ink-3); }
  .rq-pc { justify-content: flex-end; }
  .rq-pc > span:last-child { width: auto; }
}

.hm-wrap { overflow-x: auto; }
table.hm { font-size: .88rem; }
.hm td { vertical-align: middle; padding: 12px 10px; }
.hm td:first-child { color: var(--ink); }
.hm td small { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 2px; white-space: nowrap; }
.hm-n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 999px; background: var(--s3); color: var(--ink-2); font: 600 .72rem/1 var(--mono); vertical-align: 1px; }
.hm-c { width: 150px; color: var(--ink); }
.hm-z { color: var(--ink-3); }
.hm tr.hm-sep td { border-top: 1px dashed var(--ln2); }
.hm-nota { margin-top: 10px; font-size: .78rem; color: var(--ink-3); }
.hm-nota:empty { display: none; }
@media (max-width: 559px) {
  .hm td, .hm th { padding: 10px 6px; }
  .hm-c { width: auto; }
  .hm-n { display: none; }
  .hm th { font-size: .66rem; letter-spacing: .03em; }
  .hm td.hm-c small { display: none; }
  .hm td:first-child { font-size: .84rem; }
  .hm-lg { display: none; }
  .hm-sm { display: inline; }
}
.hm-sm { display: none; }
#tilesMapa .tile b { font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }

.leads-lista { display: grid; gap: 10px; }
.lead { border: 1px solid var(--ln); border-radius: 12px; background: var(--s2); }
.lead summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.lead summary::-webkit-details-marker { display: none; }
.lead summary b { font-size: .95rem; }
.lead summary small { color: var(--ink-3); font-size: .78rem; }
.lead .tag { justify-self: end; align-self: start; font-size: .7rem; font-family: var(--mono); padding: 3px 8px; border-radius: 999px; background: var(--acc-bg); color: var(--acc); white-space: nowrap; }
.lead .tag.nq { background: var(--hov); color: var(--ink-2); }
.lead-c { padding: 0 14px 14px; display: grid; gap: 10px; }
.lead-c dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 12px; font-size: .84rem; }
.lead-c dt { color: var(--ink-3); }
.lead-c dd { color: var(--ink); overflow-wrap: anywhere; }
.lead-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-acoes a { height: 36px; font-size: .84rem; padding: 0 14px; text-decoration: none; }
.busca { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ln2); background: var(--s2); outline: none; width: 100%; max-width: 320px; }
.busca:focus { border-color: var(--acc); }

@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { padding: 34px 30px; }
}
@media (min-width: 1100px) {
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g21 { grid-template-columns: 2fr 1fr; }
}
.mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt16 { margin-top: 16px; } .mt18 { margin-top: 18px; }
.pilha { display: grid; gap: 14px; }
.card, .grade > * { min-width: 0; }
:where(.grade, .funil, .respostas, .leads-lista, .pilha, .opcoes) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 559px) {
  .lead summary { grid-template-columns: minmax(0, 1fr); }
  .lead .tag { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 6px; }
}

.ent { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); max-width: none; margin: 0; padding: 0; gap: 0; }
.ent-lado { display: none; }
.ent-form { display: grid; place-items: center; padding: 28px 20px 40px; background: radial-gradient(90% 50% at 50% -10%, rgba(0,230,118,.10), transparent 70%); }
.ent-caixa { width: 100%; max-width: 400px; display: grid; gap: 22px; }
.ent-marca { display: flex; align-items: center; gap: 10px; }
.ent-marca img { width: 30px; height: 30px; object-fit: contain; }
.ent-marca b { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.ent-marca span { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--ln2); border-radius: 999px; }
.ent-marca-m { margin-bottom: 10px; }
.ent-caixa h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.ent-caixa p.sub { color: var(--ink-2); font-size: .95rem; margin-top: 8px; }
.ent-caixa form { display: grid; gap: 16px; }
.ent-caixa section { display: grid; }
.etapas { list-style: none; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.etapas li { display: flex; align-items: center; gap: 8px; }
.etapas li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ln2); transition: background .3s, border-color .3s, box-shadow .3s; }
.etapas .e2::before { margin-left: 0; }
.etapas .e1::after { content: ''; width: 28px; height: 1px; background: var(--ln2); margin-left: 2px; }
body:not([data-etapa]) .etapas { visibility: hidden; }
body[data-etapa="entrar"] .e1, body[data-etapa="verificar"] .e2, body[data-etapa="configurar"] .e2 { color: var(--ink); }
body[data-etapa="entrar"] .e1::before, body[data-etapa="verificar"] .e2::before, body[data-etapa="configurar"] .e2::before { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-bg); }
body[data-etapa="verificar"] .e1::before, body[data-etapa="configurar"] .e1::before { background: var(--ink-3); border-color: var(--ink-3); }
.inp { position: relative; display: flex; align-items: center; }
.inp > i { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; transition: color .2s; }
.inp > i svg { width: 100%; height: 100%; display: block; }
.campo .inp input { width: 100%; height: 52px; padding-left: 44px; border-radius: 12px; background: var(--s1); font-size: .98rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.campo .inp input::placeholder { color: var(--ink-3); }
.campo .inp input:hover { border-color: var(--ln3); }
.campo .inp input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-bg); background: var(--s2); }
.inp:focus-within > i { color: var(--acc); }
.inp input#sSenha { padding-right: 48px; }
.olho { position: absolute; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.olho:hover { color: var(--ink); background: var(--hov); }
.olho svg { width: 19px; height: 19px; }
.olho .o2, .olho[aria-pressed="true"] .o1 { display: none; }
.olho[aria-pressed="true"] .o2 { display: block; }
.campo label { font-weight: 500; color: var(--ink-2); }
.ent .btn { height: 52px; }
.ent .btn-acc { box-shadow: 0 8px 24px -10px rgba(0,230,118,.6); }
.ent .btn-acc svg { transition: transform .2s; }
.ent .btn-acc:hover svg { transform: translateX(3px); }
.ent .btn:focus-visible, .abas button:focus-visible, .opcao:focus-visible, .link:focus-visible, .olho:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.abas { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--s1); border: 1px solid var(--ln); }
.abas::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--s3); border: 1px solid var(--ln2); transition: transform .3s cubic-bezier(.3,.7,.2,1); }
.abas[data-a="1"]::before { transform: translateX(100%); }
.abas button { position: relative; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-3); font-size: .88rem; font-weight: 500; transition: color .2s; }
.abas button[aria-selected="true"] { background: transparent; color: var(--ink); }
.ent .msg:empty { min-height: 0; }
.ent .msg { margin-top: -6px; }
.ent-seg { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .78rem; padding-top: 18px; border-top: 1px solid var(--ln); }
.ent-seg svg { width: 14px; height: 14px; flex: none; }
.ent .opcao { padding: 16px; background: var(--s1); }
.ent .opcao:hover { background: var(--s2); }
.ent .link { justify-self: start; }
@media (min-width: 960px) {
  .ent { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .ent-lado { display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; padding: 44px 56px; border-right: 1px solid var(--ln); background: radial-gradient(70% 55% at 15% 0%, rgba(0,230,118,.13), transparent 70%), radial-gradient(60% 50% at 100% 100%, rgba(0,184,94,.10), transparent 70%), var(--s1); }
  .ent-texto { position: relative; z-index: 1; max-width: 470px; }
  .ent-eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
  .ent-lado h2 { font-size: clamp(2rem, 2.6vw, 2.6rem); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; margin-top: 14px; }
  .ent-lista { list-style: none; display: grid; gap: 18px; margin-top: 36px; }
  .ent-lista li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
  .ent-lista i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--acc); background: var(--acc-bg); border: 1px solid rgba(0,230,118,.18); }
  .ent-lista i svg { width: 20px; height: 20px; }
  .ent-lista b { display: block; font-weight: 500; font-size: .98rem; }
  .ent-lista small { color: var(--ink-2); font-size: .86rem; }
  .ent-rodape { position: relative; z-index: 1; color: var(--ink-3); font-size: .8rem; }
  .ent-selo { position: absolute; right: -90px; bottom: -70px; width: 420px; opacity: .07; pointer-events: none; }
  .ent-marca-m { display: none; }
  .ent-form { padding: 48px; background: radial-gradient(60% 40% at 50% 0%, rgba(0,230,118,.06), transparent 70%); }
}
@media (prefers-reduced-motion: reduce) { .abas::before, .etapas li::before, .ent .btn-acc svg { transition: none; } }

.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lt-barra { display: grid; gap: 10px; margin: 0 0 12px; }
.lt-barra .busca { width: 100%; max-width: none; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--s2); border: 1px solid var(--ln); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-size: .82rem; font-weight: 500; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--ink); }
.lt-acoes { display: flex; align-items: center; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.lt-sel { font-size: .84rem; color: var(--ink-2); margin-right: auto; }
.lt-acoes .btn { height: 40px; padding: 0 16px; font-size: .86rem; }
.lt-acoes .btn svg { width: 16px; height: 16px; }
.lt-wrap { overflow-x: auto; border: 1px solid var(--ln); border-radius: 12px; -webkit-overflow-scrolling: touch; }
table.lt { min-width: 880px; font-size: .86rem; }
.lt th { position: sticky; top: 0; background: var(--s1); white-space: nowrap; padding: 11px 12px; }
.lt td { padding: 12px; vertical-align: middle; border-bottom: 1px solid var(--ln); }
.lt tbody tr:last-child td { border-bottom: 0; }
.lt-linha { cursor: pointer; transition: background .15s; }
.lt-linha:hover td { background: var(--row-h); }
.lt-linha.sel td { background: var(--row-s); }
.lt .lt-ck { width: 46px; min-width: 46px; max-width: 46px; padding-right: 0; }
.lt input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--acc); cursor: pointer; display: block; }
.lt .lt-ck, .lt .lt-nome { position: sticky; z-index: 1; background: var(--s1); }
.lt .lt-ck { left: 0; }
.lt .lt-nome { left: 46px; min-width: 160px; box-shadow: 1px 0 0 var(--ln); }

.lt-nome b { display: block; font-weight: 600; white-space: nowrap; }
.lt-nome small { display: block; color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
.lt .mudo { color: var(--ink-2); }
.lt-data { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lt-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lt-link svg { width: 15px; height: 15px; flex: none; color: var(--ink-3); transition: color .15s; }
.lt-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.lt-link:hover svg { color: var(--acc); }
.lt .tag { font-size: .72rem; font-family: var(--mono); padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--hov); color: var(--ink-2); }
.lt .tag.t-p { background: var(--acc-bg); color: var(--acc); }
.lt .tag.t-q { background: var(--acc-bg); color: var(--acc); }
.lt .lt-x { width: 44px; text-align: right; }
.lt-abrir { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); display: inline-grid; place-items: center; }
.lt-abrir:hover { background: var(--hov); color: var(--ink); }
.lt-abrir svg { width: 18px; height: 18px; transition: transform .2s; }
@media (min-width: 900px) {
  .lt-barra { grid-template-columns: minmax(240px, 340px) auto 1fr; align-items: center; }
  .lt-acoes { flex-wrap: nowrap; }
  .lt-sel { margin-right: 0; }
}
.lt-todos { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.lt-todos span { display: none; }
.lt-topo .lt-acoes { flex: none; }
.lt-sel, .lt-acoes .link, .lt-acoes .btn { white-space: nowrap; }
@media (min-width: 900px) { .lt-barra { grid-template-columns: minmax(240px, 380px) minmax(0, auto); justify-content: start; } }
@media (max-width: 759px) {
  .lt-topo { flex-direction: column; }
  .lt-topo .lt-acoes { width: 100%; justify-content: space-between; }
  .lt-topo .lt-acoes .btn { margin-left: auto; }
  .lt-wrap { overflow: visible; border: 0; border-radius: 0; }
  table.lt, .lt thead, .lt tbody, .lt tr { display: block; min-width: 0; }
  .lt thead tr { padding: 0 0 10px; }
  .lt thead th { display: none; }
  .lt thead th.lt-ck { display: block; position: static; width: auto; max-width: none; padding: 0; border: 0; background: none; text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
  .lt-todos span { display: inline; }
  .lt tbody { display: grid; gap: 10px; }
  .lt .lt-linha { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ck nome x" ". tag tag" ". mail mail" ". wa wa" ". orig data"; align-items: center; gap: 6px 8px; padding: 14px 12px; border: 1px solid var(--ln); border-radius: 12px; background: var(--s1); }
  .lt-linha.sel { background: var(--row-s); border-color: rgba(0,230,118,.35); }
  .lt .lt-linha td { display: block; position: static; padding: 0; border: 0; background: none; box-shadow: none; min-width: 0; width: auto; max-width: none; }
  .lt .lt-linha:hover td, .lt .lt-linha.sel td { background: none; }
  .lt .lt-linha .lt-ck { grid-area: ck; }
  .lt .lt-linha .lt-nome { grid-area: nome; }
  .lt-nome b, .lt-nome small { white-space: normal; }
  .lt .lt-linha .lt-x { grid-area: x; }
  .lt .lt-linha .lt-tag { grid-area: tag; padding: 2px 0; }
  .lt .lt-linha .lt-mail { grid-area: mail; }
  .lt .lt-linha .lt-wa { grid-area: wa; }
  .lt .lt-linha .lt-orig { grid-area: orig; font-size: .8rem; color: var(--ink-3); }
  .lt .lt-linha .lt-data { grid-area: data; font-size: .8rem; color: var(--ink-3); text-align: right; }
  .lt-link { max-width: 100%; }
  .lt-link span { overflow: hidden; text-overflow: ellipsis; }
}
.ld { display: grid; gap: 14px; }
.ld-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ld-nav .btn { height: 40px; padding: 0 16px; font-size: .86rem; }
.ld-nav .btn svg { width: 16px; height: 16px; }
.ld-pag { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .82rem; font-variant-numeric: tabular-nums; }
.ld-pag .btn { width: 40px; padding: 0; }
.ld-topo { display: grid; gap: 18px; }
.ld-id { display: flex; gap: 14px; align-items: flex-start; }
.ld-avatar { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; color: var(--acc); background: var(--acc-bg); border: 1px solid rgba(0,230,118,.2); }
.ld-nome { min-width: 0; }
.ld-nome h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.ld-emp { color: var(--ink-2); margin-top: 2px; }
.ld-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; color: var(--ink-3); font-size: .82rem; }
.ld .tag { font-size: .72rem; font-family: var(--mono); padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--hov); color: var(--ink-2); }
.ld .tag.t-p { background: var(--acc-bg); color: var(--acc); }
.ld .tag.t-q { background: var(--acc-bg); color: var(--acc); }
.ld-motivo { margin-top: 8px; font-size: .86rem; color: var(--ink-2); }
.ld-motivo b { font-weight: 600; color: var(--ink); }
.ld-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-acoes .btn { height: 42px; font-size: .88rem; padding: 0 16px; text-decoration: none; }
.ld-acoes .btn svg { width: 17px; height: 17px; }
.ld-contato { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ln); }
.ld-contato dt, .ld-item dt { color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.ld-contato dd { margin-top: 2px; overflow-wrap: anywhere; }
.ld-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ld-tile { display: grid; gap: 4px; }
.ld-tile span { color: var(--ink-2); font-size: .8rem; }
.ld-tile b { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.ld-tile small { color: var(--ink-3); font-size: .76rem; }
.ld-grupos { display: grid; gap: 14px; }
.ld-grupo h3 { font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.ld-grupo dl { display: grid; gap: 14px; }
.ld-item dd { margin-top: 4px; color: var(--ink); }
.ld-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ld-chips li { font-size: .84rem; padding: 4px 10px; border-radius: 999px; background: var(--s2); border: 1px solid var(--ln2); }
.ld-pag span { white-space: nowrap; }
@media (max-width: 559px) { .ld-nav .btn span { display: none; } .ld-nav #ldVoltar { width: 40px; padding: 0; } .ld-acoes .btn { flex: 1 1 auto; } }
@media (min-width: 760px) {
  .ld-topo { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .ld-contato { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ld-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ld-grupos { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ld-grupo dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .ld-acoes { justify-content: flex-end; }
}
@media (min-width: 760px) { .ld-item.multi { grid-column: 1 / -1; } }
.ld-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-grupos { grid-template-columns: minmax(0, 1fr) !important; }
.ld-h { font-size: 1rem; font-weight: 600; }
.ld-lista { list-style: none; margin-top: 8px; }
.ld-r { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--ln); }
.ld-r:last-child { border-bottom: 0; padding-bottom: 0; }
.ld-n { grid-row: span 2; font-family: var(--mono); font-size: .78rem; color: var(--acc); padding-top: 2px; }
.ld-calc .ld-r { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
.ld-q { color: var(--ink-2); font-size: .88rem; }
.ld-a b { font-weight: 500; color: var(--ink); }
.ld-na { color: var(--ink-3); font-size: .86rem; font-style: italic; }
@media (min-width: 760px) {
  .ld-r { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 0 24px; }
  .ld-n { grid-row: auto; }
  .ld-calc .ld-r { grid-template-columns: 0 minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; }
  .ld-calc .ld-a { padding-left: 24px; }
  .ld-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

:root[data-tema="claro"] {
  --c2: #7c3aed;
  color-scheme: light;
  --bg: #f5f6f5; --s1: #ffffff; --s2: #f1f3f1; --s3: #e6e9e6;
  --ln: rgba(0,0,0,.08); --ln2: rgba(0,0,0,.14); --ln3: rgba(0,0,0,.24);
  --ink: #121412; --ink-2: #4a504b; --ink-3: #7b817c;
  --err: #d23b3b; --acc: #00a651; --acc-2: #008a43; --acc-bg: rgba(0,166,81,.10); --acc-h: #00bd5c;
  --hov: rgba(0,0,0,.045); --mira: rgba(0,0,0,.25); --row-h: #f6f8f6; --row-s: #ebf7f0; --q-ink: #13804a;
  --sombra: 0 18px 50px -14px rgba(0,0,0,.25);
}
:root[data-tema="claro"] .btn-acc { color: #fff; }
body.travado { overflow: hidden; }

.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100dvh; }
.area { min-width: 0; }
.sb { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 272px; max-width: 86vw; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px 12px; background: var(--s1); border-right: 1px solid var(--ln); transform: translateX(-102%); transition: transform .25s cubic-bezier(.3,.7,.2,1); }
.sb.aberta { transform: none; box-shadow: var(--sombra); }
.sb-fundo { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.5); }
.sb-topo { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; }
.marca span { font-size: 1.02rem; }
.sb-fechar, .sb-abrir { width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.sb-fechar:hover, .sb-abrir:hover { background: var(--hov); color: var(--ink); }
.sb-fechar svg, .sb-abrir svg { width: 20px; height: 20px; }
.tabs { display: grid; gap: 2px; }
.tabs button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: .92rem; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.tabs button svg { width: 19px; height: 19px; flex: none; color: var(--ink-3); transition: color .15s; }
.tabs button:hover { background: var(--hov); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--acc-bg); color: var(--ink); font-weight: 600; }
.tabs button[aria-selected="true"] svg { color: var(--acc); }
.sb-pe { position: relative; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ln); }
.conta { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: var(--s2); text-align: left; }
.conta:hover, .conta[aria-expanded="true"] { border-color: var(--ln2); }
.conta > svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.conta-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .92rem; background: var(--s1); border: 1px solid var(--ln2); color: var(--ink); }
.conta-tx { min-width: 0; flex: 1; display: grid; }
.conta-tx b { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-tx small { font-size: .76rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 6px; border-radius: 14px; background: var(--s1); border: 1px solid var(--ln2); box-shadow: var(--sombra); }
.conta-menu hr { border: 0; border-top: 1px solid var(--ln); margin: 6px 0; }
.cm-linha, .cm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 9px; font-size: .9rem; color: var(--ink); }
.cm-item { border: 0; background: transparent; text-align: left; height: 42px; }
.cm-item:hover { background: var(--hov); }
.cm-ic { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.cm-ic svg { width: 100%; height: 100%; display: block; }
.cm-tema { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--s2); border: 1px solid var(--ln); }
.cm-tema button { width: 34px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.cm-tema button svg { width: 17px; height: 17px; }
.cm-tema button[aria-pressed="true"] { background: var(--s1); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); }

.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--ln); }
.titulo { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; margin-right: auto; }
.filtros { width: 100%; display: flex; gap: 8px; align-items: center; }
.filtros .seg { flex: none; }
.dp { position: relative; flex: 1; min-width: 0; }
.dp-btn { width: 100%; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ln2); background: var(--s1); color: var(--ink); font-size: .86rem; font-weight: 500; }
.dp-btn:hover, .dp-btn[aria-expanded="true"] { border-color: var(--ln3); }
.dp-btn svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.dp-btn span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-pop { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 10px; max-height: calc(100dvh - 20px); overflow: auto; display: grid; border-radius: 16px; background: var(--s1); border: 1px solid var(--ln2); box-shadow: var(--sombra); }
.dp-presets { display: flex; gap: 6px; padding: 12px; overflow-x: auto; border-bottom: 1px solid var(--ln); scrollbar-width: none; }
.dp-presets::-webkit-scrollbar { display: none; }
.dp-presets button { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ln2); background: transparent; color: var(--ink-2); font-size: .82rem; white-space: nowrap; }
.dp-presets button:hover { color: var(--ink); background: var(--hov); }
.dp-presets button[aria-pressed="true"] { background: var(--acc-bg); border-color: transparent; color: var(--ink); font-weight: 600; }
.dp-cal { position: relative; padding: 14px; }
.dp-nav { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.dp-nav button { pointer-events: auto; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.dp-nav button:hover:not(:disabled) { background: var(--hov); color: var(--ink); }
.dp-nav button:disabled { opacity: .3; cursor: default; }
.dp-nav svg { width: 18px; height: 18px; }
.dp-meses { display: flex; gap: 28px; justify-content: center; }
.dp-tit { text-align: center; font-weight: 600; font-size: .9rem; height: 34px; line-height: 34px; margin-bottom: 6px; }
.dp-grade { display: grid; grid-template-columns: repeat(7, 40px); row-gap: 2px; }
.dp-grade span { height: 28px; display: grid; place-items: center; font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.dp-grade button { position: relative; height: 38px; border: 0; background: transparent; color: var(--ink); font-size: .86rem; font-variant-numeric: tabular-nums; border-radius: 9px; }
.dp-grade button:hover:not(:disabled) { background: var(--hov); }
.dp-grade button:disabled { color: var(--ink-3); opacity: .4; cursor: default; }
.dp-grade button.hoje::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acc); }
.dp-grade button.meio { background: var(--acc-bg); border-radius: 0; }
.dp-grade button.ini, .dp-grade button.fim { background: var(--acc); color: #00180b; font-weight: 700; }
:root[data-tema="claro"] .dp-grade button.ini, :root[data-tema="claro"] .dp-grade button.fim { color: #fff; }
.dp-grade button.ini.hoje::after, .dp-grade button.fim.hoje::after { background: currentColor; }
.dp-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ln); font-size: .84rem; color: var(--ink-2); }
.dp-pe div { display: flex; gap: 8px; margin-left: auto; }
.dp-pe .btn { height: 36px; padding: 0 16px; font-size: .85rem; }

.modal-fundo { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow: auto; border-radius: 18px; background: var(--s1); border: 1px solid var(--ln2); box-shadow: var(--sombra); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0 20px; }
.modal-h h2 { font-size: 1.08rem; font-weight: 600; }
.modal-c { padding: 8px 20px 20px; display: grid; gap: 18px; }
#segFundo .modal { max-width: 560px; }
.sg-msg { font-size: .86rem; color: var(--err); padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--err) 10%, transparent); }
.sg-msg.ok { color: var(--acc); background: var(--acc-bg); }
.sg-msg.vazio { display: none; }
.sg-sec h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.sg-lista { border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--ln); }
.sg-item:last-child { border-bottom: 0; }
.sg-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--s2); display: grid; place-items: center; color: var(--ink-2); }
.sg-ic svg { width: 17px; height: 17px; }
.sg-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sg-t b { font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sg-t small { color: var(--ink-3); font-size: .77rem; overflow-wrap: anywhere; }
.sg-t em { font-style: normal; font-weight: 500; font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: var(--acc-bg); color: var(--acc); }
.btn-s { height: 34px; padding: 0 14px; font-size: .82rem; flex: none; }
.btn-sair { color: var(--err); }
.btn-sair:hover:not(:disabled) { border-color: var(--err); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.sg-add { flex-wrap: wrap; gap: 4px 12px; }
.sg-add small { color: var(--ink-3); font-size: .77rem; }
.sg-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; color: var(--acc); font-weight: 600; font-size: .86rem; }
.sg-link svg { width: 16px; height: 16px; }
.sg-link:hover { text-decoration: underline; }
.sg-nota { margin-top: 8px; font-size: .78rem; color: var(--ink-3); line-height: 1.5; }
.sg-ult { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 14px; border-radius: 14px; background: var(--s2); font-size: .86rem; }
.sg-ult b { font-weight: 600; }
.sg-ult span { color: var(--ink-2); }
.sg-ip { font-family: var(--mono); font-size: .8rem; }
.sg-passo { display: grid; gap: 14px; }
.sg-passo h3 { font-size: 1rem; font-weight: 600; }
.sg-passo > .btn { width: 100%; }
.sg-form { display: grid; gap: 12px; }
.sg-form > .btn { width: 100%; }
.sg-ou { text-align: center; font-size: .78rem; color: var(--ink-3); }
.sg-passo > .sg-link { justify-self: center; color: var(--ink-2); }
.sg-qr { justify-self: center; width: 180px; height: 180px; padding: 8px; border-radius: 12px; background: #fff; }
.sg-qr svg { width: 100%; height: 100%; display: block; }
.sg-chave { text-align: center; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); overflow-wrap: anywhere; }
@media (max-width: 479px) { .sg-item { align-items: flex-start; } .sg-ic { display: none; } }

@media (min-width: 760px) {
  .filtros { width: auto; }
  .dp { flex: none; }
  .dp-btn { width: auto; min-width: 210px; }
  .dp-pop { position: absolute; left: auto; right: 0; bottom: auto; top: calc(100% + 8px); max-height: none; grid-template-columns: 170px auto; }
  .dp-presets { flex-direction: column; overflow: visible; border-bottom: 0; border-right: 1px solid var(--ln); padding: 12px 10px; }
  .dp-presets button { border: 0; border-radius: 8px; text-align: left; height: 34px; }
}
@media (min-width: 1024px) {
  .app { grid-template-columns: 248px minmax(0, 1fr); }
  .sb { position: sticky; top: 0; height: 100dvh; width: auto; max-width: none; transform: none; transition: none; box-shadow: none; }
  .sb-fechar, .sb-abrir, .sb-fundo { display: none !important; }
  .top { padding: 14px 28px; }
  .area main { padding-left: 28px; padding-right: 28px; }
}
@media (prefers-reduced-motion: reduce) { .sb { transition: none; } }
.lt-topo { align-items: center; }
.lt-topo .lt-acoes { gap: 10px; }
.lt-acoes .busca { width: 220px; height: 40px; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--ln2); background: var(--s2); color: var(--ink); font-size: .86rem; white-space: nowrap; min-width: 0; }
.dd-btn:hover { border-color: var(--ln3); }
.dd-btn:focus-visible, .dd-btn[aria-expanded="true"] { border-color: var(--acc); outline: none; }
.dd-btn svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; transition: transform .2s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-v { overflow: hidden; text-overflow: ellipsis; }
.dd-pop { position: fixed; z-index: 80; list-style: none; margin: 0; padding: 6px; border-radius: 14px; border: 1px solid var(--ln2); background: var(--s1); box-shadow: var(--sombra); max-height: 320px; overflow: auto; }
.dd-pop li { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 8px; border-radius: 9px; font-size: .88rem; color: var(--ink-2); cursor: pointer; outline: none; }
.dd-pop li:hover, .dd-pop li:focus { background: var(--hov); color: var(--ink); }
.dd-pop li[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.dd-pop li i { width: 16px; height: 16px; display: grid; place-items: center; color: var(--acc); flex: none; }
.dd-pop li i svg { width: 16px; height: 16px; }
.dd-menu .dd-pop li { padding: 0 12px; }
.dd-pop li.perigo { color: var(--err); }
.dd-pop li.perigo:hover, .dd-pop li.perigo:focus { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.dd-icone { width: 36px; height: 36px; padding: 0; justify-content: center; background: transparent; border-color: transparent; }
.dd-icone:hover { background: var(--hov); border-color: transparent; }
.dd-icone svg { width: 18px; height: 18px; color: var(--ink-2); }
.dd-icone[aria-expanded="true"] svg { transform: none; }
.dd-campo .dd-btn { width: 100%; height: 48px; border-radius: 10px; font-size: .95rem; }
.campo-ajuda { font-size: .78rem; color: var(--ink-3); }

.us { list-style: none; display: grid; }
.us-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id acao" "fn acao" "st acao" "ult acao"; gap: 4px 12px; padding: 14px 4px; border-top: 1px solid var(--ln); align-items: center; }
.us-r:first-child { border-top: 0; }
.us-id { grid-area: id; display: flex; align-items: center; gap: 12px; min-width: 0; }
.us-id > div { min-width: 0; }
.us-id b { display: block; font-weight: 600; font-size: .92rem; }
.us-id small { display: block; color: var(--ink-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-av { width: 36px; height: 36px; font-size: .9rem; flex: none; }
.us-voce { font-style: normal; font-size: .68rem; font-weight: 500; padding: 2px 7px; margin-left: 4px; border-radius: 999px; background: var(--s3); color: var(--ink-2); vertical-align: 1px; }
.us-funcao { grid-area: fn; font-size: .84rem; color: var(--ink-2); padding-left: 48px; }
.us-st { grid-area: st; justify-self: start; font-size: .74rem; padding: 3px 9px; margin-left: 48px; border-radius: 999px; background: var(--hov); color: var(--ink-2); white-space: nowrap; }
.us-st.us-ok { background: var(--acc-bg); color: var(--acc); }
.us-st.us-b { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.us-ult { grid-area: ult; font-size: .78rem; color: var(--ink-3); padding-left: 48px; }
.us-acao { grid-area: acao; width: 36px; }
.us-aviso { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; font-size: .86rem; background: var(--s2); color: var(--ink-2); }
.us-aviso.ok { background: var(--acc-bg); color: var(--ink); }
.us-aviso.erro { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--ink); }
.us-erro { font-size: .86rem; color: var(--err); }
@media (min-width: 900px) {
  .us-r { grid-template-columns: minmax(0, 1.6fr) 130px 210px minmax(0, 1fr) 36px; grid-template-areas: "id fn st ult acao"; gap: 12px; }
  .us-funcao, .us-ult { padding-left: 0; }
  .us-st { margin-left: 0; }
}
.modal-acoes { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-acoes .btn { height: 42px; }
.modal-p { max-width: 420px; }
.modal-p .modal-c { padding-top: 22px; }
.cf-t { font-size: 1.08rem; font-weight: 600; }
.btn-perigo { background: var(--err); border-color: var(--err); color: #fff; }
.btn-perigo:hover { filter: brightness(1.08); }
body[data-aba="usuarios"] .filtros { display: none; }
@media (max-width: 899px) {
  .lt-topo { flex-direction: column; align-items: stretch; }
  .lt-topo .lt-acoes { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .lt-acoes .busca { width: 100%; max-width: none; order: -2; }
  .lt-acoes .dd { order: -1; flex: 1; }
  .lt-acoes .dd .dd-btn { width: 100%; }
  .lt-topo .lt-acoes .btn { margin-left: 0; order: -1; }
  .lt-sel { margin-right: auto; }
}
@media (max-width: 759px) { .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); } }
@media (max-width: 759px) { .filtros { flex-wrap: wrap; } .dp { flex: 1 1 100%; } .filtros .seg { flex: 1 1 100%; } .filtros .seg button { flex: 1; } }

#cfFundo { z-index: 70; }
#fDisp { flex: none; }
#fDisp .dp-btn { width: auto; min-width: 0; height: 38px; gap: 8px; padding: 0 10px 0 12px; background: var(--s1); justify-content: flex-start; font-weight: 500; }
#fDisp .dp-btn .dd-v { flex: none; }
@media (max-width: 759px) { .filtros #fDisp { flex: 1 1 0; min-width: 0; } .filtros #fDisp .dp-btn { width: 100%; } .filtros .dp { flex: 1.4 1 0; min-width: 0; } }
