@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("/montserrat-800.woff2") format("woff2"); }
:root {
  --preto: #0D0C0A; --amarelo: #FBBF07; --amarelo-escuro: #7a5900; --amarelo-claro: #fff4c7;
  --papel: #f4f3ee; --linha: #dddcd3; --texto: #14130f; --cinza: #35352f; --ok: #26774a; --erro: #b3261e;
  --fonte: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--papel); color: var(--texto); font-family: var(--fonte); font-size: 16px; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

/* topo fixo: cabeçalho, progresso do projeto e aviso da fila */
.fixo { position: sticky; top: 0; z-index: 5; }
.topo { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--preto); color: #fff; border-bottom: 3px solid var(--amarelo); }
.logo { height: 38px; width: auto; }
.topo-txt { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.topo-txt b { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.topo-txt span { font-size: 12px; color: #d8d8cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progresso { background: var(--preto); color: #fff; padding: 8px 16px 10px; font-size: 13px; font-weight: 600; }
.progresso .linha-prog { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.progresso .linha-prog span { color: var(--amarelo); white-space: nowrap; }
.barra { height: 8px; border-radius: 4px; background: #e2e1da; overflow: hidden; }
.progresso .barra { background: #3a3934; }
.barra i { display: block; height: 100%; background: var(--amarelo); border-radius: 4px; transition: width .3s; }
.fila { background: var(--amarelo); color: var(--preto); font-size: 13px; font-weight: 600; padding: 7px 16px; text-align: center; }
.fila.erro-fila { background: var(--erro); color: #fff; }

main { padding: 14px 14px 110px; max-width: 720px; margin: 0 auto; }
h1 { font-size: 20px; font-weight: 800; margin: 4px 0 12px; }
h2 { font-size: 16px; font-weight: 700; margin: 0; }
.card { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.card.projeto { border-top: 4px solid var(--preto); cursor: pointer; }
.card.projeto.pronto { border-top-color: var(--amarelo); }
.card.projeto .barra { margin-top: 12px; }
.prog-txt { font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--cinza); }
.sub { color: var(--cinza); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.campo { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.campo input, textarea { padding: 13px 12px; border: 1px solid #b9b8ae; border-radius: 9px; background: #fff; font-weight: 400; font-size: 16px; }
textarea { min-height: 80px; width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 10px;
  border: 1px solid #b9b8ae; background: #fff; color: var(--texto); font-weight: 700; cursor: pointer; }
.btn.amarelo { background: var(--amarelo); border-color: var(--amarelo); color: var(--preto); }
.btn.preto { background: var(--preto); border-color: var(--preto); color: #fff; }
.btn.cheio { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--amarelo-escuro); font-weight: 700; padding: 10px 6px; cursor: pointer; min-height: 44px; }
.link.claro { color: var(--amarelo); }
.erro { background: #fdecea; color: var(--erro); border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.aviso { background: var(--amarelo-claro); border: 1px solid var(--amarelo); color: #4a3700; border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.ok-msg { background: #e8f3ec; color: var(--ok); border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.voltar { margin: 0 0 4px -6px; }

/* tela de entrada */
html.entrada, body.entrada { background: var(--preto); min-height: 100%; }
body.entrada .fixo { display: none; }
body.entrada main { max-width: 440px; padding-top: max(36px, env(safe-area-inset-top)); }
.marca { text-align: center; color: #fff; margin: 12px 0 26px; }
.marca img { width: 230px; max-width: 70%; height: auto; }
.marca .rotulo { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .32em; color: var(--amarelo); }
body.entrada .card { border: 0; border-radius: 14px; padding: 20px 18px; }
body.entrada h1 { margin-top: 0; }

/* seções do projeto */
.secao { border-top: 4px solid var(--preto); }
.secao.feita { border-top-color: var(--amarelo); }
.secao-cab { display: flex; align-items: center; gap: 12px; }
.secao-cab .tit { flex: 1; min-width: 0; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--preto); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; }
.secao.feita .num { background: var(--amarelo); color: var(--preto); font-size: 18px; }
.secao.recolhida { cursor: pointer; padding-top: 12px; padding-bottom: 12px; }
.secao.recolhida .sub { margin-top: 2px; }
.abrir { font-size: 13px; font-weight: 700; color: var(--amarelo-escuro); white-space: nowrap; }
.selo { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #e9e8e1; color: var(--cinza); white-space: nowrap; }
.selo.falta { background: #fbe3e1; color: #8c1d18; border: 1px solid #e9a19b; }
.acoes { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.acoes .btn { flex: 1; min-width: 130px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.mini { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #e7e6df; }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini .rot { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; font-weight: 600; padding: 3px 5px; background: rgba(13, 12, 10, .78); color: #fff; }
.mini .rot.espera { background: rgba(122, 89, 0, .92); }
.mini .x { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(13, 12, 10, .78);
  color: #fff; font-size: 22px; line-height: 36px; padding: 0; cursor: pointer; }
.mini.video { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--cinza); }

/* fotos que não podem faltar, dentro de cada etapa */
.itens { margin-top: 12px; border-top: 1px solid var(--linha); }
.item { padding: 10px 0; border-bottom: 1px solid var(--linha); }
.item-cab { display: flex; align-items: center; gap: 8px; }
.marca-item { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b9b8ae; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 14px; }
.item.ok .marca-item { background: var(--amarelo); border-color: var(--amarelo); color: var(--preto); }
.item-tit { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.item-btn { min-height: 46px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
.item-gal { min-height: 46px; padding: 0 10px; font-size: 13px; }
.item .galeria { margin-top: 8px; padding-left: 34px; grid-template-columns: repeat(auto-fill, 84px); }
.extras { margin-top: 12px; }
.extras-tit { font-size: 13px; font-weight: 700; color: var(--cinza); text-transform: uppercase; letter-spacing: .06em; }
.extras .acoes { margin-top: 8px; }

/* conferência e assinaturas */
.conf-secao { padding: 10px 0; border-bottom: 1px solid var(--linha); }
.conf-secao:last-child { border-bottom: 0; }
.conf-cab { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.conf-cab span { color: var(--cinza); font-weight: 600; white-space: nowrap; }
.conf-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 5px; margin-top: 8px; }
.conf-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; background: #e7e6df; }
.declaracao { font-size: 15px; line-height: 1.5; font-weight: 600; background: var(--papel); border-left: 4px solid var(--amarelo);
  padding: 10px 12px; margin: 10px 0 14px; border-radius: 0 8px 8px 0; }
.assin { position: relative; height: 190px; border: 2px dashed #b9b8ae; border-radius: 10px; background: #fff; overflow: hidden; }
.assin.com-traco { border-style: solid; border-color: var(--preto); }
.assin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; z-index: 2; cursor: crosshair; }
.assin-linha { position: absolute; left: 18px; right: 18px; bottom: 44px; border-bottom: 1.5px solid #c9c8bf; }
.assin-dica { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; color: #8a897f; font-weight: 600; }
.assin.com-traco .assin-dica { visibility: hidden; }
.card > h2 + .campo { margin-top: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 14px 0 6px; min-height: 44px; }
.check input { width: 24px; height: 24px; accent-color: var(--preto); }

/* rodapé fixo com o botão de concluir */
.rodape { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; border-top: 1px solid var(--linha);
  padding: 10px 14px max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(13, 12, 10, .08); }
.rodape .btn { max-width: 692px; margin: 0 auto; display: flex; width: 100%; min-height: 56px; font-size: 16px; }
.rodape .btn:disabled { opacity: 1; background: var(--preto); border-color: var(--preto); color: #fff; }
.oculto { display: none; }
