/* EncomendAÍ: mesmo visual do protótipo aprovado pela Tami.
   Celular: abas embaixo. Computador (≥ 960 px): menu lateral e lista + detalhe lado a lado. */
:root {
  --fundo: #f7f2f4;
  --cartao: #ffffff;
  --tinta: #2b1d24;
  --suave: #75636c;
  --linha: #eadde3;
  --rosa: #c2137f;
  --rosa-escuro: #9e0f68;
  --rosa-claro: #fbe6f2;
  --ok: #1f7a4d;
  --ok-claro: #e3f4ea;
  --alerta: #a8650a;
  --alerta-claro: #fdf0dc;
  --cheio: #b3261e;
  --cheio-claro: #fbe4e2;
  --display: "DM Serif Display", Georgia, serif;
  --corpo: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 76px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--fundo); font-family: var(--corpo); color: var(--tinta); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
[hidden] { display: none !important; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Estrutura ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.faixa-teste { background: var(--tinta); color: #fff; font-size: 12px; padding: 5px 16px; display: flex; justify-content: space-between; gap: 8px; }
.faixa-teste b { color: #fbe7a1; }
.cabeca { margin: 10px 12px 0; background: var(--cartao); border: 1px solid var(--linha); border-radius: 16px; padding: 7px 7px 7px 10px; display: flex; align-items: center; gap: 10px; }
.logo-p { width: 36px; height: 36px; border-radius: 50%; background: var(--rosa-claro); color: var(--rosa); display: grid; place-items: center; font-family: var(--display); font-size: 18px; flex: none; }
.cabeca .nome { flex: 1; min-width: 0; line-height: 1.2; }
.cabeca .nome b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cabeca .nome small { color: var(--suave); font-size: 12px; }
.icone-b { border: 0; background: var(--fundo); border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--tinta); flex: none; text-decoration: none; }
.principal { flex: 1; display: flex; min-height: 0; }
.coluna { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.coluna.detalhe { display: none; }
.topo { padding: 14px 18px 10px; display: flex; align-items: center; gap: 10px; }
.topo h1 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0; line-height: 1.1; text-wrap: balance; flex: 1; }
.voltar { border: 0; background: var(--cartao); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; box-shadow: 0 1px 0 var(--linha); color: var(--tinta); flex: none; }
.conteudo { padding: 0 16px calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 14px; }

/* Abas (celular) */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 4; background: var(--cartao); border-top: 1px solid var(--linha); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(43, 34, 51,.05); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--suave); padding: 6px 0 2px; position: relative; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--rosa); }
.nav .central .bolha { width: 54px; height: 54px; border-radius: 50%; background: var(--rosa); color: #fff; display: grid; place-items: center; margin-top: -28px; box-shadow: 0 6px 16px rgba(122, 31, 214,.35); border: 4px solid var(--cartao); }
.nav .central[aria-current="page"] .bolha { background: var(--tinta); }
.ponto { position: absolute; top: 0; right: 22%; background: var(--rosa); color: #fff; font-size: 10px; font-weight: 800; border-radius: 100px; min-width: 17px; padding: 1px 4px; border: 2px solid var(--cartao); text-align: center; }
.lateral { display: none; }

/* ---------- Peças ---------- */
.cartao { background: var(--cartao); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--linha); }
.cartao h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); margin: 0; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cartao h2 .cresce { flex: 1; }
.linha { display: flex; align-items: center; gap: 12px; }
.cresce { flex: 1; min-width: 0; }
.titulo { font-weight: 800; }
.meta { color: var(--suave); font-size: 13px; }
.numero { font-variant-numeric: tabular-nums; font-weight: 800; }
.grande { font-family: var(--display); font-size: 32px; line-height: 1; }
.vazio { color: var(--suave); text-align: center; padding: 18px 8px; font-size: 14px; }

.selo { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 100px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.selo.ok { background: var(--ok-claro); color: var(--ok); }
.selo.alerta { background: var(--alerta-claro); color: var(--alerta); }
.selo.cheio { background: var(--cheio-claro); color: var(--cheio); }
.selo.rosa { background: var(--rosa-claro); color: var(--rosa); }
.selo.neutro { background: var(--fundo); color: var(--suave); }

.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-top: 1px solid var(--linha); background: none; text-align: left; width: 100%; color: inherit; text-decoration: none; }
.item:first-child { border-top: 0; padding-top: 2px; }
.item[aria-current="true"] { background: var(--rosa-claro); border-radius: 12px; padding-left: 8px; padding-right: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--rosa-claro); color: var(--rosa); display: grid; place-items: center; font-weight: 800; flex: none; }
.data-q { width: 46px; flex: none; text-align: center; background: var(--fundo); border-radius: 12px; padding: 5px 0; line-height: 1.1; }
.data-q b { display: block; font-size: 18px; }
.data-q small { font-size: 11px; color: var(--suave); text-transform: uppercase; font-weight: 800; }
.seta { color: var(--suave); }

