:root {
  --bg: #faf7f2; --surface: #ffffff; --ink: #2b2620; --muted: #776d62; --line: #e6ded3;
  --accent: #6b4f8a; --accent-ink: #ffffff; --accent-soft: #efe8f6;
  --good: #3f7d4e; --good-soft: #e5f2e8; --danger: #a53a32; --warn-soft: #fbf1dc;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#1d1a17; --surface:#27231f; --ink:#f0ebe4; --muted:#a99f93; --line:#3a342e;
    --accent:#b59ad6; --accent-ink:#1d1a17; --accent-soft:#352d40; --good:#7fc28f; --good-soft:#243328;
    --danger:#e07b72; --warn-soft:#3a3122; }
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.top-row { display:flex; align-items:center; justify-content:space-between; padding-top:14px; padding-bottom:10px; }
.brand { font-weight:700; text-decoration:none; color:var(--ink); font-size:18px; }
.brand span { color: var(--accent); font-weight:600; }
.nav { display:flex; flex-wrap:wrap; gap:4px 6px; padding-bottom:10px; }
.nav a { text-decoration:none; color:var(--muted); padding:6px 10px; border-radius:8px; font-size:15px; }
.nav a.on, .nav a:hover { background:var(--accent-soft); color:var(--ink); }
.menu-btn { display:none; background:none; border:1px solid var(--line); color:var(--ink); border-radius:8px; padding:6px 12px; font-size:15px; }
@media (max-width: 640px) {
  .menu-btn { display:block; }
  .nav { display:none; flex-direction:column; }
  body.nav-open .nav { display:flex; }
}
h1 { font-size: 28px; margin: 0 0 8px; line-height:1.2; }
h2 { font-size: 20px; margin: 32px 0 12px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); font-size: 15px; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.crumb { margin: 0 0 8px; font-size: 15px; }
.flash { background: var(--warn-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.flash.ok { background: var(--good-soft); }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); text-align:center; }
.card { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; transition: background .2s; }
.card.prayed { background: var(--good-soft); }
.card-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.who { font-weight:700; font-size:18px; color:var(--ink); text-decoration:none; }
.who:hover { text-decoration: underline; }
.nature { margin: 6px 0; white-space: pre-wrap; }
.nature.big { font-size: 19px; }
.meta { color: var(--muted); font-size: 14px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.tag-private { background: var(--accent-soft); }
.tag-leader { background: var(--warn-soft); }
.tag-public { background: var(--good-soft); }
.actions { display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; align-items:center; }
.actions form { margin: 0; }
.btn { display:inline-block; background: var(--accent); color: var(--accent-ink); border:0; border-radius: 8px;
  padding: 10px 16px; font-size: 16px; text-decoration:none; cursor:pointer; font-family: inherit; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.quiet { background: transparent; color: var(--ink); border:1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.pray-check { display:inline-flex; align-items:center; gap:8px; background:transparent; border:1px solid var(--line);
  border-radius:8px; padding:7px 12px; font-size:15px; color:var(--ink); cursor:pointer; font-family:inherit; }
.pray-check .box { width:20px; height:20px; border:2px solid var(--muted); border-radius:5px; display:inline-block; position:relative; }
.pray-check.done { border-color: var(--good); color: var(--good); font-weight:600; }
.pray-check.done .box { background: var(--good); border-color: var(--good); }
.pray-check.done .box::after { content:""; position:absolute; left:5px; top:1px; width:5px; height:10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.answered, .answer { background: var(--good-soft); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.facts { display:grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin:0; }
.comment { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; margin-bottom: 16px; }
.comment p { margin: 4px 0; white-space: pre-wrap; }
.comment summary { color: var(--muted); font-size: 14px; cursor: pointer; }
.form label { display:flex; flex-direction:column; gap:4px; font-size:15px; color: var(--muted); }
.form label.check { flex-direction:row; align-items:flex-start; gap:8px; color: var(--ink); }
.stack { display:flex; flex-direction:column; gap:14px; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.row .grow { flex: 1 1 200px; }
.row .narrow { flex: 0 0 110px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border:1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; flex: none; }
textarea { resize: vertical; }
fieldset { border:1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 16px; display:flex; flex-direction:column; gap:10px; }
legend { font-weight:600; padding: 0 6px; }
.narrow-page { max-width: 480px; }
.filter { margin-bottom: 16px; }
.filter label { display:flex; gap:8px; align-items:center; }
.filter select, .filter input { width:auto; }
.plain-list { list-style:none; padding:0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tabs { display:flex; gap:6px; margin-bottom: 12px; }
.tabs a { text-decoration:none; padding:6px 12px; border-radius:8px; color: var(--muted); }
.tabs a.on { background: var(--accent-soft); color: var(--ink); }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); font-size: 15px; }
th, td { text-align:left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
pre { white-space: pre-wrap; font-size: 14px; }
code { background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
.group-row { margin-bottom: 10px; }
.praise .answer::before { content: "Praise: "; font-weight: 600; }

.show-pw { display: inline-block; width: auto; align-self: flex-start; margin: 4px 0 8px; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 0.85em; }

.site-menu { display: flex; justify-content: center; gap: 28px; padding: 12px 16px; background: #f4f4f7; border-bottom: 1px solid #ddd; flex-wrap: wrap; }
.site-menu a { font-weight: 600; color: #0734B1; text-decoration: none; }
.site-menu a:hover { text-decoration: underline; }
.site-menu a[aria-current] { color: #222; }
