:root {
  color-scheme: dark;
  --bg: #070a12;
  --card: #111827;
  --muted: #94a3b8;
  --text: #f8fafc;
  --line: #243044;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 10%, #12304a 0, transparent 34%), var(--bg);
  color: var(--text);
}

.shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.92;
}

.lede {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

.card {
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--card), transparent 8%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.35);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  background: #1f2937;
  color: var(--muted);
}

.pill.connected {
  background: color-mix(in srgb, var(--accent-2), transparent 78%);
  color: #bbf7d0;
}

.pill.disconnected {
  background: color-mix(in srgb, var(--danger), transparent 80%);
  color: #fecdd3;
}

form {
  display: grid;
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1220;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(56 189 248 / 0.16);
}

button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #020617;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.45;
}

.log-card {
  background: #050814;
}

.log-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

pre {
  min-height: 160px;
  max-height: 320px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.5;
}

.note {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 620px) {
  .shell {
    padding: 28px 0;
  }

  .status-row,
  .grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
