/* AgentEgg's account pages (canvas row 50): plain, light or dark as the browser is. */
:root {
  --bg: #f7f6f2;
  --text: #1f1e1c;
  --muted: #6b6860;
  --line: #e4e2db;
  --link: #5b4fd6;
  --error: #b3261e;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1e1c;
    --text: #ecebe6;
    --muted: #a8a59c;
    --line: #34332f;
    --link: #a99cf8;
    --error: #f2a39b;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

main {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

main.text {
  max-width: 640px;
  align-items: stretch;
  text-align: left;
}

h1 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  margin: 4px 0 0;
}

h2 {
  font-size: 16px;
  margin: 18px 0 0;
}

p,
ul {
  margin: 0;
}

ul {
  padding-left: 20px;
}

li {
  margin: 4px 0;
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.gbutton {
  min-height: 44px;
  display: grid;
  place-items: center;
  margin-top: 8px;
}

.state {
  min-height: 20px;
}

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

footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
