/* MOVORÇA round 4 (UX fase 2). Mesmo vocabulário do round3.css: gold-2 #c2410c para texto,
   #b42318 para destrutivo, alvos de 44px. */

/* ---------- 5) Chip de grátis no cabeçalho mobile ---------- */
@media (max-width: 760px) {
  .nav-cta .quota-chip { display: inline-flex; align-items: center; white-space: nowrap; padding: 4px 8px; font-size: .72rem; }
  /* O "· N reservado em rascunho" continua para leitor de tela; na tela fica só o número. */
  .quota-chip-extra { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- 4) Revisão abaixo de 1180px ---------- */
.preview-toggle { display: none; }
.review-bar-info { display: none; }
@media (max-width: 1179px) {
  .preview-toggle { display: inline-flex; justify-content: center; min-height: 44px; width: 100%; margin: 4px 0 14px; }
  .preview-doc[hidden] { display: none; }
  .layout-live .preview-doc { margin-top: 4px; }

  .preview-submit .review-bar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0;
    display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
    padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: rgba(253, 250, 246, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(40, 24, 12, .12);
  }
  .preview-submit .review-bar .btn { flex: 0 0 auto; min-height: 48px; padding-left: 20px; padding-right: 20px; }
  .review-bar-info { display: grid; margin: 0; min-width: 0; flex: 1 1 auto; line-height: 1.15; }
  .review-bar-label { font-size: .75rem; color: var(--ink-dim); }
  .review-bar-total { font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
  .review-bar-info small { font-size: .74rem; color: #6f6a60; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* O fim da página e os toasts ficam acima da barra. */
  body.has-review-bar { padding-bottom: calc(var(--review-bar-h, 76px) + 8px); }
  body.has-review-bar .toasts { bottom: calc(var(--review-bar-h, 76px) + 12px); }
}

/* Toast criado pelo JS (copiar link): flutuante em qualquer largura. */
.toasts.is-live { position: fixed; z-index: 45; top: auto; bottom: 16px; right: 16px; left: auto; width: min(380px, calc(100% - 32px)); margin: 0; }
.toasts.is-live .toast { box-shadow: var(--shadow); }
@media (max-width: 760px) { .toasts.is-live { left: 12px; right: 12px; width: auto; } }

/* ---------- 6) Histórico do grátis: anteriores bloqueados ---------- */
.sheet-table tr.is-locked td { color: var(--ink-dim); }
.locked-blur { filter: blur(5px); user-select: none; pointer-events: none; }
.lock-ico { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--gold-2); }
.sheet-tag.is-locked { background: #f1ece6; color: #5c544e; }
.sheet-table tr.is-locked .btn { min-height: 44px; display: inline-flex; align-items: center; }
.locked-invite { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; margin-top: 16px; }
.locked-invite p { margin: 0; flex: 1 1 280px; }
.locked-invite .btn { min-height: 44px; }

/* ---------- 7) Próximos passos no orçamento gerado ---------- */
.next-steps { padding: 18px 20px; margin: 16px 0; }
.next-steps h2 { font-size: 1.15rem; margin: 0 0 12px; }
.next-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.next-steps-list li, .next-steps-list form { margin: 0; display: flex; }
.next-step {
  display: grid; gap: 2px; align-content: center; width: 100%; min-height: 64px; padding: 12px 14px; text-align: left;
  font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.next-step b { font-size: .98rem; }
.next-step small { color: #6f6a60; font-size: .82rem; }
.next-step:hover, .next-step:focus-visible { border-color: #f3c3ad; background: #fff8f4; }
.next-step:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.next-step.is-primary { background: var(--gold-2); border-color: var(--gold-2); color: #fff; }
.next-step.is-primary small { color: #fff; }
.next-step.is-primary:hover, .next-step.is-primary:focus-visible { background: #9a3412; border-color: #9a3412; }
.lock-tag { margin-left: 6px; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: #f1ece6; color: #5c544e; vertical-align: 2px; }

/* ---------- Round 5: header mobile sem espremer a logo ---------- */
@media (max-width: 760px) {
  .brand, .brand-logo { flex: none; }
  .brand-logo { width: auto; max-width: none; }
  .nav-cta { min-width: 0; }
  .nav-cta .btn, .nav-burger, .account-pill { min-height: 44px; min-width: 44px; }
}
@media (max-width: 420px) {
  /* "Criar" vira só o ícone; o texto continua para leitor de tela (nome acessível do link). */
  .nav-cta .btn-gold { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .nav-cta .btn-gold .nav-cta-short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-cta .btn-gold .spark { margin: 0; }
  .nav-glass { gap: 8px; }
  .nav-cta { gap: 6px; }
}
@media (max-width: 420px) {
  .nav-cta .account-menu { display: none; }
}
/* Entre 421 e 760px a conta continua no avatar; os links só aparecem no hambúrguer abaixo de 421px. */
@media (min-width: 421px) {
  .nav-links.is-open .nav-account-link { display: none; }
}
/* R17: no mobile, o toast de 'orçamento gerado' não cobre 'Próximos passos': fica no fluxo, acima do conteúdo. */
@media (max-width: 760px) {
  body:has(.next-steps) .toasts:not(.is-live) { position: static; left: auto; right: auto; bottom: auto; width: auto; margin: 12px 12px 0; z-index: auto; }
}

/* R17 (roadmap 10): miniaturas com a cor da marca, logo e assinatura dos modelos existentes. */
.look-paper { display: grid; grid-auto-rows: min-content; gap: 5px; padding: 0 0 8px; background: var(--doc-paper, #fff); border-color: var(--doc-line, #eadfd4); height: auto; min-height: 86px; }
.look-paper .lp-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--doc-head, #1c1914); }
.look-paper .lp-head i { height: 5px; flex: 1; border-radius: 2px; background: var(--doc-head-ink, #fff); opacity: .7; }
.look-paper .lp-logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; overflow: hidden; background: var(--doc-accent, #f15a24); color: #fff; font: 700 .55rem/1 inherit; text-transform: uppercase; }
.look-paper .lp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.look-paper .lp-line { height: 5px; margin: 0 8px; border-radius: 2px; background: var(--doc-line, #e6dfd2); }
.look-paper .lp-line.is-short { width: 55%; }
.look-paper .lp-total { justify-self: end; width: 36%; height: 7px; margin-right: 8px; border-radius: 2px; background: var(--doc-accent, #f15a24); }
.look-paper .lp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 8px 0; }
.look-paper .lp-sign i { height: 10px; border-bottom: 1px solid #171513; }
.look-paper--lista .lp-line { padding: 4px 0; background: var(--doc-row, #fff6f1); border: 1px solid var(--doc-line, #eadfd4); }
.look-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.look-tags em { font-style: normal; font-size: .72rem; line-height: 1.2; color: #3d3a35; background: #f3f1ec; border-radius: 999px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 4px; }
.look-tags em b { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.look-tags .look-tag-sign { color: #1d3f63; background: #eaf1f8; }
.look-card { cursor: default; }
.look-showcase .palette-row { margin-bottom: 12px; }
.profile-look { margin-top: 24px; }
/* R18: alvo de toque de pelo menos 44px nos botões de cor (vitrine e revisão). */
.palette-swatch { min-height: 44px; min-width: 44px; box-sizing: border-box; }
.look-save-status:empty { display: none; }
