:root {
  --tinta: #14263a;
  --petroleo: #0d5c63;
  --petroleo-escuro: #0a464c;
  --fundo: #e9eef2;
  --papel: #ffffff;
  --linha: #cfd8e0;
  --suave: #52646f;
  --erro: #a32222;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.topo {
  background: var(--tinta);
  color: #fff;
  padding: 44px 20px 92px;
}

.largura {
  max-width: 920px;
  margin: 0 auto;
}

.topo .largura {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.acoes-topo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

h1, h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
}

h1 {
  margin: 0 0 6px;
  font-size: 36px;
  line-height: 1.15;
}

.topo p {
  margin: 0;
  max-width: 52ch;
  color: #c6d3dd;
}

.conteudo {
  margin-top: -60px;
  padding: 0 20px 32px;
}

.cartao {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-top: 4px solid var(--petroleo);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 24px;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  overflow-wrap: anywhere;
}

h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.login {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-inline: auto;
}

.login label { margin-top: 10px; }
.login .botao { margin-top: 18px; }

label {
  display: block;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8b9ba7;
  border-radius: 4px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.campos {
  display: grid;
  gap: 6px;
}

.campos label:not(:first-child) { margin-top: 10px; }

.campos .linha-botoes { margin-top: 16px; }

.relato {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--petroleo);
  background: #f1f6f7;
}

.relato h3 { margin-bottom: 8px; }

.relato p {
  margin: 0;
  max-width: 75ch;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.arquivos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.arquivo { min-width: 0; }

audio, video {
  display: block;
  width: 100%;
  margin-bottom: 14px;
}

.print {
  display: block;
  margin-bottom: 14px;
  border: 1px solid var(--linha);
  border-radius: 4px;
  background: #f3f6f8;
  overflow: hidden;
}

.print img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.nota {
  margin: 0 0 14px;
  color: var(--suave);
}

.vazio {
  margin: 0;
  color: var(--suave);
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--petroleo);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.botao:hover { background: var(--petroleo-escuro); }
.botao:disabled { opacity: .6; cursor: default; }

.botao svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.botao-claro {
  background: #fff;
  color: var(--tinta);
}

.botao-claro:hover { background: #dfe7ed; }

.botao-contorno {
  background: transparent;
  box-shadow: inset 0 0 0 1px #8fa3b2;
}

.botao-contorno:hover { background: #24384d; }

.botao-secundario {
  background: #fff;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1px #8b9ba7;
}

.botao-secundario:hover { background: #eef2f5; }

.botao-perigo {
  background: #fff;
  color: var(--erro);
  box-shadow: inset 0 0 0 1px var(--erro);
}

.botao-perigo:hover { background: #fbeeee; }

.linha-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.painel-admin {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--linha);
}

.progresso {
  margin: 12px 0 0;
  color: var(--suave);
}

.erro {
  margin: 8px 0 0;
  color: var(--erro);
  font-weight: 600;
}

#erro-geral {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fbeeee;
  border-left: 4px solid var(--erro);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 2px;
}

footer {
  padding: 0 20px 40px;
  color: var(--suave);
  font-size: 14px;
}

@media (max-width: 680px) {
  .topo { padding: 32px 16px 84px; }
  .conteudo { padding: 0 16px 24px; }
  footer { padding: 0 16px 32px; }
  h1 { font-size: 30px; }
  .cartao { padding: 20px; }
  .arquivos { grid-template-columns: 1fr; gap: 28px; }
  .botao, .acoes-topo { width: 100%; }
  .linha-botoes .botao { flex: 1 1 100%; }
}
