/* DesafogAI — duas vozes visuais:
   1. Apresentação: azul, lima, tipografia expandida, cartões de vidro.
   2. Aplicativo demonstrativo: sóbrio, no padrão iPadOS, com a fonte do sistema. */

:root {
  --azul: #0131cd;
  --azul-fundo: #0029b3;
  --lima: #b9fc01;
  --tinta: #0a1033;
  --papel: #fff;
  --nevoa: #f2f4fa;
  --linha: #dfe3ee;
  --cinza: #59607a;

  --app-fundo: #f1f2f6;
  --sep: rgba(10, 16, 51, 0.1);
  --txt2: #5b6278;
  --ok: #157a43;
  --ok-f: #e1f5e9;
  --pend: #9a5b00;
  --pend-f: #fff0d2;
  --erro: #c4281c;
  --erro-f: #fde7e4;

  --topo: 56px;
  --wrap: 1140px;
  --margem: clamp(18px, 4vw, 52px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --marca: "Plus Jakarta Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --sistema: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 12px); }
body { margin: 0; font-family: var(--marca); font-size: 1.0625rem; line-height: 1.5; font-weight: 500; color: var(--tinta); background: var(--azul); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button, a, summary, label { touch-action: manipulation; }
button, summary, .btn, .bt { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }
.lencol :focus-visible, .app :focus-visible, dialog :focus-visible { outline-color: var(--azul); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
svg { flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--margem)); margin-inline: auto; padding-inline: var(--margem); }
.pular { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--lima); color: var(--tinta); padding: 12px 16px; font-weight: 700; border-radius: 12px; }
.pular:focus { top: 12px; }

/* ================= barra superior ================= */
.topo {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--topo) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--margem), env(safe-area-inset-right, 0px)) 0 max(var(--margem), env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--azul); color: var(--papel);
}
.marca { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.marca img { height: 23px; width: auto; }
.vistas { display: inline-flex; padding: 3px; gap: 2px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.vistas a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 clamp(12px, 2.4vw, 20px); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 640; text-decoration: none; color: var(--papel); white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 120ms var(--ease-out);
}
.vistas a:active { transform: scale(0.96); }
.vistas a[aria-current="true"] { background: var(--papel); color: var(--azul); }
.vistas-home { background: none; }
.btn-topo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 999px; color: var(--papel);
  font-size: 0.9375rem; font-weight: 640; text-decoration: none;
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.btn-topo:active { transform: scale(0.96); }
@media (max-width: 759px) { .vistas-home { display: none; } .btn-topo[data-abrir-nichos] span { display: none; } .btn-topo[data-abrir-nichos] { padding: 0 12px; } .marca img { height: 20px; } }
@media (max-width: 379px) { .marca img { height: 17px; } .vistas a { padding: 0 10px; font-size: 0.875rem; } }

/* ================= botões ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--marca); font-size: 1.0625rem; font-weight: 720; font-stretch: 104%; line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-lima { background: var(--lima); color: var(--tinta); }
.btn-vidro { border-color: rgba(255, 255, 255, 0.6); color: var(--papel); background: rgba(255, 255, 255, 0.08); }
.btn-azul { background: var(--azul); color: var(--papel); }
.btn-contorno { border-color: var(--linha); color: var(--tinta); background: var(--papel); }
.btn-grande { min-height: 60px; width: 100%; }
.btn:disabled { opacity: 0.35; cursor: default; }
.link-azul { display: inline-flex; align-items: center; min-height: 44px; color: var(--azul); font-weight: 640; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .btn-lima:hover { background: #cbff3a; }
  .btn-vidro:hover, .btn-topo:hover { background: rgba(255, 255, 255, 0.18); }
  .btn-azul:hover { background: var(--azul-fundo); }
  .btn-contorno:hover { border-color: var(--azul); }
  .vistas a:not([aria-current="true"]):hover { background: rgba(255, 255, 255, 0.14); }
}

/* ================= palco azul (apresentação) ================= */
.palco {
  background-color: var(--azul); color: var(--papel);
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
}
.heroi { padding: clamp(28px, 5vh, 64px) 0 calc(clamp(40px, 7vh, 88px) + 36px); min-height: calc(100svh - var(--topo)); display: grid; align-items: center; }
.heroi-grade { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .heroi-grade { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); } }
.rotulo { display: inline-block; margin-bottom: 20px; padding: 6px 14px 5px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 999px; font-size: 0.875rem; font-weight: 620; line-height: 1.25; }
.cartaz { font-size: clamp(2.05rem, 5vw, 3.75rem); line-height: 0.95; font-weight: 900; font-stretch: 112%; letter-spacing: -0.022em; text-transform: uppercase; overflow-wrap: anywhere; }
.cartaz span { display: block; }
.cartaz span:last-child { color: var(--lima); }
.cartaz-m { font-size: clamp(1.8rem, 4.2vw, 3.1rem); }
.heroi-sub { margin-top: 22px; max-width: 44ch; font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem); line-height: 1.35; font-weight: 520; color: rgba(255, 255, 255, 0.94); }
.heroi-acoes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.cartaz span { animation: subir 640ms var(--ease-out) both; }
.cartaz span:nth-child(2) { animation-delay: 70ms; }
.cartaz span:nth-child(3) { animation-delay: 130ms; }
.rotulo { animation: surgir 420ms ease both; }
.heroi-sub { animation: subir-leve 560ms var(--ease-out) 180ms both; }
.heroi-acoes { animation: subir-leve 520ms var(--ease-out) 250ms both; }

/* cartões de vidro */
.cena-vidro { position: relative; display: grid; gap: 14px; }
.vidro {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.36); border-radius: 24px;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 26px 50px -24px rgba(0, 8, 70, 0.6);
  animation: chegar 620ms var(--ease-out) both; animation-delay: calc(300ms + var(--i) * 140ms);
}
.vidro-de { font-weight: 750; font-size: 0.9375rem; line-height: 1.3; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.vidro-de span { font-weight: 520; font-size: 0.8125rem; opacity: 0.8; }
.vidro-txt { font-size: 1rem; line-height: 1.35; margin-top: 2px; }
.vidro-ia { display: block; background: var(--lima); color: var(--tinta); border-color: transparent; border-bottom-right-radius: 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.vidro-ia .vidro-txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vidro-rot { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 780; margin-bottom: 4px; }
.vidro-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--papel); color: var(--azul); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--papel); color: var(--azul); font-weight: 800; font-size: 1rem; flex: none; }
.espera { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; background: rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.espera i { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); animation: piscar 1.6s ease-in-out infinite; }
.espera b { font-weight: 850; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.rabisco { display: none; stroke: var(--lima); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.rabisco path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: riscar 700ms var(--ease-in-out) 760ms forwards; }
.rabisco path + path { animation-delay: 1380ms; animation-duration: 260ms; }
.selo-giro { display: none; }
@media (min-width: 1000px) {
  .cena-vidro { display: block; min-height: min(470px, 62svh); }
  .cena-vidro .vidro { position: absolute; }
  .v1 { top: 2%; left: 0; width: 80%; rotate: -5deg; }
  .v2 { top: 37%; right: 0; width: 72%; rotate: 4deg; }
  .v3 { bottom: 7%; left: 5%; width: 62%; rotate: -3deg; }
  .cena-home .v2 { top: 34%; right: 0; left: auto; }
  .cena-home .v3 { bottom: 5%; }
  .rabisco { display: block; position: absolute; width: 130px; }
  .cena-vidro .rabisco-laco { top: 15%; right: 2%; rotate: 18deg; }
  .selo-giro { display: block; position: absolute; right: 0; bottom: -4%; width: 138px; height: 138px; border-radius: 50%; background: var(--lima); color: var(--tinta); transition: transform 160ms var(--ease-out); animation: surgir 500ms ease 900ms both; }
  .selo-giro:active { transform: scale(0.95); }
  .selo-giro svg { width: 100%; height: 100%; }
  .selo-giro text { font-family: var(--marca); font-size: 17.5px; font-weight: 820; font-stretch: 112%; fill: currentColor; letter-spacing: 0.02em; }
  .giro { transform-origin: 100px 100px; animation: girar 22s linear infinite; }
  .selo-seta { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
}

/* lençol branco que sobe sobre o azul */
.lencol { position: relative; margin-top: -36px; background: var(--papel); border-radius: 36px 36px 0 0; overflow: hidden; }
.sec { padding-block: clamp(48px, 8vh, 92px); scroll-margin-top: var(--topo); }
.sec-nevoa { background: var(--nevoa); }
.sec-topo { margin-bottom: clamp(22px, 3.6vh, 38px); }
.sec-topo h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.08; font-weight: 820; letter-spacing: -0.022em; max-width: 22ch; }
.sec-topo p { margin-top: 10px; max-width: 60ch; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); color: var(--cinza); }

