/* OlimpoHub — identidade visual (docs/design/identidade-visual.pdf) */

:root {
  --floresta: #1F4A33; /* fundo */
  --musgo: #2A5C40; /* cartões */
  --ouro: #E9B949; /* detalhe nobre */
  --lima: #BACD40; /* destaque e IA */
  --marmore: #F5F1E8; /* texto */
  --verde-mw: #3A6E50; /* referência / bordas */

  /* derivados — sempre a partir da paleta */
  --borda: color-mix(in srgb, var(--verde-mw), var(--marmore) 8%);
  --borda-forte: color-mix(in srgb, var(--verde-mw), var(--marmore) 16%);
  --texto-suave: color-mix(in srgb, var(--marmore) 82%, var(--floresta));
  --texto-fraco: color-mix(in srgb, var(--marmore) 76%, var(--floresta)); /* >= 4.5:1 sobre floresta e musgo */
  --fundo-campo: color-mix(in srgb, var(--floresta), var(--musgo) 40%);
  --lima-fundo: color-mix(in srgb, var(--lima) 14%, var(--floresta));
  --ouro-fundo: color-mix(in srgb, var(--ouro) 12%, var(--floresta));

  --fonte-marca: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif; /* só o nome OLIMPO */
  --fonte-titulo: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* a mesma do Repasse e do Cronos */
  --fonte-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --raio: 16px;
  --raio-item: 10px;
  --largura-barra: 240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--floresta);
  color: var(--marmore);
  font-family: var(--fonte-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lima); text-underline-offset: 3px; }
a:hover { color: var(--marmore); }

:focus-visible { outline: 2px solid var(--lima); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  color: var(--marmore);
  line-height: 1.2;
  letter-spacing: .01em;
  margin: 0 0 .75rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
.conteudo > h1:first-child { margin-bottom: 1.25rem; }

p { margin: 0 0 .75rem; }
strong { font-weight: 600; }
.pequeno { color: var(--texto-suave); font-size: .85rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- logo ---------- */

.logo { display: flex; align-items: center; gap: .65rem; }
.logo-icone { width: 34px; height: 34px; flex: none; }
.logo-fio path { stroke: var(--lima); stroke-width: 2.2; }
.logo-frontao { stroke: var(--ouro); stroke-width: 5; }
.logo-base { stroke: var(--ouro); stroke-width: 4.4; }
.logo-ouro { fill: var(--ouro); }
.logo-no { fill: var(--lima); }
.logo-coluna { fill: var(--marmore); }
.logo-texto { display: flex; flex-direction: column; min-width: 0; }
.logo-nome { font-size: 1.3rem; line-height: 1.05; white-space: nowrap; }
.logo-olimpo { font-family: var(--fonte-marca); font-weight: 700; color: var(--marmore); letter-spacing: .02em; }
.logo-hub { font-family: var(--fonte-ui); font-weight: 600; color: var(--ouro); }
.logo-lema {
  font-family: var(--fonte-titulo);
  font-size: .72rem;
  color: var(--texto-suave);
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* ---------- layout com barra lateral ---------- */

.barra {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--largura-barra);
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--floresta);
  border-right: 1px solid var(--borda);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.barra > .logo { margin: 0 .25rem 2rem; }

.menu { list-style: none; margin: 0 0 .25rem; padding: 0; }
.menu li { margin: 0 0 .2rem; }
.menu-grupo {
  margin: 1.4rem .85rem .45rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--texto-fraco);
  letter-spacing: .04em;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 44px;
  padding: .55rem .85rem;
  border-radius: var(--raio-item);
  color: var(--marmore);
  font: 500 .95rem/1.3 var(--fonte-ui);
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
a.menu-item:hover, summary.menu-item:hover, button.menu-item:hover { background: color-mix(in srgb, var(--musgo) 60%, transparent); color: var(--marmore); }
.menu-item.ativo, .menu-item.ativo:hover { background: var(--musgo); color: var(--lima); font-weight: 600; }

.ponto { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-left: auto; }
.ponto-ativo { background: var(--lima); }
.ponto-em_construcao { background: var(--ouro); }

.sem-telas { cursor: default; color: var(--texto-suave); }

details.agente > summary { list-style: none; }
details.agente > summary::-webkit-details-marker { display: none; }
details.agente > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-left: .35rem;
  opacity: .7;
  transition: transform .15s ease;
}
details.agente[open] > summary::after { transform: rotate(45deg); }
details.agente > summary.dele { color: var(--lima); }
.submenu { list-style: none; margin: .15rem 0 .4rem 1.1rem; padding: 0 0 0 .6rem; border-left: 1px solid var(--borda); }
.submenu .menu-item { min-height: 38px; font-size: .9rem; color: var(--texto-suave); }
.submenu .menu-item.ativo { color: var(--lima); }

.barra form { margin: 0; }
.sair { justify-content: space-between; }
.sair .quem { color: var(--texto-fraco); font-size: .8rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.conteudo {
  margin-left: var(--largura-barra);
  padding: 2.5rem 2.75rem 4rem;
  max-width: calc(var(--largura-barra) + 72rem);
  min-width: 0;
}

.topo-movel, .veu { display: none; }

/* ---------- páginas sem login (entrar, erro) ---------- */

.conteudo-solo {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background:
    radial-gradient(60rem 30rem at 50% -10%, color-mix(in srgb, var(--musgo) 70%, transparent), transparent 70%),
    var(--floresta);
}
.logo-grande { flex-direction: column; gap: 1rem; margin-bottom: 2rem; text-align: center; }
.logo-grande .logo-icone { width: 84px; height: 84px; }
.logo-grande .logo-texto { align-items: center; }
.logo-grande .logo-nome { font-size: 2.4rem; }
.logo-grande .logo-lema { font-size: 1rem; margin-top: .45rem; }
.conteudo-solo > .cartao { width: 100%; max-width: 24rem; margin: 0 auto; }

/* ---------- cartões, avisos, contadores ---------- */

.cartao {
  background: var(--musgo);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.cartao > :last-child { margin-bottom: 0; }

.aviso, .erro {
  border-radius: var(--raio-item);
  padding: .7rem 1rem .7rem .95rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--borda);
  border-left-width: 3px;
}
.aviso { background: var(--lima-fundo); border-left-color: var(--lima); color: var(--marmore); }
.erro { background: var(--ouro-fundo); border-color: color-mix(in srgb, var(--ouro) 40%, var(--verde-mw)); border-left-color: var(--ouro); color: var(--marmore); }

.contadores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.25rem;
}
.contadores div,
.contadores a {
  display: block;
  text-decoration: none;
  background: var(--floresta);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: .8rem 1rem;
  color: var(--texto-suave);
  font-size: .85rem;
}
.contadores strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--marmore);
  font-variant-numeric: tabular-nums;
  margin-bottom: .15rem;
}

