:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #141f35;
  --text: #e5efff;
  --muted: #9ab0d6;
  --line: #2a3d65;
  --accent: #4cb3ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at top, #11213d, var(--bg));
  color: var(--text);
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.panel {
  background: linear-gradient(180deg, #172641, var(--panel));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

h1, h2, h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

input, select, button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #0d1628;
  color: var(--text);
}

button {
  cursor: pointer;
}

.primary {
  background: linear-gradient(180deg, #3ea9ff, #2a7ec8);
  border-color: #3f98e2;
  color: #04152a;
  font-weight: 700;
}

.bad {
  background: #622334;
  border-color: #9a3b56;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 8px;
  font-size: 14px;
}

code {
  white-space: pre-wrap;
  word-break: break-word;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav button.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(76, 179, 255, 0.35);
}

@media (max-width: 800px) {
  th, td { font-size: 12px; }
}
