:root {
  --bg: #0b1324;
  --panel: #131d32;
  --text: #e7ecf3;
  --muted: #9aa8c3;
  --ok: #3fd58d;
  --warn: #f7c948;
  --bad: #f47d7d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}
h1, h2, h3, p { margin: 0.3rem 0; }
.muted { color: var(--muted); font-size: 0.9rem; }
.alert {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #a66d1f;
  border-radius: 10px;
  background: #352713;
  color: #ffd99c;
}
.card { background: var(--panel); border-radius: 14px; padding: 1rem; margin: 0.7rem 0; }
.filter {
  position: sticky;
  top: 0;
  z-index: 2;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}
.filter-row label { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--muted); }
.filter-row .check-label { flex-direction: row; align-items: center; align-self: center; gap: 0.45rem; }
.filter-row .check-label input { width: auto; }
.filter-row input,
.filter-row select {
  margin-top: 0.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #243451;
  background: #0d1527;
  color: var(--text);
}
button {
  margin-top: 0.85rem;
  border: none;
  background: #3278f8;
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem;
  cursor: pointer;
}
.grid {
  display: grid;
  gap: 0.7rem;
}
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.event { border-left: 5px solid var(--warn); }
.event.verified { border-left-color: var(--ok); }
.event.candidate { border-left-color: #8a6dff; }
.event.unverified { border-left-color: var(--bad); }
.title { font-weight: 700; color: #fff; }
.links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0; }
.links a {
  color: #79b8ff;
  text-decoration: none;
  border: 1px solid #284a76;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.compact { margin: 0.3rem 0; padding-left: 1rem; }
.warn { color: var(--warn); font-weight: 600; }
.small-table { width: 100%; border-collapse: collapse; }
.small-table th, .small-table td,
.comparison-table th, .comparison-table td,
.benefit-table th, .benefit-table td {
  border-bottom: 1px dashed #2e4063;
  text-align: left;
  padding: 0.4rem;
  font-size: 0.86rem;
}
.table-wrap { width: 100%; overflow-x: auto; }
.comparison-table { width: 100%; min-width: 980px; border-collapse: collapse; margin-top: 0.7rem; }
.benefit-table { width: 100%; min-width: 420px; border-collapse: collapse; margin-top: 0.5rem; }
.comparison-table a { color: #79b8ff; }
.comparison-table th { white-space: nowrap; color: var(--muted); }
footer { margin-top: 1rem; }

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
