/* Identidade "a peneira": o produto vende curadoria, então o visual é de selo de aprovação.
   Tinta e papel, um único acento laranja-etiqueta (cor de etiqueta de preço). Sem sombra pesada: contraste por linha. */
:root {
  --tinta: #15171b;
  --tinta-2: #23262c;
  --tinta-3: #31353d;
  --papel: #f5f2eb;
  --papel-2: #ece7dc;
  --card: #fffdf9;
  --linha: #e3ddd0;
  --linha-forte: #cfc7b6;
  --texto: #15171b;
  --texto-2: #6a665c;
  --texto-3: #9a9588;
  --acento: #ff5b24;
  --acento-hover: #e64815;
  --acento-claro: #ffe6dc;
  --aprovado: #0f7f57;
  --aprovado-claro: #e2f2ea;
  --barrado: #c0352a;
  --barrado-claro: #f8e4e1;
  --raio: 14px;
  --raio-pq: 10px;
  --titulo: 'Familjen Grotesk', 'Segoe UI', sans-serif;
  --corpo: 'Instrument Sans', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--texto); font: 400 15px/1.5 var(--corpo); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--texto); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titulo); margin: 0; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.sub { color: var(--texto-2); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ---------- casca: lateral de tinta + conteúdo no papel ---------- */
.casca { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.lateral { background: var(--tinta); color: #e9e6df; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 24px 14px 18px; }
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 0 10px 26px; }
.marca b { font: 700 24px/1 var(--titulo); letter-spacing: -.04em; }
.marca b i { color: var(--acento); font-style: normal; }
.menu { display: grid; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--raio-pq); color: #b9b5ab; text-decoration: none; font-weight: 500; position: relative; }
.menu a:hover { background: var(--tinta-2); color: #fff; }
.menu a[aria-current="page"] { background: var(--tinta-3); color: #fff; }
.menu a[aria-current="page"]::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acento); }
.menu svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu .luz { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--texto-3); }
.menu .luz.on { background: #3ad08f; box-shadow: 0 0 0 3px rgba(58, 208, 143, .18); }
.quem { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid var(--tinta-3); }
.quem div { min-width: 0; flex: 1; }
.quem b { display: block; color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quem button { background: none; border: 0; padding: 0; color: #9a9588; cursor: pointer; font-size: 13px; }
.quem button:hover { color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--acento); color: var(--tinta); display: grid; place-items: center; font: 700 15px var(--titulo); flex: none; }
main { padding: 36px 40px 112px; display: grid; gap: 18px; align-content: start; max-width: 1180px; width: 100%; }
.cabeca { margin-bottom: 6px; }
.cabeca p { margin-top: 6px; max-width: 64ch; }

/* ---------- card ---------- */
.card { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; }
.card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card > header p { margin-top: 4px; }
.divisor { border: 0; border-top: 1px solid var(--linha); margin: 22px -24px; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card.tinta { background: var(--tinta); border-color: var(--tinta); color: #e9e6df; }
.card.tinta .sub { color: #a8a397; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--raio-pq); border: 0; background: var(--acento); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; text-decoration: none; }
.btn:hover { background: var(--acento-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--papel-2); color: var(--texto-3); cursor: default; }
.btn-sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--raio-pq); border: 1px solid var(--linha-forte); background: var(--card); color: var(--texto); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: border-color .15s, background .15s; }
.btn-sec:hover { border-color: var(--texto); }
.btn-sec:disabled { color: var(--texto-3); border-color: var(--linha); cursor: default; }
.btn-sec.pq { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-txt { background: none; border: 0; color: var(--texto); cursor: pointer; padding: 4px 0; font-weight: 600; text-decoration: underline; text-decoration-color: var(--linha-forte); text-underline-offset: 4px; }
.btn-txt:hover { text-decoration-color: currentColor; }
.btn-txt.perigo { color: var(--barrado); }

/* ---------- campos ---------- */
.campo { display: grid; gap: 6px; }
.campo > span { font-size: 14px; font-weight: 600; }
.campo small { color: var(--texto-2); font-size: 13px; }
.entrada { height: 46px; width: 100%; border: 1px solid var(--linha-forte); border-radius: var(--raio-pq); padding: 0 14px; background: #fff; transition: border-color .12s, box-shadow .12s; }
textarea.entrada { height: auto; min-height: 96px; padding: 12px; resize: vertical; }
fieldset.campo { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.campo label { display: flex; gap: 8px; align-items: center; }
.entrada:hover { border-color: var(--texto-3); }
.entrada:focus { outline: 0; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(255, 91, 36, .25); }
.entrada.pq { height: 40px; }
.form { display: grid; gap: 16px; }
.linha-acao { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* chave liga/desliga */
.chave { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border-radius: 20px; }
.chave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chave i { width: 40px; height: 22px; border-radius: 11px; background: var(--linha-forte); position: relative; transition: background .15s; flex: none; }
.chave i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.chave input:checked + i { background: var(--tinta); }
.chave input:checked + i::after { transform: translateX(18px); background: var(--acento); }
.chave input:focus-visible + i { outline: 2px solid var(--acento); outline-offset: 2px; }
.chave.grande i { width: 56px; height: 30px; border-radius: 15px; }
.chave.grande i::after { width: 22px; height: 22px; top: 4px; left: 4px; }
.chave.grande input:checked + i::after { transform: translateX(26px); }
.card.tinta .chave i { background: var(--tinta-3); }
.card.tinta .chave input:checked + i { background: #3ad08f; }
.card.tinta .chave input:checked + i::after { background: #fff; }

/* régua (slider) */
.regua { display: grid; grid-template-columns: 1fr 116px; gap: 8px 18px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--linha); }
.regua:last-child { border-bottom: 0; padding-bottom: 0; }
.regua-txt b { font-weight: 600; display: block; margin-bottom: 2px; }
.regua-txt span { color: var(--texto-2); font-size: 13.5px; }
.regua input[type=range] { grid-column: 1; width: 100%; accent-color: var(--acento); height: 22px; margin: 0; }
.regua .valor { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; border: 1px solid var(--linha-forte); border-radius: var(--raio-pq); height: 42px; padding: 0 12px; background: #fff; }
.regua .valor:focus-within { border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(255, 91, 36, .25); }
.regua .valor input { border: 0; width: 100%; text-align: right; outline: 0; background: none; font: 600 16px var(--titulo); font-variant-numeric: tabular-nums; }
.regua .valor em { font-style: normal; color: var(--texto-2); margin-left: 4px; white-space: nowrap; font-size: 13px; }
.regua .valor em.antes { margin: 0 4px 0 0; }
.bloco-titulo { display: flex; align-items: baseline; gap: 12px; }
.bloco-titulo .num { font: 700 13px var(--titulo); color: var(--acento); letter-spacing: .04em; }

/* ---------- carimbo (veredito) e etiquetas ---------- */
.carimbo { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--titulo); letter-spacing: .09em; text-transform: uppercase; padding: 6px 9px 5px; border: 1.5px solid currentColor; border-radius: 6px; white-space: nowrap; }
.carimbo.ok { color: var(--aprovado); transform: rotate(-2deg); }
.carimbo.nao { color: var(--barrado); transform: rotate(1.5deg); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.tag.ok { color: var(--aprovado); background: var(--aprovado-claro); }
.tag.nao { color: var(--barrado); background: var(--barrado-claro); }
.tag.espera { color: #9a5a00; background: #fbefd6; }
.tag.neutra { color: var(--texto-2); background: var(--papel-2); }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- números ---------- */
.kpi { display: grid; gap: 2px; }
.kpi span { color: var(--texto-2); font-size: 14px; }
.kpi b { font: 700 40px/1.05 var(--titulo); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.barras { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 8px; }
.barras div { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: flex-end; }
.barras i { width: 100%; max-width: 48px; background: var(--tinta); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.barras div:last-child i { background: var(--acento); }
.barras small { color: var(--texto-2); font-size: 12px; text-transform: capitalize; }
.barras em { font-style: normal; font: 600 12px var(--titulo); color: var(--texto-2); font-variant-numeric: tabular-nums; }

/* ---------- vitrine de ofertas ---------- */
.vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.prod { background: #fff; border-radius: var(--raio-pq); border: 1px solid var(--linha); overflow: hidden; display: flex; flex-direction: column; }
.prod .foto { aspect-ratio: 1; overflow: hidden; padding: 10px; background: #fff; }
.prod .foto img { width: 100%; height: 100%; object-fit: contain; }
.prod .info { padding: 10px 14px 14px; display: grid; gap: 2px; border-top: 1px solid var(--linha); }
.prod .titulo { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; margin-bottom: 4px; }
.prod s { color: var(--texto-3); font-size: 12.5px; }
.preco { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.preco b { font: 700 21px var(--titulo); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.preco .off { color: var(--acento-hover); font-size: 12.5px; font-weight: 700; }
.prod .quando { color: var(--texto-3); font-size: 12px; margin-top: 6px; }

/* ---------- listas ---------- */
.lista { display: grid; }
.item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.item:first-child { padding-top: 0; }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item .corpo { flex: 1; min-width: 0; }
.item .corpo p { overflow-wrap: anywhere; }
.icone-redondo { width: 44px; height: 44px; border-radius: 12px; background: var(--papel); display: grid; place-items: center; flex: none; color: var(--texto); }
.icone-redondo svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vazio { text-align: center; padding: 28px 16px; color: var(--texto-2); display: grid; gap: 12px; justify-items: center; }
.vazio svg { width: 30px; height: 30px; stroke: var(--texto-3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* resultado do teste com produto real */
.res { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.res:last-child { border-bottom: 0; }
.res img { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--linha); border-radius: 8px; background: #fff; }
.res .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res .m { color: var(--texto-2); font-size: 13px; margin-top: 2px; }
.res .motivo { color: var(--texto-2); font-size: 13px; margin-top: 4px; }
.res .lado { display: grid; justify-items: end; gap: 8px; }

/* bolha do WhatsApp na prévia */
.zap { background: #efeae2; border-radius: var(--raio-pq); padding: 16px; }
.bolha { background: #fff; border-radius: 8px; border-top-left-radius: 0; padding: 8px 10px 6px; max-width: 360px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); white-space: pre-wrap; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; }
.bolha img { width: 100%; border-radius: 6px; margin-bottom: 6px; display: block; aspect-ratio: 1; object-fit: contain; background: #fff; }

/* simulador */
.sim { position: sticky; top: 24px; }
.veredito { border-radius: var(--raio-pq); padding: 16px; display: grid; gap: 10px; justify-items: start; }
.veredito.ok { background: var(--aprovado-claro); }
.veredito.nao { background: var(--barrado-claro); }
.veredito.espera { background: var(--papel); color: var(--texto-2); }
.veredito p { font-size: 14px; }
.filtro-grade { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.filtro-grade > div { display: grid; gap: 18px; min-width: 0; }

/* chips de palavra */
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.chip { display: inline-flex; align-items: center; gap: 2px; background: var(--papel); border: 1px solid var(--linha); border-radius: 20px; padding: 3px 4px 3px 12px; font-size: 13.5px; }
.chip button { border: 0; background: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; color: var(--texto-2); display: grid; place-items: center; font-size: 16px; line-height: 1; }
.chip button:hover { background: var(--papel-2); color: var(--texto); }

/* passos */
.passo { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.passo:last-child { border-bottom: 0; padding-bottom: 0; }
.passo .marca-passo { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--linha-forte); display: grid; place-items: center; flex: none; font: 700 12px var(--titulo); color: var(--texto-3); }
.passo.feito .marca-passo { border: 0; background: var(--tinta); color: var(--acento); }
.passo.feito .marca-passo svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 3; }
.passo .corpo { flex: 1; }

/* robô */
.robo { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.robo h2 { font-size: 24px; color: #fff; }
.robo .estado { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.robo .estado b { color: #fff; font-weight: 600; }
.terminal { background: var(--tinta); color: #d8d4ca; border-radius: var(--raio-pq); padding: 16px 18px; font: 12.5px/1.55 ui-monospace, 'Cascadia Code', Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; margin: 0; }
.resumo-rodada { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 16px; }
.resumo-rodada div { background: var(--papel); border-radius: var(--raio-pq); padding: 12px 14px; }
.resumo-rodada b { display: block; font: 700 26px var(--titulo); font-variant-numeric: tabular-nums; }
.resumo-rodada span { color: var(--texto-2); font-size: 13px; }
.girando { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gira .8s linear infinite; display: inline-block; flex: none; }
@keyframes gira { to { transform: rotate(360deg); } }

/* qr */
.qr-caixa { display: grid; justify-items: center; gap: 14px; padding: 8px 0 4px; text-align: center; }
.qr { width: 248px; height: 248px; display: grid; place-items: center; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio-pq); padding: 12px; }
.qr svg { width: 100%; height: 100%; }
.qr-passos { text-align: left; color: var(--texto-2); font-size: 14px; margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* janela ao vivo do navegador do robô */
dialog.largo { width: min(1120px, calc(100% - 32px)); }
dialog.largo .corpo-modal { max-height: calc(100vh - 110px); }
.tela-remota { display: grid; gap: 12px; }
.tela-barra .sub { margin-left: auto; font-size: 13px; }
.tela-quadro { position: relative; aspect-ratio: 1280 / 800; width: min(100%, calc((100vh - 360px) * 1.6)); margin: 0 auto; background: var(--papel); border: 1px solid var(--linha-forte); border-radius: var(--raio-pq); overflow: hidden; display: grid; place-items: center; }
.tela-quadro:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.tela-quadro img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.tela-quadro:not(.viva) img { visibility: hidden; }
.tela-quadro.viva .girando { display: none; }

/* barra de salvar */
.salvar { visibility: hidden; position: fixed; left: 248px; right: 0; bottom: 0; background: var(--tinta); color: #e9e6df; z-index: 30; transform: translateY(100%); transition: transform .2s, visibility .2s; }
.salvar.aberta { transform: none; visibility: visible; }
.salvar-in { max-width: 1180px; padding: 14px 40px; display: flex; align-items: center; gap: 14px; }
.salvar-in p { margin-right: auto; color: #b9b5ab; }
.salvar .btn-sec { background: transparent; color: #fff; border-color: var(--tinta-3); }
.salvar .btn-sec:hover { border-color: #fff; }

/* aviso */
.aviso { display: flex; gap: 12px; align-items: flex-start; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio-pq); padding: 14px 16px; }
.aviso.atencao { background: var(--acento-claro); border-color: #ffc7b0; }
.aviso svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.aviso.atencao svg { stroke: var(--acento-hover); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--tinta); color: #fff; padding: 12px 20px; border-radius: var(--raio-pq); opacity: 0; transition: .2s; z-index: 50; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.erro { background: var(--barrado); }

/* modal */
dialog { border: 0; border-radius: var(--raio); padding: 0; width: min(540px, calc(100% - 32px)); background: var(--card); color: var(--texto); }
dialog::backdrop { background: rgba(21, 23, 27, .6); }
dialog .cab { padding: 20px 24px; border-bottom: 1px solid var(--linha); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog .cab button { border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--texto-2); width: 36px; height: 36px; border-radius: 50%; }
dialog .cab button:hover { background: var(--papel); }
dialog .corpo-modal { padding: 16px 24px 24px; max-height: 70vh; overflow: auto; }

/* ---------- entrar ---------- */
.entrar { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.entrar-lado { background: var(--tinta); color: #e9e6df; padding: 48px 56px; display: flex; flex-direction: column; gap: 32px; }
.entrar-lado .marca { padding: 0; }
.entrar-lado h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; color: #fff; letter-spacing: -.035em; margin-top: auto; }
.entrar-lado h1 i { color: var(--acento); font-style: normal; }
.entrar-lado ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 46ch; }
.entrar-lado li { display: flex; gap: 12px; color: #b9b5ab; }
.entrar-lado li b { color: #fff; font-weight: 600; }
.entrar-lado li svg { width: 20px; height: 20px; flex: none; stroke: var(--acento); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.entrar-form { display: grid; place-items: center; padding: 48px 24px; }
.entrar-form form { width: min(400px, 100%); }
.entrar-form h2 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.entrar-form .btn { width: 100%; }
.entrar-form .troca { text-align: center; margin-top: 4px; color: var(--texto-2); }
.erro-form { color: var(--barrado); font-size: 13.5px; min-height: 20px; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .filtro-grade { grid-template-columns: 1fr; }
  .sim { position: static; }
}
@media (max-width: 860px) {
  .casca { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: sticky; top: 0; z-index: 20; height: auto; padding: 12px 16px 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .marca { padding: 0; }
  .marca b { font-size: 20px; }
  .menu { order: 3; flex: 1 0 100%; display: flex; overflow-x: auto; margin: 10px -16px 0; padding: 0 12px; scrollbar-width: none; gap: 0; }
  .menu a { white-space: nowrap; border-radius: 0; padding: 12px; border-bottom: 2px solid transparent; }
  .menu a:hover { background: none; }
  .menu a[aria-current="page"] { background: none; border-bottom-color: var(--acento); }
  .menu a[aria-current="page"]::before, .menu svg, .menu .luz { display: none; }
  .quem { margin: 0 0 0 auto; padding: 0; border: 0; }
  .quem div b { display: none; }
  main { padding: 24px 16px 112px; }
  h1 { font-size: 27px; }
  .salvar { left: 0; }
  .salvar-in { padding: 12px 16px; }
  .entrar { grid-template-columns: 1fr; }
  .entrar-lado { padding: 32px 24px; gap: 20px; }
  .entrar-lado h1 { margin-top: 12px; }
}
@media (max-width: 640px) {
  .grade-2, .grade-3, .resumo-rodada { grid-template-columns: 1fr 1fr; }
  .grade-2.sempre-1, .grade-3 { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
  .divisor { margin: 20px -16px; }
  .res { grid-template-columns: 48px 1fr; }
  .res img { width: 48px; height: 48px; }
  .res .lado { grid-column: 2; justify-items: start; }
  .robo { grid-template-columns: 1fr; }
  .item { flex-wrap: wrap; gap: 10px 14px; }
  .item .corpo { flex: 1 1 calc(100% - 60px); }
  .card > header { flex-wrap: wrap; }
  .salvar-in p { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 3s !important; } }

/* ---------- cofre ---------- */
.cofre-item { display: grid; gap: 10px; align-content: start; }
.cofre-item.feito .prod { opacity: .45; }
.cofre-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn.pq { height: 34px; padding: 0 14px; font-size: 13px; }
.cofre-item summary { cursor: pointer; color: var(--texto-2); font-size: 13px; }
.cofre-item pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; margin-top: 8px; padding: 12px; background: var(--papel); border-radius: var(--raio-pq); }
.semPC { max-width: 1100px; margin: 0 auto; padding: 16px; display: grid; gap: 18px; }
.semPC main { display: grid; gap: 18px; }
.semPC-topo { display: flex; justify-content: space-between; align-items: center; }
.semPC-form { max-width: 420px; }
.semPC-topo .marca { color: var(--texto); padding: 0; }

/* ---------- financeiro ---------- */
.fin-periodo [aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.fin-total { display: grid; gap: 4px; }
.fin-total > span { color: #a8a397; font-size: 14px; }
.fin-total b { font: 700 44px/1.05 var(--titulo); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.fin-lojas { align-items: start; }
.fin-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
.fin-kpis .kpi b { font-size: 28px; }
.fin-kpis .destaque b { color: var(--acento-hover); }
.fin-vendas { display: grid; }
.fin-venda { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.fin-venda:last-child { border-bottom: 0; padding-bottom: 0; }
.fin-venda:first-child { padding-top: 0; }
.fin-venda .foto { width: 52px; height: 52px; flex: none; border-radius: 10px; border: 1px solid var(--linha); background: #fff; padding: 4px; }
.fin-venda .foto > img:first-child { border-radius: 6px; }
.fin-venda .foto img { width: 100%; height: 100%; object-fit: contain; }
.fin-venda .corpo { flex: 1; min-width: 0; }
.fin-venda .titulo { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fin-venda .valores { display: grid; justify-items: end; gap: 2px; text-align: right; }
.fin-venda .valores b { font: 700 16px var(--titulo); font-variant-numeric: tabular-nums; }
.fin-venda.cancelada .titulo, .fin-venda.cancelada .valores b { text-decoration: line-through; color: var(--texto-3); }
.fin-loja { display: flex; align-items: center; gap: 10px; }
.fin-loja img { width: 28px; height: 28px; border-radius: 8px; }
.fin-venda .foto { position: relative; overflow: visible; }
.fin-venda .foto .selo-loja { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--card); background: #fff; }
