:root {
  color-scheme: dark;
  --bg: #0b101a;
  --panel: #131c2b;
  --border: #253247;
  --text: #e9eff9;
  --muted: #9eacc1;
  --accent: #a8f277;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 system-ui,
    sans-serif;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
}
p,
small {
  color: var(--muted);
}
button,
input,
select,
textarea {
  font: inherit;
  border-radius: 8px;
}
button {
  background: var(--accent);
  border: 1px solid transparent;
  color: #13250c;
  padding: 10px 17px;
  font-weight: 650;
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button.secondary {
  background: #24354d;
  color: var(--text);
}
button.quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
button.danger {
  background: #4a2731;
  color: #ffc2ca;
}
input,
select,
textarea {
  background: #0d1522;
  border: 1px solid #36465e;
  color: var(--text);
  padding: 10px;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}
textarea,
pre {
  font:
    13px/1.65 ui-monospace,
    monospace;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  color: #c5d1e3;
  margin-bottom: 16px;
}
label input,
label select,
label textarea {
  margin-top: 7px;
}
label small {
  display: block;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #86c463;
  outline-offset: 2px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 255px;
  padding: 30px 22px;
  border-right: 1px solid var(--border);
  background: #101724;
}
.brand {
  font-weight: 850;
  font-size: 23px;
  letter-spacing: -1px;
}
.brand span {
  color: var(--accent);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 12px;
}
nav {
  margin-top: 45px;
  display: grid;
  gap: 9px;
}
nav button {
  text-align: left;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  padding: 12px;
}
nav button.active {
  background: #253726;
  color: #b7f69a;
}
.aside-note {
  margin-top: 60px;
  font-size: 12px;
}
main {
  margin-left: 255px;
  padding: 38px 45px;
  max-width: 1500px;
}
header,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header {
  margin-bottom: 24px;
}
.badge {
  background: #233a2a;
  color: #c0f3a9;
  border: 1px solid #41613b;
  padding: 6px 12px;
  border-radius: 25px;
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.metrics h2 {
  font-size: 24px;
}
.metrics small {
  font-size: 11px;
}
article {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  padding: 25px;
  margin-bottom: 20px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.actions select {
  width: auto;
  min-width: 200px;
}
.logs {
  height: 310px;
  overflow: auto;
  background: #090e17;
  padding: 16px;
  color: #b4cba6;
  white-space: pre-wrap;
}
pre {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.field {
  background: #101827;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.field label {
  overflow-wrap: anywhere;
}
.field pre {
  max-height: 180px;
  color: var(--muted);
}
.login {
  max-width: 430px;
  margin: 12vh auto;
  padding: 25px;
}
.login h1 {
  font-size: 48px;
  margin-top: 40px;
}
.login button {
  width: 100%;
  margin-top: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: min(520px, 90vw);
  padding: 15px 22px;
  background: #dff4ce;
  color: #182c13;
  border-radius: 10px;
  box-shadow: 0 5px 40px #0009;
  white-space: pre-wrap;
}
#toast.error {
  background: #ffd4d8;
  color: #5f1721;
}
[hidden] {
  display: none !important;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  color: var(--muted);
}
@media (max-width: 900px) {
  aside {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }
  nav {
    margin-top: 16px;
    grid-template-columns: repeat(2, 1fr);
  }
  .aside-note {
    display: none;
  }
  main {
    margin: 0;
    padding: 22px;
  }
  .metrics,
  .grid {
    grid-template-columns: 1fr;
  }
  header {
    align-items: flex-start;
  }
  .login h1 {
    font-size: 40px;
  }
}
