:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #22d3ee;
  --accent-2: #0891b2;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 0%, #1e293b 0%, #0b1021 60%, #070b16 100%);
  min-height: 100vh;
}

.app {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.controls,
.send-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
button {
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: var(--text);
  height: 2.25rem;
  padding: 0 0.6rem;
}

button {
  cursor: pointer;
  border-color: var(--accent-2);
  background: linear-gradient(180deg, #0f2e3b, #0c2233);
}

button:hover:enabled {
  filter: brightness(1.1);
}

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

.status-row {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

#status {
  color: var(--accent);
}

.terminal {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
}

@media (max-width: 720px) {
  .terminal {
    height: 52vh;
    min-height: 300px;
  }
}
