:root {
  --bg: #f6f5f3; --surface: #fff; --text: #1c1b1a; --muted: #6b6762;
  --border: #e2dfda; --accent: #1c1b1a; --accent-text: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312; --surface: #1f1d1c; --text: #ecebe8; --muted: #9a958f;
    --border: #34312e; --accent: #ecebe8; --accent-text: #141312;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, sans-serif; }
a { color: inherit; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar nav { display: flex; gap: 1rem; align-items: center; }
.brand { font-weight: 600; text-decoration: none; }
.container { max-width: 760px; margin: 0 auto; padding: 1rem; }
.card { display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem; margin-bottom: .75rem; text-decoration: none; }
.card.row { display: flex; flex-direction: column; gap: .15rem; }
.narrow { max-width: 380px; margin: 2rem auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.grid .card { margin: 0; }
.muted { color: var(--muted); }
.flash { padding: .75rem 1rem; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--border); margin-bottom: 1rem; }
.btn { background: var(--accent); color: var(--accent-text); border: 0; border-radius: 8px;
  padding: .6rem 1.1rem; font: inherit; cursor: pointer; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; cursor: pointer; }
form.inline { display: inline; }
input, textarea, select { font: inherit; width: 100%; padding: .5rem; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.email-body { white-space: pre-wrap; font: inherit; }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem; }