.senha-provisoria {
  background: var(--ouro-fundo);
  border: 1px solid var(--ouro);
  border-radius: var(--raio);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.senha-provisoria code {
  display: inline-block;
  font: 600 1.6rem/1.2 var(--fonte-ui);
  letter-spacing: .12em;
  color: var(--ouro);
  background: var(--floresta);
  border: 1px dashed color-mix(in srgb, var(--ouro) 60%, var(--floresta));
  border-radius: var(--raio-item);
  padding: .5rem .9rem;
  margin: .6rem 0 .8rem;
  user-select: all;
  word-break: break-all;
}

/* ---------- tabelas ---------- */

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
th { color: var(--texto-fraco); font-weight: 500; font-size: .8rem; letter-spacing: .02em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td form { display: inline-block; margin: 0 .35rem .35rem 0; }
td p { margin-bottom: .5rem; color: var(--texto-suave); font-size: .85rem; }

/* ---------- formulários e botões ---------- */


label { display: block; color: var(--texto-suave); font-size: .85rem; font-weight: 500; }
input {
  display: block;
  width: 100%;
  margin: .35rem 0 1rem;
  padding: .7rem .9rem;
  background: var(--fundo-campo);
  color: var(--marmore);
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio-item);
  font: 400 1rem var(--fonte-ui);
}
input:focus { outline: none; border-color: var(--lima); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lima) 22%, transparent); }

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 40px;
  padding: .55rem 1.2rem;
  background: var(--lima);
  color: var(--floresta);
  border: 1px solid var(--lima);
  border-radius: 999px;
  font: 600 .92rem/1.2 var(--fonte-ui);
  cursor: pointer;
}
button:hover { background: color-mix(in srgb, var(--lima), var(--marmore) 20%); }
button.secundario { background: transparent; color: var(--marmore); border-color: var(--borda-forte); }
button.secundario:hover { border-color: var(--lima); color: var(--lima); background: transparent; }
td button { min-height: 34px; padding: .4rem .95rem; font-size: .85rem; }
.barra button.menu-item { border: 0; border-radius: var(--raio-item); background: none; color: var(--marmore); justify-content: space-between; min-height: 44px; padding: .55rem .85rem; font-weight: 500; }
.barra button.menu-item:hover { background: color-mix(in srgb, var(--musgo) 60%, transparent); }

