:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #191f28;
  --sub: #6b7684;
  --primary: #3182f6;
  --primary-text: #ffffff;
  --line: #e5e8eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113;
    --card: #1b1d21;
    --text: #f2f4f6;
    --sub: #9aa4b2;
    --line: #2a2d33;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  line-height: 1.5;
}

main {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

p {
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 15px;
}

.code {
  display: block;
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 28px;
  letter-spacing: 0.2em;
  user-select: all;
  -webkit-user-select: all;
}

.button {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.status {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 14px;
  color: var(--sub);
}

.error {
  color: #f04452;
}

[hidden] {
  display: none !important;
}

/* Text pages (landing, privacy, terms, support): one readable column. Layout only; the visual design comes later. */
body.doc {
  display: block;
}

body.doc > header,
body.doc > main,
body.doc > footer {
  max-width: 720px;
  margin: 0 auto 16px;
}

body.doc > main {
  text-align: left;
}

body.doc .table-wrap {
  overflow-x: auto;
}

body.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

body.doc th,
body.doc td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
