/* The app's own palette (lib/src/presentation/app_theme.dart). */
:root {
  color-scheme: light dark;
  --background: #f5f6f8;
  --surface: #ffffff;
  --surface2: #eef0f3;
  --border: #e1e5eb;
  --text: #1c1f24;
  --text2: #5b616b;
  --accent: #3a3f47;
  --on-accent: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111315;
    --surface: #1a1d21;
    --surface2: #23272c;
    --border: #2c3036;
    --text: #e8eaed;
    --text2: #a3a9b2;
    --accent: #c9ced6;
    --on-accent: #111315;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 420px;
  margin: 0 auto;
  padding: 64px 16px 32px;
  text-align: center;
}

.icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

h1 {
  margin: 20px 0 8px;
  font-size: 24px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
  color: var(--text2);
}

.code {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: 600 36px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 8px;
  /* The spacing also follows the last digit: even it out. */
  padding-left: 24px;
  user-select: all;
}

button {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.small {
  margin-top: 24px;
  font-size: 14px;
}

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

[hidden] {
  display: none !important;
}
