/* Avangar Accounts: the shared Avangar tokens (green and stone, Inter when installed). */
:root {
  --bg: #fafaf9;
  --panel: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --accent: #15803d;
  --accent-text: #ffffff;
  --danger: #b91c1c;
  --notice: #f0fdf4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --panel: #292524;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --line: #44403c;
    --accent: #22c55e;
    --accent-text: #052e16;
    --danger: #f87171;
    --notice: #14532d;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
header .brand { font-weight: 600; color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
main { max-width: 640px; margin: 32px auto; padding: 0 16px; }
main.narrow { max-width: 400px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 32px 0 8px; }
p.muted, .muted { color: var(--muted); }
section.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}
form { margin: 0; }
label { display: block; margin: 12px 0 4px; font-weight: 500; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
button {
  margin-top: 16px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.inline { display: inline; }
.inline button { margin-top: 0; }
.error { color: var(--danger); }
.notice { background: var(--notice); border-radius: 6px; padding: 8px 12px; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
code.codes { display: block; white-space: pre; font-size: 16px; line-height: 1.8; }
img.qr { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 6px; }
