* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
}

.page.narrow {
  max-width: 420px;
}

.panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.toolbar,
.filters {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.live-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: #2563eb;
  color: white;
  font: inherit;
  cursor: pointer;
}

button.secondary {
  background: #111827;
}

.grow {
  flex: 1 1 280px;
}

.muted {
  color: #6b7280;
}

.small {
  font-size: 12px;
}

.alert {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
}

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

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

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

th {
  background: #f9fafb;
}

pre {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  overflow-x: auto;
  font-size: 12px;
}

.empty {
  padding: 16px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  text-align: center;
}
