/* Painel do cliente (v2, desenho de 28/09/2026).
   Paleta e tipografia da VEENE (decisão de 29/07/2026, B1 + B4), com o tema
   neutro de 14/08/2026 para cliente cuja marca não se mistura com a da casa.

   Regras de desenho que vieram do feedback da Roberta (28/09):
   - texto de leitura a 17px, nunca menos de 14px em nada que se lê;
   - todo alvo de toque com 48px de altura ou mais;
   - um assunto por tela, e o que é detalhe fica dobrado num <details>;
   - estado dito em palavras ("Esperando você"), nunca só em cor ou ícone. */

:root {
  --bg: #F3EBE2;
  --surface: #FBF6EF;
  --surface2: #EBD8CD;
  --ink: #241B15;
  --muted: #6E5A4C;
  --line: #DFCDBD;
  --brand: #5B2333;
  --brand-soft: #E9D5DA;
  --action: #B8642F;
  --action-ink: #FFFFFF;
  --action-soft: #F2DCCA;
  --ok: #2F6B4F;
  --ok-soft: #DCEBE2;
  --warn: #8A5200;
  --warn-soft: #F0E0C0;
  --logo: #5B2333;
  --logo-traco: #5B2333;
  --c1: #3D5A80; --c1-soft: #DCE6F1;
  --c2: #5B2333; --c2-soft: #E9D5DA;
  --c3: #B8642F; --c3-soft: #F2DCCA;
  --c4: #2F6B4F; --c4-soft: #DCEBE2;
  --c5: #8A5200; --c5-soft: #F0E0C0;
  --display: "Archivo", "Avenir Next", "Trebuchet MS", sans-serif;
  --body: "Literata", Georgia, serif;
  --sombra: 0 1px 2px rgba(36,27,21,.06), 0 4px 14px rgba(36,27,21,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #241B15; --surface: #2E241C; --surface2: #3B2D22; --ink: #F3EBE2;
    --muted: #C8B4A0; --line: #45362A; --brand: #D8A3AE; --brand-soft: #462B33;
    --action: #E0955F; --action-ink: #241B15; --action-soft: #46301F;
    --ok: #7FC3A1; --ok-soft: #1E3A2C; --warn: #E0A23F; --warn-soft: #443114;
    --logo: #F3EBE2; --logo-traco: #E0955F;
    --c1: #9DB7D6; --c1-soft: #26313D; --c2: #D8A3AE; --c2-soft: #462B33;
    --c3: #E0955F; --c3-soft: #46301F; --c4: #7FC3A1; --c4-soft: #1E3A2C;
    --c5: #E0A23F; --c5-soft: #443114;
    --sombra: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #241B15; --surface: #2E241C; --surface2: #3B2D22; --ink: #F3EBE2;
  --muted: #C8B4A0; --line: #45362A; --brand: #D8A3AE; --brand-soft: #462B33;
  --action: #E0955F; --action-ink: #241B15; --action-soft: #46301F;
  --ok: #7FC3A1; --ok-soft: #1E3A2C; --warn: #E0A23F; --warn-soft: #443114;
  --logo: #F3EBE2; --logo-traco: #E0955F;
  --c1: #9DB7D6; --c1-soft: #26313D; --c2: #D8A3AE; --c2-soft: #462B33;
  --c3: #E0955F; --c3-soft: #46301F; --c4: #7FC3A1; --c4-soft: #1E3A2C;
  --c5: #E0A23F; --c5-soft: #443114;
  --sombra: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
}

/* Tema neutro: some a paleta, some a tipografia da casa, some o traço. */
:root[data-marca="neutra"] {
  --bg: #F6F4F0; --surface: #FFFFFF; --surface2: #EFECE6; --ink: #1F1C22;
  --muted: #6B6573; --line: #E2DDD4; --brand: #3D4A5C; --brand-soft: #E3E8EE;
  --action: #3D4A5C; --action-ink: #FFFFFF; --action-soft: #E3E8EE;
  --ok: #3E7050; --ok-soft: #E1EDE6; --warn: #8A4E36; --warn-soft: #F2E4DE;
  --c1: #3D4A5C; --c1-soft: #E3E8EE; --c2: #3D4A5C; --c2-soft: #E3E8EE;
  --c3: #8A4E36; --c3-soft: #F2E4DE; --c4: #3E7050; --c4-soft: #E1EDE6;
  --c5: #6B6573; --c5-soft: #EFECE6;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root[data-marca="neutra"]:not([data-theme="light"]) {
    --bg: #17161A; --surface: #201F24; --surface2: #2A2930; --ink: #F1EFEA;
    --muted: #A8A3B0; --line: #34323A; --brand: #A9BCD4; --brand-soft: #262E38;
    --action: #A9BCD4; --action-ink: #17161A; --action-soft: #262E38;
    --ok: #7FBF96; --ok-soft: #1E3328; --warn: #D79A80; --warn-soft: #38261F;
    --c1: #A9BCD4; --c1-soft: #262E38; --c2: #A9BCD4; --c2-soft: #262E38;
    --c3: #D79A80; --c3-soft: #38261F; --c4: #7FBF96; --c4-soft: #1E3328;
    --c5: #A8A3B0; --c5-soft: #2A2930;
  }
}
:root[data-marca="neutra"][data-theme="dark"] {
  --bg: #17161A; --surface: #201F24; --surface2: #2A2930; --ink: #F1EFEA;
  --muted: #A8A3B0; --line: #34323A; --brand: #A9BCD4; --brand-soft: #262E38;
  --action: #A9BCD4; --action-ink: #17161A; --action-soft: #262E38;
  --ok: #7FBF96; --ok-soft: #1E3328; --warn: #D79A80; --warn-soft: #38261F;
  --c1: #A9BCD4; --c1-soft: #262E38; --c2: #A9BCD4; --c2-soft: #262E38;
  --c3: #D79A80; --c3-soft: #38261F; --c4: #7FBF96; --c4-soft: #1E3328;
  --c5: #A8A3B0; --c5-soft: #2A2930;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
/* `elemento.hidden = true` some de verdade, ganhe de quem ganhar. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  /* espaço para a barra de baixo */
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: contain;
}
button, input, select, textarea { font: inherit; color: var(--ink); }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(24px, 6vw, 30px); line-height: 1.15; color: var(--brand); }
h2:focus { outline: none; }
p { margin: 0; }
b { font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.tela-aviso {
  max-width: 480px;
  margin: 18vh auto 0;
  padding: 0 24px;
  text-align: center;
  color: var(--muted);
}
.tela-aviso h1 { font-family: var(--display); color: var(--brand); font-size: 24px; }

/* ---------- topo ---------- */
.topo { padding: 14px 0 10px; }
.topo-in { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.voltar {
  width: 48px; height: 48px;
  margin-left: -10px;
  border: 0; background: transparent; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--brand);
}
.voltar:hover { background: var(--surface2); }
.voltar svg { width: 26px; height: 26px; }
.logo { height: 16px; width: auto; display: block; }
.logo g { stroke: var(--logo); }
.logo .traco { stroke: var(--logo-traco); }
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
  margin: 0;
  margin-left: auto;
}
:root[data-tela="inicio"] h1 { margin-left: 0; }
:root[data-tela="inicio"] .logo + h1 { margin-left: auto; }

