/* ───────────────────────────────────────────────────────────
   Cana — calm prayer app. Design tokens + components.
   Type: Fraunces (headline serif) + Hanken Grotesk (humanist body)
   ─────────────────────────────────────────────────────────── */

:root {
  /* warm paper / cream surfaces */
  --paper:        oklch(0.972 0.013 80);
  --paper-edge:   oklch(0.948 0.015 78);
  --card:         oklch(0.993 0.005 85);
  --card-personal:oklch(0.966 0.026 62);  /* warmer, more intimate */
  --card-personal-edge: oklch(0.90 0.04 60);

  /* warm near-black ink */
  --ink:    oklch(0.285 0.022 52);
  --ink-2:  oklch(0.47 0.018 56);
  --ink-3:  oklch(0.62 0.014 64);
  --ink-4:  oklch(0.74 0.010 72);

  /* hairlines */
  --line:        oklch(0.905 0.012 75);
  --line-strong: oklch(0.855 0.015 72);

  /* warm neutral inset surface (replaces the old sage tint blocks) */
  --shell:    oklch(0.955 0.013 76);
  --shell-2:  oklch(0.925 0.016 74);

  /* amber — action / light */
  --amber:       oklch(0.745 0.110 70);
  --amber-2:     oklch(0.700 0.120 66);
  --amber-deep:  oklch(0.520 0.110 56);
  --amber-tint:  oklch(0.950 0.038 80);
  --amber-tint-2:oklch(0.905 0.058 76);

  --shadow-soft: 0 1px 2px oklch(0.4 0.03 60 / 0.04), 0 8px 24px oklch(0.4 0.03 60 / 0.05);
  --shadow-lift: 0 2px 6px oklch(0.4 0.03 60 / 0.06), 0 14px 36px oklch(0.4 0.03 60 / 0.09);

  --ff-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-sans:  "Hanken Grotesk", -apple-system, system-ui, sans-serif;
}

/* ── scope reset ───────────────────────────────────────────── */
.cana, .cana * { box-sizing: border-box; margin: 0; padding: 0; }
.cana {
  height: 100%;
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cana button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── scroll region ─────────────────────────────────────────── */
.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

/* ── top header (clears status bar) ────────────────────────── */
.hdr { padding: 64px 22px 8px; }
.hdr-eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4);
  display: flex; align-items: center; gap: 8px;
}
.hdr-eyebrow .wordmark { color: var(--ink-2); font-weight: 700; letter-spacing: 0.18em; }
.greet {
  font-family: var(--ff-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 29px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 14px;
  text-wrap: pretty;
}
.greet .stakes { color: var(--amber-deep); font-style: italic; }

/* ── encouragement banner (answered stats) ─────────────────── */
.encourage {
  margin: 20px 22px 2px; padding: 16px 0 18px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.encourage .e-kicker {
  display: block; margin-bottom: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-4);
}
.encourage .e-body { font-family: var(--ff-serif); font-size: 16.5px; line-height: 1.42; color: var(--ink); text-wrap: pretty; }
.encourage .e-body b { font-weight: 500; color: var(--amber-deep); }

/* ── section labels ────────────────────────────────────────── */
.section-label {
  display: flex; align-items: center; gap: 9px;
  padding: 0 22px; margin: 26px 0 12px;
}
.section-label .t {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.section-label .rule { height: 1px; background: var(--line); flex: 1; }
.section-label.personal .t { color: var(--amber-deep); }

/* ── cards ─────────────────────────────────────────────────── */
.feed { padding: 0 18px 8px; display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  text-align: left; width: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:active { transform: scale(0.988); }

/* personal (one-to-one) — warmer & more prominent */
.card.personal {
  background: var(--card-personal);
  border-color: var(--card-personal-edge);
  box-shadow: var(--shadow-lift);
  padding: 20px;
}

.card-top { display: flex; align-items: center; gap: 11px; }
.card-meta { flex: 1; min-width: 0; }
.card-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.card-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); flex-shrink: 0; }

.card-body {
  font-size: 15.5px; line-height: 1.5; color: var(--ink); margin-top: 13px;
  text-wrap: pretty;
}
.card.personal .card-body { font-family: var(--ff-serif); font-weight: 400; font-size: 17px; line-height: 1.42; }

.askedyou {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--amber-deep);
}

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-2); background: var(--paper-edge);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.chip .ic { opacity: 0.7; }
.cat-chip { color: var(--ink-2); background: transparent; border-color: var(--line-strong); }