/* situações (dores) */
.dores { display: grid; gap: 12px; }
@media (min-width: 640px) { .dores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .dores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dor {
  width: 100%; height: 100%; min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; text-align: left;
  background: var(--nevoa); border: 1.5px solid transparent; border-radius: 22px;
  transition: transform 120ms var(--ease-out), border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.dor:active { transform: scale(0.985); }
.dor-t { font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem); line-height: 1.15; font-weight: 760; letter-spacing: -0.012em; }
.dor-mod { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 660; color: var(--azul); }
.dor-estado { font-size: 0.875rem; font-weight: 620; }
.dor-estado:empty { display: none; }
.dor[data-estado="marcada"] { background: var(--azul); color: var(--papel); }
.dor[data-estado="marcada"] .dor-mod { color: var(--lima); }
.dor[data-estado="ok"] .dor-estado { color: var(--ok); }
@media (hover: hover) and (pointer: fine) { .dor:hover { border-color: var(--azul); } }

/* a conta */
.conta-grade { display: grid; gap: clamp(26px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .conta-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.conta-entrada .sec-topo { margin-bottom: 6px; }
.campo { margin-top: 24px; }
.campo label { display: block; font-size: 1.0625rem; font-weight: 640; line-height: 1.3; margin-bottom: 10px; max-width: 36ch; }
.passo-num { display: inline-flex; border: 1.5px solid var(--linha); border-radius: 16px; overflow: hidden; background: var(--papel); }
.passo-num button { width: 58px; height: 58px; font-size: 1.75rem; font-weight: 500; line-height: 1; color: var(--azul); transition: background-color 120ms ease; }
.passo-num button:active { background: var(--nevoa); }
.passo-num input { width: 100px; height: 58px; border: 0; border-inline: 1.5px solid var(--linha); text-align: center; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--papel); border-radius: 0; }
.dinheiro { display: flex; max-width: 280px; border: 1.5px solid var(--linha); border-radius: 16px; overflow: hidden; background: var(--papel); }
.dinheiro > span { display: grid; place-items: center; padding: 0 14px; background: var(--nevoa); font-weight: 750; color: var(--cinza); }
.dinheiro input { flex: 1; min-width: 0; height: 58px; border: 0; padding: 0 14px; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--papel); border-radius: 0; }
.passo-num input:focus-visible, .dinheiro input:focus-visible { outline-offset: -3px; }
.passo-num:focus-within, .dinheiro:focus-within { border-color: var(--azul); }
.conta-saida { background: var(--azul); color: var(--papel); padding: clamp(24px, 4vw, 44px); border-radius: 30px; }
.conta-formula { color: rgba(255, 255, 255, 0.78); font-size: 1rem; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.conta-total { margin-top: 6px; font-size: clamp(2.6rem, 1.6rem + 5vw, 4.75rem); line-height: 1; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color 240ms ease; }
.conta-saida[data-cheia] .conta-total { color: var(--lima); }
.conta-frase { margin-top: 12px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.3; font-weight: 620; max-width: 26ch; }
.conta-ano { margin-top: 8px; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.conta-nota { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.78); font-size: 0.9375rem; }

/* relatos */
.relatos { display: grid; gap: 12px; }
@media (min-width: 760px) { .relatos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.relato { background: var(--papel); padding: 22px 24px; border-radius: 22px; }
.relato h3 { font-size: 1.1875rem; line-height: 1.2; font-weight: 760; margin-bottom: 8px; }
.relato-saida { margin-top: 10px; }
.relato-fonte { margin-top: 12px; font-size: 0.875rem; color: var(--cinza); }
.relato-fonte a { color: var(--azul); text-underline-offset: 3px; display: inline-block; padding-block: 6px; }

/* dúvidas */
.duv-grade { display: grid; gap: 8px clamp(28px, 5vw, 60px); }
@media (min-width: 900px) { .duv-grade { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); align-items: start; } }
.duvidas details { border-top: 1.5px solid var(--linha); }
.duvidas details:last-child { border-bottom: 1.5px solid var(--linha); }
.duvidas summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; min-height: 62px; cursor: pointer; list-style: none; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.25; font-weight: 700; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary svg { color: var(--azul); transition: transform 220ms var(--ease-out); }
.duvidas details[open] summary svg { transform: rotate(45deg); }
.duvidas details p { padding-bottom: 22px; max-width: 62ch; color: var(--cinza); }
.duvidas details[open] p { animation: surgir 260ms ease both; }

/* fecho */
.sec-fecho { padding-top: 0; }
.fecho { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(30px, 6vw, 68px); }
.fecho > p { margin-top: 16px; max-width: 46ch; font-size: 1.125rem; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.fecho .rabisco { display: block; position: absolute; right: clamp(8px, 5vw, 70px); top: 50%; translate: 0 -50%; width: clamp(110px, 18vw, 230px); opacity: 0.95; }
.fecho .rabisco path { animation: none; stroke-dashoffset: 0; }
@media (max-width: 719px) { .fecho .rabisco { display: none; } }

/* rodapé */
.rodape { background: var(--tinta); color: #aab0cb; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 0.9375rem; }
.rodape-grade { display: grid; gap: 22px; }
@media (min-width: 860px) { .rodape-grade { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; } }
.rodape-logo { width: 150px; }
.rodape-lema { color: var(--papel); font-weight: 700; font-size: 1.0625rem; margin-bottom: 6px; }
.rodape a { color: var(--papel); text-underline-offset: 3px; display: inline-block; padding-block: 6px; }
.rodape-aviso { font-size: 0.875rem; }

/* ================= vistas ================= */
.vista { animation: surgir 240ms ease both; }
.vista-app { height: calc(100dvh - var(--topo) - env(safe-area-inset-top, 0px)); background: var(--app-fundo); }
html[data-app] { overflow: hidden; }

/* ================= folhas (diálogos) ================= */
html.travada { overflow: hidden; }
dialog { color: var(--tinta); }
.folha { width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px; background: var(--papel); overflow: hidden; overscroll-behavior: contain; }
.folha[open] { display: flex; flex-direction: column; animation: folha-entra 280ms var(--ease-out); }
.folha.saindo { animation: folha-sai 150ms ease-out forwards; }
dialog::backdrop { background: rgba(4, 10, 50, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: surgir 200ms ease both; }
dialog.saindo::backdrop { animation: sumir 150ms ease forwards; }
.folha-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 0 clamp(20px, 4vw, 30px); }
.folha-pos { font-size: 0.875rem; color: var(--cinza); font-variant-numeric: tabular-nums; font-weight: 620; }
.folha-topo h3 { font-size: 1.25rem; font-weight: 800; }
.fechar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--nevoa); color: var(--cinza); transition: transform 120ms var(--ease-out); }
.fechar:active { transform: scale(0.92); }
.folha-corpo { padding: 6px clamp(20px, 4vw, 30px) 24px; overflow-y: auto; overscroll-behavior: contain; }
.folha-corpo > h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); line-height: 1.08; font-weight: 830; letter-spacing: -0.022em; max-width: 22ch; }
.bloco { margin-top: 20px; }
.bloco h4 { font-size: 0.875rem; font-weight: 720; color: var(--cinza); margin-bottom: 6px; }
.bloco p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.42; }
.bloco-sol { background: #eef2ff; padding: 18px 20px 20px; border-radius: 20px; }
.bloco-sol h4 { color: var(--azul); }
.bloco-sol .btn { margin-top: 16px; min-height: 48px; padding: 0 20px; font-size: 1rem; }
.bloco-pergunta .pergunta { font-weight: 660; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 44px; padding: 0 16px; background: var(--papel); border: 1.5px solid var(--linha); border-radius: 999px; font-size: 0.9375rem; font-weight: 640; transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.folha-pe { display: flex; justify-content: space-between; gap: 10px; padding: 12px clamp(20px, 4vw, 30px) calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linha); }
.folha-pe .btn { min-height: 46px; padding: 0 20px; font-size: 0.9375rem; }
.folha-lista .busca { margin: 12px clamp(20px, 4vw, 30px) 4px; }
.indice-lista { overflow-y: auto; overscroll-behavior: contain; padding: 8px clamp(20px, 4vw, 30px); display: grid; column-gap: 20px; }
@media (min-width: 560px) { .indice-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.indice-lista li.fav-on { order: -1; }
.indice-lista a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 620; text-decoration: none; }
.indice-lista a[aria-current="page"] { background: var(--azul); color: var(--papel); }
.folha-lista .link-azul { margin: 4px clamp(20px, 4vw, 30px) calc(14px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 639px) {
  .folha { width: 100vw; margin: auto 0 0; max-height: 92dvh; border-radius: 28px 28px 0 0; }
  .folha[open] { animation: gaveta-entra 440ms var(--ease-drawer); }
  .folha.saindo { animation: gaveta-sai 220ms var(--ease-drawer) forwards; }
  .folha-pe .btn { flex: 1; }
}
@media (hover: hover) and (pointer: fine) { .indice-lista a:not([aria-current]):hover { background: var(--nevoa); } .chip:hover { border-color: var(--azul); } }

/* ================= página inicial ================= */
.filtros { display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .filtros { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: center; } }
.busca { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1.5px solid var(--linha); border-radius: 999px; background: var(--papel); color: var(--cinza); }
.busca input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 1.0625rem; color: var(--tinta); outline: none; -webkit-appearance: none; appearance: none; }
.busca:focus-within { border-color: var(--azul); }
.grupos { display: flex; flex-wrap: wrap; gap: 8px; }
.grupos button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--linha); border-radius: 999px; font-size: 0.9375rem; font-weight: 640; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.grupos button[aria-pressed="true"] { background: var(--azul); color: var(--papel); border-color: var(--azul); }
.tiles { display: grid; gap: 12px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; }
.tile.fav-on { order: -1; }
.tile a { display: flex; flex-direction: column; height: 100%; min-height: 148px; padding: 20px 52px 18px 20px; border-radius: 22px; text-decoration: none; background: var(--nevoa); transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.tile a:active { transform: scale(0.985); }
.tile h3 { font-size: 1.1875rem; line-height: 1.16; font-weight: 780; letter-spacing: -0.012em; }
.tile p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.35; color: var(--cinza); }
.tile-mod { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 660; color: var(--azul); }
.tile-destaque a { background: var(--azul); color: var(--papel); }
.tile-destaque p { color: rgba(255, 255, 255, 0.82); }
.tile-destaque .tile-mod { color: var(--lima); }
.fav { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 46px; height: 46px; color: #9aa1b8; border-radius: 50%; transition: transform 120ms var(--ease-out), color 160ms ease; }
.fav:active { transform: scale(0.88); }
.fav[aria-pressed="true"] { color: var(--azul); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.tile-destaque .fav { color: rgba(255, 255, 255, 0.7); }
.tile-destaque .fav[aria-pressed="true"] { color: var(--lima); }
.tiles-vazio { padding: 28px 0; color: var(--cinza); font-size: 1.125rem; max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .tile a:hover { transform: translateY(-2px); } .grupos button:hover { border-color: var(--azul); } }

.padrao { display: grid; gap: 12px; }
@media (min-width: 620px) { .padrao { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .padrao { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.padrao li { background: var(--papel); border-radius: 22px; padding: 22px; }
.padrao-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--azul); color: var(--papel); margin-bottom: 16px; }
.padrao h3, .principios h3, .passos h3 { font-size: 1.125rem; line-height: 1.2; font-weight: 760; margin-bottom: 6px; }
.padrao p, .principios p, .passos p { color: var(--cinza); font-size: 1rem; }
.principios { display: grid; gap: 24px 28px; }
@media (min-width: 700px) { .principios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .principios { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principios li { border-top: 2px solid var(--azul); padding-top: 16px; }

/* ================= proposta ================= */
.prop-topo { padding: clamp(28px, 5vh, 56px) 0 calc(clamp(28px, 5vh, 56px) + 36px); }
.prop-topo .heroi-sub { max-width: 60ch; }
.prop-grade { display: grid; gap: clamp(26px, 4vw, 48px); align-items: start; }
@media (min-width: 960px) { .prop-grade { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.prop-mods { display: grid; gap: 10px; }
.prop-mod { display: grid; grid-template-columns: 46px minmax(0, 1fr) 28px; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--linha); border-radius: 20px; cursor: pointer; transition: border-color 180ms ease, background-color 180ms ease, transform 120ms var(--ease-out); }
.prop-mod:active { transform: scale(0.99); }
.prop-mod input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.prop-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--nevoa); color: var(--cinza); transition: background-color 180ms ease, color 180ms ease; }
.prop-corpo { display: grid; gap: 2px; }
.prop-corpo b { font-size: 1.0625rem; font-weight: 740; line-height: 1.25; }
.prop-corpo span { font-size: 0.9375rem; color: var(--cinza); line-height: 1.38; }
.prop-corpo small { margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--azul); line-height: 1.35; }
.prop-marca { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--linha); color: transparent; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 200ms var(--ease-out); }
.prop-mod:has(input:checked) { border-color: var(--azul); background: #f3f6ff; }
.prop-mod:has(input:checked) .prop-ic { background: var(--azul); color: var(--papel); }
.prop-mod:has(input:checked) .prop-marca { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.prop-mod:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 3px; }
.prop-base { cursor: default; }
.prop-sub { margin: 30px 0 12px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.012em; }
.prop-manual { display: grid; gap: 10px; }
.prop-manual li { display: flex; gap: 10px; align-items: flex-start; color: var(--cinza); }
.prop-manual svg { color: var(--azul); margin-top: 3px; }
.prop-manual b { color: var(--tinta); font-weight: 700; }
.prop-resumo { background: var(--azul); color: var(--papel); border-radius: 30px; padding: clamp(22px, 3vw, 30px); }
@media (min-width: 960px) { .prop-resumo { position: sticky; top: calc(var(--topo) + 16px); } }
.prop-resumo h3 { font-size: 1.375rem; font-weight: 830; letter-spacing: -0.015em; }
.prop-conta { margin-top: 4px; color: rgba(255, 255, 255, 0.8); font-size: 0.9375rem; }
.prop-lista { margin-top: 14px; display: grid; gap: 7px; }
.prop-lista li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 0.9375rem; animation: surgir 240ms ease both; }
.prop-lista svg { color: var(--lima); }
.prop-extra { display: grid; gap: 8px; margin-top: 14px; }
.prop-extra:empty { display: none; }
.prop-extra p { padding: 10px 12px; background: rgba(255, 255, 255, 0.12); border-radius: 14px; font-size: 0.9375rem; line-height: 1.35; }
.prop-extra b { color: var(--lima); font-variant-numeric: tabular-nums; }
.prop-resumo h4 { margin-top: 20px; font-size: 1rem; font-weight: 760; }
.prop-valores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.prop-valores label > span:first-child { display: block; font-size: 0.8125rem; font-weight: 620; color: rgba(255, 255, 255, 0.82); margin-bottom: 5px; }
.prop-valores .dinheiro { max-width: none; border: 0; border-radius: 14px; }
.prop-valores .dinheiro > span { padding: 0 10px; font-size: 0.875rem; }
.prop-valores input { height: 48px; font-size: 1.0625rem; padding: 0 10px; color: var(--tinta); }
.prop-valores input::placeholder { font-weight: 500; font-size: 0.9375rem; color: #8a90a8; }
.prop-nota { margin-top: 10px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.78); line-height: 1.4; }
.prop-resumo .btn-grande { margin-top: 18px; }
.prop-contato { margin-top: 10px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); text-align: center; }
.prop-contato a { font-weight: 720; color: var(--papel); display: inline-block; padding-block: 8px; }
.passos { display: grid; gap: 22px; counter-reset: passo; }
@media (min-width: 800px) { .passos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.passos li { counter-increment: passo; }
.passos li::before { content: counter(passo); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lima); color: var(--tinta); font-weight: 850; margin-bottom: 14px; }

/* ================= aplicativo demonstrativo ================= */
.app { position: relative; height: 100%; display: grid; grid-template-columns: 232px minmax(0, 1fr); font-family: var(--sistema); font-size: 15px; line-height: 1.4; font-weight: 400; color: var(--tinta); letter-spacing: -0.005em; }
.app b, .app strong { font-weight: 600; }
.app-lado { display: flex; flex-direction: column; gap: 14px; padding: 16px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.78); border-right: 1px solid var(--sep); overflow-y: auto; }
.app-emp { display: grid; gap: 6px; padding: 4px 10px 0; }
.app-emp b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.app-nav { display: grid; gap: 2px; }
.app-nav button, .app-acao { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; color: var(--tinta); transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out); }
.app-nav button:active, .app-acao:active { transform: scale(0.98); }
.app-nav button svg { color: var(--azul); }
.app-nav button[aria-current="page"] { background: var(--azul); color: var(--papel); font-weight: 600; }
.app-nav button[aria-current="page"] svg { color: var(--papel); }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 2px var(--tinta); margin-left: auto; animation: pulso 420ms var(--ease-out); }
.app-lado-pe { margin-top: auto; display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--sep); }
.app-acao { color: var(--txt2); }
.app-acao-prop { background: var(--lima); color: var(--tinta); font-weight: 600; }
.app-conteudo { overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(14px, 2.4vw, 30px) 44px; container-type: inline-size; }
.app-conteudo:focus { outline: none; }
.app-mod { animation: mod-entra 240ms var(--ease-out) both; display: grid; gap: 18px; max-width: 1080px; margin-inline: auto; }
.app-abas { display: none; }

.mt { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.mt h2 { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; }
.mt p { color: var(--txt2); font-size: 15px; margin-top: 3px; }
.mt-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-t { font-size: 13px; font-weight: 600; color: var(--txt2); margin: 0 4px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bl-t button { color: var(--azul); font-weight: 600; font-size: 13px; min-height: 30px; }
.cx { background: var(--papel); border-radius: 18px; padding: 4px 16px; box-shadow: 0 1px 2px rgba(10, 16, 51, 0.04); }
.cx-p { padding: 16px; }
.duas { display: grid; gap: 18px; }
@container (min-width: 720px) { .duas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.st { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; background: rgba(10, 16, 51, 0.07); color: var(--txt2); }
.st-ok { background: var(--ok-f); color: var(--ok); }
.st-pend { background: var(--pend-f); color: var(--pend); }
.st-erro { background: var(--erro-f); color: var(--erro); }
.st-ia { background: var(--lima); color: var(--tinta); }
.st-azul { background: #e6ecff; color: var(--azul); }

.bt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14px; font-weight: 600; background: #e6ecff; color: var(--azul); white-space: nowrap; text-decoration: none; transition: transform 120ms var(--ease-out), background-color 140ms ease, opacity 140ms ease; }
.bt:active { transform: scale(0.96); }
.bt-cheio { background: var(--azul); color: var(--papel); }
.bt-lima { background: var(--lima); color: var(--tinta); }
.bt-quieto { background: rgba(10, 16, 51, 0.06); color: var(--tinta); }
.bt[disabled] { opacity: 0.5; cursor: default; }
.bt-g { min-height: 46px; padding: 0 18px; font-size: 15px; border-radius: 13px; }

.ln { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sep); }
.ln:last-child { border-bottom: 0; }
.ln-c { display: grid; gap: 1px; min-width: 0; }
.ln-c b { font-size: 15px; line-height: 1.3; }
.ln-c small { font-size: 13px; color: var(--txt2); line-height: 1.35; }
.ln-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ln-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e6ecff; color: var(--azul); }
.ic-pend { background: var(--pend-f); color: var(--pend); }
.ic-erro { background: var(--erro-f); color: var(--erro); }
.ic-ia { background: var(--lima); color: var(--tinta); }
.hora { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; min-width: 46px; }
.hora small { display: block; font-size: 11.5px; font-weight: 500; color: var(--txt2); }
.ln.novo, .cartao.novo { animation: realce 2200ms ease-out both; }
.porque { display: inline-flex; align-items: center; gap: 4px; color: var(--azul); font-size: 12.5px; font-weight: 600; min-height: 26px; text-align: left; }
@container (max-width: 520px) { .ln { grid-template-columns: auto minmax(0, 1fr); } .ln-f { grid-column: 1 / -1; justify-content: flex-start; } }

/* guia */
.guia { background: var(--azul); color: var(--papel); border-radius: 20px; padding: 16px 18px; display: grid; gap: 12px; }
.guia-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; opacity: 0.9; }
.guia ol { display: grid; gap: 8px; }
@container (min-width: 720px) { .guia ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guia button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 12px; border-radius: 13px; background: rgba(255, 255, 255, 0.13); font-size: 13.5px; font-weight: 500; line-height: 1.25; text-align: left; transition: transform 120ms var(--ease-out), background-color 160ms ease; }
.guia button:active { transform: scale(0.97); }
.guia button i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.6); font-style: normal; font-size: 12px; font-weight: 700; flex: none; }
.guia li[data-feito] button { background: rgba(255, 255, 255, 0.06); opacity: 0.85; }
.guia li[data-feito] i { background: var(--lima); border-color: var(--lima); color: var(--tinta); }
.guia li[data-atual] button { background: var(--papel); color: var(--tinta); font-weight: 600; }
.guia li[data-atual] i { border-color: var(--azul); color: var(--azul); }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@container (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 2px; align-content: start; padding: 14px 16px; text-align: left; width: 100%; transition: transform 120ms var(--ease-out); }
.kpi:active { transform: scale(0.98); }
.kpi small { font-size: 13px; font-weight: 600; color: var(--txt2); }
.kpi b { font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -0.028em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--txt2); line-height: 1.35; }
.kpi.mudou { animation: realce 2400ms ease-out both; }
.kpi.mudou small::after { content: "atualizado"; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--lima); color: var(--tinta); font-size: 11px; }