/* ---------- telas ---------- */
.tela { padding-top: 8px; animation: entra .18s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tela > h2 { margin-top: 6px; }
.sub { color: var(--muted); margin: 6px 0 18px; font-size: 16px; }
.mini { color: var(--muted); font-size: 14px; margin-top: 10px; }
.oi { font-size: 18px; margin: 6px 0 16px; color: var(--ink); }

/* ---------- as portas do início ---------- */
.portas { display: grid; gap: 12px; }
.porta {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  min-height: 84px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: inherit;
  box-shadow: var(--sombra);
  transition: transform .15s ease, border-color .15s ease;
}
.porta:hover { border-color: var(--brand); transform: translateY(-1px); }
.porta:active { transform: scale(.99); }
.porta.com-pend { border-color: var(--action); }
.porta-icone {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
}
.porta-icone svg { width: 28px; height: 28px; }
.porta-icone.c1 { background: var(--c1-soft); color: var(--c1); }
.porta-icone.c2 { background: var(--c2-soft); color: var(--c2); }
.porta-icone.c3 { background: var(--c3-soft); color: var(--c3); }
.porta-icone.c4 { background: var(--c4-soft); color: var(--c4); }
.porta-icone.c5 { background: var(--c5-soft); color: var(--c5); }
.porta-txt { display: grid; gap: 2px; min-width: 0; }
.porta-txt b { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }
.porta-txt span { font-size: 15px; color: var(--muted); line-height: 1.35; }
.porta-seta { color: var(--muted); }
.porta-seta svg { width: 22px; height: 22px; }
.pend {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 999px;
  background: var(--action); color: var(--action-ink);
  font-family: var(--display); font-weight: 700; font-size: 14px; font-style: normal;
  font-variant-numeric: tabular-nums;
}

/* ---------- a barra de baixo ---------- */
.barra {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.barra { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 640px; margin: 0 auto; }
@media (min-width: 640px) {
  .barra { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 16px 16px 0 0; }
}
.barra-bt {
  position: relative;
  display: grid; justify-items: center; gap: 3px;
  padding: 10px 4px 8px;
  min-height: 60px;
  border: 0; background: transparent;
  color: var(--muted);
  font-family: var(--display); font-size: 12px; font-weight: 600;
}
.barra-bt svg { width: 24px; height: 24px; }
.barra-bt.on { color: var(--brand); }
.barra-bt.on::after {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
}
.barra-bt .pend {
  position: absolute; top: 5px; left: calc(50% + 6px);
  min-width: 20px; height: 20px; font-size: 12px; padding: 0 6px;
}

/* ---------- botões ---------- */
.botao-cheio, .botao-ok, .botao-leve {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: filter .15s ease, background .15s ease;
}
.botao-cheio { background: var(--action); color: var(--action-ink); }
.botao-cheio:hover { filter: brightness(1.06); }
.botao-cheio.grande { width: 100%; min-height: 60px; font-size: 18px; margin-top: 8px; }
.botao-cheio[disabled] { background: var(--surface2); color: var(--muted); cursor: default; }
.botao-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.botao-ok:hover { background: var(--ok); color: #fff; }
.botao-leve { background: transparent; color: var(--muted); border-color: var(--line); }
.botao-leve:hover { border-color: var(--muted); }
form .botao-cheio { margin-top: 16px; width: 100%; }

/* ---------- dobrado: só abre quem quer ---------- */
.saiba {
  margin-top: 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.saiba summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  min-height: 48px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--brand);
}
.saiba summary::-webkit-details-marker { display: none; }
.saiba summary::before {
  content: ""; width: 9px; height: 9px;
  border-right: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s ease; margin-right: 4px;
}
.saiba[open] summary::before { transform: rotate(45deg); }
.saiba > :not(summary) { margin-left: 16px; margin-right: 16px; }
.saiba > :last-child:not(summary) { margin-bottom: 16px; }
.saiba .rotulo { margin-top: 12px; }
.lista-simples { margin: 0 16px 16px; padding-left: 18px; font-size: 16px; }
.lista-simples li { margin: 6px 0; }
.lista-simples li b { color: var(--ink); }

/* ---------- listas (roteiros, pedidos) ---------- */
.lista { display: grid; gap: 10px; }
.mes-titulo {
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 2px; font-weight: 700;
}
.mes-titulo:first-child { margin-top: 0; }
.linha {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px 14px 12px 12px;
  min-height: 80px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  transition: border-color .15s ease;
}
.linha:hover { border-color: var(--brand); }
.linha.espera { border-color: var(--action); }
.linha-capa {
  width: 56px; height: 70px; border-radius: 10px; object-fit: cover;
  background: var(--surface2);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--muted);
}
.linha-txt { display: grid; gap: 3px; min-width: 0; }
.linha-txt b { font-family: var(--display); font-size: 17px; line-height: 1.25; color: var(--ink); }
.linha-txt > span { font-size: 14px; color: var(--muted); }
.linha-seta { color: var(--muted); }
.linha-seta svg { width: 22px; height: 22px; }

.selo {
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 11px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  margin-top: 4px;
}
.selo.ok { background: var(--ok-soft); color: var(--ok); }
.selo.acao { background: var(--action-soft); color: var(--action); }
.selo.aviso { background: var(--warn-soft); color: var(--warn); }
.selo.neutro { background: var(--surface2); color: var(--muted); }
.tag {
  display: inline-block; width: fit-content;
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px;
  background: var(--brand-soft); color: var(--brand);
}

/* ---------- cartões e formulários ---------- */
.cartao {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
}
.campo { display: block; margin-top: 12px; }
.campo:first-child { margin-top: 0; }
.rotulo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin: 0 0 6px;
}
.rotulo i { font-style: normal; font-weight: 400; }
textarea, input[type="url"], input[type="text"], input[type="date"], input[type="number"], select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 11px 14px;
  font-size: 17px;
}
input[type="date"] { -webkit-appearance: none; appearance: none; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
textarea:focus, input:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px var(--action-soft); }
.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 12px; }
.numeros .campo { margin-top: 0; }
.numeros input { font-variant-numeric: tabular-nums; }
.recibo { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.recibo b { color: var(--ink); }
.vazio {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- um roteiro ---------- */
.peca-topo { display: grid; gap: 6px; margin-bottom: 14px; }
.peca-topo .selo { margin: 0; }
.peca-topo .sub { margin: 0; }
.arte {
  position: relative;
  background: var(--surface2);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  margin: 0 auto 6px;
}
.arte img, .arte video { width: 100%; height: 100%; object-fit: contain; display: block; }
.arte .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  width: 44px; height: 44px; font-size: 22px; line-height: 1;
}
.nav.prev { left: 8px; }
.nav.next { right: 8px; }
.contador { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }

.fala-bloco {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
}
.fala-bloco .rotulo { margin-bottom: 8px; }
.fala { white-space: pre-wrap; font-size: 18px; line-height: 1.6; }
.legenda { white-space: pre-wrap; font-size: 16px; margin-bottom: 8px; }
.dicas { margin: 4px 0 8px; padding-left: 22px; font-size: 16px; }
.dicas li { margin: 5px 0; }

.bloco-gancho {
  margin-top: 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
}
.bloco-gancho.ok { border-color: var(--ok); }
.opcoes { display: grid; gap: 10px; }
.opcao {
  display: grid; grid-template-columns: 36px 1fr; gap: 3px 12px; align-items: start;
  text-align: left; padding: 14px; min-height: 56px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg); color: inherit;
  transition: border-color .15s ease;
}
.opcao:hover { border-color: var(--brand); }
.opcao .letra {
  grid-row: 1 / span 2;
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  background: var(--surface2); color: var(--muted);
}
.opcao .tela { font-weight: 600; font-size: 17px; line-height: 1.35; }
.opcao .fala { font-size: 15px; color: var(--muted); font-style: italic; line-height: 1.4; }
.opcao.on { border-color: var(--ok); background: var(--ok-soft); }
.opcao.on .letra { background: var(--ok); color: #fff; }
.opcao[disabled] { cursor: default; }

.decisao {
  margin-top: 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
}
.decisao.aprovado { border-color: var(--ok); }
.decisao.ajuste { border-color: var(--action); }
.acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .acoes { grid-template-columns: 1fr; } }
.acoes button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  border: 1.5px solid var(--line);
  background: transparent;
  transition: background .15s ease;
}
.acoes .sim { border-color: var(--ok); color: var(--ok); }
.acoes .sim.on, .acoes .sim:hover { background: var(--ok); color: #fff; }
.acoes .nao { border-color: var(--action); color: var(--action); }
.acoes .nao.on, .acoes .nao:hover { background: var(--action); color: var(--action-ink); }
.ajuste-box { margin-top: 12px; }
.ajuste-box .botao-cheio { margin-top: 10px; width: auto; }
.travado {
  margin-top: 16px;
  background: var(--surface2);
  border-radius: 14px;
  padding: 14px 16px;
}
.travado p { margin-top: 4px; }

/* ---------- pedidos ---------- */
.pedido { display: grid; gap: 8px; }
.pedido h3 { font-size: 18px; line-height: 1.3; }
.pedido .detalhe { color: var(--muted); font-size: 16px; white-space: pre-wrap; }
.pedido.feito { opacity: .75; border-color: var(--ok); }
.pedido.duvida { border-color: var(--action); }
.pedido-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pedido-acoes > * { flex: 1 1 auto; }
.pedido .saiba { margin-top: 0; }
.pedido .saiba .detalhe { margin: 0 16px 14px; }

/* ---------- caderno ---------- */
.abas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--surface2); border-radius: 14px; padding: 4px;
  margin-bottom: 14px;
}
.aba {
  min-height: 46px; border: 0; border-radius: 11px;
  background: transparent; color: var(--muted);
  font-family: var(--display); font-weight: 700; font-size: 16px;
  transition: background .15s ease, color .15s ease;
}
.aba[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--sombra); }
.caderno-lista { margin-top: 20px; }
.semana {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin-top: 10px;
  overflow: hidden;
}
.semana-cab {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 16px;
  background: var(--brand-soft);
  font-family: var(--display);
}
.semana-cab b { color: var(--brand); font-size: 15px; font-weight: 700; }
.semana-cab span { color: var(--muted); font-size: 14px; }
.nota { padding: 12px 16px; border-top: 1px solid var(--line); }
.semana .nota:first-of-type { border-top: 0; }
.lista > .nota { border: 1.5px solid var(--line); border-radius: 14px; }
.nota-topo { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.nota .dia { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--brand); }
.nota p { font-size: 16px; white-space: pre-wrap; }
.nota a { color: var(--action); font-size: 15px; word-break: break-all; }
.apagar {
  margin-left: auto;
  width: 40px; height: 40px; margin-right: -8px;
  border: 0; background: transparent; border-radius: 999px;
  color: var(--muted); display: grid; place-items: center;
}
.apagar:hover { background: var(--surface2); color: var(--action); }
.apagar svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.chip {
  display: grid; gap: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 12px; min-width: 88px;
  font-size: 12px; color: var(--muted);
  font-family: var(--display);
}
.chip b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }

