:root {
  --bg: #f4f5f7;
  --fg: #1b1d22;
  --muted: #5d6270;
  --accent: #2557d6;
  --accent-fg: #ffffff;
  --field: #ffffff;
  --border: #c9cdd6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --fg: #e8eaee;
    --muted: #9aa0ad;
    --accent: #5b8cff;
    --accent-fg: #0b0d12;
    --field: #1c1f26;
    --border: #363b46;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  width: 100%;
  max-width: 22rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

#setup {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: left;
}

#setup[hidden] {
  display: none;
}

label {
  color: var(--muted);
  font-size: 0.875rem;
}

input {
  min-height: 48px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--field);
  color: var(--fg);
  font: inherit;
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  letter-spacing: 0.1em;
}

button {
  min-height: 64px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

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

#status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}
