* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f4f6;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.panel,
.feed {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 18px;
}

.feed {
  margin-top: 16px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

p,
.endpoint span,
li span {
  color: #6b7280;
}

.badge {
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #6b7280;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.badge[data-status="on"] {
  background: #047857;
}

.badge[data-status="off"] {
  background: #b45309;
}

.badge[data-status="denied"],
.badge[data-status="unsupported"] {
  background: #b91c1c;
}

.actions {
  justify-content: flex-start;
  margin-top: 18px;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 650;
}

button.secondary,
.icon-button {
  background: #e5e7eb;
  color: #111827;
}

.endpoint {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.diag {
  margin-top: 14px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 14px;
  line-height: 1.35;
  padding: 10px;
  overflow-wrap: anywhere;
}

code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 10px;
}

ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

li.empty {
  color: #6b7280;
}

@media (max-width: 560px) {
  .topbar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .badge {
    width: fit-content;
  }

  button {
    width: 100%;
  }
}
