:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080c14;
  color: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top, #172033 0, #080c14 42rem);
}

main {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

header { margin-bottom: 2rem; }
h1 { margin: .2rem 0 .8rem; font-size: clamp(2rem, 8vw, 4rem); line-height: 1; }
h2 { margin: 0 0 .7rem; font-size: 1.25rem; }
p { line-height: 1.55; color: #bdc6d6; }
.eyebrow { color: #60a5fa; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }

section {
  margin: 1rem 0;
  padding: 1.25rem;
  border: 1px solid #293247;
  border-radius: 1rem;
  background: rgba(16, 23, 38, .9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.warning { border-color: #b7791f; background: rgba(75, 46, 5, .42); }
.danger { border-color: #7f1d1d; }
.actions, .section-heading { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.section-heading { justify-content: space-between; }

button {
  appearance: none;
  border: 1px solid #60a5fa;
  border-radius: .7rem;
  background: #2563eb;
  color: white;
  padding: .75rem 1rem;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button.secondary { background: transparent; color: #bfdbfe; }
button:disabled { cursor: wait; opacity: .55; }
.result { min-height: 1.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
label { display: grid; gap: .35rem; margin: .75rem 0; color: #dbeafe; font-size: .9rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #364258;
  border-radius: .55rem;
  background: #090f1b;
  color: #f3f4f6;
  padding: .65rem;
  font: inherit;
}

textarea { resize: vertical; }
pre {
  overflow: auto;
  max-height: 34rem;
  border-radius: .65rem;
  background: #04070d;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #a7f3d0;
  font-size: .78rem;
}

.checklist li { margin: .45rem 0; color: #cbd5e1; line-height: 1.45; }
#log { position: sticky; bottom: .75rem; border-radius: .75rem; background: #111827; padding: .7rem 1rem; box-shadow: 0 8px 30px #000; }

@media (max-width: 520px) {
  main { width: min(100% - 1rem, 900px); padding-top: 1.5rem; }
  section { padding: 1rem; }
  button { width: 100%; }
}
