:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #0f1522;
  --border: #1f2a40;
  --text: #e7ecf5;
  --muted: #9baccc;
  --accent: #60a5fa;
  --accent-2: #2dd4bf;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 900px at 10% 0%, #121d33, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

.container {
  width: min(900px, 92vw);
  margin: 3rem auto;
  display: grid;
  gap: 1.25rem;
}

header h1 {
  margin: 0;
}

header p {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.panel {
  background: color-mix(in srgb, var(--panel) 92%, black 8%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

label {
  display: block;
  margin: 0.75rem 0 0.4rem;
  font-weight: 600;
}

input,
textarea,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
}

textarea {
  resize: vertical;
}

.actions {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

button {
  cursor: pointer;
  border-color: #355486;
  background: linear-gradient(145deg, #1f3a69, #20314d);
  font-weight: 600;
}

button.secondary {
  border-color: #306067;
  background: linear-gradient(145deg, #175357, #1a4345);
}

.status {
  min-height: 1.25rem;
  margin-top: 0.9rem;
  color: var(--muted);
}

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

.status.success {
  color: var(--accent-2);
}

pre {
  margin: 0;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
