:root {
  --bg: #f7f5f0;
  --fg: #1d2420;
  --muted: #5f6b64;
  --accent: #1f5f4a;
  --accent-fg: #ffffff;
  --line: #ddd8cc;
  --radius: 10px;
  --space: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151a17; --fg: #e8ece9; --muted: #9aa69f; --accent: #5fb391; --accent-fg: #0d1210; --line: #2b332e; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; line-height: 1.5; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--space) * .75) var(--space); padding-top: max(calc(var(--space) * .75), env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--accent); text-decoration: none; }
main { flex: 1; width: 100%; max-width: 40rem; margin: 0 auto; padding: var(--space); }
footer { padding: var(--space); text-align: center; font-size: .875rem; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: var(--accent-fg); padding: .6rem 1.2rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
button.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
