/* Portal Garimpador · direção visual v2 (ADR-0033)
   Bordô #46172F (marca) · Amarelo #FFE600 (destaque de oportunidade) · Rosa ameixa #8C4E73 · Papel quente #FAF8F7
   Fontes DM Sans e Manrope servidas pelo próprio portal (sem Google Fonts: nada de IP do lojista indo para terceiros). */
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bordo: #46172f;
  --bordo-2: #652545;
  --ameixa: #8c4e73;
  --ameixa-claro: #f7eef3;
  --amarelo: #ffe600;
  --amarelo-2: #f7ca38;
  --amarelo-claro: #fffbea;
  --texto: #211c22;
  --texto-suave: #7b747a;
  --borda: #eee9ec;
  --borda-forte: #e2d9de;
  --fundo: #faf8f7;
  --cartao: #ffffff;
  --verde: #27785d;
  --verde-claro: #e9f4ee;
  --vermelho: #b84f61;
  --vermelho-claro: #fbeef0;
  --ouro: #8c6720;
  --ouro-claro: #fff6df;
  --sombra: 0 4px 14px #30243106;
  --titulo: 'Manrope', system-ui, sans-serif;
  /* nomes antigos, para não quebrar nada que ainda use */
  --roxo: var(--bordo);
  --roxo-claro: var(--ameixa-claro);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 15px/1.5 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
a { color: var(--bordo-2); }
a:hover { color: var(--ameixa); }
h1 { margin: 6px 0 6px; font: 800 clamp(24px, 2.4vw, 32px)/1.17 var(--titulo); letter-spacing: -1px; color: var(--texto); }
h2 { margin: 0 0 12px; font: 800 18px/1.3 var(--titulo); letter-spacing: -.3px; color: var(--texto); }
h3 { font-family: var(--titulo); }
p { margin: 0 0 10px; }
.suave { color: var(--texto-suave); font-size: 14px; }
.pequeno { font-size: 13px; }
.escondido, [hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ffe60099; outline-offset: 2px; }

