/* Painel do time — identidade "Pode isso?" (docs/design/identidade.md).
   Texto sobre turquesa, coral e amarelo é sempre tinta. Turquesa e coral não se tocam em
   áreas grandes (entre eles: branco, areia ou tinta). Amarelo em pequenas doses. */
:root {
  --turquesa: #00d1c1;
  --turquesa-escura: #007a71;
  --turquesa-clara: #ddf7f4;
  --coral: #ff5c5c;
  --coral-escuro: #d93a3a;
  --amarelo: #ffd23f;
  --tinta: #1f1b2e;
  --areia: #fff4e3;
  --branco: #ffffff;
  --bg: #fcfaf6;
  --surface: #ffffff;
  --surface-2: #fff4e3;
  --text: #1f1b2e;
  --text-2: #4a4458;
  --muted: #6e6880;
  --border: #ece5d8;
  --grid: #efeae0;
  --mark: #00897b;
  --focus: #1f1b2e;
  --erro: #d93a3a;
  --menu-bg: #1f1b2e;
  --menu-text: #fff4e3;
  --menu-muted: #b9b2c8;
  --radius: 20px;
  --sombra: 0 1px 2px rgba(31, 27, 46, 0.04), 0 6px 24px rgba(31, 27, 46, 0.06);
  --font: "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --forte-bg: #1f1b2e;
  --forte-text: #fff4e3;
  --ativo-bg: #00d1c1;
  --sobe: #007a71;
  --calor: #007a71;
  --calor-texto: #ffffff;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15121f;
  --surface: #1f1b2e;
  --surface-2: #2a2540;
  --turquesa-clara: #183f3c;
  --text: #f5f1ea;
  --text-2: #cfc8da;
  --muted: #a49cb3;
  --border: #353049;
  --grid: #2e2943;
  --mark: #2bc4b6;
  --focus: #ffd23f;
  --erro: #ff8f8f;
  --menu-bg: #0f0d17;
  --sombra: none;
  color-scheme: dark;
  --forte-bg: #fff4e3;
  --forte-text: #1f1b2e;
  --ativo-bg: #00d1c1;
  --sobe: #2bc4b6;
  --calor: #2bc4b6;
  --calor-texto: #1f1b2e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15121f;
    --surface: #1f1b2e;
    --surface-2: #2a2540;
    --turquesa-clara: #183f3c;
    --text: #f5f1ea;
    --text-2: #cfc8da;
    --muted: #a49cb3;
    --border: #353049;
    --grid: #2e2943;
    --mark: #2bc4b6;
    --focus: #ffd23f;
    --erro: #ff8f8f;
    --menu-bg: #0f0d17;
    --sombra: none;
    color-scheme: dark;
    --forte-bg: #fff4e3;
    --forte-text: #1f1b2e;
    --ativo-bg: #00d1c1;
    --sobe: #2bc4b6;
    --calor: #2bc4b6;
    --calor-texto: #1f1b2e;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}
[hidden] {
  display: none !important;
}
.carregando {
  padding: 48px;
  text-align: center;
  color: var(--muted);
}
.icone {
  flex: none;
}

/* ---------- Marca ---------- */
.marca {
  display: flex;
  align-items: center;
  gap: 12px;
}
.marca-duda {
  width: 52px;
  height: auto;
  flex: none;
}
.marca-texto {
  display: grid;
  line-height: 1.1;
}
.marca-nome {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.marca-q {
  color: var(--coral);
}
.marca-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--menu-muted);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 46px;
  font-weight: 600;
  cursor: pointer;
  background: var(--coral);
  color: var(--tinta);
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  box-shadow: 0 4px 14px rgba(255, 92, 92, 0.35);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  box-shadow: none;
}
.btn-largo {
  width: 100%;
}
.btn-sec {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-sec:hover {
  box-shadow: none;
  background: var(--surface-2);
}
.btn-perigo {
  background: var(--coral-escuro);
  color: var(--branco);
}
.btn-icone {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.btn-icone:hover {
  background: rgba(127, 127, 127, 0.15);
}
.btn-mini {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn-mini:hover:not(:disabled) {
  background: var(--surface-2);
}
.btn-mini:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-mini.perigo {
  color: var(--erro);
}

/* ---------- Login ---------- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0 120px, transparent 121px),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.14) 0 180px, transparent 181px),
    var(--turquesa);
}
.login-cartao {
  width: min(400px, 100%);
  background: var(--surface);
  border-radius: 28px;
  padding: 32px 28px 28px;
  display: grid;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(31, 27, 46, 0.22);
  text-align: left;
}
.login-duda {
  width: 104px;
  height: auto;
  justify-self: center;
  margin-top: -8px;
}
.login-cartao h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}
.login-sub {
  margin: -6px 0 8px;
  color: var(--text-2);
  text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .login-duda {
    animation: pula 2.8s ease-in-out infinite;
  }
  @keyframes pula {
    0%,
    100% {
      transform: translateY(0) rotate(-2deg);
    }
    50% {
      transform: translateY(-6px) rotate(2deg);
    }
  }
}

/* ---------- Formulários ---------- */
.login-cartao label,
.form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}
.form {
  display: grid;
  gap: 14px;
}
input[type="email"],
input[type="password"],
input[type="search"],
input:not([type]) {
  padding: 11px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  min-height: 48px;
  width: 100%;
}
input:focus-visible {
  border-color: var(--turquesa-escura);
  outline-offset: 0;
}
.erro {
  color: var(--erro);
  font-weight: 500;
  margin: 0;
  min-height: 1.4em;
}
.erro:empty {
  min-height: 0;
}
.dica {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}
.escolha {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.escolha legend {
  font-weight: 500;
  margin-bottom: 6px;
  padding: 0;
}
.opcao {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
}
.opcao:has(input:checked) {
  border-color: var(--turquesa-escura);
  background: var(--turquesa-clara);
}
.opcao input {
  accent-color: var(--turquesa-escura);
  width: 18px;
  height: 18px;
}
.opcao span {
  display: grid;
}
.opcao small {
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Estrutura: menu lateral + conteúdo ---------- */
.casca {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.menu {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 14px;
  background: var(--menu-bg);
  color: var(--menu-text);
}
.menu-marca {
  color: inherit;
  text-decoration: none;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(255, 244, 227, 0.12);
}
.menu nav {
  display: grid;
  gap: 4px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--menu-text);
  text-decoration: none;
  font-weight: 500;
}
.menu-item:hover {
  background: rgba(255, 244, 227, 0.08);
}
.menu-item[aria-current="page"] {
  background: var(--turquesa);
  color: var(--tinta);
  font-weight: 600;
}
.menu-eu {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(255, 244, 227, 0.12);
}
.menu-eu-texto {
  display: grid;
  min-width: 0;
  flex: 1;
  line-height: 1.2;
}
.menu-eu-texto strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-eu-texto span {
  font-size: 13px;
  color: var(--menu-muted);
}
.menu .btn-icone {
  color: var(--menu-text);
}
.menu :focus-visible {
  outline-color: var(--amarelo);
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amarelo);
  color: var(--tinta);
  font-weight: 600;
  font-size: 14px;
}
.avatar.grande {
  width: 72px;
  height: 72px;
  font-size: 26px;
}

.conteudo {
  padding: 28px 32px 48px;
  display: grid;
  gap: 22px;
  align-content: start;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.conteudo:focus {
  outline: none;
}
.pagina-topo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
  justify-content: space-between;
}
.pagina-topo h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pagina-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.pagina-acoes {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 860px) {
  .casca {
    grid-template-columns: minmax(0, 1fr);
  }
  .menu {
    position: sticky;
    z-index: 10;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 16px;
  }
  .menu-marca {
    border: 0;
    padding: 0;
  }
  .marca-duda {
    width: 38px;
  }
  .marca-nome {
    font-size: 18px;
  }
  .marca-sub {
    display: none;
  }
  .menu nav {
    order: 3;
    width: 100%;
    min-width: 0;
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .menu-item {
    padding: 8px 12px;
    white-space: nowrap;
  }
  .menu-eu {
    order: 2;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .menu-eu-texto {
    display: none;
  }
  .conteudo {
    padding: 20px 16px 40px;
  }
  .pagina-topo h1 {
    font-size: 24px;
  }
}

/* ---------- Saudação ---------- */
.ola {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--areia);
  color: var(--tinta);
}
.ola-duda {
  width: 72px;
  height: auto;
  flex: none;
}
.ola h2 {
  margin: 0;
  font-size: 22px;
}
.ola p {
  margin: 2px 0 0;
  color: #4a4458;
}

/* ---------- KPIs ---------- */
.grupo-kpi {
  display: grid;
  gap: 10px;
  align-content: start;
}
.grupo-titulo {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--sombra);
}
.kpi .rotulo {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.kpi .valor {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.kpi.destaque {
  background: var(--turquesa);
  border-color: var(--turquesa);
  color: var(--tinta);
}
.kpi.destaque-2 {
  background: var(--amarelo);
  border-color: var(--amarelo);
  color: var(--tinta);
}
.kpi.destaque .rotulo,
.kpi.destaque .sub,
.kpi.destaque-2 .rotulo,
.kpi.destaque-2 .sub {
  color: var(--tinta);
}

.grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grade-kpi {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr);
  gap: 20px;
}
@media (max-width: 1080px) {
  .grade,
  .grade-kpi {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cartões ---------- */
.cartao {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
  box-shadow: var(--sombra);
}
.cartao h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
}
.cartao h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.cartao .desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.vazio {
  color: var(--muted);
  padding: 12px 0;
  margin: 0;
}
.aviso {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- Barras horizontais ---------- */
.hbars {
  display: grid;
  gap: 10px;
}
.hbar {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 12px;
  align-items: center;
}
.hbar .nome {
  font-size: 14px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.hbar .trilho {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hbar .barra {
  height: 20px;
  background: var(--mark);
  border-radius: 0 6px 6px 0;
  min-width: 2px;
}
.hbar:hover .barra {
  background: var(--forte-bg);
}
.hbar .valor {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hbar .valor small {
  color: var(--muted);
  font-weight: 400;
}
@media (prefers-reduced-motion: no-preference) {
  .hbar .barra {
    transition: width 0.3s ease;
  }
}

/* ---------- Colunas (SVG) ---------- */
svg.colunas {
  width: 100%;
  height: 220px;
  display: block;
}
svg .grid {
  stroke: var(--grid);
  stroke-width: 1;
}
svg .eixo {
  fill: var(--muted);
  font-size: 12px;
  font-family: var(--font);
}
svg .col {
  fill: var(--mark);
}
svg .hit {
  fill: transparent;
  cursor: default;
}
svg .hit:hover + .col {
  fill: var(--forte-bg);
}

/* ---------- Período ---------- */
.periodo {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.periodo button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 36px;
  cursor: pointer;
  font-weight: 500;
}
.periodo button[aria-pressed="true"] {
  background: var(--ativo-bg);
  color: var(--tinta);
}

/* ---------- Listas e etiquetas ---------- */
.lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lista li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.pill.areia {
  background: var(--areia);
  border-color: var(--border);
}
.pill.contorno {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.pill.amarelo {
  background: var(--amarelo);
}
.pill.tinta {
  background: var(--forte-bg);
  color: var(--forte-text);
}
.pill.coral {
  background: var(--coral);
}
.pill.turquesa {
  background: var(--turquesa);
}
.num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tag {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.estado::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.estado.on::before {
  background: var(--turquesa);
}
.estado.off {
  color: var(--muted);
}
.estado.off::before {
  background: var(--muted);
}

/* ---------- Tabelas ---------- */
.barra-ferramentas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.busca {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  max-width: 360px;
}
.busca .icone {
  position: absolute;
  left: 14px;
  color: var(--muted);
}
.busca input {
  padding-left: 42px;
}
.tabela-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--grid);
  white-space: nowrap;
}
th {
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
}
td.n,
th.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td.mono {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
tbody tr {
  cursor: pointer;
}
tbody tr:hover,
tbody tr:focus-visible {
  background: var(--surface-2);
}
.tabela-pessoas tbody tr {
  cursor: default;
}
.tabela-pessoas tr.inativo .pessoa {
  opacity: 0.55;
}
.pessoa {
  display: flex;
  align-items: center;
  gap: 12px;
}
.email {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
td.acoes {
  text-align: right;
}
.acoes-linha {
  display: inline-flex;
  gap: 6px;
}
.etapa {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}
.etapa i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grid);
  display: inline-block;
}
.etapa i.ok {
  background: var(--mark);
}
.cartao > .dica {
  margin-top: 12px;
}

.lista-papeis {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  color: var(--text-2);
}

/* ---------- Minha conta ---------- */
.perfil {
  display: grid;
  justify-items: start;
  gap: 8px;
  align-content: start;
}
.perfil h2 {
  margin: 8px 0 0;
}
.perfil .dica {
  margin-top: 8px;
}

/* ---------- Janelas ---------- */
dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(31, 27, 46, 0.3);
}
dialog::backdrop {
  background: rgba(31, 27, 46, 0.5);
}
.dlg-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 14px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.dlg-topo h2 {
  margin: 0;
  font-size: 20px;
}
.dlg-corpo {
  padding: 18px 22px 22px;
  display: grid;
  gap: 14px;
}
.dlg-corpo > p {
  margin: 0;
}
.acoes-dlg {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.senha-gerada {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px dashed var(--border);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}
.tempo {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.tempo li {
  position: relative;
  padding: 4px 0 14px 18px;
}
.tempo li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--mark);
}
.tempo li.status::before {
  background: var(--coral);
  border-color: var(--coral);
}
.tempo .hora {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.tempo .o-que {
  font-weight: 500;
}

/* ---------- Dica flutuante e aviso ---------- */
#tip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  background: var(--forte-bg);
  color: var(--forte-text);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  max-width: 260px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
#toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--forte-bg);
  color: var(--forte-text);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(31, 27, 46, 0.3);
  max-width: calc(100vw - 32px);
}
@media (max-width: 420px) {
  .kpi .valor {
    font-size: 24px;
  }
  .kpi {
    padding: 12px;
  }
  .ola {
    padding: 14px;
  }
  .ola-duda {
    width: 52px;
  }
}

/* ---------- Aparência (Minha conta) ---------- */
.temas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.tema-opcao {
  display: grid;
  gap: 12px;
  text-align: left;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.tema-opcao:hover {
  background: var(--surface-2);
}
.tema-opcao[aria-checked="true"] {
  border-color: var(--turquesa-escura);
  background: var(--turquesa-clara);
  box-shadow: 0 0 0 1px var(--turquesa-escura);
}
.tema-texto {
  display: grid;
  gap: 2px;
}
.tema-texto strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tema-texto small {
  color: var(--muted);
}
.tema-amostra {
  display: grid;
  grid-template-columns: 28% 1fr;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.tema-amostra i:first-child {
  background: #1f1b2e;
}
.tema-amostra.claro i:last-child {
  background: #fcfaf6;
}
.tema-amostra.escuro i:first-child {
  background: #0f0d17;
}
.tema-amostra.escuro i:last-child {
  background: #15121f;
}
.tema-amostra.auto i:last-child {
  background: linear-gradient(135deg, #fcfaf6 50%, #15121f 50%);
}

/* ---------- Mês ---------- */
.mes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.mes .btn-icone {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}
.mes .btn-icone:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.mes select {
  appearance: none;
  border: 0;
  background: transparent;
  font-weight: 600;
  padding: 6px 8px;
  min-height: 36px;
  cursor: pointer;
  text-align: center;
}
.mes select option {
  background: var(--surface);
  color: var(--text);
}

/* ---------- Variação ---------- */
.delta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.delta.sobe {
  color: var(--sobe);
}
.delta.desce {
  color: var(--erro);
}
.delta.neutro {
  color: var(--muted);
}
.kpi.destaque .delta,
.kpi.destaque-2 .delta {
  color: var(--tinta);
}
.aviso-mes {
  margin: -8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.lista-deltas {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--grid);
  font-size: 14px;
}
svg .col.ativa {
  fill: var(--forte-bg);
}
svg .eixo.ativo {
  fill: var(--text);
  font-weight: 600;
}

/* ---------- Ranking de empresas ---------- */
.ranking tbody tr,
.calor tbody tr {
  cursor: default;
}
.ranking tbody tr:hover,
.calor tbody tr:hover {
  background: transparent;
}
td.muted {
  color: var(--muted);
}

/* ---------- Mapa de calor ---------- */
.destaques {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.destaques li {
  display: grid;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  min-width: 160px;
}
.destaques small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.calor {
  border-collapse: separate;
  border-spacing: 3px;
}
.calor th,
.calor td {
  border: 0;
  padding: 0;
  text-align: center;
  font-size: 13px;
}
.calor thead th {
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 4px;
}
.calor tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text-2);
  padding-right: 10px;
}
.calor .cel {
  height: 40px;
  min-width: 64px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--calor) var(--int, 0%), var(--surface));
  border: 1px solid var(--grid);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.calor .cel[data-forte] {
  color: var(--calor-texto);
}
.calor .cel.vazia {
  background: transparent;
  border: 1px dashed var(--grid);
}
.calor .total {
  padding-left: 10px;
  font-weight: 600;
  color: var(--text-2);
}
