@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/geist.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/geist-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Tinta e papel */
  --c-tinta: #131C26;
  --c-grafite: #1D2935;
  --c-texto: #232F3B;
  --c-suave: #5B6773;
  --c-fraco: #8A949E;
  --c-fundo: #F3F4F6;
  --c-superficie: #FFFFFF;
  --c-borda: #E3E6EA;
  --c-borda-forte: #C9CFD6;
  /* Marca: azul conduz os dados, laranja só pontua */
  --c-primaria: #0D78C7;
  --c-primaria-esc: #0A5F9E;
  --c-primaria-clara: #E7F1F9;
  --c-acento: #F57712;
  --c-acento-clara: #FEF1E4;
  /* Estados */
  --c-ok: #137A3C;
  --c-ok-fundo: #E8F5EC;
  --c-alerta: #8A4B0B;
  --c-alerta-fundo: #FDF2DC;
  --c-erro: #B42318;
  --c-erro-fundo: #FDEDEB;
  --c-info: #1D4ED8;
  --c-info-fundo: #E9EFFD;
  --raio: 8px;
  --raio-p: 6px;
  --sombra: none;
  --sombra-g: 0 12px 32px rgba(19, 28, 38, .16);
  --fonte: "Geist", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fonte-titulo: var(--fonte);
  --lateral: 236px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  color: var(--c-texto);
  background: var(--c-fundo);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4 { font-family: var(--fonte-titulo); color: var(--c-tinta); margin: 0; line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: 1.65rem; font-weight: 600; letter-spacing: -.028em; }