/* ── praying row ───────────────────────────────────────────── */
.praying-row { display: flex; align-items: center; gap: 11px; margin-top: 15px; }
.face-stack { display: flex; flex-shrink: 0; }
.face-stack .av { margin-left: -9px; box-shadow: 0 0 0 2.5px var(--card); }
.card.personal .face-stack .av { box-shadow: 0 0 0 2.5px var(--card-personal); }
.face-stack .av:first-child { margin-left: 0; }
.praying-text { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.praying-text b { color: var(--ink); font-weight: 600; }

/* ── avatars ───────────────────────────────────────────────── */
.av {
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-sans); font-weight: 600; color: #fff;
  overflow: hidden; position: relative;
}
.av.ph { /* photo placeholder */
  background-image: repeating-linear-gradient(135deg, oklch(0.88 0.02 70) 0 6px, oklch(0.84 0.02 70) 6px 12px);
  color: var(--ink-3);
}
.av .ph-tag { font-size: 7px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── prayer button (the heart of the app) ──────────────────── */
.pray {
  margin-top: 16px; width: 100%;
  height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  border: 1.5px solid var(--amber);
  background-color: transparent; color: var(--amber-deep);
  transition: color .4s ease, border-color .4s ease, box-shadow .45s ease, transform .12s ease;
  position: relative; overflow: hidden;
}
.pray .spark { width: 16px; height: 16px; transition: transform .45s ease; }
.pray:active { transform: scale(0.985); }
.pray.joined {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  box-shadow: 0 0 0 5px var(--amber-tint), 0 10px 26px oklch(0.74 0.11 70 / 0.32);
}
.pray.joined .spark { transform: rotate(45deg) scale(1.05); }
/* warm bloom on join */
.pray.bloom::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, oklch(0.96 0.06 82 / 0.9), transparent 70%);
  animation: bloom .7s ease-out;
}
@keyframes bloom {
  0% { opacity: 0; transform: scale(0.4); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ── answered card (quiet joy) ─────────────────────────────── */
.card.answered {
  background:
    radial-gradient(120% 80% at 0% 0%, var(--amber-tint) 0%, transparent 55%),
    var(--card);
  border-color: var(--amber-tint-2);
}
.answered-flag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--amber-deep);
}
.answered-flag .ray { width: 15px; height: 15px; }
.answered-headline {
  font-family: var(--ff-serif); font-size: 19px; line-height: 1.28;
  color: var(--ink); margin-top: 10px; text-wrap: pretty;
}
.answered-note { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 9px; }
.answered-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }

/* pinned flag */
.pinned-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}

/* ── bottom nav ────────────────────────────────────────────── */
.nav {
  flex-shrink: 0; position: relative; z-index: 20;
  background: oklch(0.99 0.008 82 / 0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line);
  padding: 9px 8px 30px;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink-4); font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  padding-top: 7px;
}
.nav-ic { display: flex; transition: color .18s ease; }
.nav-lbl { line-height: 1; }
.nav-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; transition: background .18s ease; }
.nav-item.active { color: var(--ink); }
.nav-item.active .nav-ic { color: var(--ink); }
.nav-item.active .nav-dot { background: var(--amber); }
.nav-add {
  flex: 1; display: flex; justify-content: center; align-items: flex-start;
}
.nav-add button {
  width: 48px; height: 48px; border-radius: 50%; margin-top: -3px;
  background: var(--amber); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px oklch(0.74 0.11 70 / 0.30);
  transition: transform .14s ease;
}
.nav-add button:active { transform: scale(0.93); }

