/* S Máxima Ponto: mesma base visual do sistema do condomínio (tema escuro, laranja #FF7A00), mobile-first 390x844 */
:root {
  --fundo: #0f0f10;
  --fundo-2: #17181a;
  --sup: #1b1c1f;
  --sup-2: #232428;
  --sup-3: #2c2e33;
  --sup-grad: linear-gradient(180deg, #222327 0%, #1a1b1e 100%);
  --borda: rgba(255, 255, 255, .07);
  --borda-2: rgba(255, 255, 255, .13);
  --brilho: inset 0 1px 0 rgba(255, 255, 255, .05);
  --laranja: #ff7a00;
  --laranja-claro: #ff9a3d;
  --laranja-suave: rgba(255, 122, 0, .14);
  --prata: #c9ced6;
  --texto: #f5f5f6;
  --texto-2: #b4b7be;
  --texto-3: #959aa3;
  --verde: #2fd47a;
  --verde-suave: rgba(47, 212, 122, .14);
  --vermelho: #ff5a5f;
  --vermelho-suave: rgba(255, 90, 95, .14);
  --azul: #6cb2ff;
  --azul-suave: rgba(108, 178, 255, .13);
  --f-titulo: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --raio: 18px;
  --raio-p: 12px;
  --topo-h: 60px;
  --abas-h: 66px;
  --faixa-h: 22px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .55);
  --seg-baixo: env(safe-area-inset-bottom, 0px);
  --seg-cima: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; background: #0a0a0b; }
body {
  font-family: var(--f-texto); font-size: 15px; line-height: 1.45; color: var(--texto);
  background: radial-gradient(1200px 600px at 50% -10%, #1d1a17 0%, #0a0a0b 60%);
  -webkit-font-smoothing: antialiased; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex: none; }
p svg, .mini svg, .tag svg, h4 svg { display: inline-block; vertical-align: -2px; margin-right: 2px; }
.lgpd svg, .card-ico svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 2px; }

/* ---------- moldura do app ---------- */
.app {
  position: relative; height: 100dvh; max-width: 480px; margin: 0 auto;
  background: var(--fundo); overflow: hidden; display: flex; flex-direction: column;
}
@media (min-width: 560px) {
  .app { height: min(100dvh - 32px, 900px); margin-top: 16px; border-radius: 34px;
         border: 1px solid var(--borda-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); max-width: 410px; }
}

.demo-faixa {
  height: calc(var(--faixa-h) + var(--seg-cima)); padding-top: var(--seg-cima);
  display: flex; align-items: center; justify-content: center; flex: none;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: #1b0c00; background: repeating-linear-gradient(135deg, var(--laranja) 0 14px, #ff8c1f 14px 28px);
}

/* ---------- topo ---------- */
.topo {
  height: var(--topo-h); flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 12px 0 16px; border-bottom: 1px solid var(--borda);
  background: linear-gradient(180deg, #141416, var(--fundo));
}
.topo-logo { width: 40px; height: 28px; object-fit: contain; border-radius: 6px; }
.imovel-btn {
  flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; background: none; border: 0; padding: 2px 6px; border-radius: 10px; text-align: left;
}
.imovel-btn:active { background: var(--sup); }
.imovel-nome { font-family: var(--f-titulo); font-size: 19px; font-weight: 700; letter-spacing: .02em; line-height: 1.05;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.imovel-unid { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--texto-2); }
.icone-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--borda); background: var(--sup);
}
.icone-btn .ponto { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--laranja); box-shadow: 0 0 0 2px var(--sup); }
.icone-btn .ponto.off { display: none; }

/* ---------- área das telas ---------- */
.tela {
  flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; outline: none;
  padding: 18px 16px calc(var(--abas-h) + var(--seg-baixo) + 24px);
  overscroll-behavior: contain;
}
.tela.sem-abas { padding-bottom: calc(24px + var(--seg-baixo)); }
.entra { animation: entra .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- abas ---------- */
.abas {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--abas-h) + var(--seg-baixo)); padding-bottom: var(--seg-baixo);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(17, 17, 19, .94); box-shadow: 0 -8px 24px rgba(0,0,0,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--borda);
}
.abas a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--texto-3); font-size: 10.5px; min-height: 44px; }
.abas a b { font-weight: 600; }
.abas a.ativa { color: var(--laranja); }
.abas a.ativa svg { filter: drop-shadow(0 0 6px rgba(255,122,0,.55)); }
.abas a.ativa::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--laranja); }
.aba-badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--laranja); color: #160900; font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.aba-badge.off { display: none; }

/* ---------- tipografia / blocos ---------- */
.ola { font-size: 13px; color: var(--texto-2); }
.titulo-g { font-family: var(--f-titulo); font-size: 30px; font-weight: 700; line-height: 1.02; letter-spacing: .01em; margin-top: 2px; }
.titulo-g em { font-style: normal; color: var(--laranja); }
.secao { margin-top: 24px; }
.secao-tit { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.secao-tit h2 { font-family: var(--f-titulo); font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.secao-tit a, .link { color: var(--laranja); font-size: 13px; font-weight: 600; background: none; border: 0; padding: 8px 0; min-height: 44px; }
.cab-pagina { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px -8px; }
.cab-pagina h1 { font-family: var(--f-titulo); font-size: 26px; font-weight: 700; letter-spacing: .01em; }
.voltar { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--texto); }
.voltar:active { background: var(--sup); }
.sub { color: var(--texto-2); font-size: 13.5px; }
.mini { font-size: 12px; color: var(--texto-3); }

.card {
  position: relative; background: var(--sup-grad); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 16px; overflow: hidden; box-shadow: var(--brilho), 0 6px 18px rgba(0,0,0,.28);
}
.card + .card { margin-top: 10px; }
a.card, button.card { display: block; width: 100%; text-align: left; transition: transform .15s, border-color .15s; }
a.card:active, button.card:active { transform: scale(.985); }
.card-linha { display: flex; gap: 12px; align-items: center; }
.card-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--sup-3); color: var(--texto); }
.card-ico.lar { background: var(--laranja-suave); color: var(--laranja); }
.card-ico.ver { background: var(--verde-suave); color: var(--verde); }
.card-ico.azu { background: var(--azul-suave); color: var(--azul); }
.card-ico.verm { background: var(--vermelho-suave); color: var(--vermelho); }
.card-txt { flex: 1; min-width: 0; }
.card-txt h3 { font-size: 15px; font-weight: 600; line-height: 1.25; }
.card-txt p { font-size: 13px; color: var(--texto-2); margin-top: 2px; }
.seta { color: var(--texto-3); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 999px; background: var(--sup-3); color: var(--texto-2); white-space: nowrap; }
.tag.lar { background: var(--laranja-suave); color: var(--laranja-claro); }
.tag.ver { background: var(--verde-suave); color: var(--verde); }
.tag.verm { background: var(--vermelho-suave); color: var(--vermelho); }
.tag.azu { background: var(--azul-suave); color: var(--azul); }

