*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  line-height: 1.5;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; height: 56px;
}
.nav-brand {
  font-size: 1.1rem; font-weight: 600; color: #f0f6fc !important;
  margin-right: 2rem;
}
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: #8b949e; font-size: 0.9rem; }
.nav-links a:hover { color: #58a6ff; text-decoration: none; }

.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }

h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; margin-top: 1.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card {
  background: #161b22; border: 1px solid #30363d; border-radius: 8px;
  padding: 1.25rem; text-align: center;
}
.card-value { font-size: 2rem; font-weight: 700; color: #f0f6fc; }
.card-label { font-size: 0.85rem; color: #8b949e; margin-top: 0.25rem; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .row { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #21262d; }
th { font-size: 0.8rem; color: #8b949e; text-transform: uppercase; letter-spacing: 0.05em; }
td { font-size: 0.875rem; }
tr:hover td { background: #161b22; }

.empty { color: #8b949e; font-style: italic; padding: 2rem 0; }

.ua { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

pre {
  background: #161b22; border: 1px solid #30363d; border-radius: 6px;
  padding: 1rem; overflow-x: auto; font-size: 0.8rem; line-height: 1.4;
}

.btn {
  display: inline-block; padding: 0.5rem 1rem; margin: 0.5rem 0;
  background: #238636; color: #fff !important; border-radius: 6px;
  font-size: 0.85rem; border: none; cursor: pointer;
}
.btn:hover { background: #2ea043; text-decoration: none; }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 12px; font-size: 0.75rem; font-weight: 500; }
.badge-capture { background: #1f6feb; color: #fff; }
.badge-visit { background: #8957e5; color: #fff; }
.badge-submit { background: #d29922; color: #fff; }
