:root {
  --bg-a: #0c1323;
  --bg-b: #123349;
  --panel: rgba(8, 16, 28, 0.75);
  --line: rgba(255, 255, 255, 0.18);
  --text: #f2f7ff;
  --muted: #9db4d1;
  --brand: #00d08f;
  --danger: #ff5d5d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #1c4c70, transparent 35%),
    radial-gradient(circle at 80% 10%, #116b55, transparent 30%),
    linear-gradient(140deg, var(--bg-a), var(--bg-b));
}

.layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  padding: 20px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

h2 {
  margin-top: 0;
}

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

input,
button {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
}

button {
  cursor: pointer;
  background: linear-gradient(100deg, #0aa273, #00d08f);
  color: #032919;
  border: none;
  font-weight: 700;
}

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

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

.grid-form {
  grid-template-columns: 2fr 1.2fr auto;
  margin-bottom: 14px;
}

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

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.status {
  font-weight: 700;
}

.status.off {
  color: var(--danger);
}

#message {
  min-height: 20px;
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 740px) {
  .grid-form {
    grid-template-columns: 1fr;
  }

  th:nth-child(2),
  td:nth-child(2) {
    display: none;
  }
}
