:root {
  color-scheme: light dark;
  --background: #fff;
  --foreground: #171717;
  --muted: #666;
  --border: #b8b8b8;
  --accent: #1746a2;
  --accent-foreground: #fff;
  --error: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111;
    --foreground: #eee;
    --muted: #aaa;
    --border: #555;
    --accent: #8bb4ff;
    --accent-foreground: #111;
    --error: #ff8a80;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 2rem 1.25rem;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.shell {
  visibility: hidden;
  width: min(100%, 40rem);
}

html.approval-top-level .shell {
  visibility: visible;
}

.product {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 6vw, 2.3rem);
  line-height: 1.15;
}

.summary,
.content,
.status {
  max-width: 38rem;
}

.summary {
  margin: 1rem 0 0;
}

.content {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.content p {
  margin: 0;
}

.pairing-words {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  font-size: clamp(1.4rem, 7vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.action {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.action-secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
}

.action:disabled {
  cursor: wait;
  opacity: 0.55;
}

code {
  color: var(--accent);
  font: inherit;
}

.status {
  min-height: 1.5rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.alert {
  color: var(--error);
  font-weight: 700;
}

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

@media (min-width: 34rem) {
  .action {
    width: auto;
    min-width: 12rem;
    margin-right: 0.35rem;
  }
}
