:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f1f4f9;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 520px);
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 60px rgba(22, 34, 58, 0.14);
}

.badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e9efff;
  color: #224ba8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

h1 { margin: 18px 0 8px; font-size: clamp(30px, 7vw, 44px); }
.subtitle, .note { color: #667085; }

label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
}

input, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd6e4;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.status {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
  background: #eef1f5;
}
.status[data-state="live"] { background: #dff8e8; color: #117a3d; }
.status[data-state="connecting"], .status[data-state="waiting"] { background: #fff2cc; color: #835d00; }
.status[data-state="error"] { background: #ffe2e2; color: #a32121; }

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
}
.stats strong { font-size: 26px; }

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: #2457d6; color: white; }
.secondary { background: #e8edf5; color: #24314a; }
.danger { background: #cf2d3a; color: white; }
.note { margin: 20px 0 0; font-size: 13px; text-align: center; }

@media (max-width: 520px) {
  .card { padding: 24px; }
  .actions { grid-template-columns: 1fr; }
}