/* barras */
.barras { display: grid; gap: 12px; padding: 14px 0; }
.barra { display: grid; gap: 5px; }
.barra-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.barra-t span:last-child { color: var(--txt2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.barra-f { height: 9px; border-radius: 5px; background: rgba(10, 16, 51, 0.07); overflow: hidden; }
.barra-f i { display: block; height: 100%; border-radius: 5px; background: var(--azul); transform-origin: left; animation: crescer 600ms var(--ease-out) both; }
.colunas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 150px; padding: 16px 0 8px; }
.colunas div { display: grid; gap: 6px; justify-items: center; align-content: end; height: 100%; font-size: 12px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.colunas i { display: block; width: min(34px, 70%); border-radius: 7px 7px 3px 3px; background: #c9d4fb; transform-origin: bottom; animation: subir-barra 600ms var(--ease-out) both; }
.colunas div[data-hoje] i { background: var(--azul); }
.colunas div[data-hoje] { color: var(--tinta); font-weight: 600; }

/* atendimento */
.at { display: grid; gap: 14px; }
@container (min-width: 640px) { .at { grid-template-columns: 236px minmax(0, 1fr); align-items: start; } }
@container (min-width: 840px) { .at { grid-template-columns: 218px minmax(0, 1fr) 250px; } }
.at-lista { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.at-lista::-webkit-scrollbar { display: none; }
@container (min-width: 640px) { .at-lista { display: grid; overflow: visible; } }
.at-item { display: grid; gap: 3px; flex: 0 0 210px; padding: 12px 14px; border-radius: 16px; background: var(--papel); text-align: left; border: 1.5px solid transparent; transition: border-color 160ms ease, transform 120ms var(--ease-out); }
.at-item:active { transform: scale(0.98); }
.at-item[aria-current="true"] { border-color: var(--azul); }
.at-item b { font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.at-item p { font-size: 13px; color: var(--txt2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-item .st { margin-top: 3px; }
.at-item .st b { font-size: inherit; font-variant-numeric: tabular-nums; display: inline; }
.at-sim { background: var(--azul); color: var(--papel); }
.at-sim p { color: rgba(255, 255, 255, 0.84); }
.at-sim[aria-current="true"] { border-color: var(--lima); }
.at-chat { display: flex; flex-direction: column; background: var(--papel); border-radius: 18px; overflow: hidden; height: min(560px, calc(100dvh - var(--topo) - 190px)); min-height: 380px; }
@container (min-width: 640px) and (max-width: 839px) { .at-ficha { grid-column: 2; } }
.at-chat-t { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--sep); }
.at-chat-t .avatar { width: 36px; height: 36px; font-size: 15px; background: #e6ecff; }
.at-chat-t b { display: block; font-size: 15px; line-height: 1.2; }
.at-chat-t small { font-size: 12.5px; color: var(--txt2); }
.chat { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 7px; scrollbar-width: thin; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.34; }
.msg.nova { animation: msg-entra 280ms var(--ease-out) both; }
.msg-c { align-self: flex-start; background: #e9eaf0; border-bottom-left-radius: 5px; transform-origin: left bottom; }
.msg-a { align-self: flex-end; background: var(--azul); color: var(--papel); border-bottom-right-radius: 5px; transform-origin: right bottom; }
.msg-a small { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; opacity: 0.85; margin-bottom: 1px; }
.msg-s { align-self: center; max-width: 94%; text-align: center; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--tinta); background: var(--lima); border-radius: 999px; }
.digitando { align-self: flex-end; display: inline-flex; gap: 5px; padding: 13px 15px; background: var(--azul); border-radius: 18px; border-bottom-right-radius: 5px; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--papel); animation: ponto 1s ease-in-out infinite; }
.digitando i:nth-child(2) { animation-delay: 140ms; }
.digitando i:nth-child(3) { animation-delay: 280ms; }
.at-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sep); }
.at-pe small { color: var(--txt2); font-size: 12.5px; font-variant-numeric: tabular-nums; margin-left: auto; }
.at-ficha { display: grid; gap: 12px; align-content: start; background: var(--papel); border-radius: 18px; padding: 16px; }
.at-ficha h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.at-ficha h3 svg { color: var(--azul); }
.etapas { display: grid; gap: 6px; }
.etapas li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt2); }
.etapas li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(10, 16, 51, 0.14); flex: none; transition: background-color 240ms ease; }
.etapas li.feita { color: var(--tinta); }
.etapas li.feita::before { background: var(--azul); }
.etapas li.atual { color: var(--tinta); font-weight: 600; }
.etapas li.atual::before { background: var(--lima); box-shadow: 0 0 0 2px var(--tinta); }
.campos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: 13.5px; }
.campos dt { color: var(--txt2); }
.campos dd { font-weight: 600; }
.campos .novo { animation: realce 1600ms ease-out both; border-radius: 4px; }
.tarefa { border-radius: 13px; padding: 11px 13px; background: var(--pend-f); font-size: 13.5px; }
.tarefa small { display: block; font-weight: 600; color: var(--pend); margin-bottom: 2px; }
.notas { display: grid; gap: 5px; font-size: 12.5px; color: var(--txt2); }
.notas li { display: flex; gap: 7px; }
.notas li::before { content: ""; width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: currentColor; flex: none; }
.vazio { color: var(--txt2); font-size: 13.5px; }
.at-fim { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #eef2ff; font-size: 13.5px; }
.at-fim div { display: flex; flex-wrap: wrap; gap: 6px; }

/* CRM */
.quadro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.coluna { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 16px; background: rgba(10, 16, 51, 0.045); scroll-snap-align: start; }
.coluna-t { display: grid; gap: 1px; padding: 2px 4px 4px; }
.coluna-t b { font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; }
.coluna-t b span { color: var(--txt2); font-weight: 500; }
.coluna-t small { font-size: 12px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.cartao { display: grid; gap: 4px; width: 100%; padding: 12px; border-radius: 13px; background: var(--papel); text-align: left; box-shadow: 0 1px 2px rgba(10, 16, 51, 0.06); transition: transform 120ms var(--ease-out); }
.cartao:active { transform: scale(0.98); }
.cartao b { font-size: 14.5px; line-height: 1.25; }
.cartao p { font-size: 13px; color: var(--txt2); line-height: 1.3; }
.cartao-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cartao-pe .st { margin-left: auto; }
.coluna-vazia { font-size: 12.5px; color: var(--txt2); padding: 10px 4px; }

.card-topo { display: flex; align-items: center; gap: 12px; padding: 20px 14px 0 22px; }
.card-topo .avatar { background: #e6ecff; }
.card-topo div { flex: 1; min-width: 0; font-family: var(--sistema); }
.card-topo b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.card-topo small { color: var(--txt2); font-size: 14px; }
.card-corpo { font-family: var(--sistema); padding: 14px 22px 8px; display: grid; gap: 14px; font-size: 15px; overflow-y: auto; }
.card-etapas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.card-etapas li { padding-top: 8px; border-top: 4px solid rgba(10, 16, 51, 0.1); font-size: 12px; color: var(--txt2); line-height: 1.25; }
.card-etapas li.feita { border-color: var(--azul); color: var(--tinta); }
.card-etapas li.atual { border-color: var(--azul); color: var(--tinta); font-weight: 600; }
.linha-tempo { display: grid; gap: 10px; }
.linha-tempo li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.linha-tempo li::before { content: ""; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--azul); }
.linha-tempo li.ia::before { background: var(--lima); box-shadow: 0 0 0 2px var(--tinta); }
.card-pe { font-family: var(--sistema); display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 22px calc(18px + env(safe-area-inset-bottom, 0px)); }
.card-pe .bt { flex: 1 1 180px; }

/* automações */
.autos { display: grid; gap: 12px; }
@container (min-width: 720px) { .autos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auto { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px; }
.auto b { font-size: 15.5px; }
.auto p { font-size: 13.5px; color: var(--txt2); grid-column: 1; }
.auto-pe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 4px; }
.chave { position: relative; width: 51px; height: 31px; border-radius: 999px; background: rgba(10, 16, 51, 0.16); transition: background-color 220ms ease; flex: none; }
.chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--papel); box-shadow: 0 2px 5px rgba(10, 16, 51, 0.25); transition: transform 260ms var(--ease-out); }
.chave[aria-checked="true"] { background: var(--azul); }
.chave[aria-checked="true"]::after { transform: translateX(20px); }

