:root {
  --bg: #0b0f17; --panel: #111827; --border: #1f2937;
  --text: #f3f4f6; --muted: #9ca3af; --accent: #3b82f6;
  --emerald: #10b981; --emerald-bg: rgba(16,185,129,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55; min-height: 100vh;
  display: flex; flex-direction: column;
}
.header {
  background: var(--panel); border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.75rem; display: flex; justify-content: space-between; align-items: center;
}
.logo { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.tag { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); font-size: 0.72rem; padding: 0.15rem 0.5rem; border-radius: 4px; font-family: ui-monospace, monospace; }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); }
.main { max-width: 1020px; width: 100%; margin: 2rem auto; padding: 0 1.5rem; flex: 1; }
.box { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; margin-bottom: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem; }
.stat-title { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-num { font-size: 1.45rem; font-weight: 700; margin-top: 0.3rem; font-family: ui-monospace, monospace; }
.badge-ok { background: var(--emerald-bg); color: var(--emerald); padding: 0.2rem 0.55rem; border-radius: 4px; font-size: 0.76rem; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 0.75rem; }
th, td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; }
.input { width: 100%; background: #030712; border: 1px solid var(--border); color: var(--text); padding: 0.6rem 0.75rem; border-radius: 6px; margin: 0.35rem 0 1rem; font-size: 0.9rem; }
.btn { background: var(--accent); color: #fff; border: none; padding: 0.6rem 1.1rem; border-radius: 6px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; font-size: 0.88rem; }
.err-box { display: none; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; padding: 0.75rem; border-radius: 6px; font-size: 0.84rem; margin-bottom: 1rem; }
.footer { border-top: 1px solid var(--border); padding: 1rem 1.75rem; font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; background: var(--panel); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #93c5fd; font-size: 0.85em; }