/* ---------- telas estreitas: a barra vira gaveta ---------- */

@media (max-width: 899.98px) {
  .topo-movel {
    display: flex;
    align-items: center;
    gap: .75rem;
    position: sticky;
    top: 0;
    z-index: 15;
    padding: .6rem 1rem;
    background: var(--floresta);
    border-bottom: 1px solid var(--borda);
  }
  .logo-mini .logo-icone { width: 28px; height: 28px; }
  .logo-mini .logo-nome { font-size: 1.1rem; }
  .logo-mini .logo-lema { display: none; }
  .botao-menu {
    min-height: 40px;
    width: 40px;
    padding: 0;
    background: var(--musgo);
    color: var(--marmore);
    border: 1px solid var(--borda);
    border-radius: var(--raio-item);
    font-size: 1.2rem;
  }
  .botao-menu:hover { background: var(--musgo); color: var(--lima); }
  .barra {
    width: min(84vw, 280px);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
    box-shadow: none;
  }
  .menu-aberto .barra {
    transform: none;
    visibility: visible;
    transition: transform .2s ease;
    box-shadow: 12px 0 40px color-mix(in srgb, var(--floresta) 80%, transparent);
  }
  .veu:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 18;
    background: color-mix(in srgb, var(--floresta) 70%, transparent);
  }
  .menu-aberto { overflow: hidden; }
  .conteudo { margin-left: 0; padding: 1.5rem 1rem 3rem; }
  h1 { font-size: 1.6rem; }
  .cartao { padding: 1.1rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- ajustes por tela ---------- */

.cartao-estreito { max-width: 26rem; margin: 1rem auto; }
.conteudo-solo > .cartao-estreito { margin: 0 auto; }
.cartao-estreito-esq { max-width: 30rem; }
.cartao-entrar h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
button.largo { width: 100%; margin-top: .25rem; }
.botoes { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.cabecalho { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.cabecalho h1 { margin-bottom: .35rem; }
.cabecalho form { margin: 0; }
.subtitulo { color: var(--texto-suave); margin: 0; }

.pilula {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--borda-forte); color: var(--marmore);
  text-decoration: none; font-weight: 500; font-size: .9rem;
}
.pilula:hover { border-color: var(--lima); color: var(--lima); }
.pilula-ouro { border-color: color-mix(in srgb, var(--ouro) 55%, var(--verde-mw)); color: var(--ouro); }

.selo {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem; border-radius: 999px;
  background: var(--floresta); font-size: .75rem; font-weight: 600;
}
.selo::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.selo-ativo { color: var(--lima); }
.selo-em_construcao { color: var(--ouro); }

@media (max-width: 899.98px) {
  /* tabela larga rola dentro do cartão em vez de espremer as colunas */
  .cartao table:has(th:nth-child(4)) { min-width: 40rem; }
  td:first-child { white-space: nowrap; }
}
.cartao form + .pequeno { margin-top: .85rem; }

/* ---------- visão geral do hub ---------- */

.visao-topo { align-items: center; }
.visao-topo h1 { font-size: 2.2rem; }
.busca { position: relative; flex: 0 1 16rem; min-width: 12rem; margin: 0; }
.busca input { margin: 0; padding-left: 2.4rem; background: var(--floresta); border-color: var(--borda-forte); font-size: .92rem; }
.busca input::placeholder { color: var(--texto-fraco); }
.busca-lupa { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--texto-suave); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }

.numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.numero-cartao {
  background: var(--musgo); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 1.15rem 1.25rem 1.2rem; min-width: 0;
}
.numero-cartao p { margin: 0; }
.numero-cartao .numero { font: 700 2.5rem/1.15 var(--fonte-ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: .5rem 0 .55rem; }
.numero-rotulo { color: var(--texto-suave); font-size: .85rem; }
.numero-cartao .numero-ouro { color: var(--ouro); }
.numero-cartao-ouro { border-color: color-mix(in srgb, var(--ouro) 28%, var(--verde-mw)); background: color-mix(in srgb, var(--musgo), var(--verde-mw) 45%); }
.numero-apoio { color: var(--texto-suave); font-size: .82rem; }
.numero-apoio.sobe { color: var(--lima); font-weight: 500; }
.numero-apoio a { color: var(--texto-suave); }
.numero-apoio a:hover { color: var(--lima); }

.visao-grade { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.5rem; align-items: start; }
.secao-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.secao-topo h2 { margin: 0; font-size: 1.35rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtro { background: transparent; color: var(--marmore); border-color: var(--borda-forte); font-weight: 500; padding: .5rem 1rem; }
.filtro:hover { background: transparent; border-color: var(--lima); color: var(--lima); }
.filtro[aria-pressed="true"], .filtro[aria-pressed="true"]:hover { background: var(--lima); border-color: var(--lima); color: var(--floresta); }

.grade-agentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1rem; }
.cartao-agente { display: flex; flex-direction: column; margin: 0; padding: 1.15rem 1.15rem 1.1rem; color: var(--marmore); text-decoration: none; overflow: visible; }
.cartao-agente[hidden] { display: none; }
.cartao-agente-topo { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.cartao-agente h3 { font-size: 1.3rem; margin: 0 0 .15rem; letter-spacing: .03em; }
.agente-area { color: var(--texto-suave); font-size: .85rem; margin: 0; }
.cartao-agente .agente-rodape { margin: auto 0 0; padding-top: .85rem; border-top: 1px solid var(--borda); font-size: .88rem; }
.cartao-agente .agente-area { margin-bottom: .9rem; }
.clicavel { transition: border-color .15s ease, transform .15s ease; }
.clicavel:hover { color: var(--marmore); border-color: color-mix(in srgb, var(--lima) 45%, var(--verde-mw)); transform: translateY(-1px); }
.clicavel:hover h3, .clicavel:hover .robo-nome { color: var(--lima); }
.vazio { color: var(--texto-suave); margin: .5rem 0 0; }

.visao-lado .cartao { padding: 1.25rem 1.25rem 1.3rem; overflow: visible; }
.visao-lado h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.eventos { list-style: none; margin: 0; padding: 0; }
.evento { position: relative; padding-left: 1.3rem; margin-bottom: 1rem; }
.evento:last-child { margin-bottom: 0; }
.evento::before { content: ""; position: absolute; left: 0; top: .45rem; width: 8px; height: 8px; border-radius: 50%; background: var(--lima); }
.evento-atencao::before { background: var(--ouro); }
.evento p { margin: 0; }
.evento-texto { font-size: .92rem; line-height: 1.35; }
.evento-texto strong { font-family: var(--fonte-titulo); font-weight: 700; }
.evento .evento-quando { color: var(--texto-fraco); font-size: .78rem; margin-top: .15rem; }
.tarefas .pequeno { margin: -.6rem 0 1rem; }
.tarefa { margin-bottom: .9rem; }
.tarefa:last-child { margin-bottom: 0; }
.tarefa-topo { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; }
.tarefa-topo span:last-child { color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.tarefa-trilho { height: 7px; border-radius: 999px; background: var(--floresta); overflow: hidden; }
.tarefa-barra { height: 100%; border-radius: inherit; background: var(--lima); }

@media (max-width: 1199.98px) {
  .visao-grade { grid-template-columns: minmax(0, 1fr); }
  .visao-lado { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1rem; }
}
@media (max-width: 1099.98px) {
  .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  .visao-topo h1 { font-size: 1.6rem; }
  .busca { flex: 1 1 100%; }
  .numeros { gap: .75rem; margin-bottom: 1.5rem; }
  .numero-cartao { padding: .95rem 1rem 1rem; }
  .numero-cartao .numero { font-size: 2rem; }
}

/* ---------- página dos agentes (robôs) ---------- */

.sobretitulo { color: var(--texto-suave); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 .5rem; }
.introducao { max-width: 40rem; margin-bottom: 2rem; }
.grade-robos { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.cartao-robo {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  margin: 0; padding: 2rem 1.5rem 1.75rem; color: var(--marmore); text-decoration: none; overflow: visible;
}
.cartao-robo .selo { position: absolute; top: 1rem; right: 1rem; }
.cartao-robo .robo { margin-bottom: 1.1rem; }
.robo-nome { font-size: 1.45rem; margin: 0 0 .5rem; letter-spacing: .03em; }
.cartao-robo .agente-area { margin-bottom: .6rem; }
.robo-lema { margin: 0; font-size: .92rem; line-height: 1.5; max-width: 19rem; }

.robo { flex: none; overflow: visible; }
.robo .r-fundo { fill: var(--floresta); stroke: color-mix(in srgb, var(--verde-mw), var(--marmore) 10%); stroke-width: 2; }
.robo .r-anel { fill: none; stroke: var(--ouro); stroke-width: 1; stroke-dasharray: 1.5 4; opacity: .55; }
.robo .r-l, .robo .r-o { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.robo .r-l { stroke: var(--lima); }
.robo .r-o { stroke: var(--ouro); }
.robo .r-lf { fill: var(--lima); }
.robo .r-of { fill: var(--ouro); }
.robo .r-visor { fill: color-mix(in srgb, var(--floresta), var(--verde-mw) 50%); stroke: none; }
.robo .r-escuro { fill: var(--floresta); }

/* ---------- empresas: seleção em lote ---------- */
input.caixinha { display: inline-block; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--lima); cursor: pointer; vertical-align: middle; }
.col-marcar { width: 2.5rem; }
.barra-lote { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.barra-lote .pequeno { margin-right: .25rem; }
td form + button, td button + button { margin-left: .35rem; }

/* ---------- agenda do Atlas ---------- */
.agenda-chave { display: inline-flex; border: 1px solid var(--borda-forte); border-radius: 999px; overflow: hidden; margin: .35rem 0 1.1rem; }
.agenda-chave label { margin: 0; padding: .55rem 1.2rem; min-height: 40px; display: inline-flex; align-items: center; cursor: pointer; color: var(--texto-suave); font-weight: 600; }
.agenda-chave input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.agenda-chave label:has(input:checked) { background: var(--lima); color: var(--floresta); }
.agenda-chave label:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--marmore); }
.agenda-grupo { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.agenda-grupo legend { color: var(--texto-suave); font-size: .85rem; font-weight: 500; padding: 0; margin-bottom: .5rem; }
.agenda-opcoes { display: grid; gap: .5rem; }
.agenda-dias { grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 34rem; }
.agenda-horas { grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); max-width: 40rem; }
.agenda-opcao { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; min-height: 44px; padding: .4rem .5rem; border: 1px solid var(--borda); border-radius: var(--raio-item); background: var(--fundo-campo); color: var(--texto-fraco); font-variant-numeric: tabular-nums; cursor: pointer; }
.agenda-opcao.destaque { color: var(--marmore); border-color: var(--borda-forte); background: var(--musgo); }
.agenda-opcao:has(input:checked) { border-color: var(--lima); color: var(--lima); background: var(--lima-fundo); font-weight: 600; }
.agenda-opcao:has(input:disabled) { cursor: default; }
.agenda-opcao:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lima) 22%, transparent); }
.agenda-rapidos { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.agenda-proximo { font-size: 1.1rem; margin: 0 0 .25rem; }
.agenda-proximo strong { color: var(--lima); }
@media (max-width: 480px) {
  .agenda-dias { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .agenda-horas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- cartão de filtro (empresas e rodadas) ---------- */
.secao-titulo { font-size: 1.35rem; margin: 2rem 0 .85rem; }
.cartao-filtro { overflow: visible; padding-top: 1.1rem; }
.filtro-topo {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem;
  padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 1px solid var(--borda);
}
.cartao-filtro .filtro-titulo {
  margin: 0; font: 600 .78rem/1.3 var(--fonte-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ouro);
}
.filtro-contagem { margin: 0; color: var(--texto-suave); font-size: .85rem; font-variant-numeric: tabular-nums; }
.filtro-campos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: .9rem .85rem; align-items: end;
}
.filtro-campos .campo { display: flex; flex-direction: column; gap: .4rem; min-width: 0; margin: 0; font-size: .8rem; }
.filtro-campos input:not(.caixinha), .filtro-campos select {
  display: block; width: 100%; min-width: 0; height: 40px; margin: 0; padding: 0 .85rem;
  background: var(--floresta); color: var(--marmore);
  border: 1px solid var(--borda-forte); border-radius: var(--raio-item);
  font: 400 .92rem/1 var(--fonte-ui); color-scheme: dark;
}
.filtro-campos input::placeholder { color: var(--texto-fraco); }
.filtro-campos select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23BACD40' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 12px 8px;
}
.filtro-campos select option { background: var(--musgo); color: var(--marmore); }
.filtro-campos input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }
.filtro-campos input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.filtro-campos input:not(.caixinha):hover, .filtro-campos select:hover { border-color: color-mix(in srgb, var(--borda-forte), var(--marmore) 14%); }
.filtro-campos input:not(.caixinha):focus, .filtro-campos select:focus {
  outline: none; border-color: var(--lima); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lima) 22%, transparent);
}
.campo-opcao {
  display: flex; align-items: center; gap: .6rem; height: 40px; margin: 0; padding: 0 .85rem;
  border: 1px solid var(--borda); border-radius: var(--raio-item); background: var(--floresta);
  color: var(--marmore); font-size: .88rem; cursor: pointer; white-space: nowrap; min-width: 0;
}
.campo-opcao:has(input:checked) { border-color: var(--lima); background: var(--lima-fundo); }
.campo-opcao:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lima) 22%, transparent); }
.filtro-acoes { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.filtro-acoes button { min-width: 7.5rem; }
.botao-secundario {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .55rem 1.2rem;
  border: 1px solid var(--borda-forte); border-radius: 999px; color: var(--marmore);
  font: 600 .92rem/1.2 var(--fonte-ui); text-decoration: none;
}
.botao-secundario:hover { border-color: var(--lima); color: var(--lima); }
@media (min-width: 640px) {
  .filtro-campos .campo-largo { grid-column: span 2; }
}
@media (max-width: 639.98px) {
  .filtro-campos { grid-template-columns: minmax(0, 1fr); }
  .filtro-acoes { flex-direction: column-reverse; align-items: stretch; }
  .filtro-acoes > * { width: 100%; }
  .campo-opcao { white-space: normal; }
}

/* ---------- Argos: o painel dele num iframe, ocupando a área útil ---------- */
.conteudo.conteudo-cheio { max-width: none; padding: 1rem 1.25rem; }
.painel-argos {
  display: block;
  width: 100%;
  height: calc(100vh - 2rem);
  height: calc(100dvh - 2rem);
  border: 0;
  border-radius: 0 var(--raio) var(--raio) 0; /* à esquerda a lateral do Argos encosta no verde do hub: canto reto, sem fresta */
  background: var(--floresta); /* cantos sem fresta branca: o fundo é o mesmo verde da lateral do Argos */
}
@media (max-width: 899.98px) {
  .conteudo.conteudo-cheio { padding: .5rem; }
  /* 60px = barra do topo no celular */
  .painel-argos { height: calc(100vh - 60px - 1rem); height: calc(100dvh - 60px - 1rem); }
}

/* Cápsula de vigia (_vigia.html): data da última atualização com o binóculo e o anel de varredura */
.vigia { --vigia-cor: var(--ouro); display: inline-flex; align-items: center; gap: .6rem; width: fit-content; max-width: 100%;
  margin: .65rem 0 0; padding: .4rem .85rem .4rem .45rem; border-radius: 999px;
  background: var(--ouro-fundo); border: 1px solid color-mix(in srgb, var(--vigia-cor) 40%, var(--verde-mw)); }
.vigia-parada { --vigia-cor: #E2725B; background: color-mix(in srgb, #E2725B 14%, var(--floresta)); }
.vigia-texto { font-size: .78rem; line-height: 1.25; color: var(--texto-suave); min-width: 0; }
.vigia-texto strong { display: block; font-size: .98rem; font-weight: 800; color: var(--marmore); font-variant-numeric: tabular-nums; }
.vigia-parada .vigia-texto strong, .vigia-parada .vigia-texto { color: #F4B3A4; }
.vigia-ha { display: block; color: var(--lima); font-weight: 600; }
.vigia-simbolo { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--vigia-cor) 22%, var(--floresta)) 0 55%, transparent 56%);
  border: 1.5px solid var(--vigia-cor);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vigia-cor) 14%, transparent), 0 0 14px color-mix(in srgb, var(--lima) 35%, transparent); }
