:root {
  --fundo: #f6f5f2;
  --cartao: #ffffff;
  --texto: #1f2328;
  --texto-suave: #5b6470;
  --borda: #d9dde3;
  --primaria: #2f5d8a;
  --primaria-escura: #244a6e;
  --alerta: #b4232c;
  --alerta-fundo: #fbe9ea;
  --atencao: #9a6700;
  --atencao-fundo: #fff4d6;
  --ok: #1f7a4d;
  --ok-fundo: #e3f4ea;
  --raio: 10px;
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); line-height: 1.5; }
a { color: var(--primaria); }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; }
h2 { font-size: 1.2rem; margin: 1.25rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
p { margin: .4rem 0 .8rem; }
.topo { background: var(--cartao); border-bottom: 1px solid var(--borda); padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; position: sticky; top: 0; z-index: 5; }
.marca { font-weight: 700; text-decoration: none; color: var(--texto); }
.menu { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.menu a { text-decoration: none; padding: .3rem .5rem; border-radius: 6px; font-size: .95rem; }
.menu a[aria-current="page"] { background: var(--primaria); color: #fff; }
.conteudo { max-width: 960px; margin: 0 auto; padding: 1rem; }
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.estreito { max-width: 440px; margin-left: auto; margin-right: auto; }
.grade { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=file], select, textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--borda); border-radius: 8px; background: #fff; color: var(--texto);
}
textarea { min-height: 5rem; }
button, .botao { font: inherit; padding: .65rem 1.1rem; border-radius: 8px; border: 1px solid var(--borda); background: #fff; color: var(--texto); cursor: pointer; text-decoration: none; display: inline-block; }
button.primario, .botao.primario { background: var(--primaria); border-color: var(--primaria); color: #fff; }
button.primario:hover { background: var(--primaria-escura); }
button.perigo { border-color: var(--alerta); color: var(--alerta); }
button.link { border: 0; background: none; color: var(--primaria); padding: .3rem .5rem; }
form.inline { display: inline; }
.acoes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.aviso { padding: .7rem .9rem; border-radius: 8px; border: 1px solid transparent; }
.aviso.erro { background: var(--alerta-fundo); color: var(--alerta); border-color: #f0c4c7; }
.aviso.atencao { background: var(--atencao-fundo); color: var(--atencao); border-color: #f0dfa6; }
.aviso.ok { background: var(--ok-fundo); color: var(--ok); border-color: #bfe4cf; }
.suave { color: var(--texto-suave); font-size: .92rem; }
ul.lista { padding-left: 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
th { font-weight: 600; background: #fafafa; }
.tabela-rolagem { overflow-x: auto; }
td.destaque { background: var(--atencao-fundo); font-weight: 600; }
td.destaque-alto { background: var(--alerta-fundo); font-weight: 600; }
.progresso { height: 8px; background: var(--borda); border-radius: 4px; overflow: hidden; margin: .4rem 0 1rem; }
.progresso > div { height: 100%; background: var(--primaria); }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset legend { font-weight: 600; margin-bottom: .4rem; }
.item { padding: .8rem 0; border-bottom: 1px solid var(--borda); }
.item:last-child { border-bottom: 0; }
.item .texto { margin-bottom: .4rem; }
.opcoes { display: flex; flex-wrap: wrap; gap: .4rem; }
.opcoes label { font-weight: 400; margin: 0; }
.opcoes input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.opcoes span { display: inline-block; padding: .5rem .8rem; border: 1px solid var(--borda); border-radius: 999px; background: #fff; cursor: pointer; }
.opcoes input:checked + span { background: var(--primaria); color: #fff; border-color: var(--primaria); }
.opcoes input:focus-visible + span { outline: 3px solid #9ec1e6; }
.escala { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.escala input[type=range] { width: 100%; }
.escala output { min-width: 2ch; text-align: right; font-weight: 700; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .8rem; background: #eef1f5; color: var(--texto-suave); }
.badge.alerta { background: var(--alerta-fundo); color: var(--alerta); }
.badge.ok { background: var(--ok-fundo); color: var(--ok); }
.badge.atencao { background: var(--atencao-fundo); color: var(--atencao); }
.cvv { font-size: 1.4rem; font-weight: 700; }
.linha-tempo { position: relative; padding-left: 1.2rem; border-left: 3px solid var(--borda); }
.linha-tempo .marco { position: relative; margin-bottom: 1rem; }
.linha-tempo .marco::before { content: ""; position: absolute; left: -1.55rem; top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primaria); }
.linha-tempo .marco.encerrado::before { background: var(--borda); }
.grafico { position: relative; height: 260px; }
.analise { white-space: pre-wrap; }
.oculto { display: none; }
@media (max-width: 600px) {
  html { font-size: 16px; }
  .conteudo { padding: .75rem; }
  .cartao { padding: .85rem; }
  .menu a { font-size: .9rem; padding: .25rem .4rem; }
}