.botao { border: 0; border-radius: 12px; padding: 13px 16px; font-weight: 800; background: var(--rosa); color: #fff; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.botao:hover:not(:disabled) { background: var(--rosa-escuro); }
.botao.claro { background: var(--rosa-claro); color: var(--rosa); }
.botao.linha-b { background: transparent; border: 1.5px solid var(--linha); color: var(--tinta); }
.botao.perigo { background: transparent; border: 1.5px solid var(--cheio-claro); color: var(--cheio); }
.botao.zap { background: #1f9d55; }
.botao.mini { width: auto; padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.botao svg.i { width: 18px; height: 18px; }
.botoes { display: flex; flex-direction: column; gap: 8px; }
.botoes.lado { flex-direction: row; flex-wrap: wrap; }
.botoes.lado .botao { flex: 1 1 140px; }

.aviso { border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.aviso.ok { background: var(--ok-claro); color: #164d33; }
.aviso.alerta { background: var(--alerta-claro); color: #6b5208; }
.aviso.cheio { background: var(--cheio-claro); color: #7a1a14; }
.aviso.rosa { background: var(--rosa-claro); color: #6d0a47; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--linha); background: #fff; border-radius: 100px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--tinta); }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chip .n { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.rolagem-x { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
.rolagem-x .chip { flex: none; }

.busca { display: flex; gap: 8px; align-items: center; background: var(--cartao); border: 1.5px solid var(--linha); border-radius: 100px; padding: 4px 6px 4px 14px; }
.busca input { border: 0; flex: 1; background: none; outline: none; min-width: 0; padding: 8px 0; }

/* Formulários */
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo > label, .campo > .rotulo { font-weight: 800; font-size: 14px; }
.campo input, .campo select, .campo textarea { border: 1.5px solid var(--linha); border-radius: 12px; padding: 12px; background: #fff; width: 100%; min-width: 0; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--rosa); outline: none; }
.campo textarea { min-height: 84px; resize: vertical; }
.campo small { color: var(--suave); font-size: 12px; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tripla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check-l { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.check-l input { width: 22px; height: 22px; accent-color: var(--rosa); }
.erro { color: var(--cheio); font-weight: 700; font-size: 14px; }

/* Itens da encomenda */
.itens { display: flex; flex-direction: column; gap: 8px; }
.item-enc { display: grid; grid-template-columns: 1fr 64px 92px 36px; gap: 6px; align-items: center; }
.item-enc input { border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 8px; background: #fff; min-width: 0; width: 100%; }
.item-enc .tirar { border: 0; background: var(--fundo); border-radius: 10px; height: 40px; color: var(--suave); display: grid; place-items: center; }
.item-cab { display: grid; grid-template-columns: 1fr 64px 92px 36px; gap: 6px; font-size: 12px; color: var(--suave); font-weight: 800; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

/* Agenda */
.mes-nav { display: flex; align-items: center; gap: 8px; }
.mes-nav b { flex: 1; text-align: center; font-size: 16px; }
.mes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mes .dsem { text-align: center; font-size: 11px; color: var(--suave); font-weight: 800; }
.dia { border: 0; background: var(--fundo); border-radius: 10px; aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; font-weight: 700; padding: 2px; color: var(--tinta); position: relative; }
.dia.fora { visibility: hidden; }
.dia.folga { color: #b9a9b1; }
.dia.hoje { outline: 2px solid var(--tinta); }
.dia .barra { width: 70%; height: 5px; border-radius: 3px; background: transparent; }
.dia .barra.b1 { background: #9fd7b8; } .dia .barra.b2 { background: #f3d36f; } .dia .barra.b3 { background: #e88b84; }
.dia.bloq { background: repeating-linear-gradient(45deg, var(--fundo), var(--fundo) 4px, #ebe2d4 4px, #ebe2d4 8px); color: var(--suave); }
.dia .qt { position: absolute; top: 3px; right: 5px; font-size: 10px; color: var(--rosa); font-weight: 900; }
.legenda { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--suave); }
.legenda i { display: inline-block; width: 14px; height: 5px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.medidor { height: 10px; background: var(--fundo); border-radius: 6px; overflow: hidden; }
.medidor i { display: block; height: 100%; border-radius: 6px; }

.grade2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; text-align: left; color: inherit; text-decoration: none; }
.tile .grande { font-size: 28px; }

/* Folha (celular: de baixo; computador: janela no centro) */
.veu { position: fixed; inset: 0; background: rgba(43, 34, 51,.45); display: none; align-items: flex-end; justify-content: center; z-index: 10; }
.veu.aberto { display: flex; }
.folha { background: var(--fundo); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 90dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.folha .puxador { width: 40px; height: 5px; border-radius: 3px; background: var(--linha); align-self: center; }
.folha h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0; }

.brinde { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 24px); max-width: 420px; margin: 0 auto; background: var(--tinta); color: #fff; border-radius: 12px; padding: 12px 14px; font-weight: 700; z-index: 12; opacity: 0; transform: translateY(8px); transition: .25s; pointer-events: none; }
.brinde.ver { opacity: 1; transform: none; }

.carregando { min-height: 60dvh; display: grid; place-items: center; color: var(--suave); }
.bloqueio { max-width: 380px; margin: 18dvh auto; padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Computador ---------- */
@media (min-width: 960px) {
  :root { --nav-h: 0px; }
  body { font-size: 15.5px; }
  .app { flex-direction: row; }
  .faixa-teste { position: fixed; top: 0; left: 0; right: 0; z-index: 5; }
  .nav, .cabeca { display: none; }
  .lateral { display: flex; flex-direction: column; gap: 4px; width: 248px; flex: none; padding: 40px 14px 20px; border-right: 1px solid var(--linha); background: var(--cartao); position: sticky; top: 0; height: 100dvh; }
  .lateral .marca { display: flex; gap: 10px; align-items: center; padding: 0 8px 14px; }
  .lateral .marca b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; }
  .lateral .marca small { color: var(--suave); font-size: 12.5px; }
  .lateral a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--tinta); text-decoration: none; font-weight: 700; }
  .lateral a:hover { background: var(--fundo); }
  .lateral a[aria-current="page"] { background: var(--rosa-claro); color: var(--rosa); }
  .lateral a .ponto { position: static; margin-left: auto; border: 0; }
  .lateral .rodape { margin-top: auto; }
  .principal { padding-top: 26px; }
  .coluna { max-width: 760px; margin: 0 auto; width: 100%; }
  .principal.dividido .coluna.lista { max-width: 420px; flex: 0 0 420px; border-right: 1px solid var(--linha); margin: 0; height: calc(100dvh - 26px); overflow-y: auto; position: sticky; top: 26px; }
  .principal.dividido .coluna.detalhe { display: flex; max-width: 720px; margin: 0 auto; }
  .conteudo { padding-bottom: 40px; }
  .veu { align-items: center; }
  .folha { border-radius: 22px; max-height: 86dvh; }
  .folha .puxador { display: none; }
  .brinde { bottom: 24px; }
  .so-celular { display: none !important; }
}
@media (max-width: 959px) { .so-computador { display: none !important; } }
@media (max-width: 380px) { .item-enc, .item-cab { grid-template-columns: 1fr 52px 80px 32px; } }

/* Orçamento: vitrine do catálogo */
.vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.prod { position: relative; border: 1.5px solid var(--linha); background: #fff; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.prod[aria-pressed="true"] { border-color: var(--rosa); box-shadow: 0 0 0 2px var(--rosa-claro); }
.prod img, .prod .sem-foto { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; background: var(--rosa-claro); display: grid; place-items: center; color: var(--rosa); margin-bottom: 2px; }
.prod b { font-size: 14px; line-height: 1.2; }
.prod small { color: var(--suave); font-size: 12px; }
.prod .qtd { position: absolute; top: 14px; right: 14px; background: var(--rosa); color: #fff; border-radius: 100px; padding: 2px 9px; font-size: 12px; font-weight: 800; }
.item-enc .nome-fixo { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
textarea.mensagem { min-height: 280px; font-size: 14px; line-height: 1.45; }

/* TamIA: conferir a leitura da conversa */
.escolha-t { display: grid; grid-template-columns: 1fr 96px 36px; gap: 8px; align-items: center; }
.escolha-t input { border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 8px; min-width: 0; width: 100%; }
.escolha-t .tirar { border: 0; background: var(--fundo); border-radius: 10px; height: 40px; color: var(--suave); display: grid; place-items: center; }
.bolha-msg { background: #f3f0e2; border-radius: 12px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; }

/* Hoje: atalhos grandes e primeiros passos */
.atalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.atalho { background: var(--cartao); border: 1px solid var(--linha); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--tinta); text-decoration: none; min-height: 104px; justify-content: center; }
.atalho b { font-size: 13px; line-height: 1.2; }
.atalho small { font-size: 11px; color: var(--suave); line-height: 1.2; }
.atalho-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--rosa-claro); color: var(--rosa); display: grid; place-items: center; margin-bottom: 2px; }
.atalho:first-child { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.atalho:first-child .atalho-ic { background: rgba(255,255,255,.2); color: #fff; }
@media (min-width: 960px) { .atalhos { grid-template-columns: repeat(6, 1fr); } }
.passo { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linha); flex: none; display: grid; place-items: center; }
.passo.feito { background: var(--ok); border-color: var(--ok); color: #fff; }
.passo.feito .i { width: 16px; height: 16px; }
.prod .sem-foto { flex-direction: column; gap: 2px; }
.prod .sem-foto small { font-size: 11px; color: var(--rosa); opacity: .7; }

/* Tour de boas-vindas */
.tour { position: fixed; inset: 0; z-index: 200; background: rgba(43, 34, 51, .55); display: grid; place-items: center; padding: 16px; animation: tour-entra .2s ease-out; }
.tour-cartao { position: relative; background: #fff; border-radius: 24px; padding: 32px 22px 20px; width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.tour-cartao h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 4px 0 0; text-transform: none; letter-spacing: 0; color: var(--tinta); }
.tour-cartao p { margin: 0; color: var(--suave); font-size: 15px; line-height: 1.5; min-height: 4.5em; }
.tour-ic { width: 76px; height: 76px; border-radius: 24px; background: var(--rosa-claro); color: var(--rosa); display: grid; place-items: center; }
.tour-ic .i { width: 38px; height: 38px; }
.tour-pular { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--suave); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px; }
.tour-pontos { display: flex; gap: 6px; margin: 6px 0 4px; }
.tour-pontos span { width: 8px; height: 8px; border-radius: 50%; background: var(--linha); transition: width .2s; }
.tour-pontos span.atual { width: 22px; border-radius: 100px; background: var(--rosa); }
.tour-botoes { display: flex; gap: 8px; width: 100%; }
.tour-botoes .botao { flex: 1; }
@keyframes tour-entra { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tour { animation: none; } }

/* Faixas de complexidade e tela de entrada */
.faixa-linha { display: grid; grid-template-columns: 28px 1fr 110px; gap: 8px; align-items: center; }
.faixa-linha .passo { width: 26px; height: 26px; font-size: 13px; font-weight: 800; color: var(--suave); }
.faixa-linha input { min-width: 0; }
.faixa-linha .busca input { border: 0; text-align: right; padding: 10px 4px; width: 100%; min-width: 0; }
.bloqueio.entrada { max-width: 420px; margin: 0 auto; }
.bloqueio.entrada form { display: flex; flex-direction: column; gap: 12px; }

/* Ficha técnica: editor de itens e resultado do preço */
.linha-ficha { display: grid; grid-template-columns: 1fr 120px 36px; grid-template-areas: "nome nome tirar" "qtd custo custo" "novo novo novo"; gap: 6px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linha); }
.linha-ficha:first-child { border-top: 0; }
.linha-ficha > input { grid-area: nome; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px; min-width: 0; }
.linha-ficha .tirar { grid-area: tirar; border: 0; background: var(--fundo); border-radius: 10px; height: 40px; color: var(--suave); display: grid; place-items: center; }
.linha-ficha .lf-qtd { grid-area: qtd; display: flex; gap: 6px; align-items: center; }
.linha-ficha .lf-qtd input { width: 96px; border: 1.5px solid var(--linha); border-radius: 10px; padding: 8px; }
.linha-ficha > .numero { grid-area: custo; }
.linha-ficha .lf-novo { grid-area: novo; border: 0; background: var(--alerta-claro); color: #6b5208; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
@media (min-width: 560px) { .linha-ficha { grid-template-columns: 1fr 150px 90px 36px; grid-template-areas: "nome qtd custo tirar" "novo novo novo novo"; } }
.resultado-preco { background: var(--fundo); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }

/* Bolos: tamanhos, grupos e adicionais */
details.tamanho { border: 1.5px solid var(--linha); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
details.tamanho[open] { border-color: var(--rosa-claro); background: #fffdf8; }
details.tamanho > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 32px; }
details.tamanho > summary::-webkit-details-marker { display: none; }
details.tamanho > summary::before { content: "›"; font-size: 20px; color: var(--suave); transition: transform .15s; }
details.tamanho[open] > summary::before { transform: rotate(90deg); }
details.tamanho[open] > *:not(summary) { margin-top: 10px; }
.grupo-bolo { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--linha); }
.grupo-bolo .linha input { flex: 1; font-weight: 700; }
.adicional-linha { display: grid; grid-template-columns: 1fr 84px 84px 36px; gap: 6px; align-items: center; }
.adicional-linha input { min-width: 0; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 8px; }
.adicional-linha .tirar { border: 0; background: var(--fundo); border-radius: 10px; height: 40px; color: var(--suave); display: grid; place-items: center; }
.bolo-linha { border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; text-align: left; white-space: normal; color: var(--tinta); cursor: pointer; display: flex; gap: 4px; align-items: flex-start; padding: 0; }
.bolo-linha .i { width: 14px; height: 14px; flex: none; color: var(--rosa); margin-top: 2px; }

/* TamIA: chat */
.tamia-oi { background: linear-gradient(160deg, #fff, var(--rosa-claro)); }
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.bolha-chat { max-width: 88%; border-radius: 18px; padding: 10px 14px; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.bolha-chat p { margin: 0; white-space: pre-wrap; }
.bolha-chat.minha { align-self: flex-end; background: var(--rosa); color: #fff; border-bottom-right-radius: 6px; }
.bolha-chat.dela { align-self: flex-start; background: #fff; border: 1px solid var(--linha); border-bottom-left-radius: 6px; }
.bolha-chat img { width: 100%; max-width: 360px; border-radius: 12px; display: block; }
.texto-rico { display: flex; flex-direction: column; gap: 6px; }
.texto-rico p { white-space: normal; }
.texto-rico ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.copiar-b { align-self: flex-start; border: 0; background: var(--fundo); border-radius: 100px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--suave); cursor: pointer; }
.pensando { flex-direction: row; gap: 4px; padding: 14px; }
.pensando span { width: 8px; height: 8px; border-radius: 50%; background: var(--suave); animation: pensar 1s infinite ease-in-out; }
.pensando span:nth-child(2) { animation-delay: .15s; } .pensando span:nth-child(3) { animation-delay: .3s; }
@keyframes pensar { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .pensando span { animation: none; } }
.chat-rodape { position: sticky; bottom: calc(var(--nav-h) + 8px); background: var(--fundo); padding: 8px 0 4px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
@media (min-width: 960px) { .chat-rodape { bottom: 0; } }
.chat-linha { display: flex; gap: 8px; align-items: flex-end; }
.chat-campo { flex: 1; resize: none; min-height: 44px; max-height: 160px; border: 1.5px solid var(--linha); border-radius: 22px; padding: 11px 14px; font: inherit; font-size: 15px; background: #fff; }
.enviar-b { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--rosa); color: #fff; display: grid; place-items: center; flex: none; cursor: pointer; }
.enviar-b:disabled { opacity: .5; }
.tamia-botoes { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-tamia { display: inline-flex; align-items: center; gap: 6px; background: var(--rosa-claro); border-color: var(--rosa-claro); color: var(--rosa-escuro); cursor: pointer; }
.chip-tamia .i { width: 15px; height: 15px; }
.chip-tamia:disabled { opacity: .7; }

/* ==========================================================================
   Visual 2 (09/11): mais macio e mais "confeitaria".
   Sem contornos duros: cartões flutuam com sombra rosada, cantos maiores,
   fundo com brilho suave, botões redondos que reagem ao toque, títulos de
   seção em frase normal, barras de cima e de baixo flutuando.
   ========================================================================== */
:root {
  --fundo: #fbf5f3;
  --fundo-2: #f6edef;
  --linha: #efe2e7;
  --tinta: #33212b;
  --suave: #806b75;
  --raio: 22px;
  --raio-p: 14px;
  --sombra: 0 1px 2px rgba(62, 42, 90, .05), 0 10px 28px -14px rgba(62, 42, 90, .22);
  --sombra-alta: 0 2px 6px rgba(62, 42, 90, .07), 0 18px 40px -16px rgba(62, 42, 90, .30);
  --rosa-grad: linear-gradient(180deg, #7c4cb8 0%, #b8127a 100%);
  --mola: cubic-bezier(.2, .9, .3, 1.2);
}
body {
  background:
    radial-gradient(900px 520px at 100% -10%, #ebe0fa 0%, transparent 60%),
    radial-gradient(700px 480px at -10% 30%, #fff3c8 0%, transparent 55%),
    var(--fundo);
  background-attachment: fixed;
}
/* grão bem leve, para tirar o "plástico" do fundo */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
#app { position: relative; z-index: 1; }

/* Faixa de teste discreta */
.faixa-teste { background: transparent; color: var(--suave); font-size: 11.5px; padding: 6px 18px 0; }
.faixa-teste b { color: var(--rosa); }

/* Cabeçalho do celular flutuando */
.cabeca { border: 0; background: rgba(255, 255, 255, .8); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--sombra); border-radius: 20px; position: sticky; top: 8px; z-index: 3; }
.logo-p, .avatar { border-radius: 14px; }
.logo-p { background: var(--rosa-grad); color: #fff; }
.icone-b { background: var(--fundo-2); border-radius: 14px; transition: transform .18s var(--mola), background .18s; }
.icone-b:active { transform: scale(.92); }
.voltar { box-shadow: var(--sombra); transition: transform .18s var(--mola); }
.voltar:active { transform: scale(.9); }

/* Títulos */
.topo { padding: 18px 20px 8px; }
.topo h1 { font-size: 30px; letter-spacing: -.015em; }
.cartao h2 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--tinta); font-weight: 800; }
.cartao h2 .i { color: var(--rosa); width: 20px; height: 20px; }

/* Cartões e blocos */
.cartao { border: 0; border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px 18px; gap: 12px; }
.tile { border: 0; border-radius: 20px; box-shadow: var(--sombra); padding: 14px 16px; transition: transform .2s var(--mola), box-shadow .2s; }
a.tile:active, .atalho:active, .prod:active { transform: scale(.97); }
.tile .grande { font-size: 32px; letter-spacing: -.02em; }
.atalho { border: 0; border-radius: 22px; box-shadow: var(--sombra); transition: transform .2s var(--mola), box-shadow .2s; }
.atalho:first-child { background: var(--rosa-grad); box-shadow: 0 12px 26px -12px rgba(122, 31, 214, .55); }
.atalho-ic { border-radius: 16px; }
.prod { border: 0; border-radius: 20px; box-shadow: var(--sombra); transition: transform .2s var(--mola), box-shadow .2s; }
.prod[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--rosa), var(--sombra-alta); }
.prod img, .prod .sem-foto { border-radius: 14px; }
.aviso { border-radius: 18px; padding: 13px 15px; }
.resultado-preco { border-radius: 18px; background: var(--fundo-2); }
details.tamanho { border: 0; background: var(--fundo-2); border-radius: 18px; }
details.tamanho[open] { background: #fff; box-shadow: 0 0 0 1.5px var(--rosa-claro); }

/* Listas */
.item { border-top-color: rgba(231, 220, 205, .75); padding: 13px 0; transition: background .15s; }
.data-q { background: var(--rosa-claro); color: var(--rosa-escuro); border-radius: 14px; }
.data-q small { color: var(--rosa); letter-spacing: .04em; }
.selo { padding: 4px 10px; }

/* Botões */
.botao { border-radius: 16px; padding: 14px 18px; background: var(--rosa-grad); box-shadow: 0 10px 22px -12px rgba(122, 31, 214, .65);
  transition: transform .18s var(--mola), box-shadow .18s, filter .18s; }
.botao:hover:not(:disabled) { background: var(--rosa-grad); filter: brightness(1.05); }
.botao:active:not(:disabled) { transform: scale(.97); }
.botao.claro { background: var(--rosa-claro); box-shadow: none; }
.botao.claro:hover:not(:disabled) { background: var(--rosa-claro); }
.botao.linha-b { background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px var(--linha); }
.botao.linha-b:hover:not(:disabled) { background: #fff; }
.botao.perigo { background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px var(--cheio-claro); }
.botao.perigo:hover:not(:disabled) { background: #fff; }
.botao.zap, .botao.zap:hover:not(:disabled) { background: linear-gradient(180deg, #22ad5e, #1a8f4c); box-shadow: 0 10px 22px -12px rgba(31, 157, 85, .6); }
.botao.mini { border-radius: 100px; padding: 9px 14px; }

/* Chips: o escolhido fica rosa, não preto */
.chip { border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha); padding: 9px 14px; transition: background .15s, color .15s, transform .15s var(--mola); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--rosa); color: #fff; box-shadow: 0 6px 14px -8px rgba(122, 31, 214, .7); }
.chip-tamia, .chip-tamia:active { background: var(--rosa-claro); color: var(--rosa-escuro); box-shadow: none; }
.chip-tamia:hover { background: #e3d5f5; }

/* Campos preenchidos, sem contorno duro */
.campo input, .campo select, .campo textarea, .item-enc input, .escolha-t input, .linha-ficha > input, .linha-ficha .lf-qtd input,
.adicional-linha input, .faixa-linha input, textarea.mensagem, .busca {
  border: 1.5px solid transparent; background: var(--fundo-2); border-radius: var(--raio-p); transition: border-color .15s, background .15s, box-shadow .15s; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .item-enc input:focus, .escolha-t input:focus, .linha-ficha input:focus,
.adicional-linha input:focus, .faixa-linha input:focus, textarea.mensagem:focus, .chat-campo:focus {
  background: #fff; border-color: var(--rosa); box-shadow: 0 0 0 4px rgba(122, 31, 214, .12); outline: none; }
.chat-campo { border-color: transparent; border-radius: 24px; background: #fff; box-shadow: var(--sombra); }
.item-enc .tirar, .escolha-t .tirar, .linha-ficha .tirar, .adicional-linha .tirar { background: var(--fundo-2); border-radius: 12px; }
.faixa-linha .busca input { background: transparent; }

/* Barra de baixo flutuando (celular) */
.nav { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); border: 0; border-radius: 26px; padding: 6px 6px 8px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 12px 34px -12px rgba(62, 42, 90, .35); }
.nav a { isolation: isolate; }
.nav a:not(.central)[aria-current="page"]::before { content: ""; position: absolute; top: 2px; left: 50%; translate: -50% 0; width: 50px; height: 32px; border-radius: 14px; background: var(--rosa-claro); z-index: -1; }
.nav .central .bolha { background: var(--rosa-grad); border-color: #fff; transition: transform .2s var(--mola); }
.nav .central:active .bolha { transform: scale(.92); }
.nav .central[aria-current="page"] .bolha { background: var(--tinta); }
.conteudo { padding-bottom: calc(var(--nav-h) + 56px); }
.chat-rodape { bottom: calc(var(--nav-h) + 18px); background: transparent; }

/* Folhas e avisos rápidos */
.folha { border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px -10px rgba(40, 28, 60, .35); }
.veu { background: rgba(43, 34, 51, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.brinde { border-radius: 16px; box-shadow: var(--sombra-alta); }

/* Entrada suave ao trocar de tela */
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.entrando > * { animation: surgir .32s cubic-bezier(.2, .8, .2, 1) both; }
.entrando > *:nth-child(2) { animation-delay: .03s; } .entrando > *:nth-child(3) { animation-delay: .06s; }
.entrando > *:nth-child(4) { animation-delay: .09s; } .entrando > *:nth-child(5) { animation-delay: .12s; }
.entrando > *:nth-child(n+6) { animation-delay: .15s; }

@media (min-width: 960px) {
  .chat-rodape { bottom: 0; }
  .lateral { border-right: 0; background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 1px 0 0 rgba(231, 220, 205, .9); }
  .lateral a { border-radius: 14px; transition: background .15s; }
  .lateral button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; border: 0; background: none; color: var(--tinta); font-weight: 700; width: 100%; text-align: left; }
  .lateral button:hover { background: var(--fundo-2); }
  .principal.dividido .coluna.lista { border-right: 0; box-shadow: 1px 0 0 rgba(231, 220, 205, .9); }
  .folha { border-radius: 28px; }
  .conteudo { padding-bottom: 48px; }
  a.tile:hover, .atalho:hover, .prod:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); }
  a.item:hover, button.item:hover { background: rgba(239, 231, 248, .45); border-radius: 12px; }
}

/* Guia passo a passo: destaque no campo e balão de instrução */
.guia-alvo { position: relative; z-index: 50; border-radius: 16px; box-shadow: 0 0 0 4px var(--rosa), 0 0 0 9999px rgba(43, 34, 51, .42) !important; transition: box-shadow .25s; }
input.guia-alvo, textarea.guia-alvo, select.guia-alvo { background: #fff !important; }
.guia-balao { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); z-index: 60; max-width: 460px; margin: 0 auto;
  background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: 0 18px 50px -12px rgba(40, 28, 60, .45); display: flex; flex-direction: column; gap: 8px; animation: surgir .25s ease-out both; }
.guia-balao p { margin: 0; font-size: 15px; line-height: 1.45; }
.guia-topo { display: flex; align-items: center; gap: 8px; color: var(--rosa); }
.guia-topo b { color: var(--tinta); }
.guia-pontos { display: flex; gap: 5px; }
.guia-pontos span { width: 7px; height: 7px; border-radius: 50%; background: var(--linha); }
.guia-pontos span.visto { background: var(--rosa-claro); }
.guia-pontos span.atual { width: 20px; border-radius: 100px; background: var(--rosa); }
.guia-botoes { display: flex; gap: 8px; align-items: center; }
.guia-botoes .botao { flex: 1; }
.guia-sair { border: 0; background: none; color: var(--suave); font-weight: 700; font-size: 13px; padding: 6px 4px; cursor: pointer; }
.item.proxima { background: var(--rosa-claro); border-radius: 16px; padding-left: 10px; padding-right: 10px; }
.item.proxima .passo { border-color: var(--rosa); animation: pulsar 1.6s ease-in-out infinite; }
@keyframes pulsar { 0%, 100% { box-shadow: 0 0 0 0 rgba(122, 31, 214, .35); } 50% { box-shadow: 0 0 0 6px rgba(122, 31, 214, 0); } }
@media (min-width: 960px) { .guia-balao { left: auto; right: 28px; bottom: 28px; margin: 0; width: 380px; } }
@media (prefers-reduced-motion: reduce) { .item.proxima .passo { animation: none; } }

/* ==========================================================================
   Identidade 3 (09/11): roxo ametista, bege areia e amarelo manteiga.
   (As variáveis seguem com os nomes antigos "rosa": agora valem o roxo.)
   ========================================================================== */
:root {
  --fundo: #f7f1e8;          /* bege areia */
  --fundo-2: #efe6d8;        /* bege dos campos */
  --cartao: #fffdf8;         /* creme dos cartões */
  --linha: #e7dccd;
  --tinta: #2b2233;          /* ameixa escura */
  --suave: #7a6e7f;
  --rosa: #6b3fa0;           /* roxo ametista (principal) */
  --rosa-escuro: #4f2c7d;
  --rosa-claro: #efe7f8;     /* lilás bem claro */
  --amarelo: #fbe7a1;        /* amarelo manteiga */
  --amarelo-forte: #f3cf5c;
  --amarelo-tinta: #6b5208;
  --alerta: #8a6400;
  --alerta-claro: #fbf0c6;
  --rosa-grad: linear-gradient(180deg, #7c4cb8 0%, #5e3591 100%);
}
body {
  background:
    radial-gradient(900px 520px at 100% -10%, #ebe0fa 0%, transparent 60%),
    radial-gradient(700px 480px at -10% 30%, #fff3c8 0%, transparent 55%),
    var(--fundo);
  background-attachment: fixed;
}
.cartao, .tile, .atalho, .prod, .cabeca, .folha .cartao { background-color: var(--cartao); }
.cabeca { background: rgba(255, 253, 248, .82); }
.nav { background: rgba(255, 253, 248, .9); }

/* Amarelo como acento */
.logo-p { background: var(--rosa-grad); color: var(--amarelo); }
.nav a:not(.central)[aria-current="page"] { color: var(--rosa-escuro); }
.nav a:not(.central)[aria-current="page"]::before { background: var(--amarelo); }
.nav .central[aria-current="page"] .bolha { background: var(--tinta); color: var(--amarelo); }
.ponto { background: var(--amarelo-forte); color: var(--tinta); }
.data-q { background: var(--amarelo); color: var(--amarelo-tinta); }
.data-q small { color: var(--amarelo-tinta); opacity: .8; }
.item.proxima { background: #fdf6dc; }
.item.proxima .passo { border-color: var(--amarelo-forte); }
.atalho:first-child .atalho-ic { color: var(--amarelo); }
.tour-ic { background: var(--amarelo); color: var(--rosa-escuro); }
.tour-pontos span.atual, .guia-pontos span.atual { background: var(--rosa); }
.guia-pontos span.visto { background: var(--amarelo); }
.passo.feito { background: var(--rosa); border-color: var(--rosa); }
.barra span { background: linear-gradient(90deg, var(--rosa), #9a6fd0); }
.tamia-oi { background: linear-gradient(160deg, var(--cartao), #f4edfb 60%, #fff6d8); }
.faixa-teste b { color: var(--rosa); }
.selo.rosa { background: var(--rosa-claro); color: var(--rosa-escuro); }
.selo.alerta { background: var(--alerta-claro); color: var(--alerta); }
.aviso.rosa { background: var(--rosa-claro); color: #3f2366; }
.aviso.alerta { background: var(--alerta-claro); color: #5f4605; }
.chip-tamia, .chip-tamia:active { background: var(--rosa-claro); color: var(--rosa-escuro); }
.chip-tamia:hover { background: #e3d5f5; }
.bolha-chat.minha { background: var(--rosa-grad); }
.bolha-msg { background: #f3f0e2; }
.prod .sem-foto, .atalho-ic, .avatar { background: var(--rosa-claro); color: var(--rosa); }
.prod .sem-foto small { color: var(--rosa); }
.dia .barra.b2 { background: var(--amarelo-forte); }
details.tamanho[open] { background: var(--cartao); box-shadow: 0 0 0 1.5px var(--rosa-claro); }

/* Identidade 3.1 (09/11): roxo mais vivo (entre o ametista e o violeta elétrico). */
:root {
  --rosa: #7a1fd6;
  --rosa-escuro: #5c13a6;
  --rosa-claro: #f1e6fd;
  --rosa-grad: linear-gradient(180deg, #8c2be8 0%, #6a17c2 100%);
}
body {
  background:
    radial-gradient(900px 520px at 100% -10%, #eadcfd 0%, transparent 60%),
    radial-gradient(700px 480px at -10% 30%, #fff3c8 0%, transparent 55%),
    var(--fundo);
  background-attachment: fixed;
}
.barra span { background: linear-gradient(90deg, var(--rosa), #b07af0); }
.chip-tamia:hover { background: #e6d3fb; }
.tamia-oi { background: linear-gradient(160deg, var(--cartao), #f3e9fe 60%, #fff6d8); }
.aviso.rosa { background: var(--rosa-claro); color: #45127f; }

/* Pagamento da encomenda (10/11) */
.pagamento { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
tr.extra td { color: var(--suave); font-size: 14px; }

/* Feriado no calendário (10/11) */
.dia.feriado { box-shadow: inset 0 -3px 0 var(--amarelo-forte); }

/* Instalar no celular (10/11) */
.passos-instalar { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
