@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(fontes/barlow-400.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(fontes/barlow-500.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(fontes/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url(fontes/barlow-semi-condensed-600.woff2) format("woff2"); }

:root {
  --anil: #0062ff; --noite: #0a1f44; --alta: #ffb81c;
  --fundo: #eef2f7; --brilho1: rgba(0,98,255,.14); --brilho2: rgba(0,184,169,.09);
  --vidro: rgba(255,255,255,.66); --vidro-forte: rgba(255,255,255,.9); --vidro-borda: rgba(10,31,68,.09);
  --tx: #0a1f44; --tx2: #4d5a70; --tx3: #66738a; --li: rgba(10,31,68,.09); --campo: #fff; --borda-campo: #aab5c6;
  --marca: #0052d6; --anil-suave: rgba(0,98,255,.09);
  --ok: #0a7446; --ok-f: rgba(10,116,70,.11); --alerta: #7d4900; --alerta-f: #ffefcc; --perigo: #b5261a; --perigo-f: #fde8e6;
  --menu: rgba(10,31,68,.95); --menu-tx: #c6d2e6;
  --texto: Barlow, system-ui, sans-serif; --titulo: "Barlow Semi Condensed", Barlow, system-ui, sans-serif;
  --r-etiqueta: 6px; --r-controle: 10px; --r-superficie: 14px; --r-painel: 20px;
  --fs: 17px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #060f22; --brilho1: rgba(0,98,255,.30); --brilho2: rgba(0,200,170,.11);
    --vidro: rgba(16,34,68,.55); --vidro-forte: rgba(24,46,88,.96); --vidro-borda: rgba(160,190,255,.11);
    --tx: #eef2f7; --tx2: #a9b6cb; --tx3: #8593ab; --li: rgba(160,190,255,.10); --campo: #0d1d3a; --borda-campo: #41557c;
    --marca: #7fb0ff; --anil-suave: rgba(127,176,255,.10);
    --ok: #5fd39a; --ok-f: rgba(95,211,154,.12); --alerta: #ffc95c; --alerta-f: rgba(255,201,92,.12); --perigo: #ff9c91; --perigo-f: rgba(255,156,145,.12);
    --menu: rgba(8,20,44,.82); --menu-tx: #a9b6cb;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --fundo: #060f22; --brilho1: rgba(0,98,255,.30); --brilho2: rgba(0,200,170,.11);
    --vidro: rgba(16,34,68,.55); --vidro-forte: rgba(24,46,88,.96); --vidro-borda: rgba(160,190,255,.11);
    --tx: #eef2f7; --tx2: #a9b6cb; --tx3: #8593ab; --li: rgba(160,190,255,.10); --campo: #0d1d3a; --borda-campo: #41557c;
    --marca: #7fb0ff; --anil-suave: rgba(127,176,255,.10);
    --ok: #5fd39a; --ok-f: rgba(95,211,154,.12); --alerta: #ffc95c; --alerta-f: rgba(255,201,92,.12); --perigo: #ff9c91; --perigo-f: rgba(255,156,145,.12);
    --menu: rgba(8,20,44,.82); --menu-tx: #a9b6cb;
    color-scheme: dark;
}
html.letra-grande { --fs: 20px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; background: var(--fundo); color: var(--tx);
  font: 400 var(--fs)/1.45 var(--texto); word-spacing: .08em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.ceu { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ceu i { position: absolute; border-radius: 50%; filter: blur(90px); }
.ceu i:nth-child(1) { width: 70vw; height: 70vw; left: 10vw; top: -36vw; background: var(--brilho1); animation: respira 18s ease-in-out infinite alternate; }
.ceu i:nth-child(2) { width: 50vw; height: 50vw; right: -14vw; bottom: -20vw; background: var(--brilho2); animation: respira 22s ease-in-out infinite alternate-reverse; }
.ceu i:nth-child(3) { width: 38vw; height: 38vw; left: -12vw; bottom: 8vh; background: var(--brilho1); opacity: .5; animation: respira 26s ease-in-out infinite alternate; }
@keyframes respira { to { transform: translate(4vw, 3vw) scale(1.12); } }

b, strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--marca); outline-offset: 2px; }
button, input { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1 { font: 600 calc(var(--fs) * 1.85)/1.1 var(--titulo); margin: 0 0 4px; }
h2 { font: 600 calc(var(--fs) * 1.18)/1.2 var(--titulo); margin: 0; }
.sub { color: var(--tx2); margin: 0 0 18px; }
.peq { font-size: .88em; color: var(--tx2); }

/* Selos */
.selo { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--ok-f); color: var(--ok); border: 0; }
.selo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.selo.vivo::before { animation: pisca 2s ease-in-out infinite; }
@keyframes pisca { 50% { opacity: .35; } }
.selo.ficticio { background: #ffefcc; color: #7d4900; min-height: 34px; }
.selo.alerta { background: var(--alerta-f); color: var(--alerta); }
.selo.perigo { background: var(--perigo-f); color: var(--perigo); }
.selo.neutro { background: var(--li); color: var(--tx2); }
.selo.neutro::before { display: none; }

/* Vidro */
.vidro {
  background: var(--vidro); border: 1px solid var(--vidro-borda); border-radius: var(--r-painel);
  padding: 18px 20px; position: relative; margin-bottom: 14px;
}
.vidro::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.cab-bloco { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 14px;
  border: 0; font-weight: 600; transition: transform .12s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.prim { color: #fff; background: linear-gradient(180deg, #2a7bff, #0058e6); box-shadow: 0 8px 22px rgba(0,98,255,.38); }
.btn.sec { background: var(--anil-suave); color: var(--marca); }
.btn.alta { background: var(--alta); color: var(--noite); }
.btn.fantasma { background: none; color: var(--marca); min-height: 44px; padding: 0 8px; }
.btn.largo { width: 100%; }
.btns { display: flex; flex-direction: column; gap: 10px; }
.btns.lado { flex-direction: row; } .btns.lado .btn { flex: 1; }

/* Estrutura (computador: menu lateral; celular: abas no rodapé) */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 26px;
  background: var(--menu); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border-right: 1px solid var(--vidro-borda); }
.lateral .logo { height: 38px; width: auto; align-self: flex-start; margin-left: 10px; }
.nav { position: relative; display: flex; flex-direction: column; gap: 4px; }
.nav .pilula { position: absolute; inset: 0; border-radius: var(--r-controle); pointer-events: none; background: linear-gradient(180deg, #2a7bff, #0058e6);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 28px rgba(0,98,255,.45); clip-path: inset(0 0 100% 0 round 10px); }
.nav button { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-controle);
  background: none; color: var(--menu-tx); font-weight: 500; text-align: left; transition: color .25s; }
.nav button[aria-current="page"], .nav button:hover { color: #fff; }
.nav svg { width: 22px; height: 22px; flex: none; }
.nav .badge { position: absolute; top: 9px; left: 30px; width: 9px; height: 9px; border-radius: 50%; background: var(--alta); box-shadow: 0 0 0 2px var(--noite); }
.lateral .rodape { margin-top: auto; padding: 0 12px; color: var(--menu-tx); font-size: 14px; line-height: 1.4; }
.lateral .rodape b { color: #fff; display: block; }
.principal { min-width: 0; padding: 22px 32px 60px; max-width: 820px; width: 100%; margin: 0 auto; }
.topo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.topo .espaco, .app-cab .espaco { flex: 1; }
.icone-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--li); color: var(--tx); }
.icone-btn svg { width: 22px; height: 22px; }
.app-cab { display: none; }
.visao[hidden] { display: none; }

/* Contrato (endereço) */
.contrato-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--vidro-borda); background: var(--vidro); border-radius: 999px;
  padding: 6px 14px 6px 10px; min-height: 40px; color: var(--tx2); font-size: .9em; max-width: 100%; }
.contrato-btn svg { width: 18px; height: 18px; flex: none; color: var(--marca); }
.contrato-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cartão de situação (o primeiro da tela) */
.situacao { padding: 20px; overflow: hidden; }
.situacao .linha1 { display: flex; align-items: flex-start; gap: 14px; }
.situacao .marcador { width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center; }
.situacao .marcador svg { width: 28px; height: 28px; }
.situacao.ok .marcador { background: var(--ok-f); color: var(--ok); }
.situacao.alerta .marcador { background: var(--alerta-f); color: var(--alerta); }
.situacao.perigo .marcador { background: var(--perigo-f); color: var(--perigo); }
.situacao.info .marcador { background: var(--anil-suave); color: var(--marca); }
.situacao h2 { font-size: calc(var(--fs) * 1.35); }
.situacao p { margin: 4px 0 0; color: var(--tx2); }
.situacao .btns { margin-top: 16px; }
.situacao.perigo { border-color: color-mix(in srgb, var(--perigo) 30%, transparent); }
.situacao.alerta { border-color: color-mix(in srgb, var(--alerta) 30%, transparent); }

/* O caminho da internet: casa, fibra, Laikos */
.caminho { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; margin: 18px 2px 4px; }
.caminho .no { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; text-align: center; font-size: 13px; color: var(--tx2); line-height: 1.15; }
.caminho .no i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-f); color: var(--ok); position: relative; }
.caminho .no i svg { width: 22px; height: 22px; }
.caminho .no.ruim i { background: var(--perigo-f); color: var(--perigo); }
.caminho .no.atencao i { background: var(--alerta-f); color: var(--alerta); }
.caminho .fio { height: 4px; border-radius: 2px; position: relative; overflow: hidden; background: color-mix(in srgb, var(--ok) 25%, transparent); margin: 0 4px 22px; }
.caminho .fio::after { content: ""; position: absolute; inset: 0; width: 34%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--ok), transparent); animation: corre 2.2s linear infinite; }
.caminho .fio.ruim { background: repeating-linear-gradient(90deg, var(--perigo) 0 6px, transparent 6px 11px); opacity: .7; }
.caminho .fio.ruim::after, .caminho .fio.atencao::after { display: none; }
.caminho .fio.atencao { background: repeating-linear-gradient(90deg, var(--alerta) 0 6px, transparent 6px 11px); opacity: .8; }
@keyframes corre { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* Fatura em destaque */
.fatura-destaque { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: end; }
.fatura-destaque .valor { font: 600 calc(var(--fs) * 2.1)/1 var(--titulo); }
.fatura-destaque .quando { color: var(--tx2); }
.fatura-destaque .btns { grid-column: 1 / -1; margin-top: 14px; }

/* Lista de ações e itens */
.lista { display: flex; flex-direction: column; padding: 4px 0; }
.lista .item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 20px; border: 0; background: none; text-align: left; width: 100%; border-top: 1px solid var(--li); }
.lista .item:first-child { border-top: 0; }
a.item, a.btn { text-decoration: none; color: inherit; } a.btn.prim { color: #fff; } a.btn.sec { color: var(--marca); }
.lista .item:active { background: var(--li); }
.lista .item .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--anil-suave); color: var(--marca); }
.lista .item .ic svg { width: 22px; height: 22px; }
.lista .item .tx { flex: 1; min-width: 0; }
.lista .item .tx b { display: block; font-weight: 500; }
.lista .item .tx small { display: block; color: var(--tx2); font-size: .85em; line-height: 1.3; }
.lista .item > svg:last-child { color: var(--tx3); width: 20px; height: 20px; flex: none; }
.lista .item .dir { text-align: right; flex: none; }
.lista .item .dir .v { font: 600 calc(var(--fs) * 1.15)/1 var(--titulo); display: block; }
.vidro.sem-pad { padding: 0; }
.titulo-sec { font: 600 calc(var(--fs) * 1.05)/1.2 var(--titulo); color: var(--tx2); margin: 22px 4px 10px; }

