:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111514;
  color: #ecf2ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 16px;
}

.panel {
  background: #1b211f;
  border: 1px solid #33413c;
  border-radius: 8px;
  padding: 18px;
}

#login-panel {
  max-width: 420px;
  margin: 10vh auto 0;
}

.topbar,
.panel-head,
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.wide {
  grid-column: 1 / -1;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #b9c7c2;
  font-size: 13px;
}

input,
select,
button {
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid #42524c;
  background: #121715;
  color: #ecf2ef;
  padding: 8px 10px;
  font: inherit;
}

button {
  cursor: pointer;
  background: #d4f06a;
  border-color: #d4f06a;
  color: #152013;
  font-weight: 700;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

pre {
  min-height: 120px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  background: #0b0f0e;
  border: 1px solid #2a3531;
  border-radius: 6px;
  padding: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #33413c;
  padding: 8px;
  vertical-align: top;
}

.error {
  color: #ffb4a8;
  min-height: 20px;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-head,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
