:root {
  color-scheme: dark;
  --bg: #08121e;
  --panel: #0e1c2b;
  --line: #1f364d;
  --text: #d9e6f4;
  --muted: #90a8be;
  --green: #2ec27e;
  --red: #f66151;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 0%, #13314d 0%, var(--bg) 45%);
  color: var(--text);
}

.shell {
  width: min(1200px, 96vw);
  margin: 24px auto;
  display: grid;
  gap: 16px;
}

.topbar,
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

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

button {
  cursor: pointer;
  font-weight: 600;
}

.panel {
  padding: 12px;
}

#chart {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #07121e;
}

#meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  color: #c7d7e7;
}

@media (max-width: 880px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
