* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #0f1115; color: #e6e8ee; }
a { color: #e6e8ee; text-decoration: none; }

.topo { display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; background: #161922; border-bottom: 1px solid #262a36;
  position: sticky; top: 0; z-index: 5; }
.marca { font-weight: 700; font-size: 18px; letter-spacing: .3px; }
.marca::before { content: ''; display: inline-block; width: 9px; height: 9px;
  background: #dc2626; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.topo nav a { margin-left: 18px; color: #9aa0ad; font-size: 14px; }
.topo nav a:hover { color: #fff; }

main { max-width: 1100px; margin: 0 auto; padding: 24px 22px 60px; }
h1 { font-size: 22px; margin-bottom: 6px; }
h3 { font-size: 15px; margin-bottom: 10px; }
.ajuda, .sub { color: #8b91a0; font-size: 13px; margin-bottom: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #161922; border: 1px solid #262a36; border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column; }
.stat .num { font-size: 30px; font-weight: 700; }
.stat .num.alerta { color: #dc2626; }
.stat .lbl { color: #8b91a0; font-size: 11px; margin-top: 4px;
  text-transform: uppercase; letter-spacing: .5px; }

.filtros { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filtro { background: #161922; border: 1px solid #262a36; color: #9aa0ad;
  padding: 7px 14px; border-radius: 20px; cursor: pointer; font-size: 13px; }
.filtro.ativo { background: #dc2626; border-color: #dc2626; color: #fff; }

.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.evento { background: #161922; border: 1px solid #262a36; border-radius: 12px; overflow: hidden; }
.thumb { aspect-ratio: 16 / 9; background: #0b0d11; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sem-foto { display: flex; align-items: center; justify-content: center;
  height: 100%; color: #444a57; font-size: 12px; }
.info { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.obj { font-weight: 700; text-transform: capitalize; font-size: 14px; }
.obj-pessoa { color: #dc2626; }
.local { font-size: 13px; color: #e6e8ee; }
.cam, .quando { font-size: 11px; color: #8b91a0; }
.vazio { color: #8b91a0; grid-column: 1 / -1; padding: 40px; text-align: center; }

.tabela { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px; }
.tabela th { text-align: left; color: #8b91a0; font-weight: 600; padding: 8px 10px;
  border-bottom: 1px solid #262a36; font-size: 11px; text-transform: uppercase; }
.tabela td { padding: 10px; border-bottom: 1px solid #1d212b; vertical-align: middle; }
.tabela tr.inativa { opacity: .45; }
.token { background: #0b0d11; padding: 3px 7px; border-radius: 5px;
  font-size: 11px; color: #f0b429; user-select: all; }

button { font-family: inherit; cursor: pointer; }
button[type=submit] { background: #dc2626; color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.mini { background: #262a36; color: #e6e8ee; border: none;
  padding: 5px 10px; border-radius: 6px; font-size: 12px; }
.mini.perigo { background: #3a1d1d; color: #ef8a8a; }

.form-inline { display: flex; gap: 10px; margin-bottom: 24px; }
.form-inline input { flex: 1; }
input, select { background: #0f1115; border: 1px solid #2c313d; color: #e6e8ee;
  padding: 9px 11px; border-radius: 8px; font-size: 14px; font-family: inherit; }
input[type=checkbox] { width: auto; padding: 0; }
input:focus, select:focus { outline: none; border-color: #dc2626; }

.form-card { background: #161922; border: 1px solid #262a36; border-radius: 12px; padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.grid label, .form-card label { display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: #8b91a0; }
.dias { display: flex; gap: 14px; align-items: center; margin-bottom: 12px;
  font-size: 13px; flex-wrap: wrap; }
.dias .dia { flex-direction: row; align-items: center; gap: 5px; color: #e6e8ee; }
.canais { display: flex; gap: 18px; margin-bottom: 16px; font-size: 14px; }
.canais label { flex-direction: row; align-items: center; gap: 6px; color: #e6e8ee; }

.box-codigo { background: #161922; border: 1px solid #262a36;
  border-radius: 12px; padding: 18px; margin-top: 8px; }
pre { background: #0b0d11; padding: 12px 14px; border-radius: 8px; overflow: auto;
  font-size: 13px; color: #7dd3a8; margin-top: 8px; }

.tela-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.card-login { background: #161922; border: 1px solid #262a36; border-radius: 16px;
  padding: 36px 32px; width: 340px; display: flex; flex-direction: column; gap: 12px; }
.marca-grande { font-size: 26px; font-weight: 700; text-align: center; }
.card-login .sub { text-align: center; margin-bottom: 6px; }
.card-login button { background: #dc2626; color: #fff; border: none;
  padding: 11px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.erro { background: #3a1d1d; color: #ef8a8a; padding: 9px 12px;
  border-radius: 8px; font-size: 13px; }
.ok-msg { background: #1a3a26; color: #7dd3a8; padding: 9px 12px;
  border-radius: 8px; font-size: 13px; }

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
}