/* Faixa de números */
.faixa { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.faixa > div { padding: 16px 18px; }
.faixa > div + div { border-left: 1px solid var(--li); }
.faixa .rot { color: var(--tx2); font-size: .88em; }
.faixa .val { font: 600 calc(var(--fs) * 1.7)/1.15 var(--titulo); margin-top: 2px; }
.faixa .det { font-size: .82em; color: var(--tx3); }

/* Wi-Fi */
.wifi-cartao .rede { font: 600 calc(var(--fs) * 1.35)/1.2 var(--titulo); }
.senha-linha { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--li); }
.senha-linha code { flex: 1; font: 500 calc(var(--fs) * 1.05) var(--texto); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.senha-linha .icone-btn { width: 40px; height: 40px; background: var(--vidro-forte); }
.sinal { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.sinal i { width: 4px; border-radius: 1px; background: var(--tx3); opacity: .3; }
.sinal i:nth-child(1) { height: 5px; } .sinal i:nth-child(2) { height: 9px; } .sinal i:nth-child(3) { height: 13px; } .sinal i:nth-child(4) { height: 16px; }
.sinal.s4 i, .sinal.s3 i:nth-child(-n+3), .sinal.s2 i:nth-child(-n+2), .sinal.s1 i:nth-child(1) { opacity: 1; background: var(--ok); }
.sinal.s1 i:nth-child(1) { background: var(--alerta); }

/* Consumo */
.consumo { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: 12px; }
.consumo i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #4d93ff, #0062ff); height: 0; transition: height .8s cubic-bezier(.2,.8,.2,1); min-height: 2px; }
.consumo i.hoje { background: linear-gradient(180deg, #ffd06a, var(--alta)); }
.eixo { display: flex; justify-content: space-between; font-size: 13px; color: var(--tx3); margin-top: 6px; }

/* Velocímetro */
.veloc { display: grid; place-items: center; padding: 6px 0 2px; }
.veloc svg { width: 220px; height: 130px; }
.veloc .n { font: 600 44px/1 var(--titulo); margin-top: -54px; }
.veloc .u { color: var(--tx2); font-size: 15px; margin-bottom: 8px; }

/* Linha do tempo do chamado */
.passos { list-style: none; margin: 14px 0 0; padding: 0; }
.passos li { position: relative; padding: 0 0 16px 34px; color: var(--tx3); }
.passos li::before { content: ""; position: absolute; left: 7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tx3); background: var(--fundo); }
.passos li::after { content: ""; position: absolute; left: 13px; top: 20px; bottom: -2px; width: 2px; background: var(--li); }
.passos li:last-child::after { display: none; }
.passos li.feito { color: var(--tx); } .passos li.feito::before { background: var(--ok); border-color: var(--ok); }
.passos li.agora { color: var(--tx); font-weight: 600; } .passos li.agora::before { border-color: var(--marca); background: var(--marca); box-shadow: 0 0 0 5px var(--anil-suave); animation: pisca 1.6s infinite; }
.passos small { display: block; font-weight: 400; color: var(--tx2); font-size: .85em; }

/* Mapinha do técnico */
.mapa { position: relative; height: 150px; border-radius: 14px; overflow: hidden; margin-top: 14px;
  background:
    linear-gradient(90deg, var(--li) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, var(--li) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--anil-suave); }
.mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa .carro { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--anil); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(0,98,255,.2), 0 6px 18px rgba(0,98,255,.5); transition: left 1.2s linear, top 1.2s linear; }
.mapa .carro svg { position: static; width: 20px; height: 20px; }
.mapa .casa { position: absolute; right: 12%; top: 26%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.mapa .casa svg { position: static; width: 18px; height: 18px; }
.tecnico { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tecnico .foto { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #2a7bff, #0a1f44); color: #fff; display: grid; place-items: center; font: 600 20px var(--titulo); flex: none; }
.tecnico .tx { flex: 1; } .tecnico small { display: block; color: var(--tx2); font-size: .85em; }

/* Folha que sobe do rodapé */
.fundo-folha { position: fixed; inset: 0; z-index: 20; background: rgba(4,10,24,.5); opacity: 0; transition: opacity .25s; }
.fundo-folha.aberta { opacity: 1; }
.folha { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--vidro-forte); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: 24px 24px 0 0; border-top: 1px solid var(--vidro-borda); padding: 10px 20px calc(env(safe-area-inset-bottom) + 22px);
  transform: translateY(105%); transition: transform .38s cubic-bezier(.2,.9,.25,1); max-width: 620px; margin: 0 auto; }
.folha.aberta { transform: none; }
.folha .alca { width: 44px; height: 5px; border-radius: 3px; background: var(--tx3); opacity: .4; margin: 0 auto 14px; }
.folha h2 { font-size: calc(var(--fs) * 1.4); margin-bottom: 6px; }
.folha .sub { margin-bottom: 16px; }
.fechar-folha { position: absolute; top: 12px; right: 12px; }

/* PIX */
.qr { width: 200px; height: 200px; margin: 6px auto 14px; padding: 12px; background: #fff; border-radius: 16px; display: block; }
.pix-cod { font-family: ui-monospace, monospace; font-size: 13px; color: var(--tx2); word-break: break-all; padding: 10px 12px; border-radius: 10px; background: var(--li); margin-bottom: 12px; max-height: 3.6em; overflow: hidden; }
.passo-a-passo { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: p; }
.passo-a-passo li { counter-increment: p; position: relative; padding: 6px 0 6px 40px; color: var(--tx2); }
.passo-a-passo li b { color: var(--tx); }
.passo-a-passo li::before { content: counter(p); position: absolute; left: 0; top: 5px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--anil-suave); color: var(--marca); font-weight: 600; font-size: 14px; }

/* Diagnóstico */
.checagem { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 16px; }
.checagem div { display: flex; align-items: center; gap: 12px; min-height: 46px; color: var(--tx3); transition: color .3s; }
.checagem div i { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--li); }
.checagem div i svg { width: 16px; height: 16px; }
.checagem div.rodando i { border-color: var(--marca); border-top-color: transparent; animation: gira .8s linear infinite; }
.checagem div.ok { color: var(--tx); } .checagem div.ok i { border-color: var(--ok); background: var(--ok); color: #fff; }
.checagem div.ruim { color: var(--tx); } .checagem div.ruim i { border-color: var(--perigo); background: var(--perigo); color: #fff; }
.checagem div.atencao { color: var(--tx); } .checagem div.atencao i { border-color: var(--alerta); background: var(--alerta); color: #fff; }
@keyframes gira { to { transform: rotate(360deg); } }
.resultado { padding: 14px 16px; border-radius: 14px; background: var(--anil-suave); margin-bottom: 14px; }
.resultado.ok { background: var(--ok-f); } .resultado.alerta { background: var(--alerta-f); } .resultado.perigo { background: var(--perigo-f); }
.resultado b { display: block; margin-bottom: 2px; }
.resultado p { margin: 0; color: var(--tx2); }

/* Escolher horário */
.vagas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 16px; }
.vaga { border: 1.5px solid var(--li); background: var(--campo); border-radius: 14px; min-height: 64px; padding: 8px 12px; text-align: left; }
.vaga b { display: block; font-weight: 600; }
.vaga small { color: var(--tx2); font-size: .85em; }
.vaga[aria-pressed="true"] { border-color: var(--anil); background: var(--anil-suave); box-shadow: 0 0 0 1px var(--anil) inset; }

/* Campos */
.campo { display: block; margin-bottom: 14px; }
.campo span { display: block; font-weight: 500; margin-bottom: 6px; }
.campo input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--borda-campo); background: var(--campo); font-size: max(17px, var(--fs)); }
.campo input:focus { outline: none; border-color: var(--anil); box-shadow: 0 0 0 4px var(--anil-suave); }
.campo-senha { position: relative; display: block; }
.campo-senha input { padding-right: 96px; }
.ver-senha { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--marca); font: inherit; font-weight: 600; cursor: pointer; border-radius: 10px; }
.entrada .ver-senha { color: #8fb6ff; }
.campo small { display: block; margin-top: 6px; color: var(--tx2); font-size: .85em; }
.forca { height: 6px; border-radius: 3px; background: var(--li); overflow: hidden; margin-top: 8px; }
.forca i { display: block; height: 100%; width: 0; background: var(--perigo); transition: width .3s, background .3s; }

/* Interruptor */
.chave { position: relative; width: 52px; height: 32px; flex: none; border-radius: 16px; background: var(--li); border: 0; transition: background .2s; }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.chave[aria-checked="true"] { background: var(--anil); }
.chave[aria-checked="true"]::after { transform: translateX(20px); }

/* Avaliação */
.estrelas { display: flex; gap: 6px; justify-content: center; margin: 10px 0 14px; }
.estrelas button { border: 0; background: none; width: 48px; height: 48px; color: var(--tx3); opacity: .45; transition: transform .15s, color .15s, opacity .15s; }
.estrelas button.on { color: var(--alta); opacity: 1; transform: scale(1.08); }
.estrelas svg { width: 38px; height: 38px; }

/* Aviso rápido */
.aviso { position: fixed; z-index: 30; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); transform: translate(-50%, 20px); opacity: 0;
  background: var(--noite); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); display: flex; gap: 10px; align-items: center; }
.aviso.mostra { opacity: 1; transform: translate(-50%, 0); }
.aviso svg { width: 20px; height: 20px; color: #5fd39a; flex: none; }

/* Entrada (login) */
.entrada { position: fixed; inset: 0; z-index: 40; background: #060f22; color: #eef2f7; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  transition: opacity .4s, transform .4s; --tx2: #a9b6cb; --li: rgba(160,190,255,.12); --campo: #0d1d3a; --borda-campo: #41557c; --anil-suave: rgba(127,176,255,.12); --marca: #7fb0ff; }
.entrada.saindo { opacity: 0; transform: scale(1.03); pointer-events: none; }
.entrada .ceu i:nth-child(1) { background: rgba(0,98,255,.4); }
.entrada .caixa { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.entrada .logo { height: 46px; width: auto; display: block; margin: 0 0 28px; }
.entrada h1 { color: #fff; }
.entrada .sub { color: #a9b6cb; }
.entrada .painel-ent { background: rgba(16,34,68,.6); border: 1px solid rgba(160,190,255,.12); border-radius: 22px; padding: 22px 20px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.codigo { display: flex; gap: 8px; justify-content: space-between; margin: 6px 0 14px; }
.codigo input { width: 100%; min-width: 0; height: 60px; text-align: center; font: 600 28px var(--titulo); border-radius: 12px; border: 1.5px solid var(--borda-campo); background: var(--campo); color: #fff; }
.codigo input:focus { outline: none; border-color: #2a7bff; box-shadow: 0 0 0 4px rgba(42,123,255,.25); }
.entrada .rodape-ent { margin-top: 18px; text-align: center; font-size: 15px; color: #a9b6cb; }
.entrada .btn.fantasma { color: #7fb0ff; }
.etapa-ent[hidden] { display: none; }
.whats-ic { color: #3ddc84; }

/* Atalhos rápidos (linha que rola de lado no celular) */
.rapidos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.rapido { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 18px; border: 1px solid var(--vidro-borda); background: var(--vidro); text-align: center; font-size: .82em; font-weight: 500; line-height: 1.2; min-height: 96px; }
.rapido:active { transform: scale(.96); }
.rapido i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--anil-suave); color: var(--marca); }
.rapido i svg { width: 24px; height: 24px; }
.rapido.destaque i { background: var(--perigo-f); color: var(--perigo); }

/* Protótipo: escolha de situação */
.cenarios .item[aria-pressed="true"] { background: var(--anil-suave); }
.cenarios .item[aria-pressed="true"] .tx b { color: var(--marca); font-weight: 600; }

/* Celular */
.nav .curto { display: none; }
@media (max-width: 900px) {
  html { overscroll-behavior-y: none; }
  .nav, .rapidos, .cab-bloco { -webkit-user-select: none; user-select: none; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-cab { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 6; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px 16px;
    background: var(--menu); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border-bottom: 1px solid var(--vidro-borda); min-height: 60px; }
  .app-cab .logo { height: 30px; width: auto; }
  .app-cab .titulo-cab { font: 600 18px/1 var(--titulo); color: #fff; position: absolute; left: 16px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
  .app-cab.rolou .titulo-cab { opacity: 1; transform: none; }
  .app-cab.rolou .logo { opacity: 0; }
  .app-cab .icone-btn { background: rgba(255,255,255,.1); color: #fff; }
  .app-cab .selo.ficticio { font-size: 13px; padding: 4px 10px; }
  .lateral { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 7; height: auto; padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px); gap: 0; border-right: 0; border-top: 1px solid var(--vidro-borda); }
  .lateral .logo, .lateral .rodape { display: none; }
  .nav { flex-direction: row; gap: 4px; }
  .nav button { flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 4px; font-size: 13px; border-radius: 16px; }
  .nav button svg { width: 24px; height: 24px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
  .nav button[aria-current="page"] svg { transform: translateY(-1px) scale(1.08); }
  .nav button:active { transform: scale(.94); }
  .nav .badge { top: 8px; left: calc(50% + 6px); }
  .nav .longo { display: none; } .nav .curto { display: inline; }
  .nav .pilula { border-radius: 16px; }
  .principal { padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom) + 104px) max(16px, env(safe-area-inset-left, 0px)); }
  .topo { display: none; }
  .vidro { padding: 16px; border-radius: 18px; }
  .vidro.sem-pad { padding: 0; }
  .lista .item { padding: 10px 16px; }
  .rapidos { gap: 8px; }
  .rapido { padding: 12px 4px 10px; font-size: .78em; }
  html.letra-grande .rapidos { grid-template-columns: 1fr 1fr; }
  .instalar { display: flex; align-items: center; gap: 12px; }
  .instalar img { width: 40px; height: 40px; border-radius: 10px; }
  .instalar div { flex: 1; font-size: 15px; line-height: 1.3; }
  .instalar small { color: var(--tx2); }
  .instalar .btn { min-height: 44px; padding: 0 16px; }
}
@media (min-width: 901px) { .instalar { display: none !important; } .aviso { bottom: 32px; left: calc(50% + 124px); } .folha { border-radius: 24px; bottom: 24px; left: 248px; border: 1px solid var(--vidro-borda); box-shadow: 0 24px 60px rgba(0,0,0,.35); } }
@media (display-mode: standalone) { .instalar { display: none !important; } }
@media (max-width: 360px) { .rapido { font-size: .72em; } .caminho .no { width: 54px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- Versão real: carregando, erro, vazio ---- */
.esqueleto { background: linear-gradient(90deg, var(--li) 0, color-mix(in srgb, var(--li) 40%, transparent) 50%, var(--li) 100%) 0 0 / 200% 100%;
  animation: brilha 1.3s linear infinite; border-radius: 12px; }
@keyframes brilha { to { background-position: -200% 0; } }
.esq-linha { height: 18px; margin: 8px 0; } .esq-titulo { height: 30px; width: 60%; margin-bottom: 12px; } .esq-bloco { height: 140px; }
.falha { text-align: center; padding: 28px 16px; color: var(--tx2); }
.falha b { display: block; color: var(--tx); margin-bottom: 6px; font-size: 1.05em; }
.erro-campo { color: var(--perigo); font-size: .9em; margin: -6px 0 12px; min-height: 1.2em; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .giro { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; animation: gira .8s linear infinite; }
.vazio { padding: 18px 20px; color: var(--tx2); }
.opcoes-cel { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }

/* ---------- Chat com a Elô ---------- */
.folha.chat { height: 92vh; height: 92dvh; max-height: none; overflow: hidden; display: flex; flex-direction: column; padding-bottom: calc(env(safe-area-inset-bottom) + 12px); }
.folha.chat #folha-corpo { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-topo { display: flex; gap: 12px; align-items: center; padding-right: 44px; }
.chat-topo .sub { margin: 0; font-size: calc(var(--fs) * .85); }
.chat-topo h2 { margin: 0; }
.orbe-elo { flex: none; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9cc4ff, var(--anil) 55%, #00b8a9);
  box-shadow: 0 0 0 4px var(--anil-suave), 0 6px 18px rgba(0,98,255,.35); animation: respira 3.4s ease-in-out infinite; }
@keyframes respira { 50% { transform: scale(1.06); box-shadow: 0 0 0 7px var(--anil-suave), 0 6px 22px rgba(0,98,255,.45); } }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 16px 2px 10px; }
.bolha { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; animation: chega .25s ease-out; }
.bolha.ela { align-self: flex-start; background: var(--vidro); border: 1px solid var(--vidro-borda); border-bottom-left-radius: 6px; }
.bolha.eu { align-self: flex-end; background: linear-gradient(180deg, #1a73ff, var(--anil)); color: #fff; border-bottom-right-radius: 6px; }
.bolha.eu a { color: #fff; }
.bolha.codigo { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }
.bolha .copia { display: flex; margin-top: 10px; min-height: 40px; font-family: var(--texto); font-size: 15px; }
@keyframes chega { from { opacity: 0; transform: translateY(8px); } }
.chat-nota { align-self: center; font-size: calc(var(--fs) * .8); color: var(--tx3); text-align: center; margin: 4px 0; }
.chat-passa { align-self: stretch; padding: 14px; border-radius: var(--r-superficie); background: rgba(37,211,102,.10); border: 1px solid rgba(37,211,102,.30); }
.chat-passa p { margin: 0 0 12px; }
.chat-passa .zap { background: linear-gradient(180deg,#2bd46b,#14a84b); box-shadow: 0 8px 22px rgba(20,168,75,.35); }
.chat-digitando { display: none; align-self: flex-start; gap: 5px; padding: 14px 16px; border-radius: 18px; background: var(--vidro); border: 1px solid var(--vidro-borda); }
.chat-digitando.on { display: flex; }
.chat-digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--tx3); animation: pula 1.1s infinite; }
.chat-digitando i:nth-child(2) { animation-delay: .15s; } .chat-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-escrever { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--li); }
.chat-escrever textarea { flex: 1; resize: none; min-height: 48px; max-height: 120px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--tx);
  background: var(--campo); border: 1px solid var(--borda-campo); border-radius: 24px; outline: none; }
.chat-escrever textarea:focus { border-color: var(--anil); box-shadow: 0 0 0 3px var(--anil-suave); }
.chat-escrever .btn { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; flex: none; }
.chat-escrever .btn svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .orbe-elo, .bolha, .chat-digitando i { animation: none; } }

/* Modo equipe (sudo central-ver): faixa fixa no topo, só leitura */
.faixa-equipe { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px; background: var(--alta); color: var(--noite); font-size: 14px; line-height: 1.3; }
.faixa-equipe .btn { min-height: 36px; padding: 0 14px; background: rgba(10,31,68,.12); color: var(--noite); border: 0; }
