:root {
  --bg: #0f172a;
  --panel: #111827;
  --ink: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22d3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

.wrap {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 16px;
}

.hint {
  color: var(--muted);
}

.card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid #1f2937;
  border-radius: 14px;
}

input,
select,
button {
  font: inherit;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1220;
  color: var(--ink);
}

button {
  margin-top: 8px;
  background: var(--accent);
  color: #0b1220;
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.output {
  min-height: 1.5em;
  font-size: 1.2rem;
  word-break: break-word;
}
