/* Created: 2026-10-02
   routes/public/public.css — the public website's one stylesheet.
   The app's look: brand red in light mode, white as the primary in dark (the
   owner's colour rule, 2026-10-01), soft cards, Inter. Mobile first; the
   sidebar and right column arrive on wide screens. Bump CSS_VERSION in
   layout.js on every change. */

:root {
  color-scheme: light dark;
  --accent: #D32F2F;
  --on-accent: #fff;
  --ink: #1a1a1a;
  --muted: #5f6368;
  --page: #f6f5f3;
  --card: #fff;
  --line: rgba(0, 0, 0, .08);
  --tint: rgba(211, 47, 47, .10);
  --bar: rgba(246, 245, 243, .86);
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .05);
  --radius: 16px;
  --tabbar-h: 58px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #fff;
    --on-accent: #111;
    --ink: #f1f1f1;
    --muted: #a8a8a8;
    --page: #0b0b0b;
    --card: #151515;
    --line: rgba(255, 255, 255, .12);
    --tint: rgba(255, 255, 255, .10);
    --bar: rgba(11, 11, 11, .82);
    --shadow: none;
  }
  .card { border: 1px solid var(--line); }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--page);
  color: var(--ink);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
a { color: var(--accent); }
img { max-width: 100%; }
ul { list-style: none; padding: 0; }
.i { flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

/* ── top bar ── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { justify-self: start; display: flex; }
.brand img { border-radius: 8px; display: block; }
.top-center { min-width: 0; }
.top-title { display: block; font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.top .pill { justify-self: end; }
/* The app bar's segmented control (SegmentedControlColors): track = primary
   at 20%, thumb = surface at 50%, selected label = primary. */
.appbar-seg { display: flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.appbar-seg .seg { padding: 7px 18px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.appbar-seg .seg.on { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (max-width: 360px) { .appbar-seg .seg { padding: 7px 12px; } }
/* The app's tab icons, coloured by the tab: the PNG is the mask. */
.ti { display: block; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.pill { background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

/* ── page columns ── */
.shell { max-width: 1240px; margin: 0 auto; padding: 12px 12px 32px; }
.content { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.side, .rail { display: none; }

/* ── bottom tab bar (phones) ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bar);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; }
.tab.on { color: var(--accent); }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .shell { display: grid; grid-template-columns: 76px minmax(0, 640px); justify-content: center; gap: 20px; padding: 20px 20px 40px; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; align-self: start; }
  .side-link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; text-align: center; }
  .side-link:hover { background: var(--tint); }
  .side-link.on { color: var(--accent); }
}
@media (min-width: 1100px) {
  .shell { grid-template-columns: 220px minmax(0, 640px) 300px; }
  .side-link { flex-direction: row; gap: 14px; padding: 12px 16px; font-size: 17px; text-align: left; }
  .side-link .i { width: 26px; height: 26px; }
  .rail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 76px; align-self: start; }
}

/* ── cards ── */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 11px 18px; border-radius: 12px;
}
.button.ghost { background: transparent; color: var(--accent); }
.button[hidden] { display: none; }
.promo { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.promo img { border-radius: 14px; }
.promo h2 { margin: 0; }
.promo p { color: var(--muted); font-size: 15px; }
.promo .button { width: 100%; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--accent); }
.chip.answered { background: rgba(46, 125, 50, .14); color: #2E7D32; }
@media (prefers-color-scheme: dark) { .chip.answered { color: #81C784; } }

.avatar { position: relative; border-radius: 50%; flex: none; background: var(--line); overflow: hidden; }
.avatar.initial { display: inline-grid; place-items: center; font-weight: 700; color: var(--muted); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── the prayer ── */
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.byline > div { flex: 1; min-width: 0; }
.byline strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byline small { display: block; color: var(--muted); font-size: 13px; }
.prayer h1 { font-size: clamp(22px, 5vw, 28px); line-height: 1.2; font-weight: 800; margin-bottom: 8px; overflow-wrap: anywhere; }
.prayer .text { font-size: 17px; overflow-wrap: anywhere; }
.on-bg {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  min-height: 300px; padding: 28px 22px; border-radius: 12px; text-align: center;
  background-size: cover; background-position: center; color: #fff;
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .28);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.on-bg h1 { color: #fff; margin: 0; }
.on-bg p { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.photos { display: grid; gap: 4px; margin-top: 12px; border-radius: 12px; overflow: hidden; }
.photos img { display: block; width: 100%; height: auto; object-fit: cover; }
.photos.n2, .photos.n4 { grid-template-columns: 1fr 1fr; }
.photos.n3 { grid-template-columns: 2fr 1fr; }
.photos.n2 img, .photos.n3 img, .photos.n4 img { aspect-ratio: 1; height: 100%; }
.photos.n3 img:first-child { grid-row: span 2; }
.testimony { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(46, 125, 50, .10); }
.testimony p { margin-top: 4px; }
.counts { display: flex; gap: 18px; margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.counts span { display: inline-flex; align-items: center; gap: 6px; }
.actions { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.actions .button { flex: 1; white-space: nowrap; padding: 11px 10px; font-size: 15px; }
.open-app { display: block; text-align: center; margin-top: 12px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ── comments ── */
.comments li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comments li > div { min-width: 0; }
.comments li small { color: var(--muted); font-size: 13px; }
.comments li p { margin-top: 2px; overflow-wrap: anywhere; }
.comments .more { display: block; margin: 12px 0 0; font-weight: 600; text-decoration: none; }
.comments .button { width: 100%; margin-top: 14px; }

/* ── related ── */
.related a { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; }
.related img, .related .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--tint); display: grid; place-items: center; color: var(--accent); }
.related span:last-child { min-width: 0; }
.related strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; }
.related small { color: var(--muted); font-size: 13px; }

/* ── footer ── */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 8px 16px 28px; font-size: 14px; }
.foot a { color: var(--muted); text-decoration: none; }

/* ── home feed ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.composer { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); }
.composer .avatar { color: var(--accent); background: var(--tint); }
.fake-input { flex: 1; padding: 10px 14px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); font-size: 15px; }
.segments { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.seg { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.seg.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.feed-note { color: var(--muted); font-size: 13px; font-weight: 600; margin: -4px 4px 0; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.post .byline { margin-bottom: 10px; }
.post-link { display: block; color: inherit; text-decoration: none; }
.post h2 { font-size: 19px; line-height: 1.25; font-weight: 800; margin-bottom: 4px; overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.on-bg.short { min-height: 220px; }
.on-bg.short h2 { color: #fff; }
.on-bg .clamp { -webkit-line-clamp: 5; }
.post-img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 12px; margin-top: 10px; }
.post-bar { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.post-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.post-bar a:hover { background: var(--tint); }
.post-bar .read { margin-left: auto; color: var(--accent); }
.more-btn { width: 100%; }
.votd small { display: block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.votd blockquote { margin: 8px 0 6px; font-size: 17px; line-height: 1.5; font-family: Georgia, "Times New Roman", serif; }
.votd cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: 14px; }
@media (min-width: 1100px) { .inline-only { display: none; } }
@media (max-width: 380px) { .hide-sm { display: none; } }

/* ── church page (blocks drawn by routes/church-page.js renderSection) ── */
.church { --accent: var(--c-light); --on-accent: var(--on-light); --tint: color-mix(in srgb, var(--accent) 12%, transparent); display: flex; flex-direction: column; gap: 12px; }
@media (prefers-color-scheme: dark) { .church { --accent: var(--c-dark); --on-accent: var(--on-dark); } }
.card.flush { padding: 0; overflow: hidden; }
.ch-hero { height: clamp(180px, 40vw, 300px); background: #222; }
.ch-hero.photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ch-hero.photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.ch-hero.colour { height: clamp(120px, 26vw, 200px); }
.ch-hero.video { height: auto; background: #000; }
.ch-ident { display: flex; align-items: flex-end; gap: 14px; margin-top: -40px; padding: 0 16px; position: relative; }
.ch-ident.below { margin-top: 14px; align-items: center; }
.ch-logo { width: 84px; height: 84px; flex: none; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 34px; font-weight: 800; overflow: hidden; }
.church.rounded .ch-logo { border-radius: 20px; }
.ch-logo img { width: 100%; height: 100%; object-fit: cover; }
.ch-names { min-width: 0; padding-top: 46px; }
.ch-ident.below .ch-names { padding-top: 0; }
.ch-names h1 { font-size: clamp(22px, 5vw, 28px); line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.ch-names p { color: var(--muted); }
.verified { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; vertical-align: 3px; }
.ch-actions { margin: 14px 16px 16px; border-top: 0; padding-top: 0; }
.ch-sections { display: flex; flex-direction: column; gap: 12px; }
.church.flat .card { box-shadow: none; border: 1px solid var(--line); }
.church.glass .card { background: color-mix(in srgb, var(--card) 72%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line); }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.frame video, .frame iframe, .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.church .map { display: block; width: 100%; height: 240px; border: 0; }
.church .directions { display: block; padding: 12px 16px; font-weight: 600; text-decoration: none; }
.church .rows li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.church .tile { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); font-size: 18px; }
.church .rows small, .church .leaders small, .church .services small { display: block; color: var(--muted); font-size: 13px; }
.church .rows strong { display: block; }
.church .leaders li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.church .leaders img, .church .leaders .initial { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); display: grid; place-items: center; font-weight: 700; }
.church .leaders small.accent { color: var(--accent); font-weight: 600; }
.church .services li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.church .services li:last-child { border: 0; }
.church .services .when { width: 92px; flex: none; }
.church .badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--tint); vertical-align: 2px; }
.church .badge[hidden] { display: none; }
.church .wide { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.church .signed { font-style: italic; color: var(--muted); }
.church .card p + p { margin-top: 10px; }
.church .card p + .button { margin-top: 14px; }
.church .ministries { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.church .ministries summary { list-style: none; cursor: pointer; }
.church .ministries summary::-webkit-details-marker { display: none; }
.church .ministries img, .church .ministries .ph { display: block; width: 100%; aspect-ratio: 7 / 6; object-fit: cover; border-radius: 10px; background: var(--line); margin-bottom: 6px; }
.church .ministries details p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.church .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.church .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.church .social { display: flex; flex-wrap: wrap; gap: 10px; }
.church .social a { padding: 9px 16px; border-radius: 999px; background: var(--tint); text-decoration: none; font-weight: 600; }

/* ── sermons ── */
.sermons li + li { border-top: 1px solid var(--line); }
.sermons a { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink); text-decoration: none; }
.s-thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--tint); color: var(--accent); display: grid; place-items: center; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; }
.s-len, .s-live { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; font-weight: 700; }
.s-live { background: #E53935; left: 6px; right: auto; }
.live-note .s-live { position: static; margin-right: 6px; }
.s-text { min-width: 0; }
.s-text strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.3; }
.s-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.sermon-body { padding: 16px; }
.sermon h1 { font-size: clamp(21px, 5vw, 26px); line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.sermon .part { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.sermon .facts { color: var(--muted); font-size: 14px; margin-top: 4px; }
.people { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.person { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.person small { display: block; color: var(--muted); font-size: 12px; }
.person strong { display: block; font-weight: 700; }
.scriptures { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sermon .desc { margin-top: 14px; overflow-wrap: anywhere; }

/* ── sort chips (Newest / Most prayed-for) ── */
.sort-chips { display: flex; gap: 8px; }
.sort-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.sort-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ── sermons list ── */
.sermon-card > a { display: block; color: var(--ink); text-decoration: none; }
.sermon-card .frame > img { object-fit: cover; }
.no-thumb { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2b2b2b, #111); }
.sc-body { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px 14px; }

/* ── profile ── */
.cover { height: clamp(120px, 30vw, 200px); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #000), var(--accent)); background-size: cover; background-position: center; }
.profile-id { display: flex; align-items: flex-end; gap: 14px; margin-top: -46px; padding: 0 16px; }
.profile-id .avatar { border: 3px solid var(--card); box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
.profile-names { min-width: 0; padding-bottom: 4px; }
.profile-names h1 { font-size: clamp(21px, 5vw, 26px); line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.profile-names p { color: var(--muted); }
.bio { padding: 12px 16px 0; overflow-wrap: anywhere; }
.profile-counts { padding: 0 16px; }
.profile-counts strong { color: var(--ink); }
.feed-heading { font-size: 19px; font-weight: 800; margin: 6px 4px -2px; }

/* ── reels ── */
.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.reel-grid a { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #111; }
.reel-grid img { width: 100%; height: 100%; object-fit: cover; }
.reel-frame { position: relative; width: 100%; max-height: 78vh; aspect-ratio: 9 / 16; margin: 0 auto; background: #000; }
.reel-frame video, .reel-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (min-width: 760px) { .reel-frame { width: auto; height: 78vh; } }
.reel .byline { color: var(--ink); text-decoration: none; }
.reel h1 { font-size: 21px; line-height: 1.25; font-weight: 800; }

/* ── events ── */
.poster { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.event h1 { font-size: clamp(22px, 5vw, 28px); line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.chip.past { display: inline-block; margin-top: 8px; }
.ev-rows { margin-top: 12px; }
.ev-rows li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.ev-rows small { display: block; color: var(--muted); font-size: 13px; }
.tile { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); font-size: 18px; }
.ev-church { margin-top: 12px; }
.event .map { display: block; width: 100%; height: 240px; border: 0; }
.events li + li { border-top: 1px solid var(--line); }
.events a { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink); text-decoration: none; }
.ev-date { flex: none; width: 52px; height: 56px; border-radius: 12px; background: var(--tint); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--accent); }
.ev-date small { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ev-date strong { font-size: 21px; line-height: 1; font-weight: 800; }
.who { color: inherit; text-decoration: none; }

/* ── Bible ── */
.bible-top h1, .reader h1 { font-size: clamp(22px, 5vw, 28px); font-weight: 800; line-height: 1.2; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: inherit; }
.ver-pick select { font: inherit; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--page); color: var(--ink); max-width: 100%; }
.bible-top .ver-pick { display: block; margin-top: 12px; }
.ver-note { font-size: 13px; margin-top: 10px; }
.ver-note.center { text-align: center; padding: 0 16px; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; }
.books a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; margin-top: 14px; }
.chapters a { display: grid; place-items: center; height: 48px; border-radius: 10px; background: var(--tint); color: var(--ink); text-decoration: none; font-weight: 700; }
.reader { padding: 18px 18px 22px; }
.reader-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.scripture { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.75; margin-top: 10px; }
.scripture p { margin-top: 10px; }
.scripture h2.section { font-family: Inter, -apple-system, sans-serif; font-size: 15px; font-weight: 800; margin: 22px 0 0; color: var(--muted); }
.vn { font-family: Inter, -apple-system, sans-serif; font-size: 11px; font-weight: 700; vertical-align: super; line-height: 0; margin: 0 3px 0 2px; color: var(--accent); text-decoration: none; }
.verse { scroll-margin-top: 90px; border-radius: 4px; }
.verse:target { background: color-mix(in srgb, #FFD54F 45%, transparent); }
.chapter-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.chapter-nav .button { font-size: 14px; padding: 9px 14px; }
.copyright { margin-top: 18px; font-size: 12px; color: var(--muted); }
.verse-card blockquote { font-size: 21px; }
.verse-card sup { font-family: Inter, sans-serif; font-size: 11px; color: var(--accent); margin-right: 2px; }
.verse-card .actions { border-top: 0; }

/* ── search ── */
.top-end { justify-self: end; display: flex; align-items: center; gap: 2px; }
.search-box { display: flex; gap: 8px; }
.search-box input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); color: var(--ink); }
.verse-hit { display: block; text-decoration: none; color: var(--ink); }
.verse-hit small { display: block; color: var(--accent); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.verse-hit strong { font-size: 19px; }
@media (max-width: 380px) { .top-end .icon-btn { width: 34px; } }

/* ── information pages (About, Terms, …): their content, drawn by the old
   site's pc-page.css, fitted into a card in the new layout ── */
.info { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (prefers-color-scheme: dark) { .info { border: 1px solid var(--line); } }
.info .doc-hero, .info .hero { padding: 32px 20px 28px; }
.info .doc, .info main { max-width: none; padding: 22px 20px 30px; }
.info .doc-hero h1 { font-size: clamp(24px, 6vw, 32px); }
.info img { max-width: 100%; height: auto; }
.info section { max-width: 100%; }

/* ── sign-in card (My Feed, My Groups) ── */
.signin-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 30px 20px; }
.signin-card h1 { font-size: 22px; font-weight: 800; }
.signin-card .button { width: 100%; max-width: 320px; }
.signin-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--accent); }
.center { text-align: center; }

/* ── Feeds ── */
.feed-post .byline { color: var(--ink); text-decoration: none; }
.post-video { border-radius: 12px; overflow: hidden; margin-top: 10px; }
.share-link { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 10px; }
.copied { color: var(--accent) !important; }
.strip ul { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; }
.strip li { flex: none; width: 76px; }
.strip a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; text-align: center; }
.strip a > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.strip .avatar { border: 2px solid var(--card); box-shadow: 0 0 0 2px var(--line); }
.strip .s-live { top: 46px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); }
.nearby-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.church-list li + li { border-top: 1px solid var(--line); }
.church-list a { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink); text-decoration: none; }

/* ── Groups ── */
.groups { display: flex; flex-direction: column; gap: 12px; }
.group-card { display: flex; gap: 14px; align-items: flex-start; }
.group-card p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.group-card .button { margin-top: 10px; padding: 8px 14px; font-size: 14px; }

/* ── the Reels tab: full-screen, swipe up ── */
.reels { height: calc(100dvh - 58px - var(--tabbar-h) - env(safe-area-inset-bottom) - env(safe-area-inset-top) - 24px); overflow-y: auto; scroll-snap-type: y mandatory; border-radius: var(--radius); background: #000; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .reels { height: calc(100dvh - 100px); width: min(100%, calc((100dvh - 100px) * 9 / 16)); margin: 0 auto; } }
.reel-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; color: #fff; }
.reel-slide video, .reel-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel-slide::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); pointer-events: none; }
.reel-info { position: absolute; left: 14px; right: 76px; bottom: 16px; z-index: 2; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.reel-by { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.reel-title { font-weight: 800; margin-top: 8px; }
.reel-text { font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-rail { position: absolute; right: 10px; bottom: 18px; z-index: 2; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.reel-rail a, .reel-rail button { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.reel-rail span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 22px; }
.reel-rail small { font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.reel-sound { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .4); color: #fff; font-size: 16px; cursor: pointer; }
.reel-more { height: 1px; }

/* A three-way switch (Feeds | My Feed | Nearby) needs the whole bar on a
   phone: the logo steps aside, as the app's bar has no logo either. */
.top.has-seg { grid-template-columns: auto 1fr auto; }
.top.has-seg .top-center { display: flex; justify-content: center; min-width: 0; }
.appbar-seg { max-width: 100%; }
.appbar-seg .seg { padding: 7px 14px; }
@media (max-width: 480px) {
  .top.has-seg .brand { display: none; }
  .top.has-seg { grid-template-columns: 1fr auto; gap: 6px; }
  .top.has-seg .top-center { justify-content: center; }
  .appbar-seg .seg { padding: 7px 11px; font-size: 13px; }
}

/* ── the menu (the app's side drawer, signed-out) ── */
.menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--accent); cursor: pointer; justify-self: start; }
.top > .brand { display: none; }
.top { grid-template-columns: auto 1fr auto; }
.top .top-center { display: flex; justify-content: center; }
@media (min-width: 760px) { .menu-btn { display: none; } .top > .brand { display: flex; } }
@media (max-width: 480px) { .top.has-seg .menu-btn { width: 34px; } .top.has-seg { grid-template-columns: auto 1fr auto; } }
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .35); }
.drawer { position: fixed; z-index: 41; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 0 40px rgba(0, 0, 0, .25); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; animation: drawer-in .22s ease-out; }
.drawer[hidden], .drawer-scrim[hidden] { display: none; }
@keyframes drawer-in { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer-head img { border-radius: 14px; margin-bottom: 6px; }
.drawer-head strong { font-size: 18px; font-weight: 800; }
.drawer-head small { color: var(--muted); }
.drawer-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.drawer-links, .side-more { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 16px 4px 0; font-size: 14px; }
.drawer-links a, .side-more a { color: var(--muted); text-decoration: none; }
.side-more { display: none; margin-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 1100px) { .side-more { display: flex; } }
.starts { color: var(--muted); font-size: 11px; font-weight: 600; }

/* ── signed in ── */
.me { display: flex; border-radius: 50%; }
.me .avatar { box-shadow: 0 0 0 2px var(--accent); }
.drawer-me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; color: var(--ink); text-decoration: none; }
.drawer-me strong { display: block; font-weight: 800; }
.drawer-me small { color: var(--muted); }
.drawer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.drawer-grid a { display: grid; place-items: center; text-align: center; min-height: 58px; padding: 8px 4px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.drawer form { margin: 0; }
.drawer-row.signout { width: 100%; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }

/* ── prayer buttons (PrayerBottomCard: Pray, Amen, comments) ── */
.act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.act:hover { background: var(--tint); }
.act.on { color: var(--accent); }
.act.on .i { fill: color-mix(in srgb, var(--accent) 25%, transparent); }
.post-bar form { margin: 0; display: inline-flex; }
.prayer-bar { margin-top: 14px; }
.prayer-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prayer-menu form { margin: 0; }
.chip-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-btn.danger { color: #C62828; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.comment-form textarea, .new-prayer input, .new-prayer textarea, .new-prayer select, .signin-page input { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); color: var(--ink); width: 100%; }
.comment-form .button { align-self: flex-end; }

/* ── the post box, opened ── */
.composer-open { padding: 0; }
.composer-open > summary { list-style: none; cursor: pointer; padding: 16px; }
.composer-open > summary::-webkit-details-marker { display: none; }
.composer-open[open] > summary { padding-bottom: 6px; }
.new-prayer { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.np-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; font-weight: 600; }
.np-row select { width: auto; margin-left: 6px; }
.np-anon { display: flex; align-items: center; gap: 6px; }
.np-anon input { width: auto; }
.np-bgs { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.np-bgs legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.np-bgs label { position: relative; cursor: pointer; }
.np-bgs input { position: absolute; opacity: 0; }
.np-bgs img, .np-none { display: grid; place-items: center; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; background: var(--page); font-size: 12px; color: var(--muted); }
.np-bgs input:checked + * { border-color: var(--accent); }
.np-bgs input:focus-visible + * { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.new-prayer .button { align-self: flex-end; }

/* ── sign-in page ── */
.signin-page { max-width: 440px; margin: 8px auto; text-align: center; padding: 26px 22px; }
.signin-page img { border-radius: 16px; }
.signin-page h1 { font-size: 22px; font-weight: 800; margin: 12px 0 4px; }
.signin-page .step { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.signin-page .step[hidden] { display: none; }
.signin-page .step > h1, .signin-page .step > p { text-align: center; }
.signin-page label { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.signin-page .otp { font-size: 22px; letter-spacing: .35em; text-align: center; }
.signin-page .err { color: #C62828; background: rgba(198, 40, 40, .08); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.signin-page .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.signin-page .or::before, .signin-page .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.signin-page .linkish { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 6px; }
.signin-page .small { font-size: 14px; margin-top: 16px; }
.button.busy { opacity: .6; pointer-events: none; }
.signin-page .step .button { width: 100%; }
.me, .me:hover { text-decoration: none; }

/* ── stories rail (stories.dart: ring 92 / avatar 85; unseen gradient, seen grey) ── */
.stories ul { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.stories ul::-webkit-scrollbar { display: none; }
.stories li { position: relative; flex: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 82px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 600; }
.story-item > span:last-child { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.ring .avatar { border: 3px solid var(--page); }
.ring.seen { background: color-mix(in srgb, var(--muted) 40%, transparent); }
.ring.none { background: none; }
.ring .plus, .story-add { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 2px solid var(--page); font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none; }
.story-add { top: 56px; right: 6px; bottom: auto; }
.votd-card img { width: 64px; height: 78px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 2px #E0B44C; }

/* ── story viewer (story_viewer.dart) ── */
.story-viewer { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; }
.story-viewer[hidden] { display: none; }
.sv-frame { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; }
.sv-img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-select: none; touch-action: none; }
.sv-bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.sv-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .24); overflow: hidden; }
.sv-bars i { display: block; height: 100%; background: #fff; width: 0; }
.sv-head { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 12px; right: 8px; display: flex; align-items: center; justify-content: space-between; z-index: 2; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.sv-who { color: #fff; font-weight: 700; text-decoration: none; }
.sv-actions { display: flex; gap: 4px; align-items: center; }
.sv-actions form { margin: 0; }
.sv-actions button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .3); color: #fff; font-size: 18px; cursor: pointer; }
.sv-pray { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2; }

/* ── add to your story ── */
.new-story { display: flex; flex-direction: column; gap: 12px; }
.new-story h1 { font-size: 20px; font-weight: 800; }
.ns-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); align-self: center; }
.ns-tabs button { padding: 7px 22px; border-radius: 999px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.ns-tabs button[aria-selected="true"] { background: var(--card); color: var(--accent); }
#ns-canvas { width: min(100%, 300px); aspect-ratio: 9 / 16; height: auto; align-self: center; border-radius: 16px; box-shadow: var(--shadow); background: #000; }
.ns-panel[hidden] { display: none; }
.ns-panel textarea { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); color: var(--ink); width: 100%; }
.ns-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px; margin-top: 10px; }
.sw { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); background-size: cover; background-position: center; cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px var(--accent); }
.ns-pick { display: flex; justify-content: center; cursor: pointer; }
.new-story .err { color: #C62828; background: rgba(198, 40, 40, .08); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.new-story .err[hidden] { display: none; }

/* ── edit profile ── */
.edit-profile { display: flex; flex-direction: column; gap: 12px; }
.edit-profile label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.edit-profile input, .edit-profile textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); }
.ep-photo { align-items: center; cursor: pointer; }
.edit-profile .err { color: #C62828; background: rgba(198, 40, 40, .08); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.edit-profile .err[hidden] { display: none; }
.profile form { margin: 0; flex: 1; display: flex; }
.profile form .button { flex: 1; }

/* ── Nearby: the app's full map (near_by.dart) ── */
.nearby { position: relative; height: calc(100dvh - 58px - var(--tabbar-h) - env(safe-area-inset-bottom) - env(safe-area-inset-top) - 24px); border-radius: var(--radius); overflow: hidden; background: var(--card); }
@media (min-width: 760px) { .nearby { height: calc(100dvh - 100px); } }
.nb-map { position: absolute; inset: 0; z-index: 0; }
.nb-pill { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 8px 16px; border-radius: 20px; background: rgba(20, 20, 20, .8); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nb-controls { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.nb-controls button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(20, 20, 20, .8); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.nb-controls #nb-me { margin-top: 16px; }
.nb-cards { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5; display: flex; gap: 10px; overflow-x: auto; padding: 0 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nb-cards li { position: relative; flex: none; width: 280px; scroll-snap-align: center; }
.nb-card { display: flex; gap: 10px; align-items: center; width: 100%; height: 104px; padding: 10px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 4px 16px rgba(0, 0, 0, .18); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.nb-card img, .nb-ph { flex: none; width: 84px; height: 84px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--tint); font-size: 30px; }
.nb-card strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.nb-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 12px; }
.nb-open { position: absolute; right: 12px; bottom: 10px; font-size: 13px; font-weight: 700; text-decoration: none; }
.nb-empty { padding: 14px 16px; border-radius: 14px; background: var(--card); color: var(--muted); }
.nb-pop-link { color: inherit; text-decoration: none; }
.nb-pop { padding: 8px 12px; background: var(--card); color: var(--ink); border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }

/* ── the greeting card (stories.dart: 185 wide, verse-card height, cover + dark wash) ── */
.greet-item { width: 185px; }
.greet-card { position: relative; display: flex; flex-direction: column; gap: 6px; width: 185px; height: 78px; padding: 8px 10px; border-radius: 14px; overflow: hidden; text-align: left; color: #fff; background: var(--accent) center / cover; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.greet-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0, 0, 0, .54), rgba(0, 0, 0, .87)); }
.greet-card > * { position: relative; }
.greet-hi { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.greet-glyph { color: rgba(255, 255, 255, .7); font-size: 12px; }
.greet-msg { font-size: 11px; font-weight: 400; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.greet-item > span:last-child { max-width: 185px; }

/* The app's rail sizes (StoryRailMetrics): verse and greeting cards 116 tall
   (verse 86 wide, greeting 185), rings 92; names lined up along the bottom. */
.stories ul { align-items: flex-end; }
.greet-card { height: 116px; padding: 10px 11px; gap: 7px; }
.greet-hi { font-size: 14px; }
.greet-msg { font-size: 12.5px; -webkit-line-clamp: 5; }
.votd-card img { width: 86px; height: 116px; }
.ring { width: 92px; height: 92px; }
.story-item { width: 96px; }
.story-item > span:last-child { max-width: 96px; }
.story-add { top: 66px; right: 4px; }
.story-item.greet-item { width: 185px; }
.story-item.greet-item > span:last-child { max-width: 185px; }
.greet-card { flex: none; }

/* ── the collage (prayer_image_collage.dart), 2px gaps ── */
.collage { display: grid; gap: 2px; margin-top: 10px; border-radius: 12px; overflow: hidden; background: var(--line); }
.collage .ct { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage.c1 { grid-template-columns: 1fr; max-height: 640px; }
.collage.c2 { grid-template-columns: 1fr 1fr; aspect-ratio: 1 / .62; }
.collage.c3 { aspect-ratio: 1 / .68; }
.collage.c3-left { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.c3-left .ct:first-child { grid-row: 1 / 3; }
.collage.c3-top { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
.collage.c3-top .ct:first-child { grid-column: 1 / 3; }
.collage.c4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / .85; }
.collage.c5 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / .9; }
.ct-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; font-size: 26px; font-weight: 800; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .95); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-x { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-p { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-nx { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-n { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); color: #fff; font-size: 14px; font-weight: 600; }

/* ── church page tabs (About Us / Posts / Our Events) and the follow heart ── */
.ch-tabs { margin: 0 16px 16px; align-self: center; width: fit-content; max-width: calc(100% - 32px); overflow-x: auto; }
.church .ch-head { display: flex; flex-direction: column; }
.ch-actions form { margin: 0; flex: 1; display: flex; }
.ch-actions form .button { flex: 1; }
.act.heart.on { color: #E53935; }

/* ── photos on a new prayer (up to 4) ── */
.np-photos { display: flex; flex-direction: column; gap: 8px; }
.np-add { align-self: flex-start; cursor: pointer; }
.np-add small { color: var(--muted); font-weight: 500; }
.np-add[hidden] { display: none; }
.np-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.np-thumbs:empty { display: none; }
.np-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.np-thumb img { width: 100%; height: 100%; object-fit: cover; }
.np-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; cursor: pointer; }
.np-bgs:disabled { opacity: .4; }
.new-prayer .err { color: #C62828; background: rgba(198, 40, 40, .08); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.new-prayer .err[hidden] { display: none; }

/* ── reels: the rail's heart, and the way to the Creator app ── */
.reel-rail form { margin: 0; }
.rail-like, .rail-static { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; background: none; border: 0; font: inherit; cursor: pointer; }
.rail-like.on span { color: #FF5A5F; }
.creator-link { display: block; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; text-align: center; font-size: 15px; box-shadow: var(--shadow); }

/* ── a group: its head, the Bulletin chat ── */
.group-head .profile-id { padding-bottom: 14px; }
.bulletin { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 90px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { background: var(--card); border-radius: 16px 16px 16px 4px; padding: 8px 12px; box-shadow: var(--shadow); min-width: 0; overflow-wrap: anywhere; }
.msg.mine .msg-bubble { background: var(--accent); color: var(--on-accent); border-radius: 16px 16px 4px 16px; }
.msg-bubble p { margin: 0; }
.msg-bubble .collage { margin-top: 4px; min-width: 200px; }
.msg-who { display: block; font-size: 12px; font-weight: 700; color: var(--accent); }
.msg-time { display: block; font-size: 11px; opacity: .65; margin-top: 2px; text-align: right; }
.shared-card { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.shared-card small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.chat-box { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 15; display: flex; gap: 8px; padding: 8px 12px; background: var(--bar); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.chat-box textarea { flex: 1; font: inherit; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); resize: none; }
@media (min-width: 760px) { .chat-box { position: sticky; bottom: 0; border-radius: 16px; } }
.profile-id .profile-names { padding-top: 50px; }

/* ── scripture references in people's words, and the verse pop-up ── */
.bref { display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.on-bg .bref { color: #fff; }
.tag { color: var(--accent); text-decoration: none; font-weight: 600; }
.verse-pop { position: fixed; z-index: 80; max-height: 60vh; display: flex; flex-direction: column; border-radius: 18px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); border: 1px solid var(--line); overflow: hidden; }
.vp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px 8px; font-weight: 700; }
.vp-size { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.vp-size button { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.vp-body { padding: 0 14px 10px; overflow-y: auto; font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
.vp-body sup { font-family: Inter, sans-serif; font-size: .6em; color: var(--accent); margin-right: 2px; }
.vp-ver { display: block; margin-top: 6px; font-family: Inter, sans-serif; font-size: 12px; color: var(--muted); }
.vp-read { align-self: flex-end; padding: 10px 14px 12px; font-weight: 700; text-decoration: none; }

/* ── the "…" menu on cards (prayerBasePopupMenu) ── */
.card-menu { position: relative; margin-left: auto; }
.card-menu > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; color: var(--muted); }
.card-menu > summary::-webkit-details-marker { display: none; }
.card-menu[open] > summary, .card-menu > summary:hover { background: var(--tint); }
.menu-list { position: absolute; right: 0; top: 40px; z-index: 30; min-width: 210px; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--card) 94%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.menu-list form { margin: 0; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--tint); }
.menu-list .danger { color: #C62828; }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.byline .who-face { display: flex; flex: none; }
.answered-banner { margin: -4px 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(46, 125, 50, .12); color: #2E7D32; font-weight: 700; }
@media (prefers-color-scheme: dark) { .answered-banner { color: #81C784; } }
/* report page */
.report-form fieldset { border: 0; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.report-form legend { font-weight: 700; margin-bottom: 6px; }
.rep-cat { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.rep-cat small { display: block; color: var(--muted); font-size: 13px; }
.rep-reasons { display: flex; flex-direction: column; gap: 6px; padding: 4px 4px 4px 34px; }
.rep-reasons[hidden] { display: none; }
.rep-desc { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.rep-desc textarea { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); color: var(--ink); }
.notice { border-left: 4px solid #2E7D32; font-weight: 600; }

/* ── prayer comment card (prayer_comment_card.dart) ── */
.pcomment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pc-body { flex: 1; min-width: 0; }
.pc-head { display: flex; align-items: center; gap: 6px; }
.pc-head small { color: var(--muted); font-size: 13px; }
.pc-head .card-menu summary { width: 30px; height: 30px; font-size: 16px; }
.pc-text { margin-top: 2px; overflow-wrap: anywhere; }
.pc-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.pc-edit[hidden] { display: none; }
.pc-edit textarea { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--page); color: var(--ink); }
.pc-edit .button { align-self: flex-end; padding: 6px 14px; font-size: 14px; }
.pc-actions { display: flex; align-items: center; gap: 2px; margin-top: 4px; flex-wrap: wrap; }
.pc-actions form { margin: 0; }
.cact { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.cact.on { color: var(--accent); }
.cact:hover { background: var(--tint); }
.react-pick { position: relative; }
.react-pick > summary::-webkit-details-marker { display: none; }
.react-list { position: absolute; bottom: 32px; left: 0; z-index: 20; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--card); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.react-list form { margin: 0; }
.react-btn { border: 0; background: none; font-size: 22px; padding: 2px 4px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chips form { margin: 0; }
.rchip { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 13px; cursor: pointer; }
.rchip.on { border-color: var(--accent); background: var(--tint); }
.pc-replies { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; text-decoration: none; }
.replies { padding-bottom: 12px; }
.pstats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 13px; color: var(--muted); }
.pstats strong { color: var(--ink); font-size: 15px; }
.js-translate { margin-top: 8px; }

/* ── the sermon viewer (SermonViewerPage) ── */
.sermon-slide iframe.yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.sv-top { position: absolute; top: 12px; left: 12px; right: 60px; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-church { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.sv-series { padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.sv-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center; padding: 20px; }
.sv-empty span { opacity: .7; }
.rail-scrip, .rail-tray { position: relative; }
.rail-scrip > summary, .rail-tray > summary { list-style: none; cursor: pointer; }
.rail-scrip > summary::-webkit-details-marker, .rail-tray > summary::-webkit-details-marker { display: none; }
.rail-scrip > summary span, .rail-tray > summary span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 22px; color: #fff; }
.rail-tray[open] > summary span { transform: rotate(45deg); }
.tray-list { position: absolute; bottom: 54px; right: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.tray-list form { margin: 0; }
.scrip-list { position: absolute; right: 54px; bottom: 0; width: 220px; max-height: 50vh; overflow-y: auto; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 6px; }
.scrip-list .bref, .scrip-list span { color: #fff; text-align: left; font-size: 14px; }
.scriptures .bref.chip { text-decoration: none; border: 0; }
.greet-streak { margin-top: auto; font-size: 11px; font-weight: 700; opacity: .9; }

/* ── the app's action sheet (Anonymous / Post as … / Cancel) ── */
.action-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.as-box { width: min(100%, 480px); display: flex; flex-direction: column; gap: 8px; }
.as-box button { padding: 16px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--card) 94%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--accent); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.as-box .as-cancel { font-weight: 800; margin-top: 4px; }
.ref-picker { margin-top: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.ref-picker input { width: 100%; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--page); color: var(--ink); }
.ref-picker input.bad { border-color: #C62828; }
.ref-picker ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ref-picker li button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--page); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.ref-picker p { margin-top: 6px; }

/* ── story extras ── */
.story-add-menu { position: absolute; top: 66px; right: 4px; }
.story-add-menu > summary { list-style: none; position: static; }
.story-add-menu > summary::-webkit-details-marker { display: none; }
.story-add-menu .menu-list { top: 30px; left: 0; right: auto; }
.sv-bottom { position: absolute; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sv-bottom form { margin: 0; }
.sv-reflect, .sv-repost button { padding: 8px 16px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-weight: 700; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sv-reflect[hidden], .sv-repost[hidden] { display: none; }
.sv-reflection { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(0, 0, 0, .6); padding: 20px; }
.sv-reflection[hidden] { display: none; }
.sv-ref-box { max-width: 420px; max-height: 70vh; overflow-y: auto; padding: 20px; border-radius: 18px; background: var(--card); color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.sv-ref-box p { white-space: pre-wrap; }
.pending-stories li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pending-stories img, .pending-stories .ph { width: 64px; height: 112px; border-radius: 10px; object-fit: cover; background: var(--tint); flex: none; }
.ps-actions { display: flex; gap: 8px; margin-top: 8px; }
.ps-actions form { margin: 0; }
.ps-actions .button { padding: 7px 14px; font-size: 14px; }
.ns-opts input[type="datetime-local"] { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--page); color: var(--ink); }
.ns-opts input[hidden] { display: none; }
.as-box a { display: block; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--card) 94%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--accent); font-size: 17px; font-weight: 600; text-align: center; text-decoration: none; }
button.story-add { position: absolute; top: 66px; right: 4px; padding: 0; cursor: pointer; }

/* ── share sheet (share_draw.dart) ── */
.share-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-block > summary { cursor: pointer; list-style: none; padding: 2px 0; }
.share-block > summary::-webkit-details-marker { display: none; }
.share-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.share-form textarea { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--page); color: var(--ink); }
.share-form .button { align-self: flex-end; }
.pick-list { max-height: 320px; overflow-y: auto; }
.pick-list label { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.praying-strip { display: flex; align-items: center; margin-top: 10px; }
.praying-strip img, .praying-strip span { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); margin-left: -8px; background: var(--line); }
.praying-strip img:first-child, .praying-strip span:first-child { margin-left: 0; }
.praying-strip small { margin-left: 8px; color: var(--muted); font-weight: 600; }
.hidden-note { margin: -4px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ── church page ⋯ tray (feed_detail_tray_panel.dart) ── */
.tray-btn { flex: 0 0 auto !important; padding: 11px 16px; font-size: 18px; line-height: 1; }
.ch-tray { display: flex; flex-direction: column; gap: 12px; }
.tray-head { position: relative; display: flex; flex-direction: column; padding-right: 40px; }
.tray-head small { color: var(--muted); }
.tray-x { position: absolute; top: 0; right: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--ink); text-decoration: none; }
.tray-tabs { align-self: flex-start; overflow-x: auto; max-width: 100%; }
.tray-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.tray-row small { display: block; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--ink) 20%, transparent); cursor: pointer; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .15s; }
.switch.on { background: #34C759; }
.switch.on::after { left: 23px; }
.tray-about { color: var(--muted); }
.tray-h { font-size: 15px; font-weight: 800; margin: 6px 0 0; }
.ch-tray .rows li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.ch-tray .rows small, .ch-tray .leaders small { display: block; color: var(--muted); font-size: 13px; }
.ch-tray .leaders li { padding: 4px 0; }
.admin-rows { display: flex; flex-direction: column; gap: 6px; }
.admin-rows form { margin: 0; }
.admin-row { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; }
.admin-row small { display: block; color: var(--muted); font-size: 13px; }
.admin-row.danger strong { color: #C62828; }

/* ── New Post / Post Drafts ── */
.fp-photo { position: relative; }
.fp-photo[hidden] { display: none; }
.fp-photo img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; display: block; }
.fp-photo .cact { position: absolute; top: 8px; right: 8px; }
.fp-pick { align-self: flex-start; cursor: pointer; }
.fp-actions { display: flex; gap: 10px; justify-content: flex-end; }
.new-prayer .fp-actions .button { align-self: auto; }
.draft-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.draft-list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.draft-list a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.draft-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-list form { margin: 0; }
.ev-dates { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-dates label { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ef-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); flex: none; }
.ev-dates .ef-field { flex: 1 1 180px; }
.new-prayer .ef-pic .fp-pick, .new-prayer .fp-pick { align-self: flex-start; }
.ef-pics { display: flex; gap: 12px; flex-wrap: wrap; }
.ef-pic { flex: 1 1 140px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.ef-pic img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.ef-pic[data-kind=logo] img { width: 120px; border-radius: 50%; }
.ef-pic img[hidden] { display: none; }
.ef-field input { font-size: 16px; }

/* ── Manage Images ── */
.mi { display: flex; flex-direction: column; gap: 10px; }
.mi form { margin: 0; }
.mi-logo { display: flex; align-items: center; gap: 14px; }
.mi-logo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.mi-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.mi-grid li { position: relative; border-radius: 12px; overflow: hidden; background: var(--tint); }
.mi-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mi-badge { position: absolute; top: 8px; left: 8px; background: #C62828; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mi-acts { display: flex; gap: 6px; padding: 8px; flex-wrap: wrap; }
.fp-pick.busy { opacity: .5; pointer-events: none; }

/* ── Manage members ── */
.mm { display: flex; flex-direction: column; gap: 10px; }
.mm form { margin: 0; }
.mm .new-prayer { padding: 0; }
.mm-ok { color: #2E7D32; background: rgba(46, 125, 50, .1); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0; }
.mm > .err { color: #C62828; background: rgba(198, 40, 40, .08); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0; }
.mm-role { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mm-role label { display: flex; gap: 6px; align-items: center; }
.mm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mm-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.mm-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--tint); flex: none; }
.mm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mm-name small { color: var(--muted); font-size: 12px; }

/* ── Customize page ── */
.ce { display: flex; flex-direction: column; gap: 10px; }
.ce input:not([type=radio]):not([type=checkbox]):not([type=color]), .ce textarea, .ce select { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); color: var(--ink); width: 100%; }
.ce .ef-field { flex: none; }
.ce .ev-dates .ef-field { flex: 1 1 140px; }
.ce-swatches, .ce-radios { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ce-radios label, .ce-check { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.ce-sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.ce-sw.none { background: var(--tint); color: var(--muted); font-size: 13px; }
.ce-sw.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--page) inset; }
.ce input[type=color] { width: 44px; height: 32px; border: 0; background: none; padding: 0; }
.ce-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ce-row > input { flex: 1 1 200px; }
.ce-row .ef-field { flex: 1 1 200px; }
.ce-sections { display: flex; flex-direction: column; gap: 6px; }
.ce-sec { border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ce-sec.off { opacity: .6; }
.ce-sec summary { cursor: pointer; padding: 10px 12px; display: flex; flex-direction: column; list-style: none; }
.ce-sec summary::-webkit-details-marker { display: none; }
.ce-sec summary small { color: var(--muted); font-size: 12px; }
.ce-sec-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ce-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ce-item-acts { display: flex; gap: 6px; }
.ce-photo { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ce-photo img { max-width: 100%; max-height: 180px; border-radius: 10px; }
.ce-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ce-gallery div { display: flex; flex-direction: column; gap: 4px; }
.ce-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ce .err.ok { color: #2E7D32; background: rgba(46, 125, 50, .1); }
.ce-save { position: sticky; bottom: 12px; background: var(--card, var(--page)); padding: 8px 0; }
.an-groups { display: flex; flex-direction: column; gap: 6px; }
.js-sched[hidden] { display: none; }

/* ── Search feeds ── */
.feed-search { margin: 0 0 12px; }
.feed-search input { width: 100%; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, var(--page)); color: var(--ink); }
.fs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fs-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.fs-list li:last-child a { border-bottom: 0; }
.fs-text { display: flex; flex-direction: column; min-width: 0; }
.fs-text small { color: var(--muted); font-size: 13px; }

/* ── Feeds tools + settings ── */
.feed-tools { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.feed-tools .feed-search { flex: 1; margin: 0; }
.ft-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card, var(--page)); color: var(--ink); text-decoration: none; font-size: 18px; }
.st { display: flex; flex-direction: column; gap: 12px; }
.st form { margin: 0; }
.st-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-choice small { display: block; color: var(--muted); font-size: 13px; }
.st-choice .seg { border: 0; font: inherit; cursor: pointer; }
.st-feed { display: flex; align-items: center; gap: 10px; }
.nf-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.nf-type { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.nf-type:has(input:checked) { border-color: var(--accent, #E53935); background: color-mix(in srgb, var(--accent, #E53935) 8%, transparent); }
.nf-type small { display: block; color: var(--muted); font-size: 13px; }
.js-org { display: flex; flex-direction: column; gap: 10px; }
.js-org[hidden] { display: none; }
.new-prayer input[type=radio], .new-prayer input[type=checkbox], .ce input[type=radio], .ce input[type=checkbox] { width: auto; flex: none; margin: 3px 0 0; padding: 0; }
.new-prayer input::placeholder, .new-prayer textarea::placeholder, .ce input::placeholder, .ce textarea::placeholder, .feed-search input::placeholder { color: var(--muted); opacity: .7; }

/* ── Coming Up + SOON ── */
.coming-up .feed-heading { display: flex; align-items: center; gap: 6px; }
.cu-dot { width: 8px; height: 8px; border-radius: 50%; background: #FFC107; }
.cu-count { background: #FFC107; color: #000; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 8px; }
.cu-ring { display: inline-block; border-radius: 50%; padding: 2px; border: 2px solid #FFC107; position: relative; }
.cu-ring::after { content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #FFC107; }
.cu-when { color: #FFB300; font-size: 11px; font-weight: 600; }
.s-soon { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: #FFA000; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 1px 6px; border-radius: 4px; }
.strip .s-soon { top: 46px; }
.as-box .as-title { margin: 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--card) 94%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--muted); font-size: 14px; text-align: center; }
.as-box .as-danger { color: #E53935; }

/* ── Our Events tab ── */
.ev-tab { display: flex; flex-direction: column; gap: 10px; }
.ev-search { width: 100%; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--page); color: var(--ink); }
.ev-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-chips .chip { border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.ev-chips .chip.on { background: var(--ink); color: var(--page); border-color: var(--ink); }
.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-card { position: relative; display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ev-card[hidden] { display: none; }
.ev-card > a { flex: 1; min-width: 0; display: flex; gap: 12px; color: var(--ink); text-decoration: none; }
.ev-poster { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.ev-card .s-text small { display: block; color: var(--muted); font-size: 13px; }
.ev-none[hidden] { display: none; }
.undo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin: 0 0 12px; border-radius: 12px; background: var(--ink); color: var(--page); }
.undo-bar .cact { color: #FFC107; }
.notes-sent .mm-list li { flex-wrap: wrap; }
.notes-sent form { margin: 0; }
.ns-icon { font-size: 20px; }

/* ── Bible book picker ── */
.bp-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.bp-open span { font-size: .6em; color: var(--muted); }
.bp { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.bp[hidden] { display: none; }
body.bp-on { overflow: hidden; }
.bp-panel { width: min(100%, 720px); max-height: 88vh; display: flex; flex-direction: column; background: var(--card, var(--page)); border-radius: 20px 20px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .bp { align-items: center; } .bp-panel { border-radius: 20px; } }
.bp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bp-title { flex: 1; text-align: center; font-size: 17px; }
.bp-back, .bp-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--tint); color: var(--ink); font-size: 16px; cursor: pointer; }
.bp-back[hidden] { visibility: hidden; display: block; }
.bp-tabs { align-self: center; overflow-x: auto; max-width: 100%; margin-bottom: 10px; }
.bp-tabs[hidden] { display: none; }
.bp-tabs .seg { border: 0; font: inherit; cursor: pointer; white-space: nowrap; }
.bp-body { overflow-y: auto; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bp-book { position: relative; text-align: left; border: 0; border-radius: 14px; padding: 12px; min-height: 76px; cursor: pointer; color: #fff; font: inherit; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; background: linear-gradient(135deg, var(--bc), color-mix(in srgb, var(--bc) 70%, #000)); }
.bp-book strong { font-size: 15px; line-height: 1.2; }
.bp-book small { opacity: .85; font-size: 12px; }
.bp-book.cur { outline: 3px solid var(--ink); outline-offset: 2px; }
.bp-badge { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); }
.bp-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.bp-num { display: grid; place-items: center; height: 48px; border-radius: 12px; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--bc) 18%, transparent); }
.bp-num:hover { background: color-mix(in srgb, var(--bc) 32%, transparent); }
.bp-hint { margin: 0 0 10px; }

/* ── Verse tools ── */
.scripture .verse { cursor: pointer; border-radius: 4px; transition: background .15s; }
.scripture .verse.hl-bg { background: var(--hl); color: #111; }
.scripture .verse.hl-text { color: var(--hl-d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scripture .verse.hl-bg { background: var(--hl-d); color: #fff; } :root:not([data-theme="light"]) .scripture .verse.hl-text { color: var(--hl); } }
:root[data-theme="dark"] .scripture .verse.hl-bg { background: var(--hl-d); color: #fff; }
:root[data-theme="dark"] .scripture .verse.hl-text { color: var(--hl); }
.scripture .verse.sel { text-decoration: underline dotted 2px; text-underline-offset: 4px; background-color: color-mix(in srgb, var(--accent, #E53935) 12%, transparent); }
.vm { border: 0; background: none; padding: 0 2px; font-size: .75em; cursor: pointer; vertical-align: super; }
.vt { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 640px); z-index: 80; background: var(--card, var(--page)); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
@media (min-width: 900px) { .vt { bottom: 20px; } }
.vt[hidden] { display: none; }
.vt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vt-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--tint); color: var(--ink); cursor: pointer; }
.vt-acts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.vt-acts button { flex: none; border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.vt-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); cursor: pointer; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vt-sw { background: var(--cd); } }
.vt-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vt-row .seg { border: 0; font: inherit; cursor: pointer; }
.vt-note { display: flex; flex-direction: column; gap: 8px; }
.vt-note input, .vt-note textarea { font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); color: var(--ink); width: 100%; }
.vt-cmp { display: flex; flex-direction: column; gap: 10px; }
.vt-cv p { margin: 2px 0 0; }
.vt-msg { margin: 0; font-size: 14px; color: var(--muted); }
.vt-msg[hidden] { display: none; }

/* ── Bible lists ── */
.bible-tray { margin-left: auto; }
.my-kinds { margin: 0 auto 12px; overflow-x: auto; max-width: 100%; display: flex; }
.my { display: flex; flex-direction: column; gap: 10px; }
.my-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.my-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.my-row[hidden] { display: none; }
.my-sw { width: 10px; align-self: stretch; border-radius: 5px; flex: none; }
.my-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.my-main small { font-weight: 400; color: var(--muted); }
.my-title { font-weight: 600; }
.my-text { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.my-group { list-style: none; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 14px 0 4px; }

/* ── Bible reader settings ── */
.scripture { font-size: var(--bible-size, 20px); }
.bible-no-headings .scripture h2.section { display: none; }
.bs .bp-panel { gap: 14px; max-width: 520px; }
.bs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bs-row small { display: block; color: var(--muted); font-size: 13px; }
.bs-size { flex: 1; max-width: 260px; accent-color: var(--accent, #E53935); }
.bs-sample { margin: 0; padding: 12px; border-radius: 12px; background: var(--tint); line-height: 1.6; }

/* Segmented tabs drawn as <button>s (picker, verse bar, settings): iOS Safari
   paints its own button look over ours and the labels vanished — take it off. */
button.seg { -webkit-appearance: none; appearance: none; border: 0; background: transparent; color: var(--ink); -webkit-text-fill-color: currentColor; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; opacity: 1; }
button.seg.on { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--accent); }
.bp-tabs { flex-wrap: nowrap; }
@media (max-width: 420px) { .bp-tabs button.seg { padding: 7px 10px; font-size: 13px; } }
.bp-tabs .short { display: none; }
@media (max-width: 480px) { .bp-tabs .long { display: none; } .bp-tabs .short { display: inline; } }
/* The panel scrolls its grid, never squashes the header or tabs (iPhone: tabs were crushed on long lists). */
.bp-panel > .bp-top, .bp-panel > .bp-tabs { flex: none; }
.bp-body { flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.bp-grid, .bp-nums { padding: 5px; }
/* Leave room above the panel for Safari's own bars and its app banner, so the title and ✕ never hide under them. */
.bp-panel { max-height: 88vh; max-height: calc(100dvh - 110px); }
@media (min-width: 760px) { .bp-panel { max-height: 88vh; max-height: calc(100dvh - 60px); } }

/* ── Search Scripture ── */
.bible-search-btn { margin-left: auto; text-decoration: none; font-size: 18px; padding: 4px 6px; }
.bible-search-btn + .bible-tray { margin-left: 0; }
.sr { display: flex; flex-direction: column; gap: 10px; }
.sr-form { margin: 0; }
.sr-books { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.sr-books .chip { text-decoration: none; white-space: nowrap; flex: none; border: 1px solid var(--line); color: var(--ink); font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.sr-books .chip.on { background: var(--ink); color: var(--page); border-color: var(--ink); }
.sr-row a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sr-row span { font-family: Georgia, "Times New Roman", serif; line-height: 1.55; }
.sr-row mark { background: color-mix(in srgb, #FFEB3B 55%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
/* iOS Safari's own button look hid button labels — off for the picker's ✕ and ‹. */
.bp-x, .bp-back { -webkit-appearance: none; appearance: none; -webkit-text-fill-color: currentColor; padding: 0; line-height: 34px; text-align: center; }
.vp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vp-tools { font-weight: 600; color: var(--accent); text-decoration: none; }

/* ── Reels: rail ＋ tray, panels, pause, follow ── */
.reel-paused { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 72px; height: 72px; border-radius: 50%; display: none; place-items: center; font-size: 30px; color: #fff; background: rgba(0, 0, 0, .45); pointer-events: auto; cursor: pointer; }
.reel-slide.paused .reel-paused { display: grid; }
.rail-plus { font-size: 26px !important; font-weight: 300; }
.rail-amen.on span { background: rgba(255, 193, 7, .45); }
.reel-tray { position: absolute; right: 10px; bottom: 270px; z-index: 3; display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 30px; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.reel-tray[hidden] { display: none; }
.reel-tray a, .reel-tray button { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.reel-tray span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 20px; }
.reel-tray small { font-size: 11px; font-weight: 700; }
.reel-by-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reel-follow { -webkit-appearance: none; appearance: none; border: 1.5px solid #fff; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.reel-follow.on { background: rgba(255, 255, 255, .22); border-color: transparent; }
.reel-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 62%; display: flex; flex-direction: column; background: var(--card, #151515); color: var(--ink); border-radius: 18px 18px 0 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .4); }
.reel-panel[hidden] { display: none; }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rp-x { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--tint); color: var(--ink); cursor: pointer; }
.rp-body, .reel-scriptures ul { overflow-y: auto; min-height: 0; }
.reel-scriptures ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.reel-scriptures li a { display: block; padding: 10px 12px; border-radius: 12px; background: var(--tint); color: var(--ink); text-decoration: none; font-weight: 600; }
.rp-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rp-list li { display: flex; gap: 8px; }
.rp-list p { margin: 2px 0 0; }
.rp-list small { color: var(--muted); }
.rp-form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: inherit; }
.rp-form textarea { flex: 1; font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--page); color: var(--ink); resize: none; }
/* Reel scripture cards: the verse itself, as the app's panel */
.reel-scriptures li .rs-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--tint); color: var(--ink); text-decoration: none; font-weight: 400; }
.rs-ref { font-weight: 700; }
.rs-ref small { font-weight: 600; color: var(--muted); font-size: 12px; margin-left: 4px; }
.rs-text { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.55; }
.rs-notes { font-size: 14px; color: var(--muted); font-style: italic; }

/* Reel scriptures (the app's): a row of cards along the bottom, hidden off the right; slides in from ＋ → Scripture or a cue; swipe between cards */
.reel-scriptures { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; transform: translateX(105%); transition: transform .3s ease; pointer-events: none; }
.reel-scriptures.open { transform: translateX(0); pointer-events: auto; }
.reel-scriptures ul { list-style: none; margin: 0; padding: 0 12px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel-scriptures ul::-webkit-scrollbar { display: none; }
.reel-scriptures li { flex: 0 0 82%; max-width: 420px; scroll-snap-align: start; }
.reel-scriptures li .rs-card { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 140px; max-height: 180px; overflow-y: auto; padding: 14px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(16, 16, 16, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; text-decoration: none; font-weight: 400; }
.reel-scriptures li.live .rs-card { border-color: rgba(255, 193, 7, .7); }
.rs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rs-ref { font-weight: 800; font-size: 16px; }
.rs-when { color: rgba(255, 255, 255, .55); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel-scriptures .rs-text { font-family: inherit; font-size: 15px; line-height: 1.5; }
.reel-scriptures .rs-notes { color: rgba(255, 255, 255, .7); font-size: 13px; font-style: italic; }
.rs-ver { color: rgba(255, 255, 255, .45); font-size: 11px; font-weight: 700; }
.rs-x { position: absolute; right: 14px; top: -40px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none; }
/* while the cards show, the caption steps aside and the rail moves up above them */
.reel-slide.rs-open .reel-info { opacity: 0; pointer-events: none; }
.reel-slide.rs-open .reel-rail { bottom: 205px; }
.reel-slide.rs-open .reel-tray { display: none; }
.reel-rail, .reel-info { transition: bottom .3s ease, opacity .2s; }
/* Cards side by side, the live one centred, its neighbours peeking in at the edges (the app's carousel) — an older column rule had stacked them. */
.reel-scriptures ul { flex-direction: row !important; flex-wrap: nowrap; align-items: stretch; flex: none; overflow-y: hidden !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 9%; gap: 10px; }
.reel-scriptures li { flex: 0 0 82% !important; scroll-snap-align: center; }
.reel-scriptures li .rs-card { display: flex; }
.rs-x { left: 14px; right: auto; }

/* Reel comments sheet: like / reply / replies / delete */
.rc { display: flex; gap: 8px; }
.rc-body { flex: 1; min-width: 0; }
.rc-acts { display: flex; gap: 14px; margin-top: 4px; }
.rc-acts button, .rc-more { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rc-like.on { color: var(--accent, #E53935); }
.rc-acts .rc-del { color: #C62828; }
.rc-more { margin-top: 6px; color: var(--accent, #E53935); }
.rc-replies { margin: 8px 0 0 4px; padding-left: 10px; border-left: 2px solid var(--line); }
.rc-replies[hidden] { display: none; }
.rp-form { flex-direction: column; align-items: stretch; }
.rp-row { display: flex; gap: 8px; align-items: flex-end; }
.rp-replying { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.rp-replying[hidden] { display: none; }
.rp-cancel { -webkit-appearance: none; appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer; }

/* Reels: caught-up card, menu, My Prayer Reels */
.reel-caughtup { display: grid; place-items: center; background: #0b0b0b; }
.reel-caughtup::after { display: none; }
.cu-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px; max-width: 320px; color: #fff; }
.cu-tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .12); }
.reels-menu { position: relative; z-index: 6; margin: 0 0 8px auto; width: max-content; }
.mr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mr-list li { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mr-thumb { position: relative; flex: none; width: 74px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--tint); }
.mr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mr-badge { position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; }
.mr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mr-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.mr-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.mr-acts form { margin: 0; }
.reel-series { display: inline-block; margin: 6px 0 2px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700; }
.reel-slide.clear .reel-info, .reel-slide.clear .reel-rail, .reel-slide.clear .reel-sound, .reel-slide.clear .reel-tray, .reel-slide.clear .reel-scriptures { opacity: 0; pointer-events: none; }
.reel-showctl { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 6; -webkit-appearance: none; appearance: none; border: 0; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.reel-showctl[hidden] { display: none; }

/* Groups: tray, member grid, danger button */
.group-head .profile-id { position: relative; }
.g-tray-btn { margin-left: auto; align-self: center; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.g-grid a, .g-grid span { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; text-align: center; }
.g-grid small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.danger-btn { background: #C62828 !important; color: #fff !important; border-color: #C62828 !important; }
.mm-list li[hidden] { display: none; }

/* Groups tab: rows, pin, unread dot, suggestions, carousel */
.mg-row { display: flex; align-items: center; }
.mg-row > a { flex: 1; position: relative; }
.mg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, #E53935); margin-left: auto; flex: none; }
.mg-pin { margin: 0 8px 0 0; }
.mg-pin .cact { opacity: .45; }
.mg-pin .cact.on { opacity: 1; }
.mg-empty .big { font-size: 40px; margin: 0; }
.chip-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--muted); vertical-align: middle; }
.sg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sg-list li { display: flex; align-items: center; gap: 8px; }
.sg-list li > a { flex: 1; display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.sg-list form { margin: 0; }
.g-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-carousel::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; background-size: cover; background-position: center; }
.g-session { border-left: 4px solid #E53935; }

/* Bulletin: dividers, quote, reactions, message menu, photos, reply bar */
.msg-day, .msg-new { list-style: none; display: flex; justify-content: center; margin: 10px 0; }
.msg-day span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--tint); padding: 3px 10px; border-radius: 999px; }
.msg-new span { font-size: 12px; font-weight: 800; color: #fff; background: var(--accent, #E53935); padding: 3px 12px; border-radius: 999px; }
.msg { position: relative; }
.msg-quote { border-left: 3px solid var(--accent, #E53935); padding: 2px 8px; margin: 0 0 6px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 13px; display: flex; flex-direction: column; }
.msg-quote small { font-weight: 700; color: var(--muted); }
.msg-reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.msg-reacts .rchip { -webkit-appearance: none; appearance: none; border: 1px solid var(--line); background: var(--card, var(--page)); border-radius: 999px; padding: 1px 7px; font-size: 12px; cursor: pointer; color: var(--ink); }
.msg-reacts .rchip.on { border-color: var(--accent, #E53935); }
.msg-menu { align-self: center; }
.msg-menu > summary { list-style: none; cursor: pointer; padding: 2px 6px; color: var(--muted); border-radius: 50%; opacity: .6; }
.msg-menu > summary::-webkit-details-marker { display: none; }
.msg-menu[open] > .menu-list { position: absolute; z-index: 20; right: 0; top: 100%; min-width: 180px; }
.msg.mine .msg-menu[open] > .menu-list { right: auto; left: 0; }
.react-row { display: flex; gap: 2px; padding: 4px; }
.react-row button { -webkit-appearance: none; appearance: none; border: 0; background: none; font-size: 20px; cursor: pointer; padding: 4px; }
.chat-box { flex-direction: column; align-items: stretch; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-photo { font-size: 22px; cursor: pointer; padding: 6px 2px; }
.chat-thumbs { display: flex; gap: 6px; }
.chat-thumbs[hidden] { display: none; }
.chat-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.chat-reply { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); border-left: 3px solid var(--accent, #E53935); padding: 2px 8px; }
.chat-reply[hidden] { display: none; }
.chat-reply-x { -webkit-appearance: none; appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer; }

/* Reading plan + About */
.plan-chip { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.plan-chip span:nth-child(1) { flex: 1; display: flex; flex-direction: column; }
.plan-chip small { color: var(--muted); font-size: 12px; }
.plan-today { display: flex; flex-direction: column; gap: 8px; }
.plan-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.plan-acts form { margin: 0; }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plan-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan-list li.today { font-weight: 700; }
.plan-list li.done .pl-n { background: #2E7D32; color: #fff; }
.plan-list li small { margin-left: auto; color: var(--accent, #E53935); font-weight: 700; }
.pl-n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tint); font-size: 12px; font-weight: 700; }
.ab-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.ab-tiles div { padding: 10px; border-radius: 12px; background: var(--tint); display: flex; flex-direction: column; }
.ab-tiles small { color: var(--muted); font-size: 12px; }
.msg-sticker { width: 120px; height: 120px; object-fit: contain; display: block; }
a.shared-card { color: inherit; text-decoration: none; }
.reels-bar { margin: 0 0 8px; }
.reels-bar .reels-menu { margin: 0; flex: none; }

/* Profile lives in the menu (as the app), not squeezed beside search in the top bar */
.top-end { gap: 8px; padding-right: 4px; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 8px 12px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.side-me span { display: flex; flex-direction: column; min-width: 0; }
.side-me strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me small { color: var(--muted); font-size: 12px; }
.side-me .avatar { box-shadow: 0 0 0 2px var(--accent); }

/* Verse bar as the app's sheet: action tiles, then the highlight options underneath */
.vt-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; overflow: visible; }
.vt-acts button { flex: initial; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent, #E53935) 35%, var(--line)); font-size: 13px; white-space: normal; }
.vt-acts button span { font-size: 20px; line-height: 1; }
.vt-hl { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.vt-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vt-mode button { -webkit-appearance: none; appearance: none; border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 8px; border-radius: 12px; cursor: pointer; }
.vt-mode button.on { border-color: var(--accent, #E53935); color: var(--accent, #E53935); font-weight: 700; }
.vt-hl .vt-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.vt-hl .vt-sw { width: auto; height: 40px; border-radius: 8px; border: 0; }
.vt.vt-text .vt-sw { background: var(--cd); }
.vt { max-height: 72vh; }

/* ── sermon details panel (sermon_details_panel.dart) + sermon comments ── */
.sd-tabs { margin-bottom: 12px; }
.sd-tabs .seg { border: 0; font: inherit; font-weight: 700; cursor: pointer; -webkit-appearance: none; appearance: none; }
.sd-pane[hidden] { display: none; }
.sd-row { margin: 0 0 8px; }
.sd-h { font-size: 16px; margin: 16px 0 8px; }
.sd-box { padding: 14px 16px; border-radius: 12px; background: var(--page); border: 1px solid var(--line); line-height: 1.6; }
.sd-box.rich p { margin: 0 0 8px; }
.sd-box.rich blockquote { margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.sd-box.rich ul, .sd-box.rich ol { margin: 0 0 8px; padding-left: 22px; }
.chip.tag { color: var(--muted); }
.sd-outline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sd-point { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--page); border: 1px solid var(--line); }
.sd-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.sd-point p { margin: 4px 0 0; }
.sd-point ul { margin: 6px 0 0; padding-left: 18px; }
.sd-scrip { color: var(--accent); font-weight: 600; font-size: 14px; }
.sd-note { font-style: italic; color: var(--muted); font-size: 14px; }
.sd-card { padding: 14px 16px; border-radius: 12px; background: var(--tint); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 12px; }
.sd-card p { margin: 0; }
.pcomments { list-style: none; padding: 0; margin: 0; }
.pc-replies-list { list-style: none; padding: 0; margin: 4px 0 0; }
.pcomment.reply { padding: 8px 0; border-bottom: 0; }
.sc-reply, .sc-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.sc-reply[hidden], .sc-edit[hidden] { display: none; }
.sc-reply .button, .sc-edit .button { align-self: flex-end; padding: 6px 14px; font-size: 14px; }
/* ＋ New Prayer page: the composer, open, without its "What would you like prayer for?" row */
.np-page > summary { display: none; }
.np-page .new-prayer { padding-top: 16px; }
/* Prayers app bar: ＋ New Prayer and Open Stories (red dot = unseen stories) */
button.icon-btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.top-end .icon-btn { position: relative; display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); }
.icon-btn.has-dot::after { content: ''; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; border: 2px solid var(--page); }
/* Your own hidden prayer: shown to you only, marked Hidden */
.chip.hidden-chip { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
.hidden-banner { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); font-weight: 700; }
.pc-sticker { display: block; width: 96px; height: 96px; object-fit: contain; margin: 4px 0; }
/* Edit story (story_edit_screen.dart) */
.se-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.se-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--page); border: 1px solid var(--line); }
.se-list img, .se-ph { width: 54px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--line); flex: none; }
.se-type { flex: 1; font-weight: 600; }
.se-btns { display: flex; gap: 2px; }
.se-hint { margin: 0 4px 10px; }
.cact.danger { color: #C62828; }
.vt-share { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
/* New / edit reading plan (create_reading_plan.dart) */
.js-plan-form [hidden] { display: none !important; }
.pf-books { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.pf-books summary { cursor: pointer; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; padding-top: 8px; font-size: 14px; }
.pf-grid label { display: flex; align-items: center; gap: 6px; }
.pf-grid input { width: auto; }
.button.danger { color: #C62828; }
