/* System fonts only: nothing is fetched from another site. */
:root {
  color-scheme: light dark;
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --line: #e2e2dd;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --danger: #b3261e;
  --notice: #e8f1e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --card: #1e1e1c;
    --text: #ececea;
    --muted: #a0a09a;
    --line: #34342f;
    --accent: #7aa7ec;
    --accent-text: #0b1a33;
    --danger: #f2b8b5;
    --notice: #1f2e1f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

.brand {
  margin: 0 0 1.5rem;
  font-weight: 600;
  color: var(--muted);
}

.brand a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
}

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

.note {
  font-size: 0.875rem;
}

.actions {
  display: grid;
  gap: 0.75rem;
}

button {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

button.danger {
  border-color: var(--danger);
  color: var(--danger);
}

button.link {
  width: auto;
  padding: 0;
  border: 0;
  color: var(--accent);
}

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

input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.inline {
  display: grid;
  gap: 0.5rem;
}

.list {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.steps {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

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

.notice {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--notice);
}

a {
  color: var(--accent);
}
