/* ==========================================================================
   PAINEL · IMERSÃO SKILLS DO CLAUDE PARA O DIREITO · NOV26
   Pele: DESIGN DNA do Treinamento IA Jurídica (marca Margem). Campo escuro de tinta,
   margem viva no lugar do cartão, registro de protocolo nos rótulos.
   Toda cor vive em token no :root: um tema papel é troca de tokens, não de regras.
   ========================================================================== */

:root {
  /* paleta (papel de cada cor no DNA) */
  --papel: #f5efe2;            /* texto principal sobre campo escuro */
  --tinta: #15273f;            /* campo */
  --tinta-profunda: #0f1a2b;   /* campo fundo, sombra de conteúdo */
  --terracota: #a05c3e;        /* filete de anotação, barra da marca */
  --terra-hot: #c47a55;        /* pior ponta do heatmap */
  --terra-light: #d68a6a;      /* texto de alerta (AA sobre tinta) */
  --ouro: #c9a24a;             /* filete de regra, gravação */
  --ouro-suave: #e0c281;       /* texto de destaque */
  --ouro-fundo: #a67e2e;
  --suave: #a9b3c4;            /* texto secundário (AA) */
  --fade: #718096;             /* só decoração, nunca texto */

  /* papéis semânticos */
  --campo-a: #15273f;
  --campo-b: #0f1a2b;
  --halo: rgba(201, 162, 74, .17);
  --linha: rgba(245, 239, 226, .09);
  --linha-forte: rgba(245, 239, 226, .16);
  --luz: rgba(255, 255, 255, .07);
  --sombra-curta: rgba(15, 26, 43, .55);
  --sombra-longa: rgba(15, 26, 43, .6);
  --superficie: rgba(245, 239, 226, .035);
  --superficie-alta: rgba(245, 239, 226, .06);
  --depressao: rgba(10, 18, 31, .55);
  --heat-bom: 201, 162, 74;     /* r,g,b do ouro */
  --heat-ruim: 196, 122, 85;    /* r,g,b da terra-hot */

  /* tipografia */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-texto: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* raio: escala de seis degraus */
  --r0: 0;
  --r-detalhe: 8px;
  --r-controle: 10px;
  --r-superficie: 12px;
  --r-painel: 16px;
  --r-pilula: 999px;

  /* motion */
  --curva: cubic-bezier(.16, 1, .3, 1);
  --t-passagem: 200ms;
  --t-elevacao: 250ms;
  --t-revelacao: 480ms;

  --pad: clamp(14px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--campo-b);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-texto);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--papel);
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(900px 520px at 6% -4%, var(--halo), transparent 62%),
    linear-gradient(165deg, var(--campo-a), var(--campo-b) 68%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* grão fractal a 5%, clareando sobre campo escuro */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topo, .palco, .rodape { position: relative; z-index: 1; }

a { color: var(--ouro-suave); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ouro-suave); outline-offset: 2px; }

/* ----------------------------------------------------- registro de protocolo */
.reg {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-texto);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--ouro-suave);
  white-space: nowrap;
}
.reg::after {
  content: '';
  flex: 1;
  min-width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--ouro), rgba(201, 162, 74, 0));
}
.reg.terra { color: var(--terra-light); }
.reg.terra::after { background: linear-gradient(90deg, var(--terracota), rgba(160, 92, 62, 0)); }

/* ------------------------------------------------------------------ topo */
.topo {
  padding: 22px var(--pad) 0;
  max-width: 1480px;
  margin: 0 auto;
}
.topo-linha {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}
.marca-bloco { min-width: 0; }

/* marca Margem: barra vertical de anotação em terracota com o nome recuado */
.marca {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}
.marca-barra {
  width: 3px;
  min-height: 22px;
  background: var(--terracota);
  border-radius: 0;
}
.marca-nome {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--papel);
  align-self: center;
}

h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 3.1vw, 32px);
  line-height: 1.12;
  letter-spacing: -.024em;
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  text-wrap: balance;
  color: var(--papel);
}
h1 .sep { color: var(--ouro); padding: 0 .18em; }
.marca-sub {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--suave);
}

.sinais { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sinal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--suave);
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linha);
  border-radius: var(--r-pilula) var(--r-pilula) var(--r-pilula) 0;
}
.sinal b { color: var(--papel); font-weight: 700; letter-spacing: .02em; text-transform: none; font-size: 12px; }
.sinal i { width: 7px; height: 7px; border-radius: 50%; background: var(--ouro); display: block; box-shadow: 0 0 0 3px rgba(201, 162, 74, .18); }
.sinal i.frio { background: var(--fade); box-shadow: none; }
.sinal i.morto { background: var(--terra-hot); box-shadow: 0 0 0 3px rgba(196, 122, 85, .22); }

