:root {
  --bg0: #0f1412;
  --bg1: #17201c;
  --ink: #eef3ef;
  --muted: #9aaca2;
  --line: rgba(238, 243, 239, 0.12);
  --accent: #d6ff4b;
  --accent-ink: #14200a;
  --danger: #ff6b4a;
  --danger-ink: #2a0d06;
  --panel: rgba(23, 32, 28, 0.88);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "DM Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, #2a4034 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #3a2a18 0%, transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #101612);
}

.shell {
  width: min(640px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

.brand {
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 420ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

.row {
  display: flex;
  gap: 0.65rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(214, 255, 75, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 255, 75, 0.12);
}

.actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.05rem;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    background 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

button:not(.secondary):not(.danger):not(.ghost) {
  background: var(--accent);
  color: var(--accent-ink);
}

button.secondary {
  background: rgba(238, 243, 239, 0.1);
  color: var(--ink);
}

button.danger {
  background: var(--danger);
  color: var(--danger-ink);
}

button.ghost {
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 0.7rem;
}

.note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.note code,
.output code {
  font-family: var(--mono);
  font-size: 0.84em;
}

.output {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
}

.error {
  margin: 0.85rem 0 0;
  color: #ffb0a0;
  font-size: 0.92rem;
}

.status {
  margin: 0.85rem 0 0;
  color: var(--accent);
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .shell {
    padding-top: 2.5rem;
  }

  .row,
  .actions {
    flex-direction: column;
  }
}
