/* As telas de Entregar ao morador, no desenho aprovado (docs/telas/imagens/EntregarAoMorador.png): cabeçalho marinho com a marca, o campo
   grande, os blocos em chips. Cores, tamanhos e fontes são os do app aprovado (app/index.html). Tudo sob `.pt` para não mexer nas outras telas. */
.pt {
  --bg: #f3f1ec; --surf: #fffefb; --surf2: #eceae3; --ink: #1a221f; --muted: #6c756f; --line: #dcd6cb;
  --accent: #23394E; --accent-ink: #ffffff; --accent-soft: #e3ebf3; --brand: #23394E; --brand-ink: #f4f7fa;
  --alert: #a03528; --alert-soft: #f7e0dc; --warn: #94651a; --r: 12px; --tap: 58px;
  background: var(--bg); color: var(--ink); position: relative;
}
.pt * { box-sizing: border-box; }
.pt { line-height: 1.45; }
.pt button { line-height: 1.45; }
.pt-topo { display: flex; align-items: center; gap: 11px; padding: 9px 14px; min-height: 60px; background: var(--brand); color: var(--brand-ink); flex-shrink: 0; }
.pt-logo { display: flex; width: 30px; height: 30px; flex: 0 0 auto; }
.pt-logo svg { width: 30px; height: 30px; }
.pt-topo h1 { font-family: var(--disp); font-size: 17px; font-weight: 600; margin: 0; flex: 1; letter-spacing: .01em; min-width: 0; line-height: 1.25; }
.pt-sub { display: block; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 12px; font-weight: 400; opacity: .74; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-sub:empty { display: none; }
.pt-topo .pt-btn { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .28); color: var(--brand-ink); flex: 0 0 auto; border-style: solid; }
.pt-corpo { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.pt-corpo > * { flex-shrink: 0; }
.pt-pilha { display: flex; flex-direction: column; gap: 12px; }
.pt-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-nome { font-family: var(--disp); }
.pt-btn { font-family: var(--disp); font-weight: 600; font-size: 16px; min-height: var(--tap); padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surf); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.pt-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pt-btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pt-btn.ghost { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.pt-btn.danger { background: var(--alert-soft); border-color: var(--alert); color: var(--alert); border-style: solid; }
.pt-btn:disabled { opacity: .42; pointer-events: none; }
.pt-btn.sm { min-height: 42px; font-size: 14px; padding: 0 12px; width: auto; }
.pt-card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pt-rotulo { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pt input { width: 100%; font: inherit; color: var(--ink); background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-height: var(--tap); }
.pt input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pt input.pt-apto { font-family: var(--disp); font-size: 30px; font-weight: 700; text-align: center; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.pt input.pt-codigo { width: 104px !important; min-height: 46px; text-align: center; font-family: var(--disp); font-weight: 700; letter-spacing: .16em; }
.pt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-chip { font-family: var(--disp); font-weight: 600; font-size: 15px; padding: 11px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); cursor: pointer; }
.pt-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pt-chip.soft[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.pt .wa-ico { width: 40px; height: 40px; border-radius: 50%; border: none; background: #25D366; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex: 0 0 auto; }
.pt .wa-ico:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pt .wa-ico.feito { box-shadow: 0 0 0 3px color-mix(in srgb, #25D366 35%, transparent); }
.pt .pt-card .pt-btn[hidden], .pt .pt-chips[hidden] { display: none; }
.pt-dica { font-size: 13px; color: var(--muted); margin: 0; }
.pt-grupo { margin-top: 8px; }
.pt-erro { font-size: 14px; color: var(--alert); font-weight: 600; margin: 0; }
.pt-caixa-erro { background: var(--alert-soft); border-radius: 10px; padding: 12px 14px; }
.pt-h2 { font-family: var(--disp); font-size: 15px; font-weight: 600; margin: 14px 0 8px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pt-h2:first-child { margin-top: 0; }
.pt-lista { display: flex; flex-direction: column; gap: 8px; }
.pt-item { display: flex; align-items: center; gap: 10px; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; color: var(--ink); text-align: left; width: 100%; }
.pt-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; background: var(--surf2); flex: 0 0 auto; }
.pt-txt { flex: 1; min-width: 0; }
.pt-txt b { font-family: var(--disp); font-size: 15px; }
.pt-txt span { display: block; font-size: 12px; color: var(--muted); }
.pt-escolha { cursor: pointer; }
.pt-escolha[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pt-unidade { font-family: var(--disp); font-weight: 700; font-size: 24px; }
.pt-onde { font-family: var(--disp); font-weight: 700; font-size: 18px; }
.pt-aviso { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: 12px; font-size: 14px; }
.pt-tarja { background: var(--warn); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; text-align: center; flex-shrink: 0; }
.pt-tarja-recusa { background: var(--alert); }
.pt-rodape { background: var(--surf); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 10px; flex-shrink: 0; }
.pt-toast { pointer-events: none; position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 40; background: var(--ink, #1a221f); color: #f3f1ec; font-family: var(--disp); font-weight: 600; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, .24); max-width: 88vw; text-align: center; }
.pt-janela { position: absolute; inset: 0; background: rgba(26, 34, 31, .55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 5; }
.pt-janela[hidden] { display: none; }
.pt-caixa { background: var(--surf); border-radius: 16px; padding: 22px 20px 14px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.pt-caixa p { margin: 0; font-size: 18px; font-weight: 600; }

/* Cores da tela (Cadastros): a escolha do aparelho vale para estas telas também, e mais que o claro e o escuro do sistema. */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="light"]) .pt { --bg: #111614; --surf: #1a211e; --surf2: #232b27; --ink: #e9ece8; --muted: #95a09a; --line: #2e3833; --accent: #8FB6D4; --accent-ink: #11202c; --accent-soft: #1e2c39;
    --brand: #16242f; --brand-ink: #e8eff5; --ok: #5fb48c; --warn: #d0a355; --alert: #e0776a; --alert-soft: #3a201c; }
}
:root[data-tema="dark"] .pt { --bg: #111614; --surf: #1a211e; --surf2: #232b27; --ink: #e9ece8; --muted: #95a09a; --line: #2e3833; --accent: #8FB6D4; --accent-ink: #11202c; --accent-soft: #1e2c39;
  --brand: #16242f; --brand-ink: #e8eff5; --ok: #5fb48c; --warn: #d0a355; --alert: #e0776a; --alert-soft: #3a201c; }