/* período */
.periodo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.periodo-rotulo {
  font-weight: 700; font-size: 11px; letter-spacing: .20em; text-transform: uppercase; color: var(--ouro-suave);
  margin-right: 2px;
}
.chip, .botao {
  appearance: none;
  cursor: pointer;
  font-family: var(--f-texto);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--papel);
  background: var(--superficie-alta);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--linha-forte), inset 0 1px 0 var(--luz);
  transition: background var(--t-passagem) var(--curva), box-shadow var(--t-elevacao) var(--curva), transform var(--t-passagem) var(--curva);
}
.chip { padding: 7px 14px; border-radius: var(--r-pilula) var(--r-pilula) var(--r-pilula) 0; }
.botao { padding: 8px 14px; border-radius: var(--r-controle); text-decoration: none; display: inline-block; }
.chip:hover, .botao:hover { background: rgba(245, 239, 226, .11); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: rgba(201, 162, 74, .20);
  box-shadow: inset 0 0 0 1px var(--ouro), inset 0 1px 0 var(--luz);
  color: var(--ouro-suave);
}
.botao { background: linear-gradient(180deg, rgba(201, 162, 74, .26), rgba(201, 162, 74, .14)); box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .55), inset 0 1px 0 var(--luz); }
.botao.secundario { background: var(--superficie-alta); box-shadow: inset 0 0 0 1px var(--linha-forte), inset 0 1px 0 var(--luz); }
.campo-data {
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--papel);
  background: var(--depressao);
  border: 0;
  border-radius: var(--r-controle);
  padding: 7px 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--linha);
  color-scheme: dark;
  min-width: 0;
}
.sep-data { color: var(--ouro); }

/* abas */
.abas {
  display: flex;
  gap: 4px;
  margin-top: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--linha);
}
.abas::-webkit-scrollbar { display: none; }
.aba {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--suave);
  white-space: nowrap;
  position: relative;
  transition: color var(--t-passagem) var(--curva);
}
.aba::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--ouro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-elevacao) var(--curva);
}
.aba:hover { color: var(--papel); }
.aba[aria-selected="true"] { color: var(--ouro-suave); }
.aba[aria-selected="true"]::after { transform: scaleX(1); }

/* ------------------------------------------------------------ palco / grade */
.palco { max-width: 1480px; margin: 0 auto; padding: 22px var(--pad) 40px; }
.vista[hidden] { display: none; }
.vista { animation: entra var(--t-revelacao) var(--curva) both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
.c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.grade > * { min-width: 0; }

/* ------------------------------------------------------- margem viva (cartão) */
.mv {
  position: relative;
  padding: 18px 22px 20px 26px;
  background: linear-gradient(180deg, var(--superficie-alta), var(--superficie));
  border-left: 2px solid var(--ouro);
  border-radius: 0 var(--r-superficie) var(--r-superficie) 0;
  box-shadow:
    inset 0 0 0 1px var(--linha),                 /* linha de contato */
    inset 0 1px 0 var(--luz),                     /* luz da aresta superior */
    0 1px 2px var(--sombra-curta),                /* sombra curta de apoio */
    0 22px 44px -16px var(--sombra-longa);        /* sombra longa de ambiente */
  min-width: 0;
}
.mv.terra { border-left-color: var(--terracota); }
.mv.painel { border-radius: 0 var(--r-painel) var(--r-painel) 0; }
.mv-topo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.mv-topo .reg { flex: 1 1 auto; min-width: 150px; }
.mv-nota { font-size: 12px; color: var(--suave); }
.mv.rente { padding: 18px 0 0 0; }
.mv.rente .mv-topo { padding: 0 22px 0 26px; }
.mv.rente > .nota-recon { padding: 0 22px 14px 26px; }

/* ------------------------------------------------------------------- VERBA */
.verba { padding-top: 20px; padding-bottom: 24px; }
.verba::before {   /* quebra de grade: o filete de regra sangra até a margem esquerda da tela */
  content: '';
  position: absolute;
  top: 0; left: calc(-1 * var(--pad)); width: calc(var(--pad) + 2px); height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 74, 0), var(--ouro));
}
.verba-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 18px 0 6px;
}
.numero-gigante {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(76px, 11vw, 124px);
  line-height: .95;
  letter-spacing: -.036em;
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  color: var(--papel);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(15, 26, 43, .6);
  white-space: nowrap;
}
.numero-gigante .rs { font-size: .3em; letter-spacing: 0; margin-right: .12em; color: var(--ouro-suave); vertical-align: .9em; font-weight: 400; }
.numero-gigante .cent { font-size: .36em; letter-spacing: -.01em; color: var(--suave); }
.verba-de { font-size: 18px; letter-spacing: -.014em; color: var(--suave); }
.verba-de b { color: var(--papel); font-weight: 700; }

