/* Nova LiderPav · medição de obras
   Paleta tirada da referência enviada: preto-azulado, cartões âmbar, cartões brancos e texto dourado. */
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(../fonts/outfit-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(../fonts/outfit-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(../fonts/outfit-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(../fonts/outfit-latin-700-normal.woff2) format('woff2'); }

:root {
  --fundo: #070913;
  --carvao: #010109;
  --ambar: #FBB909;
  --ambar-2: #E79304;
  --pilula: #FAB723;
  --ouro: #ECBA32;
  --branco: #F0F2FB;
  --apagado: #7B7E91;
  --tinta: #242936;
  --sombra-ambar: #8A3D0C;
  --linha: rgba(240, 242, 251, .1);
  --linha-forte: rgba(240, 242, 251, .2);
  --vermelho: #FF6B5E;
  --vermelho-fundo: rgba(255, 107, 94, .15);
  --raio: 26px;
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px;
  --fonte: Outfit, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; background: var(--fundo); }
body { margin: 0; background: var(--fundo); color: var(--branco); font: 400 17px/1.45 var(--fonte); -webkit-font-smoothing: antialiased; }
body.sem-rolagem { overflow: hidden; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 10px; }
.ico { display: inline-flex; flex: none; }

/* ---------- estrutura ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.conteudo { flex: 1; padding: var(--e4) 20px var(--e5); display: flex; flex-direction: column; gap: 18px; }
.topo { display: flex; align-items: center; gap: var(--e3); padding: var(--e3) 20px; min-height: 72px; }
.topo-quem { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.topo-nome { font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-papel { font-size: 14px; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-etapa { padding-left: var(--e3); }
.marca { display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--branco); border-radius: 16px; padding: 5px 8px; }
.marca img { height: 40px; width: auto; display: block; }
.marca-txt { font: 700 16px/1 var(--fonte); color: var(--tinta); padding: 8px 4px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--carvao); border: 2px solid var(--ambar); padding: 0; }
.avatar .mini { width: 100%; height: 100%; border-radius: 0; }

.titulo { font: 600 32px/1.1 var(--fonte); color: var(--ouro); letter-spacing: -.2px; }
.passo { font-size: 14px; font-weight: 500; color: var(--ouro); margin-bottom: -10px; }
.ajuda { color: var(--apagado); margin-top: -8px; }
.txt { color: var(--apagado); }
.vazio { color: var(--apagado); background: var(--carvao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; }
.nota { background: var(--carvao); border: 1px solid var(--linha); border-radius: 18px; padding: var(--e3) var(--e4); font-size: 15px; }
.nota-alerta { background: var(--vermelho-fundo); border-color: transparent; color: #FFA59C; }

.bloco { display: flex; flex-direction: column; gap: var(--e3); }
.bloco-topo { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); }
.bloco-titulo, .adm-titulo { font: 600 14px/1.2 var(--fonte); color: var(--ouro); letter-spacing: .2px; }
.bloco-total { font: 600 20px/1 var(--fonte); color: var(--branco); }
.pilha { display: flex; flex-direction: column; gap: var(--e3); }

/* ---------- faixa de progresso: o eixo tracejado da rua ---------- */
.pista { display: flex; gap: 8px; align-items: center; padding: 6px 20px 10px; }
.pista-traco { flex: 1; height: 5px; border-radius: 3px; background: var(--linha-forte); }
.pista-traco.feito { background: var(--ambar); }
.pista-traco.atual { background: var(--ambar); height: 9px; border-radius: 5px; box-shadow: 0 0 14px rgba(251, 185, 9, .6); }

/* ---------- botões ---------- */
.bt { display: flex; align-items: center; justify-content: center; gap: var(--e2); width: 100%; min-height: 58px; padding: var(--e3) var(--e5); border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 17px; line-height: 1.2; text-align: center; transition: transform .08s ease; }
.bt:active { transform: scale(.98); }
.bt-grande { min-height: 66px; font-size: 19px; }
.bt-pequeno { width: auto; min-height: 44px; padding: var(--e2) var(--e4); font-size: 15px; }
.bt-pri { background: var(--pilula); color: var(--fundo); box-shadow: 0 12px 26px -12px rgba(251, 185, 9, .85); }
.bt-pri:focus-visible { outline-color: var(--branco); }
.bt-sec { background: var(--carvao); border-color: rgba(236, 186, 50, .5); color: var(--ouro); }
.bt-perigo { background: var(--vermelho); color: var(--fundo); }
.bt-texto { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: var(--e2) var(--e1); background: none; border: 0; font-weight: 500; font-size: 16px; color: var(--ouro); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(236, 186, 50, .5); }
.bt-texto-perigo { color: var(--vermelho); text-decoration-color: rgba(255, 107, 94, .5); }
.bt-icone { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; background: var(--carvao); border: 1px solid var(--linha); border-radius: 50%; color: var(--ouro); }
.bt-equipe { justify-content: space-between; text-align: left; padding: var(--e3) 22px; border-radius: var(--raio); min-height: 76px; }
.bt-equipe-txt { display: flex; flex-direction: column; line-height: 1.25; color: var(--branco); }
.bt-equipe-txt small { font-weight: 400; font-size: 14px; color: var(--apagado); }

.barra-acao { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: var(--e2); padding: var(--e3) 20px calc(var(--e4) + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(7, 9, 19, 0), var(--fundo) 26%); }
.form .barra-acao { margin: var(--e2) -20px calc(var(--e5) * -1); }
.acoes-menores { display: flex; justify-content: space-between; align-items: center; gap: var(--e3); margin-top: -6px; }

/* ---------- cartões e listas ---------- */
.cartao { background: var(--carvao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; display: flex; flex-direction: column; gap: var(--e2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); }
.cartao-ambar { background: linear-gradient(180deg, var(--ambar), var(--ambar-2)); border-color: transparent; color: var(--fundo); box-shadow: 0 18px 30px -14px rgba(138, 61, 12, .9); }
.cartao-ambar .obra-linha { color: rgba(7, 9, 19, .72); }
.cartao-ambar .bt-pri { background: var(--fundo); color: var(--ouro); box-shadow: none; }
.cartao-ambar .chip-neutro { background: rgba(7, 9, 19, .14); color: var(--fundo); border-color: transparent; }
.cartao-ambar .chip-alerta { background: var(--fundo); color: #FFA59C; }
.cartao-obra .bt { margin-top: var(--e3); }
.obra-end { font: 600 24px/1.15 var(--fonte); }
.obra-linha { font-size: 15px; color: var(--apagado); }
.lista { display: flex; flex-direction: column; background: var(--carvao); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
.lista > li + li { border-top: 1px solid var(--linha); }
.linha { display: flex; align-items: center; gap: var(--e3); width: 100%; min-height: 66px; padding: var(--e3) 20px; background: none; border: 0; text-align: left; color: var(--branco); }
.linha:focus-visible { outline-offset: -4px; }
.linha .ico { color: var(--ouro); }
.linha-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.linha-txt strong { font-weight: 500; }
.linha-txt small { font-size: 14px; color: var(--apagado); }
.linha-num { font: 600 19px/1 var(--fonte); white-space: nowrap; color: var(--ouro); }
.linha .avatar { border-width: 1.5px; }
.pend .bt-texto { margin: 0 20px var(--e2); font-size: 15px; }

.chip { display: inline-flex; align-items: center; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap; border: 1px solid transparent; }
.chip-neutro { border-color: var(--linha-forte); color: var(--branco); }
.chip-alerta { background: var(--vermelho-fundo); color: #FFA59C; }
.chip-ok { background: var(--ambar); color: var(--fundo); }
.chip-destaque { background: var(--branco); color: var(--tinta); }
.linha .chip { align-self: center; white-space: normal; text-align: right; max-width: 46%; }

.faixa-alerta { display: flex; align-items: center; gap: var(--e2); background: var(--vermelho-fundo); color: #FFA59C; border-radius: 18px; padding: var(--e3) var(--e4); font-weight: 500; font-size: 15px; }
.sinc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--apagado); margin-top: auto; padding-top: var(--e3); }
.sinc-erro { color: #FFA59C; }

/* ---------- itens de foto e vídeo ---------- */
.itens { display: flex; flex-direction: column; gap: var(--e3); }
.item { background: var(--carvao); border: 1px solid var(--linha); border-radius: 22px; padding: var(--e4); display: flex; flex-direction: column; gap: var(--e3); }
.item-falta { border: 1.5px dashed rgba(236, 186, 50, .6); background: transparent; }
.item-topo { display: flex; align-items: center; gap: var(--e3); }
.item-marca { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; border: 1.5px solid rgba(236, 186, 50, .6); color: var(--ouro); }
.item-ok .item-marca { background: var(--ambar); border-color: var(--ambar); color: var(--fundo); }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.item-rotulo { font-weight: 500; }
.item-estado { font-size: 14px; color: var(--apagado); }
.item-refazer { flex: none; min-height: 40px; padding: 6px 14px; background: none; border: 1px solid rgba(236, 186, 50, .5); border-radius: 999px; color: var(--ouro); font-size: 14px; font-weight: 500; }
.minis { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-caixa { position: relative; flex: none; }
.mini { position: relative; display: block; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #10121C; color: var(--apagado); flex: none; }
.mini img, .mini video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-txt { display: flex; align-items: center; justify-content: center; height: 100%; padding: 4px; font-size: 11px; line-height: 1.2; text-align: center; }
.mini-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .3); color: #fff; }
.mini-tirar { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--branco); color: var(--tinta); border: 2px solid var(--fundo); border-radius: 50%; }
.mini-tirar::after { content: ''; position: absolute; inset: -8px; }

.pergunta { background: linear-gradient(180deg, var(--ambar), var(--ambar-2)); color: var(--fundo); border-radius: var(--raio); padding: var(--e5) 22px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--e3); box-shadow: 0 18px 30px -14px rgba(138, 61, 12, .9); }
.pergunta-txt { font: 600 25px/1.2 var(--fonte); }
.pergunta .nota-alerta { background: var(--fundo); }

/* ---------- formulários ---------- */
.form { display: flex; flex-direction: column; gap: var(--e4); }
.campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.campo-rotulo { font-size: 14px; font-weight: 500; color: var(--ouro); }
.campo-dica { font-size: 14px; color: var(--apagado); }
.campo-msg { font-size: 14px; font-weight: 500; color: #FFA59C; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea { width: 100%; min-height: 56px; padding: var(--e3) 18px; background: var(--carvao); border: 1px solid var(--linha-forte); border-radius: 18px; font-size: 18px; color: var(--branco); appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ouro) 50%), linear-gradient(135deg, var(--ouro) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 0; resize: vertical; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--apagado); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--ambar); box-shadow: 0 0 0 3px rgba(251, 185, 9, .3); border-radius: 18px; }
.campo-erro input, .campo-erro select { border-color: var(--vermelho); }
.curto { max-width: 160px; }
.medio { max-width: 240px; }
.pin { font-size: 28px; letter-spacing: 8px; text-align: center; }
.dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--e3); align-items: start; }
.dupla-rua { grid-template-columns: minmax(0, 1fr) 104px; }
.opcoes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--e2); }
.opcoes-quebra { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opcao { min-height: 54px; padding: var(--e2) var(--e3); background: var(--carvao); border: 1px solid var(--linha-forte); border-radius: 999px; font-weight: 500; font-size: 16px; color: var(--branco); }
.opcao.ativa { background: var(--pilula); border-color: var(--pilula); color: var(--fundo); font-weight: 600; }
.area { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e3); background: var(--branco); color: var(--tinta); border-radius: var(--raio); padding: var(--e4) 22px; }
.area-rotulo { font-size: 15px; font-weight: 500; }
.area-num { font: 700 36px/1 var(--fonte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.area-vazia .area-num { opacity: .35; }
.marca-linha { display: flex; align-items: center; gap: var(--e3); min-height: 48px; font-weight: 500; }
.marca-linha input { width: 26px; height: 26px; accent-color: var(--ambar); flex: none; }
.nomes { display: flex; flex-wrap: wrap; gap: var(--e2); }
.nomes .opcao { min-height: 44px; padding: 6px 16px; font-size: 15px; }
.selfie { display: flex; align-items: center; gap: var(--e4); }
.selfie .mini { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--ambar); }
.selfie-vazia { width: 96px; height: 96px; border-radius: 50%; border: 1.5px dashed rgba(236, 186, 50, .6); display: flex; align-items: center; justify-content: center; color: var(--ouro); flex: none; }

/* ---------- entrada e metragem enviada ---------- */
.app-entrada .conteudo { justify-content: center; gap: var(--e5); padding-top: var(--e6); padding-bottom: var(--e6); }
.entrada .marca { align-self: flex-start; border-radius: 28px; padding: 14px 18px; box-shadow: 0 24px 50px -20px rgba(251, 185, 9, .55); }
.entrada .marca img { height: 132px; }
.entrada-admin { align-self: center; }
.feito { align-items: flex-start; justify-content: center; gap: var(--e2); }
.feito-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--ambar); color: var(--fundo); display: flex; align-items: center; justify-content: center; margin-bottom: var(--e3); box-shadow: 0 0 40px rgba(251, 185, 9, .5); }
.feito-num { font: 700 82px/1 var(--fonte); color: var(--branco); font-variant-numeric: tabular-nums; margin: var(--e2) 0; letter-spacing: -2px; }
.feito-num small { font-size: 32px; letter-spacing: 0; color: var(--ouro); }
.feito-linha { font-size: 18px; color: var(--apagado); }
.feito .nota { margin-top: var(--e4); }

/* ---------- abertura com o logotipo ---------- */
.abertura { position: fixed; inset: 0; z-index: 80; background: var(--fundo); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--e5); overflow: hidden; border: 0; padding: 0; width: 100%; color: var(--branco); }
.abertura-eixo { position: absolute; left: 50%; top: -20%; bottom: -20%; width: 8px; margin-left: -4px; background: repeating-linear-gradient(180deg, var(--ambar) 0 46px, transparent 46px 92px); opacity: .9; animation: eixo 0.9s linear infinite, some 0.5s ease 0.9s forwards; }
.abertura-halo { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 185, 9, .55), rgba(231, 147, 4, .18) 45%, rgba(7, 9, 19, 0) 70%); transform: scale(0); animation: halo 0.7s cubic-bezier(.2, .9, .3, 1.2) 0.75s forwards; }
.abertura-placa { position: relative; background: var(--branco); border-radius: 44px; padding: 22px 26px; transform: translateY(60vh) scale(.7); animation: assenta 0.75s cubic-bezier(.2, .9, .25, 1.15) 0.7s forwards; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.abertura-placa img { display: block; width: min(64vw, 280px); height: auto; }
.abertura-placa .marca-txt { font-size: 30px; padding: 30px 10px; display: block; }
.abertura-toque { position: relative; font-size: 15px; font-weight: 500; color: var(--ouro); opacity: 0; animation: surge 0.4s ease 1.6s forwards, pulsa 1.4s ease-in-out 2s infinite; }
.abertura.saindo .abertura-placa { animation: aperta 0.32s ease forwards; }
.abertura.saindo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, var(--ambar), var(--ambar-2)); animation: varre 0.42s cubic-bezier(.6, 0, .3, 1) 0.1s forwards; }
@keyframes eixo { to { transform: translateY(92px); } }
@keyframes some { to { opacity: 0; } }
@keyframes halo { to { transform: scale(1); } }
@keyframes assenta { to { transform: none; } }
@keyframes surge { to { opacity: 1; } }
@keyframes pulsa { 50% { opacity: .45; } }
@keyframes aperta { 40% { transform: scale(.93); } 100% { transform: scale(1); } }
@keyframes varre { to { height: 100%; } }

