:root {
  color-scheme: light dark;
  --bg: #0d1117;
  --card: #151b23;
  --text: #e6edf3;
  --muted: #8b949e;
  --border: #30363d;
  --accent: #58a6ff;
  --accent-strong: #1f6feb;
  --danger: #ff7b72;
  --ok: #7ee787;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.18), transparent 34rem),
    var(--bg);
  color: var(--text);
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.card {
  width: min(100%, 48rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.28);
}

header {
  margin-bottom: 1.5rem;
}

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

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
}

.lede,
.note,
.status {
  color: var(--muted);
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 700;
}

textarea,
input,
button {
  font: inherit;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: #0d1117;
  color: var(--text);
  outline: none;
  padding: 0.85rem 1rem;
}

textarea {
  min-height: 10rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
}

textarea:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.18);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.25rem 0;
}

button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

button:hover {
  filter: brightness(1.08);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

button.secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-weight: 700;
}

.status.ok {
  color: var(--ok);
}

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

.note {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa;
    --card: #ffffff;
    --text: #24292f;
    --muted: #57606a;
    --border: #d0d7de;
    --accent: #0969da;
    --accent-strong: #0969da;
  }

  textarea,
  input {
    background: #ffffff;
  }
}
