:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --accent: #5b8cff;
  --text: #e6e8ee;
  --muted: #9aa0ad;
  --border: #2a2e3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1rem;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card {
  width: 100%;
  max-width: 760px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

h1 { margin: 0 0 0.25rem; font-size: 1.4rem; }
h2 { font-size: 1rem; color: var(--muted); margin: 1.25rem 0 0.5rem; }
.hint { color: var(--muted); margin-top: 0; }

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

input {
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #11131b;
  color: var(--text);
  font-size: 0.95rem;
}

button {
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
button:disabled { opacity: 0.55; cursor: progress; }

.status { min-height: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.status.error { color: #ff7676; }

.output {
  background: #0b0d13;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