h2 { font-size: 1rem; font-weight: 600; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
a { color: var(--c-primaria-esc); text-underline-offset: 3px; }
a:hover { color: var(--c-primaria); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--c-borda); margin: 1.25rem 0; }
.num { font-variant-numeric: tabular-nums; }
.suave { color: var(--c-suave); }
.peq { font-size: .85rem; }
.direita { text-align: right; }
.centro { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--c-primaria); outline-offset: 2px; border-radius: 4px; }
.pular { position: absolute; left: -999px; top: .5rem; background: #fff; padding: .6rem 1rem; border-radius: var(--raio-p); z-index: 100; box-shadow: var(--sombra-g); }
.pular:focus { left: .5rem; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.g { width: 22px; height: 22px; }

.app { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); min-height: 100vh; }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.fundo-menu { display: none; }

/* Menu lateral: mesma tela do conteúdo, separado por uma linha */
.lateral {
  background: var(--c-fundo);
  border-right: 1px solid var(--c-borda);
  color: var(--c-texto);
  display: flex;
  flex-direction: column;
  padding: 1.15rem .8rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.marca { display: block; padding: .35rem .6rem .1rem; margin-bottom: .9rem; text-decoration: none; }
.marca img { display: block; width: 100%; max-width: 112px; height: auto; }
.menu { display: flex; flex-direction: column; gap: 1px; }
.menu .grupo { font-size: .76rem; color: var(--c-fraco); margin: 1.4rem .6rem .4rem; font-weight: 500; }
.menu .grupo:first-child { margin-top: .2rem; }
.menu a {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #3A4753;
  text-decoration: none;
  padding: .48rem .6rem;
  border-radius: 6px;
  font-weight: 450;
  font-size: .92rem;
  position: relative;
  border: 1px solid transparent;
}
.menu a .ic { color: var(--c-fraco); width: 17px; height: 17px; }
.menu a:hover { background: rgba(19, 28, 38, .05); color: var(--c-tinta); }
.menu a:hover .ic { color: var(--c-texto); }
.menu a[aria-current="page"] { background: #fff; border-color: var(--c-borda); color: var(--c-tinta); font-weight: 600; }
.menu a[aria-current="page"] .ic { color: var(--c-primaria); }
.menu .contagem { margin-left: auto; background: var(--c-acento); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 650; padding: .02rem .45rem; min-width: 1.35rem; text-align: center; }
.lateral .usuario { margin-top: auto; padding: .85rem .35rem 0; border-top: 1px solid var(--c-borda); display: flex; align-items: center; gap: .65rem; }
.avatar-i { width: 32px; height: 32px; border-radius: 50%; background: var(--c-tinta); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .78rem; flex: none; }
.lateral .usuario .quem { min-width: 0; line-height: 1.25; }
.lateral .usuario .quem strong { display: block; font-size: .88rem; font-weight: 600; color: var(--c-tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lateral .usuario .quem span { font-size: .76rem; color: var(--c-suave); }
.lateral form { margin-left: auto; }
.btn-icone { background: transparent; border: 1px solid transparent; color: var(--c-suave); width: 32px; height: 32px; padding: 0; border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.btn-icone:hover { background: rgba(19, 28, 38, .06); color: var(--c-tinta); }

.principal { min-width: 0; display: flex; flex-direction: column; }
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 244, 246, .9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 2.5rem;
  min-height: 56px;
}
.topo .hamb { display: none; cursor: pointer; padding: .4rem; border-radius: 6px; border: 1px solid var(--c-borda-forte); background: #fff; }
.migalhas { font-size: .84rem; color: var(--c-suave); display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.migalhas a { color: var(--c-suave); text-decoration: none; }
.migalhas a:hover { color: var(--c-tinta); text-decoration: underline; }
.migalhas [aria-current="page"] { color: var(--c-tinta); font-weight: 500; }
.topo .fresco { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--c-suave); padding: .25rem .7rem; border: 1px solid var(--c-borda); border-radius: 999px; background: #fff; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--c-borda-forte); display: inline-block; flex: none; }
.ponto.ok { background: #22A05A; box-shadow: 0 0 0 3px var(--c-ok-fundo); }
.ponto.alerta { background: #D97706; box-shadow: 0 0 0 3px var(--c-alerta-fundo); }
.ponto.erro { background: #DC2626; box-shadow: 0 0 0 3px var(--c-erro-fundo); }

.conteudo { padding: .75rem 2.5rem 4rem; width: 100%; max-width: 1280px; }
.cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cabeca .sub { color: var(--c-suave); margin: .3rem 0 0; max-width: 62ch; }
.acoes { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

.aviso {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-radius: var(--raio);
  padding: .8rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
  border-left-width: 3px;
  background: var(--c-superficie);
  font-size: .92rem;
}
.aviso .ic { margin-top: .15rem; }
.aviso.ok { background: var(--c-ok-fundo); border-color: #BFE3CB; border-left-color: var(--c-ok); color: #14532D; }
.aviso.erro { background: var(--c-erro-fundo); border-color: #F5C6C1; border-left-color: var(--c-erro); color: #7A1B13; }
.aviso.alerta { background: var(--c-alerta-fundo); border-color: #F1DCAA; border-left-color: #D97706; color: var(--c-alerta); }
.aviso.info { background: var(--c-info-fundo); border-color: #C9D6F8; border-left-color: var(--c-info); color: #1E3A8A; }
.aviso .fechar { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; padding: .1rem .3rem; border-radius: 6px; font: inherit; font-size: 1.2rem; line-height: 1; }

.cartao { background: var(--c-superficie); border: 1px solid var(--c-borda); border-radius: var(--raio); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.cartao > header, .cartao > .cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cartao .cab p, .cartao > header p { margin: .15rem 0 0; color: var(--c-suave); font-size: .86rem; }
.cartao.flush { padding: 0; overflow: hidden; }
.cartao.flush > .cab { padding: 1.15rem 1.4rem .85rem; margin-bottom: 0; }

.grade { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.grade > .cartao { margin-bottom: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* Faixa de destaque: o número principal e a curva dividem o palco; o resto vira um livro de linhas */
.destaque { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: var(--c-superficie); border: 1px solid var(--c-borda); border-radius: var(--raio); margin-bottom: 1.25rem; overflow: hidden; }
.destaque .palco { padding: 1.4rem 1.6rem 1.1rem; min-width: 0; }
.destaque .palco .rot { color: var(--c-suave); font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.destaque .palco .grande { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin: .15rem 0 .6rem; }
.destaque .palco .grande .val { font-size: 3.6rem; font-weight: 500; letter-spacing: -.045em; line-height: 1.05; color: var(--c-tinta); }
.destaque .palco .grande .ref { color: var(--c-suave); font-size: .86rem; }
.livro { border-left: 1px solid var(--c-borda); display: flex; flex-direction: column; background: #FBFBFC; }
.livro .item { padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--c-borda); flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .1rem; }
.livro .item:last-child { border-bottom: 0; }
.livro .rot { color: var(--c-suave); font-size: .85rem; }
.livro .val { font-size: 1.65rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; color: var(--c-tinta); }
.livro .rod { font-size: .8rem; color: var(--c-suave); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }

.delta { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; font-size: .78rem; padding: .08rem .45rem; border-radius: 5px; white-space: nowrap; }
.delta.sobe { background: var(--c-ok-fundo); color: var(--c-ok); }
.delta.desce { background: var(--c-erro-fundo); color: var(--c-erro); }
.delta.igual { background: #EEF0F3; color: var(--c-suave); }

.selo { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .55rem; border-radius: 5px; font-size: .76rem; font-weight: 550; background: #EEF0F3; color: var(--c-grafite); white-space: nowrap; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.selo.sem-ponto::before { display: none; }
.selo.ok { background: var(--c-ok-fundo); color: var(--c-ok); }
.selo.alerta { background: var(--c-alerta-fundo); color: var(--c-alerta); }
.selo.erro { background: var(--c-erro-fundo); color: var(--c-erro); }
.selo.info { background: var(--c-info-fundo); color: var(--c-info); }
.selo.marca { background: var(--c-acento-clara); color: #9A4A06; }

.btn, button.btn {
  font: inherit;
  font-weight: 550;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--c-tinta);
  color: #fff;
  border: 1px solid var(--c-tinta);
  border-radius: 6px;
  padding: .5rem .95rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  min-height: 36px;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: #2A3846; border-color: #2A3846; color: #fff; }
.btn.sec { background: var(--c-superficie); color: var(--c-tinta); border-color: var(--c-borda-forte); }
.btn.sec:hover { background: #F3F4F6; border-color: #AEB6BF; color: var(--c-tinta); }
.btn.acento { background: var(--c-primaria); border-color: var(--c-primaria); color: #fff; }
.btn.acento:hover { background: var(--c-primaria-esc); border-color: var(--c-primaria-esc); color: #fff; }
.btn.perigo { background: var(--c-erro); border-color: var(--c-erro); }
.btn.perigo:hover { background: #8E1B11; border-color: #8E1B11; }
.btn.peq { padding: .3rem .65rem; font-size: .84rem; border-radius: 6px; min-height: 30px; }
.btn.texto { background: transparent; border-color: transparent; color: var(--c-primaria-esc); padding-left: .4rem; padding-right: .4rem; }
.btn.texto:hover { background: var(--c-primaria-clara); color: var(--c-primaria-esc); border-color: transparent; }

label, .rotulo { display: block; font-weight: 550; font-size: .86rem; margin: 0 0 .35rem; color: var(--c-grafite); }
input[type=text], input[type=password], input[type=url], input[type=search], input[type=number], select, textarea {
  font: inherit;
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--c-borda-forte);
  border-radius: 6px;
  background: #fff;
  color: var(--c-texto);
  min-height: 38px;
}
input:hover, select:hover, textarea:hover { border-color: #9AA8B4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primaria); box-shadow: 0 0 0 3px rgba(13, 120, 199, .16); }
textarea { min-height: 6rem; resize: vertical; }
.campo { margin-bottom: 1rem; }
.ajuda { color: var(--c-suave); font-size: .8rem; margin: .3rem 0 0; }
.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1.25rem; }

.interruptor { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .trilho { width: 42px; height: 24px; border-radius: 999px; background: #B9C2CA; position: relative; flex: none; transition: background .15s; }
.interruptor .trilho::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.interruptor input:checked + .trilho { background: var(--c-ok); }
.interruptor input:checked + .trilho::after { transform: translateX(18px); }
.interruptor input:focus-visible + .trilho { outline: 2px solid var(--c-primaria); outline-offset: 2px; }
.interruptor .texto { font-weight: 500; }

.barra-filtros { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.1rem; }
.barra-filtros .campo { margin: 0; min-width: 160px; }
.barra-filtros .busca { flex: 1 1 260px; position: relative; }
.barra-filtros .busca .ic { position: absolute; left: .75rem; top: 2.05rem; color: var(--c-suave); pointer-events: none; width: 16px; height: 16px; }
.barra-filtros .busca input { padding-left: 2.2rem; }

.segmento { display: inline-flex; background: #fff; border: 1px solid var(--c-borda); border-radius: 8px; padding: 2px; gap: 2px; }
.segmento a, .segmento button { text-decoration: none; padding: .3rem .8rem; border-radius: 6px; font-weight: 500; font-size: .85rem; color: var(--c-suave); background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.segmento a:hover { color: var(--c-tinta); background: #F3F4F6; }
.segmento a[aria-current="true"] { background: var(--c-tinta); color: #fff; }

.abas { display: flex; gap: .25rem; border-bottom: 1px solid var(--c-borda); margin-bottom: 1.25rem; overflow-x: auto; }
.abas a { padding: .6rem 1rem; text-decoration: none; color: var(--c-suave); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas a:hover { color: var(--c-grafite); }
.abas a[aria-current="page"] { color: var(--c-tinta); font-weight: 600; border-bottom-color: var(--c-tinta); }

.tabela { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
caption { text-align: left; padding: 0 0 .5rem; }
thead th { position: sticky; top: 0; background: #FBFBFC; text-align: left; font-size: .8rem; color: var(--c-suave); font-weight: 500; padding: .6rem .9rem; border-bottom: 1px solid var(--c-borda); border-top: 1px solid var(--c-borda); white-space: nowrap; }
thead th a { color: inherit; text-decoration: none; display: inline-flex; gap: .25rem; align-items: center; }
thead th a:hover { color: var(--c-grafite); }
thead th a .seta { font-size: .7rem; }
tbody td { padding: .8rem .9rem; border-bottom: 1px solid #EEF0F3; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #F8F9FB; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td .sub, td .peq { display: block; color: var(--c-suave); font-size: .8rem; }
.celula-conta { display: flex; align-items: center; gap: .7rem; min-width: 190px; }
.celula-conta .nome { font-weight: 600; color: var(--c-grafite); text-decoration: none; display: block; }
.celula-conta a.nome:hover { color: var(--c-primaria); }
.foto { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #E9EDF1; border: 1px solid var(--c-borda); flex: none; }
.foto.g { width: 64px; height: 64px; }
.foto-i { width: 38px; height: 38px; border-radius: 50%; background: var(--c-primaria-clara); color: var(--c-primaria-esc); display: grid; place-items: center; font-weight: 600; font-size: .8rem; flex: none; }
.foto-i.g { width: 64px; height: 64px; font-size: 1.2rem; }
.miniatura { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #E9EDF1; flex: none; border: 1px solid var(--c-borda); }
.miniatura-v { width: 52px; height: 52px; border-radius: 10px; background: #E9EDF1; display: grid; place-items: center; color: var(--c-suave); flex: none; }
.celula-pub { display: flex; gap: .8rem; align-items: center; min-width: 240px; }
.celula-pub .txt { min-width: 0; }
.celula-pub .txt a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--c-grafite); text-decoration: none; font-weight: 550; }
.celula-pub .txt a:hover { color: var(--c-primaria); text-decoration: underline; }

.pagina { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.3rem; border-top: 1px solid var(--c-borda); font-size: .85rem; color: var(--c-suave); flex-wrap: wrap; }
.pagina .nav { display: flex; gap: .35rem; }

.vazio { text-align: center; padding: 2.5rem 1.5rem; color: var(--c-suave); }
.vazio .ic { width: 40px; height: 40px; color: #B9C2CA; margin-bottom: .6rem; stroke-width: 1.5; }
.vazio h3 { color: var(--c-grafite); margin-bottom: .3rem; font-size: 1.02rem; }
.vazio p { max-width: 46ch; margin: 0 auto .9rem; }

.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; counter-reset: passo; }
.passos li { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--c-borda); border-radius: var(--raio); background: #FBFBFC; counter-increment: passo; }
.passos li::before { content: counter(passo); width: 28px; height: 28px; border-radius: 50%; background: var(--c-primaria-clara); color: var(--c-primaria-esc); display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; }
.passos li.feito::before { content: "✓"; background: var(--c-ok-fundo); color: var(--c-ok); }
.passos li .corpo { flex: 1; min-width: 0; }
.passos li strong { display: block; }
.passos li .peq { color: var(--c-suave); }

.lista-atencao { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.lista-atencao li { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .85rem; border-radius: 6px; font-size: .9rem; border-left: 3px solid transparent; }
.lista-atencao li.erro { background: var(--c-erro-fundo); color: #7A1B13; border-left-color: var(--c-erro); }
.lista-atencao li.alerta { background: var(--c-alerta-fundo); color: var(--c-alerta); border-left-color: #D97706; }
.lista-atencao li.info { background: var(--c-info-fundo); color: #1E3A8A; border-left-color: var(--c-info); }
.lista-atencao li.ok { background: var(--c-ok-fundo); color: #14532D; }
.lista-atencao li a { color: inherit; font-weight: 650; }
.lista-atencao .ic { margin-top: .12rem; }

.grafico { width: 100%; height: auto; display: block; overflow: visible; }
.grafico .grade-h { stroke: #E9ECEF; stroke-width: 1; stroke-dasharray: 2 4; }
.grafico .eixo { fill: var(--c-suave); font-size: 11px; font-family: var(--fonte); }
.grafico .linha { fill: none; stroke: var(--c-primaria); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafico .area { fill: url(#gradArea); stroke: none; }
.grafico .ponto { fill: #fff; stroke: var(--c-primaria); stroke-width: 1.6; r: 3; }
.grafico .ponto:hover { fill: var(--c-primaria); r: 5; }
.grafico .barra { fill: var(--c-primaria); }
.spark .linha { fill: none; stroke: var(--c-primaria); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: var(--c-primaria); opacity: .10; stroke: none; }
.spark .fim { fill: var(--c-acento); }

.comparar { display: grid; gap: .9rem; }
.comparar .linha-c .topo-c { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .3rem; }
.comparar .trilho-c { height: 8px; background: #EEF0F3; border-radius: 4px; overflow: hidden; }
.comparar .trilho-c span { display: block; height: 100%; border-radius: 4px; background: var(--c-primaria); }
.comparar .linha-c:nth-child(2) .trilho-c span { background: var(--c-acento); }

.calor { display: grid; grid-template-columns: 38px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: .68rem; color: var(--c-suave); align-items: center; }
.calor .d { text-align: right; padding-right: 6px; font-weight: 650; }
.calor .h { text-align: center; }
.calor .c { height: 24px; border-radius: 4px; background: rgb(13 120 199 / calc(.06 + var(--v, 0) * .94)); min-height: 14px; }
.calor .c.zero { background: #F0F3F5; }
.legenda-calor { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--c-suave); margin-top: .75rem; }
.legenda-calor .esc { width: 110px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgb(13 120 199 / .1), rgb(13 120 199 / 1)); }

.perfil { display: flex; gap: 1.1rem; align-items: center; }
.perfil h1 { font-size: 1.4rem; }
.perfil .meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.bio { color: var(--c-suave); font-size: .9rem; max-width: 70ch; margin-top: .4rem; }

.cards-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.story { border: 1px solid var(--c-borda); border-radius: var(--raio); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.story .img { aspect-ratio: 9 / 14; background: linear-gradient(160deg, #E9EDF1, #D5DCE2); display: grid; place-items: center; color: #8696A3; position: relative; }
.story .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story .info { padding: .65rem .75rem; font-size: .82rem; display: grid; gap: .25rem; }
.story .info strong { font-size: .88rem; }

.saude-topo { display: flex; align-items: center; gap: 1rem; }
.saude-topo .farol { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.saude-topo .farol.ok { background: var(--c-ok-fundo); color: var(--c-ok); }
.saude-topo .farol.alerta { background: var(--c-alerta-fundo); color: var(--c-alerta); }
.saude-topo .farol.erro { background: var(--c-erro-fundo); color: var(--c-erro); }
.saude-topo .farol .ic { width: 28px; height: 28px; }

.config-grupo { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--c-borda); }
.config-grupo:last-of-type { border-bottom: 0; }
.config-grupo .intro p { color: var(--c-suave); font-size: .85rem; margin-top: .3rem; }
.barra-salvar { position: sticky; bottom: 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-top: 1px solid var(--c-borda); padding: .85rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 -1.3rem -1.15rem; border-radius: 0 0 var(--raio) var(--raio); }

.perigo-zona { border: 1px solid #F3B4B4; background: #FFF8F8; border-radius: var(--raio); padding: 1.15rem 1.3rem; }

.entrada { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--c-fundo); }
.entrada .lado { padding: 2.5rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; border-right: 1px solid var(--c-borda); background: #fff; }
.entrada .lado .logo { display: inline-block; }
.entrada .lado .logo img { display: block; height: 76px; width: auto; }
.entrada .lado h2 { font-size: 2.6rem; font-weight: 500; letter-spacing: -.04em; max-width: 14ch; line-height: 1.08; }
.entrada .lado .vitrine { max-width: 560px; width: 100%; }
.entrada .lado .placar { display: flex; gap: 2.2rem; align-items: flex-end; margin-bottom: 1rem; flex-wrap: wrap; }
.entrada .lado .placar .m { display: flex; flex-direction: column; min-width: 5.2rem; }
.entrada .lado .placar .m.principal { min-width: 9.5rem; }
.entrada .lado .placar .v { font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--c-tinta); }
.entrada .lado .placar .principal .v { font-size: 3.2rem; letter-spacing: -.045em; }
.entrada .lado .placar .r { font-size: .84rem; color: var(--c-suave); margin-top: .2rem; }
.entrada .lado .placar .m:not(.principal) .v { color: var(--c-ok); }
.entrada .lado .placar .m:nth-child(3) .v { color: var(--c-primaria-esc); }
.entrada .lado .nota { display: block; margin-top: .6rem; color: var(--c-fraco); font-size: .76rem; }
.entrada .lado .curva { width: 100%; height: auto; display: block; overflow: hidden; border-radius: 8px; transition: opacity .45s ease; }
.entrada .lado .curva .g { vector-effect: non-scaling-stroke; }
.entrada .lado .curva .rotulo { display: none; pointer-events: none; }
.entrada .lado .curva.vivo .rotulo { display: block; }
.entrada .lado .curva .rotulo rect { fill: var(--c-tinta); }
.entrada .lado .curva .rotulo text { fill: #fff; font-family: var(--fonte); font-weight: 600; font-variant-numeric: tabular-nums; }
.entrada .lado .curva .l { fill: none; stroke: var(--c-primaria); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.entrada .lado .curva .a { fill: url(#gradArea); }
.entrada .lado .curva .g { stroke: #E9ECEF; stroke-dasharray: 2 5; }
.entrada .lado .curva .p { fill: #fff; stroke: var(--c-acento); stroke-width: 2.4; transform-box: fill-box; transform-origin: center; }
.entrada .lado .curva .anel { fill: none; stroke: var(--c-acento); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.entrada .lado ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--c-suave); font-size: .9rem; }
.entrada .lado li { display: flex; gap: .5rem; align-items: center; }
.entrada .lado li .ic { color: var(--c-primaria); width: 16px; height: 16px; }
.entrada .form { display: grid; place-items: center; padding: 2rem; }
.entrada .caixa { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--c-borda); border-radius: 10px; padding: 2rem; }
.entrada .caixa h1 { margin-bottom: .35rem; }

/* Fundo da área do formulário: constelação de conexões (como o símbolo da marca) e indicadores flutuando */
.entrada .form { position: relative; overflow: hidden; background-image: radial-gradient(rgba(19, 28, 38, .09) 1px, transparent 1.2px); background-size: 22px 22px; }
.entrada .caixa { position: relative; z-index: 1; }
.fundo-rede { position: absolute; inset: 0; pointer-events: none; }
.fundo-rede .rede { position: absolute; inset: 0; width: 100%; height: 100%; }
.fundo-rede .rede line { stroke: #BFC8D1; stroke-width: 1; opacity: .7; }
.fundo-rede .rede .n { opacity: .55; animation: respira 5s ease-in-out infinite; }
.fundo-rede .rede .n.b { fill: var(--c-primaria); }
.fundo-rede .rede .n.o { fill: var(--c-acento); }
.fundo-rede::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 40% at 50% 50%, var(--c-fundo) 30%, transparent 100%); opacity: .85; }
.chip { position: absolute; z-index: 0; display: flex; align-items: center; gap: .55rem; padding: .45rem .8rem .45rem .5rem; background: #fff; border: 1px solid var(--c-borda); border-radius: 999px; font-size: .8rem; color: var(--c-suave); white-space: nowrap; box-shadow: 0 6px 18px rgba(19, 28, 38, .06); animation: flutua 7s ease-in-out infinite alternate; z-index: 1; }
.chip strong { color: var(--c-tinta); font-weight: 600; }
.chip .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.chip .ico .ic { width: 14px; height: 14px; }
.chip .ico.rosa { background: #FDE8EF; color: #C2255C; }
.chip .ico.azul { background: var(--c-primaria-clara); color: var(--c-primaria-esc); }
.chip .ico.verde { background: var(--c-ok-fundo); color: var(--c-ok); }
.chip .mini { width: 34px; height: 20px; margin-left: .2rem; fill: var(--c-primaria); }
.chip .mini rect:nth-child(odd) { opacity: .45; }
.chip .pilha { display: inline-flex; padding-left: .2rem; }
.chip .pilha i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -.4rem; display: grid; place-items: center; font: normal 600 .62rem var(--fonte); color: #fff; }
.chip .pilha i:nth-child(1) { background: var(--c-primaria); }
.chip .pilha i:nth-child(2) { background: var(--c-acento); }
.chip .pilha i:nth-child(3) { background: var(--c-tinta); }
.chip.c1 { top: 11%; left: 9%; animation-delay: -1s; }
.chip.c2 { top: 19%; right: 7%; animation-delay: -3s; }
.chip.c3 { bottom: 20%; left: 6%; animation-delay: -5s; }
.chip.c4 { bottom: 9%; right: 9%; animation-delay: -2s; }
.chip.c5 { top: 5%; right: 30%; animation-delay: -4s; }
@keyframes flutua { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@keyframes respira { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }
@media (max-width: 1100px) { .chip.c5, .chip.c3 { display: none; } }
@media (max-width: 700px) { .chip { display: none; } }

@media (max-width: 1200px) {
  :root { --lateral: 216px; }
  .conteudo { padding: .75rem 1.5rem 3rem; }
  .topo { padding-left: 1.5rem; padding-right: 1.5rem; }
  tbody td, thead th { padding-left: .65rem; padding-right: .65rem; }
}
@media (max-width: 1280px) {
  .g-2-1, .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .config-grupo { grid-template-columns: 1fr; gap: .75rem; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100vh; transform: translateX(-102%); transition: transform .2s ease; z-index: 50; box-shadow: var(--sombra-g); }
  .navtoggle:checked ~ .app .lateral { transform: none; }
  .navtoggle:checked ~ .app .fundo-menu { display: block; position: fixed; inset: 0; background: rgba(15, 23, 32, .5); z-index: 40; }
  .topo { padding: .7rem 1rem; }
  .topo .hamb { display: inline-flex; }
  .conteudo { padding: .5rem 1rem 3rem; }
  .destaque { grid-template-columns: 1fr; }
  .livro { border-left: 0; border-top: 1px solid var(--c-borda); display: grid; grid-template-columns: 1fr 1fr; }
  .livro .item:nth-child(odd) { border-right: 1px solid var(--c-borda); }
  .livro .item:nth-child(n+3) { border-bottom: 0; }
  .entrada .lado { display: none; }
  .g2 { grid-template-columns: 1fr; }
  .entrada { grid-template-columns: 1fr; }
  .calor { font-size: .6rem; gap: 2px; }
  .calor .h:nth-child(even) { visibility: hidden; }
}
@media (max-width: 560px) {
  .cabeca { align-items: flex-start; }
  .destaque .palco .grande .val { font-size: 2.8rem; }
  .perfil { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  .lateral, .topo, .acoes, .barra-filtros, .pagina, .btn { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .cartao, .destaque { break-inside: avoid; }
}
