:root { --azul: #2B59C3; --fundo: #F6F7FB; --texto: #1B1F2A; --cinza: #6B7280; --borda: #E3E6EE; --ok: #1F9D55; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--fundo); color: var(--texto); padding-bottom: 76px; }
.topo { background: var(--azul); color: #fff; padding: 14px 16px; font-weight: 800; font-size: 20px; position: sticky; top: 0; z-index: 5; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; margin: 4px 0 12px; } h2 { font-size: 19px; margin: 0 0 8px; }
p { line-height: 1.5; }
.cartao { background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.miniatura { width: 100%; aspect-ratio: 816 / 1056; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; background: #fff; }
.miniatura svg { width: 100%; height: 100%; display: block; }
.botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
button, .botao { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 13px 12px; background: var(--azul); color: #fff; cursor: pointer; text-align: center; text-decoration: none; }
button.sec { background: #E9EEFB; color: var(--azul); }
button.feito { background: var(--ok); }
button:disabled { opacity: .55; cursor: default; }
.largo { grid-column: 1 / -1; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
input, select { font: inherit; width: 100%; padding: 12px; border: 1px solid var(--borda); border-radius: 10px; background: #fff; }
.linha { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.meta { color: var(--cinza); font-size: 14px; }
.estrelas { font-size: 28px; font-weight: 800; }
.abas { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--borda); padding-bottom: env(safe-area-inset-bottom); }
.abas a { flex: 1; text-align: center; padding: 16px 4px; color: var(--cinza); text-decoration: none; font-weight: 700; font-size: 14px; }
.abas a.ativa { color: var(--azul); }
.cronometro { position: fixed; inset: 0; background: rgba(27,31,42,.94); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 20; gap: 18px; }
.cronometro .tempo { font-size: 84px; font-weight: 800; font-variant-numeric: tabular-nums; }
.impressao { display: none; }
.aviso { background: #FFF7E0; border: 1px solid #F3D27A; border-radius: 12px; padding: 12px; font-size: 14px; }

@page { size: letter; margin: 0; }
@media print {
  body { background: #fff; padding: 0; }
  body > *:not(.impressao) { display: none !important; }
  .impressao { display: block; }
  .impressao .pagina { width: 8.5in; height: 10.9in; page-break-after: always; break-after: page; overflow: hidden; }
  .impressao .pagina svg { width: 100%; height: 100%; display: block; }
}
