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

body {
  margin: 0;
  background: #0e1117;
}

a {
  color: #8ab4ff;
}

code,
pre {
  font-family: "Cascadia Code", "Consolas", monospace;
}

input,
button {
  font: inherit;
}

input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #30363d;
  border-radius: 0.6rem;
  background: #0b0f14;
  color: #e6edf3;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  background: #2563eb;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: #1d4ed8;
}

.secondary {
  background: #30363d;
}

.danger {
  background: #b42318;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #21262d;
  background: #111722;
}

.brand {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.link-button {
  padding: 0;
  color: #8ab4ff;
  background: transparent;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}

.panel,
.login-card {
  margin-bottom: 1.25rem;
  border: 1px solid #21262d;
  border-radius: 1rem;
  padding: 1.25rem;
  background: #161b22;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-card {
  width: min(420px, calc(100% - 2rem));
}

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

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

.muted {
  color: #8b949e;
}

.notice,
.error {
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.notice {
  border: 1px solid #2f6f44;
  background: #12311f;
}

.error {
  border: 1px solid #8b312d;
  background: #391313;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card {
  border: 1px solid #30363d;
  border-radius: 0.85rem;
  padding: 1rem;
  background: #0d1117;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 0.75rem;
}

dt {
  color: #8b949e;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.status-active {
  color: #3fb950;
}

.status-inactive,
.status-failed {
  color: #ff7b72;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.settings-form,
.stack {
  display: grid;
  gap: 1rem;
}

.backup-list {
  padding-left: 1.25rem;
}

.logs {
  max-height: 560px;
  overflow: auto;
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #05070a;
  white-space: pre-wrap;
}
