:root {
  --bg: #14161a;
  --panel: #1d2027;
  --line: #2c313b;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --accent: #60a5fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.25rem;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 34rem;
}

h1 {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input,
select,
button {
  font: inherit;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #12141a;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  width: 100%;
}

button {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1020;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  font-weight: 500;
}

.field {
  margin-bottom: 0.9rem;
}

.row {
  display: flex;
  gap: 0.6rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.dot.ok {
  background: var(--ok);
}
.dot.warn {
  background: var(--warn);
}
.dot.bad {
  background: var(--bad);
}

.meter {
  height: 8px;
  background: #12141a;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.meter > div {
  height: 100%;
  width: 0%;
  background: var(--ok);
  transition: width 80ms linear;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent);
}

.log {
  margin-top: 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  max-height: 9rem;
  overflow-y: auto;
  white-space: pre-wrap;
}
