* {
  box-sizing: border-box;
}

body {
  max-width: 52rem;
  margin: 1rem auto;
  padding: 0 1rem;
  color: #202124;
  font: 1rem/1.4 system-ui, sans-serif;
}

h1 {
  margin: 0;
}

.intro {
  margin: 0.25rem 0;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

select,
button {
  padding: 0.3rem 0.5rem;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.connection-summary,
.stats-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1rem;
}

.connection-summary p,
.stats-heading p {
  margin: 0.25rem 0;
}

.stats-heading h2 {
  margin: 0.5rem 0 0.25rem;
}

.connection-summary #status {
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

th,
td {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #bbb;
  vertical-align: top;
}

.group {
  background: #eee;
}

details {
  margin-top: 1.5rem;
}

#stats {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid #bbb;
  border-radius: 0.4rem;
  background: #f5f5f5;
}
