/* Adventist Connect — phone-first layout: one column (max 520px) with a bottom tab bar.
   Look: navy + candle gold on a cool paper ground; serif for Sabbath moments, sans for everything else. */
:root {
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #17243a;
  --muted: #586579;
  --line: #dde2ea;
  --navy: #22395c;
  --navy-ink: #f2f5f9;
  --gold: #a86f12;
  --gold-bright: #d9a441;
  --gold-soft: #f6ead2;
  --good: #24704a;
  --good-soft: #e1f1e8;
  --warn: #965a00;
  --warn-soft: #fbeed6;
  --bad: #b3261e;
  --bad-soft: #fbe3e1;
  --info-soft: #e8eef7;
  --shadow: 0 1px 2px rgba(23, 36, 58, .06), 0 4px 14px rgba(23, 36, 58, .05);
  --font-display: "Noto Serif Display", "Noto Serif", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --tabbar-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1520; --surface: #172131; --ink: #e8edf4; --muted: #9ba7b9; --line: #273349;
    --navy: #1a2b46; --navy-ink: #eef2f8; --gold: #e3b55e; --gold-bright: #e9bd68; --gold-soft: #33291a;
    --good: #72c79a; --good-soft: #17322a; --warn: #e8aa52; --warn-soft: #382a14; --bad: #f2928a; --bad-soft: #3a1d1c;
    --info-soft: #1c2940; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1520; --surface: #172131; --ink: #e8edf4; --muted: #9ba7b9; --line: #273349;
  --navy: #1a2b46; --navy-ink: #eef2f8; --gold: #e3b55e; --gold-bright: #e9bd68; --gold-soft: #33291a;
  --good: #72c79a; --good-soft: #17322a; --warn: #e8aa52; --warn-soft: #382a14; --bad: #f2928a; --bad-soft: #3a1d1c;
  --info-soft: #1c2940; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; display: block; }
.muted { color: var(--muted); font-size: 13.5px; }

/* ---------- shell ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--paper); position: relative; }
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px var(--line); } }
.app-main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 24px); }
.sample-banner {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; text-align: center;
  padding-block: 5px; background: var(--gold-soft); color: var(--gold); font-weight: 600;
}
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.tab {
  height: var(--tabbar-h); border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
}
.tab.is-on { color: var(--navy); }
:root[data-theme="dark"] .tab.is-on { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab.is-on { color: var(--gold); } }
.tab-icon { position: relative; }
.tab.is-on .tab-icon::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold-bright);
}
.badge {
  position: absolute; top: -6px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center;
}

/* ---------- screens ---------- */
.screen-head, .screen-body, .hero-inner, .chips {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.screen-head { padding-block: 20px 6px; }
.screen-head-row { display: flex; align-items: center; gap: 10px; }
.screen-head-text { flex: 1; min-width: 0; }
.screen-head h1 { font: 600 28px/1.15 var(--font-display); letter-spacing: -.01em; }
.screen-body { display: flex; flex-direction: column; gap: 22px; padding-block: 12px 8px; }
.eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.eyebrow.on-dark { color: var(--gold-bright); }

.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.section-head h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.empty { color: var(--muted); font-size: 14px; padding-block: 4px; }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-primary { background: var(--navy); color: var(--navy-ink); }
:root[data-theme="dark"] .btn-primary { background: var(--gold); color: #1b1408; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--gold); color: #1b1408; } }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-danger { background: var(--bad); color: #fff; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--gold); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-danger { color: var(--bad); font-size: 13px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.icon-btn-solid { background: var(--navy); color: var(--navy-ink); }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.pill { display: inline-flex; align-self: flex-start; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-accent { background: var(--gold-soft); color: var(--gold); }
.pill-neutral { background: var(--info-soft); color: var(--muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px 2px; scrollbar-width: none; }
.chips-inline { padding-left: 0; padding-right: 0; padding-block: 0; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--info-soft); padding: 4px; border-radius: 12px; gap: 4px; }
.segmented button { border: 0; background: none; border-radius: 9px; padding: 8px 6px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.segmented button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; flex-wrap: wrap; }
.callout > div { flex: 1; min-width: 0; }
.callout .icon { align-self: flex-start; margin-top: 2px; }
.callout-you { background: var(--gold-soft); }
.callout-you .eyebrow { color: var(--gold); }
.callout-warn { background: var(--warn-soft); }
.callout-info { background: var(--info-soft); color: var(--ink); justify-content: flex-start; flex-wrap: nowrap; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.section .form:not(.card) { padding: 0; }
.form label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.form input, .form textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; resize: vertical;
}
.form-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.form-row > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (max-width: 380px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row > div:first-child { grid-column: 1 / -1; } }
.form-error { color: var(--bad); font-size: 13.5px; }
.form .row-end { margin-top: 8px; }
.inline-field { display: flex; gap: 8px; }

/* ---------- bulletin ---------- */
.bulletin-hero { background: var(--navy); color: var(--navy-ink); position: relative; overflow: hidden; }
.bulletin-hero::after {
  /* the setting sun: Sabbath begins at sunset */
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, .55) 0%, rgba(217, 164, 65, .18) 45%, rgba(217, 164, 65, 0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: 22px 18px; display: flex; flex-direction: column; gap: 2px; }
.hero-title { font: 600 40px/1.05 var(--font-display); letter-spacing: -.015em; margin-top: 6px; }
.hero-date { font-size: 17px; opacity: .92; }
.sunset-strip { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sunset-strip span { display: inline-flex; align-items: center; gap: 6px; }
.sunset-strip span:first-child { color: var(--gold-bright); font-weight: 600; }

.sermon { padding: 16px 0 4px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.sermon-title { font: 600 26px/1.2 var(--font-display); margin: 6px 0 4px; }
.sermon-meta { color: var(--muted); }
.sermon-note { margin-top: 10px; font-size: 14px; color: var(--gold); font-weight: 600; }

.order { display: flex; flex-direction: column; }
.order-item { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "time label leader" "detail detail detail"; column-gap: 8px; padding-block: 8px; border-bottom: 1px dashed var(--line); }
.order-item:last-child { border-bottom: 0; }
.order-item.no-time { grid-template-columns: auto 1fr; grid-template-areas: "label leader" "detail detail"; }
.order-time { grid-area: time; font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; font-size: 13.5px; min-width: 64px; }
.order-label { grid-area: label; font-weight: 600; }
.order-leader { grid-area: leader; }
.order-detail { grid-area: detail; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; color: var(--muted); min-width: 0; }
.order-who { color: var(--ink); }
.hymn { color: var(--ink); }
.hymn-no { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); margin-right: 2px; }
@media (min-width: 420px) {
  .order-item { grid-template-columns: auto auto minmax(16px, 1fr) auto; grid-template-areas: "time label leader detail"; align-items: baseline; }
  .order-leader { border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
  .order-detail { justify-content: flex-end; text-align: right; max-width: 62vw; }
  .order-item { border-bottom: 0; padding-block: 6px; }
  .order-item.no-time { grid-template-columns: auto minmax(16px, 1fr) auto; grid-template-areas: "label leader detail"; }
}

.note-line { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }

.serving { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 360px) { .serving { grid-template-columns: 1fr; } }
.serving-team { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.serving-team dt { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; }
.serving-team dd { display: flex; flex-direction: column; font-size: 14px; }
.serving-team dd span:first-child { color: var(--muted); font-size: 12.5px; }
.is-me { font-weight: 700; color: var(--gold); }

.announcements { display: flex; flex-direction: column; gap: 14px; }
.announcement { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.announcement:last-child { border-bottom: 0; }
.announcement-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.announcement h3 { font-size: 16px; }
.announcement p { font-size: 14.5px; color: var(--ink); opacity: .88; }
.visitors { font: italic 15px/1.5 var(--font-display); color: var(--muted); text-align: center; padding: 8px 12px 0; }

/* ---------- serve ---------- */
.stack { display: flex; flex-direction: column; gap: 10px; }
.assignment { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px; }
.assignment-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); line-height: 1; }
.date-day { font: 600 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.date-mon { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.assignment-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.assignment-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-main { display: flex; flex-direction: column; min-width: 0; }
.roster { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.roster-team h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); margin-bottom: 2px; }
.roster-row { display: grid; grid-template-columns: 1fr auto 12px; gap: 10px; align-items: center; padding-block: 6px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.roster-role { color: var(--muted); }
.roster-who { text-align: right; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-accepted { background: var(--good); }
.dot-pending { background: var(--warn); }
.dot-declined { background: var(--bad); }
.dot-open { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.legend .dot { margin-left: 6px; }
.legend .dot:first-child { margin-left: 0; }

/* ---------- calendar ---------- */
.agenda { display: flex; flex-direction: column; gap: 18px; }
.agenda-date { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.agenda-date.is-sabbath { color: var(--gold); }
.agenda-sunset { display: inline-flex; gap: 5px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--gold); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.agenda-list { display: flex; flex-direction: column; }
.agenda-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: start; padding-block: 10px; border-bottom: 1px solid var(--line); position: relative; }
.agenda-item:last-child { border-bottom: 0; }
.agenda-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.agenda-time small { color: var(--muted); font-weight: 400; font-size: 12px; }
.agenda-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 10px; border-left: 3px solid var(--cat, var(--line)); }
.agenda-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--cat, var(--muted)); }
.cat-worship { --cat: var(--navy); }
:root[data-theme="dark"] .cat-worship { --cat: #8fb0e0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-worship { --cat: #8fb0e0; } }
.cat-prayer, .cat-fellowship { --cat: var(--gold); }
.cat-outreach, .cat-health { --cat: var(--good); }
.cat-youth { --cat: #7b5cc4; }
.cat-business { --cat: var(--muted); }
.cat-personal { --cat: var(--warn); }
.cat-serving { --cat: var(--bad); }
.star { border: 0; background: none; cursor: pointer; color: var(--muted); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.star.is-on { color: var(--gold-bright); }

/* ---------- groups ---------- */
.group-card { width: 100%; text-align: left; padding: 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.group-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.group-desc, .group-last { font-size: 14px; color: var(--ink); opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group-count { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.group-facts { display: flex; flex-direction: column; gap: 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.facts dd { font-size: 14.5px; }
.chat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.chat-log { display: flex; flex-direction: column; gap: 10px; padding: 14px; max-height: 420px; overflow-y: auto; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.msg-mine { align-self: flex-end; }
.msg-bubble { display: flex; flex-direction: column; gap: 2px; background: var(--info-soft); padding: 8px 12px; border-radius: 14px 14px 14px 4px; font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.msg-mine .msg-bubble { background: var(--navy); color: var(--navy-ink); border-radius: 14px 14px 4px 14px; }
.msg-name { font-size: 12px; font-weight: 700; color: var(--gold); }
.msg-time { font-size: 11px; opacity: .65; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: var(--paper); }
.avatar {
  --h: 210; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: hsl(var(--h) 45% 28%); background: hsl(var(--h) 55% 88%);
}
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 60% 85%); background: hsl(var(--h) 30% 26%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { color: hsl(var(--h) 60% 85%); background: hsl(var(--h) 30% 26%); } }

/* ---------- me ---------- */
.profile { display: flex; gap: 14px; align-items: center; }
.profile .avatar { font-size: 19px; }
.profile > div { display: flex; flex-direction: column; min-width: 0; }
.profile-name { font: 600 21px/1.2 var(--font-display); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }
.stats b { display: block; font: 600 22px/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row label { display: flex; flex-direction: column; font-weight: 600; cursor: pointer; }
.toggle-row small { font-weight: 400; color: var(--muted); font-size: 13px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(18px); }
.about { font-size: 14px; color: var(--muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 30;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: calc(100% - 32px); text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .toast:not([hidden]) { animation: toast-in .2s ease-out; }
  @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
}

/* ---------- my church ---------- */
.bulletin-hero, .church-hero { background: var(--navy); color: var(--navy-ink); position: relative; overflow: hidden; }
.church-hero::after {
  content: ""; position: absolute; right: -70px; bottom: -130px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, .5) 0%, rgba(217, 164, 65, .16) 45%, rgba(217, 164, 65, 0) 70%);
  pointer-events: none;
}
.church-name { font: 600 32px/1.1 var(--font-display); letter-spacing: -.01em; margin-top: 6px; }
.church-city { opacity: .9; }
.hero-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.12); color: var(--navy-ink); border: 0; border-radius: 999px; padding: 5px 12px 5px 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; margin-bottom: 10px; }

.quick { display: flex; flex-direction: column; gap: 10px; }
.quick-bulletin, .quick-live, .row-link {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
}
.quick-bulletin { border-color: var(--gold-bright); background: var(--gold-soft); }
.quick-bulletin .eyebrow { color: var(--gold); }
.quick-bulletin strong { font: 600 19px/1.25 var(--font-display); }
.quick-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--navy-ink); }
.quick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.live-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--bad); margin: 0 17px; box-shadow: 0 0 0 5px var(--bad-soft); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 2s ease-in-out infinite; }
  @keyframes live-pulse { 50% { box-shadow: 0 0 0 9px var(--bad-soft); } }
}

.times li { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; padding-block: 9px; border-bottom: 1px dashed var(--line); }
.times li:last-child { border-bottom: 0; }
.times-day { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.times-label { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.times-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); }

.ann-list { display: flex; flex-direction: column; gap: 14px; }
.ann-card { overflow: hidden; display: flex; flex-direction: column; }
.ann-art {
  height: 108px; display: grid; place-items: center; color: var(--cat, var(--navy));
  background:
    radial-gradient(circle at 85% 120%, color-mix(in srgb, var(--cat, var(--navy)) 28%, transparent) 0 38%, transparent 39%),
    radial-gradient(circle at 10% -20%, color-mix(in srgb, var(--cat, var(--navy)) 18%, transparent) 0 30%, transparent 31%),
    color-mix(in srgb, var(--cat, var(--navy)) 12%, var(--surface));
}
.ann-text { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ann-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ann-head h3 { font: 600 19px/1.25 var(--font-display); }
.ann-text p { font-size: 14.5px; opacity: .9; }
.ann-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ann-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.btn-done { background: var(--good-soft); color: var(--good); }

.contact { display: grid; grid-template-columns: 1fr; gap: 10px; }
.contact dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.contact dd { user-select: text; }

/* ---------- prayer wall ---------- */
.prayer { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.prayer-praise { border-color: var(--gold-bright); }
.prayer-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prayer-for { font: 600 19px/1.25 var(--font-display); }
.prayer-body { font-size: 14.5px; }
.prayer-by { font-size: 13px; color: var(--muted); }
.prayer-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.react-btn, .pray-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.react-btn.is-on { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: var(--bad-soft); }
.pray-btn { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.pray-btn.is-on { background: var(--good-soft); color: var(--good); border-color: transparent; cursor: default; }
.prayed-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.check { display: flex !important; align-items: center; gap: 8px; color: var(--ink) !important; font-weight: 600; }
.check input { width: 18px; height: 18px; }
.prayer-form .segmented { margin-bottom: 4px; }

/* ---------- news ---------- */
.news-art { height: 150px; display: grid; place-items: center; color: var(--src); background: color-mix(in srgb, var(--src) 13%, var(--surface)); }
.news-art-lg { height: 180px; border-radius: var(--radius); }
.src-church { --src: var(--gold); }
.src-conference { --src: var(--good); }
.src-union { --src: #8b5fb8; }
.news-lead { padding: 0; overflow: hidden; text-align: left; cursor: pointer; display: flex; flex-direction: column; color: var(--ink); }
.news-lead-text { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.news-lead h2 { font: 600 23px/1.2 var(--font-display); }
.news-source { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-row { display: flex; gap: 14px; align-items: center; width: 100%; padding-block: 12px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); }
.news-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.news-text strong { font-size: 16px; line-height: 1.3; }
.news-thumb { width: 64px; height: 64px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--src); background: color-mix(in srgb, var(--src) 13%, var(--surface)); }
.news-lede { font: 400 19px/1.45 var(--font-display); }
.news-body { font-size: 15.5px; max-width: 65ch; }

/* ---------- calendar request pop-up ---------- */
.request-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gold-bright); background: var(--gold-soft); cursor: pointer; color: var(--ink); }
.request-banner > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.badge-inline { min-width: 26px; height: 26px; border-radius: 13px; background: var(--bad); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(10, 16, 28, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -8px 30px rgba(0,0,0,.2);
}
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; margin-bottom: 6px; }
.sheet .eyebrow { color: var(--gold); }
.sheet-title { font: 600 25px/1.2 var(--font-display); }
.sheet-when { display: flex; align-items: center; gap: 14px; padding-block: 6px; }
.sheet-when > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.sheet-later { align-self: center; }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: sheet-up .22s ease-out; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
}

/* ---------- me ---------- */
.stats button { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; cursor: pointer; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-flag { font-size: 11px; font-weight: 700; color: var(--bad); }
.row-link .quick-icon { background: var(--gold-soft); color: var(--gold); }
:root[data-theme="dark"] .pray-btn:not(.is-on), :root[data-theme="dark"] .quick-icon, :root[data-theme="dark"] .icon-btn-solid { background: var(--gold); color: #1b1408; border-color: var(--gold); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pray-btn:not(.is-on), :root:not([data-theme="light"]) .quick-icon, :root:not([data-theme="light"]) .icon-btn-solid { background: var(--gold); color: #1b1408; border-color: var(--gold); }
}
:root[data-theme="dark"] .row-link .quick-icon { background: var(--gold-soft); color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .row-link .quick-icon { background: var(--gold-soft); color: var(--gold); } }

/* ---------- compact My Church (v3) ---------- */
.live-badge { display: inline-block; vertical-align: 0.12em; margin-left: 10px; width: 16px; height: 16px; border-radius: 50%; background: #e5322d; box-shadow: 0 0 0 4px rgba(229, 50, 45, .3); }
@media (prefers-reduced-motion: no-preference) {
  .live-badge { animation: live-ring 1.8s ease-in-out infinite; }
  @keyframes live-ring { 50% { box-shadow: 0 0 0 8px rgba(229, 50, 45, .12); } }
}
.btn-block { width: 100%; }
.carousel-wrap { display: flex; flex-direction: column; gap: 10px; }
.carousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px));
  scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .ann-card { flex: 0 0 86%; scroll-snap-align: start; }
.carousel .ann-text p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carousel .ann-art { height: 84px; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dot-btn { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0; background: var(--line); cursor: pointer; transition: width .2s; }
.dot-btn.is-on { width: 22px; background: var(--gold-bright); }
.prayer-link .quick-icon { background: var(--info-soft); color: var(--navy); }
:root[data-theme="dark"] .prayer-link .quick-icon { background: var(--info-soft); color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prayer-link .quick-icon { background: var(--info-soft); color: var(--gold); } }
.new-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.prayer-top .new-pill { padding: 1px 7px; font-size: 11px; margin-right: 4px; }
.stream-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 4px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: linear-gradient(100deg, color-mix(in srgb, var(--bad) 9%, var(--surface)), var(--surface) 65%);
  border: 1px solid var(--line);
}
.stream-play { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; padding-left: 2px; }
.stream-cta { font-size: 13px; font-weight: 700; color: var(--bad); }
.stream-row.is-live { border-color: var(--bad); }
.staff-live { border-top: 1px dashed var(--line); margin-top: 6px; }
.disclosure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.disclosure summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .muted { flex: 1; text-align: right; font-weight: 400; }
.disclosure summary .icon { transition: transform .15s; color: var(--muted); }
.disclosure[open] summary .icon { transform: rotate(90deg); }
.disclosure-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.link-subtle { color: var(--muted); font-weight: 500; font-size: 13px; text-decoration: underline; align-self: flex-start; }

/* ---------- invite-only groups ---------- */
.group-name { display: inline-flex; align-items: center; gap: 6px; }
.lock { color: var(--muted); display: inline-flex; }
.invite-join { margin-top: 8px; }
.invites { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.invites-head { display: flex; flex-direction: column; }
.invite-list li { display: flex; align-items: center; gap: 10px; padding-block: 4px; }
.invite-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; }
.invites select { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; }

/* ---------- sign-in ---------- */
.auth { max-width: 520px; margin: 0 auto; min-height: 100vh; }
.auth-hero { background: var(--navy); color: var(--navy-ink); }
.auth .screen-body { padding-block: 20px; }
.select, .form select { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; }

/* ---------- manage ---------- */
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.search { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.people { display: flex; flex-direction: column; }
.person { border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person-head { display: flex; align-items: center; gap: 12px; width: 100%; padding-block: 10px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); }
.person-head[aria-expanded="true"] .icon:last-child { transform: rotate(90deg); }
.person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-body { display: flex; flex-direction: column; gap: 12px; padding: 0 0 14px 42px; }
.roles { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.roles legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; padding: 0; }
.role { align-items: flex-start !important; }
.role span { display: flex; flex-direction: column; font-weight: 400; }
.role small { color: var(--muted); font-size: 12.5px; }
.inline-field input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.form-row-2 { grid-template-columns: 1fr 1fr !important; }
.form-row-2 > div:first-child { grid-column: auto !important; }
.st-row { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.st-row label { font-size: 13px; font-weight: 600; color: var(--muted); }
.st-row input:not(.switch), .st-row select { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.st-row .toggle-row label { color: var(--ink); }
.st-row .link-btn { align-self: flex-start; }
.advanced summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--gold); padding-block: 6px; }
.advanced[open] { display: flex; flex-direction: column; gap: 6px; }
.manage-link .quick-icon { background: var(--navy); color: var(--navy-ink); }

/* ---------- manage content ---------- */
.form .label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.form textarea, .form select { width: 100%; min-width: 0; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-opt { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-opt.is-on { border-color: var(--gold-bright); background: var(--gold-soft); color: var(--gold); }
.item-edit-list { display: flex; flex-direction: column; gap: 10px; }
.item-edit { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.item-edit input, .item-edit select { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.item-edit-top { display: flex; gap: 6px; align-items: center; }
.item-edit-top .it-time { width: 130px; flex: none; }
.item-edit-top .it-label { flex: 1; font-weight: 600; }
.it-move { display: flex; flex: none; }
.it-move .icon-btn { width: 32px; height: 32px; font-size: 16px; color: var(--muted); }
.it-move .icon-btn:disabled { opacity: .3; }
.it-hymn { display: grid; grid-template-columns: 80px 1fr; gap: 6px; }
.it-who { display: grid; grid-template-columns: 1fr; gap: 6px; }
.sticky-actions { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px); background: var(--paper); padding-block: 8px; z-index: 5; }
.picker { display: flex; flex-direction: column; gap: 6px; }
.picker-list { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
.picker-list .check { font-weight: 400 !important; padding-block: 4px; }
.team-card { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.team-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.team-head h3 { font: 600 19px/1.25 var(--font-display); }
.slots { display: flex; flex-direction: column; }
.slot { display: grid; grid-template-columns: 1fr auto 32px; grid-template-areas: "role pill x" "who who who"; gap: 4px 8px; align-items: center; padding-block: 8px; border-bottom: 1px dashed var(--line); }
.slot-role { grid-area: role; font-weight: 600; }
.slot .pill { grid-area: pill; }
.slot .icon-btn { grid-area: x; width: 32px; height: 32px; }
.slot select { grid-area: who; width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.slot .form-error { grid-column: 1 / -1; }
.add-slot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; }
.add-slot input, .add-slot select { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 10px; font-size: 14px; }

/* ---------- passwords ---------- */
.pw-field { position: relative; display: flex; }
.pw-field input { flex: 1; padding-right: 64px !important; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; }
.auth-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- notifications ---------- */
.notif-bulk { display: flex; flex-wrap: wrap; gap: 8px; }
.notif-list { display: flex; flex-direction: column; }
.notif-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.notif-row:last-child { border-bottom: 0; }
.notif-text { display: flex; flex-direction: column; min-width: 0; }
.notif-text small { color: var(--muted); font-size: 13px; }
.notif-chans { display: flex; gap: 14px; flex: none; }
.chan { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; text-transform: uppercase; letter-spacing: .05em; }
.switch-sm { width: 40px; height: 24px; border-radius: 12px; }
.switch-sm::after { width: 18px; height: 18px; }
.switch-sm:checked::after { transform: translateX(16px); }
.add-inline { align-self: flex-start; }
.edit-inline { font-size: 13px; align-self: center; }
.ann-wrap { display: flex; flex-direction: column; gap: 4px; }
.check input, .role input { flex: none; }
.news-art.is-ann, .news-thumb.is-ann { color: var(--cat, var(--navy)); background: color-mix(in srgb, var(--cat, var(--navy)) 13%, var(--surface)); }
.sheet .row-link { box-shadow: none; }

/* ---------- serving roles ---------- */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--info-soft); font-size: 13.5px; font-weight: 600; }
.person-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.person-chip .muted { font-weight: 400; font-size: 12.5px; }
.chips-wrap .person-chip:only-child, .chips-wrap li:not(:has(button)) { padding-right: 10px; }
.role-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.role-row { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.role-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.role-head strong { font-size: 15.5px; }
.role-head .muted { flex: 1; }
.role-row select, .team-card .inline-field input { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.serving-roles { gap: 10px; }
.role-team { display: flex; flex-direction: column; gap: 4px; }
.role-team-name { font-size: 12.5px; font-weight: 700; color: var(--gold); }
.role-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.role-chip { font-weight: 500 !important; font-size: 14px; }
.add-slot { grid-template-columns: 1fr; }
.add-slot .btn { justify-self: start; }
.agenda-actions { display: flex; align-items: center; gap: 2px; align-self: center; }
.slot { grid-template-areas: "role pill x" "who who who" "times times times" !important; }
.slot-times { grid-area: times; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.slot-times input { width: 118px; flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 8px; font-size: 13.5px; color: var(--ink); }
.slot-times-label { font-weight: 600; min-width: 74px; }
.slot-times .form-error { font-size: 12.5px; }

/* ---------- staff tools (anything shown only because of a permission) ---------- */
:root { --staff: #6a4bc4; --staff-soft: #f2edfd; --staff-line: #c6b6f1; --staff-on: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --staff: #b9a5f7; --staff-soft: #262040; --staff-line: #54468a; --staff-on: #1a1430; } }
:root[data-theme="dark"] { --staff: #b9a5f7; --staff-soft: #262040; --staff-line: #54468a; --staff-on: #1a1430; }

.staff { color: var(--staff) !important; }
.link-btn.staff:not(:has(svg)):not(.link-danger)::before, .btn.staff:not(:has(svg))::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; background: currentColor;
  -webkit-mask: var(--pencil) center / contain no-repeat; mask: var(--pencil) center / contain no-repeat;
}
:root { --pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4zM14 6l4 4'/%3E%3C/svg%3E"); }
.btn-outline.staff { border-color: var(--staff-line) !important; background: var(--staff-soft) !important; }
.btn-primary.staff, .icon-btn-solid.staff { background: var(--staff) !important; border-color: var(--staff) !important; color: var(--staff-on) !important; }
.link-btn.link-danger.staff { color: var(--staff) !important; }

.staff-zone { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border: 1.5px dashed var(--staff-line); background: var(--staff-soft); border-radius: 14px; }
.staff-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--staff); }
.staff-zone .invites { background: transparent; border: 0; padding: 0; }
.callout-staff { background: var(--staff-soft) !important; border: 1.5px dashed var(--staff-line) !important; }
.staff-live { border: 1.5px dashed var(--staff-line) !important; background: var(--staff-soft); border-radius: 12px; padding: 10px 12px !important; margin-top: 10px; }
.staff-live small { color: var(--staff); }
.staff-chip { display: inline-block; font: 700 10.5px/1 var(--font, inherit); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--staff-soft); color: var(--staff); border: 1px solid var(--staff-line); vertical-align: 2px; margin-left: 4px; }
.staff-legend { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 0; }
.staff-legend .staff-chip { margin: 2px 0 0; flex: none; }
.row-link.manage-link { border: 1.5px dashed var(--staff-line); background: var(--staff-soft); }
.row-link.manage-link .quick-icon { background: var(--staff) !important; color: var(--staff-on) !important; border-color: var(--staff) !important; }

/* ---------- prayer wall card on My Church ---------- */
.prayer-home {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 16px;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(120% 90% at 100% 0%, var(--gold-soft) 0%, transparent 60%), linear-gradient(180deg, var(--gold-soft), var(--surface) 75%);
}
.prayer-home::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-bright) 28%, transparent), transparent 70%);
}
.prayer-home-head { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); cursor: pointer; position: relative; z-index: 1; }
.prayer-home-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 18%, transparent); }
.prayer-home-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prayer-home-title h2 { margin: 0; font: 600 22px/1.15 var(--font-display); }
.prayer-verse { font-size: 13px; font-style: italic; color: var(--muted); }
.prayer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.prayer-stats > div { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.prayer-stats strong { font: 600 22px/1.1 var(--font-display); color: var(--ink); }
.prayer-stats span { font-size: 11.5px; color: var(--muted); }
.prayer-stats .is-new { border-color: var(--gold-bright); background: var(--gold-soft); }
.prayer-stats .is-new strong { color: var(--gold); }
.prayer-peek { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.prayer-peek button { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); cursor: pointer; }
.peek-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--navy); }
.peek-dot.peek-praise { background: var(--gold); }
:root[data-theme="dark"] .peek-dot.peek-request { background: #8fb0e0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .peek-dot.peek-request { background: #8fb0e0; } }
.peek-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.peek-text strong { font-size: 14.5px; }
.peek-text span { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.peek-meta { flex: none; font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1.35; }
.prayer-home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 1; }
.prayer-home-actions .btn { justify-content: center; }
:root[data-theme="dark"] .prayer-home-icon { color: #1b1408; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prayer-home-icon { color: #1b1408; } }

/* ---------- photos ---------- */
.ann-art.has-photo, .news-art.has-photo, .news-thumb.has-photo { padding: 0; background: var(--info-soft); overflow: hidden; }
.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ann-art.has-photo { height: 160px; }
.carousel .ann-art.has-photo { height: 120px; }
.news-art.has-photo { height: 190px; }
.news-art-lg.has-photo { height: auto; max-height: 340px; }
.news-art-lg.has-photo img { height: auto; max-height: 340px; }
.agenda-photo { display: block; width: 100%; max-width: 280px; height: 110px; object-fit: cover; border-radius: 10px; margin-top: 8px; border: 1px solid var(--line); }

.image-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.image-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 18px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.image-drop:hover { border-color: var(--gold-bright); }
.image-drop .icon { color: var(--gold); }
.image-drop .muted { font-size: 13px; }
.image-field:focus-within .image-drop { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.image-preview { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.image-preview img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.image-preview-actions { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.image-preview-actions .btn { background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }

.segmented-3 { grid-template-columns: repeat(3, 1fr); }
.segmented-3 button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- prayer names (bubbles) ---------- */
.prayer-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.name-bubble {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  font: 600 15px/1.2 var(--font-display); color: var(--ink);
  background: var(--surface); border: 1px solid var(--gold-bright); box-shadow: var(--shadow);
}
.name-bubble:hover { background: var(--gold-soft); }
.name-bubble.is-new { background: var(--gold-soft); border-color: var(--gold); }
.name-bubble.is-new::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 2px; }
.name-bubble.is-prayed { border-color: var(--line); color: var(--muted); }
.name-bubble.is-prayed .icon { color: var(--good); }
.prayer-names-wrap { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.prayer-names-label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.prayer-names-top { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); background: linear-gradient(180deg, var(--gold-soft), var(--surface)); border: 1px solid var(--line); margin-bottom: 6px; }
.prayer-names-title { margin: 0; font: 600 20px/1.2 var(--font-display); }
.prayer-names-top .hint { margin: 0; }
.prayer.is-focused { outline: 2px solid var(--gold-bright); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold-soft); }
.prayer:focus { outline: none; }
.prayer.is-focused:focus { outline: 2px solid var(--gold-bright); }
.times-line { line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .prayer { transition: box-shadow .4s, outline-color .4s; } }

/* ---------- Conference sharing ---------- */
.add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.host-tag { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--navy); background: var(--info-soft); border-radius: 999px; padding: 2px 8px; margin-bottom: 2px; }
:root[data-theme="dark"] .host-tag { color: #b9cdf0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .host-tag { color: #b9cdf0; } }
.agenda-address { display: inline-flex; align-items: flex-start; gap: 4px; font-size: 13.5px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.agenda-address .icon { flex: none; margin-top: 2px; color: var(--muted); }
.share-pill { align-self: flex-start; display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; margin-top: 4px; background: var(--info-soft); color: var(--muted); }
.share-pill.is-approved { background: var(--good-soft); color: var(--good); }
.share-pill.is-pending { background: var(--warn-soft); color: var(--warn); }
.share-pill.is-declined { background: var(--bad-soft); color: var(--bad); }
.share-pill.staff { background: var(--staff-soft); border: 1px dashed var(--staff-line); }
.share-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-top: 6px; }
.share-box.staff-zone { background: var(--staff-soft); border: 1.5px dashed var(--staff-line); }
.share-box .check { align-items: flex-start; }
.share-box .check span { display: flex; flex-direction: column; gap: 2px; }
.share-box .check small { color: var(--muted); font-size: 13px; font-weight: 400; }
.share-status { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 600; }
.share-status .icon { flex: none; margin-top: 2px; }
.share-status.is-pending { color: var(--warn); }
.share-status.is-approved { color: var(--good); }
.share-status.is-declined { color: var(--bad); }
.form-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.audience { display: flex; flex-direction: column; gap: 10px; }
.church-picker { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin: 0; background: var(--surface); }
.church-picker-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.church-picker ul { list-style: none; margin: 0; padding: 0; }
.church-picker li + li { border-top: 1px dashed var(--line); }
.church-picker .check { padding: 10px 0; align-items: flex-start; }
.review-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.review-summary { display: flex; flex-direction: column; gap: 4px; }
.review-summary h3 { margin: 0; font: 600 19px/1.25 var(--font-display); }
.review-summary p { margin: 0; }
.review-photo { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.review-where { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; }
.review-where .icon { flex: none; margin-top: 2px; color: var(--muted); }
.review-controls { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.decline-box { display: flex; flex-direction: column; gap: 6px; }

/* ---------- assignment alerts ---------- */
.badge-dot { position: absolute; top: -3px; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 2px var(--surface); }
.row-link .quick-icon { position: relative; }
.row-link .quick-icon .badge { top: -6px; right: -6px; }
.row-link.has-alert { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.alert-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.alert-pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.alert-pill.is-request { background: var(--bad-soft); color: var(--bad); }
.alert-pill.is-open { background: var(--gold-soft); color: var(--gold); }
.roster-item { border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.roster-item .roster-row { border-bottom: 0; }
.ask-btn { font-size: 13px; padding: 0 0 4px; }
.ask-box { margin: 4px 0 8px; }
.ask-box select { width: 100%; }
.ask-box .btn { align-self: flex-start; }
.staff-hint { color: var(--staff); }
.notify-btn { grid-column: 1 / -1; justify-self: start; }
.open-notice { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--good); }
.ask-or { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 13px; }
.ask-or .notify-btn, .ask-or .open-notice { grid-column: auto; }

/* ---------- groups open to other churches ---------- */
.invite-name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.invite-name small { color: var(--muted); font-size: 12px; font-weight: 400; }
.avatar-mail { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--info-soft); color: var(--muted); flex: none; }
.invite-note { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.invite-note p { margin: 0; font-size: 13.5px; }
.invite-note textarea { width: 100%; font-size: 13.5px; }
.invite-note .row-end { flex-wrap: wrap; }
.msg-name small { font-weight: 400; color: var(--muted); }
.group-card .host-tag { margin: 2px 0; }
.guest-callout { align-items: flex-start; }
.guest-callout p { margin: 4px 0 8px; }
.inline-field input[type=email] { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; color: var(--ink); }

/* ---------- purple staff controls are buttons ---------- */
.link-btn.staff { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--staff-line); background: var(--staff-soft); font-size: 13.5px; font-weight: 600; text-decoration: none; line-height: 1.2; }
.link-btn.staff:hover { border-color: var(--staff); }
.link-btn.staff:not(:has(svg)):not(.link-danger)::before { margin-right: 0; }
.agenda-actions .link-btn.staff { padding: 5px 10px; font-size: 13px; }

/* ---------- My Church: announcements list, coming-up card, service list ---------- */
.ann-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ann-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ann-row-main { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; background: none; border: 0; color: var(--ink); cursor: pointer; }
.ann-row-thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; }
.ann-row-thumb.is-icon { display: grid; place-items: center; color: var(--cat, var(--navy)); background: color-mix(in srgb, var(--cat, var(--navy)) 13%, var(--surface)); }
.ann-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ann-row-text strong { font-size: 15.5px; }
.ann-row-body { font-size: 14px; color: var(--ink); opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-row-when { font-size: 12px; }
.ann-row-action { padding: 0 14px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.view-all { align-self: flex-end; display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; margin-top: 2px; }
.coming-up { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font: inherit; }
button.coming-up { cursor: pointer; }
.coming-up .quick-icon { background: var(--info-soft); color: var(--navy); }
.coming-up strong { font: 600 18px/1.25 var(--font-display); }
.coming-people { display: flex; flex-direction: column; gap: 1px; font-size: 14.5px; font-weight: 600; }
.coming-people .muted { display: inline-block; min-width: 62px; font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
:root[data-theme="dark"] .coming-up .quick-icon { background: var(--gold-soft); color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .coming-up .quick-icon { background: var(--gold-soft); color: var(--gold); } }
.times-list { margin: 2px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.times-list li::marker { color: var(--gold); }

/* ---------- photos open full screen ---------- */
.photo-btn { display: block; padding: 0; border: 0; background: var(--info-soft); cursor: zoom-in; overflow: hidden; }
.photo-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-row-wrap { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.news-row-wrap .news-row { border-bottom: 0; flex: 1; min-width: 0; }
.news-row-wrap .news-thumb { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.news-lead { cursor: pointer; text-align: left; }
.news-lead .photo-btn { width: 100%; }
.news-art-lg.photo-btn { width: 100%; border-radius: var(--radius); }
.ann-art.photo-btn { width: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 20, .92); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-opt.icon-none { font-size: 12.5px; font-weight: 600; width: auto; padding: 0 12px; }

/* ---------- calendar details pop-up ---------- */
button.agenda-main { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.agenda-more { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.event-sheet { position: relative; max-height: 88vh; overflow-y: auto; }
.sheet-close { position: absolute; top: 10px; right: 10px; }
.event-sheet-photo { width: 100%; height: 190px; border-radius: 12px; margin: 4px 0 6px; }
.event-sheet-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.event-when { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 15px; line-height: 1.45; }
.event-when .icon { flex: none; margin-top: 2px; color: var(--muted); }
.event-when a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.event-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--info-soft); font-size: 14.5px; }
.event-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.event-sheet-actions .btn { flex: 1 1 auto; justify-content: center; }
a.btn { text-decoration: none; }

/* ---------- reorderable Manage church list ---------- */
.reorder-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.reorder-item { position: relative; display: flex; align-items: stretch; gap: 6px; }
.reorder-item > .row-link { flex: 1; min-width: 0; }
.reorder-item.is-dragging { z-index: 5; }
.reorder-item.is-dragging > .row-link { box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.drag-handle { flex: none; width: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; display: grid; place-items: center; }
.drag-handle:hover, .drag-handle:focus-visible { background: var(--info-soft); color: var(--ink); }
.reorder-item.is-dragging .drag-handle { cursor: grabbing; }

/* ---------- following, spots, chats ---------- */
.follow-add { margin-top: 6px; }
.follow-add select { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.other-bulletin { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.other-bulletin h4 { margin: 12px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.other-bulletin .order-item { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding-block: 7px; }
.other-bulletin .order-time { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; font-size: 13.5px; }
.other-bulletin .order-main { flex: 1; min-width: 0; }
.other-bulletin .order-who { color: var(--muted); font-size: 13.5px; }
.follow-ann { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.follow-ann p { margin: 0; }
.follow-ann-photo { width: 100%; height: 150px; border-radius: 10px; margin-bottom: 6px; }
.spots-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.good-text { color: var(--good); font-weight: 600; }
.coordinator-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.coordinator-row .muted { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.chat-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 8px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.chat-note .icon { flex: none; margin-top: 2px; }

/* ---------- feed rows (My Church + News) ---------- */
.ann-row-main { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; }
.ann-row-open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font: inherit; }
.ann-row-open strong { font-size: 15.5px; }
.ann-row-open .news-source { font-size: 11.5px; }
.photo-btn.ann-row-thumb { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.ann-row-thumb.is-icon { width: 56px; height: 56px; }

/* ---------- Next Sabbath + church labels ---------- */
.next-sabbath { padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--line); background: transparent; display: flex; flex-direction: column; gap: 6px; }
.next-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.next-people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.next-people dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.next-people dd { margin: 0; font-weight: 600; }
.town-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--info-soft); color: var(--ink); font-size: 11px; letter-spacing: .02em; text-transform: none; font-weight: 600; vertical-align: 1px; }
.quick-bulletin.other { background: var(--surface); border-color: var(--line); }
.quick-bulletin.other .quick-icon { background: var(--info-soft); color: var(--navy); }

/* ---------- Assignments: any day, linked events ---------- */
.chip-weekday { border-style: dashed; }
.chip-add { display: inline-flex; align-items: center; gap: 4px; }
.add-date input { flex: 1; min-width: 0; }
.day-events { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.day-events-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.day-event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.day-event-list li span:first-child { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }
.slot-event, .roster-event { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.roster-role { display: flex; flex-direction: column; }
.serving-needs select { width: 100%; }
.need-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.need-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.need-row .need-role { grid-column: 1 / -1; font-weight: 600; font-size: 14px; }
.need-row select { grid-column: 1; }

/* ---------- categories ---------- */
.new-cat input { width: 100%; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.is-on { box-shadow: 0 0 0 3px var(--ink); }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--muted)); }

/* ---------- profile photo, role requests, conference controls ---------- */
.avatar-photo { border-radius: 50%; object-fit: cover; width: 32px; height: 32px; flex: none; }
.profile-photo { position: relative; flex: none; }
.profile-photo-btn { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--navy-ink); border: 2px solid var(--paper); cursor: pointer; }
.profile-photo-btn.is-busy { opacity: .5; }
.profile-photo:focus-within .profile-photo-btn { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.person-chip.is-pending { border-style: dashed; }
.role-requests .role-request { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--staff-line); }
.role-requests .role-request:last-child { border-bottom: 0; padding-bottom: 0; }
.role-request p { margin: 2px 0 0; }
.chips-wrap-row { flex-wrap: wrap; overflow: visible; }
.church-li { display: flex; flex-direction: column; gap: 8px; }
.invite-church { margin-bottom: 8px; }
.perm-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 14px; }