/* ---------- falar com a gente ---------- */
.zap {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 18px;
  min-height: 52px;
  border: 1.5px solid var(--ok);
  border-radius: 14px;
  color: var(--ok);
  background: var(--ok-soft);
  font-family: var(--display); font-weight: 700; font-size: 16px;
  text-decoration: none;
}
.zap:hover { background: var(--ok); color: #fff; }
.zap svg { width: 22px; height: 22px; }
.zap.leve { background: transparent; border: 0; min-height: 44px; margin: 0 0 6px; justify-content: flex-start; padding: 0; font-size: 14px; }
.zap.leve:hover { background: transparent; color: var(--ok); text-decoration: underline; }
/* No início o botão grande já está na tela; o do rodapé seria repetição. */
:root[data-tela="inicio"] .rodape .zap { display: none; }

/* ---------- variação e leitura da agência ---------- */
.chip { position: relative; }
.delta {
  font-style: normal; font-size: 12px; font-weight: 700;
  margin-top: 2px;
}
.delta.sobe { color: var(--ok); }
.delta.desce { color: var(--action); }
.delta.igual { color: var(--muted); font-weight: 400; }
.nota.leitura { background: var(--brand-soft); }
.nota.leitura p { font-size: 16px; }
.nota .mini { margin-top: 6px; font-size: 13px; }
.form .saiba { margin-top: 12px; }
.form .saiba .detalhe { margin: 0 16px 12px; font-size: 15px; color: var(--muted); }

/* ---------- rodapé e toast ---------- */
.rodape {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 14px 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.rodape p { margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  max-width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.toast.ruim { background: var(--action); color: var(--action-ink); }

/* ---------- documentos e briefing (migração 006, 29/09/2026) ---------- */
a.porta, a.linha { text-decoration: none; color: inherit; }
.linha-capa.fmt svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc { margin-top: 18px; font-size: 17px; line-height: 1.65; }
.doc h2 { font-size: 24px; margin: 30px 0 10px; }
.doc h3 { font-size: 20px; margin: 24px 0 8px; color: var(--ink); }
.doc h4 { font-size: 17px; margin: 20px 0 6px; color: var(--ink); font-family: var(--display); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc b { color: var(--ink); }
.doc a { color: var(--brand); }
.doc > :first-child { margin-top: 0; }

/* ---------- trilha do onboarding (29/09/2026) ---------- */
.trilha {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 16px 16px 6px; box-shadow: var(--sombra); margin-bottom: 12px;
}
.trilha-topo { display: grid; gap: 2px; }
.trilha-topo b { font-family: var(--display); font-size: 24px; color: var(--brand); line-height: 1.15; }
.trilha-barra { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0 4px; }
.trilha-barra i { height: 8px; border-radius: 99px; background: var(--surface2); }
.trilha-barra i.feito { background: var(--ok); }
.trilha-barra i.atual { background: var(--action); }
.trilha-todas { margin: 8px -16px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.etapas { list-style: none; margin: 0 16px 14px; padding: 0; display: grid; gap: 8px; }
.etapas li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.etapas li em { font-style: normal; font-family: var(--display); font-size: 13px; color: var(--action); margin-left: 6px; }
.etapas li.depois { color: var(--muted); }
.etapa-marca { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface2); color: var(--muted); }
.etapas li.feito .etapa-marca { background: var(--ok-soft); color: var(--ok); }
.etapas li.atual .etapa-marca { background: var(--action); box-shadow: 0 0 0 4px var(--action-soft); }
.etapa-marca svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.bloco-fase { border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 8px; }
.bloco-fase.voce { background: var(--action-soft); border: 1.5px solid var(--action); }
.bloco-fase.nos { background: var(--surface2); }
.bloco-fase p { margin: 0; font-size: 16px; }
.acao-linha {
  display: grid; grid-template-columns: 26px 1fr 20px; align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 12px; border-radius: 12px; border: 0;
  background: var(--surface); color: var(--ink); text-align: left; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 16px; width: 100%;
}
.acao-linha svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acao-linha svg:first-child { color: var(--action); }
.acao-linha svg:last-child { color: var(--muted); width: 18px; height: 18px; }
.trilha-fim { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ok); margin: 0 0 12px; }
.trilha-fim svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.proximas { margin-top: 12px; }
.fechadas { list-style: none; margin: 0 16px 16px; padding: 0; display: grid; gap: 10px; }
.fechadas li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--muted); }
.fechadas li b { display: block; color: var(--ink); font-family: var(--display); font-size: 16px; }
.fechadas svg, .vazio svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: -4px; }

