/* Painel Tá no Gugo — simples e limpo. Celular primeiro (360 px). O Designer da página afina depois. */
:root {
  --azul: #0066FF;      /* azul da marca (docs/marca/kit) */
  --grafite: #1F1F2B;
  --fundo: #F5F6F8;
  --cartao: #ffffff;
  --texto: #1F1F2B;
  --suave: #5b6573;
  --linha: #dde2e8;
  --verde: #008000;
  --vermelho: #b3261e;
  --raio: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  min-height: 100vh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
[hidden] { display: none !important; }

.topo {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--grafite); color: #fff;
}
.topo h1 { margin: 0; line-height: 0; }
.topo h1 img { display: block; width: 124px; height: auto; }
.sem-rede { font-size: 13px; background: #fff3; padding: 2px 8px; border-radius: 99px; }

main { max-width: 640px; margin: 0 auto; padding: 16px; }
h2 { font-size: 20px; margin: 4px 0 12px; }
h3 { font-size: 16px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.suave { color: var(--suave); font-size: 14px; }
.carregando { color: var(--suave); text-align: center; margin-top: 40px; }

.abas { display: flex; gap: 8px; margin-bottom: 12px; }
.abas button {
  flex: 1; padding: 10px; border-radius: 99px; border: 1px solid var(--linha);
  background: #fff; color: var(--texto); font: inherit; font-size: 15px;
}
.abas button.ativa { background: var(--azul); border-color: var(--azul); color: #fff; }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { margin-bottom: 10px; }
.item {
  display: block; padding: 14px 16px; border-radius: var(--raio);
  background: var(--cartao); border: 1px solid var(--linha);
  color: inherit; text-decoration: none;
}
.item .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--suave); }
.etiqueta { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #E6F0FF; color: var(--azul); }
.etiqueta.aprova { background: #e3f3e8; color: var(--verde); }
.etiqueta.nega { background: #fbe7e6; color: var(--vermelho); }

.bloco {
  background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 16px; margin-bottom: 12px;
}
.caso { white-space: pre-wrap; }
.recomendacao { border-left: 4px solid var(--azul); padding-left: 12px; white-space: pre-wrap; }

label { display: block; font-size: 14px; color: var(--suave); margin-bottom: 6px; }
textarea, input[type="text"] {
  width: 100%; font: inherit; padding: 12px; border-radius: 10px;
  border: 1px solid var(--linha); background: #fff; color: var(--texto);
}
textarea { min-height: 88px; resize: vertical; }
input.codigo { text-transform: uppercase; letter-spacing: 2px; font-size: 20px; text-align: center; }

.botoes { display: flex; gap: 10px; margin-top: 12px; }
.botao {
  flex: 1; min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 0;
  font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: var(--azul);
  cursor: pointer;
}
.botao:disabled { opacity: .55; }
.botao.aprova { background: var(--verde); }
.botao.nega { background: var(--vermelho); }
.botao.leve { background: #fff; color: var(--azul); border: 1px solid var(--azul); font-weight: 600; }
.botao.perigo { background: #fff; color: var(--vermelho); border: 1px solid var(--vermelho); font-weight: 600; }
.botao.cheio { width: 100%; flex: none; display: block; }
.link { background: none; border: 0; color: var(--azul); font: inherit; text-decoration: underline; padding: 8px 0; cursor: pointer; }

.aviso { padding: 12px 14px; border-radius: 10px; background: #fff7e0; border: 1px solid #f0d58a; margin-bottom: 12px; }
.aviso.ok { background: #e3f3e8; border-color: #9fd3b1; }
.aviso.erro { background: #fbe7e6; border-color: #eba9a4; }

.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.numero { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px; }
.numero .valor { font-size: 24px; font-weight: 700; }
.numero .valor.vazio { font-size: 15px; font-weight: 400; color: var(--suave); }

.vazio-lista { text-align: center; color: var(--suave); padding: 32px 8px; }
.voltar { display: inline-block; margin-bottom: 8px; color: var(--azul); text-decoration: none; }

.menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; background: #fff; border-top: 1px solid var(--linha);
  padding-bottom: env(safe-area-inset-bottom);
}
.menu a {
  flex: 1; text-align: center; padding: 14px 4px; color: var(--suave);
  text-decoration: none; font-size: 15px; font-weight: 600;
}
.menu a.ativa { color: var(--azul); box-shadow: inset 0 3px 0 var(--azul); }
