:root {
  color-scheme: dark;
  --bg: #252525;
  --panel: #343434;
  --panel-2: #3e3e3e;
  --line: #555;
  --text: #fff;
  --muted: #cfcfcf;
  --soft: #a9a9a9;
  --accent: #eeeeee;
  --danger: #ffb4b4;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--soft);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 8px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(36px, 5vw, 72px); line-height: .95; margin-bottom: 12px; }
h2 { font-size: 22px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
.subtitle { color: var(--muted); font-size: 18px; max-width: 720px; }
.muted { color: var(--muted); }

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
}
.badge.ok { border-color: #9a9a9a; }
.badge.warn { color: var(--danger); border-color: #7d5a5a; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

input {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

button {
  appearance: none;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--accent);
  color: #222;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
button:disabled {
  opacity: .55;
  cursor: wait;
}

#status { color: var(--muted); }

.env {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.env div {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-height: 72px;
}
.env strong { display: block; color: var(--soft); font-size: 12px; margin-bottom: 6px; }

.tableWrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}
th, td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td { color: var(--text); }
.empty { color: var(--muted); text-align: center; }
.small { display: block; color: var(--soft); font-size: 12px; margin-top: 4px; }

.bars { display: grid; gap: 12px; margin-top: 18px; }
.barCard {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.barTop { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.track { height: 14px; background: #242424; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.fill { height: 100%; background: #fff; width: 0%; transition: width .25s ease; }

.ops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ops article {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.ops p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.5;
  max-height: 280px;
  overflow: auto;
}

@media (max-width: 860px) {
  .hero, .grid.two { grid-template-columns: 1fr; display: grid; }
  .controls, .env, .ops { grid-template-columns: 1fr; }
  .badge { justify-self: start; }
}