/* ---------- folha e avisos ---------- */
.folha-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .66); display: flex; align-items: flex-end; justify-content: center; }
.folha { width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: #0C0E1A; border: 1px solid var(--linha); border-bottom: 0; border-radius: 32px 32px 0 0; padding: var(--e4) 20px calc(var(--e5) + env(safe-area-inset-bottom)); animation: sobe .2s ease-out; }
.folha-topo { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); margin-bottom: var(--e3); }
.folha-titulo { font: 600 24px/1.15 var(--fonte); color: var(--ouro); }
.folha-corpo { display: flex; flex-direction: column; gap: var(--e4); }
@keyframes sobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .folha-fundo { align-items: center; } .folha { border-radius: 32px; border-bottom: 1px solid var(--linha); } }
.avisos { position: fixed; left: 0; right: 0; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: var(--e2); pointer-events: none; padding: 0 20px; }
.aviso { background: var(--branco); color: var(--tinta); padding: var(--e3) 20px; border-radius: 20px; font-weight: 500; font-size: 15px; max-width: 480px; transition: opacity .3s; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .9); }
.aviso-erro { background: var(--vermelho); color: var(--fundo); }
.aviso.sai { opacity: 0; }
.previa { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px var(--e3); background: var(--carvao); border-bottom: 1px solid var(--linha); color: var(--apagado); font-size: 13px; line-height: 1.3; padding: 6px var(--e4); text-align: center; }
.previa-bt { min-height: 34px; padding: 4px 14px; background: var(--pilula); color: var(--fundo); border: 0; border-radius: 999px; font-weight: 600; font-size: 13px; }

