[hidden] { display: none !important; }
body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }

.faixa {
  background: var(--band); color: var(--on-band);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
}
.faixa img { width: 40px; height: 40px; border-radius: 50%; }
.faixa b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .5px; }
.faixa span { margin-left: auto; font-size: 13px; opacity: .8; }

main { max-width: 480px; margin: 0 auto; padding: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
section[hidden] { display: none; }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; margin: 8px 0 12px; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
p { margin: 0 0 12px; }
.suave { color: var(--muted); font-size: 14px; }

.cartao {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-bottom: 16px;
}

label { display: block; font-weight: 500; margin: 12px 0 6px; }
input[type=text], input[type=tel], input[type=password], select {
  width: 100%; font: inherit; font-size: 18px; padding: 12px; min-height: 48px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
}
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--steel); outline-offset: 2px;
}
.marcar { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.marcar input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--brand); }

button, .botao {
  font: inherit; font-weight: 700; font-size: 18px; min-height: 52px; padding: 12px 20px;
  border: 0; border-radius: 14px; cursor: pointer; width: 100%;
  background: var(--steel); color: #fff; text-align: center; text-decoration: none; display: block;
}
button.primario, .botao.primario { background: var(--brand); color: var(--brand-ink); }
button.neutro { background: transparent; color: var(--ink); border: 2px solid var(--line); }
button[disabled] { opacity: .55; cursor: default; }
.acoes { display: grid; gap: 10px; margin-top: 16px; }

.aviso { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.aviso.erro { background: var(--warn-soft); color: var(--warn-ink); border: 1px solid var(--warn); }
.aviso.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); }
.aviso.info { background: var(--steel-soft); color: var(--steel); }

/* relogio e botao de bater */
.relogio { font-family: var(--display); font-size: 64px; line-height: 1; text-align: center; letter-spacing: 1px; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.data { text-align: center; color: var(--muted); margin: 4px 0 16px; }
.data::first-letter { text-transform: uppercase; }
.bater {
  min-height: 112px; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 1px;
  background: var(--brand); color: var(--brand-ink); border-radius: 20px; text-transform: uppercase;
}
.total { text-align: center; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.total b { color: var(--ink); font-size: 18px; }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lista li:last-child { border-bottom: 0; }
.lista time { font-variant-numeric: tabular-nums; font-weight: 700; }

/* camera */
.camera { position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; }
.camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.camera .guia { position: absolute; inset: 12% 18%; border: 3px dashed rgba(255,255,255,.7); border-radius: 50%; pointer-events: none; }

/* comprovante */
.selo { width: 88px; height: 88px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 52px; margin: 8px auto 12px; }
.selo.atencao { background: var(--warn); color: #3b2500; }
.comprovante dt { color: var(--muted); font-size: 13px; margin-top: 10px; }
.comprovante dd { margin: 0; font-weight: 700; font-size: 18px; word-break: break-word; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px !important; font-weight: 400 !important; }

/* instalar */
.passos { counter-reset: p; list-style: none; margin: 8px 0; padding: 0; }
.passos li { counter-increment: p; display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.passos li::before { content: counter(p); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--steel); color: #fff; display: grid; place-items: center; font-weight: 700; }
.passos svg { flex: none; width: 36px; height: 36px; color: var(--steel); }
details summary { cursor: pointer; font-weight: 500; padding: 8px 0; }
