:root {
  --bg: #0b1020;
  --panel: #121a2f;
  --text: #e8eefc;
  --muted: #9fb0d0;
  --accent: #5b8cff;
  --accent-2: #2fd6a1;
  --danger: #ff6b6b;
  --border: #24304f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, sans-serif;
  background: radial-gradient(circle at top, #152040, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 28, 0.9);
  position: sticky;
  top: 0;
}
.brand { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.links a { color: var(--text); text-decoration: none; opacity: 0.9; }
.links a:hover { opacity: 1; color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.hero { margin-bottom: 2rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card, .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
}
.card { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  cursor: pointer;
}
.btn.large { padding: 0.85rem 1.2rem; font-size: 1rem; }
.btn.secondary { background: #24304f; }
.row-actions { margin-bottom: 1rem; }
.input-row { display: flex; gap: 0.5rem; margin-top: 0.35rem; }
.input-row input { flex: 1; margin-top: 0; }
.result-text { font-size: 1.2rem; margin-top: 1rem; color: var(--accent-2); }
.list { padding-left: 1.2rem; margin: 0; }
.list li { margin-bottom: 0.4rem; }
.pill {
  background: rgba(47, 214, 161, 0.15);
  color: var(--accent-2);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.form label { display: block; margin-bottom: 1rem; }
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 0.35rem;
  background: #0d1428;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.stats { display: grid; grid-template-columns: 180px 1fr; gap: 0.5rem 1rem; }
.stats dt { color: var(--muted); }
.alert { background: rgba(255, 107, 107, 0.12); border: 1px solid var(--danger); padding: 1rem; border-radius: 10px; margin-bottom: 1rem; }

.route-list li { margin-bottom: 0.35rem; }
.sec-high { color: #6dffb2; }
.sec-low { color: #ffd36d; }
.sec-null { color: #ff8d8d; }

.totals { display: flex; gap: 2rem; margin: 1rem 0; }
.totals span { display: block; color: var(--muted); font-size: 0.85rem; }
.totals strong { font-size: 1.4rem; }

.list-box { max-height: 420px; overflow: auto; font-size: 0.92rem; line-height: 1.5; }
.badge { background: var(--accent); color: white; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.75rem; }

.site-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.site-head h2 { margin-top: 0; }
.verdict {
  flex-shrink: 0;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: lowercase;
}
.verdict-yes { background: rgba(47, 214, 161, 0.2); color: var(--accent-2); }
.verdict-hard { background: rgba(255, 211, 109, 0.18); color: #ffd36d; }
.verdict-no { background: rgba(255, 107, 107, 0.18); color: var(--danger); }
.verdict-unk { background: #24304f; color: var(--muted); }
.timer-warn { color: #ffd36d; }
.timer-bad { color: var(--danger); }

@media (max-width: 700px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