/* ---------- calendário: mês e feed (29/09/2026) ---------- */
.mes-nav { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin: 16px 0 10px; text-align: center; }
.mes-nav b { font-family: var(--display); font-size: 19px; color: var(--ink); }
.mes-bt { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 26px; line-height: 1; }
.mes-bt:disabled { opacity: .35; }
.grade-mes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.grade-mes .sem { text-align: center; font-family: var(--display); font-size: 13px; color: var(--muted); padding: 4px 0; }
.dia {
  position: relative; aspect-ratio: 1 / 1.15; border-radius: 8px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); padding: 0; color: var(--ink);
}
.vazio-dia { background: transparent; border: 0; }
.dia .num { position: absolute; top: 3px; left: 5px; font-family: var(--display); font-size: 13px; font-weight: 600; }
.dia.tem { border: 1.5px solid var(--brand); cursor: pointer; }
.dia.tem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dia.tem img + .num { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.dia.tem i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--brand); background: var(--brand-soft); }
.dia.tem .mais { position: absolute; right: 3px; bottom: 3px; font-size: 13px; font-family: var(--display); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 0 4px; }
.dia.on { box-shadow: 0 0 0 3px var(--action); }
.dia.hoje:not(.tem) { border-color: var(--action); }
.dia-escolhido { display: grid; gap: 10px; margin: 16px 0 6px; }
.post-dia {
  display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; color: inherit; width: 100%;
}
.post-capa { width: 104px; aspect-ratio: 4 / 5; border-radius: 10px; object-fit: cover; background: var(--surface2); display: block; }
.post-txt { display: grid; gap: 6px; min-width: 0; }
.post-txt b { font-family: var(--display); font-size: 17px; line-height: 1.25; }
.post-txt .ler { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-family: var(--display); font-weight: 600; font-size: 15px; }
.post-txt .ler svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.sem-capa { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 6px; text-align: center; background: var(--brand-soft); color: var(--brand); overflow: hidden; }
.sem-capa b { font-family: var(--display); font-size: 20px; }
.sem-capa span { font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.linha-capa.sem-capa b { font-size: 18px; }
.linha-capa.sem-capa span { display: none; }
.grade-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -2px; }
.feed-item { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; overflow: hidden; background: var(--surface2); color: inherit; }
.feed-capa { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-item .feed-capa.sem-capa { display: grid; height: 100%; }
.feed-data { position: absolute; left: 4px; bottom: 4px; font-family: var(--display); font-size: 13px; font-weight: 600; background: rgba(36,27,21,.72); color: #fff; border-radius: 6px; padding: 1px 6px; }

/* ---------- boas-vindas (migração 008, 29/09/2026) ---------- */
.passo-bv { display: grid; grid-template-columns: 36px 1fr; gap: 14px; margin: 22px 0; }
.passo-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--action); color: var(--action-ink); font-family: var(--display); font-weight: 700; font-size: 17px;
}
.passo-bv h3 { font-size: 20px; color: var(--ink); margin: 4px 0 6px; }
.passo-bv p { margin: 0 0 12px; font-size: 16px; }
.passo-bv .lista { margin-top: 8px; }
.bv-fim { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; display: grid; gap: 12px; }
.bv-fim p { margin: 0; }
.checks { display: grid; gap: 8px; margin-top: 10px; }
.check-bv {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; min-height: 56px;
}
.check-marca { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; }
.check-bv.feito .check-marca { background: var(--ok); border-color: var(--ok); color: #fff; }
.check-marca svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.check-txt { font-size: 16px; line-height: 1.3; }
.check-bv.feito .check-txt { color: var(--muted); }
.check-ok { font-family: var(--display); font-size: 14px; color: var(--ok); }
.mini-bt { min-height: 44px; padding: 0 12px; font-size: 14px; border-radius: 10px; white-space: nowrap; }

/* A Netlify injeta um selo "Powered by Netlify" (iframe #nl-badge-frame) no
   canto de baixo, em cima do botão Pedidos da barra. Decisão da Duda em
   29/09/2026: esconder por código. */
#nl-badge-frame { display: none !important; }

/* O caminho em desenho, na tela de boas-vindas (29/09/2026): seis etapas
   ligadas por setas, de cima para baixo, que é o que cabe no celular. */
.fluxo { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 22px; counter-reset: fluxo; }
.fluxo li {
  position: relative; counter-increment: fluxo;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.fluxo li::before {
  content: counter(fluxo); grid-row: span 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-family: var(--display); font-weight: 700; font-size: 17px;
}
.fluxo li:last-child::before { background: var(--ok-soft); color: var(--ok); content: "✓"; }
.fluxo li b { font-family: var(--display); font-size: 17px; color: var(--ink); }
.fluxo li span { font-size: 14px; color: var(--muted); line-height: 1.3; }
.fluxo li:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; bottom: -20px; width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--action);
}

/* Imagens dos manuais (29/09/2026): prints com a marcação de onde clicar. */
.doc figure { margin: 6px 0 20px; }
.doc figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Tabelas dos documentos (29/09/2026). Rolam de lado no celular em vez de
   espremer o texto. */
.doc .tabela { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 120px; }
.doc th { font-family: var(--display); font-size: 14px; background: var(--surface2); color: var(--ink); }
.doc tr:last-child td { border-bottom: 0; }

/* Fase de conteúdo mais limpa (29/09/2026). */
.acao-linha em.atraso { display: block; font-style: normal; font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--action); }
.acao-linha.leve { background: transparent; }
.grupo-pecas { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.grupo-pecas summary { cursor: pointer; padding: 14px 16px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); list-style: none; }
.grupo-pecas summary::-webkit-details-marker { display: none; }
.grupo-pecas[open] summary { border-bottom: 1px solid var(--line); }
.grupo-pecas .lista { padding: 10px; }
.cal-atalho { width: 100%; margin: 0 0 14px; }
.ideia-link { text-align: center; margin: 18px 0 4px; font-size: 15px; }
.ideia-link a { color: var(--brand); }