.trilho {
  position: relative;
  height: 10px;
  margin: 22px 0 10px;
  background: var(--depressao);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--linha);
  border-radius: 0;
}
.trilho > i {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--ouro-fundo), var(--ouro) 70%, var(--ouro-suave));
  box-shadow: 0 0 14px rgba(201, 162, 74, .35);
  transition: width var(--t-revelacao) var(--curva);
}
.trilho > .esperado {
  position: absolute; top: -7px; bottom: -7px; width: 2px;
  background: var(--terra-light);
}
.trilho > .esperado::after {
  content: attr(data-r);
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-light); white-space: nowrap;
}
.trilho-eixo { display: flex; justify-content: space-between; font-size: 11px; color: var(--suave); }

.fatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 22px; margin-top: 20px; }
.fato .r { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.fato .v { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--papel); }
.fato .p { display: block; margin-top: 2px; font-size: 12px; color: var(--suave); }

/* margem de anotação (coluna livre à direita) */
.anota { display: flex; flex-direction: column; gap: 16px; }
.anota .item .r { display: block; font-size: 11px; font-weight: 700; letter-spacing: .20em; text-transform: uppercase; color: var(--terra-light); }
.anota .item .v { display: block; margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.anota .item .p { display: block; margin-top: 2px; font-size: 12px; color: var(--suave); }
.leitura { font-size: 17px; font-weight: 700; letter-spacing: -.014em; line-height: 1.3; }
.leitura.adiantado { color: var(--ouro-suave); }
.leitura.no-ritmo { color: var(--papel); }
.leitura.atrasado { color: var(--terra-light); }
.conta { font-size: 12px; color: var(--suave); border-top: 1px solid var(--linha); padding-top: 10px; }
.conta b { color: var(--papel); font-weight: 600; }
.evento { font-size: 12px; color: var(--suave); }
.evento b { color: var(--papel); }

/* -------------------------------------------------------------------- KPI */
.fila-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  padding: 14px 16px 14px 18px;
  background: linear-gradient(180deg, var(--superficie-alta), var(--superficie));
  border-left: 2px solid var(--ouro);
  border-radius: 0 var(--r-superficie) var(--r-superficie) 0;
  box-shadow: inset 0 0 0 1px var(--linha), inset 0 1px 0 var(--luz), 0 1px 2px var(--sombra-curta), 0 16px 30px -16px var(--sombra-longa);
}
.kpi.terra { border-left-color: var(--terracota); }
.kpi-rotulo { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.kpi-valor { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi-pe { margin-top: 4px; font-size: 12px; color: var(--suave); }
.vazio-v { color: var(--fade); }

/* ------------------------------------------------------------------ funil */
.funil { display: flex; flex-direction: column; gap: 0; }
.etapa { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.etapa .nome { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.etapa .barra { height: 26px; background: var(--depressao); box-shadow: inset 0 0 0 1px var(--linha); border-radius: 0; position: relative; }
.etapa .barra i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--ouro-fundo), var(--ouro)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); transition: width var(--t-revelacao) var(--curva); }
.etapa:last-child .barra i { background: linear-gradient(90deg, var(--terracota), var(--terra-hot)); }
.etapa .valor { font-size: 18px; font-weight: 700; letter-spacing: -.03em; min-width: 72px; text-align: right; }
.taxa { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 26px; }
.taxa span { grid-column: 2; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ouro-suave); padding-left: 14px; border-left: 1px dashed rgba(201, 162, 74, .5); height: 100%; }
.taxa span em { font-style: normal; font-weight: 600; color: var(--suave); }

