/* The app's own palette (app/lib/src/presentation/theme/app_colors.dart). Light by
   default; dark follows the system unless theme.js saved a choice
   (data-theme on <html>). Keep the dark tokens in both blocks the same. */
:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --surface2: #eceef5;
  --border: #dadde8;
  --text: #141826;
  --text2: #525a73;
  --accent: #2346c8;
  --on-accent: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #0a0d15;
    --surface: #161b29;
    --surface2: #232a3d;
    --border: #283045;
    --text: #eceff7;
    --text2: #a4abc1;
    --accent: #eceff7;
    --on-accent: #141826;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0a0d15;
  --surface: #161b29;
  --surface2: #232a3d;
  --border: #283045;
  --text: #eceff7;
  --text2: #a4abc1;
  --accent: #eceff7;
  --on-accent: #141826;
}

* {
  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);
}


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);
}

/* A page of text, such as the privacy policy. */
.doc {
  max-width: 680px;
  text-align: left;
}

.doc h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text2);
}

.doc li {
  margin-bottom: 8px;
}

.doc strong {
  color: var(--text);
}

/* The theme button (theme.js), top of a page of text. */
.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.doc-top a {
  font-weight: 600;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text2);
}

.theme-toggle:not([data-state]) {
  display: none;
}

.theme-toggle:hover {
  color: var(--text);
}

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

.theme-icon {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-fill {
  fill: currentcolor;
  stroke: none;
}

.theme-toggle[data-state="system"] .theme-icon-system,
.theme-toggle[data-state="light"] .theme-icon-light,
.theme-toggle[data-state="dark"] .theme-icon-dark {
  display: block;
}

[hidden] {
  display: none !important;
}