/* ---------- Botões e formulários ---------- */
button, .botao { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; color: #fff; background: var(--bordo); border: 0; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
button:hover, .botao:hover { background: var(--bordo-2); color: #fff; }
button.secundario, .botao.secundario { color: var(--bordo); background: var(--ameixa-claro); }
button.secundario:hover, .botao.secundario:hover { background: #efdfe8; color: var(--bordo); }
.botao.destaque, button.destaque { color: #30251a; background: var(--amarelo); box-shadow: 0 5px 14px #24101833; }
.botao.destaque:hover, button.destaque:hover { background: #fff16a; color: #30251a; transform: translateY(-1px); }
button.perigo { color: var(--vermelho); background: #fff; border: 1px solid #ebc4cb; }
button.perigo:hover { background: var(--vermelho-claro); color: var(--vermelho); }
button.link { padding: 0; color: var(--vermelho); background: none; font-weight: 500; font-size: 13px; }
button.link:hover { background: none; color: var(--bordo); text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; transform: none; }
button.pequeno, .botao.pequeno { padding: 6px 10px; font-size: 13px; }
label { display: grid; align-content: start; gap: 5px; font-size: 13px; font-weight: 700; margin-bottom: 12px; color: #4a4249; }
input[type=text], input[type=email], input[type=password], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--borda-forte); border-radius: 9px; font: inherit; font-weight: 400; color: var(--texto); background: #fff; }
select { width: auto; padding: 8px 10px; font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: 3px solid #8c4e7322; border-color: var(--ameixa); }
input[type=file] { padding: 8px 0; font: inherit; font-weight: 400; }
textarea { resize: vertical; }
.erro { color: var(--vermelho); font-size: 14px; min-height: 1.2em; }
.ok, .ok-texto { color: var(--verde); font-size: 14px; }
s { color: #a39aa0; }
details summary { cursor: pointer; color: var(--bordo-2); font-weight: 700; margin: 6px 0; }

/* ---------- Cartões, selos e tabelas ---------- */
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 14px; padding: 22px; margin-bottom: 16px; box-shadow: var(--sombra); }
.grade { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.selo { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; background: #f4f0f2; color: #6e656c; margin-right: 4px; white-space: nowrap; }
.selo.full, .selo.bom { background: var(--verde-claro); color: var(--verde); }
.selo.fina, .selo.estimativa { background: var(--ouro-claro); color: #a4791b; }
.selo.ruim { background: var(--vermelho-claro); color: var(--vermelho); }
.selo.sinal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid #f3eff1; vertical-align: top; }
th { color: #9b949a; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; background: #fcfbfb; border-top: 1px solid #f0ecef; }
td.num { white-space: nowrap; font-family: var(--titulo); font-weight: 700; }
.tabela-rolagem { overflow-x: auto; }
.aviso { background: var(--amarelo-claro); border: 1px solid #f7e9a8; color: #6b5414; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; font-size: 14px; }
.aviso-linha { color: #6b5414; background: var(--amarelo-claro); border-radius: 8px; padding: 6px 10px; }
.ruim-texto { color: var(--vermelho); }
.passos { padding-left: 20px; margin: 0 0 12px; }
.passos li { margin-bottom: 6px; }
.chave { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; }
.chave input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--bordo); }
.token-novo { background: var(--amarelo-claro); border: 1px dashed var(--amarelo-2); border-radius: 10px; padding: 12px; margin: 10px 0; word-break: break-all; }
.token-novo code { font-size: 15px; font-weight: 700; }
.titulo-linha { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.linha-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; align-items: end; }
.linha-form button { margin-bottom: 12px; }
.linha-form select { width: 100%; padding: 10px; }

/* ---------- Símbolo (pedra facetada + lupa) ---------- */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--amarelo); border-radius: 13px; color: var(--bordo); box-shadow: 0 5px 14px #1f0d1838; }
.brand-icon svg { width: 23px; height: 23px; }
.brand-name { display: block; font: 800 19px/1.1 var(--titulo); letter-spacing: -.7px; }
.brand-sub { display: block; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 2px; opacity: .75; }

/* ---------- Páginas públicas (entrada, privacidade, termos) ---------- */
.topo { background: var(--bordo); color: #fff; }
.topo .dentro { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 14px 16px; }
.topo .suave { color: #d9c4cf; }
.topo .brand-sub { color: #d4bdc9; }
.conteudo { max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; }
.rodape { text-align: center; color: var(--texto-suave); font-size: 13px; padding: 20px 16px 32px; }
.rodape b { color: var(--bordo); }

/* ---------- Herói com radar ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 220px; border-radius: 18px; padding: 30px 32px; color: #fff; background: linear-gradient(111deg, #46172f 0%, #602744 52%, #78405d 100%); box-shadow: 0 17px 35px #46172f1f; margin-bottom: 18px; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border: 1px solid #ffffff14; border-radius: 50%; width: 310px; height: 310px; right: 156px; top: -178px; }
.hero::after { width: 420px; height: 420px; right: 101px; top: -235px; }
.hero-left { max-width: 560px; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 30px; background: #ffffff15; color: #ffe776; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--amarelo); box-shadow: 0 0 9px var(--amarelo); }
.hero-tag i.desligado { background: #d4bdc9; box-shadow: none; }
.hero h1, .hero h2 { max-width: 480px; margin: 14px 0 8px; color: #fff; font: 800 clamp(22px, 2.2vw, 30px)/1.2 var(--titulo); letter-spacing: -.8px; }
.hero em { color: var(--amarelo); font-style: normal; }
.hero p { max-width: 490px; margin: 0; color: #eadce4; font-size: 14px; line-height: 1.6; }
.hero ul { max-width: 520px; margin: 14px 0 0; padding-left: 18px; color: #eadce4; font-size: 14px; }
.hero li { margin-bottom: 4px; }
.hero li::marker { color: var(--amarelo); }
.hero .botao { margin-top: 18px; }
.hero-art { position: absolute; right: 36px; top: 22px; width: 300px; height: 180px; }
.radar { position: absolute; width: 184px; height: 184px; right: 48px; top: 0; border-radius: 50%; border: 1px solid #ffffff28; background: radial-gradient(circle, #ffe60018 0 2px, transparent 3px), repeating-radial-gradient(circle, transparent 0 27px, #ffffff22 28px 29px); overflow: hidden; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, #ffe60038 344deg, transparent 360deg); animation: varrer 6s linear infinite; }
.radar::after { content: ""; position: absolute; width: 1px; height: 50%; left: 50%; top: 0; background: #ffffff38; transform-origin: bottom; transform: rotate(43deg); }
@keyframes varrer { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar::before { animation: none; } }
.radar-point { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--amarelo); box-shadow: 0 0 0 5px #ffe60029, 0 0 14px var(--amarelo); z-index: 1; }
.radar-point.rosa { background: #f4b3d0; box-shadow: 0 0 0 4px #f4b3d022, 0 0 12px #f4b3d0; }
.radar-card { position: absolute; right: 0; top: 46px; min-width: 150px; padding: 11px 14px; border: 1px solid #ffffff2a; border-radius: 11px; background: #51203dd9; backdrop-filter: blur(10px); box-shadow: 0 9px 25px #210e1b55; }
.radar-card span { display: block; color: #e3ccd8; font-size: 11px; }
.radar-card strong { display: block; margin: 3px 0; color: var(--amarelo); font: 800 24px var(--titulo); }
.radar-card small { color: #d7c3ce; font-size: 11px; }

/* ---------- Página inicial (entrar) ---------- */
.entrada .hero { min-height: 260px; }
.entrada .grade { align-items: start; }

/* ---------- Área logada: menu lateral ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px 18px; background: var(--bordo); color: #fff; display: flex; flex-direction: column; z-index: 3; overflow-y: auto; }
.sidebar .brand { padding: 2px 9px 28px; }
.sidebar .brand-sub { color: #d4bdc9; }
.section-label { padding: 0 12px; margin: 0 0 8px; color: #b99aaa; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.nav { display: grid; gap: 4px; }
.nav a { min-height: 44px; padding: 0 12px; border-radius: 10px; color: #e1d2da; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; text-decoration: none; transition: .18s; }
.nav a:hover { background: #ffffff12; color: #fff; }
.nav a.atual { background: #fff; color: var(--bordo); box-shadow: 0 7px 17px #1c0d1722; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .count { margin-left: auto; padding: 2px 8px; border-radius: 20px; background: #ffffff18; color: #f6e6ee; font-size: 11px; font-style: normal; font-weight: 700; }
.nav .count:empty { display: none; }
.nav .atual .count { background: var(--ameixa-claro); color: var(--bordo); }
.nav-divider { height: 1px; background: #ffffff20; margin: 16px 9px; }
.side-bottom { margin-top: auto; padding-top: 16px; }
.extension-card { padding: 13px; border: 1px solid #ffffff20; border-radius: 13px; background: #ffffff0c; margin: 0 4px 14px; }
.ext-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.ext-dot { width: 8px; height: 8px; border-radius: 50%; background: #d4bdc9; flex: none; }
.ext-dot.ligado { background: #6be0a8; box-shadow: 0 0 0 4px #6be0a820; }
.extension-card p { margin: 8px 0 10px; color: #d7c4cf; font-size: 12px; line-height: 1.5; }
.ext-link { color: #ffe882; text-decoration: none; font-size: 12px; font-weight: 700; }
.ext-link:hover { color: #fff; }
.profile { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; border-top: 1px solid #ffffff1b; }
.avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #d1a4bd; color: var(--bordo); font-weight: 800; font-size: 12px; }
.profile-copy { min-width: 0; flex: 1; }
.profile-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-plan { display: block; color: #cbb5c1; font-size: 11px; margin-top: 2px; }
.sair { padding: 6px 10px; background: #ffffff14; color: #f2e4eb; font-size: 12px; }
.sair:hover { background: #ffffff26; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 72px; padding: 0 40px; border-bottom: 1px solid var(--borda); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 2; }
.crumb { color: var(--texto-suave); font-size: 13px; }
.crumb b { color: var(--texto); }
.crumb i { padding: 0 7px; color: #c4bdc2; font-style: normal; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.market-chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #efe7d1; border-radius: 30px; background: #fffdf2; font-size: 12px; font-weight: 700; color: #594e2a; }
.market-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--amarelo); box-shadow: 0 0 0 3px #ffe60044; }
.icon-btn, .sino { position: relative; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1px solid var(--borda); background: #fff; border-radius: 50%; color: #6b626a; }
.icon-btn:hover, .sino:hover { background: var(--ameixa-claro); color: var(--bordo); }
.sino svg { width: 17px; height: 17px; }
.sino-num { position: absolute; top: -4px; right: -4px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--vermelho); color: #fff; font-size: 11px; line-height: 18px; text-align: center; border: 2px solid #fff; }
.sair-celular { display: none; }
.content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 32px 40px 40px; flex: 1; }
.content.estreito { max-width: 1120px; }
.alertas-caixa { background: var(--cartao); border-bottom: 1px solid var(--borda); box-shadow: 0 10px 24px #2b172014; }
.alertas-caixa .dentro { padding: 16px 40px; margin: 0 auto; max-height: 50vh; overflow-y: auto; max-width: 1480px; }
.alertas-caixa .titulo-linha { align-items: center; margin-bottom: 8px; }
.alerta { border-left: 3px solid var(--borda-forte); padding: 8px 12px; margin: 0 0 8px; font-size: 14px; border-radius: 0 8px 8px 0; }
.alerta.novo { border-color: var(--vermelho); background: var(--vermelho-claro); }

/* ---------- Saudação e cabeçalho de página ---------- */
.greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.greeting > div { min-width: 0; }
.greeting p { margin: 0; color: var(--texto-suave); font-size: 14px; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #8d596f; text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 800; }
.eyebrow span { display: inline-block; width: 20px; height: 2px; background: var(--amarelo-2); }

/* ---------- Indicadores ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.metric { position: relative; min-height: 112px; padding: 16px 18px; background: #fff; border: 1px solid var(--borda); border-radius: 14px; box-shadow: var(--sombra); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6f686e; font-size: 13px; font-weight: 600; }
.metric-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--ameixa-claro); color: var(--bordo); }
.metric-icon.amarelo { background: #fff9d7; color: #776019; }
.metric-icon.verde { background: var(--verde-claro); color: var(--verde); }
.metric-icon svg { width: 16px; height: 16px; }
.metric-value { margin: 8px 0 2px; font: 800 26px/1.2 var(--titulo); letter-spacing: -.7px; }
.metric-foot { color: #8c858c; font-size: 12px; }
.up { color: var(--verde); font-weight: 700; }
.atencao { color: #a4791b; font-weight: 700; }

/* ---------- Painéis da visão geral ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 13px; }
.section-head h3 { margin: 0; font: 800 17px var(--titulo); letter-spacing: -.35px; }
.section-head p { margin: 3px 0 0; color: var(--texto-suave); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--bordo-2); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.lower { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .8fr); gap: 16px; align-items: start; }
.lower.uma-coluna { grid-template-columns: minmax(0, 1fr); }
.panel { border: 1px solid var(--borda); border-radius: 14px; background: #fff; box-shadow: var(--sombra); overflow: hidden; }
.panel-top { padding: 16px 18px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-title { font-size: 14px; font-weight: 800; }
.panel-sub { margin-top: 2px; color: #938c93; font-size: 12px; }
.search { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 10px; margin: 0; border: 1px solid var(--borda-forte); border-radius: 9px; color: #9b959b; font-weight: 400; }
.search svg { width: 14px; flex: none; }
.search input { width: 150px; border: 0; outline: 0; padding: 0; font-size: 13px; }
.op-table { white-space: nowrap; }
.op-table th:first-child, .op-table td:first-child { padding-left: 18px; }
.op-table td { padding: 12px 10px; vertical-align: middle; }
.op-table tbody tr { transition: .15s; }
.op-table tbody tr:hover { background: #fffdf7; }
.op-table tbody tr:last-child td { border-bottom: 0; }
.product { display: flex; align-items: center; gap: 10px; }
.prod-img { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #f6f2ef; object-fit: contain; color: var(--ameixa); font: 800 15px var(--titulo); }
.prod-name { max-width: 300px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 700; }
.prod-cat { margin-top: 2px; color: #9b949a; font-size: 12px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.profit { color: var(--verde); }
.prejuizo { color: var(--vermelho); }
.action { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--borda); border-radius: 8px; background: #fff; color: #706772; font-weight: 700; text-decoration: none; }
.action:hover { border-color: #e3cdd9; color: var(--bordo); background: #fff; }
.table-foot { padding: 12px 18px; border-top: 1px solid #f3eff1; color: #8e878e; font-size: 12px; }
.table-foot b { color: #584e56; }
.vazio-painel { padding: 28px 18px; text-align: center; color: var(--texto-suave); font-size: 14px; }
.vazio-painel b { color: var(--texto); }
.market-banner { margin: 0 15px 8px; padding: 12px; border-radius: 10px; background: var(--amarelo-claro); border: 1px solid #fbf0bc; }
.market-banner b { font-size: 13px; }
.market-banner p { margin: 4px 0 0; color: #7d6c3e; font-size: 12px; line-height: 1.45; }
.category { padding: 13px 16px; border-bottom: 1px solid #f3eff1; }
.category:last-child { border-bottom: 0; }
.cat-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-name { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; min-width: 0; }
.cat-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-emoji { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #faf6f2; color: var(--ameixa); font: 800 13px var(--titulo); }
.cat-count { color: var(--bordo-2); font-size: 12px; font-weight: 800; white-space: nowrap; }
.cat-info { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 37px; color: #9a9399; font-size: 12px; }
.progress { height: 5px; flex: 1; border-radius: 10px; background: #f1ecef; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--bordo-2), #b27798); }
.category:first-of-type .progress i { background: linear-gradient(90deg, #d2a400, var(--amarelo-2)); }
.insight { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 16px; padding: 15px 18px; border: 1px solid #f0e9ed; border-radius: 13px; background: linear-gradient(105deg, #fff 0, #fff 65%, var(--amarelo-claro) 100%); }
.insight-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--amarelo); color: #554415; }
.insight-symbol svg { width: 19px; }
.insight-text strong { font-size: 14px; }
.insight-text p { margin: 3px 0 0; color: #8e878e; font-size: 13px; line-height: 1.45; }

/* ---------- Mesa de decisão (Kanban) ---------- */
.quadro { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.quadro > .cartao.vazio { grid-column: 1 / -1; }
.coluna { background: #f3eff1; border-radius: 14px; padding: 10px; min-height: 180px; border: 2px dashed transparent; border-top: 4px solid var(--ameixa); }
.coluna[data-stage=radar] { border-top-color: var(--amarelo-2); }
.coluna[data-stage=quoting] { border-top-color: var(--ameixa); }
.coluna[data-stage=viable] { border-top-color: var(--verde); }
.coluna[data-stage=active] { border-top-color: var(--bordo); }
.coluna[data-stage=discarded] { border-top-color: #c9c0c5; opacity: .85; }
.coluna.alvo { border-color: var(--ameixa); background: var(--ameixa-claro); }
.coluna > header { padding: 4px 4px 10px; font-size: 14px; }
.contador { display: inline-block; min-width: 24px; padding: 0 7px; border-radius: 99px; background: #fff; color: var(--bordo); font-size: 12px; font-weight: 800; text-align: center; }
.coluna-cards { display: grid; gap: 9px; }
.vazio-col { text-align: center; padding: 18px 0; margin: 0; }
.kcard { background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; padding: 11px; cursor: grab; box-shadow: 0 2px 6px #2b17200a; transition: border-color .15s, box-shadow .15s; }
.kcard:hover, .kcard:focus { border-color: #dcc3d1; box-shadow: 0 6px 16px #46172f14; outline: none; }
.kcard.arrastando { opacity: .4; }
.kcard-topo { display: flex; gap: 9px; align-items: flex-start; }
.kcard-titulo { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 7px; }
.kcard-linha { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 5px; }
.kcard-linha b { font-family: var(--titulo); }
.kcard-foto { width: 46px; height: 46px; object-fit: contain; border-radius: 9px; background: #fff; flex: none; border: 1px solid var(--borda); }
.legenda { margin-top: 12px; }

/* Card aberto (gaveta lateral) */
.gaveta { width: min(740px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 4px solid var(--amarelo); overflow-y: auto; background: var(--cartao); color: var(--texto); }
.gaveta::backdrop { background: #2b172077; }
.gaveta-topo { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 22px; background: var(--bordo); color: #fff; }
.gaveta-topo .suave { color: #e3ccd8; }
.gaveta-topo button.secundario { background: #ffffff1a; color: #fff; }
.gaveta-topo button.secundario:hover { background: #ffffff30; }
.salvo { color: #a6ebc8; font-size: 13px; flex: 1; }
#card-corpo { padding: 18px 22px 32px; }
#card-corpo h2 { font-size: 20px; line-height: 1.3; margin: 0; }
#card-corpo h2 a { color: var(--texto); text-decoration: none; }
#card-corpo h2 a:hover { color: var(--bordo-2); text-decoration: underline; }
.card-cabeca { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.card-foto { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; background: #fff; flex: none; border: 1px solid var(--borda); }
.lista-foto { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin-right: 6px; border-radius: 6px; background: #fff; }
.bloco { border-top: 1px solid var(--borda); padding-top: 16px; margin-top: 16px; }
.bloco h3 { margin: 0 0 12px; font-size: 16px; color: var(--bordo); }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.campos-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.campos select, .mover select { width: 100%; padding: 10px; font-size: 14px; }
.mover { max-width: 320px; }
.ajuda { font-weight: 400; font-size: 12px; color: var(--texto-suave); }
.resultado { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; background: var(--fundo); border: 1px solid var(--borda); border-radius: 12px; padding: 14px; margin: 6px 0 10px; }
.resultado > div { display: grid; }
.resultado.bom { background: #eef8f3; border-color: #c4e3d3; }
.resultado.fina { background: #fffaea; border-color: #f4e2a6; }
.resultado.ruim { background: #fcf1f3; border-color: #ecc8cf; }
.resultado .grande { font: 800 24px/1.2 var(--titulo); }
.resultado.bom .grande { color: var(--verde); }
.resultado.fina .grande { color: #a4791b; }
.resultado.ruim .grande { color: var(--vermelho); }
table.conta td { padding: 7px 6px; }
form.ligar { display: flex; gap: 6px; }
form.ligar input { padding: 7px 9px; font-size: 13px; min-width: 180px; }
#concorrentes table { margin-bottom: 8px; }

/* ---------- Textos legais ---------- */
.texto-legal { max-width: 780px; margin: 0 auto; line-height: 1.65; }
.texto-legal h2 { margin-top: 26px; font-size: 18px; color: var(--bordo); }
.texto-legal table { width: 100%; }
[data-pendente] { background: #fff3cd; color: #7a5a00; padding: 0 4px; border-radius: 4px; }

/* Login por link (ADR-0032) */
.com-senha { margin-top: 16px; border-top: 1px solid var(--borda); padding-top: 12px; }
.com-senha summary { color: var(--texto-suave); font-size: 14px; }

/* ---------- Telas menores ---------- */
@media (max-width: 1110px) {
  .app { grid-template-columns: 220px minmax(0, 1fr); }
  .topbar { padding: 0 26px; }
  .content { padding: 28px 26px 40px; }
  .alertas-caixa .dentro { padding: 16px 26px; }
  .hero-art { right: 10px; transform: scale(.86); transform-origin: right center; }
  .hero-left { max-width: 58%; }
  .lower { grid-template-columns: minmax(0, 1fr) 280px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 74px minmax(0, 1fr); }
  .sidebar { padding: 20px 10px; }
  .sidebar .brand { justify-content: center; padding: 2px 0 22px; }
  .sidebar .brand-copy, .section-label, .nav a span, .nav .count, .extension-card, .profile-copy { display: none; }
  .nav a { justify-content: center; padding: 0; }
  .nav-divider { margin: 14px 3px; }
  .profile { flex-direction: column; padding: 12px 0 0; }
  .sair { font-size: 11px; padding: 5px 7px; }
  .hero-art { opacity: .45; right: -15px; }
  .hero-left { max-width: 72%; }
  .lower, .grade { grid-template-columns: 1fr; }
  .campos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 62px; padding: 6px 8px; background: #fff; border-top: 1px solid var(--borda); box-shadow: 0 -7px 22px #2b17200d; overflow: visible; }
  .sidebar .brand, .section-label, .nav-divider, .side-bottom { display: none; }
  .sidebar { flex-direction: row; }
  .sidebar .nav { display: contents; }
  .nav a { flex: 1; min-height: 48px; color: #8c838a; border-radius: 9px; }
  .nav a.atual { background: var(--ameixa-claro); color: var(--bordo); box-shadow: none; }
  .nav svg { width: 21px; height: 21px; }
  .topbar { min-height: 58px; padding: 0 16px; }
  .crumb { font-size: 12px; }
  .crumb .so-largo { display: none; }
  .market-chip { display: none; }
  .sair-celular { display: inline-flex; padding: 6px 10px; font-size: 12px; }
  .content { padding: 22px 16px 84px; }
  .alertas-caixa .dentro { padding: 14px 16px; }
  .hero { min-height: 0; padding: 22px 20px; }
  .hero-left { max-width: 100%; }
  .hero-art { right: -96px; top: 40px; opacity: .25; }
  .metrics { gap: 10px; }
  .metric { min-height: 100px; padding: 13px; }
  .metric-value { font-size: 21px; }
  .metric-label { font-size: 12px; }
  .metric-icon { width: 26px; height: 26px; }
  .search input { width: 100px; }
  .op-table th:first-child, .op-table td:first-child { padding-left: 12px; }
  .prod-name, .prod-cat { max-width: 170px; }
  .insight { grid-template-columns: auto 1fr; }
  .insight .text-link { grid-column: 2; }
  .quadro { grid-template-columns: repeat(5, 84vw); scroll-snap-type: x mandatory; }
  .coluna { scroll-snap-align: start; }
  .topo .dentro .suave { display: none; }
  .cartao { padding: 18px; }
}
