* {
  box-sizing: border-box;
}

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

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

.card {
  width: min(620px, 100%);
  background: white;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(25, 36, 58, 0.12);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.intro,
.detail {
  color: #5a6475;
  line-height: 1.5;
}

.connection-row,
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.connection-row {
  margin: 24px 0;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary {
  background: #222b45;
  color: white;
}

.send {
  width: 100%;
  margin-top: 18px;
  background: #1f6feb;
  color: white;
}

.status {
  font-size: 0.95rem;
  font-weight: 700;
}

.connected {
  color: #147d3f;
}

.disconnected {
  color: #9a3d3d;
}

.busy {
  color: #9a6500;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
  font-size: 1.05rem;
  text-transform: uppercase;
}

textarea:focus {
  outline: 2px solid #1f6feb;
  outline-offset: 1px;
}

.meta-row {
  margin-top: 7px;
  color: #6b7485;
  font-size: 0.85rem;
}

.detail {
  margin: 18px 0 0;
  font-size: 0.9rem;
}