/* cartão destaque: visita no portão */
.card-visita {
  border-color: rgba(255, 122, 0, .55);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,122,0,.22), rgba(255,122,0,.04) 55%), var(--sup-grad);
  box-shadow: 0 0 0 1px rgba(255,122,0,.15), 0 12px 30px rgba(255,122,0,.12);
}
.pulso { position: relative; }
.pulso::after { content: ""; position: absolute; inset: -4px; border-radius: 18px; border: 2px solid var(--laranja); opacity: 0;
  animation: pulso 1.8s ease-out infinite; pointer-events: none; }
@keyframes pulso { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes pisca { 50% { opacity: .2; } }

/* atalhos */
.atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.atalho { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px 10px; min-height: 84px;
  border-radius: 16px; background: var(--sup); border: 1px solid var(--borda); font-size: 11.5px; font-weight: 500; color: var(--texto-2); text-align: center; }
.atalho span:first-child { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sup-3); color: var(--laranja); }
.atalhos.seis { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.atalhos.seis .atalho { min-height: 96px; padding: 16px 6px 12px; gap: 9px; border-radius: 18px; background: var(--sup-grad);
  box-shadow: var(--brilho), 0 6px 18px rgba(0,0,0,.28); color: var(--texto); font-size: 12.5px; font-weight: 600; line-height: 1.2; justify-content: center; }
.atalhos.seis .atalho span:first-child { width: auto; height: auto; background: none; color: var(--laranja);
  filter: drop-shadow(0 0 8px rgba(255,122,0,.35)); }
.atalho:active { transform: scale(.96); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--borda-2); background: var(--sup-2); font-weight: 600; font-size: 15px; transition: transform .12s, filter .12s; }
.btn:active { transform: scale(.97); }
.btn.pri { background: linear-gradient(180deg, #ff8a1c, var(--laranja)); border-color: transparent; color: #170900;
  box-shadow: 0 8px 22px rgba(255,122,0,.28); }
.btn.ok { background: linear-gradient(180deg, #3ee08a, #22b866); border-color: transparent; color: #04170b; box-shadow: 0 8px 22px rgba(47,212,122,.25); }
.btn.perigo { background: var(--vermelho-suave); border-color: rgba(255,90,95,.35); color: #ffb3b5; }
.btn.fant { background: transparent; }
.btn.bloco { width: 100%; }
.btn.g { min-height: 60px; font-size: 17px; border-radius: 18px; }
.btn.p { min-height: 44px; font-size: 13.5px; padding: 0 12px; border-radius: 12px; }
.btn[disabled] { opacity: 1; pointer-events: none; background: var(--sup-3); border-color: var(--borda); color: var(--texto-3); box-shadow: none; }

/* ---------- segmentado ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; background: var(--sup);
  border: 1px solid var(--borda); border-radius: 14px; margin-bottom: 14px; }
.seg button { min-height: 40px; border: 0; background: none; border-radius: 10px; color: var(--texto-2); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--sup-3); color: var(--texto); box-shadow: 0 2px 8px rgba(0,0,0,.3); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.quebra { flex-wrap: wrap; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--borda-2); background: var(--sup);
  color: var(--texto-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--laranja-suave); border-color: rgba(255,122,0,.6); color: var(--laranja-claro); }

/* ---------- formulários ---------- */
.campo { display: block; margin-bottom: 12px; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--sup-2); border: 1px solid var(--borda); margin-bottom: 10px; font-size: 13.5px; }
.check input { width: 22px; height: 22px; accent-color: var(--laranja); flex: none; margin: 1px 0 0; }

.alternar { position: relative; width: 50px; height: 30px; flex: none; }
.alternar input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.alternar i { position: absolute; inset: 0; border-radius: 15px; background: var(--sup-3); border: 1px solid var(--borda-2); transition: background .2s; }
.alternar i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #d7dbe2; transition: transform .2s; }
.alternar input:checked + i { background: var(--laranja); border-color: transparent; }
.alternar input:checked + i::after { transform: translateX(20px); background: #fff; }

/* ---------- listas ---------- */
.lista { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.lista > * { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; width: 100%; background: none; border: 0; text-align: left; }
.lista > * + * { border-top: 1px solid var(--borda); }
.lista > a:active, .lista > button:active { background: var(--sup-2); }

/* ---------- linha do tempo ---------- */
.tempo { position: relative; margin: 6px 0 0; padding: 0; list-style: none; }
.tempo li { position: relative; padding: 0 0 18px 34px; }
.tempo li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--borda-2); }
.tempo li:last-child::before { display: none; }
.tempo .bol { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sup-3); border: 2px solid var(--borda-2); }
.tempo li.feito .bol { background: var(--verde); border-color: var(--verde); color: #04170b; }
.tempo li.agora .bol { background: var(--laranja); border-color: var(--laranja); color: #170900; box-shadow: 0 0 0 5px var(--laranja-suave); }
.tempo li.feito::before { background: var(--verde); }
.tempo h4 { margin: 0; font-size: 14px; font-weight: 600; }
.tempo p { margin: 1px 0 0; font-size: 12.5px; color: var(--texto-2); }

/* ---------- câmera ---------- */
.cam { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 16 / 10.5; border: 1px solid var(--borda-2); }
@keyframes aparece { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }

.visit-info { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; }
.avatar { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 700; font-size: 22px;
  background: linear-gradient(135deg, #34363c, #222327); color: var(--prata); flex: none; border: 1px solid var(--borda-2); }
.avatar.p { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
.acoes-portao { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acoes-portao .btn.ok { grid-column: 1 / -1; }
.lgpd { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12px; color: var(--texto-3); line-height: 1.4; }
.lgpd span:first-child { color: var(--texto-2); margin-top: 1px; }

.resultado { text-align: center; padding: 18px 8px 4px; }
.resultado .grande-ico { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 24px; display: grid; place-items: center; background: var(--verde-suave); color: var(--verde); }
.resultado h2 { font-family: var(--f-titulo); font-size: 26px; font-weight: 700; }

/* mosaico */
.mosaico { display: grid; gap: 6px; }

/* ---------- QR ---------- */
.qr-box { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: #fff; width: 220px; margin: 4px auto 12px; }

/* ---------- calendário ---------- */
.cal { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px; }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--texto-2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.regras { list-style: none; margin: 0; padding: 0; }
.regras li { display: flex; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--texto-2); }
.regras li span:first-child { color: var(--laranja); margin-top: 1px; }

/* ---------- boleto ---------- */
.boleto { background: radial-gradient(120% 120% at 100% 0%, rgba(255,122,0,.14), transparent 55%), linear-gradient(140deg, #26272b, #18191c 60%); border: 1px solid var(--borda-2); }

/* ---------- comunicado ---------- */
.comu-corpo { font-size: 14.5px; line-height: 1.6; color: #e4e5e8; }

/* ---------- facial ---------- */
.face-quadro { position: relative; aspect-ratio: 3 / 3.6; max-width: 280px; margin: 0 auto; border-radius: 26px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 45%, #2a2b30, #0c0c0e); border: 1px solid var(--borda-2); }
@keyframes varre { to { top: 84%; } }
.passos { display: flex; gap: 6px; margin-bottom: 14px; }
.passos i { flex: 1; height: 4px; border-radius: 4px; background: var(--sup-3); }
.passos i.on { background: var(--laranja); }

/* ---------- login ---------- */
.login { min-height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 8px 8px; }
.login img { width: 150px; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); filter: drop-shadow(0 10px 30px rgba(255,122,0,.25)); }
.login h1 { font-family: var(--f-titulo); font-size: 30px; font-weight: 700; margin-top: 18px; }
.login .sub { margin-top: 6px; max-width: 290px; }
.bio { width: 104px; height: 104px; border-radius: 34px; margin: 30px auto 14px; display: grid; place-items: center;
  border: 1px solid rgba(255,122,0,.5); background: radial-gradient(circle, rgba(255,122,0,.18), rgba(255,122,0,.03)); color: var(--laranja); }
.bio.lendo { animation: bio 1s ease-in-out infinite; }
.bio.ok { color: var(--verde); border-color: rgba(47,212,122,.6); background: radial-gradient(circle, rgba(47,212,122,.2), transparent); }
@keyframes bio { 50% { box-shadow: 0 0 0 10px rgba(255,122,0,.08), 0 0 40px rgba(255,122,0,.35); } }
.login .rodape { margin-top: auto; padding-top: 24px; font-size: 11.5px; color: var(--texto-3); }

/* ---------- folha (bottom sheet), push, toast ---------- */
.veu { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.68); animation: aparece .2s ease both; }
.folha { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 86%; overflow-y: auto;
  background: #1a1b1e; border-top: 1px solid var(--borda-2); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.6);
  padding: 10px 16px calc(20px + var(--seg-baixo)); animation: sobe .3s cubic-bezier(.2,.8,.2,1) both; }
.folha::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--borda-2); margin: 0 auto 14px; }
.folha h2 { font-family: var(--f-titulo); font-size: 22px; font-weight: 700; margin-bottom: 4px; padding-right: 48px; }
/* ✕ de fechar: sempre visível (fica grudado no topo mesmo rolando a folha) */
.folha-x { position: sticky; top: 0; float: right; z-index: 3; width: 44px; height: 44px; margin: -4px -6px 0 8px; display: grid; place-items: center;
  border-radius: 14px; border: 1px solid var(--borda-2); background: var(--sup-3); color: var(--texto); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.folha-x:hover { background: var(--vermelho-suave); color: #ffc9ca; }
.folha { touch-action: pan-y; transition: transform .12s ease-out; }
.form-erro { margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--vermelho-suave); color: #ffc9ca; border: 1px solid rgba(255,90,95,.45); font-size: 14px; font-weight: 600; }
.enc-prev { display: block; max-width: 100%; max-height: 220px; border-radius: 14px; margin: -4px auto 12px; }
@keyframes sobe { from { transform: translateY(100%); } to { transform: none; } }
.opcao { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px; margin-top: 8px; border-radius: 14px;
  border: 1px solid var(--borda); background: var(--sup-2); text-align: left; }
.opcao.on { border-color: var(--laranja); background: var(--laranja-suave); }
@keyframes desce { from { transform: translateY(-130%); opacity: 0; } to { transform: none; opacity: 1; } }

.toast { position: absolute; left: 50%; bottom: calc(var(--abas-h) + var(--seg-baixo) + 14px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  background: #2a2b30; color: var(--texto); border: 1px solid rgba(255,122,0,.5); font-weight: 600; font-size: 13.5px; padding: 11px 16px; border-radius: 14px;
  max-width: calc(100% - 32px); width: max-content; box-shadow: var(--sombra); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* portão abrindo (cartão de resultado) */
.portao-anim { width: 150px; height: 92px; margin: 4px auto 14px; position: relative; overflow: hidden;
  border-bottom: 3px solid var(--verde); border-left: 5px solid #44464d; border-right: 5px solid #44464d; border-radius: 4px 4px 0 0; }

.vazio { text-align: center; padding: 28px 12px; color: var(--texto-3); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pulso::after { display: none; }
  .face-quadro .varre { top: 50%; }
}

/* ---------- cadastros da unidade (v4) ---------- */
.atalhos.cinco { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.atalhos.cinco .atalho { padding: 12px 2px 10px; font-size: 11px; line-height: 1.2; }
.lista > .cad-linha { align-items: flex-start; }
.cad-linha .avatar, .cad-linha .card-ico, .cad-linha .seta { margin-top: 2px; }
.cad-linha .seta { align-self: center; }
.cad-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cad-tags .tag { white-space: normal; }
.cad-portaria { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11.5px; line-height: 1.3; color: var(--texto-3); }
.cad-portaria svg { flex: none; }
.cad-vencido { opacity: .55; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placa { display: inline-block; font-family: var(--f-titulo); font-size: 17px; font-weight: 700; letter-spacing: .08em; line-height: 1.1;
  background: #f2f4f8; color: #111214; border-radius: 5px; padding: 1px 8px 2px; border-top: 5px solid #1f4fbf; }
.cad-foto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cad-foto .avatar { color: var(--texto-3); }
.cad-foto label.btn { position: relative; cursor: pointer; }
.cad-nota { display: block; margin-top: 6px; }
.so-leitor { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.chips.dias { gap: 6px; }
.chips.dias .chip { min-width: 46px; padding: 0 8px; justify-content: center; }
#cadFacial .opcao { margin-top: 0; }
#cadFacial .btn.p { flex: none; }

/* roteiro de teste e sugestão */
.roteiro { border-color: rgba(255,122,0,.35); }

/* ---------- tema escuro premium (v5): destaque da home ---------- */
.hero { position: relative; display: grid; place-items: center; margin: -6px 0 2px; }
.hero::before { content: ""; position: absolute; left: 50%; top: 50%; width: 260px; height: 200px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,122,0,.30), rgba(255,122,0,.08) 55%, transparent 100%); pointer-events: none; }
.hero-escudo { position: relative; width: 132px; height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
  mix-blend-mode: lighten; filter: drop-shadow(0 8px 26px rgba(255,122,0,.35)); }
.protegido { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-top: 4px;
  border-color: rgba(255,122,0,.22);
  background: radial-gradient(120% 160% at 0% 0%, rgba(255,122,0,.12), transparent 60%), var(--sup-grad); }
.prot-ico { color: var(--laranja); flex: none; filter: drop-shadow(0 0 10px rgba(255,122,0,.45)); }
.protegido h3 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.protegido h3 em { font-style: normal; color: var(--laranja); display: block; }
.protegido p { font-size: 13px; color: var(--texto-2); margin-top: 4px; }
.secao-tit h2 { color: var(--texto-2); }
.lista { background: var(--sup-grad); box-shadow: var(--brilho); }
.login img { mix-blend-mode: lighten; filter: drop-shadow(0 10px 34px rgba(255,122,0,.35)); }
.login { background: radial-gradient(260px 220px at 50% 90px, rgba(255,122,0,.16), transparent 70%); }

/* =================================================================== sistema (fase 1) */
html.grande { font-size: 118%; }
html.grande body { font-size: 17.5px; }
html.grande .card-txt h3 { font-size: 17px; }
html.grande .card-txt p, html.grande .sub { font-size: 15px; }
html.grande .campo input, html.grande .campo select, html.grande .campo textarea { font-size: 17px; min-height: 54px; }
.abas.n4 { grid-template-columns: repeat(4, 1fr); }
.abas.n5 { grid-template-columns: repeat(5, 1fr); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--sup-grad); border: 1px solid var(--borda); border-radius: 16px; padding: 14px; box-shadow: var(--brilho); text-align: left; width: 100%; }
.kpi b { display: block; font-family: var(--f-titulo); font-size: 34px; line-height: 1; color: var(--texto); }
.kpi span { display: block; font-size: 12.5px; color: var(--texto-2); margin-top: 6px; }
.kpi.lar b { color: var(--laranja); }
.kpi.ver b { color: var(--verde); }
.resultado-val { border-width: 2px; }
.resultado-val.ok { border-color: rgba(47,212,122,.7); background: radial-gradient(120% 140% at 0% 0%, rgba(47,212,122,.18), transparent 60%), var(--sup-grad); }
.resultado-val.nao { border-color: rgba(255,90,95,.7); background: radial-gradient(120% 140% at 0% 0%, rgba(255,90,95,.18), transparent 60%), var(--sup-grad); }
.resultado-val h3 { font-family: var(--f-titulo); font-size: 28px; line-height: 1.05; }
.qr-img { display: block; width: 220px; height: 220px; margin: 6px auto 10px; background: #fff; border-radius: 16px; padding: 10px; }
.miniatura { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--sup-3); }
.linha-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.linha-acoes .btn { flex: 1 1 auto; }
.item-txt { flex: 1; min-width: 0; }
.item-txt h3 { font-size: 15px; font-weight: 600; line-height: 1.25; }
.item-txt p { font-size: 13px; color: var(--texto-2); margin-top: 2px; overflow-wrap: anywhere; }
.lista > .item { align-items: flex-start; flex-wrap: wrap; }
.aviso-banner { padding: 10px 12px; border-radius: 12px; background: var(--azul-suave); color: #cfe5ff; font-size: 13px; margin-bottom: 12px; }
.aviso-banner.lar { background: var(--laranja-suave); color: var(--laranja-claro); }
.aviso-banner.verm { background: var(--vermelho-suave); color: #ffc9ca; }
.consent { font-size: 13.5px; line-height: 1.55; color: var(--texto-2); background: var(--sup-2); border: 1px solid var(--borda); border-radius: 14px; padding: 14px; }
.consent ul { margin: 8px 0 0; padding-left: 18px; }
.consent li + li { margin-top: 4px; }
.topo-papel { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--laranja); }
.tabela-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela-mini td, .tabela-mini th { padding: 8px 6px; border-bottom: 1px solid var(--borda); text-align: left; vertical-align: top; }
.tabela-mini th { color: var(--texto-3); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.marca-rodape { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: var(--texto-3); font-size: 11.5px; }
.marca-rodape img { width: 26px; height: 18px; object-fit: contain; }
.app.publico .tela { padding-bottom: 24px; }
pre.mono { white-space: pre-wrap; word-break: break-all; font-size: 11px; color: var(--texto-3); margin: 6px 0 0; }

/* ---------- fase 2: chat, votação, reservas ---------- */
.badge-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--laranja);
  color: #170900; font-size: 11.5px; font-weight: 700; vertical-align: 1px; margin-left: 2px; }
.atalho { position: relative; }
#diasRes { padding-bottom: 4px; }
.check input[type=radio] { width: 22px; height: 22px; accent-color: var(--laranja); flex: none; margin: 1px 0 0; }
html.grande .bolha p { font-size: 18px; }
html.grande .chat-envio textarea { font-size: 18px; }

/* ---------- fase 4: modo largo (PC), portaria no computador, central de acesso, cadastro facial ---------- */
.bol { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; flex: none; }
.bol.on { background: var(--verde); box-shadow: 0 0 0 3px rgba(47,212,122,.18), 0 0 10px rgba(47,212,122,.6); }
.bol.off { background: var(--vermelho); box-shadow: 0 0 0 3px rgba(255,90,95,.18); }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--borda-2); border-bottom-width: 2px;
  background: var(--sup-3); color: var(--texto-2); font: 600 11px/1.5 var(--f-texto); text-align: center; }
.mono-i { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.erro-txt { color: #ffb3b5; }
.kpis.k4 { grid-template-columns: repeat(2, 1fr); }
.eq-cards { display: grid; gap: 10px; }
.tr-alerta td { background: var(--vermelho-suave); }
details.nice-op { margin: 6px 0 12px; padding: 10px 12px; border: 1px solid var(--borda); border-radius: 12px; background: var(--sup-2); }
details.nice-op summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.consent.grande-c { font-size: 15.5px; }
html.grande .consent.grande-c { font-size: 18px; }

.app.largo { max-width: none; height: 100dvh; margin: 0; border-radius: 0; border: 0; box-shadow: none; }
.app.largo .tela { padding-left: max(16px, calc((100% - 1280px) / 2)); padding-right: max(16px, calc((100% - 1280px) / 2)); }
.app.largo .abas { left: 0; right: 0; margin: 0 auto; width: min(100%, 640px); border-radius: 18px 18px 0 0; border-left: 1px solid var(--borda); border-right: 1px solid var(--borda); }
@media (min-width: 1024px) {
  .app.largo .kpis.k4 { grid-template-columns: repeat(4, 1fr); }
  .app.largo .central-grade { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .app.largo .eq-cards { grid-template-columns: 1fr 1fr; }
  .app.largo .filtros-rel { grid-template-columns: repeat(6, 1fr); align-items: end; }
  .app.largo .filtros-rel .dupla { grid-column: span 2; }
  .app.largo .folha { left: 0; right: 0; margin: 0 auto; bottom: auto; top: 6vh; width: min(620px, 92vw); max-height: 88vh;
    border-radius: 22px; border: 1px solid var(--borda-2); animation: aparece .2s ease both; }
  .app.largo .folha::before { display: none; }
}

/* portaria no computador: central de operação */
.app.consola .topo, .app.consola .abas { display: none !important; }
.app.consola .tela { padding: 0; overflow: hidden; }
.app.consola .toast { bottom: 54px; }
.cp { position: relative; zoom: var(--zoom-consola, 1); height: calc(100dvh / var(--zoom-consola, 1)); display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 12px 14px 0; }
@keyframes piscaCp { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 4px var(--laranja), 0 0 24px rgba(255,122,0,.5); } }

/* cadastro facial com guia de enquadramento */
.passos { display: flex; gap: 6px; margin: -4px 0 12px; }
.passos i { flex: 1; height: 4px; border-radius: 2px; background: var(--sup-3); }
.passos i.on { background: var(--laranja); }
.face-cam { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; margin: 12px auto 10px; max-width: 520px; border: 1px solid var(--borda-2); }
.face-cam video, .face-cam img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.face-cam img { transform: none; }
.face-guia { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(ellipse 34% 30% at 50% 44%, transparent 98%, rgba(0,0,0,.55) 100%); }
.face-guia .oval { width: 66%; height: 58%; margin-top: -12%; border-radius: 50%; border: 3px dashed rgba(255,255,255,.85); box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.face-qual { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: rgba(15,15,16,.82); backdrop-filter: blur(6px); text-align: center; }
.face-qual.ok { color: var(--verde); border: 1px solid rgba(47,212,122,.5); }
.face-qual.ruim { color: var(--laranja-claro); border: 1px solid rgba(255,122,0,.5); }
@media (max-width: 1279px) { .cp-grade { grid-template-columns: 1.1fr 1fr 1.15fr; } .cp-grade > .cp-col:nth-child(4) { display: none; } }
@media (max-width: 1100px) { .cp-ferr .btn:nth-child(3) { display: none; } }
.badge-n:empty { display: none; }
#cpEnc2 { margin-bottom: 10px; }
.eq-cards .card + .card { margin-top: 0; }

/* =================================================================== fase 5: foto facial pelo síndico + painel largo no PC */
.menu-lat { display: none; }
.face-qual:not(.ok):not(.ruim) { color: var(--texto-2); }
.formas { display: grid; gap: 0; }
.formas .check { margin-bottom: 8px; }
.check.declara { border-color: rgba(255,122,0,.45); background: var(--laranja-suave); color: var(--texto); }
.check.declara.falta { border-color: var(--vermelho); box-shadow: 0 0 0 3px var(--vermelho-suave); }
.ok-txt { color: var(--verde); font-weight: 600; }
/* lote */
.lt-bandeja-tit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
/* tabelas largas (PC) */
.tabela-larga { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--sup-grad); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.tabela-larga th, .tabela-larga td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--borda); }
.tabela-larga tbody tr:last-child td { border-bottom: 0; }
.tabela-larga th { position: sticky; top: 0; z-index: 1; background: var(--sup-2); color: var(--texto-3); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.tabela-larga tbody tr:hover td { background: rgba(255,255,255,.025); }
.tabela-larga tr.sel td { background: var(--laranja-suave); }
.tabela-larga td.ck, .tabela-larga th.ck { width: 40px; }
.tabela-larga input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--laranja); }
.tl-pessoa { display: flex; align-items: center; gap: 10px; }
.tl-pessoa .miniatura { width: 40px; height: 40px; border-radius: 10px; }
.tl-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tl-acoes .btn.p { min-height: 36px; font-size: 13px; padding: 0 10px; }
.tabela-larga td:last-child { text-align: right; }
.painel-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

@media (min-width: 1024px) {
  .app.lateral { max-width: none; height: 100dvh; margin: 0; border-radius: 0; border: 0; box-shadow: none; padding-left: 244px; }
  .app.lateral > .menu-lat { display: flex; flex-direction: column; position: absolute; left: 0; top: 0; bottom: 0; width: 244px; z-index: 35;
    background: linear-gradient(180deg, #151517, #101012); border-right: 1px solid var(--borda); padding: 16px 12px; overflow-y: auto; }
  .app.lateral > .menu-lat[hidden] { display: none !important; }
  .app.lateral .abas { display: none !important; }
  .app.lateral .topo-logo { display: none; }
  .app.lateral .tela, .app.lateral.largo .tela { padding: 24px 32px 48px; }
  .app.lateral .toast { bottom: 28px; left: calc(50% + 122px); }
  .app.lateral .folha, .app.largo .folha { left: 0; right: 0; margin: 0 auto; bottom: auto; top: 5vh; width: min(760px, 92vw); max-height: 90vh;
    border-radius: 22px; border: 1px solid var(--borda-2); animation: aparece .2s ease both; }
  .app.lateral .folha::before { display: none; }
  /* formulário com 3 ou mais campos vira 2 colunas (textarea, checks, avisos e botões ocupam a linha toda) */
  .app.lateral .folha form:has(> label.campo ~ label.campo ~ label.campo) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
  .app.lateral .folha form:has(> label.campo ~ label.campo ~ label.campo) > :is(.check, .btn, .dupla, details, p, div, .aviso-banner, img, h3, ul, label.campo:has(textarea), button) { grid-column: 1 / -1; }
  .lat-marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; border-bottom: 1px solid var(--borda); margin-bottom: 10px; }
  .lat-marca img { width: 44px; height: 31px; object-fit: contain; }
  .lat-marca b { display: block; font-family: var(--f-titulo); font-size: 20px; letter-spacing: .04em; }
  .lat-marca small { color: var(--laranja); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .lat-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .lat-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 12px; color: var(--texto-2); font-weight: 500; font-size: 14.5px; }
  .lat-nav a:hover { background: var(--sup); color: var(--texto); }
  .lat-nav a.sub { min-height: 34px; padding-left: 44px; font-size: 13.5px; }
  .lat-nav a.sub svg { width: 16px; height: 16px; margin-left: -28px; }
  .lat-nav a.ativa { background: var(--laranja-suave); color: var(--laranja-claro); font-weight: 600; box-shadow: inset 3px 0 0 var(--laranja); }
  .lat-rodape { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--borda); margin-top: 10px; }
  .lat-rodape b { display: block; font-size: 13px; } .lat-rodape small { display: block; font-size: 11.5px; color: var(--texto-3); }
  /* painel e listas aproveitando a largura */
  .app.lateral .kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .app.lateral .kpis.k4 { grid-template-columns: repeat(4, 1fr); }
  .app.lateral .titulo-g { font-size: 38px; }
  .app.lateral .painel-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .app.lateral .painel-grade .kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .app.lateral .atalhos { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .app.lateral .cab-pagina h1 { font-size: 30px; }
  .app.lateral .chips { flex-wrap: wrap; }
  .app.lateral .fx-grade { grid-template-columns: minmax(340px, .9fr) 1.1fr; align-items: start; }
  .app.lateral .fx-grade.lote { grid-template-columns: 1.25fr .9fr; }
  .app.lateral .fx-rodape { grid-column: 1 / -1; position: static; max-width: 560px; justify-self: end; width: 100%; }
  .app.lateral .fx-prev { max-width: 340px; }
  .app.lateral .lt-pessoas { grid-template-columns: 1fr; }
  .app.lateral .lista > .item .linha-acoes .btn { flex: 0 0 auto; }
  /* portaria do computador (fase 4) fica como estava: sem menu lateral */
  .app.lateral.consola { padding-left: 0; }
  .app.lateral.consola > .menu-lat { display: none !important; }
}

/* avisos no celular (push): cartão em destaque no Início do morador e janela logo após o login */
.push-card { margin-top: 16px; }
.passos-ios { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--texto-2); line-height: 1.5; }
.passos-ios li + li { margin-top: 4px; }

/* cadastro facial da portaria no PC: lista à esquerda, consentimento/câmera à direita */
.cf-tit { font-family: var(--f-titulo); font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.lista > .item.cf-sel { background: var(--laranja-suave); box-shadow: inset 3px 0 0 var(--laranja); }
@media (min-width: 1024px) {
  .cf-grade { display: grid; grid-template-columns: minmax(340px, .9fr) 1.3fr; gap: 20px; align-items: start; }
  .cf-lista #cfRes { max-height: calc(100dvh - 330px); overflow-y: auto; border-radius: var(--raio); }
  .cf-painel { position: sticky; top: 0; min-height: 420px; }
  .cf-painel .face-cam { max-width: 420px; }
}

/* =================================================================== S Máxima Ponto */
/* regra de ouro: nada decorativo cobre botão */
.pulso::after, .hero::before, .home-cab::before, .home-cab::after, .relogio-card::before, .relogio-card::after,
.btn-bater::before, .btn-bater::after, .face-guia, .cam-moldura, .cam-hora { pointer-events: none; }
.offline-faixa { flex: none; padding: 6px 12px; text-align: center; font-size: 12px; font-weight: 600; background: #3a2a00; color: #ffd28a; border-bottom: 1px solid rgba(255,122,0,.4); }
.ponto-n { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--laranja);
  color: #170900; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--sup); }
.ponto-n.off { display: none; }
.avatar-topo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden;
  background: var(--sup-3); border: 1px solid var(--borda-2); font-family: var(--f-titulo); font-weight: 700; color: var(--prata); font-size: 15px; }
.avatar-topo img { width: 100%; height: 100%; object-fit: cover; }

/* início do colaborador (estrutura do app de referência, com a nossa marca) */
.home-cab { position: relative; margin: -18px -16px 0; padding: 18px 18px 64px; background: linear-gradient(180deg, #17191d 0%, #1d2026 100%);
  border-bottom: 1px solid var(--borda); overflow: hidden; }
.home-cab::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,122,0,.18), transparent); }
.home-data { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-2); }
.home-ola { font-family: var(--f-titulo); font-size: 32px; font-weight: 700; margin-top: 8px; line-height: 1.05; }
.home-ola em { font-style: normal; color: var(--laranja); }
.home-sub { color: var(--texto-2); font-size: 13.5px; margin-top: 4px; }
.relogio-card { position: relative; margin: -48px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; border-radius: 20px; background: #fff; color: #17191d; box-shadow: 0 14px 34px rgba(0,0,0,.45); z-index: 2; }
.relogio-card small { display: block; font-size: 12.5px; color: #5d6168; font-weight: 600; }
.relogio-card b { display: block; font-family: var(--f-titulo); font-size: 36px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.relogio-card .fonte { font-size: 10.5px; color: #7a7e85; margin-top: 3px; }
.btn-bater { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 20px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #ff8a1c, var(--laranja)); color: #fff; font-weight: 700; font-size: 17px; box-shadow: 0 10px 24px rgba(255,122,0,.38); flex: none; }
.btn-bater:active { transform: scale(.97); }
.btn-bater[disabled] { opacity: .6; }
.proxima { margin-top: 12px; font-size: 13.5px; color: var(--texto-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.proxima b { color: var(--texto); }
.pilulas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pilula { display: inline-flex; flex-direction: column; align-items: center; min-width: 72px; padding: 7px 12px; border-radius: 999px; background: var(--laranja);
  color: #fff; font-weight: 700; font-size: 15px; line-height: 1.1; border: 0; }
.pilula small { font-size: 9.5px; font-weight: 600; opacity: .92; text-transform: uppercase; letter-spacing: .04em; }
.pilula.off { background: #8a5a2b; }
.pilula.fora { box-shadow: 0 0 0 2px var(--vermelho); }
.atalhos2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.atalho2 { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; min-height: 104px; border-radius: 18px; text-align: left;
  background: var(--sup-grad); border: 1px solid var(--borda); box-shadow: var(--brilho); }
.atalho2 > span:first-child { color: var(--laranja); }
.atalho2 b { font-size: 15.5px; }
.atalho2 small { font-size: 12px; color: var(--texto-3); }
.atalho2 .badge-n { position: absolute; top: 12px; right: 12px; }
.atalho2:active { transform: scale(.98); }

/* batida: câmera */
.bater-cam { clear: both; position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 52vh; margin: 8px auto 10px; max-width: 420px; }
.bater-cam video, .bater-cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bater-cam video { transform: scaleX(-1); }
.bater-info { display: grid; gap: 6px; margin: 4px 0 12px; font-size: 13.5px; }
.bater-info div { display: flex; align-items: center; gap: 8px; color: var(--texto-2); }
.bater-info b { color: var(--texto); }
.comprovante { text-align: center; }
.comprovante .grande-ico { width: 84px; height: 84px; margin: 4px auto 10px; border-radius: 28px; display: grid; place-items: center; background: var(--verde-suave); color: var(--verde); }
.comprovante .grande-ico.off { background: var(--laranja-suave); color: var(--laranja); }
.folha .comprovante h2 { padding-right: 0; }
.comp-hora { font-family: var(--f-titulo); font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.comp-dados { text-align: left; margin: 14px 0; background: var(--sup-2); border: 1px solid var(--borda); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; }
.comp-dados div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.comp-dados div + div { border-top: 1px solid var(--borda); }
.comp-dados span { color: var(--texto-3); flex: none; }
.comp-dados b { text-align: right; overflow-wrap: anywhere; }
.hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: var(--texto-2); word-break: break-all; }

/* registros (espelho do colaborador) */
.mes-sel { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mes-sel b { font-family: var(--f-titulo); font-size: 22px; }
.mes-sel .voltar { border: 1px solid var(--borda-2); background: var(--sup); }
.dia-card { display: flex; gap: 12px; align-items: flex-start; }
.dia-num { width: 46px; flex: none; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--sup-3); }
.dia-num b { display: block; font-family: var(--f-titulo); font-size: 22px; line-height: 1; }
.dia-num small { font-size: 10.5px; text-transform: uppercase; color: var(--texto-3); }
.lista > .dia-card.descanso { opacity: .6; }
.marcas-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.marcas-mini span { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 8px; background: var(--laranja-suave); color: var(--laranja-claro); font-variant-numeric: tabular-nums; }
.marcas-mini span.aj { background: var(--azul-suave); color: var(--azul); }
.saldo-pos { color: var(--verde); font-weight: 700; }
.saldo-neg { color: var(--vermelho); font-weight: 700; }
.kpi small { display: block; font-size: 11px; color: var(--texto-3); margin-top: 2px; }
.dia-dir { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--texto-2); flex: none; }

/* gestor */
.sit { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--sup-3); color: var(--texto-3); }
.sit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sit.s-trabalhando { background: var(--verde-suave); color: var(--verde); }
.sit.s-intervalo { background: var(--azul-suave); color: var(--azul); }
.sit.s-encerrado { background: var(--sup-3); color: var(--texto-2); }
.sit.s-atrasado { background: var(--laranja-suave); color: var(--laranja-claro); }
.sit.s-falta { background: var(--vermelho-suave); color: var(--vermelho); }
.sit.s-ausencia { background: var(--azul-suave); color: var(--azul); }
.alerta-lista { display: grid; gap: 8px; margin-top: 12px; }
.alerta-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--sup); border: 1px solid var(--borda); font-size: 13.5px; }
.alerta-item.forte { border-color: rgba(255,90,95,.6); background: var(--vermelho-suave); color: #ffd0d1; font-weight: 600; }
.alerta-item > span:first-child { flex: none; }
.alerta-item .btn { margin-left: auto; flex: none; }
.tabela-rolagem { overflow-x: auto; border-radius: var(--raio); -webkit-overflow-scrolling: touch; max-width: 100%; border: 1px solid var(--borda); }
.tabela-espelho { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 900px; font-variant-numeric: tabular-nums; background: var(--sup); }
.tabela-espelho th { position: sticky; top: 0; background: #3a2a1a; color: #ffd9b3; font-weight: 600; font-size: 11px; padding: 7px 5px; text-align: center; }
.tabela-espelho td { padding: 6px 5px; text-align: center; border-bottom: 1px solid var(--borda); }
.tabela-espelho tr.descanso td { background: rgba(255,255,255,.025); color: var(--texto-3); }
.tabela-espelho td.v { color: #ff9497; }
.tabela-espelho tr.tot td { font-weight: 700; border-top: 2px solid var(--borda-2); color: var(--laranja-claro); }
.tabela-espelho td.st { text-align: left; white-space: nowrap; }
.tabela-espelho tr.clic { cursor: pointer; }
.tabela-espelho tr.clic:hover td { background: rgba(255,122,0,.07); }
.tabela-larga td.num, .tabela-larga th.num { text-align: right; font-variant-numeric: tabular-nums; }
.marc-linha.riscada h3 { text-decoration: line-through; color: var(--texto-3); }
.selfie-mini { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--sup-3); cursor: zoom-in; border: 0; padding: 0; }
.selfie-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.selfies-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.selfie-par { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.selfie-par img, .selfie-par .sem { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: var(--sup-3); display: grid; place-items: center; color: var(--texto-3); font-size: 12px; }
.foto-grande { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 16px; }
.dica { font-size: 12.5px; color: var(--texto-3); margin: -4px 0 12px; display: block; }
.lgpd-box { font-size: 13.5px; line-height: 1.55; color: var(--texto-2); background: var(--sup-2); border: 1px solid var(--borda); border-radius: 14px; padding: 14px; }
.lgpd-box ul { margin: 8px 0 0; padding-left: 18px; }
.lgpd-box li + li { margin-top: 5px; }
.sobre-aviso { border-color: rgba(255,122,0,.45); background: radial-gradient(120% 140% at 0 0, rgba(255,122,0,.16), transparent 60%), var(--sup-grad); }
.abas-int { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; scrollbar-width: none; }
.abas-int::-webkit-scrollbar { display: none; }
.abas-int button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--borda-2); background: var(--sup); color: var(--texto-2); font-weight: 600; font-size: 13px; }
.abas-int button.on { background: var(--laranja-suave); border-color: rgba(255,122,0,.6); color: var(--laranja-claro); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filtros select, .filtros input { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--borda-2); background: var(--sup-2); }
.filtros input[type=search] { flex: 1 1 200px; }

/* totem */
.totem { max-width: 460px; margin: 0 auto; text-align: center; }
.totem-visor { font-family: var(--f-titulo); font-size: 34px; letter-spacing: .12em; min-height: 58px; padding: 8px; border-radius: 14px; background: var(--sup-2); border: 1px solid var(--borda-2); margin: 10px 0; }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.teclado button { min-height: 68px; font-size: 28px; font-weight: 700; border-radius: 18px; border: 1px solid var(--borda-2); background: var(--sup-grad); }
.teclado button:active { background: var(--laranja-suave); }

/* letra grande */
html.grande .relogio-card b { font-size: 42px; }
html.grande .btn-bater { min-height: 72px; font-size: 20px; }
html.grande .pilula { font-size: 18px; }
html.grande .atalho2 b { font-size: 18px; }

/* página pública /instalar */
body.pagina-publica { overflow: auto; }
.ins { max-width: 480px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
.ins-topo { text-align: center; }
.ins-topo img { margin: 0 auto 6px; filter: drop-shadow(0 12px 30px rgba(255,122,0,.25)); }
.ins-topo h1 { font-family: var(--f-titulo); font-size: 34px; line-height: 1.05; }
.ins-topo h1 em { font-style: normal; color: var(--laranja); }
.ins-topo p { color: var(--texto-2); margin-top: 8px; }
.ins-card { background: var(--sup-grad); border: 1px solid var(--borda); border-radius: 20px; padding: 18px; margin-top: 16px; }
.ins-card h2 { font-family: var(--f-titulo); font-size: 22px; margin-bottom: 6px; }
.ins-card p { color: var(--texto-2); font-size: 14px; }
.ins-card .btn { margin-top: 14px; }
.ins-ok { border-color: rgba(47,212,122,.45); }
.ins-qr { text-align: center; }
.ins-qr img { margin: 10px auto 0; background: #fff; border-radius: 16px; padding: 8px; }
.passos-ins { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: p; }
.passos-ins li { counter-increment: p; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--borda); font-size: 14.5px; }
.passos-ins li:first-child { border-top: 0; }
.passos-ins li::before { content: counter(p); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--laranja-suave); color: var(--laranja-claro); font-weight: 700; font-size: 13px; }
.ico-ins { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; background: var(--sup-3); align-items: center; justify-content: center; }
.seg-so { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 18px; background: var(--sup); padding: 4px; border-radius: 14px; border: 1px solid var(--borda); }
.seg-so button { min-height: 44px; border: 0; background: none; border-radius: 10px; color: var(--texto-2); font-weight: 600; }
.seg-so button.on { background: var(--sup-3); color: var(--texto); }
.ins .mini { font-size: 12.5px; color: var(--texto-3); margin-top: 10px; }
.rod { text-align: center; color: var(--texto-3); font-size: 12px; margin-top: 26px; }
.rod a { color: var(--laranja-claro); }

.kpis.k8 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .kpis.k8 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
  .app.lateral .kpis.k8 { grid-template-columns: repeat(8, 1fr); }
  .g-grade { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  .app.lateral .tela { padding: 24px 32px 48px; }
}

.bater-info svg, .ok-txt svg, .erro-txt svg, .aviso-banner svg { display: inline-block; vertical-align: -3px; margin-right: 3px; }
.folha .comprovante, .folha .bater-info, .folha .comp-dados { clear: both; }
.totem img, .login img { mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); }
.alerta-item > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }

/* letra mínima de 14 px no app do colaborador (pedido para vigia à noite) */
body { font-size: 16px; }
.mini, .home-sub, .atalho2 small, .proxima, .kpi span, .kpi small, .dica, .item-txt p, .card-txt p, .marcas-mini span, .lgpd-box { font-size: 14px; }
.sub { font-size: 15px; }
.tag { font-size: 12.5px; }
.pilula small { font-size: 11px; }
.relogio-card .fonte { font-size: 12px; }
.app.lateral .mini, .app.lateral .item-txt p { font-size: 13px; }
.fx-ck { width: 22px; height: 22px; accent-color: var(--laranja); flex: none; margin: 0; }
.campo > span { display: block; font-size: 14px; color: var(--texto-2); margin-bottom: 6px; font-weight: 500; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--borda-2); background: var(--sup-2); outline: none; font-size: 15px; }
.campo textarea { min-height: 90px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--laranja); }
.campo.erro > span { color: var(--vermelho); }
.campo.erro input, .campo.erro textarea, .campo.erro .chip { border-color: var(--vermelho); }
