/* estilo.css — Telas para aprovar (#116). Só tokens da casa, tudo sob .apt. */
.apt { width: 100%; flex: 1 1 auto; min-width: 0; }
.apt-titulo h1 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: .2px; }
.apt-q { font-size: 15px; color: var(--muted); margin-top: 4px; }
.apt-aviso { color: var(--muted); font-size: 13px; margin: 12px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--ds-r-sm, 8px); }
.apt-erro { color: var(--ink-err); border-color: var(--ink-err); font-size: 13px; }
.apt-status { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; }
.apt-st { flex: 1; min-width: 130px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.apt-st b { display: block; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.apt-st span { font-size: 13px; color: var(--muted); }
.apt-st.p1 { border-left-color: var(--ink-err); }
.apt-st.p2 { border-left-color: var(--orange); }
.apt-st.p3 { border-left-color: var(--muted-2); }
.apt-dias { display: flex; align-items: flex-end; gap: 4px; position: relative; min-height: 64px; padding-bottom: 26px; }
.apt-dias > span { flex: 1; height: 40px; display: flex; align-items: flex-end; background: var(--panel-2); border-radius: 4px; }
.apt-dias > span i { display: block; width: 100%; background: var(--orange); border-radius: 4px; min-height: 2px; }
.apt-dias em { position: absolute; left: 14px; bottom: 8px; font-style: normal; font-size: 13px; color: var(--muted); }
.apt-barra { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.apt-ch { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 14px; font-weight: 600; cursor: pointer; }
.apt-ch.on { border-color: var(--orange); color: var(--ink); }
.apt-cartas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.apt-carta { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--muted-2); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.apt-carta.p1 { border-top-color: var(--ink-err); }
.apt-carta.p2 { border-top-color: var(--orange); }
.apt-cab { padding: 14px 16px 10px; display: flex; gap: 10px; align-items: flex-start; }
.apt-tit { min-width: 0; }
.apt-pri { font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 999px; color: var(--on-accent, #fff); background: var(--muted-2); flex: none; }
.apt-pri.p1 { background: var(--ink-err); }
.apt-pri.p2 { background: var(--orange); }
.apt-cab h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.apt-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.apt-espera { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.apt-thumbs { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; padding: 0 16px; }
.apt-th { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 170px; background: var(--panel-2); position: relative; display: block; }
.apt-th img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.apt-th i { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--overlay, rgba(0,0,0,.65)); color: var(--ink); padding: 2px 7px; border-radius: 6px; }
.apt-th-vazio { display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--muted-2); }
.apt-gate { margin: 0 16px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); white-space: pre-wrap; max-height: 150px; overflow: auto; }
.apt-par { margin: 12px 16px 0; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.apt-sem { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 5px; background: var(--muted-2); }
.apt-sem.ok { background: var(--ink-ok); }
.apt-sem.warn { background: var(--ink-warn); }
.apt-sem.err { background: var(--ink-err); }
.apt-pm { color: var(--muted); }
.apt-links { padding: 8px 16px 0; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.apt-links a { color: var(--ink-info); }
.apt-rod { list-style: none; margin: 8px 16px 0; padding: 0; font-size: 13px; color: var(--muted); }
.apt-rod li { padding: 4px 0; border-top: 1px solid var(--line-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apt-rod b { color: var(--ink-info); }
.apt-acao { margin-top: auto; padding: 14px 16px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.apt-acao input { min-height: 44px; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--ink); font: inherit; font-size: 14px; }
.apt-acao .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.apt-carta > .apt-erro { padding: 0 16px 14px; }
.apt-vazio { padding: 32px 16px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.apt-vazio p { color: var(--muted); font-size: 14px; margin: 0; }
.apt-hist { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.apt-hist li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.apt-hist li:last-child { border-bottom: 0; }
.btn:focus-visible, .apt-ch:focus-visible, .apt-acao input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 820px) {
  .apt-titulo h1 { font-size: 26px; }
  .apt-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .apt-st { min-width: 0; padding: 10px; }
  .apt-st b { font-size: 22px; }
  .apt-dias { grid-column: 1 / -1; }
  .apt-cartas { grid-template-columns: 1fr; }
  .apt-thumbs { grid-template-columns: 1fr 84px; }
  .apt-acao { grid-template-columns: 1fr 1fr; }
  .apt-acao input { grid-column: 1 / -1; order: -1; }
  .apt-espera { display: none; }
  .apt-hist .apt-espera { display: inline; margin-left: 0; }
}