/* ---------- câmera ---------- */
.cam, .ver { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; display: flex; flex-direction: column; }
.cam-topo, .ver-topo { display: flex; align-items: center; gap: var(--e3); padding: calc(var(--e2) + env(safe-area-inset-top)) var(--e4) var(--e2); min-height: 68px; }
.cam-fechar { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; color: #fff; }
.cam-textos { flex: 1; min-width: 0; line-height: 1.25; }
.cam-titulo { font: 600 19px/1.2 var(--fonte); color: var(--ouro); }
.cam-sub, .ver-info { font-size: 14px; color: rgba(255, 255, 255, .8); }
.cam-relogio { font: 600 18px/1 var(--fonte); background: var(--vermelho); color: var(--fundo); padding: 7px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cam-meio, .ver-palco { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cam-tela, .ver-palco img, .ver-palco video { max-width: 100%; max-height: 100%; display: block; }
.cam-base { display: flex; align-items: center; justify-content: center; gap: var(--e4); padding: var(--e3) var(--e4) calc(var(--e4) + env(safe-area-inset-bottom)); min-height: 128px; }
.cam-lado { flex: 1; display: flex; justify-content: center; }
.cam-disparo { width: 82px; height: 82px; flex: none; border-radius: 50%; background: transparent; border: 4px solid var(--ambar); padding: 5px; }
.cam-disparo span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: border-radius .15s, transform .15s; }
.cam-disparo-video span { background: var(--vermelho); }
.cam-gravando .cam-disparo span { border-radius: 10px; transform: scale(.55); }
.cam-pronto { min-height: 52px; padding: 0 var(--e5); background: var(--pilula); color: var(--fundo); border: 0; border-radius: 999px; font-weight: 600; font-size: 17px; }
.cam-flash .cam-tela { animation: flash .16s; }
@keyframes flash { from { filter: brightness(2.2); } to { filter: none; } }
.ver-espera { padding: var(--e5); text-align: center; color: rgba(255, 255, 255, .85); max-width: 360px; }
.ver-base { display: flex; gap: var(--e3); padding: var(--e3) 20px calc(var(--e4) + env(safe-area-inset-bottom)); }

/* ---------- painel admin ---------- */
.adm { min-height: 100vh; }
.adm-topo-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: var(--e3); padding: var(--e3) 20px; min-height: 72px; }
.adm-nome { flex: 1; min-width: 0; font: 600 22px/1 var(--fonte); color: var(--ouro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-contrato { width: auto; max-width: 46vw; min-height: 46px; padding: 6px 40px 6px 18px; border-radius: 999px; font-size: 16px; font-weight: 500; }
.adm-abas { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.adm-abas-in { display: inline-flex; gap: 4px; padding: 5px; background: var(--carvao); border: 1px solid var(--linha); border-radius: 999px; max-width: 100%; }
.adm-aba { min-height: 44px; padding: 0 22px; background: none; border: 0; border-radius: 999px; color: var(--apagado); font-weight: 500; font-size: 16px; }
.adm-aba.ativa { background: var(--pilula); color: var(--fundo); font-weight: 600; }
.adm-corpo { max-width: 1120px; margin: 0 auto; padding: 20px 20px var(--e6); display: flex; flex-direction: column; gap: var(--e5); }
.adm-secao { display: flex; flex-direction: column; gap: var(--e3); }
.adm-acoes { display: flex; flex-wrap: wrap; gap: var(--e3); }
.adm-acoes .bt { width: auto; flex: 1 1 200px; }
.periodo { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); }
.periodo-txt { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.25; }
.periodo-mes { font: 600 24px/1.15 var(--fonte); color: var(--branco); }
.periodo-datas { font-size: 14px; color: var(--apagado); }
.totais { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e3); }
@media (min-width: 820px) { .totais { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e4); } }
.total { background: var(--carvao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); }
.total-rotulo { font-size: 14px; font-weight: 500; color: var(--ouro); }
.total-num { font: 700 32px/1.1 var(--fonte); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.5px; }
.total-sub { font-size: 14px; color: var(--apagado); }
.total-destaque { background: linear-gradient(180deg, var(--ambar), var(--ambar-2)); border-color: transparent; color: var(--fundo); box-shadow: 0 18px 30px -14px rgba(138, 61, 12, .9); }
.total-destaque .total-rotulo, .total-destaque .total-sub { color: rgba(7, 9, 19, .72); }
.total-branco { background: var(--branco); border-color: transparent; color: var(--tinta); }
.total-branco .total-rotulo { color: #9A6A00; }
.total-branco .total-sub { color: #5C6077; }

.tabela-rolo { overflow-x: auto; background: var(--carvao); border: 1px solid var(--linha); border-radius: var(--raio); }
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; }
.tabela th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ouro); padding: 14px var(--e3); border-bottom: 1px solid var(--linha); background: var(--carvao); }
.tabela td { padding: 12px var(--e3); border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tabela th:first-child, .tabela td:first-child { position: sticky; left: 0; z-index: 1; padding-left: 20px; background: var(--carvao); }
.tabela td:first-child { font-weight: 500; }
.tabela tbody tr { cursor: pointer; }
.tabela tbody tr:hover td { background: #0E101C; }
.tabela tbody tr:focus-visible { outline-offset: -3px; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabela .forte { font-weight: 600; color: var(--ouro); }
.tabela .td-rua { white-space: normal; min-width: 220px; }
.tabela tfoot td { border-bottom: 0; font-weight: 600; }
.tabela .chip { align-self: auto; }

.ficha-topo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e1); }
.ficha-end { font: 600 32px/1.1 var(--fonte); color: var(--ouro); }
.ficha-sub { color: var(--apagado); }
.ficha-serv { background: var(--carvao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; display: flex; flex-direction: column; gap: var(--e3); }
.ficha-serv-topo { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); flex-wrap: wrap; }
.ficha-serv-topo .adm-titulo { font-size: 18px; color: var(--branco); }
.ficha-serv-topo .chip { align-self: center; }
.ficha-serv .bt { width: auto; align-self: flex-start; }
.ficha-met { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--e2) var(--e4); }
.ficha-m2 { font: 700 34px/1 var(--fonte); color: var(--ouro); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ficha-det { color: var(--apagado); font-size: 15px; }
.ficha-linha { display: flex; align-items: center; flex-wrap: wrap; gap: var(--e2) var(--e4); }
.ficha-linha .chip { align-self: center; }
.trilha { display: flex; flex-direction: column; }
.trilha-item { position: relative; padding: 0 0 var(--e4) 30px; display: flex; flex-direction: column; gap: var(--e2); }
.trilha-item::before { content: ''; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--linha-forte); }
.trilha-item::after { content: ''; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--linha); }
.trilha-item:last-child { padding-bottom: 0; }
.trilha-item:last-child::after { display: none; }
.trilha-ok::before { background: var(--ambar); }
.trilha-nao::before { background: var(--vermelho); }
.trilha-atual::before { background: var(--branco); box-shadow: 0 0 0 4px rgba(240, 242, 251, .18); }
.trilha-topo { display: flex; justify-content: space-between; gap: var(--e3); }
.trilha-nome { font-weight: 500; }
.trilha-hora { font-size: 14px; color: var(--apagado); white-space: nowrap; text-align: right; }
.trilha-nao .trilha-hora { color: #FFA59C; font-weight: 600; }
.trilha-obs { font-size: 15px; background: #0E101C; border-radius: 14px; padding: var(--e2) var(--e3); }
.logo-linha { display: flex; align-items: center; gap: var(--e4); }
.logo-linha > div { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e2); }
.logo-previa { width: 104px; height: 104px; object-fit: contain; flex: none; background: var(--branco); border-radius: 22px; padding: var(--e2); }

@media (max-width: 560px) {
  .adm-nome { font-size: 19px; }
  .adm-abas-in { display: flex; }
  .adm-aba { flex: 1; padding: 0 var(--e2); }
  .total { padding: var(--e4); }
  .total-num { font-size: 26px; }
  .periodo-mes { font-size: 20px; }
  .ficha-end { font-size: 27px; }
  .adm-acoes .bt { flex-basis: 100%; }
  .tabela .td-rua { min-width: 150px; max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; animation-delay: 0s !important; transition: none !important; }
}

.minis .item-refazer { align-self: center; margin-left: auto; }

.passo-linha { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); margin-bottom: -10px; }
.passo-linha .passo { margin: 0; }
.item-refazer { display: inline-flex; align-items: center; gap: 4px; }
@media (min-width: 820px) { .totais { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 819px) { .totais > .total:last-child { grid-column: 1 / -1; } }

@media (max-width: 560px) { .adm-nome { font-size: 17px; } .adm-contrato { max-width: 38vw; padding-left: 14px; font-size: 15px; } }
