/* MIRRORED FILE: kept byte-identical (bar this line) with events-service/public/theme.css.
   Run `node scripts/check-mirror-diff.mjs` from the repo root after editing
   either copy — see docs/family-hub-plan.md decision D-H8. */
:root {
  --bg: #faf9f7;
  --card: #fff;
  --ink: #1c1a17;
  --muted: #6b6459;
  --line: #e5e0d8;
  --accent: #3a5a40;
  --accent-soft: #c5d6c8;
}

[data-theme="harbor"] {
  --accent: #2c5f73;
  --accent-soft: #c3d9e0;
}

[data-theme="plum"] {
  --accent: #6b3f5e;
  --accent-soft: #ddc7d5;
}

[data-theme="terracotta"] {
  --accent: #8a4520;
  --accent-soft: #e6cdb9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.theme-picker {
  display: flex;
  gap: 0.6rem;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}
.swatch[data-theme="forest"] { background: #3a5a40; }
.swatch[data-theme="harbor"] { background: #2c5f73; }
.swatch[data-theme="plum"] { background: #6b3f5e; }
.swatch[data-theme="terracotta"] { background: #8a4520; }
.swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

.btn {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }

[hidden] { display: none !important; }
