:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #155eef;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 16px;
}

button:hover {
  background: #124fc8;
}

input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  min-height: 40px;
  padding: 0 12px;
}

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

.header,
.summary,
.panel {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.eyebrow {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
}

.status {
  align-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  white-space: nowrap;
}

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

.dot.connected {
  background: #10b981;
}

.dot.disconnected {
  background: #ef4444;
}

.summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding: 18px 24px;
}

.label {
  color: #64748b;
  display: block;
  font-size: 13px;
  font-weight: 700;
}

#display-count {
  display: block;
  font-size: 36px;
  line-height: 1;
  margin-top: 4px;
}

.panel {
  margin-top: 16px;
  overflow: hidden;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid #dbe3ef;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 24px;
}

.simulator {
  display: flex;
  gap: 8px;
}

.empty-state {
  color: #64748b;
  padding: 36px 24px;
  text-align: center;
}

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

.display-table th,
.display-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.display-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.display-table td {
  font-size: 14px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (max-width: 720px) {
  .header,
  .summary,
  .panel-header,
  .simulator {
    align-items: stretch;
    flex-direction: column;
  }

  .status {
    align-self: flex-start;
  }

  .panel {
    overflow-x: auto;
  }
}