.vigia-simbolo svg { width: 19px; height: 19px; position: relative; z-index: 1; }
.vigia-traco { fill: none; stroke: var(--vigia-cor); stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.vigia-lente { fill: var(--lima); }
.vigia-simbolo::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 78%, color-mix(in srgb, var(--lima) 70%, transparent) 96%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 60%); mask: radial-gradient(circle, transparent 0 58%, #000 60%);
  animation: vigia-varrer 3.2s linear infinite; }
.vigia-parada .vigia-simbolo { box-shadow: 0 0 0 3px color-mix(in srgb, #E2725B 18%, transparent); }
.vigia-parada .vigia-simbolo::after { animation: none; opacity: 0; }
.vigia-parada .vigia-lente { fill: #E2725B; }
@keyframes vigia-varrer { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vigia-simbolo::after { animation: none; } }
.vigia-grande { margin: 0; padding: .55rem 1.1rem .55rem .55rem; gap: .8rem; }
.vigia-grande .vigia-simbolo { width: 46px; height: 46px; }
.vigia-grande .vigia-simbolo svg { width: 26px; height: 26px; }
.vigia-grande .vigia-texto { font-size: .85rem; }
.vigia-grande .vigia-texto strong { font-size: 1.35rem; }
.cartao-agente .agente-rodape .destaque { color: var(--ouro); font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Clio: número que abre a lista das empresas (só a administradora; 30/11/2026). */
a.numero-lista { display: block; color: var(--marmore); text-decoration: none; position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s; }
a.numero-lista:hover { border-color: var(--lima); transform: translateY(-2px); color: var(--marmore); }
.numero-ver { display: block; font-size: .78rem; color: var(--lima); opacity: 0; transition: opacity .2s; }
a.numero-lista:hover .numero-ver, a.numero-lista:focus-visible .numero-ver, a.numero-lista[aria-expanded="true"] .numero-ver { opacity: 1; }
a.numero-lista[aria-expanded="true"] { border-color: var(--lima);
  box-shadow: 0 0 0 1px var(--lima), 0 0 24px color-mix(in srgb, var(--lima) 25%, transparent); }
a.numero-lista[aria-expanded="true"]::after { content: ""; position: absolute; left: 50%; bottom: -1.05rem; width: 2px; height: 1rem;
  background: linear-gradient(var(--lima), transparent); }
.gaveta { border-color: color-mix(in srgb, var(--lima) 45%, var(--verde-mw)); position: relative; overflow: hidden; }
.gaveta.abrindo { animation: gaveta-abre .35s ease-out; }
.gaveta::before { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--lima) 12%, transparent), transparent); }
.gaveta.abrindo::before { animation: gaveta-varre 1s ease-out; }
@keyframes gaveta-abre { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes gaveta-varre { to { left: 110%; } }
.gaveta-topo { display: flex; flex-wrap: wrap; gap: .75rem 1rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.gaveta-topo h2 { margin: 0; }
.gaveta-conta { color: var(--texto-suave); font-weight: 500; }
.gaveta-acoes { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.gaveta-acoes .gaveta-busca { width: 16rem; min-width: 0; max-width: 100%; }
.botao-fechar { border: 1px solid var(--borda-forte); color: var(--marmore); border-radius: 8px; padding: .4rem .8rem; text-decoration: none; }
.botao-fechar:hover { border-color: var(--lima); }
.tabela-rolagem { overflow-x: auto; }
.gaveta .cnpj { color: var(--texto-suave); font-size: .85rem; }
.gaveta th.num, .gaveta td.num { text-align: right; }
.gaveta td.num { font-weight: 600; }
.sit { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; white-space: nowrap; }
.sit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sit-lima { color: var(--lima); } .sit-ouro { color: var(--ouro); } .sit-fraco { color: var(--texto-fraco); }
@media (prefers-reduced-motion: reduce) {
  .gaveta.abrindo, .gaveta.abrindo::before { animation: none; }
  a.numero-lista, a.numero-lista:hover { transition: none; transform: none; }
}
