/* ════════════════════════════════════════════════════════════════════════════
   Oferta Pronta — sistema "Broto".
   Identidade própria (não é o Ember do ClickSpy): VERDE de dinheiro como
   acento, canvas frio quase branco, barra lateral CLARA com indicador à
   esquerda, Manrope em tudo, cantos médios e sombra curta. O único bloco
   escuro da tela é o destaque de comissão do Painel.
   ════════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fontes/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fontes/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --fonte: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Superfícies frias, com um fio de verde. */
  --canvas: hsl(140 22% 97%);
  --superficie: #fff;
  --afundado: hsl(140 16% 95%);
  --elevado: hsl(140 12% 91%);
  /* Traços e tinta. */
  --linha: hsl(140 12% 90%);
  --linha-forte: hsl(140 8% 80%);
  --tinta: hsl(160 30% 9%);
  --corpo: hsl(160 12% 27%);
  --apagado: hsl(160 7% 40%);
  /* Acento: verde que leva texto BRANCO (contraste ≥ 4,5:1). */
  --acento: hsl(153 66% 32%);
  --acento-hover: hsl(154 70% 27%);
  --acento-fg: #fff;
  --acento-tinta: hsl(155 72% 25%);
  --acento-fundo: hsl(146 62% 94%);
  --acento-linha: hsl(148 46% 80%);
  /* O bloco escuro do Painel. */
  --mata: hsl(160 55% 11%);
  --mata-2: hsl(158 48% 17%);
  --mata-tinta: hsl(140 40% 97%);
  --mata-apagado: hsl(150 18% 72%);
  /* Semântica. */
  --positivo: hsl(153 66% 28%);
  --positivo-fundo: hsl(146 62% 94%);
  --atencao: hsl(36 90% 30%);
  --atencao-fundo: hsl(44 100% 93%);
  --critico: hsl(2 70% 44%);
  --critico-fundo: hsl(2 90% 96%);
  /* Forma. */
  --raio-xs: 6px;
  --raio-sm: 9px;
  --raio: 12px;
  --raio-lg: 16px;
  --sombra: 0 1px 2px hsl(160 30% 10% / .05);
  --sombra-alta: 0 1px 2px hsl(160 30% 10% / .05), 0 8px 24px -12px hsl(160 30% 10% / .16);
  --sombra-acento: 0 6px 16px -8px hsl(153 66% 28% / .55);
  --suave: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--fonte); font-size: 14px; line-height: 1.5; color: var(--tinta);
  background: var(--canvas); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--acento-tinta); }
#app { min-height: 100%; display: flex; flex-direction: column; }
.casca { min-height: 100vh; display: flex; }
::selection { background: var(--acento-fundo); }

/* ── Barra lateral (clara) ─────────────────────────────────────────────────── */
.trilho {
  position: sticky; top: 0; height: 100vh; width: 236px; flex: none; display: flex; flex-direction: column;
  background: var(--superficie); border-right: 1px solid var(--linha); padding: 18px 12px 12px;
}
.trilho-marca { display: flex; align-items: center; gap: 10px; padding: 2px 8px 22px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.trilho-marca .selo, .entrada-marca .selo {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; padding: 0; color: #fff;
  background: linear-gradient(135deg, hsl(150 70% 38%), hsl(162 70% 24%)); box-shadow: var(--sombra-acento);
}
.trilho-marca .selo svg, .entrada-marca .selo svg { width: 17px; height: 17px; }
.trilho-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.trilho-grupo { display: flex; flex-direction: column; gap: 2px; }
.trilho-rotulo { padding: 0 12px 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--apagado); }
.trilho-nav button, .trilho-acao {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--raio-sm);
  background: transparent; color: var(--corpo); font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.trilho-nav button svg, .trilho-acao svg { width: 18px; height: 18px; flex: none; }