/* ------------------------------------------------------------------ gráficos */
.graf { width: 100%; }
.graf svg { display: block; max-width: 100%; height: auto; }
.svg-bloco text { font-family: var(--f-texto); font-variant-numeric: tabular-nums; }
.svg-bloco .eixo { stroke: var(--linha); stroke-width: 1; }
.svg-bloco .fraco { fill: var(--suave); }
.svg-bloco .s-compras { fill: var(--ouro); }
.svg-bloco .s-checkout { fill: var(--papel); fill-opacity: .42; }
.svg-bloco .s-invest { stroke: var(--terra-light); fill: none; }
.svg-bloco .s-pt { fill: var(--campo-b); stroke: var(--terra-light); }
.svg-bloco .t-invest { fill: var(--terra-light); }
.svg-bloco .rot { fill: var(--papel); }
.svg-bloco .parcial { stroke: var(--ouro-suave); stroke-dasharray: 3 3; fill: none; }
.legenda { display: inline-flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--suave); }
.legenda i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.i-compras { background: var(--ouro); }
.i-checkout { background: rgba(245, 239, 226, .42); }
.i-invest { background: var(--terra-light); height: 2px !important; }

/* ------------------------------------------------------------------ tabela */
.rolo { overflow-x: auto; overflow-y: hidden; max-width: 100%; -webkit-overflow-scrolling: touch; }
.rolo.alto { max-height: 70vh; overflow-y: auto; }
table.tab { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.tab th, .tab td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--linha); }
.tab th {
  position: sticky; top: 0; z-index: 2;
  background: var(--campo-b);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--suave);
  cursor: pointer; user-select: none;
  box-shadow: 0 1px 0 var(--ouro);
}
.tab th.ativo { color: var(--ouro-suave); }
.tab th .ord { display: inline-block; width: 10px; margin-left: 4px; color: var(--ouro-suave); }
.tab td.txt, .tab th.txt { text-align: left; }
.tab .fixa { position: sticky; left: 0; z-index: 1; background: #12203a; max-width: 260px; overflow: hidden; text-overflow: ellipsis; box-shadow: 1px 0 0 var(--linha); }
.tab th.fixa { z-index: 3; background: var(--campo-b); }
.tab tbody tr { transition: background var(--t-passagem) var(--curva); }
.tab tbody tr:hover td:not(.hm) { background: rgba(245, 239, 226, .04); }
.tab tbody tr:hover td.fixa { background: #182a47; }
.tab td.hm { background: var(--hm); }
.tab td.vazio .val { color: var(--fade); }
.tab td.parcial-linha .val::after { content: ' · parcial'; font-size: 11px; color: var(--ouro-suave); font-weight: 600; letter-spacing: .04em; }
.tab tfoot td { position: sticky; bottom: 0; background: var(--campo-b); font-weight: 700; border-top: 1px solid var(--ouro); border-bottom: 0; color: var(--ouro-suave); }
.tab tfoot td.fixa { background: var(--campo-b); }
.tab .nome-longo { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.nota-recon { margin: 10px 0 0; font-size: 12px; color: var(--suave); }
.link-cri { color: var(--papel); text-decoration: none; border-bottom: 1px solid rgba(201, 162, 74, .5); }
.link-cri:hover { color: var(--ouro-suave); }

/* ------------------------------------------------------- criativos (cartões) */
.grade-cri { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 16px; }
.cri {
  background: linear-gradient(180deg, var(--superficie-alta), var(--superficie));
  border-left: 2px solid var(--ouro);
  border-radius: 0 var(--r-superficie) var(--r-superficie) 0;
  box-shadow: inset 0 0 0 1px var(--linha), inset 0 1px 0 var(--luz), 0 1px 2px var(--sombra-curta), 0 22px 44px -18px var(--sombra-longa);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.cri-previa { position: relative; aspect-ratio: 4 / 5; background: var(--depressao); overflow: hidden; }
.cri-previa a, .cri-previa img { display: block; width: 100%; height: 100%; }
.cri-previa img { object-fit: cover; }
.sem-previa { display: grid; place-items: center; height: 100%; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--suave); }
.cri-nome { padding: 12px 14px 4px; font-weight: 700; font-size: 13px; letter-spacing: -.014em; overflow-wrap: anywhere; }
.cri-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 8px 14px; }
.cri-cel .r { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.cri-cel .v { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.cri-rodape { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 14px 14px; margin-top: auto; font-size: 12px; color: var(--suave); border-top: 1px solid var(--linha); }
.ordem { display: flex; gap: 6px; flex-wrap: wrap; }

/* estado vazio, esqueleto, fita */
.estado { padding: 28px 8px; color: var(--suave); }
.estado .titulo { font-family: var(--f-display); font-size: 20px; font-variation-settings: 'opsz' 144, 'WONK' 1; color: var(--papel); }
.esqueleto { height: 92px; background: linear-gradient(90deg, var(--superficie), var(--superficie-alta), var(--superficie)); background-size: 200% 100%; animation: pulso 1.4s linear infinite; border-radius: 0 var(--r-superficie) var(--r-superficie) 0; }
@keyframes pulso { to { background-position: -200% 0; } }
.carregando-fita { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; background: linear-gradient(90deg, transparent, var(--ouro), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: fita 1s var(--curva) infinite; }
@keyframes fita { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.rodape { max-width: 1480px; margin: 0 auto; padding: 4px var(--pad) 36px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 12px; color: var(--suave); }

/* ------------------------------------------------- vendas (Hotmart) */
.kpi.par { grid-column: span 2; }
.kpi-par { display: flex; align-items: stretch; gap: 14px; margin-top: 6px; }
.kpi-lado { flex: 1; min-width: 0; }
.kpi-lado .kpi-valor { margin-top: 2px; }
.kpi-tag { display: block; font-size: 10px; font-weight: 700; letter-spacing: .20em; text-transform: uppercase; color: var(--ouro-suave); }
.kpi-lado.venda .kpi-tag { color: var(--terra-light); }
.kpi-fio { width: 1px; background: linear-gradient(180deg, transparent, var(--linha-forte), transparent); }
.i-venda { background: var(--papel); }
.svg-bloco .s-venda { fill: var(--papel); }

.aguardando { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 18px; font-size: 13px; color: var(--suave);
  border-left: 2px solid var(--terracota); border-radius: 0 var(--r-superficie) var(--r-superficie) 0; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linha); }
.pulso { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--terra-hot); box-shadow: 0 0 0 4px rgba(196, 122, 85, .2); }

.lista-simples { display: flex; flex-direction: column; }
.linha-simples { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--linha); font-size: 13px; }
.linha-simples:last-child { border-bottom: 0; }
.linha-simples .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-simples .q { flex: none; font-weight: 700; color: var(--ouro-suave); }

.painel-div { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 26px; }
.bloco-num .r { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.bloco-num .v { margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.bloco-num .v.neg { color: var(--terra-light); }
.bloco-num .p { margin-top: 3px; font-size: 12px; color: var(--suave); }

.busca { width: 100%; font: inherit; font-size: 14px; color: var(--papel); background: var(--depressao); border: 0; border-radius: var(--r-controle); padding: 10px 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--linha); }
.selo { display: inline-block; padding: 2px 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro-suave);
  background: rgba(201, 162, 74, .14); box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .4); border-radius: var(--r-pilula) var(--r-pilula) var(--r-pilula) 0; }
.st { display: inline-block; padding: 2px 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; border-radius: var(--r-pilula) var(--r-pilula) var(--r-pilula) 0; }
.st.pago { color: var(--ouro-suave); background: rgba(201, 162, 74, .14); }
.st.dev { color: var(--terra-light); background: rgba(196, 122, 85, .16); }
.st.outro { color: var(--suave); background: var(--superficie-alta); }
@media (max-width: 720px) { .kpi.par { grid-column: span 2; } .kpi-par { gap: 10px; } }

/* ------------------------------------------------------------- responsivo */
@media (max-width: 1100px) {
  .c3 { grid-column: span 6; }
  .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .topo { padding-top: 16px; }
  .mv { padding: 16px 16px 18px 18px; }
  .mv.rente .mv-topo { padding: 0 16px 0 18px; }
  .mv.rente > .nota-recon { padding: 0 16px 12px 18px; }
  .c3 { grid-column: span 12; }
  .fila-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-valor { font-size: 22px; }
  .numero-gigante { font-size: clamp(64px, 21vw, 92px); }
  .etapa, .taxa { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 8px; }
  .etapa .valor { min-width: 56px; font-size: 16px; }
  .periodo { gap: 6px; }
  .periodo-rotulo { width: 100%; }
  .campo-data { flex: 1 1 120px; }
  .grade-cri { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cri-linha { grid-template-columns: 1fr 1fr; padding: 6px 10px; }
  .cri-nome { padding: 10px 10px 2px; font-size: 12px; }
  .cri-rodape { padding: 8px 10px 12px; }
  .tab th, .tab td { padding: 8px 10px; }
  .tab .fixa { max-width: 140px; }
  .tab .nome-longo { max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* cartão de criativo: rótulo longo quebra em vez de cortar */
.cri-cel { min-width: 0; }
.cri-cel .r { font-size: 9.5px; letter-spacing: .08em; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