/* ── compose ───────────────────────────────────────────────── */
.compose-bar {
  flex-shrink: 0; padding: 60px 18px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.compose-bar .cancel { font-size: 15px; color: var(--ink-3); font-weight: 500; padding: 6px 4px; }
.compose-bar .share {
  font-size: 14.5px; font-weight: 600; color: var(--paper); background-color: var(--ink);
  padding: 9px 18px; border-radius: 999px; transition: opacity .2s, background-color .2s;
}
.compose-bar .share:disabled { background-color: var(--paper-edge); color: var(--ink-4); cursor: default; }
.compose-prompt {
  font-family: var(--ff-serif); font-size: 23px; color: var(--ink-3);
  padding: 6px 24px 0; line-height: 1.3;
}
.compose-area {
  width: 100%; min-height: 160px; resize: none; border: none; outline: none;
  background: transparent; padding: 14px 24px 20px;
  font-family: var(--ff-serif); font-size: 21px; line-height: 1.45; color: var(--ink);
}
.compose-area::placeholder { color: var(--ink-4); }
.compose-section { padding: 18px 24px; border-top: 1px solid var(--line); }
.compose-section h4 {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 13px; display: flex; align-items: center; gap: 7px;
}
.compose-section h4 .opt { color: var(--ink-4); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  background-color: var(--card); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.cat-pick.on { color: var(--ink); background-color: var(--shell); border-color: var(--ink-3); font-weight: 600; }

.aud-row { display: flex; flex-direction: column; gap: 9px; }
.aud {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background-color: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px;
}
.aud.on { border-color: var(--ink-3); background-color: var(--shell); }
.aud-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--paper-edge); color: var(--ink-2); }
.aud.on .aud-ic { background: var(--card); }
.aud-txt { flex: 1; min-width: 0; }
.aud-txt .at { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.aud-txt .as { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.aud-check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.aud.on .aud-check { border-color: var(--ink); background: var(--ink); }
.aud.private.on { border-color: var(--amber); background-color: var(--amber-tint); }
.aud.private.on .aud-ic { background: var(--card); color: var(--amber-deep); }
.aud.private.on .aud-check { border-color: var(--amber); background: var(--amber); }
.aud-or { display: flex; align-items: center; gap: 12px; margin: 5px 2px 1px; }
.aud-or span { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.aud-or::before, .aud-or::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.compose-foot { padding: 16px 24px 30px; display: flex; align-items: flex-start; gap: 9px; }
.compose-foot .lk { color: var(--ink-4); flex-shrink: 0; margin-top: 1px; }
.compose-foot p { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* ── detail ────────────────────────────────────────────────── */
.detail-bar {
  flex-shrink: 0; padding: 58px 16px 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: oklch(0.99 0.008 82 / 0.7); border: 1px solid var(--line); color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.detail-body { padding: 8px 24px 0; }
.detail-top { display: flex; align-items: center; gap: 12px; }
.detail-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.detail-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.detail-request {
  font-family: var(--ff-serif); font-weight: 400; font-size: 23px; line-height: 1.42;
  color: var(--ink); margin-top: 22px; text-wrap: pretty;
}
.detail-cats { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.praying-panel {
  margin: 24px 24px 0; padding: 18px;
  background: var(--shell); border: 1px solid var(--shell-2); border-radius: 20px;
}
.praying-panel .pp-head { display: flex; align-items: center; justify-content: space-between; }
.praying-panel .pp-count { font-family: var(--ff-serif); font-size: 18px; color: var(--ink); }
.praying-panel .pp-faces { display: flex; flex-wrap: wrap; gap: 0; margin-top: 14px; }
.praying-panel .pp-faces .av { margin-left: -8px; box-shadow: 0 0 0 2.5px var(--shell); margin-bottom: 4px; }
.praying-panel .pp-faces .av:first-child { margin-left: 0; }
.pp-more { font-size: 13px; color: var(--ink-3); font-weight: 600; align-self: center; margin-left: 10px; }

.detail-action { padding: 22px 24px 4px; }

/* mark answered (own request) */
.own-banner {
  margin: 20px 24px 0; padding: 14px 16px;
  border: 1px dashed var(--amber); border-radius: 16px;
  background: var(--amber-tint);
  display: flex; align-items: center; gap: 12px;
}
.own-banner .ob-txt { flex: 1; }
.own-banner .ob-txt .obt { font-size: 14px; font-weight: 600; color: var(--ink); }
.own-banner .ob-txt .obs { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.own-banner .ob-btn { font-size: 13px; font-weight: 600; color: var(--amber-deep); background: var(--card); border:1px solid var(--amber); padding: 9px 14px; border-radius: 999px; white-space: nowrap; }

/* encouragement notes */
.notes { padding: 26px 24px 0; }
.notes-head { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.note { display: flex; gap: 11px; margin-bottom: 18px; }
.note-body { flex: 1; }
.note-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 11px 14px; }
.note-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.note-text { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.note-time { font-size: 11.5px; color: var(--ink-4); margin: 5px 0 0 4px; }

.note-composer {
  flex-shrink: 0; border-top: 1px solid var(--line);
  background: oklch(0.985 0.01 82 / 0.9); backdrop-filter: blur(12px);
  padding: 12px 18px 30px; display: flex; align-items: center; gap: 10px;
}
.note-input {
  flex: 1; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); padding: 0 18px; font-family: var(--ff-sans); font-size: 14.5px; color: var(--ink); outline: none;
}
.note-input::placeholder { color: var(--ink-4); }
.note-send { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display:flex; align-items:center; justify-content:center; flex-shrink: 0; }

/* toast */
.toast {
  position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 500;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 40;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* answered overlay celebration */
.answered-confirm {
  position: absolute; inset: 0; z-index: 60;
  background: oklch(0.97 0.013 80 / 0.96); backdrop-filter: blur(4px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.answered-confirm.show { opacity: 1; pointer-events: auto; }
.answered-confirm .sun {
  width: 88px; height: 88px; border-radius: 50%; background: var(--amber-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  box-shadow: 0 0 0 14px var(--amber-tint), 0 0 0 28px oklch(0.95 0.038 80 / 0.5);
}
.answered-confirm h3 { font-family: var(--ff-serif); font-size: 26px; color: var(--ink); line-height: 1.25; margin-bottom: 10px; }
.answered-confirm p { font-size: 15px; color: var(--ink-2); line-height: 1.5; max-width: 280px; }
.answered-confirm .ac-btn { margin-top: 28px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 999px; }
.answered-confirm.show .sun { animation: sunrise .6s ease-out both; }
@keyframes sunrise { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

/* screen transitions */
.screen-wrap { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.enter-up { animation: enterUp .34s cubic-bezier(.22,.61,.36,1) both; }
.enter-right { animation: enterRight .3s cubic-bezier(.22,.61,.36,1) both; }
@keyframes enterUp { from { transform: translateY(22px); } to { transform: translateY(0); } }
@keyframes enterRight { from { transform: translateX(20px); } to { transform: translateX(0); } }

/* ── My Prayers ────────────────────────────────────────────── */
.mine-list { padding: 0 18px; display: flex; flex-direction: column; gap: 10px; }
.mine-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 15px 16px; box-shadow: var(--shadow-soft);
  text-align: left; width: 100%; display: flex; gap: 12px; align-items: flex-start;
  transition: transform .18s ease;
}
.mine-card:active { transform: scale(0.986); }
.mc-body { flex: 1; min-width: 0; }
.mc-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mc-excerpt {
  font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-excerpt.serif { font-family: var(--ff-serif); font-size: 16px; line-height: 1.4; color: var(--ink); -webkit-line-clamp: 3; }
.mc-meta { font-size: 12px; color: var(--ink-3); margin-top: 9px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mc-meta b { color: var(--ink-2); font-weight: 600; }
.mc-walking { color: var(--amber-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.mc-only { color: var(--amber-deep); font-weight: 600; }
.mine-card.answered {
  background: radial-gradient(120% 80% at 0% 0%, var(--amber-tint) 0%, transparent 55%), var(--card);
  border-color: var(--amber-tint-2);
}
.mc-lock {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--amber-tint); color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
}

/* ── detail: answered + private states ─────────────────────── */
.detail-answered {
  margin: 20px 24px 0; padding: 16px 18px; border-radius: 18px;
  background: radial-gradient(120% 90% at 0% 0%, var(--amber-tint) 0%, transparent 60%), var(--card);
  border: 1px solid var(--amber-tint-2);
}
.detail-answered .answered-flag { margin-bottom: 9px; }
.detail-answered p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.private-note {
  margin: 26px 24px 0; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 18px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.private-note .pn-ic { color: var(--amber-deep); margin-bottom: 9px; }
.private-note p { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); max-width: 240px; }

/* ── mark as answered ──────────────────────────────────────── */
.answer-hero { padding: 10px 30px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.answer-sun {
  width: 66px; height: 66px; border-radius: 50%; margin-bottom: 16px;
  background: var(--amber-tint); color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px var(--amber-tint), 0 0 0 20px oklch(0.95 0.038 80 / 0.45);
}
.answer-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-deep); margin-bottom: 8px;
}
.answer-h { font-family: var(--ff-serif); font-size: 28px; color: var(--ink); line-height: 1.15; }
.answer-lede { font-size: 14px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; max-width: 270px; text-wrap: pretty; }

.answer-original {
  margin: 24px 24px 4px; padding: 14px 16px;
  background: var(--shell); border: 1px solid var(--shell-2); border-radius: 14px;
}
.answer-original .ao-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 6px;
}
.answer-original .ao-body {
  font-size: 14px; line-height: 1.45; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.answer-form { padding: 6px 24px 0; }
.answer-title {
  width: 100%; border: none; outline: none; background: transparent;
  font-family: var(--ff-serif); font-size: 24px; line-height: 1.25; color: var(--ink);
  padding: 14px 0 12px; border-bottom: 1px solid var(--line);
}
.answer-title::placeholder { color: var(--ink-4); }
.answer-msg {
  width: 100%; min-height: 130px; resize: none; border: none; outline: none; background: transparent;
  font-family: var(--ff-serif); font-size: 18px; line-height: 1.5; color: var(--ink);
  padding: 16px 0 8px;
}
.answer-msg::placeholder { color: var(--ink-4); }

/* ── lay it down (close a prayer) ──────────────────────────── */
.lay-glyph {
  width: 66px; height: 66px; border-radius: 50%; margin-bottom: 16px;
  background: var(--shell); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px var(--shell), 0 0 0 20px oklch(0.92 0.012 76 / 0.5);
}
.answer-eyebrow.muted { color: var(--ink-4); }
.lay-note {
  width: 100%; min-height: 84px; resize: none; border: none; outline: none; background: transparent;
  font-family: var(--ff-serif); font-size: 17px; line-height: 1.5; color: var(--ink); padding: 2px 0;
}
.lay-note::placeholder { color: var(--ink-4); }
.lay-note-quiet { padding: 16px 24px 0; display: flex; gap: 9px; align-items: flex-start; }
.lay-note-quiet .lk { color: var(--ink-4); flex-shrink: 0; margin-top: 1px; }
.lay-note-quiet p { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.lay-actions { padding: 22px 24px 0; }
.lay-btn {
  width: 100%; height: 50px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600;
  transition: transform .12s ease;
}
.lay-btn:active { transform: scale(0.985); }
.remove-row { padding: 16px 24px 28px; text-align: center; }
.remove-btn { font-size: 13px; color: var(--ink-4); font-weight: 500; }
.remove-confirm { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.remove-confirm p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.remove-confirm-row { display: flex; gap: 10px; }
.rc-cancel { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--shell); border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px; }
.rc-go { font-size: 13.5px; font-weight: 600; color: var(--paper); background: oklch(0.52 0.13 28); padding: 9px 18px; border-radius: 999px; }

/* detail: rest banner + quiet lay-down link */
.own-banner.rest { border-style: solid; border-color: var(--line-strong); background: var(--shell); }
.own-banner.rest .ob-btn { color: var(--ink-2); border-color: var(--line-strong); }
.lay-link {
  display: block; width: 100%; text-align: center; padding: 16px 24px 4px;
  font-size: 13.5px; color: var(--ink-3);
}
.lay-link span { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* my prayers: at-rest card */
.mc-rest {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--shell); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.mine-card.rest { background: var(--paper); box-shadow: none; }
.mc-rest-label { color: var(--ink-3); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* ── circles index ─────────────────────────────────────────── */
.circle-actions { padding: 16px 22px 4px; display: flex; gap: 10px; }
.ca-primary {
  flex: 1; height: 48px; border-radius: 14px; background: var(--ink); color: var(--paper);
  font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; transition: transform .12s ease;
}
.ca-primary:active { transform: scale(0.985); }
.ca-secondary {
  flex: 1; height: 48px; border-radius: 14px; background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.circle-list { padding: 0 18px; display: flex; flex-direction: column; gap: 12px; }
.circle-card {
  width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 17px 18px; box-shadow: var(--shadow-soft); transition: transform .16s ease;
}
.circle-card:active { transform: scale(0.987); }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-title { font-family: var(--ff-serif); font-size: 19px; color: var(--ink); line-height: 1.2; }
.cc-role { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-deep); white-space: nowrap; }
.cc-meta { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.cc-priv { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.cc-people { display: flex; align-items: center; gap: 10px; }
.cc-count { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.cc-active { font-size: 12.5px; color: var(--amber-deep); font-weight: 600; }

/* discover */
.discover-card {
  display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; padding: 15px 16px;
}
.dc-body { flex: 1; min-width: 0; }
.dc-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.dc-blurb { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.dc-meta { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.dc-join { flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--shell); border: 1px solid var(--line-strong); padding: 9px 16px; border-radius: 999px; }
.dc-join.done { color: var(--ink-4); background: transparent; border-style: dashed; }

/* ── circle detail ─────────────────────────────────────────── */
.circle-hero { padding: 8px 24px 0; }
.ch-title { font-family: var(--ff-serif); font-size: 28px; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
.ch-meta { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.ch-blurb { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 13px; text-wrap: pretty; }
.ch-actions { display: flex; gap: 10px; margin-top: 18px; }
.ch-invite { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--paper); background: var(--ink); padding: 11px 18px; border-radius: 999px; white-space: nowrap; }
.ch-share { font-size: 14px; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); padding: 11px 18px; border-radius: 999px; }

.circle-tabs { display: flex; gap: 24px; padding: 22px 24px 0; border-bottom: 1px solid var(--line); margin: 22px 0 8px; }
.ct { font-size: 14px; font-weight: 600; color: var(--ink-4); padding-bottom: 12px; position: relative; display: flex; align-items: center; gap: 7px; }
.ct.on { color: var(--ink); }
.ct.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.ct-n { font-size: 12px; font-weight: 600; color: var(--ink-4); background: var(--shell); padding: 1px 7px; border-radius: 999px; }
.ct.on .ct-n { color: var(--ink-2); }

.circle-empty { padding: 24px 6px; font-size: 14px; color: var(--ink-3); line-height: 1.5; text-align: center; }

/* members */
.member-list { padding: 4px 24px 0; display: flex; flex-direction: column; }
.member-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.member-row:last-of-type { border-bottom: none; }
.member-txt { flex: 1; min-width: 0; }
.member-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.member-role { font-size: 12.5px; color: var(--amber-deep); margin-top: 1px; font-weight: 500; }
.member-pray { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--shell); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.member-more { width: 100%; text-align: center; padding: 16px 0 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }

.leave-row { padding: 22px 24px 4px; text-align: center; }
.leave-btn { font-size: 13.5px; color: oklch(0.52 0.10 28); font-weight: 500; }

/* ── create circle ─────────────────────────────────────────── */
.privacy-opt {
  display: flex; align-items: flex-start; gap: 13px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; margin-bottom: 9px;
}
.privacy-opt.on { border-color: var(--ink-3); background: var(--shell); }
.po-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--paper-edge); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.privacy-opt.on .po-ic { background: var(--card); color: var(--ink); }
.po-txt { flex: 1; min-width: 0; }
.po-t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.po-s { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); margin-top: 2px; }
.po-radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.privacy-opt.on .po-radio { border-color: var(--ink); }
.privacy-opt.on .po-radio span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.privacy-note { display: flex; align-items: flex-start; gap: 13px; background: var(--shell); border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; }
.privacy-note .po-ic { background: var(--card); color: var(--ink); }

/* invite step */
.invite-lede { padding: 6px 24px 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.invite-code { margin: 18px 24px 0; padding: 15px 16px; background: var(--shell); border: 1px solid var(--shell-2); border-radius: 16px; }
.ic-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 9px; }
.ic-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ic-code { font-family: var(--ff-sans); font-size: 17px; font-weight: 700; letter-spacing: 0.03em; color: var(--ink); white-space: nowrap; }
.ic-copy { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--paper); background: var(--ink); padding: 9px 15px; border-radius: 999px; }
.invite-people { display: flex; flex-wrap: wrap; gap: 9px; }
.invite-person { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; }
.invite-person.on { border-color: var(--ink-3); background: var(--shell); }
.ip-name { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.ip-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.invite-person.on .ip-check { background: var(--ink); border-color: var(--ink); }

/* join */
.join-hero { padding: 14px 30px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.join-code-wrap { padding: 24px 24px 0; }
.join-code { width: 100%; text-align: center; border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; background: var(--card);
  font-family: var(--ff-sans); font-size: 22px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink); outline: none; }
.join-code::placeholder { color: var(--ink-4); letter-spacing: 0.1em; }
.join-note { padding: 16px 32px 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); text-align: center; }

/* ── segmented toggle (circles / friends) ──────────────────── */
.seg { margin: 14px 22px 4px; display: flex; gap: 4px; background: var(--shell); border: 1px solid var(--line); border-radius: 13px; padding: 4px; }
.seg-btn { flex: 1; height: 36px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-3); transition: color .15s ease; }
.seg-btn.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px oklch(0.4 0.03 60 / 0.08); }

/* ── friends ───────────────────────────────────────────────── */
.friend-list { padding: 0 22px; display: flex; flex-direction: column; }
.friend-row {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 12px 0; border-bottom: 1px solid var(--line); background: transparent;
}
.friend-row:last-child { border-bottom: none; }
.friend-txt { flex: 1; min-width: 0; }
.friend-name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.friend-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-chevron { color: var(--ink-4); flex-shrink: 0; }
.friend-add { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--paper); background: var(--ink); padding: 8px 16px; border-radius: 999px; }
.friend-add.done { color: var(--ink-4); background: transparent; border: 1px dashed var(--line-strong); }
.req-actions { display: flex; gap: 8px; flex-shrink: 0; }
.req-ignore { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--shell); border: 1px solid var(--line); padding: 8px 13px; border-radius: 999px; }
.req-accept { font-size: 13px; font-weight: 600; color: var(--paper); background: var(--amber); padding: 8px 15px; border-radius: 999px; }
.friend-row.request { border-bottom: none; background: var(--amber-tint); border: 1px solid var(--amber-tint-2); border-radius: 16px; padding: 13px 14px; margin-bottom: 9px; }

/* friend profile */
.friend-hero { padding: 10px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fh-name { font-family: var(--ff-serif); font-size: 26px; color: var(--ink); margin-top: 14px; line-height: 1.15; }
.fh-sub { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; white-space: nowrap; }
.fh-circles { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; max-width: 90%; }

/* add-friend search */
.friend-search {
  margin: 16px 22px 0; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 0 14px; height: 48px;
}
.friend-search .fs-ic { color: var(--ink-4); display: flex; flex-shrink: 0; }
.fs-input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--ff-sans); font-size: 15px; color: var(--ink); }
.fs-input::placeholder { color: var(--ink-4); }
.fs-clear { color: var(--ink-4); display: flex; flex-shrink: 0; padding: 4px; }
.search-code { display: flex; align-items: center; gap: 13px; background: var(--shell); border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; }
.sc-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--card); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-txt { flex: 1; min-width: 0; }
.sc-t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sc-s { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); margin-top: 2px; }

/* person preview */
.mutual-friends { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.preview-circles { padding: 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.preview-locked {
  margin: 26px 24px 0; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 16px;
  display: flex; align-items: center; gap: 13px;
}
.preview-locked .pl-ic { color: var(--ink-4); flex-shrink: 0; }
.preview-locked p { font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* compose: direct friend picker */
.direct-picker { margin-top: 2px; padding: 13px 14px; background: var(--shell); border: 1px solid var(--line); border-radius: 14px; }
.dp-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 11px; }