.trilho-nav button:hover, .trilho-acao:hover { background: var(--afundado); color: var(--tinta); }
.trilho-nav button.ativa { background: var(--acento-fundo); color: var(--acento-tinta); }
.trilho-nav button.ativa::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acento); }
.trilho-rodape { border-top: 1px solid var(--linha); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.trilho-conta { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--raio); background: var(--afundado); min-width: 0; }
.trilho-conta .avatar { flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--acento); color: #fff; font-weight: 800; font-size: 13px; }
.trilho-conta b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trilho-conta small { display: block; font-size: 11.5px; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trilho-conta .cresce { min-width: 0; }

/* ── Palco ─────────────────────────────────────────────────────────────────── */
.palco { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.palco-topo { position: sticky; top: 0; z-index: 4; padding: 18px 32px 14px; background: hsl(140 22% 97% / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.palco-topo > div { max-width: 1240px; margin: 0 auto; }
.palco-topo h1 { font-size: 22px; font-weight: 800; margin: 0 0 2px; letter-spacing: -.025em; }
.palco-topo p { font-size: 13px; color: var(--apagado); }
main { width: 100%; max-width: 1304px; margin: 0 auto; padding: 22px 32px 48px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
main > h1:first-child, main > h1:first-child + p.apagado { display: none; }
h1 { font-size: 20px; margin: 4px 0 2px; letter-spacing: -.02em; }
h2 { font-size: 11.5px; margin: 0; text-transform: uppercase; letter-spacing: .09em; color: var(--apagado); font-weight: 700; }
p { margin: 0; color: var(--corpo); }
.apagado { color: var(--apagado); font-size: 12.5px; }
.pequeno { font-size: 12px; }
main.tela-links, main.tela-ia, main.tela-config, main.tela-contas { max-width: 880px; }
main.tela-comissoes { max-width: 1100px; }

/* ── Cartões e campos ──────────────────────────────────────────────────────── */
.cartao { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio-lg); padding: 18px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 12px; }
.cartao.sem-sombra { box-shadow: none; }
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label { font-size: 12.5px; font-weight: 700; color: var(--corpo); }
.campo input, .campo textarea, .campo select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--linha-forte); border-radius: var(--raio-sm); background: var(--superficie);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--acento); box-shadow: 0 0 0 3px hsl(153 66% 32% / .16); }
.campo textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
.campo .ajuda, .ajuda { font-size: 11.5px; color: var(--apagado); }
.linha { display: flex; gap: 8px; align-items: center; }
.linha.entre { justify-content: space-between; }
.coluna { display: flex; flex-direction: column; gap: 6px; }
.coluna.sem-gap { gap: 0; }
.cresce { flex: 1; min-width: 0; }
.separador { height: 1px; background: var(--linha); margin: 2px 0; }
.grade-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }

/* ── Botões ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; border-radius: var(--raio-sm); border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primario { background: var(--acento); color: var(--acento-fg); box-shadow: var(--sombra-acento); }
.btn.primario:hover:not(:disabled) { background: var(--acento-hover); }
.btn.grande { width: 100%; padding: 13px 16px; font-size: 14.5px; letter-spacing: .01em; }
.btn.secundario { background: var(--superficie); border-color: var(--linha-forte); color: var(--tinta); }
.btn.secundario:hover:not(:disabled) { border-color: var(--acento); color: var(--acento-tinta); }
.btn.fantasma { background: transparent; color: var(--acento-tinta); padding: 6px 9px; }
.btn.fantasma:hover:not(:disabled) { background: var(--acento-fundo); }
.btn.perigo { background: transparent; color: var(--critico); border-color: var(--linha); }
.btn.perigo:hover:not(:disabled) { background: var(--critico-fundo); }
.btn.pequeno { padding: 6px 10px; font-size: 12.5px; border-radius: var(--raio-xs); }
.btn.verde { background: hsl(142 70% 40%); color: #fff; box-shadow: 0 6px 16px -8px hsl(142 70% 30% / .6); }
.btn.verde:hover:not(:disabled) { background: hsl(142 72% 34%); }
.botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.botoes > .btn { flex: 1; }
button.link { border: 0; background: none; padding: 0; color: var(--acento-tinta); font-weight: 700; cursor: pointer; font-size: inherit; }
button.link:hover { text-decoration: underline; }

/* ── Avisos e selos ────────────────────────────────────────────────────────── */
.aviso { border-radius: var(--raio-sm); padding: 10px 12px; font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; border: 1px solid transparent; }
.aviso svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.aviso.info { background: var(--afundado); color: var(--corpo); border-color: var(--linha); }
.aviso.ok { background: var(--positivo-fundo); color: var(--positivo); border-color: var(--acento-linha); }
.aviso.atencao { background: var(--atencao-fundo); color: var(--atencao); }
.aviso.erro { background: var(--critico-fundo); color: var(--critico); }
.selo { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--afundado); color: var(--corpo); }
.selo.ok { background: var(--positivo-fundo); color: var(--positivo); }
.selo.atencao { background: var(--atencao-fundo); color: var(--atencao); }
.selo.erro { background: var(--critico-fundo); color: var(--critico); }
.selo.acento { background: var(--acento-fundo); color: var(--acento-tinta); }

