:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #18202a;
}

body {
  margin: 0;
}

a {
  color: #0969da;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d9e0e7;
  display: flex;
  height: 56px;
  justify-content: space-between;
  padding: 0 24px;
}

.brand {
  align-items: center;
  color: #18202a;
  display: flex;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  height: 30px;
  image-rendering: pixelated;
  width: auto;
}

.topbar nav,
.actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.language-form {
  margin: 0;
}

.language-form select {
  padding: 7px 8px;
}

.shell {
  margin: 0 auto;
  max-width: 1100px;
  padding: 32px 20px;
}

.auth,
.panel {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  padding: 24px;
}

.auth {
  margin: 48px auto;
  max-width: 420px;
}

h1,
h2 {
  margin: 0 0 16px;
}

h2 {
  font-size: 18px;
  margin-top: 28px;
}

.section-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.section-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.title-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.title-row h1 {
  margin-bottom: 0;
}

.help-button {
  align-items: center;
  background: #6b7280;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 28px;
}

.help-content {
  display: grid;
  gap: 18px;
}

.help-content h2 {
  margin-bottom: 8px;
}

.help-content ul {
  margin: 0;
  padding-left: 20px;
}

.help-content li {
  margin: 8px 0;
}

.contact-line {
  font-weight: 700;
}

.server-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0 6px;
}

.server-card {
  align-items: center;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 14px;
}

.server-main,
.server-meta {
  align-items: center;
  display: flex;
  gap: 10px;
}

.server-main p {
  margin: 3px 0 0;
}

.server-meta {
  justify-content: flex-end;
}

.status-dot {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.form,
.inline-form {
  display: grid;
  gap: 16px;
}

.inline-form {
  align-items: end;
  grid-template-columns: minmax(220px, 360px) auto;
  margin: 24px 0;
}

label {
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
}

input {
  border: 1px solid #c9d3df;
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
}

select {
  border: 1px solid #c9d3df;
  border-radius: 6px;
  font: inherit;
  padding: 9px 10px;
}

.small-input {
  max-width: 80px;
}

button,
.button {
  background: #334155;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  padding: 10px 14px;
  text-decoration: none;
}

button:disabled {
  background: #9aa7b4;
  cursor: not-allowed;
}

button.success,
.button.success {
  background: #14532d;
}

button.secondary,
.button.secondary {
  background: #6b7280;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-top: 1px solid #e3e8ee;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #526171;
  font-size: 13px;
}

.muted,
.empty {
  color: #667085;
}

.error,
.notice {
  border-radius: 6px;
  padding: 12px;
}

.error {
  background: #fff1f1;
  color: #9f1239;
}

.notice {
  background: #eef6ff;
  color: #124f7a;
}

.badge {
  border-radius: 999px;
  font-size: 13px;
  padding: 6px 10px;
}

.output {
  background: #111827;
  border-radius: 6px;
  color: #e5e7eb;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.good {
  background: #dcfce7;
  color: #166534;
}

.status-dot.good {
  background: #16a34a;
}

.bad {
  background: #fee2e2;
  color: #991b1b;
}

.status-dot.bad {
  background: #dc2626;
}

.wait {
  background: #fff7ed;
  color: #9a3412;
}

.info {
  background: #dbeafe;
  color: #1e40af;
}

.unknown {
  background: #e5e7eb;
  color: #374151;
}

.status-dot.unknown {
  background: #6b7280;
}

@media (max-width: 760px) {
  .inline-form,
  .section-head,
  .section-actions,
  .server-card,
  .server-meta {
    display: grid;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
