/* Portaria: coluna única pensada para o celular na mão de quem recebe os convidados. */
.door { max-width: 560px; margin: 0 auto; padding-block: 16px 48px; display: grid; gap: 18px; }
.door-top { display: flex; gap: 8px; align-items: center; }
.door-top select {
  flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--fg); font: 600 15px var(--font-body);
}
.back { padding: 0 10px; }
.whoami {
  margin: -8px 0 0; font-size: 13px; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; background: var(--accent-soft);
}
.whoami b { color: var(--fg); }

.counter { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px; }
.counter b { font-weight: 800; font-size: 44px; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); font-weight: 600; }
.bar { grid-column: 1 / -1; height: 6px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--fg); }

.scanner { display: grid; gap: 8px; }
.viewport {
  position: relative; aspect-ratio: 1; max-width: 100%; background: #111; border-radius: 14px; overflow: hidden;
}
.viewport video { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame {
  position: absolute; inset: 18%; border: 3px solid #f7f5f0; border-radius: 16px;
  box-shadow: 0 0 0 999px rgb(0 0 0 / .35);
}
.cam-idle {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  text-align: center; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.cam-idle p { margin: 0; max-width: 28ch; }

.result { border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; border: 2px solid; }
.result h2 { font-size: 30px; overflow-wrap: anywhere; }
.result p { margin: 0; }
.result-kind { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.result.ok { background: var(--yes-soft); border-color: var(--yes); }
.result.ok .result-kind { color: var(--yes); }
.result.warn { background: #f6ecd5; border-color: #8a5a00; }
.result.warn .result-kind { color: #8a5a00; }
.result.bad { background: var(--no-soft); border-color: var(--no); }
.result.bad .result-kind { color: var(--no); }

.manual { display: grid; gap: 10px; }
.manual-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.manual-head h2 { font-size: 24px; }
.manual-head input { max-width: 220px; }
.door-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.door-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.door-list li:last-child { border-bottom: 0; }
.door-list .info { flex: 1; min-width: 0; }
.door-list .info b { display: block; overflow-wrap: anywhere; }
.door-list .info small { color: var(--muted); }
.door-list li.in .info b { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--muted); color: var(--muted); }
.door-list .check { width: 40px; height: 40px; flex: none; }

.door-empty { padding: 20px 4px; margin: 0; }
.door-list .check .ico { width: 22px; height: 22px; }
.result h2 { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; }
.manual-head { flex-wrap: wrap; }
.manual-head h2 { flex: 1 1 auto; }
@media (max-width: 480px) { .manual-head input { max-width: none; flex: 1 1 100%; } }