/* ── Produto e oferta ──────────────────────────────────────────────────────── */
.produto { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
.produto img, .produto .sem-foto { width: 112px; height: 112px; border-radius: var(--raio); object-fit: cover; background: var(--afundado); border: 1px solid var(--linha); }
.produto .sem-foto { display: grid; place-items: center; color: var(--apagado); }
.produto .titulo { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.precos { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.precos .por { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.precos .de { text-decoration: line-through; color: var(--apagado); font-size: 12.5px; }
.precos .pct { font-size: 11.5px; font-weight: 800; color: var(--positivo); background: var(--positivo-fundo); padding: 1px 7px; border-radius: 999px; }
.modelos { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.modelos::-webkit-scrollbar { display: none; }
.modelo { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 11px; border-radius: var(--raio-sm); border: 1px solid var(--linha-forte); background: var(--superficie); cursor: pointer; min-width: 96px; text-align: left; }
.modelo b { font-size: 12.5px; }
.modelo span { font-size: 10.5px; color: var(--apagado); }
.modelo.ativo { border-color: var(--acento); background: var(--acento-fundo); box-shadow: inset 0 0 0 1px var(--acento); }
.oferta-texto { white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; background: #e9f8ee; border: 1px solid #c8ebd3; border-radius: 14px 14px 14px 4px; padding: 14px 16px; color: #0d1f16; }
textarea.oferta-editor { width: 100%; min-height: 240px; font-size: 14px; line-height: 1.5; border: 1px solid var(--acento); border-radius: var(--raio); padding: 12px 14px; resize: vertical; outline: none; }
.rodape-oferta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--apagado); }
.progresso { height: 6px; border-radius: 999px; background: var(--afundado); overflow: hidden; }
.progresso > div { height: 100%; background: var(--acento); transition: width .3s; }
.passos { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.passo { display: flex; align-items: center; gap: 8px; color: var(--apagado); }
.passo.ativo { color: var(--tinta); font-weight: 700; }
.passo.feito { color: var(--positivo); }
.passo svg { width: 15px; height: 15px; }
@keyframes girar { to { transform: rotate(360deg); } }
.girando { animation: girar 1s linear infinite; }

/* ── Listas, vazio, opções ─────────────────────────────────────────────────── */
.lista { display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--linha); border-radius: var(--raio-sm); background: var(--superficie); }
.item.clicavel { cursor: pointer; transition: border-color .15s, background .15s; }
.item.clicavel:hover { border-color: var(--acento-linha); background: var(--acento-fundo); }
.item .nome { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { font-size: 11.5px; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--afundado); }
.vazio { text-align: center; padding: 22px 12px; color: var(--apagado); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.vazio svg { width: 34px; height: 34px; color: var(--acento); opacity: .7; }
.vazio b { color: var(--tinta); }
.opcao { display: flex; gap: 10px; align-items: flex-start; padding: 11px; border: 1px solid var(--linha-forte); border-radius: var(--raio-sm); cursor: pointer; background: var(--superficie); }
.opcao.ativa { border-color: var(--acento); background: var(--acento-fundo); }
.opcao input { margin-top: 3px; accent-color: var(--acento); }
.opcao b { display: block; font-size: 13px; }
.opcao span { font-size: 11.5px; color: var(--apagado); }
.alternador { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.alternador input { accent-color: var(--acento); width: 18px; height: 18px; flex: none; }
.alternador .texto b { display: block; font-size: 13px; }
.alternador .texto span { font-size: 11.5px; color: var(--apagado); }
.passos-numerados, .onde-roda { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--corpo); }

/* ── Controles ─────────────────────────────────────────────────────────────── */
.segmentado { display: flex; padding: 3px; gap: 2px; border-radius: var(--raio-sm); background: var(--afundado); border: 1px solid var(--linha); }
.segmentado button { flex: 1; border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--apagado); cursor: pointer; transition: background .15s, color .15s; }
.segmentado button:hover { color: var(--tinta); }
.segmentado button.ativo { background: var(--superficie); color: var(--acento-tinta); box-shadow: 0 1px 3px hsl(160 30% 10% / .12); }
.recolhivel { border: 1px solid var(--linha); border-radius: var(--raio); background: var(--superficie); padding: 0 12px; }
.recolhivel > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; cursor: pointer; font-size: 13px; }
.recolhivel > summary::-webkit-details-marker { display: none; }
.recolhivel > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--apagado); border-bottom: 2px solid var(--apagado); transform: rotate(45deg); margin: 0 4px 3px; transition: transform .2s var(--suave); }
.recolhivel[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.recolhivel .titulo-recolhivel { font-weight: 700; white-space: nowrap; }
.recolhivel .resumo { margin-left: auto; font-size: 11.5px; color: var(--apagado); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recolhivel[open] { padding-bottom: 12px; }
.recolhivel .ajuda { display: block; margin-top: 8px; }
.busca-campo { position: relative; display: flex; align-items: center; }
.busca-campo > svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--apagado); pointer-events: none; }
.busca-campo input { width: 100%; padding: 9px 32px; border: 1px solid var(--linha-forte); border-radius: var(--raio-sm); background: var(--superficie); outline: none; font-size: 13px; }
.busca-campo input:focus { border-color: var(--acento); box-shadow: 0 0 0 3px hsl(153 66% 32% / .16); }
.busca-campo .limpar { position: absolute; right: 6px; border: 0; background: none; color: var(--apagado); cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; }
.busca-campo .limpar svg { width: 14px; height: 14px; }
.fichas { display: flex; flex-wrap: wrap; gap: 5px; }
.ficha { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; border: 1px solid var(--acento-linha); background: var(--acento-fundo); color: var(--acento-tinta); font-size: 11.5px; font-weight: 700; padding: 3px 6px 3px 9px; border-radius: 999px; cursor: pointer; }
.ficha span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha svg { flex: none; width: 12px; height: 12px; }

/* ── Árvore de categorias (Shopee) ─────────────────────────────────────────── */
.arvore { display: flex; flex-direction: column; gap: 8px; }
.arvore-lista { max-height: 320px; overflow-y: auto; border: 1px solid var(--linha); border-radius: var(--raio-sm); background: var(--superficie); padding: 4px; }
.arvore-linha { display: flex; align-items: center; gap: 2px; border-radius: var(--raio-xs); padding-right: 6px; transition: background .12s; }
.arvore-linha:hover { background: var(--afundado); }
.arvore-linha.marcada { background: var(--acento-fundo); }
.arvore-linha .galho { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 0; background: none; color: var(--apagado); border-radius: 6px; cursor: pointer; padding: 0; }
.arvore-linha .galho svg { width: 14px; height: 14px; transition: transform .2s var(--suave); }
.arvore-linha .galho.aberto svg { transform: rotate(90deg); }
.arvore-linha label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 6px 0; cursor: pointer; font-size: 12.5px; }
.arvore-linha input { flex: none; accent-color: var(--acento); width: 15px; height: 15px; margin: 0; }
.arvore-linha .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arvore-linha.marcada .nome { font-weight: 700; }
.arvore-linha .nivel { flex: none; font-size: 9.5px; font-weight: 800; text-transform: uppercase; color: var(--apagado); border: 1px solid var(--linha); border-radius: 5px; padding: 0 5px; }
.arvore-vazia { padding: 18px 8px; text-align: center; font-size: 12px; color: var(--apagado); }
.arvore-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--apagado); }