/* equipe */
.pessoas { display: grid; gap: 12px; }
@container (min-width: 560px) { .pessoas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 860px) { .pessoas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pessoa { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 16px; align-items: center; }
.pessoa .avatar { background: #e6ecff; grid-row: span 2; }
.pessoa b { font-size: 15.5px; }
.pessoa small { color: var(--txt2); font-size: 13px; }
.pessoa p { grid-column: 1 / -1; font-size: 13px; color: var(--txt2); margin-top: 6px; }
.pessoa p b { font-size: inherit; color: var(--tinta); }
.marca-t { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(10, 16, 51, 0.25); color: transparent; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 200ms var(--ease-out); }
.ln[data-feito] .marca-t { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.ln[data-feito] .ln-c b { text-decoration: line-through; color: var(--txt2); font-weight: 400; }
.toque { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -6px; }
.nota-equipe { padding: 14px 16px; border-radius: 16px; background: #eef2ff; font-size: 14px; color: var(--tinta); }
.app-rodape { font-size: 12.5px; color: var(--txt2); text-align: center; padding-top: 6px; }
.perguntas { display: grid; gap: 0; }

/* avisos do sistema (estilo notificação) */
.app-avisos { position: absolute; top: 10px; left: 50%; translate: -50% 0; z-index: 30; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.aviso { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px; background: rgba(13, 18, 48, 0.92); color: var(--papel); font-size: 14px; line-height: 1.3; text-align: left; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 16px 40px -14px rgba(4, 10, 50, 0.55); animation: aviso-entra 420ms var(--ease-drawer) both; }
.aviso svg { color: var(--lima); }
.aviso.saindo { animation: aviso-sai 240ms ease forwards; }

/* trilho estreito (iPad em pé) */
@media (max-width: 1023px) and (min-width: 760px) {
  .app { grid-template-columns: 88px minmax(0, 1fr); }
  .app-lado { padding-inline: 8px; align-items: stretch; }
  .app-emp b { display: none; }
  .app-emp { padding: 0; justify-items: center; }
  .app-emp .st { font-size: 0; padding: 5px; }
  .app-emp .st::before { content: "Demo"; font-size: 11px; }
  .app-nav button, .app-acao { flex-direction: column; justify-content: center; gap: 4px; min-height: 60px; padding: 6px 2px; font-size: 10.5px; text-align: center; line-height: 1.15; position: relative; }
  .app-nav .ponto { position: absolute; top: 8px; right: 18px; margin: 0; }
}
/* celular */
@media (max-width: 759px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .app-lado { display: none; }
  .app-conteudo { padding: 16px 14px 28px; }
  .mt h2 { font-size: 26px; }
  .app-abas { display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.92); border-top: 1px solid var(--sep); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .app-abas button { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 50px; padding: 6px 0 4px; font-size: 10.5px; font-weight: 500; color: var(--txt2); border-radius: 12px; }
  .app-abas button[aria-current="page"] { color: var(--azul); font-weight: 600; }
  .app-abas .ponto { position: absolute; top: 5px; left: calc(50% + 8px); margin: 0; }
  .at-chat { height: min(480px, calc(100dvh - var(--topo) - 250px)); min-height: 340px; }
}
.mais-lista { display: grid; gap: 4px; padding: 8px 14px 6px; font-family: var(--sistema); }
.mais-lista button, .mais-lista a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 14px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--tinta); }
.mais-lista svg { color: var(--azul); }

@media (hover: hover) and (pointer: fine) {
  .app-nav button:not([aria-current]):hover, .app-acao:not(.app-acao-prop):hover { background: rgba(10, 16, 51, 0.06); }
  .bt:hover { background: #d7e0ff; }
  .bt-cheio:hover { background: var(--azul-fundo); }
  .bt-lima:hover { background: #cbff3a; }
  .at-item:hover, .cartao:hover { border-color: rgba(1, 49, 205, 0.35); }
  .cartao:hover { transform: translateY(-1px); }
}

/* ================= movimento ================= */
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
@keyframes subir-leve { from { opacity: 0; transform: translateY(8px); } }
@keyframes surgir { from { opacity: 0; } }
@keyframes sumir { to { opacity: 0; } }
@keyframes chegar { from { opacity: 0; transform: translateY(22px) scale(0.96); } }
@keyframes piscar { 50% { opacity: 0.25; } }
@keyframes riscar { to { stroke-dashoffset: 0; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes pulso { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } }
@keyframes folha-entra { from { opacity: 0; transform: translateY(14px) scale(0.975); } }
@keyframes folha-sai { to { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes gaveta-entra { from { transform: translateY(100%); } }
@keyframes gaveta-sai { to { transform: translateY(100%); } }
@keyframes mod-entra { from { opacity: 0; transform: translateY(6px); } }
@keyframes msg-entra { from { opacity: 0; transform: translateY(8px) scale(0.95); } }
@keyframes ponto { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes realce { 0%, 30% { box-shadow: 0 0 0 2px var(--lima), 0 0 0 6px rgba(185, 252, 1, 0.35); background-color: #f6ffd9; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes crescer { from { transform: scaleX(0); } }
@keyframes subir-barra { from { transform: scaleY(0); } }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(-120%); } }
@keyframes aviso-sai { to { opacity: 0; transform: translateY(-40%); } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; animation-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .vidro { background: rgba(20, 60, 215, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .app-lado, .app-abas { background: var(--papel); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =====================================================================
   Tipografia nova, painel com gráficos, demonstração guiada, calendário e fichas.
   Este arquivo é somado ao estilo.css na geração do site.
   ===================================================================== */
.cartaz { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.042em; text-transform: none; }
.cartaz-m { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.sec-topo h2, .folha-corpo > h3 { font-weight: 800; letter-spacing: -0.032em; }
.btn { font-weight: 700; letter-spacing: -0.012em; font-size: 1rem; }
.btn-grande { padding: 0 18px; min-height: 58px; }
.heroi-sub { font-weight: 500; }
.dor-t, .tile h3, .relato h3 { letter-spacing: -0.022em; }
.conta-total { font-weight: 800; letter-spacing: -0.045em; }

/* personalização (nome e logo do cliente) */
.perso { margin-top: 26px; max-width: 470px; animation: subir-leve 520ms var(--ease-out) 320ms both; }
.perso > label { font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.perso-linha { display: flex; gap: 8px; margin-top: 8px; }
.perso-linha > input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); color: var(--papel); font-size: 1rem; font-weight: 600; }
.perso-linha > input::placeholder { color: rgba(255, 255, 255, 0.62); font-weight: 500; }
.perso-linha > input:focus-visible { outline-offset: 2px; border-color: var(--lima); }
.perso-logo { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, 0.5); font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.perso-logo img { height: 30px; max-width: 60px; object-fit: contain; border-radius: 6px; background: var(--papel); }
.perso-limpar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); color: var(--papel); flex: none; }
@media (max-width: 479px) { .perso-linha { flex-wrap: wrap; } .perso-linha > input { flex: 1 1 100%; } }

/* proposta: valores e desconto */
.prop-valores { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.prop-valores label { display: block; min-width: 0; }
.prop-valores label > span:first-child small { font-weight: 500; opacity: 0.75; }
.prop-valores .dinheiro { width: 100%; max-width: none; }
.prop-valores input { width: 100%; min-width: 0; font-weight: 700; }
.prop-tab { display: block; margin-top: 5px; min-height: 1.4em; font-size: 0.75rem; color: rgba(255, 255, 255, 0.82); }
.prop-tab s { opacity: 0.7; margin-right: 4px; }
.prop-desc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.prop-desc > span { font-size: 0.8125rem; font-weight: 600; margin-right: 4px; }
.prop-desc button { min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--papel); font-size: 0.8125rem; font-weight: 600; transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out); }
.prop-desc button:active { transform: scale(0.95); }
.prop-desc button[aria-pressed="true"] { background: var(--lima); border-color: var(--lima); color: var(--tinta); }

/* aplicativo: base mais limpa */
.app { background: #f4f5f9; font-feature-settings: "cv11", "ss01"; }
.vista-app { background: #f4f5f9; }
.app-lado { background: var(--papel); border-right: 1px solid #e8eaf1; }
.app-emp { display: flex; align-items: center; gap: 10px; padding: 2px 6px 4px; }
.app-emp img { height: 40px; max-width: 64px; object-fit: contain; border-radius: 10px; border: 1px solid #e8eaf1; background: var(--papel); }
.app-emp .avatar { background: var(--azul); color: var(--papel); }
.app-emp > div { display: grid; gap: 4px; min-width: 0; }
.app-emp b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav button svg { color: #7a8198; }
.app-nav button[aria-current="page"] { background: #eaf0ff; color: var(--azul); font-weight: 600; }
.app-nav button[aria-current="page"] svg { color: var(--azul); }
.ponto { box-shadow: 0 0 0 2px #0a1033; }
.app-mod.parado { animation: none; }
.app-conteudo { overflow-x: hidden; }
.app-mod { max-width: 1120px; gap: 16px; }
.mt h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; }
.cx { border: 1px solid #e8eaf1; box-shadow: none; border-radius: 20px; }
.leve { font-weight: 400 !important; color: var(--txt2); }
.ln-c.larga { grid-column: 1 / -1; }
.cd { background: var(--papel); border: 1px solid #e8eaf1; border-radius: 22px; padding: 18px 20px; min-width: 0; }
.cd > h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.cd > h3 .st, .cd > h3 .conta-bolha { margin-left: auto; }
.cd > h3 svg { color: var(--azul); }
.cd .ln:first-child { padding-top: 6px; }
.seg2 { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(10, 16, 51, 0.06); }
.seg2 button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--txt2); transition: background-color 160ms ease, color 160ms ease; }
.seg2 button[aria-pressed="true"] { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 3px rgba(10, 16, 51, 0.14); }

/* painel */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.dash > * { grid-column: 1 / -1; }
@container (min-width: 860px) {
  .dash > .cd-principal { grid-column: span 7; }
  .dash > .cd-atencao { grid-column: span 5; }
  .dash > .cd-lima { grid-column: span 7; }
  .dash > .cd-vivo { grid-column: span 5; }
  .dash > .cd-graf { grid-column: span 7; }
  .dash > .cd-rank { grid-column: span 5; }
}
.cd-principal { padding: 22px 24px; }
.numero { font-size: clamp(40px, 6.2cqw, 60px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; margin-top: 10px; }
.moeda { color: #9aa1b5; font-weight: 600; margin-right: 8px; letter-spacing: -0.02em; }
.delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ok); }
.segs { display: flex; gap: 4px; height: 12px; margin-top: 22px; }
.segs i { min-width: 8px; border-radius: 6px; transform-origin: left; animation: crescer 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 80ms); }
.segs-leg { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px 16px; margin-top: 14px; }
.segs-leg li { display: grid; gap: 2px; }
.segs-leg span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--txt2); }
.segs-leg i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.segs-leg b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.conta-bolha { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--erro); color: var(--papel); font-size: 12px; font-weight: 700; }
.cd-atencao .ln { grid-template-columns: auto minmax(0, 1fr) auto; }
.cd-atencao .ln-c b { font-size: 14px; }
.cd-atencao .ln-c b, .cd-atencao .ln-c small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-atencao .ln { padding: 10px 0; }
.cd-atencao .bt { min-height: 36px; padding: 0 11px; font-size: 13px; }
.kps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@container (min-width: 860px) { .kps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kps.kps-op { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.kp { display: grid; gap: 3px; align-content: start; padding: 16px 18px; }
.kp-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e9eeff; color: var(--azul); margin-bottom: 8px; }
.kp small { font-size: 13px; font-weight: 600; color: var(--txt2); }
.kp b { font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.kp p { font-size: 12.5px; line-height: 1.35; color: var(--txt2); }
.kp-erro .kp-ic { background: var(--erro-f); color: var(--erro); }
.kp-erro b { color: var(--erro); }
.cd-lima { background: var(--lima); border-color: transparent; border-radius: 28px; padding: 20px 22px; }
.cd-lima > h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.cd-lima ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
@container (min-width: 520px) { .cd-lima ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cd-lima li { display: grid; gap: 2px; padding-left: 16px; border-left: 1px solid rgba(10, 16, 51, 0.18); }
.cd-lima li:first-child { padding-left: 0; border-left: 0; }
.cd-lima small { font-size: 12.5px; font-weight: 600; opacity: 0.72; }
.cd-lima b { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.cd-lima span { font-size: 12.5px; opacity: 0.72; }
.cd-vivo { display: grid; gap: 16px; align-content: center; background: #0b1024; border-color: transparent; border-radius: 28px; color: var(--papel); padding: 20px 22px; }
.cd-vivo > * { min-width: 0; }
.vivo-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vivo-t span { font-size: 15px; font-weight: 600; color: #9db0ff; }
.vivo-t b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.vivo-trilho { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); }
.vivo-trilho i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4f6ff2, var(--lima)); transition: width 700ms var(--ease-out); }
.vivo-trilho span { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -16px; border-radius: 50%; background: #2a3157; border: 3px solid #0b1024; transition: background-color 300ms ease; }
.vivo-trilho span.on { background: var(--lima); }
.vivo-espera i { background: linear-gradient(90deg, #ffb020, #ff5d5d); animation: piscar 1.8s ease-in-out infinite; }
.vivo-pe { display: flex; align-items: center; gap: 12px; }
.vivo-pe .avatar { background: #1c2447; color: var(--papel); }
.vivo-pe > div { flex: 1; min-width: 0; }
.vivo-pe b { display: block; font-size: 16px; }
.vivo-pe small { display: block; font-size: 13px; color: #aab3d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.graf { display: block; width: 100%; height: auto; }
.graf-guia { stroke: rgba(10, 16, 51, 0.07); stroke-width: 1; }
.graf-linha { fill: none; stroke: var(--azul); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: riscar 1100ms var(--ease-in-out) 150ms forwards; }
.graf-area { animation: surgir 900ms ease 500ms both; }
.graf-pt { fill: var(--papel); stroke: var(--azul); stroke-width: 2.5; animation: surgir 300ms ease both; animation-delay: calc(400ms + var(--i) * 90ms); }
.graf-pt-hoje { fill: var(--lima); stroke: var(--tinta); }
.graf-rot { font-size: 12px; fill: var(--txt2); font-family: var(--sistema); }
.graf-rot-hoje { fill: var(--tinta); font-weight: 600; }
.graf-val { font-size: 15px; font-weight: 700; fill: var(--tinta); font-family: var(--sistema); }
.parado .graf-linha { animation: none; stroke-dashoffset: 0; }
.parado .graf-area, .parado .graf-pt, .parado .segs i, .parado .barra-f i { animation: none; }
.rank li { display: grid; grid-template-columns: 22px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; }
.rank .avatar { width: 36px; height: 36px; font-size: 15px; background: #e9eeff; }
.rk-pos { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12.5px; font-weight: 700; color: var(--txt2); }
.rank li:first-child .rk-pos { background: var(--lima); color: var(--tinta); }
.rk-c { display: grid; gap: 5px; min-width: 0; }
.rk-c > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.rk-c b { font-size: 14.5px; }
.rk-c span { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rk-c small { font-size: 12px; color: var(--txt2); }

/* demonstração guiada */
.app-guia { position: absolute; left: calc(232px + 16px); right: 16px; bottom: 16px; z-index: 20; pointer-events: none; }
.guia-barra { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; max-width: 1040px; margin-inline: auto; padding: 18px 20px 16px; border-radius: 24px; background: #0b1024; color: var(--papel); font-family: var(--sistema); box-shadow: 0 24px 60px -18px rgba(4, 10, 50, 0.6); animation: guia-entra 480ms var(--ease-drawer) both; }
.guia-prog { position: absolute; inset: 0 0 auto 0; height: 4px; background: rgba(255, 255, 255, 0.12); }
.guia-prog i { display: block; height: 100%; background: var(--lima); transition: width 500ms var(--ease-out); }
.guia-txt small { font-size: 12.5px; font-weight: 600; color: #9db0ff; }
.guia-txt b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; margin-top: 2px; }
.guia-txt p { font-size: 14.5px; line-height: 1.4; color: #cbd2ea; margin-top: 3px; max-width: 64ch; }
.guia-bts { display: flex; align-items: center; gap: 8px; }
.guia-bts .bt-quieto { background: rgba(255, 255, 255, 0.1); color: var(--papel); }
.guia-bts .bt[disabled] { opacity: 0.7; }
.guia-x { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--papel); }
.app[data-guiando] .app-conteudo { padding-bottom: 190px; }
.app[data-guiando] .at-chat { height: calc(100dvh - var(--topo) - 318px); min-height: 300px; }
.foco { position: relative; z-index: 2; outline: 3px solid var(--lima); outline-offset: 4px; border-radius: 18px; animation: foco 1500ms ease-in-out infinite; }
@media (max-width: 1023px) and (min-width: 760px) { .app-guia { left: calc(88px + 14px); } }
@media (max-width: 759px) {
  .app-guia { left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .guia-barra { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 12px; border-radius: 20px; }
  .guia-txt b { font-size: 17px; }
  .guia-txt p { font-size: 13.5px; }
  .guia-bts .bt-g { flex: 1; }
  .app[data-guiando] .app-conteudo { padding-bottom: 250px; }
}

/* calendário */
.cd-cal { padding: 14px 14px 12px; }
.cal-rolo { overflow-x: auto; scrollbar-width: thin; }
.cal { min-width: 640px; }
.cal-dias, .cal-corpo { display: grid; grid-template-columns: 50px repeat(6, minmax(0, 1fr)); column-gap: 6px; }
.cal-dias { padding-bottom: 8px; }
.cal-dias b { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.cal-dias small { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; font-weight: 600; color: var(--tinta); }
.cal-dias b.hoje { color: var(--azul); }
.cal-dias b.hoje small { background: var(--azul); color: var(--papel); }
.cal-corpo { background-image: linear-gradient(var(--sep) 1px, transparent 1px); background-size: 100% 54px; }
.cal-h { grid-column: 1; padding-top: 4px; font-size: 11.5px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.cal-col { grid-row: 1 / -1; border-radius: 10px; background: rgba(10, 16, 51, 0.022); }
.cal-col.hoje { background: rgba(1, 49, 205, 0.06); }
.ev { z-index: 1; margin: 2px; padding: 5px 8px; border-radius: 9px; border: 1px solid transparent; text-align: left; font-size: 12px; line-height: 1.25; overflow: hidden; display: grid; align-content: start; transition: transform 120ms var(--ease-out); }
.ev[data-a]:active { transform: scale(0.97); }
.ev:not([data-a]) { cursor: default; }
.ev b, .ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev b { font-weight: 600; }
.ev span { opacity: 0.82; }
.ev-ok { background: #e6ecff; border-color: var(--azul); color: #0a2a9e; }
.ev-pend { background: var(--pend-f); border-color: #f0a020; color: var(--pend); }
.ev-env { background: #eef2ff; border-color: #9fb1ff; color: var(--azul); }
.ev-livre { background: var(--papel); border: 1.5px dashed #b9c0d6; color: var(--txt2); }
.ev-ia { background: var(--lima); border-color: var(--tinta); color: var(--tinta); }
.cal-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--txt2); }
.cal-leg span { display: inline-flex; align-items: center; gap: 6px; }
.cal-leg i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid transparent; }

/* fichas do módulo do segmento (veículos, imóveis, unidades) */
.fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.ficha { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ficha-arte { position: relative; padding: 30px 18px 6px; background: linear-gradient(180deg, #eef2fb, #e1e7f5); }
.ficha-arte svg { display: block; width: 100%; height: 104px; }
.ficha-arte .st { position: absolute; top: 12px; left: 12px; }
.ficha-ilus { position: absolute; top: 14px; right: 12px; font-size: 10.5px; font-weight: 500; color: #7f88a6; }
.ficha-c { display: grid; gap: 3px; padding: 14px 16px 16px; flex: 1; align-content: start; }
.ficha-c > b { font-size: 16px; letter-spacing: -0.015em; }
.ficha-c > small { font-size: 13px; color: var(--txt2); }
.ficha-preco { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.tags li { padding: 3px 8px; border-radius: 7px; background: rgba(10, 16, 51, 0.06); color: var(--txt2); font-size: 12px; font-weight: 500; }
.tags .tag-ok { background: var(--ok-f); color: var(--ok); }
.tags .tag-pend { background: var(--pend-f); color: var(--pend); }
.ficha-obs { font-size: 13px; color: var(--txt2); }
.ficha .bt { margin-top: 10px; width: 100%; }
.ficha-fim { opacity: 0.74; }

@keyframes guia-entra { from { opacity: 0; transform: translateY(40px); } }
@keyframes foco { 0%, 100% { box-shadow: 0 0 0 0 rgba(185, 252, 1, 0.6); } 50% { box-shadow: 0 0 0 12px rgba(185, 252, 1, 0); } }

/* caixa de entrada ao vivo */
.at-chegou { animation: chegou .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes chegou { from { opacity: 0; transform: translateY(-14px); background: #eaf7c7; } to { opacity: 1; transform: none; } }
.at-pe .st-ia { display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .at-chegou { animation: none; } }

.st-fu { background: #0131cd; color: #fff; margin-left: 6px; font-size: .68rem; }
.prop-ajuste { margin-top: 6px; }
.prop-ajuste summary { list-style: none; cursor: pointer; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .9rem; letter-spacing: 2px; opacity: .35; user-select: none; }
.prop-ajuste summary::-webkit-details-marker { display: none; }
.prop-ajuste[open] summary { opacity: .7; }
.prop-ajuste .prop-desc { margin-top: 6px; }
.prop-ajuste .prop-desc button { min-height: 32px; padding: 0 11px; font-size: .75rem; }

/* =====================================================================
   Simulador Caixa (imobiliárias): formulário à esquerda, resultado ao vivo à direita.
   Somado ao estilo.css na geração do site.
   ===================================================================== */
.sim { display: grid; gap: 16px; align-items: start; }
@container (min-width: 880px) { .sim { grid-template-columns: 330px minmax(0, 1fr); } }
.sim-form { display: grid; gap: 4px; padding: 6px 18px 18px; }
.sim-bloco { border: 0; margin: 0; padding: 14px 0 12px; display: grid; gap: 12px; min-width: 0; }
.sim-bloco + .sim-bloco { border-top: 1px solid #eceef4; }
.sim-bloco legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--azul); }
.sim-bloco legend small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--txt2); margin-left: 4px; font-size: 12.5px; }
.sim-bloco legend + * { clear: both; }
.sim-campo { display: grid; gap: 6px; min-width: 0; }
.sim-campo > span:first-child { font-size: 13.5px; font-weight: 600; color: var(--tinta); display: flex; justify-content: space-between; gap: 8px; }
.sim-campo > span:first-child small { font-weight: 500; color: var(--txt2); }
.sim-campo > span:first-child b { font-weight: 700; color: var(--azul); }
.sim-ajuda { font-size: 12.5px; color: var(--txt2); line-height: 1.35; }
.sim-ajuda:empty { display: none; }
.sim-din { min-width: 0; display: flex; align-items: center; height: 48px; border: 1.5px solid #dfe3ee; border-radius: 13px; background: var(--papel); transition: border-color 140ms ease, box-shadow 140ms ease; }
.sim-din:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(1, 49, 205, 0.12); }
.sim-din i { font-style: normal; font-size: 14px; font-weight: 600; color: var(--txt2); padding: 0 4px 0 13px; }
.sim-din input { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; background: none; padding: 0 12px 0 2px; font: inherit; font-size: 17px; font-weight: 600; color: var(--tinta); font-variant-numeric: tabular-nums; outline: none; }
.sim-din-g { height: 56px; }
.sim-din-g input { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.sim-seg { display: flex; width: 100%; }
.sim-seg button { flex: 1; justify-content: center; min-height: 42px; padding: 0 8px; text-align: center; line-height: 1.2; }
.sim-seg-grade { display: grid; grid-template-columns: 1fr 1fr; }
/* proposta da Caixa: bloco recolhível no fim do formulário */
.sim-proposta { display: block; border-top: 1px solid #eceef4; }
.sim-proposta summary { display: flex; align-items: baseline; gap: 6px; min-height: 30px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--azul); cursor: pointer; list-style: none; }
.sim-proposta summary::-webkit-details-marker { display: none; }
.sim-proposta summary::before { content: '+'; font-size: 16px; line-height: 1; width: 12px; }
.sim-proposta[open] summary::before { content: '−'; }
.sim-proposta summary small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--txt2); }
.sim-proposta[open] > :not(summary) { margin-top: 10px; }
.sim-din input + i { padding: 0 13px 0 4px; }
.sim-sub-t { margin-top: 4px; font-size: 13.5px; font-weight: 600; }
.sim-sub-t small { font-weight: 500; color: var(--txt2); }
/* teto pela renda × prestação máxima da Caixa × 1ª parcela */
.sim-tetos, .sim-valores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sim-tetos > div, .sim-valores > div { display: grid; gap: 1px; align-content: start; padding: 10px 12px; border-radius: 14px; background: #f4f6fb; border: 1.5px solid transparent; min-width: 0; }
.sim-tetos > div.usado { border-color: var(--azul); background: #eef2ff; }
.sim-tetos dt, .sim-valores dt { font-size: 12px; font-weight: 600; color: var(--txt2); line-height: 1.3; }
.sim-tetos dd, .sim-valores dd { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--tinta); }
.sim-tetos dd small { font-size: 12px; font-weight: 600; color: var(--txt2); letter-spacing: 0; }
.sim-tetos span, .sim-valores span { font-size: 11.5px; color: var(--txt2); }
.sim-valores { margin: 12px 0 6px; }
.sim-ref { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--txt2); }
.sim-ref-ativa { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: var(--azul); font-weight: 600; }
.sim-ref-ativa b { font-weight: 700; }
.sim-ref > span:last-child { font-variant-numeric: tabular-nums; }
.sim-estim { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--pend-f); color: #6e4300; font-size: 13px; line-height: 1.4; }
.sim-estim svg { flex: none; margin-top: 1px; color: var(--pend); }
.sim-estim b { color: var(--pend); }
.sim-homolog { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--pend-f); color: var(--pend); font-size: 11.5px; font-weight: 700; vertical-align: middle; }
.sim-duas { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.sim-duas-igual { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.sim-tres { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.sim-tres .sim-din input { font-size: 15.5px; }
.sim-tres .sim-campo > span:first-child { font-size: 12.5px; }
.sim-passo { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; height: 48px; border: 1.5px solid #dfe3ee; border-radius: 13px; overflow: hidden; background: var(--papel); }
.sim-passo:focus-within { border-color: var(--azul); }
.sim-passo button { font-size: 20px; font-weight: 600; color: var(--azul); background: #f3f6ff; }
.sim-passo button:active { background: #e3eaff; }
.sim-passo input { width: 100%; min-width: 0; border: 0; text-align: center; font: inherit; font-size: 17px; font-weight: 700; color: var(--tinta); outline: none; background: none; }
/* controle de prazo com alvo de dedo de 28px e trilho preenchido */
.sim-range { width: 100%; height: 48px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sim-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--azul) var(--p, 100%), #dfe3ee var(--p, 100%)); }
.sim-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--azul); border: 4px solid var(--papel); box-shadow: 0 1px 5px rgba(10, 16, 51, 0.3); transition: transform 120ms var(--ease-out); }
.sim-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.sim-range::-moz-range-track { height: 6px; border-radius: 3px; background: #dfe3ee; }
.sim-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--azul); }
.sim-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--azul); border: 4px solid var(--papel); box-shadow: 0 1px 5px rgba(10, 16, 51, 0.3); }
.sim-range:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 8px; }
.sim-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: #f4f6fb; font-size: 13.5px; font-weight: 600; color: var(--txt2); }
.sim-total b { font-size: 17px; color: var(--tinta); font-variant-numeric: tabular-nums; }
.sim-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid #dfe3ee; font-size: 14px; font-weight: 600; color: var(--tinta); background: var(--papel); transition: border-color 140ms ease, background-color 140ms ease, transform 120ms var(--ease-out); }
.sim-chips button:last-child { padding-left: 12px; color: var(--txt2); }
.sim-chips button:active, .sim-imoveis button:active { transform: scale(0.97); }
.sim-chips .avatar { width: 30px; height: 30px; font-size: 13px; background: #e6ecff; }
.sim-chips button[aria-pressed="true"] { border-color: var(--azul); background: #eef2ff; color: var(--azul); }
.sim-imoveis { display: grid; gap: 6px; }
.sim-imoveis button { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 13px; border: 1.5px solid #dfe3ee; background: var(--papel); text-align: left; transition: border-color 140ms ease, background-color 140ms ease, transform 120ms var(--ease-out); }
.sim-imoveis b { font-size: 14px; font-weight: 600; }
.sim-imoveis span { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--txt2); }
.sim-imoveis button[aria-pressed="true"] { border-color: var(--azul); background: #eef2ff; }
.sim-imoveis button[aria-pressed="true"] span { color: var(--azul); }

/* resultado */
.sim-res { display: grid; gap: 14px; min-width: 0; container-type: inline-size; }
.sim-vazio { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--txt2); }
.sim-vazio svg { color: var(--azul); margin-bottom: 4px; }
.sim-vazio b { font-size: 17px; color: var(--tinta); }
.sim-fora svg { color: var(--pend); }
.sim-topo { display: grid; gap: 14px; padding: 18px 20px; }
.sim-topo-t { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sim-topo h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.sim-topo p { margin-top: 3px; font-size: 13.5px; color: var(--txt2); line-height: 1.45; }
.sim-topo p b { color: var(--tinta); font-weight: 600; }
.sim-topo-t > .st { flex: none; font-size: 11.5px; }
.sim-sub { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 20px; background: var(--lima); color: var(--tinta); }
.sim-sub > svg { flex: none; }
.sim-sub > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.sim-sub small { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; opacity: 0.72; }
.sim-sub-v { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-sub span { font-size: 13px; line-height: 1.35; opacity: 0.82; }
@container (max-width: 460px) { .sim-sub > div { grid-template-columns: 1fr; } .sim-sub > svg { display: none; } }

.sim-duo { display: grid; gap: 14px; }
@container (min-width: 520px) { .sim-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sim-duo > div { container-type: inline-size; min-width: 0; display: grid; }
.sim-sis { display: grid; gap: 14px; align-content: start; padding: 18px; }
.sim-sis header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sim-sis h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.sim-sis header small { font-size: 13px; color: var(--txt2); }
.sim-selos { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.sim-selos:empty { display: none; }
.sim-selos .st { font-size: 11.5px; padding: 2px 8px; }
.sim-barra { display: flex; gap: 3px; height: 14px; }
.sim-barra i { flex-basis: 0; min-width: 6px; border-radius: 5px; transform-origin: left; animation: crescer 600ms var(--ease-out) both; }
.app-mod.parado .sim-barra i { animation: none; }
.b-sub { background: var(--lima); }
.b-cred { background: var(--azul); }
.b-ent { background: #0b1024; }
.b-falta { background: repeating-linear-gradient(-45deg, #f6b347 0 5px, #ffe2a8 5px 10px); }
.b-fgts { background: #6f8cf0; }
.b-apo { background: #9be0c4; }
.sim-leg { display: grid; gap: 5px; }
.sim-leg li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; color: var(--txt2); }
.sim-leg li i { width: 10px; height: 10px; border-radius: 3px; }
.sim-leg b { font-weight: 600; color: var(--tinta); font-variant-numeric: tabular-nums; }
.sim-grandes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sim-grandes > div { display: grid; gap: 1px; padding: 12px 13px; border-radius: 16px; background: #f4f6fb; min-width: 0; }
.sim-grandes small { font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.sim-grandes b { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-grandes span { font-size: 12px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-st { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.sim-st svg { flex: none; }
.sim-st-ok { background: var(--ok-f); color: var(--ok); }
.sim-st-falta { background: var(--pend-f); color: var(--pend); }
.sim-st b { font-variant-numeric: tabular-nums; }
.sim-st-info { background: #f4f6fb; color: var(--txt2); font-weight: 500; }
.sim-st-info b { color: var(--tinta); font-weight: 700; }
.sim-st + .sim-st { margin-top: -6px; }
.sim-pend { display: grid; gap: 8px; padding: 14px 18px; }
.sim-pend h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--azul); }
.sim-pend ul { display: grid; gap: 6px; padding-left: 24px; list-style: disc; }
.sim-pend li { font-size: 13px; line-height: 1.4; color: var(--txt2); }

.sim-nota { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--txt2); }
.sim-nota svg { flex: none; margin-top: 1px; color: var(--azul); }
.sim-avisos { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--pend-f); }
.sim-avisos li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #6e4300; }
.sim-avisos svg { flex: none; margin-top: 1px; color: var(--pend); }

.sim-graf { display: grid; gap: 8px; padding: 18px 18px 10px; }
.sim-graf header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.sim-graf h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.sim-dica { min-height: 1.5em; font-size: 13px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.sim-dica b { color: var(--tinta); font-weight: 600; }
.sim-chave { display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin: 0 5px 2px 4px; vertical-align: middle; }
.sim-chave.sac { background: var(--azul); }
.sim-chave.price { background: repeating-linear-gradient(90deg, #0b1024 0 6px, transparent 6px 9px); }
.sim-svg { width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.sim-g-eixo text { font-size: 12px; fill: #8a90a6; font-family: var(--sistema); }
.sim-g-linha { stroke: #eceef4; stroke-width: 1; }
.sim-g-sac, .sim-g-price { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sim-g-sac { stroke: var(--azul); }
.sim-g-price { stroke: #0b1024; stroke-dasharray: 7 5; }
.sim-cursor line { stroke: #5b6278; stroke-width: 1.5; }
.sim-cursor circle { stroke: var(--papel); stroke-width: 2.5; }
.c-sac { fill: var(--azul); }
.c-price { fill: #0b1024; }

.sim-tab, .sim-prem { padding: 0; overflow: hidden; }
.sim-tab summary, .sim-prem summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.sim-tab summary::-webkit-details-marker, .sim-prem summary::-webkit-details-marker { display: none; }
.sim-tab summary svg, .sim-prem summary svg { color: var(--txt2); transition: transform 200ms var(--ease-out); }
.sim-tab[open] > summary svg, .sim-prem[open] > summary svg { transform: rotate(90deg); }
.sim-tab-rola { overflow-x: auto; padding: 0 18px; }
.sim-tab table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sim-tab th, .sim-tab td { padding: 8px 6px; text-align: right; border-bottom: 1px solid #f0f1f6; white-space: nowrap; }
.sim-tab thead th { font-size: 12px; font-weight: 600; color: var(--txt2); }
.sim-tab thead tr:first-child th { color: var(--tinta); font-size: 13px; }
.sim-tab tbody th { text-align: left; font-weight: 600; }
.sim-tab tbody th small { display: block; font-size: 11px; font-weight: 400; color: var(--txt2); }
.sim-tab > .sim-nota { padding: 10px 18px 16px; }
.sim-prem dl { display: grid; padding: 0 18px 14px; }
.sim-prem dl > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid #f0f1f6; }
@container (min-width: 560px) { .sim-prem dl > div { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; } }
.sim-prem dt { font-size: 13px; font-weight: 600; }
.sim-prem dd { font-size: 13px; line-height: 1.45; color: var(--txt2); }
.sim-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-acoes .bt { flex: 1 1 220px; }
.sim-legal { font-size: 12px; line-height: 1.45; color: #8a90a6; }
@media (hover: hover) and (pointer: fine) {
  .sim-chips button:hover, .sim-imoveis button:hover { border-color: var(--azul); }
}
@container (max-width: 400px) {
  .sim-grandes { grid-template-columns: 1fr; gap: 8px; }
  .sim-grandes > div { padding: 10px 13px; }
}

/* seletor de modo, frase de conclusão, tabela lado a lado, número que acabou de mudar */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sim-modos button { min-height: 42px; padding: 0 14px; }
.sim-veredito { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #eef2ff; color: var(--tinta); font-size: 15px; font-weight: 500; line-height: 1.45; }
.sim-veredito svg { flex: none; margin-top: 2px; color: var(--azul); }
.sim-comp { padding: 18px 18px 8px; }
.sim-comp h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.sim-comp-rola { overflow-x: auto; }
.sim-comp table { width: 100%; min-width: 380px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sim-comp th, .sim-comp td { padding: 10px 6px; border-top: 1px solid #f0f1f6; text-align: right; vertical-align: top; font-size: 14.5px; }
.sim-comp thead th { border-top: 0; font-size: 13px; font-weight: 700; color: var(--txt2); }
.sim-comp tbody th { text-align: left; font-size: 13.5px; font-weight: 500; color: var(--txt2); width: 30%; }
.sim-comp td { font-weight: 600; }
.sim-comp td small { display: block; font-size: 11.5px; font-weight: 400; color: var(--txt2); line-height: 1.35; }
@keyframes sim-mudou { from { background-color: rgba(185, 252, 1, 0.75); } to { background-color: transparent; } }
.mudou { animation: sim-mudou 900ms ease-out; border-radius: 6px; }

/* =====================================================================
   Modo conversa: uma pergunta por vez, respostas em botões grandes.
   ===================================================================== */
.conv { width: 100%; max-width: 760px; margin-inline: auto; padding: 0; overflow: hidden; display: grid; }
.cv-msgs { display: grid; gap: 12px; padding: 22px 20px 18px; }
.cv-bot { display: flex; gap: 10px; align-items: flex-end; max-width: min(88%, 580px); }
.cv-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lima); color: var(--tinta); }
.cv-bot > p { padding: 12px 15px; border-radius: 18px 18px 18px 6px; background: #f1f3f9; font-size: 15.5px; line-height: 1.45; color: var(--tinta); }
.cv-eu { justify-self: end; max-width: 85%; }
.cv-eu button { display: grid; justify-items: end; gap: 2px; padding: 11px 15px; border-radius: 18px 18px 6px 18px; background: var(--azul); color: var(--papel); font-size: 15.5px; font-weight: 600; text-align: right; transition: transform 120ms var(--ease-out), background-color 140ms ease; }
.cv-eu button:active { transform: scale(0.97); }
.cv-eu small { font-size: 11.5px; font-weight: 500; opacity: 0.72; }
.cv-novo { animation: cv-entra 280ms var(--ease-out) both; }
.cv-bot-res { animation-delay: 120ms; }
@keyframes cv-entra { from { opacity: 0; transform: translateY(8px); } }
.cv-entrada { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid #eceef4; background: #fafbfd; }
.cv-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-ops-fim { justify-content: flex-end; }
.cv-op { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #cfd8f6; background: var(--papel); color: var(--azul); font-size: 15.5px; font-weight: 600; text-align: left; transition: transform 120ms var(--ease-out), background-color 140ms ease, border-color 140ms ease; }
.cv-op b { margin-left: 4px; color: var(--tinta); font-weight: 700; font-variant-numeric: tabular-nums; }
.cv-op .avatar { width: 32px; height: 32px; margin-left: -10px; font-size: 13px; background: #e6ecff; }
.cv-op-prim { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.cv-op:active { transform: scale(0.97); }
.cv-linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.cv-duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.cv-ok { min-height: 56px; }
.cv-passo { height: 56px; grid-template-columns: 56px minmax(0, 1fr) 56px; }
.cv-passo input { font-size: 22px; }
.cv-erro { font-size: 13.5px; font-weight: 600; color: var(--erro); }
.cv-bot-res { display: block; width: 100%; max-width: 100%; padding-left: 40px; }
.cv-bot-res > p { display: inline-block; }
.cv-res { display: grid; gap: 12px; padding: 14px; border-radius: 20px; border: 1px solid #e8eaf1; background: var(--papel); }
.cv-res-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--lima); color: var(--tinta); }
.cv-res-sub small { font-size: 13px; font-weight: 700; opacity: 0.75; }
.cv-res-sub { flex-wrap: wrap; }
.cv-res-sub span { flex-basis: 100%; font-size: 12.5px; line-height: 1.35; opacity: 0.8; }
.cv-res-sub b { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.cv-res-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cv-sis { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 16px; background: #f4f6fb; }
.cv-sis h5 { margin: 0; display: grid; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.cv-sis h5 small { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--txt2); }
.cv-sis dl { display: grid; gap: 4px; }
.cv-sis dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cv-sis dt { font-size: 13px; color: var(--txt2); }
.cv-sis dd { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-sis .sim-st { font-size: 13px; padding: 7px 10px; }
.cv-res-ver { font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--tinta); }
.cv-res-av { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--pend-f); }
.cv-res-av li { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: #6e4300; }
.cv-res-av svg { flex: none; margin-top: 1px; color: var(--pend); }
.cv-res-leg { font-size: 12px; line-height: 1.4; color: #8a90a6; }
@container (max-width: 560px) {
  .cv-msgs { padding: 18px 14px 14px; }
  .cv-entrada { padding: 14px; }
  .cv-linha { grid-template-columns: 1fr; }
  .cv-ok { width: 100%; }
  .cv-bot-res { padding-left: 0; }
  .cv-res-duo { grid-template-columns: 1fr; }
  .cv-op { flex: 1 1 100%; justify-content: flex-start; }
}
@media (hover: hover) and (pointer: fine) {
  .cv-op:not(.cv-op-prim):hover { border-color: var(--azul); background: #f5f7ff; }
  .cv-eu button:hover { background: var(--azul-fundo); }
}
@media (prefers-reduced-motion: reduce) { .cv-novo, .mudou { animation: none; } }
.sim-faltam { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.sim-faltam li { padding: 5px 11px; border-radius: 999px; background: var(--pend-f); color: var(--pend); font-size: 13px; font-weight: 600; }
.sim-faltam li::before { content: "Falta: "; font-weight: 500; }

/* =====================================================================
   Painel próprio da imobiliária: valor líquido, indicadores do corretor e exclusividades em 3D.
   Somado ao estilo.css na geração do site.
   ===================================================================== */
.im-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.im-col > .cd-vivo { align-content: start; }
@container (min-width: 860px) {
  .dash-imob > .im-excl { grid-column: span 7; }
  .dash-imob > .im-col { grid-column: span 5; }
  .dash-imob > .cd-lima { grid-column: span 7; }
  .dash-imob > .cd-graf { grid-column: span 5; }
}

/* destaque: valor líquido */
.im-liq-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.im-liq-t h3 { margin: 0; }
.im-liq-t .st { font-size: 12px; }
.dash-imob .segs-leg li.leg-total span { font-weight: 600; color: var(--tinta); }
.dash-imob .segs-leg li.leg-total b { font-weight: 700; }

/* indicadores */
.im-kps .kp { position: relative; overflow: hidden; }
.im-kps .kp b { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.moeda-p { font-size: 0.62em; font-weight: 600; color: #9aa1b5; letter-spacing: 0; }
.kp-de { font-size: 0.58em; font-weight: 600; color: var(--txt2); letter-spacing: 0; }
.im-meter { display: flex; height: 6px; margin: 6px 0 3px; border-radius: 3px; background: #edf0f7; overflow: hidden; }
.im-meter i { display: block; height: 100%; background: var(--azul); border-radius: 3px; transform-origin: left; animation: crescer 800ms var(--ease-out) 200ms both; }
.im-meter i.m-r { background: var(--lima); border-radius: 0 3px 3px 0; }
.im-meter-g { height: 10px; border-radius: 5px; margin: 2px 0 0; }
.im-split { display: flex; gap: 3px; height: 6px; margin: 6px 0 3px; }
.im-split i { border-radius: 3px; transform-origin: left; animation: crescer 800ms var(--ease-out) 200ms both; }
.im-split .s-0 { background: var(--azul); }
.im-split .s-1 { background: var(--lima); }
.im-spark { display: block; width: 100%; height: 26px; margin: 4px 0 1px; overflow: visible; }
.im-spark polyline { fill: none; stroke: var(--azul); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: riscar 1000ms var(--ease-in-out) 250ms forwards; }
.app-mod:not(.parado) .im-kps .kp { animation: im-sobe 460ms var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 45ms); }
@keyframes im-sobe { from { opacity: 0; transform: translateY(10px); } }
.parado .im-meter i, .parado .im-split i, .parado .im-spark polyline { animation: none; stroke-dashoffset: 0; }

/* exclusividades em 3D */
.im-excl { display: grid; gap: 14px; align-content: start; padding: 18px 20px; container-type: inline-size; }
.im-excl-t { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.im-excl-t h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
.im-excl-t h3 svg { color: var(--azul); }
.im-excl-corpo { display: grid; gap: 16px; align-items: center; }
@container (min-width: 460px) { .im-excl-corpo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.im-predio { margin: 0; display: grid; place-items: center; padding: 6px 0; border-radius: 20px; background: radial-gradient(120% 90% at 50% 100%, #e9eeff 0%, #f6f8fd 55%, #fff 100%); }
.im-predio-svg { width: 100%; max-width: 280px; height: auto; overflow: visible; }
.im-chao { fill: #dfe5f6; }
.andar { transform-box: view-box; animation: im-andar 560ms cubic-bezier(0.34, 1.3, 0.64, 1) both; animation-delay: calc(150ms + var(--k) * 110ms); }
@keyframes im-andar { from { opacity: 0; transform: translateY(-34px); } 60% { opacity: 1; } }
.parado .andar { animation: none; }
.un[data-a] { cursor: pointer; outline: none; }
.un polygon { transition: filter 160ms ease, transform 160ms var(--ease-out); }
.un.sel polygon, .un[data-a]:focus-visible polygon { filter: brightness(1.08) drop-shadow(0 0 3px rgba(1, 49, 205, 0.55)); }
.un-d polygon { stroke: #c9d1e6; stroke-width: 0.6; }
.im-excl-dados { display: grid; gap: 12px; min-width: 0; }
.im-excl-nome { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.im-excl-dados small { font-size: 13px; color: var(--txt2); }
.im-excl-num { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
@container (min-width: 760px) { .im-excl-num { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.im-excl-num li { display: grid; gap: 1px; }
.im-excl-num b { font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.im-excl-num small { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.25; }
.im-k { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.k-v { background: var(--azul); }
.k-r { background: var(--lima); }
.k-d { background: #fff; box-shadow: inset 0 0 0 1.5px #c9d1e6; }
.im-excl-vgv { font-size: 13.5px; line-height: 1.45; color: var(--txt2); }
.im-excl-vgv b { color: var(--tinta); }
.im-excl-dica { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border-radius: 12px; background: #f4f6fb; font-size: 13px; color: var(--txt2); }
.im-excl-dica svg { flex: none; color: var(--azul); }
.im-excl-dica b { color: var(--tinta); }

@media (hover: hover) and (pointer: fine) {
  .un[data-a]:hover polygon { filter: brightness(1.1); }
  .im-kps .kp { transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
  .im-kps .kp:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10, 16, 51, 0.07); }
}
@media (prefers-reduced-motion: reduce) {
  .andar, .app-mod .im-kps .kp, .im-meter i, .im-split i, .im-spark polyline { animation: none !important; stroke-dashoffset: 0; }
}

/* seletor de mês e status do destaque */
.im-mes { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 12px; border-radius: 11px; background: var(--papel); border: 1.5px solid #dfe3ee; color: var(--azul); }
.im-mes:focus-within { border-color: var(--azul); }
.im-mes select { appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0 18px 0 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--tinta); cursor: pointer; outline: none; background-image: linear-gradient(45deg, transparent 50%, #5b6278 50%), linear-gradient(135deg, #5b6278 50%, transparent 50%); background-position: right 6px center, right 1px center; background-size: 5px 5px; background-repeat: no-repeat; }
.mt-acoes { flex-wrap: wrap; justify-content: flex-end; }
.numero-neg span[data-sobe] { color: var(--erro); }

/* prédio em modo de edição */
.im-predio-svg.editando .un { cursor: pointer; }
.im-predio-svg.editando .un-fora polygon { stroke: #c3cad9; stroke-width: 0.6; stroke-dasharray: 2 2; }
.im-excl-ed .im-predio { box-shadow: inset 0 0 0 2px var(--azul); }

/* modo de edição: só existe depois de tocar em "Editar" */
.im-edbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-radius: 18px; background: #eef2ff; border: 1px solid #d5ddff; color: var(--tinta); }
.im-edbar > svg { flex: none; color: var(--azul); }
.im-edbar p { flex: 1 1 260px; font-size: 14px; line-height: 1.4; color: var(--txt2); }
.im-edbar p b { color: var(--tinta); font-weight: 600; }
.ed { display: inline; padding: 1px 6px; margin: 0 -2px; border-radius: 8px; font: inherit; color: inherit; letter-spacing: inherit; text-align: inherit; cursor: text; background: #eaf0ff; box-shadow: inset 0 0 0 1.5px #c5d2ff; transition: background-color 140ms ease, box-shadow 140ms ease; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ed:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.ed:active { background: #dbe5ff; }
.ed-caixa { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 8px; background: var(--papel); box-shadow: 0 0 0 2px var(--azul); vertical-align: baseline; max-width: 100%; }
.ed-caixa i { font-style: normal; font-size: 0.72em; font-weight: 600; color: var(--txt2); }
.ed-in { min-width: 3ch; max-width: 100%; padding: 1px 0; border: 0; background: none; font: inherit; font-size: max(16px, 1em); font-weight: inherit; color: var(--tinta); letter-spacing: inherit; outline: none; font-variant-numeric: tabular-nums; }
.ed-texto .ed-in { min-width: 8ch; }
.segs-leg span .ed { color: var(--tinta); font-weight: 600; }
.ed .moeda-p { margin-right: 4px; }
.leg-r { font-style: normal; }
@media (hover: hover) and (pointer: fine) { .ed:hover { background: #dbe5ff; box-shadow: inset 0 0 0 1.5px var(--azul); } }

/* custos do mês: nome e valor, com uma barra fina de proporção embaixo */
@container (min-width: 860px) {
  .dash-imob > .im-kps { grid-column: span 7; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-imob > .im-custos { grid-column: span 5; }
}
.im-custos { display: grid; gap: 14px; align-content: start; padding: 18px 20px 16px; }
.im-custos-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.im-custos-t h3 { margin: 0; font-size: 15px; font-weight: 600; }
.im-custos-t > b { font-size: 24px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.im-c-lista { display: grid; gap: 11px; }
.im-c { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 5px 10px; }
.im-custos-ed .im-c { grid-template-columns: minmax(0, 1fr) auto 32px; align-items: center; }
.im-c-nome { min-width: 0; font-size: 14px; color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-c-v { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.im-c-barra { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: #f0f2f7; overflow: hidden; }
.im-c-barra i { display: block; height: 100%; border-radius: 2px; background: #c7cede; transform-origin: left; animation: crescer 700ms var(--ease-out) 150ms both; }
.im-c-ads .im-c-barra i { background: var(--azul); }
.parado .im-c-barra i { animation: none; }
.im-c-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #8a90a6; background: #f4f6fb; }
.im-c-x:active { background: var(--erro-f); color: var(--erro); }
.im-c-novo { justify-self: start; }
.im-c-nota { padding-top: 12px; border-top: 1px solid #eef0f5; font-size: 12.5px; line-height: 1.4; color: var(--txt2); }
@media (hover: hover) and (pointer: fine) { .im-c-x:hover { background: var(--erro-f); color: var(--erro); } }

/* =====================================================================
   Locação · administração de aluguéis (src/locacao.js)
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* abas internas */
.lc-abas { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 -2px; border-radius: 16px; background: var(--papel); border: 1px solid #e8eaf1; }
.lc-abas::-webkit-scrollbar { display: none; }
.lc-abas button { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 42px; padding: 0 13px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--txt2); transition: background-color 160ms ease, color 160ms ease; }
.lc-abas button svg { color: #8a91a8; }
.lc-abas button[aria-current="page"] { background: #eaf0ff; color: var(--azul); }
.lc-abas button[aria-current="page"] svg { color: var(--azul); }
@media (hover: hover) and (pointer: fine) { .lc-abas button:not([aria-current="page"]):hover { background: #f4f5f9; color: var(--tinta); } }
.lc-bolha { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--erro); color: var(--papel); font-size: 11px; font-weight: 700; font-style: normal; }
.lc-corpo { display: grid; gap: 14px; min-width: 0; }

/* faixas e notas */
.lc-faixa { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 16px; background: var(--pend-f); color: var(--pend); font-size: 14px; line-height: 1.4; }
.lc-faixa > span { flex: 1 1 280px; color: var(--tinta); }
.lc-faixa > svg { flex: none; }
.lc-faixa-azul { background: #eaf0ff; color: var(--azul); }
.lc-nota { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; background: #f4f6fb; font-size: 13.5px; line-height: 1.45; color: var(--txt2); }
.lc-nota > svg { flex: none; margin-top: 1px; color: var(--azul); }
.lc-vazio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 22px 18px; border-radius: 18px; border: 1.5px dashed #d8dce8; color: var(--txt2); font-size: 14.5px; }
.lc-vazio svg { color: var(--ok); }
.lc-p { font-size: 14px; line-height: 1.5; color: var(--txt2); }
.lc-pequeno { font-size: 12.5px; }
.lc-link { display: inline; padding: 0; min-height: 0; border: 0; background: none; color: var(--azul); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lc-ok { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 13px; background: var(--ok-f); color: var(--ok); font-size: 14px; font-weight: 600; }

/* visão geral */
.lc-tres { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lc-card { display: grid; gap: 14px; align-content: start; }
.lc-card > h3 { margin: 0; align-items: flex-start; }
.lc-card > h3 > span:last-child { display: grid; gap: 1px; }
.lc-card > h3 small { font-size: 12.5px; font-weight: 500; color: var(--txt2); }
.lc-card-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #eaf0ff; color: var(--azul); flex: none; }
.lc-card-ic svg { color: var(--azul); }
.lc-num { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.lc-num li { display: grid; gap: 1px; align-content: start; min-width: 0; }
.lc-num b { font-size: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lc-num span { font-size: 13px; font-weight: 600; }
.lc-num small { font-size: 12px; color: var(--txt2); }
.lc-num .lc-erro b { color: var(--erro); }
.lc-num .lc-pend b { color: var(--pend); }
.lc-card-pe { border-top: 1px solid #eef0f5; padding-top: 12px; }
.lc-card-pe .bt { min-height: 36px; font-size: 13.5px; }
.lc-dois { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container (min-width: 860px) { .lc-dois { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.lc-graf > h3 { flex-wrap: wrap; }
.lc-leg { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; font-weight: 500; color: var(--txt2); }
.lc-leg i { width: 10px; height: 10px; border-radius: 3px; }
.lc-l1 { background: var(--azul); }
.lc-l2 { background: var(--lima); border: 1px solid rgba(10, 16, 51, 0.25); }
.lc-barras { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; height: 210px; padding-top: 8px; }
.lc-barras li { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; text-align: center; min-width: 0; }
.lc-bv { font-size: 11px; font-weight: 600; color: var(--txt2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-bar { position: relative; display: flex; align-items: flex-end; justify-content: center; border-radius: 10px; background: #f2f4f9; overflow: hidden; }
.lc-bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px; background: var(--azul); transform-origin: bottom; animation: lc-sobe 700ms var(--ease-out) both; }
.lc-bar i.lc-adm { left: 22%; right: 22%; background: var(--lima); border: 1px solid rgba(10, 16, 51, 0.2); border-bottom: 0; animation-delay: 160ms; }
.lc-barras small { font-size: 12px; color: var(--txt2); font-weight: 600; }
.parado .lc-bar i { animation: none; }
@keyframes lc-sobe { from { transform: scaleY(0); } }
.lc-log li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid #f0f1f6; font-size: 13.5px; }
.lc-log li:first-child { border-top: 0; }
.lc-log time { color: var(--txt2); font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* barra de filtros */
.lc-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lc-seg { flex: none; }
.lc-busca { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 13px; border-radius: 13px; border: 1.5px solid #dfe3ee; background: var(--papel); color: var(--txt2); }
.lc-busca:focus-within { border-color: var(--azul); }
.lc-busca input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--tinta); outline: none; }
.lc-sel select { min-height: 44px; padding: 0 34px 0 12px; border-radius: 13px; border: 1.5px solid #dfe3ee; background: var(--papel); font: inherit; font-size: 14px; font-weight: 600; color: var(--tinta); }
.lc-soma { font-size: 13px; font-weight: 600; color: var(--txt2); }
.lc-kps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 860px) { .lc-kps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lc-kps .kp b { font-size: 21px; }

/* listas */
.lc-lista { display: grid; border: 1px solid #e8eaf1; border-radius: 20px; background: var(--papel); overflow: hidden; }
.lc-lista > li + li { border-top: 1px solid #eef0f5; }
.lc-linha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 13px 16px; text-align: left; transition: background-color 140ms ease; }
.lc-linha:active { background: #f6f7fb; }
@media (hover: hover) and (pointer: fine) { .lc-linha:hover { background: #f8f9fc; } }
.lc-linha .avatar { width: 40px; height: 40px; background: #e9eeff; color: var(--azul); font-size: 15px; }
.lc-l-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f0f2f8; color: var(--azul); }
.lc-l-c { display: grid; gap: 2px; min-width: 0; }
.lc-l-c b { font-size: 15px; font-weight: 650; letter-spacing: -0.012em; }
.lc-l-c small { font-size: 12.5px; color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-l-f { display: grid; gap: 3px; justify-items: end; text-align: right; }
.lc-l-f b { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.lc-l-f small { font-size: 12px; color: var(--txt2); white-space: nowrap; }
.lc-l-f > svg { color: #a6acbf; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.lc-fat .lc-linha { grid-template-columns: minmax(0, 1fr) auto; }
.lc-fat-ac { display: flex; gap: 6px; justify-content: flex-end; padding: 0 16px 12px; margin-top: -4px; }
.lc-bt-p { min-height: 36px; padding: 0 12px; font-size: 13px; gap: 6px; }
a.bt { text-decoration: none; }
.lc-bt-erro { background: var(--erro-f); color: var(--erro); }
@media (max-width: 560px) {
  .lc-linha { grid-template-columns: auto minmax(0, 1fr); }
  .lc-fat .lc-linha { grid-template-columns: minmax(0, 1fr); }
  .lc-linha .lc-l-f { grid-column: 1 / -1; justify-items: start; text-align: left; grid-template-columns: auto auto; align-items: center; justify-content: space-between; }
  .lc-linha .avatar + .lc-l-c + .lc-l-f, .lc-l-ic + .lc-l-c + .lc-l-f { padding-left: 52px; }
  .lc-l-f small { grid-column: 1 / -1; grid-row: 2; }
  .lc-chips { justify-content: flex-start; }
  .lc-fat-ac .bt { flex: 1; justify-content: center; }
}

/* régua */
.lc-regua { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; counter-reset: r; }
.lc-regua li { position: relative; display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: #f4f6fb; }
.lc-regua li:nth-child(3) { background: var(--azul); color: var(--papel); }
.lc-regua li:nth-child(3) small { color: #c9d4ff; }
.lc-regua li.off { opacity: 0.45; }
.lc-regua b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lc-regua span { font-size: 13.5px; font-weight: 600; }
.lc-regua small { font-size: 12px; color: var(--txt2); }
@media (max-width: 560px) { .lc-regua { grid-template-columns: 1fr 1fr; } }
.cd-atencao .ln-f { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) {
  .cd-atencao .ln { grid-template-columns: auto minmax(0, 1fr); }
  .cd-atencao .ln-f { grid-column: 2; justify-content: flex-start; }
  .cd-atencao .ln-c b, .cd-atencao .ln-c small { white-space: normal; }
}

/* relatórios */
.lc-rel { display: grid; gap: 14px; }
.lc-rel-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lc-rel-nav button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #dfe3ee; background: var(--papel); font-size: 13.5px; font-weight: 600; color: var(--txt2); }
.lc-rel-nav button[aria-current="page"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.lc-rel-c { display: grid; gap: 12px; }
.lc-rel-c > h3 { margin: 0; }
.lc-tab-rolo { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.lc-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lc-tab th, .lc-tab td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #eef0f5; white-space: nowrap; }
.lc-tab th { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--txt2); }
.lc-tab td, .lc-tab th { text-align: right; }
.lc-tab .lc-t { text-align: left; }
.lc-tab tfoot td { font-weight: 700; border-top: 2px solid var(--tinta); border-bottom: 0; }
.lc-tab-ind td, .lc-tab-ind th { text-align: right; }
.lc-tab-ind td:first-child, .lc-tab-ind th:first-child { text-align: left; }
.lc-h3-sub { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--txt2); }

/* formulários */
.lc-ajustes { display: grid; gap: 14px; }
.lc-form { display: grid; gap: 14px; }
.lc-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; }
.lc-larga { grid-column: 1 / -1; }
.lc-campo { display: grid; gap: 5px; align-content: start; min-width: 0; }
.lc-campo[hidden] { display: none; }
.lc-campo > span { font-size: 13px; font-weight: 600; }
.lc-campo > small { font-size: 12px; line-height: 1.35; color: var(--txt2); }
.lc-campo input, .lc-campo select, .lc-campo textarea { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #dfe3ee; background: var(--papel); font: inherit; font-size: 15px; font-weight: 500; color: var(--tinta); transition: border-color 140ms ease, box-shadow 140ms ease; }
.lc-campo textarea { padding: 10px 12px; line-height: 1.45; resize: vertical; font-size: 14px; }
.lc-campo input:focus, .lc-campo select:focus, .lc-campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(1, 49, 205, 0.12); }
.lc-check { display: flex; align-items: center; gap: 10px; min-height: 46px; font-size: 14px; font-weight: 600; cursor: pointer; }
.lc-check input { width: 20px; height: 20px; accent-color: var(--azul); flex: none; }
.lc-tipo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.lc-tipo legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lc-tipo label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border-radius: 14px; border: 1.5px solid #dfe3ee; cursor: pointer; }
.lc-tipo label:has(input:checked) { border-color: var(--azul); background: #f3f6ff; }
.lc-tipo input { margin-top: 3px; accent-color: var(--azul); }
.lc-tipo span { display: grid; gap: 2px; }
.lc-tipo b { font-size: 14.5px; }
.lc-tipo small { font-size: 12.5px; color: var(--txt2); line-height: 1.35; }
.lc-calc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--lima); font-size: 13.5px; font-weight: 600; }
.lc-calc b { font-size: 20px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-det summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--azul); padding: 10px 0 4px; }
.lc-det[open] { display: grid; gap: 10px; }
.lc-pe-form { position: sticky; bottom: 8px; z-index: 2; display: flex; justify-content: flex-end; }
.lc-pe-form .bt { box-shadow: 0 10px 30px -10px rgba(10, 16, 51, 0.45); }
.lc-arquivo { cursor: pointer; }

/* folha (janela sobre a tela) */
.lc-veu { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 51, 0.42); animation: lc-veu 200ms ease both; }
.lc-folha { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; padding: 0 20px 20px; border-radius: 24px; background: var(--papel); box-shadow: 0 30px 80px -20px rgba(4, 10, 50, 0.5); animation: lc-folha 240ms var(--ease-out) both; container-type: inline-size; }
.lc-folha-l { width: min(760px, 100%); }
.lc-folha-t { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px; margin: 0 -20px; padding: 16px 14px 12px 20px; background: var(--papel); border-bottom: 1px solid #eef0f5; }
.lc-folha-t b { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f1f3f8; color: var(--tinta); flex: none; }
.lc-folha-pe { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.lc-folha-pe .bt-g { flex: 1 1 200px; justify-content: center; }
.lc-h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--txt2); margin-top: 4px; }
.lc-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; }
.lc-dl div { display: grid; gap: 2px; min-width: 0; }
.lc-dl dt { font-size: 12px; font-weight: 600; color: var(--txt2); }
.lc-dl dd { margin: 0; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.lc-dl dd small { display: block; font-size: 12.5px; color: var(--txt2); margin-top: 2px; }
.lc-mini { display: grid; border: 1px solid #eef0f5; border-radius: 14px; overflow: hidden; }
.lc-mini li + li { border-top: 1px solid #eef0f5; }
.lc-mini li, .lc-mini li > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; font-size: 13.5px; text-align: left; }
.lc-mini li:has(> button) { padding: 0; }
.lc-mini li > span, .lc-mini li > button > span:first-child { flex: 1; min-width: 0; }
.lc-mini b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .lc-mini li > button:hover { background: #f8f9fc; } }
.lc-fat-topo { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: flex-start; gap: 8px 12px; padding: 16px; border-radius: 18px; background: #0b1024; color: var(--papel); }
.lc-fat-topo > div { display: grid; gap: 2px; }
.lc-fat-topo small { font-size: 13px; color: #aab3d6; }
.lc-fat-topo b { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lc-itens { display: grid; }
.lc-itens li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef0f5; font-size: 14px; }
.lc-itens li span { display: grid; gap: 1px; }
.lc-itens li small { font-size: 12px; color: var(--txt2); }
.lc-itens b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.lc-it-mora { color: var(--pend); }
.lc-it-neg b { color: var(--erro); }
.lc-it-tot { border-bottom: 0 !important; font-size: 16px !important; }
.lc-it-tot b { font-weight: 800; }
.lc-pix { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px dashed #b9c4e8; background: #f6f8ff; }
.lc-pix > span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--azul); }
.lc-pix code { display: block; max-height: 64px; overflow: auto; font-size: 11.5px; line-height: 1.4; word-break: break-all; color: var(--txt2); font-family: ui-monospace, Consolas, monospace; }
.lc-pix .bt { justify-self: start; min-height: 36px; font-size: 13px; }
.lc-partes { display: grid; gap: 10px; }
.lc-parte { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid #e8eaf1; }
.lc-parte > div:first-child { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lc-parte > div:first-child span { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lc-parte > small { font-size: 13px; color: var(--txt2); }
.lc-parte > .bt { justify-self: start; }
@keyframes lc-veu { from { opacity: 0; } }
@keyframes lc-folha { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@media (max-width: 639px) {
  .lc-veu { place-items: end center; padding: 0; }
  .lc-folha { width: 100%; max-height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); animation-name: lc-folha-m; }
  .lc-folha-l { width: 100%; }
  @keyframes lc-folha-m { from { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) { .lc-veu, .lc-folha, .lc-bar i { animation: none; } }

/* portal: a folha e o aviso ficam no <body>, acima do topo do site */
#lc-portal { font-family: var(--sistema); font-size: 15px; line-height: 1.4; font-weight: 400; letter-spacing: -0.005em; color: var(--tinta); }
#lc-portal .lc-veu { z-index: 90; }
#lc-toast { position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 95; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.lc-toast { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 16px; background: #0b1024; color: var(--papel); font-family: var(--sistema); font-size: 14.5px; font-weight: 600; line-height: 1.35; box-shadow: 0 18px 40px -14px rgba(4, 10, 50, 0.6); animation: lc-toast 260ms var(--ease-out) both; }
.lc-toast svg { flex: none; color: var(--lima); }
@keyframes lc-toast { from { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .lc-toast { animation: none; } }
.lc-card { container-type: inline-size; }
.lc-num b { white-space: nowrap; overflow-wrap: normal; font-size: clamp(15px, 7.4cqw, 20px); }

/* =====================================================================
   App da New State sobre o visual do DesafogAI (o mesmo do showroom).
   Só entram aqui: tela de entrada, diálogos da conta e ajustes do app real.
   ===================================================================== */
html, body { background: var(--app-fundo); }
body { font-family: var(--sistema); font-size: 15px; line-height: 1.4; font-weight: 400; letter-spacing: -0.005em; color: var(--tinta); min-height: 100dvh; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
html[data-app], html[data-app] body { height: 100%; overflow: hidden; }

/* app */
.app-real { height: 100dvh; }
.app-real .app-emp { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.app-real .app-emp img { height: 44px; width: auto; max-width: 62px; border: 0; border-radius: 8px; }
.app-real .app-emp > div { display: grid; gap: 4px; }
.app-real .app-emp b { font-size: 15px; line-height: 1.2; white-space: normal; }
.app-real .app-acao span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-status { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 4px; font-size: 12px; font-weight: 600; color: var(--txt2); }
.sr-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #c3c8d6; }
.sr-status[data-tipo="ok"]::before { background: var(--ok); }
.sr-status[data-tipo="erro"] { color: var(--erro); }
.sr-status[data-tipo="erro"]::before { background: var(--erro); }
@media (max-width: 1023px) and (min-width: 760px) {
  .app-real .app-emp { grid-template-columns: 1fr; justify-items: center; }
  .app-real .app-emp .st::before { content: 'Online'; }
  .sr-status { justify-content: center; padding: 0 0 4px; font-size: 0; }
}
.kp[data-s] { cursor: pointer; transition: border-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .kp[data-s]:hover { border-color: rgba(1, 49, 205, 0.35); } }

/* atendimento real */
.sr-ligar { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.sr-ligar-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--lima); color: var(--tinta); flex: none; }
.sr-ligar h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.sr-ligar p { color: var(--txt2); margin: 4px 0 14px; max-width: 60ch; }
.msg-h { display: block; font-size: 10.5px; opacity: 0.65; margin-top: 3px; text-align: right; }
.sr-resp { flex-wrap: nowrap; align-items: flex-end; }
.sr-resp textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 140px; padding: 10px 13px; border-radius: 14px; border: 1.5px solid #dfe3ee; resize: none; field-sizing: content; font-size: 15px; line-height: 1.35; }
.sr-resp textarea:focus { outline: none; border-color: var(--azul); }
.sr-resp .bt { min-width: 44px; min-height: 42px; padding: 0 12px; }
.sr-acoes { display: flex; flex-wrap: wrap; gap: 6px; }

/* folhas do app real */
#sr-portal { font-family: var(--sistema); font-size: 15px; line-height: 1.4; font-weight: 400; letter-spacing: -0.005em; color: var(--tinta); }
#sr-portal .lc-veu, #lc-portal .lc-veu { z-index: 90; }
.sr-card-topo { padding: 0; }
.lc-folha .card-etapas { margin-top: -4px; }
.lc-folha .linha-tempo small { color: var(--txt2); font-size: 12px; }
.sr-nota { display: flex; gap: 8px; }
.sr-nota input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #dfe3ee; }
.sr-nota input:focus { outline: none; border-color: var(--azul); }
.sr-custos { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; }
.sr-custos input { min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #dfe3ee; min-width: 0; }
.lc-folha .mais-lista { padding: 0; }
.lc-folha .mais-lista button { width: 100%; }

/* entrada */
.ns-entrada { min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; background: var(--azul); }
.ns-cartao { width: min(420px, 100%); display: grid; gap: 14px; padding: 28px 26px 22px; border-radius: 28px; background: var(--papel); box-shadow: 0 40px 90px -40px rgba(4, 10, 50, 0.7); }
.ns-logo-g { width: 200px; height: auto; justify-self: center; margin-bottom: 2px; }
.ns-cartao h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; text-align: center; }
.ns-sub { text-align: center; color: var(--txt2); font-size: 14px; margin-top: -8px; }
.ns-erro { padding: 10px 12px; border-radius: 12px; background: var(--erro-f); color: var(--erro); font-size: 13.5px; font-weight: 600; }
.ns-cartao .bt-g { min-height: 50px; font-size: 15.5px; }
.ns-rodape { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: var(--txt2); }

/* diálogos da conta */
.ns-dlg { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0 20px 20px; border: 0; border-radius: 24px; background: var(--papel); box-shadow: 0 30px 80px -20px rgba(4, 10, 50, 0.5); font-family: var(--sistema); }
.ns-dlg::backdrop { background: rgba(4, 10, 50, 0.45); }
.ns-dlg .lc-folha-t { margin: 0 -20px 14px; }
.ns-dlg-c { display: grid; gap: 14px; }
.ns-dlg .lc-mini li { justify-content: space-between; }
.ns-dlg .mais-lista { padding: 0; }
.ns-sec { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--sep); }
.ns-sec .lc-h4 { display: flex; align-items: center; gap: 7px; color: var(--tinta); }
.ns-zap { font-size: 13.5px; font-weight: 600; color: var(--txt2); }
.ns-qr { display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--sep); }
.ns-qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.lc-pix code { white-space: pre-wrap; }

/* =====================================================================
   Paleta New State · 60-30-10 a partir da logo
   60% neutro quente claro (fundo e cartões) · 30% preto da logo (menu,
   texto, botões escuros, blocos de destaque) · 10% dourado (ação principal,
   item ativo, gráficos e selos).
   ===================================================================== */
:root {
  --ns-preto: #131211;
  --ns-preto-2: #1d1b18;
  --ns-ouro: #d4ab3c;
  --ns-ouro-escuro: #7a5e12;   /* dourado para texto sobre claro (contraste 5,9:1) */
  --ns-ouro-claro: #f4ecd8;
  --ns-areia: #f5f3ee;
  --ns-linha: #e7e2d8;
  --azul: var(--ns-preto);
  --azul-fundo: #000;
  --lima: var(--ns-ouro);
  --tinta: var(--ns-preto);
  --txt2: #6a6457;
  --sep: rgba(19, 18, 17, 0.1);
  --app-fundo: var(--ns-areia);
}
.app, .vista-app { background: var(--ns-areia); }
.cd, .cx, .lc-lista, .lc-abas { border-color: var(--ns-linha); }

/* 30%: menu lateral preto, com a logo para fundo escuro */
.app-real .app-lado { background: var(--ns-preto); border-right-color: #000; }
.app-real .app-emp b { color: #f4efe3; }
.app-real .app-nav button { color: #cfc8b8; }
.app-real .app-nav button svg { color: #9c8b5c; }
.app-real .app-nav button[aria-current="page"] { background: var(--ns-preto-2); color: #fff; box-shadow: inset 3px 0 0 var(--ns-ouro); }
.app-real .app-nav button[aria-current="page"] svg { color: var(--ns-ouro); }
.app-real .app-lado-pe { border-top-color: rgba(255, 255, 255, 0.1); }
.app-real .app-acao { color: #cfc8b8; }
.app-real .sr-status { color: #a39b89; }
.app-real .ponto { background: var(--ns-ouro); box-shadow: 0 0 0 2px var(--ns-preto); }
@media (hover: hover) and (pointer: fine) { .app-real .app-nav button:not([aria-current]):hover, .app-real .app-acao:hover { background: rgba(255, 255, 255, 0.06); color: #fff; } }
.app-real .app-emp .st-ia { background: rgba(212, 171, 60, 0.16); color: var(--ns-ouro); }

/* botões e selos */
.bt { background: #ece7dc; color: var(--ns-preto); }
.bt-cheio { background: var(--ns-preto); color: #fff; }
.bt-lima, .app-acao-prop { background: var(--ns-ouro); color: var(--ns-preto); }
.bt-quieto { background: rgba(19, 18, 17, 0.06); }
@media (hover: hover) and (pointer: fine) { .bt:hover { background: #e2dbcc; } .bt-lima:hover { background: #c99f2f; } .bt-cheio:hover { background: #000; } }
.st-azul { background: var(--ns-ouro-claro); color: var(--ns-ouro-escuro); }
.st-ia { background: var(--ns-ouro); color: var(--ns-preto); }
.ln-ic, .kp-ic, .lc-card-ic, .lc-l-ic, .lc-linha .avatar, .rank .avatar, .pessoa .avatar, .card-topo .avatar, .at-chat-t .avatar { background: var(--ns-ouro-claro); color: var(--ns-ouro-escuro); }
.lc-card-ic svg, .cd > h3 svg, .at-ficha h3 svg { color: var(--ns-ouro-escuro); }
.ic-ia { background: var(--ns-ouro); color: var(--ns-preto); }
.chave[aria-checked="true"] { background: var(--ns-preto); }
.seg2 button[aria-pressed="true"] { color: var(--ns-preto); }
.lc-abas button[aria-current="page"] { background: var(--ns-preto); color: #fff; }
.lc-abas button[aria-current="page"] svg { color: var(--ns-ouro); }
.lc-faixa-azul { background: var(--ns-ouro-claro); color: var(--ns-ouro-escuro); }
.lc-nota { background: #f7f3ea; }
.lc-nota > svg { color: var(--ns-ouro-escuro); }
.lc-pix { background: #fbf8f0; border-color: #d8c79a; }
.lc-pix > span { color: var(--ns-ouro-escuro); }
.lc-tipo label:has(input:checked) { background: #fbf6e8; border-color: var(--ns-preto); }
.lc-campo input:focus, .lc-campo select:focus, .lc-campo textarea:focus, .sr-resp textarea:focus, .sr-nota input:focus { border-color: var(--ns-preto); box-shadow: 0 0 0 3px rgba(212, 171, 60, 0.28); }
:focus-visible { outline-color: var(--ns-ouro-escuro); }
.lc-link { color: var(--ns-ouro-escuro); }

/* blocos de destaque em preto, números em dourado (10%) */
.cd-lima { background: var(--ns-preto); color: #f4efe3; }
.cd-lima b { color: var(--ns-ouro); }
.cd-lima li { border-left-color: rgba(255, 255, 255, 0.14); }
.cd-lima small, .cd-lima span { color: #bdb5a3; opacity: 1; }
.cd-vivo, .lc-fat-topo, .lc-toast, .aviso { background: var(--ns-preto); }
.lc-fat-topo small { color: #bdb5a3; }
.lc-calc { background: var(--ns-ouro-claro); }
.lc-calc b { color: var(--ns-preto); }
.lc-regua li:nth-child(3) { background: var(--ns-preto); }
.lc-regua li:nth-child(3) small { color: #cbbf9f; }
.lc-rel-nav button[aria-current="page"] { background: var(--ns-preto); border-color: var(--ns-preto); }

/* gráficos */
.graf-linha { stroke: var(--ns-ouro-escuro); }
.graf-pt { stroke: var(--ns-ouro-escuro); }
.graf-pt-hoje { fill: var(--ns-ouro); stroke: var(--ns-preto); }
.barra-f i, .im-meter i { background: var(--ns-preto); }
.lc-bar i { background: var(--ns-preto); }
.lc-bar i.lc-adm { background: var(--ns-ouro); }
.lc-l1 { background: var(--ns-preto); }
.lc-l2 { background: var(--ns-ouro); }
.im-spark polyline { stroke: var(--ns-ouro-escuro); }
.rank li:first-child .rk-pos { background: var(--ns-ouro); color: var(--ns-preto); }
.numero .moeda { color: #b2aa98; }

/* CRM, agenda, imóveis, chat */
.cartao { box-shadow: 0 1px 2px rgba(19, 18, 17, 0.08); }
@media (hover: hover) and (pointer: fine) { .at-item:hover, .cartao:hover { border-color: rgba(122, 94, 18, 0.4); } }
.at-item[aria-current="true"] { border-color: var(--ns-preto); }
.card-etapas li.feita, .card-etapas li.atual { border-color: var(--ns-ouro); }
.etapas li.feita::before { background: var(--ns-preto); }
.etapas li.atual::before { background: var(--ns-ouro); }
.linha-tempo li::before { background: var(--ns-ouro-escuro); }
.msg-a { background: var(--ns-preto); }
.cal-dias b.hoje { color: var(--ns-preto); }
.cal-dias b.hoje small { background: var(--ns-preto); color: var(--ns-ouro); }
.cal-col.hoje { background: rgba(212, 171, 60, 0.1); }
.ev-ok { background: var(--ns-ouro-claro); border-color: var(--ns-ouro-escuro); color: var(--ns-ouro-escuro); }
.ev-env { background: #ece7dc; border-color: #b2aa98; color: var(--ns-preto); }
.ficha-arte { background: linear-gradient(180deg, #2a2620, var(--ns-preto)); }
.ficha-arte .st-pend { background: var(--ns-ouro); color: var(--ns-preto); }

/* entrada: fundo preto da logo */
.ns-entrada { background: radial-gradient(900px 500px at 50% -10%, #2a2620 0%, var(--ns-preto) 60%); }
.ns-logo-g { width: 220px; }
.ns-cartao { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8); }
.ns-dlg::backdrop, .lc-veu { background: rgba(10, 9, 8, 0.55); }

/* conectar WhatsApp (QR) e integrações */
.sr-qr-card { display: grid; gap: 24px; padding: 24px; align-items: center; }
@container (min-width: 720px) { .sr-qr-card { grid-template-columns: minmax(0, 1fr) 300px; } }
.sr-qr-passos h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 14px; }
.sr-qr-passos ol { display: grid; gap: 12px; margin-bottom: 14px; }
.sr-qr-passos li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.sr-qr-passos li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ns-preto); color: var(--ns-ouro); font-size: 14px; font-weight: 700; flex: none; }
.sr-qr { display: grid; justify-items: center; gap: 8px; padding: 18px; border-radius: 20px; background: var(--papel); border: 1px solid var(--ns-linha); min-height: 300px; align-content: center; }
.sr-qr img { width: 264px; height: 264px; image-rendering: pixelated; }
.sr-qr small { font-size: 12px; color: var(--txt2); }
.sr-qr-vazio { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--txt2); max-width: 240px; }
.sr-gira { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ns-linha); border-top-color: var(--ns-ouro); animation: girar 900ms linear infinite; }
.sr-int { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.sr-int > div { flex: 1 1 220px; display: grid; gap: 6px; }
.sr-int h3 { font-size: 16px; font-weight: 700; }
.sr-int p { font-size: 13.5px; color: var(--txt2); }
.sr-int-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--ns-preto); color: var(--ns-ouro); flex: none; }
.sr-int a { color: var(--ns-ouro-escuro); }
.app-real .app-emp img { background: transparent; border: 0; }
.im-meter { background: #ece7dc; }