/* ── Categorias do Mercado Livre: blocos alinhados numa grade ──────────────── */
.categorias-ml { display: flex; flex-direction: column; gap: 8px; }
.categorias-ml-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.categorias-ml-topo b { font-weight: 700; color: var(--corpo); }
.categorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.categoria {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 10px; border: 1px solid var(--linha);
  border-radius: var(--raio-sm); background: var(--superficie); font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--corpo);
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.categoria input { position: absolute; opacity: 0; pointer-events: none; }
.categoria .caixa { flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--linha-forte); display: grid; place-items: center; background: var(--superficie); }
.categoria .caixa svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.categoria:hover { border-color: var(--acento-linha); }
.categoria.ativa { border-color: var(--acento); background: var(--acento-fundo); color: var(--acento-tinta); }
.categoria.ativa .caixa { background: var(--acento); border-color: var(--acento); }
.categoria.ativa .caixa svg { opacity: 1; }
.categoria input:focus-visible + .caixa { box-shadow: 0 0 0 3px hsl(153 66% 32% / .25); }
.categoria.cheia { opacity: .45; cursor: not-allowed; }

/* ── Garimpo ───────────────────────────────────────────────────────────────── */
.garimpo { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
.garimpo-filtros { position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; }
.garimpo-resultados { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.garimpo-convite { min-height: 320px; justify-content: center; border-style: dashed; background: transparent; box-shadow: none; }
.resultados-topo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.achados { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 14px; }
.achado { display: flex; flex-direction: column; border: 1px solid var(--linha); border-radius: var(--raio-lg); background: var(--superficie); box-shadow: var(--sombra); overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s var(--suave); }
.achado:hover { box-shadow: var(--sombra-alta); border-color: var(--acento-linha); transform: translateY(-2px); }
.achado-foto { position: relative; }
.achado-foto img, .achado-foto .sem-foto { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--afundado); }
.achado .sem-foto { display: grid; place-items: center; color: var(--apagado); }
.achado-corpo { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px; min-width: 0; }
.achado .titulo { font-weight: 700; font-size: 13px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.achado .precos { margin-top: 0; }
.achado .precos .por { font-size: 18px; }
.comissao { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: var(--positivo); font-size: 12.5px; font-weight: 800; }
.comissao small { font-weight: 600; font-size: 11px; color: var(--apagado); }
.metricas { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--apagado); }
.metricas .cat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.achado-acoes { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.achado-acoes .btn.primario { flex: 1; }
.achado.esqueleto { height: 360px; background: linear-gradient(90deg, var(--afundado), var(--superficie), var(--afundado)); background-size: 200% 100%; animation: esqueleto 1.4s ease-in-out infinite; box-shadow: none; }
@keyframes esqueleto { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ── Gerar oferta: 1 Produto · 2 Estilo · 3 Oferta ─────────────────────────── */
.gerador { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "esquerda oferta" "recentes recentes"; gap: 18px; align-items: start; }
.gerador-esquerda { grid-area: esquerda; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gerador-oferta { grid-area: oferta; position: sticky; top: 92px; min-width: 0; }
.gerador-recentes { grid-area: recentes; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.etapa { gap: 14px; transition: opacity .2s; }
.etapa.bloqueado .estilos, .etapa.bloqueado .etapa-topo { opacity: .55; }
.etapa-topo { display: flex; align-items: flex-start; gap: 12px; }
.etapa-topo h2 { font-size: 15px; letter-spacing: -.01em; text-transform: none; color: var(--tinta); font-weight: 800; }
.etapa-topo p { margin-top: 2px; }
.etapa-num { flex: none; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--acento-fundo); color: var(--acento-tinta); border: 1px solid var(--acento-linha); }
.etapa-num svg { width: 15px; height: 15px; }
.etapa.feito .etapa-num { background: var(--acento); color: #fff; border-color: var(--acento); }
.etapa.atual .etapa-num { background: var(--acento); color: #fff; border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-fundo); }
.campo-link { display: flex; gap: 8px; }
.campo-link input { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--linha-forte); border-radius: var(--raio-sm); background: var(--superficie); outline: none; font-size: 14px; }
.campo-link input:focus { border-color: var(--acento); box-shadow: 0 0 0 3px hsl(153 66% 32% / .16); }
.estilos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.estilo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--superficie); cursor: pointer; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.estilo:hover { border-color: var(--acento-linha); }
.estilo .estilo-emoji { font-size: 22px; line-height: 1; }
.estilo b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.estilo-explica { font-size: 12.5px; color: var(--apagado); background: var(--afundado); border-radius: var(--raio-sm); padding: 9px 11px; }
.estilo-explica b { color: var(--tinta); }
.estilo.ativo { border-color: var(--acento); background: var(--acento-fundo); box-shadow: inset 0 0 0 1px var(--acento); }
.gerar-area { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
/* Prévia como no WhatsApp: fundo da conversa e balão de mensagem enviada. */
.whats { border-radius: var(--raio); padding: 16px; min-height: 220px; display: flex; flex-direction: column; align-items: flex-end;
  background: radial-gradient(hsl(40 20% 82% / .45) 1px, transparent 1px) 0 0 / 14px 14px, #efeae2; border: 1px solid var(--linha); }
.whats-bolha { position: relative; max-width: 100%; width: 100%; background: #d9fdd3; color: #111b21; border-radius: 10px 2px 10px 10px; padding: 5px 5px 18px; box-shadow: 0 1px 1px hsl(160 30% 10% / .12); }
.whats-foto { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 7px; margin-bottom: 4px; background: #c8e8c2; }
.whats .oferta-texto { background: none; border: 0; padding: 3px 6px; border-radius: 0; font-size: 14.5px; line-height: 1.45; color: #111b21; white-space: normal; word-break: break-word; }
.whats .oferta-texto strong { font-weight: 700; }
.wa-link { color: #027eb5; word-break: break-all; }
.whats-hora { position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: #667781; }
.whats-bolha.vazia { padding: 14px; background: hsl(110 60% 92% / .7); box-shadow: none; }
.whats-bolha.vazia i { display: block; height: 10px; border-radius: 999px; background: hsl(150 20% 30% / .1); margin: 8px 0; }
.whats-bolha.vazia i.curta { width: 55%; }
.whats .oferta-editor { width: 100%; min-height: 280px; background: var(--superficie); }
.dica-compartilhar { text-align: center; margin-top: -4px; }
.acoes-oferta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.recentes-faixa { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.recente { flex: none; width: 240px; display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--superficie); cursor: pointer; text-align: left; scroll-snap-align: start; transition: border-color .15s; }
.recente:hover, .recente.ativo { border-color: var(--acento); }
.recente img, .recente .sem-foto { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: var(--afundado); display: grid; place-items: center; color: var(--apagado); }
.recente b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recente small { display: block; font-size: 11.5px; color: var(--apagado); }

/* ── Painel (dashboard de comissões) ───────────────────────────────────────── */
.painel { display: flex; flex-direction: column; gap: 16px; }
.painel-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.painel-barra .segmentado { min-width: 260px; }
.painel-topo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.destaque {
  position: relative; overflow: hidden; border-radius: var(--raio-lg); padding: 24px; color: var(--mata-tinta);
  background:
    radial-gradient(420px 220px at 100% 0%, hsl(150 70% 40% / .35), transparent 70%),
    radial-gradient(300px 200px at 0% 100%, hsl(170 60% 30% / .35), transparent 70%),
    linear-gradient(160deg, var(--mata-2), var(--mata));
  box-shadow: var(--sombra-alta); display: flex; flex-direction: column; gap: 14px;
}
.destaque::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 14px 14px; }
.destaque > * { position: relative; z-index: 1; }
.destaque-rotulo { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: hsl(146 60% 70%); }
.destaque-valor { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.destaque-sub { font-size: 12.5px; color: var(--mata-apagado); }
.destaque ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid hsl(150 30% 100% / .12); }
.destaque li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid hsl(150 30% 100% / .12); font-size: 13px; }
.destaque li .loja { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.destaque li .loja i { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }
.destaque li small { color: var(--mata-apagado); font-weight: 500; margin-left: 4px; }
.destaque li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.destaque li .loja { min-width: 0; flex-wrap: wrap; }
.destaque .btn.secundario { background: hsl(150 30% 100% / .1); border-color: hsl(150 30% 100% / .2); color: var(--mata-tinta); align-self: flex-start; }
.destaque .btn.secundario:hover:not(:disabled) { background: hsl(150 30% 100% / .18); color: #fff; border-color: hsl(150 30% 100% / .35); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio-lg); padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sombra); }
.kpi span { font-size: 12px; font-weight: 700; color: var(--apagado); display: flex; align-items: center; gap: 6px; }
.kpi span svg { width: 15px; height: 15px; color: var(--acento); }
.kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 11.5px; color: var(--apagado); }
.painel-meio { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: 220px; overflow: visible; }
.grafico .barra { fill: var(--acento); transition: fill .12s; }
.grafico .barra-alvo { fill: transparent; cursor: default; }
.grafico .barra-alvo:hover + .barra, .grafico g:hover .barra { fill: var(--acento-hover); }
.grafico .grade { stroke: var(--linha); stroke-width: 1; }
.grafico .eixo { fill: var(--apagado); font-size: 10.5px; font-family: var(--fonte); }
.dica { position: absolute; pointer-events: none; background: var(--tinta); color: #fff; font-size: 12px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); box-shadow: var(--sombra-alta); }
.dica b { display: block; font-size: 13px; }
.status { display: flex; flex-direction: column; gap: 10px; }
.status-barra { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--afundado); }
.status-barra i { display: block; height: 100%; }
.status-barra i:first-child { border-radius: 999px 0 0 999px; }
.status-barra i:last-child { border-radius: 0 999px 999px 0; }
.status-legenda { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.status-legenda div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-legenda span { display: flex; align-items: center; gap: 7px; color: var(--corpo); }
.status-legenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.status-legenda b { font-variant-numeric: tabular-nums; }
.cor-concluida { background: #1c8756; }
.cor-pendente { background: #d4890a; }
.cor-cancelada { background: #d9443a; }
.ranking { display: flex; flex-direction: column; gap: 10px; }
.ranking-linha { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.ranking-linha .pos { font-weight: 800; color: var(--apagado); font-variant-numeric: tabular-nums; }
.ranking-linha .nome { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-linha .trilha { grid-column: 2 / 3; height: 6px; border-radius: 999px; background: var(--afundado); overflow: hidden; }
.ranking-linha .trilha i { display: block; height: 100%; background: var(--acento); border-radius: 999px; }
.ranking-linha b { font-variant-numeric: tabular-nums; }
.painel-baixo { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.atualizado { font-size: 12px; color: var(--apagado); }
.numeros { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.numero { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--raio-sm); background: var(--afundado); }
.numero span { font-size: 11.5px; color: var(--apagado); }
.numero b { font-size: 15px; font-variant-numeric: tabular-nums; }
.numero.destaque-n { background: var(--acento-fundo); }
.numero.destaque-n b { color: var(--acento-tinta); font-size: 18px; }

/* ── Entrada (fundo em camadas, nunca chapado) ─────────────────────────────── */
.carregando-tela { min-height: 100vh; display: grid; place-items: center; color: var(--acento); }
.carregando-tela svg { width: 28px; height: 28px; }
.entrada {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px;
  background:
    radial-gradient(700px 420px at 15% 0%, hsl(146 62% 88% / .9), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, hsl(170 50% 88% / .8), transparent 70%),
    radial-gradient(hsl(150 20% 70% / .25) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--canvas);
}
.entrada-marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.entrada-marca .selo { width: 38px; height: 38px; border-radius: 12px; }
.entrada-cartao { width: 100%; max-width: 420px; padding: 26px; box-shadow: var(--sombra-alta); gap: 14px; }
.entrada-cartao h1 { font-size: 23px; font-weight: 800; margin: 0 0 4px; }
.entrada-rodape { text-align: center; }

/* ── Navegação de baixo (só celular) ───────────────────────────────────────── */
.casca > .nav { display: none; }
.nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; border-radius: var(--raio-sm); color: var(--apagado); font-size: 10px; font-weight: 700; cursor: pointer; }
.nav button svg { width: 19px; height: 19px; }
.nav button.ativa { color: var(--acento-tinta); background: var(--acento-fundo); }

/* ── Responsivo ────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .painel-topo, .painel-meio { grid-template-columns: 1fr; }
  .gerador { grid-template-columns: 1fr; grid-template-areas: "esquerda" "oferta" "recentes"; }
  .gerador-oferta { position: static; }
  .garimpo { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .trilho { width: 72px; padding: 16px 8px; }
  .trilho-marca span:last-child, .trilho-nav button span, .trilho-acao span, .trilho-rotulo, .trilho-conta .cresce { display: none; }
  .trilho-marca { justify-content: center; padding-left: 0; padding-right: 0; }
  .trilho-nav button, .trilho-acao { justify-content: center; }
  .trilho-nav button.ativa::before { left: -8px; }
  .trilho-conta { justify-content: center; background: none; }
  .garimpo { grid-template-columns: 1fr; }
  .garimpo-filtros { position: static; max-height: none; }
  .palco-topo, main { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 720px) {
  .casca { flex-direction: column; }
  .trilho { display: none; }
  .casca > .nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 6px 4px max(6px, env(safe-area-inset-bottom)); background: var(--superficie); border-top: 1px solid var(--linha); }
  .palco { padding-bottom: 72px; }
  .palco-topo { padding: 14px 16px 10px; }
  .palco-topo h1 { font-size: 19px; }
  .palco-topo p { font-size: 12.5px; }
  main { padding: 14px 14px 32px; }
  .cartao { padding: 14px; }
  .achados { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .produto { grid-template-columns: 88px 1fr; }
  .produto img, .produto .sem-foto { width: 88px; height: 88px; }
  .estilos { gap: 4px; }
  .estilo { padding: 9px 2px 8px; }
  .estilo b { font-size: 10.5px; letter-spacing: -.02em; overflow: visible; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .destaque { padding: 20px; }
}
