/* Churchwide — 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: "Lora", 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: var(--good); }
.cat-ministry { --cat: #b0477a; }
.cat-event { --cat: #0e7490; }
.cat-youth { --cat: #7b5cc4; }
.cat-meeting { --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: 60;
  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-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; text-align: center; }
.stats button { position: relative; }
.stat-badge { position: absolute; top: -7px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.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; }
.prelaunch { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--navy); }
.prelaunch-card { width: 100%; max-width: 440px; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 28px 24px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.prelaunch-logo { width: 88px; height: 88px; border-radius: 22px; align-self: center; margin-bottom: 4px; box-shadow: 0 6px 18px rgba(16,35,63,.22); }
.prelaunch-card h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.prelaunch-card p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
.prelaunch-card .btn { display: flex; justify-content: center; text-decoration: none; }
.prelaunch-main { font-size: 17px; padding: 16px 12px; }
.prelaunch-note { font-size: 12.5px; margin-top: -6px !important; }
.prelaunch-login { align-self: center; margin-top: 6px; }
.prelaunch-support { align-self: center; margin-top: 2px; font-size: 14px; }
.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-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: color-mix(in srgb, var(--ink) 80%, var(--surface)); box-shadow: none; }
.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: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line, so rows don't change height */
.alert-pill { font-weight: 600; }
.alert-pill + .alert-pill::before { content: " · "; color: var(--muted); font-weight: 400; }
.alert-pill.is-request { color: var(--bad); }
.alert-pill.is-open { 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: 20px; display: block; list-style: disc; }
.times-list li { display: list-item; }
.times-list li + li { margin-top: 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; }

/* ---------- switches inside forms; full-width feed photos; news rows ---------- */
.form input.switch { width: 46px; height: 28px; padding: 0; border: 0; flex: none; border-radius: 14px; background: var(--line); }
.form input.switch:checked { background: var(--good); }
.toggle-row label { flex: 1; min-width: 0; }
.nc-picker { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.ann-row.has-photo { overflow: hidden; }
.photo-btn.ann-row-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.photo-btn.ann-row-photo img { object-fit: cover; }
.ann-row.is-story { background: color-mix(in srgb, var(--navy) 6%, var(--surface)); border-color: color-mix(in srgb, var(--navy) 22%, var(--line)); }
.ann-row.is-story .news-source { color: var(--navy); }
:root[data-theme="dark"] .ann-row.is-story { background: color-mix(in srgb, #8fb0e0 9%, var(--surface)); border-color: color-mix(in srgb, #8fb0e0 25%, var(--line)); }
:root[data-theme="dark"] .ann-row.is-story .news-source { color: #9fbbe6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ann-row.is-story { background: color-mix(in srgb, #8fb0e0 9%, var(--surface)); border-color: color-mix(in srgb, #8fb0e0 25%, var(--line)); }
  :root:not([data-theme="light"]) .ann-row.is-story .news-source { color: #9fbbe6; }
}
.cta-link { display: inline-flex; align-items: center; gap: 4px; }
.cta-row input { width: 100%; }
.update-banner { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 520px; margin: 0 auto; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--navy); color: var(--navy-ink); box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; font-weight: 600; }
.badge-staff { background: var(--staff) !important; color: var(--staff-on) !important; }
.alert-pill.is-staff { background: var(--staff-soft); color: var(--staff); border: 1px dashed var(--staff-line); }
.staff-banner { border-color: var(--staff-line); background: var(--staff-soft); }
.declined-banner { flex-direction: column; align-items: stretch; gap: 8px; }
.declined-banner p { margin: 4px 0 0; }
.church-admins { display: flex; flex-direction: column; gap: 6px; padding: 0 0 10px; }
.church-admins ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.church-admins li { display: flex; align-items: center; gap: 10px; }
.church-admins .invite-name { flex: 1; }
.church-admins .label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.church-admins li .btn { color: var(--bad, #b42318); }
/* Conference controls: the comms director's purple box on Me */
.row-link.conference-link { background: linear-gradient(135deg, #1d6f7a 0%, #0f4552 100%); border-color: transparent; color: #fff; }
.row-link.conference-link .quick-icon { background: rgba(255,255,255,.18); color: #fff; }
.row-link.conference-link .quick-text > span:not(.alert-line), .row-link.conference-link > svg { color: rgba(255,255,255,.88); }
.row-link.conference-link strong { color: #fff; }
.alert-pill.is-conf { background: #fff; color: #0f4552; }
.row-link.conference-link .badge-staff { background: #fff !important; color: #0f4552 !important; }

/* ===== Service Schedule editor ===== */
html.wide-editor .app { max-width: 1120px; }
.service-start { font-size: 13px; font-weight: 700; color: var(--gold, #b5832a); letter-spacing: .02em; margin-left: 8px; text-transform: none; }
.ob-service h4 { display: flex; align-items: baseline; gap: 4px; }
.sched-switch { display: grid; }
.sched-layout.show-preview .sched-col-edit { display: none; }
.sched-layout.show-edit .sched-col-preview { display: none; }
@media (min-width: 900px) {
  .sched-switch { display: none; }
  .sched-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .sched-layout .sched-col-edit, .sched-layout .sched-col-preview { display: block !important; }
  .sched-col-preview { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
}
.sched-service { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-left: 4px solid var(--staff); }
.sched-service-head { display: flex; gap: 8px; align-items: center; }
.sched-service-name { flex: 1; min-width: 0; font-family: var(--serif, Georgia, serif); font-size: 20px; font-weight: 700; border: 1px solid transparent; border-bottom-color: var(--line); background: transparent; color: var(--ink); padding: 6px 4px; border-radius: 6px; }
.sched-service-name:focus { border-color: var(--staff-line); outline: none; background: var(--surface); }
.sched-service-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.sched-service-meta label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sched-service-meta input[type=time] { font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.sched-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sched-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.sched-item-top { display: grid; grid-template-columns: 62px minmax(0, 1fr) 78px auto; gap: 8px; align-items: center; }
.sched-at { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13.5px; color: var(--staff); background: var(--staff-soft); border-radius: 8px; padding: 7px 4px; text-align: center; white-space: nowrap; }
.sched-at.is-unknown { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.sched-label, .sched-who input, .sched-who select, .sched-hymn input, .sched-detail textarea { width: 100%; min-width: 0; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: inherit; }
.sched-label { font-weight: 600; }
.sched-min { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.sched-min input { width: 100%; min-width: 0; font-size: 15px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-align: right; }
.sched-move { display: flex; gap: 2px; }
.sched-move .icon-btn { width: 30px; height: 30px; }
.sched-hymn { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
.sched-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sched-who select:only-child { grid-column: 1 / -1; }
.sched-detail { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sched-add-detail { align-self: flex-start; font-size: 13px; }
.sched-service-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.add-service { align-self: flex-start; }
.sched-preview { display: flex; flex-direction: column; gap: 6px; }
.sched-preview h4 { margin: 12px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.sched-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.sched-print { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.sched-print .check { margin: 0; }
@media (max-width: 480px) {
  .sched-item-top { grid-template-columns: 56px minmax(0, 1fr) 70px; }
  .sched-item-top .sched-move { grid-column: 1 / -1; justify-content: flex-end; }
  .sched-who { grid-template-columns: 1fr; }
}
.add-needed { align-self: flex-start; margin-top: 10px; }
.add-needed-box { margin-top: 10px; }

/* ===== Printing the Service Schedule (8.5×11) ===== */
#print-root { display: none; }
@media print {
  @page { size: letter portrait; margin: 0.5in; }
  html.printing body > *:not(#print-root) { display: none !important; }
  html.printing, html.printing body { background: #fff !important; }
  html.printing #print-root { display: block; color: #111; font: 10.5pt/1.35 Georgia, "Times New Roman", serif; }
}
.ps-page header { text-align: center; border-bottom: 2px solid #111; padding-bottom: 8pt; margin-bottom: 10pt; }
.ps-church { font: 700 9pt/1.2 -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ps-page h1 { font-size: 22pt; margin: 4pt 0 2pt; }
.ps-date { font-size: 11pt; }
.ps-sermon { text-align: center; margin-bottom: 10pt; display: flex; flex-direction: column; gap: 2pt; }
.ps-sermon strong { font-size: 13pt; }
.ps-service { break-inside: avoid; margin-bottom: 10pt; }
.ps-service h2 { font: 700 10pt/1.2 -apple-system, "Segoe UI", Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid #999; padding-bottom: 3pt; margin: 0 0 4pt; display: flex; justify-content: space-between; }
.ps-service h2 span { font-weight: 600; letter-spacing: .02em; }
.ps-service table { width: 100%; border-collapse: collapse; }
.ps-service td { padding: 2.5pt 4pt; vertical-align: top; border-bottom: 1px dotted #ccc; }
.ps-at { width: 0.75in; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.ps-label { font-weight: 600; }
.ps-what { font-weight: 400; font-style: italic; font-size: 9.5pt; color: #333; }
.ps-who { text-align: right; width: 2.2in; }
.ps-len { width: 0.6in; text-align: right; white-space: nowrap; color: #444; font-size: 9.5pt; }
.ps-note { margin-top: 12pt; font-style: italic; text-align: center; font-size: 9.5pt; }
.btn-wrap { white-space: normal; text-align: left; height: auto; line-height: 1.3; padding-block: 8px; }
.sched-print { flex-direction: row; padding: 10px 12px; }
.sched-actions { justify-content: flex-end; }
@media (max-width: 480px) {
  .sched-item-top { grid-template-columns: 70px minmax(0, 1fr) 68px; }
  .sched-at { font-size: 12.5px; padding-inline: 2px; }
}
.ask-box .btn { max-width: 100%; }
.sched-preview { padding: 16px; }
.sched-min input { width: 54px; flex: none; }
.sched-item-top { grid-template-columns: 70px minmax(0, 1fr) auto auto; }
@media (max-width: 480px) { .sched-item-top { grid-template-columns: 70px minmax(0, 1fr) auto; } }
.add-needed-box .add-slot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.add-needed-box .add-slot > select, .add-needed-box .add-slot .slot-times { width: 100%; }
.add-needed-box .add-slot > .btn { align-self: flex-start; }
.roster-item .ask-btn { font-size: 12.5px; padding: 2px 9px; margin-top: 2px; }
.add-needed-box > select { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 8px 10px; font-size: 14px; margin-bottom: 8px; }
.new-pill { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; }
.notif-row { flex-wrap: wrap; }
.notif-when { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.notif-when select, .notif-when input { font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.cb-head { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.cb-date { font-family: var(--serif, Georgia, serif); font-size: 20px; }
.cb-status { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--warn-soft, #fdf3dc); color: var(--warn, #8a5a00); }
.cb-status.is-sent { background: var(--good-soft, #e3f4ea); color: var(--good, #1f7a4a); }
.create-bulletin .sched-preview .hint { display: none; }
.bulletin-greeting { white-space: pre-line; font-size: 16px; line-height: 1.55; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft, #fbf3e2); border-left: 4px solid var(--gold, #b5832a); margin: 0; }
.ps-greeting { white-space: pre-line; text-align: center; font-style: italic; margin: 0 0 10pt; }
.sched-kind { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 10px; background: var(--info-soft, #eef2f8); align-self: flex-start; }
.sched-kind button { border: 0; background: none; border-radius: 8px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sched-kind button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.sched-song { width: 100%; min-width: 0; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.song { font-style: italic; }
.add-slot-btn { align-self: flex-start; margin-top: 6px; }
.add-slot-sheet .form { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; padding: 2px; }
.add-slot-sheet select, .add-slot-sheet input[type=number] { width: 100%; }
.add-slot-sheet .slot-times { margin-top: 6px; }
.role-needed { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.role-needed input { width: 64px; font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.role-needed small { font-weight: 400; color: var(--muted); }
.manage-lists { margin-top: 10px; padding-top: 14px; border-top: 2px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.manage-lists-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.manage-list-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.manage-list-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.manage-list-tile svg { color: var(--muted); }
.manage-list-tile strong { font-size: 14.5px; }
.manage-list-tile span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.manage-list-tile:hover { border-color: var(--staff-line); }
.pin-mark { display: inline-flex; vertical-align: -2px; color: var(--gold, #b5832a); }
.pin-mark svg { transform: rotate(35deg); }
.serving-time { font-weight: 700; }
.give-btn { flex: none; width: 92px; margin-top: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: center; }
.give-btn .give-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft, #fbf3e2); color: var(--gold, #b5832a); }
.give-btn strong { font-size: 15px; }
.give-btn small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.as-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--info-soft, #eef2f8); font-size: 14px; }
.slot-time-text { grid-column: 1 / -1; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.slot-time-text .link-btn { font-size: 13px; }
.compact-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.compact-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); min-height: 48px; }
.compact-row:last-child { border-bottom: 0; }
.compact-row.is-pending { background: color-mix(in srgb, var(--gold, #b5832a) 7%, var(--surface)); }
.compact-date { flex: none; width: 50px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.compact-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.compact-main strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-main small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-actions { flex: none; display: flex; gap: 4px; }
.compact-status { flex: none; border: 0; background: none; padding: 0; cursor: pointer; }
.btn-xs { padding: 4px 9px; font-size: 12.5px; min-height: 30px; border-radius: 8px; gap: 4px; }
.show-more { align-self: flex-start; font-size: 13.5px; margin-top: 4px; }
.passed-note { font-size: 13px; }
.passed-by { margin: 2px 0 4px; font-size: 12.5px; color: var(--bad, #b42318); }
.give-wide { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gold, #b5832a); background: var(--gold-soft, #fbf3e2); color: var(--ink); text-decoration: none; }
.give-wide .give-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--gold, #b5832a); }
.share-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px dashed var(--staff-line); border-radius: 10px; background: var(--staff-soft); }
.share-box .hint { margin: 0; }
.review-head { display: flex; align-items: center; gap: 8px; }
.review-title { font-size: 16px; }
.review-photo { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: 12px 0 0; }
.add-fill-in { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.add-fill-in input { flex: 1; min-width: 160px; }
.fill-in-inline { display: flex; flex-direction: column; gap: 4px; }
/* Manage Church: everyday tools, then plain Settings */
.manage-main { display: flex; flex-direction: column; gap: 10px; }
.manage-settings { margin-top: 18px; }
.manage-settings h2 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.manage-settings ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.settings-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.settings-row > span { flex: 1; display: flex; flex-direction: column; }
.settings-row strong { font-weight: 600; font-size: 15px; }
.settings-row small { color: var(--muted); font-size: 12.5px; }
.settings-row svg { color: var(--muted); }
/* Compact team cards */
.team-head { align-items: center; }
.team-head .add-slot-btn { margin: 0; }
.team-empty { margin: 0; }
.slot { padding-block: 6px; }
.slot-role { display: flex; flex-direction: column; line-height: 1.25; }
.slot-role .slot-time-text { grid-column: auto; font-weight: 400; font-size: 12px; display: inline-flex; gap: 6px; }
.slot-role .slot-time-text .link-btn { font-size: 12px; padding: 0; }
.slot .notify-btn { grid-column: 1 / -1; justify-self: start; }
.how-it-works summary { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.how-it-works p { margin: 6px 0 0; }
.planning-tabs { margin-bottom: 2px; }
.slot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 28px; grid-template-areas: "role who x"; align-items: start; }
.slot-role .slot-time-text { white-space: nowrap; }
.slot select { padding: 7px 8px; font-size: 14px; }
.slot .icon-btn { width: 28px; height: 28px; }
.slot .slot-times, .slot .open-notice, .slot .notify-btn, .slot .passed-by { grid-column: 1 / -1; }
.slot-status { font-size: 11.5px; font-weight: 700; }
.slot-status.is-accepted { color: var(--good, #1f7a4a); }
.slot-status.is-pending { color: var(--warn, #8a5a00); }
.slot-status.is-declined { color: var(--bad, #b42318); }
.slot-status.is-open { color: var(--muted); }
.slot-time-btn { align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px dotted var(--line); }
.slot-time-btn:hover { color: var(--ink); }
.archive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.archive-row { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.archive-row strong { font-size: 15px; }
.archive-link { margin-top: 6px; }
.meeting-reminder { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--info, #2b4a7a); background: var(--info-soft, #eef2f8); color: var(--ink); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.meeting-card .meeting-next { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.meeting-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.meeting-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.meeting-row:last-child { border-bottom: 0; }
/* Calendar: My calendar first, with a clear way to find other church events */
.discover { border: 1.5px solid var(--gold, #b5832a); border-radius: 16px; padding: 14px; background: linear-gradient(160deg, var(--gold-soft, #fbf3e2), var(--surface) 70%); display: flex; flex-direction: column; gap: 10px; }
.discover-head { display: flex; gap: 12px; align-items: center; }
.discover-head strong { display: block; font: 600 17px/1.25 var(--font-display, Georgia, serif); }
.discover-head span { font-size: 13px; color: var(--muted); }
.discover-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold, #b5832a); color: #fff; flex: none; }
.discover-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.discover-list li { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 10px; }
.discover-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 2px 0; }
.discover-date { flex: none; width: 46px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gold, #b5832a); }
.discover-title { min-width: 0; display: flex; flex-direction: column; font-weight: 700; font-size: 15px; }
.discover-title small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.discover-add { flex: none; display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
/* Event titles stand out in the calendar list */
/* Conference-only controls are blue (matching the Conference Controls box on Me); church staff tools stay purple. */
.conf, .conf-scope { --staff: #1d6f7a; --staff-soft: #e2f0f2; --staff-line: #93c6cd; --staff-on: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .conf, :root:not([data-theme="light"]) .conf-scope { --staff: #7cc7d1; --staff-soft: #12343a; --staff-line: #2e6670; --staff-on: #0b2a30; } }
:root[data-theme="dark"] .conf, :root[data-theme="dark"] .conf-scope { --staff: #7cc7d1; --staff-soft: #12343a; --staff-line: #2e6670; --staff-on: #0b2a30; }
.badge-staff.conf { background: #1d6f7a !important; color: #fff !important; }
.invite-by-name { display: flex; flex-direction: column; gap: 6px; }
.name-matches { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.name-matches li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.name-matches li:last-child { border-bottom: 0; }
.name-matches li > span { flex: 1; min-width: 0; }
.sermon-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.sermon-mini input { min-width: 0; font-size: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.sermon-mini #bu-title { grid-column: 1 / -1; font-weight: 600; }
.sched-print-more summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.sched-print-more .sched-print { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.head-actions { display: flex; gap: 8px; }
/* Calendar: make "All Church Events" hard to miss */
.cal-tabs { align-items: stretch; }
.cal-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.2; }
.tab-new { display: inline-flex; align-items: center; flex: none; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--bad, #b42318); font-size: 10.5px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
/* Meeting attendance */
.rsvp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rsvp-q { font-size: 13.5px; font-weight: 700; margin-right: 4px; }
.rsvp-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rsvp-btn.is-yes { background: var(--good, #1f7a4a); border-color: var(--good, #1f7a4a); color: var(--surface); }
.rsvp-btn.is-no { background: var(--bad-soft, #fde8e6); border-color: var(--bad, #b42318); color: var(--bad, #b42318); }
.rsvp.is-compact .rsvp-btn { padding: 3px 9px; font-size: 12px; }
.rsvp-note { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rsvp-note input { flex: 1; min-width: 150px; font-size: 14px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.meeting-row { flex-wrap: wrap; }
.meeting-rsvp { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; padding-left: 56px; }
.rsvp-summary { margin: 0; font-size: 12.5px; color: var(--muted); }
.rsvp-no { color: var(--bad, #b42318); font-weight: 600; }
.rsvp-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); }
.rsvp-tag.is-yes { color: var(--good, #1f7a4a); }
.rsvp-tag.is-no { color: var(--bad, #b42318); }
.event-rsvp { padding: 10px 12px; border-radius: 12px; background: var(--info-soft, #eef2f8); }
.meeting-reminder { flex-direction: column; align-items: stretch; cursor: default; }
.meeting-reminder-open { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
@media (min-width: 440px) { .sermon-mini { grid-template-columns: 1fr 1fr 1fr; } }
.sermon-mini { padding: 6px; gap: 5px; }
.move-path { display: flex; align-items: center; gap: 6px; margin: 0; }
.move-form .callout { margin-bottom: 4px; }
.move-pending { align-items: center; }
/* Calendar tabs: "My calendar" is clearly pressed; "All Church Events" twinkles gold to invite a tap */
.cal-tabs { background: var(--info-soft); }
.cal-tabs button.is-on { background: var(--navy, #1d2b44); color: #fff; box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }
.cal-tabs .tab-explore { position: relative; color: var(--ink); font-weight: 700; background: transparent; }
.cal-tabs .tab-explore-main { display: inline-flex; align-items: center; gap: 6px; color: inherit; }   /* plain text; only the outer glow invites a tap */
.cal-tabs .tab-explore-sub { font-size: 11.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.cal-tabs .tab-explore::after { content: none; }
.tab-new { background: var(--bad, #b42318); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .cal-tabs .tab-explore::after { animation: gold-glow 3.2s ease-in-out infinite; }
  @keyframes gold-shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
  @keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
  @keyframes gold-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(210,154,53,0); } 50% { box-shadow: 0 0 10px 1px rgba(210,154,53,.45); } }
}
.subscribe-link { margin-top: 6px; }
.sub-link { display: flex; gap: 6px; }
.sub-link input { flex: 1; min-width: 0; font-size: 13px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); }
.subscribe-sheet .btn-block { justify-content: center; }
.msg-more { align-self: center; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 8px; cursor: pointer; opacity: .55; }
.msg-more:hover, .msg-more:focus-visible { opacity: 1; background: var(--paper-2, rgba(0,0,0,.05)); }
.msg-mine .msg-more { order: -1; }
.ma-quote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.safety-item { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.safety-item:first-of-type { border-top: 0; }
.safety-item q { font-style: italic; overflow-wrap: anywhere; }
.sermons-btn .give-icon { background: var(--info-soft); color: var(--ink); }
.compact-row { flex-wrap: wrap; }
.compact-row .swap-line, .compact-row .swap-ask { flex-basis: 100%; margin: -4px 0 2px 60px; text-align: left; }
.swap-line { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); display: block; }
.swap-line svg { display: inline-block; vertical-align: -2px; margin-right: 3px; }
.swap-line .link-btn { margin-left: 6px; }
.card-title svg { vertical-align: -2px; margin-right: 4px; }
.swap-ask { font-size: 12.5px; justify-self: start; }
.swap-approvals { margin-bottom: 12px; }
.swap-item { display: grid; gap: 6px; font-size: 14px; }
.slot .swap-approvals { grid-column: 1 / -1; margin: 6px 0 0; }
.reach-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink); margin-top: 6px; }
.reach-line svg { color: var(--muted); }
.reach-bar { flex: 1 0 60px; max-width: 140px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.reach-bar span { display: block; height: 100%; background: var(--good, #2f7d4f); border-radius: 3px; }
.reach-card { padding: 10px 14px; margin-bottom: 12px; }
.reach-card .reach-line { margin: 0; }
.reach-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.reach-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 4px 6px 6px 0; }
.reach-table td { padding: 7px 6px 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.reach-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.reach-table td small { display: block; color: var(--muted); font-size: 12px; }
.reach-table .reach-bar { display: block; width: 70px; margin-top: 6px; }
/* Union (green), Division (slate) and Super Admin (charcoal) controls */
.row-link.region-link { border-color: transparent; color: #fff; }
.row-link.union-link, .row-link.division-link { background: linear-gradient(135deg, #1d6f7a 0%, #0f4552 100%); }
.row-link.super-link { background: linear-gradient(135deg, #3a3a40 0%, #1c1c20 100%); }
.row-link.region-link .quick-icon { background: rgba(255,255,255,.18); color: #fff; }
.row-link.region-link .quick-text > span, .row-link.region-link > svg { color: rgba(255,255,255,.88); }
.row-link.region-link strong { color: #fff; }
.region-union, .region-division { --staff: #1d6f7a; --staff-soft: #e2f0f2; --staff-line: #93c6cd; --staff-on: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .region-union, :root:not([data-theme="light"]) .region-division { --staff: #7cc7d1; --staff-soft: #12343a; --staff-line: #2e6670; --staff-on: #0b2a30; } }
:root[data-theme="dark"] .region-union, :root[data-theme="dark"] .region-division { --staff: #7cc7d1; --staff-soft: #12343a; --staff-line: #2e6670; --staff-on: #0b2a30; }
.view-as-banner { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 7px 12px; background: #1c1c20; color: #fff; font-size: 13.5px; }
.view-as-banner .link-btn { color: #ffd98a; }
.view-as-list { display: grid; gap: 6px; }
.view-as-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; cursor: pointer; }
.view-as-opt.is-on { border-color: var(--ink); background: var(--paper-2, rgba(0,0,0,.04)); font-weight: 600; }
.role-level { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 0 0; }
.role-place { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.role-add { display: flex; gap: 6px; }
.role-add input { flex: 1; min-width: 0; }
.file-link { position: relative; cursor: pointer; display: inline; }
.file-link input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.bulk-preview { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.bulk-preview p { margin: 0 0 6px; }
.bad-text { color: var(--bad); }
.reach-table tr.is-problem td { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.bulk-errors { font-size: 13.5px; color: var(--bad); padding-left: 18px; }
.setup-card { padding: 14px 16px; margin-bottom: 14px; border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent); background: var(--gold-soft); }
.setup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.setup-head h2 { font-size: 17px; margin: 0; }
.setup-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 2px; }
.setup-step { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 4px; background: none; border: 0; text-align: left; color: inherit; cursor: pointer; border-radius: 8px; font: inherit; }
.setup-step:hover { background: rgba(0,0,0,.04); }
.setup-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--gold, #b5832a); color: var(--gold, #b5832a); }
.setup-list .is-done .setup-check { background: var(--good, #2f7d4f); border-color: var(--good, #2f7d4f); color: #fff; }
.setup-list .is-done strong { text-decoration: line-through; opacity: .7; }
.setup-step .quick-text { flex: 1; min-width: 0; }
/* Your Chats: compact rows */
.chat-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.chat-rows li + li { border-top: 1px solid var(--line); }
.chat-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: none; border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; min-height: 52px; }
.chat-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.chat-row-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.chat-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-row-main strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row-main small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row-main small b { font-weight: 600; }
.chat-row-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11.5px; color: var(--muted); }
.chat-row.is-unread strong, .chat-row.is-unread small { color: var(--ink); }
.badge.chat-badge { position: static; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 700; }
.about-brand { display: flex; flex-direction: column; gap: 1px; margin: 0 0 4px; }
.about-brand strong { font-family: var(--serif, Georgia, serif); font-size: 19px; }
.about-brand span { color: var(--gold); font-weight: 600; font-size: 14px; }
.auth-tagline { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 15px; }
/* Livestream, Sermons and Give share the row equally: full width alone, halves for two, thirds for three. */
.stream-give { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.stream-give > * { min-width: 0; }
.stream-give .give-btn { width: auto; }
.stream-give.n-1 .give-btn { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 12px 14px; }
.stream-give.n-1 .give-btn small { margin-left: auto; }
.stream-give:not(.n-1) .stream-row { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 10px 6px; }
.stream-give:not(.n-1) .stream-row .stream-play { width: 34px; height: 34px; }
.stream-give:not(.n-1) .stream-row .quick-text { align-items: center; }
.stream-give:not(.n-1) .stream-row strong { font-size: 15px; }
.stream-give:not(.n-1) .stream-row .muted { font-size: 10.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stream-give:not(.n-1) .stream-cta { display: none; }
.stream-give:not(.n-1) .stream-row .quick-text { flex: none; }
/* Click-through tour */
.tour { position: fixed; inset: 0; z-index: 2000; }
.tour-dim { position: fixed; inset: 0; background: rgba(10, 18, 32, .7); }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 3px var(--gold); pointer-events: none; }
.tour-card { position: fixed; left: 50%; margin-left: max(-200px, calc(-50vw + 16px)); width: min(400px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.35); outline: none; }
.tour-card h2 { font-family: var(--serif, Georgia, serif); font-size: 20px; margin: 2px 0 6px; }
.tour-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.tour-count { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.tour-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.tour-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.tour-dots span.is-on { background: var(--gold); width: 16px; border-radius: 3px; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-nav { display: flex; gap: 8px; margin-left: auto; }
.tour-invite { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent); margin-bottom: 12px; }
.tour-invite .quick-text { flex: 1; min-width: 0; }
.tour-invite .quick-icon { background: var(--surface); color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }
.tour-invite { flex-wrap: wrap; }
.tour-invite .tour-invite-x { align-self: flex-start; }
.tour-invite .tour-invite-go { flex-basis: 100%; justify-content: center; }
html.touring .sheet-backdrop { display: none; }
.tour-exit { position: absolute; top: 8px; right: 8px; }
.tour-card { position: fixed; }
.tour-again { align-self: flex-start; font-size: 13.5px; }
/* Calendar tabs in dark mode: the selected tab is gold so it reads as pressed */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-tabs button.is-on { background: var(--gold); color: #1a1406; box-shadow: inset 0 2px 4px rgba(0,0,0,.35); } }
:root[data-theme="dark"] .cal-tabs button.is-on { background: var(--gold); color: #1a1406; box-shadow: inset 0 2px 4px rgba(0,0,0,.35); }
.group-card .meeting-next { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.group-card .alert-pill { align-self: flex-start; }
.rsvp-btn.is-remote { background: var(--story); border-color: var(--story); color: var(--surface); }
.rsvp { flex-wrap: wrap; }
.cal-tabs button.is-on .tab-explore-main { background: none; -webkit-text-fill-color: currentColor; color: inherit; animation: none; }
.cal-tabs button.is-on .tab-explore-main::before { color: currentColor; -webkit-text-fill-color: currentColor; animation: none; }
/* News & Announcements filter: one compact dropdown */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-select { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; }
/* The real (invisible) select covers the whole pill, so a tap anywhere on it opens the menu. */
.filter-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.filter-select > svg:nth-of-type(2) { transform: rotate(90deg); color: var(--muted); }
.filter-select:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter-count { font-size: 13px; }
.roster-notice { margin: 4px 0 2px; }
.your-data { display: flex; flex-direction: column; gap: 10px; }
.your-data .link-btn { align-self: flex-start; text-align: left; }
.sched-toolbar { display: flex; align-items: flex-start; gap: 8px; }
.sched-toolbar > .chips { flex: 1; min-width: 0; }
.sched-gear { position: relative; flex: none; }
.sched-gear .badge { position: absolute; top: -4px; right: -4px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.sub-title { font-size: 15px; margin: 6px 0 0; }
.sheet select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); margin: 8px 0 12px; }
.cal-add { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.cal-add-circle { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--navy-ink, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-add-circle { background: var(--gold); color: #1a1406; } }
:root[data-theme="dark"] .cal-add-circle { background: var(--gold); color: #1a1406; }
/* Swipe a chat left to hide it */
.chat-swipe { position: relative; overflow: hidden; background: #b42318; }
.chat-swipe .chat-row { position: relative; background: var(--surface); touch-action: pan-y; user-select: none; }
.chat-hide-btn { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: #b42318; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.hidden-chats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hidden-chats li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.group-settings { max-height: 88vh; overflow-y: auto; }
.settings-block { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.group-settings .btn-outline.staff { justify-self: start; }
.date-select { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; }
.date-select-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-select > svg:nth-of-type(2) { transform: rotate(90deg); color: var(--muted); }
.date-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.date-select:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.sched-toolbar { align-items: center; }
@media (max-width: 899px) { .sched-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.sched-preview-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 8px; }
.next-sabbath-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
/* A section only some people see (e.g. Who's Serving on the bulletin): purple bar down its side */
.section.staff-side { border-left: 4px solid var(--staff); padding-left: 12px; }
.staff-side-note { margin: -4px 0 8px; font-size: 12.5px; color: var(--staff); font-weight: 600; }
/* News stories stand apart from announcements: blue accent and label */
:root { --story: #2563a8; --story-soft: #e8f0fa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --story: #8ab8ee; --story-soft: #18263a; } }
:root[data-theme="dark"] { --story: #8ab8ee; --story-soft: #18263a; }
.ann-row.is-story { background: var(--story-soft); border-color: color-mix(in srgb, var(--story) 35%, var(--line)); border-left: 4px solid var(--story); }
.ann-row.is-story .news-source { color: var(--story); }
.ann-row-action { justify-content: space-between; }
.feed-tool { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.feed-tool:hover { color: var(--ink); border-color: var(--ink); }
.hidden-anns { font-size: 14px; }
.hidden-anns summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.hidden-anns ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.hidden-anns li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ann-hidden-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.ann-hidden-title { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-hidden-line .feed-tool { padding: 2px 9px; font-size: 12px; }
.rsvp-tag.is-remote { color: var(--story); }
/* ---------- Order of Service: compact lines, edit in popups ---------- */
.sched-sheet { max-height: 90vh; overflow-y: auto; }
.sched-sheet .field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sched-sheet .field input, .sched-sheet .field select, .sched-sheet .field textarea, .sched-sheet > .stack > input { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.sched-sheet-row { display: flex; gap: 10px; }
.sched-sheet-row .grow { flex: 1; min-width: 0; }
.sched-sheet-min { width: 92px; flex: none; }
.sched-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.sched-sheet-tools { display: flex; align-items: center; gap: 6px; }
.sched-service { gap: 0; padding: 0; overflow: hidden; }
.sched-service-bar { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; width: 100%; padding: 12px 14px; background: var(--staff-soft); border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.sched-service-at { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--staff); }
.sched-service-title { font-family: var(--font-display); font-size: 18px; }
.sched-service-len { font-size: 12.5px; margin-left: auto; }
.sched-dots { color: var(--muted); font-weight: 700; }
.sched-lines { list-style: none; margin: 0; padding: 0; }
.sched-lines li + li { border-top: 1px solid var(--line); }
.sched-line { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 9px 14px; background: none; border: 0; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.sched-line:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.sched-line-at { flex: none; width: 44px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.sched-line-at.is-unknown { opacity: .6; }
.sched-line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sched-line-main strong { font-size: 15px; font-weight: 600; }
.sched-line-what { font-size: 13px; font-style: italic; color: var(--ink); opacity: .85; }
.sched-line-sub { font-size: 12.5px; color: var(--muted); }
.sched-line-sub b { font-weight: 700; }
.sched-line-len { flex: none; font-size: 12px; color: var(--muted); padding-top: 2px; }
.sched-add-line { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--staff); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.sermon-bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; }
.sermon-bar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sermon-bar-main strong { font-family: var(--font-display); font-size: 17px; }
.sermon-bar-main .muted { font-size: 13px; }
.sermon-bar > svg { color: var(--muted); }
/* ---------- Who's Serving: compact team cards ---------- */
.team-card { padding: 0; gap: 0; overflow: hidden; }
.team-card .team-head { padding: 12px 14px; align-items: flex-start; }
.team-counts { display: flex; gap: 12px; font-size: 13px; font-weight: 700; margin-top: 2px; }
.team-counts .is-accepted { color: var(--good); }
.team-counts .is-pending { color: var(--warn); }
.team-counts .is-open { color: var(--bad); }
.team-card .team-empty { padding: 0 14px 12px; margin: 0; }
.role-group-head { padding: 6px 14px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.slot-lines { list-style: none; margin: 0; padding: 0; }
.slot-lines li + li { border-top: 1px solid var(--line); }
.slot-line { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: none; border: 0; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.slot-line:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.slot-line > svg { color: var(--muted); flex: none; }
.slot-av { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.slot-av.is-open { background: var(--bad); color: #fff; font-size: 14px; }
.slot-badge { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; border: 2px solid var(--surface); }
.slot-badge.is-accepted { background: #2f8a55; }
.slot-badge.is-pending { background: #c58a1a; }
.slot-badge.is-declined { background: #b42318; }
.slot-line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.slot-line-main strong { font-size: 15px; font-weight: 600; }
.slot-line.is-open .slot-line-main strong { color: var(--bad); }
.slot-line-main small { font-size: 12.5px; color: var(--muted); }
.slot-sheet { max-height: 90vh; overflow-y: auto; }
.slot-sheet select { width: 100%; font-size: 16px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
/* Order of Service: which date you're editing, with arrows to step through dates */
.date-nav { display: flex; align-items: stretch; gap: 6px; }
.date-nav .date-step { flex: none; align-self: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); }
.date-nav .date-step:disabled { opacity: .35; }
.date-select.is-big { border: 2px solid var(--staff); background: var(--staff-soft); padding: 8px 12px; }
.date-select.is-big .date-select-label { display: flex; flex-direction: column; gap: 1px; white-space: normal; font-size: 16px; }
.date-select.is-big .date-select-label small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--staff); }
.date-select.is-big .date-select-label em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.date-change { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 4px 10px; border-radius: 999px; background: var(--staff); color: var(--staff-on); font-size: 12.5px; font-weight: 700; }
.date-change svg { transform: rotate(90deg); }
.add-date { flex-wrap: wrap; }
/* A bit more breathing room inside the schedule cards */
.sched-line, .slot-line, .sched-add-line { padding-left: 16px; padding-right: 16px; }
.sched-service-bar, .team-card .team-head { padding-left: 16px; padding-right: 16px; }
.role-group-head { padding-left: 16px; padding-right: 16px; }
.day-events { padding: 14px 16px; }
/* Who sees it: our church / nearby churches / the whole Conference */
.send-to { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; margin: 0; display: grid; gap: 4px; }
.send-to legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.send-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; cursor: pointer; }
.send-opt.is-on { background: var(--info-soft); }
.send-opt.is-disabled { opacity: .55; cursor: default; }
.send-opt input { margin-top: 3px; }
.send-opt span { display: flex; flex-direction: column; gap: 1px; }
.send-opt small { font-size: 12.5px; color: var(--muted); }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nearby-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.nearby-status { font-size: 12.5px; font-weight: 700; }
.nearby-status.is-approved { color: var(--good); }
.nearby-status.is-pending { color: var(--warn); }
.nearby-status.is-declined { color: var(--bad); }
.send-to .send-opt { display: flex; flex-direction: row; text-align: left; width: 100%; margin: 0; font-weight: 400; }
.send-to .send-opt input[type=radio] { width: auto; flex: none; margin: 3px 0 0; padding: 0; }
.send-to .send-opt span { flex: 1; min-width: 0; }
.send-to .send-opt strong { font-size: 14.5px; }
.nearby-review .nearby-list li { flex-wrap: wrap; }
.nearby-review .row-end { flex: none; display: flex; gap: 6px; margin-left: auto; }
/* Participate full schedule: "Ask someone" on the left, OPEN - Notify on the right, under the Open line */
.roster-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.roster-actions .roster-notice { margin: 0 0 0 auto; }
.roster-actions .ask-box { flex-basis: 100%; }
.roster-actions .ask-box ~ .roster-notice { display: none; }
.school-card { display: grid; gap: 10px; padding: 14px 16px; }
.school-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.school-head strong { font-family: var(--font-display); font-size: 17px; }
.school-row { display: grid; gap: 4px; font-size: 14.5px; }
.school-row .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
/* Church Directory */
.directory { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.dir-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dir-row:hover { background: var(--bg); }
.dir-row > svg { color: var(--muted); flex: none; }
.directory > li + li { border-top: 1px solid var(--line); }
.dir-note { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-listme { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.person-sheet { max-height: 90vh; overflow-y: auto; position: relative; }
.person-sheet .sheet-x { position: absolute; top: 10px; right: 10px; }
.person-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; padding-right: 32px; }
.person-top .sheet-title { margin: 0 0 2px; }
.person-photo { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 50%; overflow: hidden; width: 88px; height: 88px; }
.person-photo img { width: 88px; height: 88px; object-fit: cover; display: block; }
.person-note { font-family: Lora, Georgia, serif; font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.person-sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: grid; gap: 8px; }
.person-sec > .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fam-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.fam-list small { flex-basis: 100%; }
.fam-edit { display: grid; gap: 6px; padding: 12px; }
.fam-edit-head { display: flex; justify-content: space-between; align-items: center; }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.perm-list .toggle-row { padding: 6px 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dir-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dir-main strong { font-size: 15px; }
.dir-titles { font-size: 13px; color: var(--story); font-weight: 600; }
.title-sheet { max-height: 88vh; overflow-y: auto; }
.title-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.title-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.title-chip.is-on { background: var(--story); border-color: var(--story); color: var(--surface); font-weight: 600; }

/* Super Admin: Conference roles */
.conf-role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.conf-role-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conf-role-list li > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.conf-role-list small { flex-basis: 100%; }
.conf-role-add { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 640px) { .conf-role-add { grid-template-columns: 1fr auto auto auto; align-items: center; } }

/* Bulk-message groups */
.bulk { display: grid; gap: 14px; }
.bulk-all { display: grid; gap: 8px; padding: 14px; }
.bulk-all textarea { width: 100%; }
.bulk-sent summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.bulk-sent ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.bulk-sent time { color: var(--muted); font-size: 12px; margin-right: 6px; }
.bulk-note { display: flex; gap: 6px; align-items: flex-start; }
.task-form { display: grid; gap: 6px; padding: 14px; margin-bottom: 10px; }
.task-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.task-tab { flex: none; display: grid; text-align: left; gap: 1px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 8px 12px; font: inherit; cursor: pointer; max-width: 260px; }
.task-tab strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-tab small { font-size: 12px; color: var(--muted); }
.task-tab.is-on { border-color: var(--accent, var(--story)); box-shadow: inset 0 0 0 1px var(--accent, var(--story)); }
.task-tally { margin-top: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.task-tally p { margin: 0; }
.tally-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; }
.tally-row .btn { margin-left: auto; }
.tally b { font-size: 18px; margin-right: 3px; }
.tally.is-done b { color: var(--good); }
.tally.is-working b { color: var(--story); }
.tally.is-none b { color: var(--muted); }
.tally-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.tally-bar .is-done { background: var(--good); }
.tally-bar .is-working { background: var(--story); }
.tally-bar .is-none { background: var(--line); }
.task-card { display: grid; gap: 6px; padding: 12px 14px; }
.task-card p { margin: 0; }
.task-pill { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.task-pill.is-done { background: var(--good-soft); color: var(--good); }
.task-pill.is-working { background: var(--info-soft); color: var(--story); }
.task-pill.is-none { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.thread-box { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; display: grid; gap: 6px; }
.thread-box.is-new { border-color: var(--accent, var(--story)); box-shadow: inset 3px 0 0 var(--accent, var(--story)); }
.thread-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.thread-who { flex: 1; min-width: 0; display: grid; }
.thread-who strong, .thread-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-who small { color: var(--muted); font-size: 12px; }
.thread-head time { font-size: 12px; color: var(--muted); flex: none; }
.thread-msgs { display: grid; gap: 4px; }
.thread-msg { margin: 0; font-size: 14px; line-height: 1.4; padding: 6px 10px; border-radius: 10px; background: var(--bg); }
.thread-msg.is-leader { background: var(--info-soft); }
.thread-more { justify-self: start; font-size: 12.5px; }
.thread-reply { display: flex; gap: 6px; align-items: center; }
.thread-reply input { flex: 1; min-width: 0; padding: 7px 10px; font-size: 14px; }
.bulk-group { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; margin-top: 8px; }
.bulk-group > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bulk-group[open] > summary { margin-bottom: 8px; }
.bulk-done > summary { color: var(--good); }
.alert-line .alert-pill { background: none !important; border: 0 !important; padding: 0 !important; }
.alert-line .alert-pill.is-conf { color: inherit; }

/* Example text in empty fields: italic and dimmer than real text, so it never looks filled in (especially in dark mode). */
input::placeholder, textarea::placeholder { color: #8a94a3; font-style: italic; opacity: 1; }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: #5f6c80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input::placeholder, :root:not([data-theme="light"]) textarea::placeholder { color: #5f6c80; } }

/* Calendar: each event looks tappable (a card on hover/press, and a chevron) */
button.agenda-main { position: relative; padding: 8px 30px 8px 10px; border-radius: 0 10px 10px 0; transition: background .15s ease; }
button.agenda-main:hover, button.agenda-main:focus-visible { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
button.agenda-main:active { background: var(--bg); }
.agenda-chevron { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.agenda-item { align-items: center; }
.delete-confirm { flex-direction: column; align-items: stretch; gap: 8px; }

/* Group tools: how people talk + meetings / deadlines */
.group-tools { display: grid; gap: 12px; }
.mode-pick, .tool-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.mode-pick legend, .tool-pick legend { font-size: 13px; font-weight: 700; margin-bottom: 4px; padding: 0; }
.mode-opt, .tool-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.mode-opt.is-on, .tool-opt.is-on { border-color: var(--accent, var(--story)); box-shadow: inset 0 0 0 1px var(--accent, var(--story)); }
.mode-opt input, .tool-opt input { margin-top: 3px; flex: none; accent-color: var(--story); }
.mode-opt span, .tool-opt span { display: grid; gap: 2px; min-width: 0; }
.tool-opt span { grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; }
.tool-opt span small { grid-column: 1 / -1; }
.mode-opt small, .tool-opt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tally-names { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.tally-names div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
.tally-names dt { color: var(--muted); font-weight: 600; }
.tally-names dd { margin: 0; }

/* Followed churches */
.follow-links { margin-top: 10px; }

/* Media Library */
.media-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.media-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.media-link { display: flex; gap: 12px; padding: 10px; color: inherit; text-decoration: none; align-items: flex-start; }
.media-link:hover { background: var(--bg); }
.media-thumb { flex: none; width: 120px; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; overflow: hidden; position: relative; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-play { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.media-text { display: grid; gap: 2px; min-width: 0; }
.media-text strong { font-size: 15px; line-height: 1.3; }
.media-text .muted { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-host { font-size: 12px; color: var(--muted); }
.media-scope { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--story); }
.media-scope.is-conference { color: #0f7a8a; }
.media-scope.is-beliefs { color: var(--gold); }
.media-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 0 10px 10px; }
.media-form { display: grid; gap: 6px; padding: 14px; margin-bottom: 12px; }
.media-thumb-preview { width: 200px; max-width: 100%; border-radius: 10px; }
.seg-field { border: 0; padding: 0; margin: 0 0 6px; }
.seg-field legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
@media (max-width: 420px) { .media-thumb { width: 96px; } }

/* Training */
.tr-progress { display: inline-block; width: 90px; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; vertical-align: middle; flex: none; }
.tr-progress > span { display: block; height: 100%; background: var(--good); border-radius: 4px; }
.tr-card { display: grid; gap: 4px; text-align: left; width: 100%; padding: 12px 40px 12px 14px; position: relative; cursor: pointer; font: inherit; color: inherit; }
.tr-card > svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tr-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tr-card-top strong { font-size: 15.5px; }
.tr-card .muted { font-size: 13px; }
.tr-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.tr-card.is-complete { opacity: .8; }
.tr-desc { margin: 0 0 8px; }
.tr-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.tr-summary .tr-progress { width: 120px; }
.tr-due.is-late { color: var(--bad); font-weight: 600; }
.tr-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.tr-step { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.tr-step.is-done { opacity: .75; }
.tr-step.is-done strong { text-decoration: line-through; text-decoration-color: var(--muted); }
.tr-check { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; display: grid; place-items: center; }
.tr-step.is-done .tr-check { background: var(--good); border-color: var(--good); color: #fff; }
.tr-step-main { display: grid; gap: 3px; min-width: 0; }
.tr-step-main .muted { font-size: 13.5px; }
.tr-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--story); }
.tr-open { justify-self: start; margin-top: 4px; }
.tr-admin { display: grid; gap: 10px; padding: 14px; margin-bottom: 12px; }
.tr-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-people li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.tr-people small { color: var(--muted); min-width: 52px; text-align: right; }
.tr-people small.is-done { color: var(--good); font-weight: 700; }
.track-form { display: grid; gap: 6px; padding: 14px; margin-bottom: 12px; }
.step-edit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step-edit { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.step-edit-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-edit-move { margin-left: auto; display: flex; gap: 2px; }
.seg-sm button { padding: 4px 10px; font-size: 12.5px; }
.form .mode-opt input, .form .tool-opt input, .mode-opt input, .tool-opt input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; }
.mode-opt > span, .tool-opt > span { flex: 1; }

/* Help */
.help-actions { display: grid; gap: 10px; }
.help-action { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.help-action .quick-icon { background: var(--gold-soft); color: var(--gold); }
.faq { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq li + li { border-top: 1px solid var(--line); }
.faq-q { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.faq-q svg { flex: none; color: var(--muted); transition: transform .15s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(90deg); }
.faq-a { margin: 0; padding: 0 14px 14px; color: var(--muted); line-height: 1.5; }
.dyk { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dyk li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.dyk-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--info-soft); color: var(--story); display: grid; place-items: center; }

/* Employee Hub */
.hub-link .quick-icon { background: #d8eef1; color: #0f4552; }
:root[data-theme="dark"] .hub-link .quick-icon { background: #12404a; color: #8fd3de; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hub-link .quick-icon { background: #12404a; color: #8fd3de; } }
.hub-tabs { margin-bottom: 4px; display: grid; grid-template-columns: repeat(3, 1fr); }
.hub-form { display: grid; gap: 6px; padding: 14px; }
.hub-ev { display: grid; gap: 2px; min-width: 0; padding-left: 10px; border-left: 3px solid var(--line); }
.hub-ev .link-btn { justify-self: start; }
.hub-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub-links a.row-link { text-decoration: none; color: inherit; }
.form-row-3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }

/* Guests from other churches in the Service Schedule */
.guest-link { font-size: 13px; justify-self: start; margin-top: -2px; }
.guest-find { display: grid; gap: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.guest-found { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guest-found span { display: grid; }
.guest-found small { color: var(--muted); }
.guest-chip { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; color: var(--story); }

/* Church switcher (pastors with several churches) */
.church-switch { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 10px; background: var(--surface); color: var(--ink); max-width: 100%; }
.church-switch select { border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: inherit; padding: 5px 4px; max-width: 100%; min-height: 0; width: auto; }
.church-switch.is-compact { margin-bottom: 8px; }
.pastor-list .pill { margin-left: 6px; }
.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; }
.pastor-add { display: grid; gap: 6px; margin-top: 6px; }
.member-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.member-filters select { width: auto; max-width: 100%; flex: 1 1 140px; }
.member-detail { padding: 0 16px 12px 66px; margin: 0; }
.visit-banner { background: #0f4552; color: #fff; }
.visit-banner .link-btn { color: #fff; text-decoration: underline; }
.member-filters select { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; padding: 8px 10px; min-height: 38px; }
.cal-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.member-edit { display: grid; gap: 14px; padding: 4px 16px 16px; }
.member-offices, .member-pastor { display: grid; gap: 6px; }
.member-offices > .btn { justify-self: start; }
.member-block { border-top: 1px solid var(--line); padding-top: 12px; }
.invite-as { margin-bottom: 4px; }

/* Help circle (lower right, above the tab bar) */
.help-bubble-wrap { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.help-bubble-wrap > * { pointer-events: auto; }
.help-bubble { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy, #1d2b44); color: #fff; font: 700 20px/1 var(--font-display, Georgia, serif); box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; opacity: .92; }
.help-bubble:hover { opacity: 1; }
:root[data-theme="dark"] .help-bubble { background: var(--gold); color: #1b1408; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .help-bubble { background: var(--gold); color: #1b1408; } }
.help-pop { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 6px; width: 240px; display: grid; gap: 2px; }
.help-pop-row { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px; border: 0; background: none; border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; }
.help-pop-row:hover { background: var(--bg); }
.help-pop-row span { display: grid; }
.help-pop-row small { color: var(--muted); font-size: 12px; }
.help-pop-hide { justify-self: center; font-size: 12.5px; padding: 6px; }
@media (min-width: 900px) { .help-bubble-wrap { bottom: 24px; } }
.hero-settings { position: absolute; top: 14px; right: 16px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.hero-settings:hover { background: rgba(255,255,255,.22); }
.church-settings .row-link { margin-bottom: 8px; }
.church-settings .field { display: grid; gap: 6px; margin-bottom: 10px; }
.church-hero .church-name { padding-right: 46px; }

/* Super Admin bar: thin and gray, across the very top */
.super-bar { display: flex; align-items: center; gap: 8px; padding: 3px max(12px, env(safe-area-inset-left, 0px)); background: #e9ebef; color: #4b5563; font-size: 12px; border-bottom: 1px solid #d6d9df; }
.super-bar-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; flex: none; }
.super-bar select { flex: 1; min-width: 0; max-width: 340px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; padding: 3px 0; min-height: 0; width: auto; }
.super-bar-note { font-style: italic; flex: none; }
.super-bar.is-visiting { background: #dfe3ea; }
:root[data-theme="dark"] .super-bar { background: #20262f; color: #aab3c0; border-color: #2c3440; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .super-bar { background: #20262f; color: #aab3c0; border-color: #2c3440; } }

/* Pastors: their churches */
.pastor-churches { display: grid; gap: 6px; margin-bottom: 4px; }
.pastor-churches-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pastor-church-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pastor-church { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.pastor-church-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.pastor-church-text { display: grid; line-height: 1.2; }
.pastor-church-text strong { font-size: 14px; white-space: nowrap; }
.pastor-church-text small { font-size: 11.5px; color: var(--muted); }
.pastor-church.is-on { border-color: var(--navy, #1d2b44); background: var(--navy, #1d2b44); color: #fff; }
.pastor-church.is-on small { color: rgba(255,255,255,.75); }
.pastor-church.is-on .pastor-church-icon { background: rgba(255,255,255,.15); color: #fff; }
:root[data-theme="dark"] .pastor-church.is-on { background: var(--gold); border-color: var(--gold); color: #1b1408; }
:root[data-theme="dark"] .pastor-church.is-on small { color: rgba(27,20,8,.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pastor-church.is-on { background: var(--gold); border-color: var(--gold); color: #1b1408; } :root:not([data-theme="light"]) .pastor-church.is-on small { color: rgba(27,20,8,.7); } }
/* Order of Service: drag a line by its grip */
.sched-lines > li { display: flex; align-items: stretch; }
.sched-lines > li > .sched-line { flex: 1; min-width: 0; padding-left: 4px; }
.sched-grip { flex: none; width: 30px; display: grid; place-items: center; color: var(--muted); cursor: grab; touch-action: none; user-select: none; }
.sched-grip:active { cursor: grabbing; }
.sched-lines.is-dragging { user-select: none; }
.sched-lines > li.is-dragging { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
/* "I Prayed": an outline button until you tap it, then a filled green "You prayed" */
.pray-btn:not(.is-on), :root[data-theme="dark"] .pray-btn:not(.is-on) { background: var(--surface); color: var(--navy); border: 1.5px solid var(--navy); }
.pray-btn:not(.is-on):hover { background: var(--info-soft); }
.pray-btn.is-on { background: var(--good); color: #fff; border-color: var(--good); }
:root[data-theme="dark"] .pray-btn:not(.is-on) { background: transparent; color: var(--gold); border-color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pray-btn:not(.is-on) { background: transparent; color: var(--gold); border-color: var(--gold); } }

/* The Conference office posting as a school */
.post-as-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--staff-soft, rgba(124, 77, 255, .1)); color: var(--text); font-size: 14px; }

/* Date stepper (Order of Service, Who's Serving, Participate): ‹ date › — the › turns into ＋ at the last date. */
.sched-toolbar > .date-nav { flex: 1; min-width: 0; }
.date-nav .date-select:not(.is-big) .date-select-label { display: flex; flex-direction: column; }
.date-nav .date-select:not(.is-big) .date-change { background: var(--surface-2, rgba(127,127,127,.12)); color: var(--ink); }
.date-nav .date-step.is-add { background: var(--staff); border-color: var(--staff); color: var(--staff-on); }

/* Meeting reminder on My Church: one line plus small answer buttons */
.meeting-reminder { padding: 8px 12px; gap: 6px; border-radius: 12px; }
.meeting-reminder-open { gap: 8px; }
.meeting-reminder-open > svg:first-child { color: var(--info, #2b4a7a); flex: none; }
.meeting-reminder-open > svg:last-child { margin-left: auto; color: var(--muted); flex: none; }
.mr-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.mr-text .muted { font-size: 13px; }
.meeting-reminder .rsvp { padding-left: 24px; }

/* Calendar list, calmer: the whole row is one tap target and highlights edge to edge; the arrow sits at the far right */
.agenda-item { padding: 8px; margin-inline: -8px; border-radius: 12px; transition: background .15s ease; }
button.agenda-main { position: static; padding: 2px 0 2px 10px; border-radius: 0; }
button.agenda-main::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
button.agenda-main:hover, button.agenda-main:focus-visible { background: none; box-shadow: none; }
button.agenda-main:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
.agenda-item:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.agenda-item:active { background: var(--bg); }
.agenda-actions { position: relative; z-index: 1; }
.agenda-actions .agenda-chevron { position: static; transform: none; pointer-events: none; margin-left: 2px; }
.agenda-item { grid-template-columns: 62px 1fr auto; }

/* Groups that need you stand out: a colored edge and a soft tint. Joined groups carry no tag. */
.group-card.needs-attention { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); box-shadow: inset 4px 0 0 var(--bad), var(--shadow, 0 1px 2px rgba(0,0,0,.06)); background: color-mix(in srgb, var(--bad) 4%, var(--surface)); }
.group-card.is-invited { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: inset 4px 0 0 var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.group-last.is-unread { opacity: 1; font-weight: 600; }
.chat-row.is-unread { background: color-mix(in srgb, var(--bad) 5%, transparent); box-shadow: inset 3px 0 0 var(--bad); }
.chat-row.is-unread strong { font-weight: 800; }
.group-card.needs-answer { border-color: color-mix(in srgb, var(--info, #2b4a7a) 40%, var(--line)); box-shadow: inset 4px 0 0 var(--info, #2b4a7a); background: color-mix(in srgb, var(--info, #2b4a7a) 4%, var(--surface)); }
.alert-pill.is-answer { color: var(--info, #2b4a7a); font-weight: 700; }

/* Service & Assignments: one date for both tabs, with Save and Prepare Bulletin at the top (stays in view while scrolling) */
.planning-actions { display: flex; justify-content: flex-end; gap: 8px; }
.planning-actions .btn-primary.has-changes { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent); }
.sched-toolbar-fill { flex: 1; }

/* Groups list, compact: name, one line, and only what needs you */
li.group-card { position: relative; padding: 10px 12px; gap: 6px; cursor: default; }
.group-card-open { display: flex; flex-direction: column; gap: 2px; width: 100%; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.group-card-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.group-card-open:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
li.group-card:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.group-card .group-card-top { font-size: 15.5px; }
.group-card .group-last, .group-meta { -webkit-line-clamp: 1; font-size: 13.5px; }
.group-meta { color: var(--muted); }
.group-card.is-invited .group-card-open { padding-right: 70px; }
.group-join { position: absolute; right: 10px; bottom: 9px; z-index: 1; padding: 4px 14px; min-height: 0; }
.group-answer { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--info, #2b4a7a);
  background: var(--info-soft, #eef2f8); color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.group-answer > svg { color: var(--info, #2b4a7a); flex: none; }
.group-answer > span:nth-child(2) { flex: 1; min-width: 0; }
.group-answer-go { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--info, #2b4a7a); color: var(--surface); font-weight: 700; font-size: 12.5px; }
li.group-card > .alert-pill { position: relative; z-index: 1; }

/* Chat: where you left off */
.chat-new-divider { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--bad); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.chat-new-divider::before, .chat-new-divider::after { content: ""; flex: 1; height: 1.5px; background: color-mix(in srgb, var(--bad) 55%, transparent); }
.msg.is-new .msg-bubble { box-shadow: inset 3px 0 0 var(--bad); }

.view-church { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; margin-top: 10px; }
.view-church select { width: 100%; }
.view-church-now { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
/* Reach: tables get breathing room inside their cards */
.reach .card { padding: 14px 16px; }
.reach-table th:first-child, .reach-table td:first-child { padding-left: 0; }
.reach-table th:last-child, .reach-table td:last-child { padding-right: 0; }
/* "Post as" pickers (Post as a Church, School Controls) */
.region-scope > .stack > label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.region-scope > .stack > label.field select { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 12px; font-size: 16px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }

/* More: notices that need you, full width */
.request-banner.info-banner { border-color: var(--info, #2b4a7a); background: var(--info-soft, #eef2f8); }
.request-banner.info-banner .badge-inline { background: var(--info, #2b4a7a); }
.screen-body > .super-link:first-child { margin-bottom: 4px; }

/* Super Admin viewing another church: a box at the top of every page with a way back */
.visit-box { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; margin: 0 auto; max-width: 720px; padding: 8px 12px 8px 14px;
  background: #3f4652; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.visit-box-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.visit-box-text small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; font-weight: 700; }
.visit-box-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.visit-box-back { flex: none; background: #fff; color: #23272e; border: 0; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tab.is-off { opacity: .35; cursor: not-allowed; }

.details-parts { grid-template-columns: 1fr 1fr 1fr; }
.details-parts button { font-size: 13px; padding: 8px 4px; }
.planning-actions { flex-wrap: wrap; }
.print-menu { position: relative; }
.print-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; display: flex; flex-direction: column; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.18)); }
.print-menu-pop button { text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.print-menu-pop button:hover { background: var(--info-soft); }
/* Prepare Bulletin: publishing comes at the very end, after everything has been looked over */
.bulletin-finish { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--staff-line); background: var(--staff-soft); }
.bulletin-finish p { margin: 0; font-size: 14.5px; }

/* Church Directory: start a chat */
.dir-chat-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--info-soft); }
.dir-chat-bar > span { flex: 1; min-width: 140px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.dir-chat-bar.is-picking { background: var(--gold-soft); border: 1px solid var(--gold-bright); }
.dir-chat-bar.is-picking > span { font-weight: 600; }
.dir-check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; }
.dir-check.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.dir-row.is-picked { background: var(--info-soft); }
.person-chat { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.person-chat .btn { flex: 1; min-width: 140px; justify-content: center; }

/* Media Library: newest videos from the church's YouTube livestream */
.latest-videos .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.latest-videos h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.latest-strip { list-style: none; margin: 8px -16px 0; padding: 0 16px 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.latest-strip li { flex: none; width: 210px; scroll-snap-align: start; }
.latest-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.latest-card strong { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-thumb .media-play { position: absolute; right: 8px; bottom: 8px; }
.demo-feedback .df-log { max-height: 45vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.df-form { display: flex; flex-direction: column; gap: 8px; }
.df-form > input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--paper); }
/* Prayer Wall on My Church: one small line instead of three boxes */
.prayer-unseen { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); text-align: left; }
button.prayer-unseen { color: var(--ink); font-weight: 700; cursor: pointer; }
.prayer-unseen .badge-inline { min-width: 22px; height: 22px; font-size: 12px; }
.profile-offices { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--navy); }
:root[data-theme="dark"] .profile-offices { color: #8fb0e0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .profile-offices { color: #8fb0e0; } }
.serving-view { padding: 12px 14px; }
.serving-view h3 { margin: 0 0 6px; font-size: 15px; }
.serving-view ul { list-style: none; margin: 0; padding: 0; }
.serving-view li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.serving-view li:first-child { border-top: 0; }

/* Toasts with Undo; items fade out slowly before they're hidden */
.toast.has-undo { display: flex; align-items: center; gap: 14px; text-align: left; padding: 8px 8px 8px 16px; }
.toast-undo { flex: none; border: 0; border-radius: 999px; padding: 6px 14px; background: var(--gold-bright, #e2b04a); color: #1d1a12; font: inherit; font-weight: 800; cursor: pointer; }
.is-leaving { opacity: 0; transform: translateX(24px); max-height: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; overflow: hidden;
  transition: opacity .45s ease, transform .45s ease, max-height .6s ease .15s, margin .6s ease .15s, padding .6s ease .15s; }
@media (prefers-reduced-motion: reduce) { .is-leaving { transition: opacity .6s ease; transform: none; } }
.ann-row, .ann-hidden-line, .chat-swipe, li.prayer { max-height: 1400px; }
.toast { width: max-content; }
.toast.has-undo > span { white-space: normal; }

/* Unsaved-changes popup */
.leave-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.leave-actions .btn { width: 100%; justify-content: center; }
/* Service & Assignments: the service picker */
.service-picker { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.service-picker-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--staff); }
.service-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.svc-chip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.svc-chip strong { font-size: 14.5px; white-space: nowrap; }
.svc-chip small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.svc-chip.is-on { border-color: var(--staff); background: var(--staff-soft); box-shadow: inset 0 0 0 1px var(--staff); }
.svc-chip.svc-add { flex-direction: row; align-items: center; gap: 4px; color: var(--staff); border-style: dashed; font-weight: 700; }
.svc-add-menu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc-add-menu .hint { flex-basis: 100%; margin: 0; }
.svc-add-form input { flex: 1; min-width: 0; }
.sched-known { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; display: flex; flex-direction: column; gap: 2px; }
.sched-known small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 13px; }
.planning-actions.is-bottom { position: static; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.print-menu-pop.is-up { top: auto; bottom: calc(100% + 6px); }
.planning-tabs button:disabled { opacity: .4; }
/* Teams & roles settings: room inside each box */
.team-settings { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.team-settings .role-list { margin: 0; }
.team-head-tools { display: inline-flex; align-items: center; gap: 4px; }
.icon-btn-sm { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.icon-btn-sm:disabled { opacity: .35; }
.service-chips { flex-wrap: wrap; overflow: visible; }

/* My Church, for church admins: the Church Details settings at a glance */
.details-preview { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--staff-line); background: var(--staff-soft); display: flex; flex-direction: column; gap: 8px; }
.details-preview-head { display: flex; justify-content: space-between; align-items: center; }
.details-preview .staff-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--staff); }
.details-preview .link-btn { color: var(--staff); font-weight: 700; }
.details-preview dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 520px) { .details-preview dl { grid-template-columns: 1fr 1fr; } }
.details-preview dl > div { display: flex; flex-direction: column; min-width: 0; }
.details-preview dt { font-size: 12px; color: var(--staff); font-weight: 700; }
.details-preview dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; color: var(--ink); }
.details-preview dd.is-empty { color: var(--muted); font-style: italic; }
.details-preview-part { display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--staff-line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.details-preview-part span { font-size: 12px; color: var(--staff); font-weight: 700; }
.details-preview-part strong { font-size: 14px; font-weight: 600; }

/* Training: your plan for a course; purple edit pencils for the Conference */
.tr-plan { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--info-soft); font-size: 14px; }
.tr-plan > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.tr-card-wrap { position: relative; }
.tr-card-wrap .tr-edit { position: absolute; top: 10px; right: 40px; width: 34px; height: 34px; }
.tr-card-wrap:has(.tr-edit) .tr-card-top { padding-right: 76px; }
.tr-admin select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--paper); }
.tr-people li { flex-wrap: wrap; }
.tr-people li > span:first-child { display: flex; flex-direction: column; }

/* Account: Church Offices and requests; Users: office requests to approve */
.office-list, .office-pending, .office-reqs ul { list-style: none; margin: 0; padding: 0; }
.office-list li, .office-pending li, .office-reqs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.office-list li:first-child, .office-reqs li:first-child { border-top: 0; }
.office-pending li { font-size: 14px; color: var(--muted); }
.office-reqs li > span:first-child { display: flex; flex-direction: column; }
.office-ask { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.publish-when { border: 0; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 6px; }
.publish-when legend { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.publish-when input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper); }
.sched-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--info-soft); color: var(--info, #2b4a7a); }

.svc-add-form { display: flex; flex-direction: column; gap: 8px; }
.svc-add-form .field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.svc-add-form input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper); font-size: 15px; color: var(--ink); }
.sermon-bar-main .sched-known { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--staff); margin-bottom: 2px; }
.svc-in-bulletin { padding: 6px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
/* When the service starts (for anyone serving) */
.agenda-svc, .svc-start-line { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.svc-start-line { color: var(--ink); }
.guest-answer { margin: 8px 0; }
.guest-status { font-size: 12px; font-weight: 700; }
.guest-status.is-accepted { color: var(--good); }
.guest-status.is-declined { color: var(--bad); }

.details-preview-part .times-list { font-size: 14px; }
.details-preview-part .times-list li::marker { color: var(--staff); }
.prayer-new.has-new { border-color: var(--bad); color: var(--bad); font-weight: 800; }
.help-go { display: inline; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.offering-wide .quick-text > span { color: var(--ink); font-weight: 600; }
/* Training: a clear "Mark done" on each step, on the same line as its kind */
.tr-kind { display: flex; align-items: center; gap: 4px; }
.tr-mark { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--surface); color: var(--navy);
  font: inherit; font-size: 12px; font-weight: 800; text-transform: none; letter-spacing: 0; cursor: pointer; }
.tr-mark.is-done { background: var(--good); border-color: var(--good); color: #fff; }
:root[data-theme="dark"] .tr-mark:not(.is-done) { border-color: #8fb0e0; color: #8fb0e0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-mark:not(.is-done) { border-color: #8fb0e0; color: #8fb0e0; } }
.my-position { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.my-position p { margin: 0; }
.person-conf select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; background: var(--paper); }
.person-conf .inline-field { flex-wrap: wrap; }
.person-conf select { flex: 1 1 100%; }
.person-offices .inline-field input, .office-chips .inline-field input { min-width: 0; flex: 1; }

/* ---------- More: compact tiles in categories ---------- */
.more-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.more-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.more-sec { display: flex; flex-direction: column; gap: 10px; }
.more-sec-title { margin: 6px 0 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.more-sec-note { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--info-soft); color: var(--navy); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more-grid .row-link.more-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 92px; padding: 12px; margin: 0;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; text-decoration: none; position: relative; box-shadow: none; }
.more-grid .row-link.more-tile > strong { font-size: 14.5px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.more-tile-icon { position: relative; display: inline-flex; color: var(--navy); }
.more-tile-icon .badge { position: absolute; top: -8px; right: -12px; }
.more-tile-icon .badge-dot { position: absolute; top: -2px; right: -4px; }
.more-tile-ext { position: absolute; top: 10px; right: 12px; color: var(--muted); font-size: 13px; }
.more-grid .row-link.more-tile:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.more-grid .row-link.more-tile.is-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.more-grid .row-link.more-tile.is-dark .more-tile-icon { color: #fff; }
.more-grid .row-link.more-tile.is-staff { background: var(--staff-soft); border-color: var(--staff-line); }
.more-grid .row-link.more-tile.is-staff .more-tile-icon { color: var(--staff); }
.more-grid .row-link.more-tile.is-conf { background: color-mix(in srgb, #0f766e 10%, var(--surface)); border-color: color-mix(in srgb, #0f766e 40%, var(--line)); }
.more-grid .row-link.more-tile.is-conf .more-tile-icon { color: #0f766e; }
.more-grid .row-link.more-tile.is-region .more-tile-icon { color: var(--gold); }
:root[data-theme="dark"] .more-tile-icon { color: #8fb0e0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .more-tile-icon { color: #8fb0e0; } }
:root[data-theme="dark"] .more-grid .row-link.more-tile.is-dark { background: #2b4a7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .more-grid .row-link.more-tile.is-dark { background: #2b4a7a; } }
.settings-list { list-style: none; margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.settings-list > * + * { border-top: 1px solid var(--line); }
.settings-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.settings-item > svg:first-child { color: var(--navy); flex: none; }
.settings-item > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.settings-item strong { font-size: 15.5px; }
.settings-item small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-item > svg:last-child { color: var(--muted); flex: none; }
.more-results { display: flex; flex-direction: column; gap: 10px; }

.more-grid .row-link.more-tile > strong { font-size: 14px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.more-grid .row-link.more-tile.is-conf, .more-grid .row-link.more-tile.conference-link { background: color-mix(in srgb, #0f766e 10%, var(--surface)); border-color: color-mix(in srgb, #0f766e 40%, var(--line)); color: var(--ink); }
.more-grid .row-link.more-tile.is-conf strong, .more-grid .row-link.more-tile.conference-link strong { color: var(--ink); }
:root[data-theme="dark"] .more-grid .row-link.more-tile.is-conf .more-tile-icon { color: #5eead4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .more-grid .row-link.more-tile.is-conf .more-tile-icon { color: #5eead4; } }

/* Live now: a blinking red dot on the My Church tab, and the per-service livestream switch */
.tab-live-dot { position: absolute; top: -2px; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad, #e5322d);
  border: 2px solid var(--surface, #fff); animation: tab-blink 1.2s ease-in-out infinite; }
@keyframes tab-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tab-live-dot { animation: none; } }
.live-mini { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad, #e5322d); vertical-align: 1px; margin-right: 2px; }
.svc-live-len { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.svc-live-len input { width: 84px; }
/* Sabbath School classes */
.age-groups { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.age-groups legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
.age-list { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 6px; }
.age-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) 64px minmax(0, .8fr); gap: 8px; align-items: center; }
.age-list input[type=checkbox] { width: 20px; height: 20px; }
.age-list .age-name, .age-list .age-ages { min-width: 0; padding: 6px 8px; }
.times-classes { font-size: 12.5px; margin-top: 2px; }
/* More: the badge sits on the tile's corner, not on the icon */
.more-grid .row-link.more-tile { position: relative; }
.more-tile-badge.badge { position: absolute; top: 8px; right: 8px; }
.more-tile-badge.badge-dot { position: absolute; top: 10px; right: 10px; width: 11px; height: 11px; }
.more-grid .row-link.more-tile:has(.more-tile-ext) .more-tile-badge { right: 30px; }
/* Conference / Union / Division Controls: full-width bars under the tiles */
.more-bar { margin: 10px 0 0; width: 100%; }
.more-bar .quick-text > span { font-size: 13px; }
.more-bar-badge { position: static !important; flex: none; margin-right: 4px; }
.conference-link .more-bar-badge, .region-link .more-bar-badge { background: #fff !important; color: #0f4552 !important; }
.more-search-btn { margin-left: auto; }
.more-search { margin-bottom: 4px; }
.more-search .link-btn { flex: none; }
.bulletin-banner { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 9%, var(--surface)); }
.bulletin-banner .badge-inline { background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
/* Dark mode: settings icons and the "Shown by role" note were navy on navy */
:root[data-theme="dark"] .settings-item > svg:first-child, :root[data-theme="dark"] .bulletin-banner .badge-inline { color: #8fb0e0; }
:root[data-theme="dark"] .bulletin-banner .badge-inline { background: #2b4a7a; color: #fff; }
:root[data-theme="dark"] .more-sec-note { background: #22324c; color: #c7d6ee; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .settings-item > svg:first-child { color: #8fb0e0; }
  :root:not([data-theme="light"]) .bulletin-banner .badge-inline { background: #2b4a7a; color: #fff; }
  :root:not([data-theme="light"]) .more-sec-note { background: #22324c; color: #c7d6ee; }
}
.prayer-new-line { font-size: 14px; color: var(--muted); }
.prayer-new-line.has-new { color: var(--ink); font-weight: 600; }
/* Calendar: each event has its own date block (weekday, day, month) */
.agenda { gap: 8px; }
.agenda-list { gap: 8px; }
.agenda .agenda-item { grid-template-columns: 1fr auto; margin-inline: 0; padding: 10px 10px 10px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.agenda .agenda-item:last-child { border-bottom: 1px solid var(--line); }
.agenda button.agenda-main { flex-direction: row; align-items: flex-start; gap: 12px; padding: 0; border-left: 0; }
.agenda-when { flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; line-height: 1.05; padding-top: 2px; color: var(--ink); }
.aw-wk { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.aw-day { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); margin: 2px 0; }
.aw-mo { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.agenda-when.is-sabbath .aw-wk, .agenda-when.is-sabbath .aw-day { color: var(--gold); }
.agenda-when.is-today .aw-wk { color: var(--bad); }
.agenda-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 3px solid var(--cat, var(--line)); }
.agenda-line { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
:root[data-theme="dark"] .aw-wk, :root[data-theme="dark"] .aw-day { color: #a9c3ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aw-wk, :root:not([data-theme="light"]) .aw-day { color: #a9c3ea; } }
:root[data-theme="dark"] .agenda-when.is-sabbath .aw-wk, :root[data-theme="dark"] .agenda-when.is-sabbath .aw-day { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agenda-when.is-sabbath .aw-wk, :root:not([data-theme="light"]) .agenda-when.is-sabbath .aw-day { color: var(--gold); } }
/* Small round + to add to your calendar (a check once added) */
.cal-plus { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.cal-plus:hover { border-color: var(--navy); }
.cal-plus.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .cal-plus { color: #a9c3ea; } :root[data-theme="dark"] .cal-plus.is-on { background: #2b4a7a; border-color: #2b4a7a; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-plus { color: #a9c3ea; } :root:not([data-theme="light"]) .cal-plus.is-on { background: #2b4a7a; border-color: #2b4a7a; color: #fff; } }
.emp-tag { color: #8a4b0f; }
.seg-4 { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); }
.emp-kinds { border: 0; padding: 0; margin: 0 0 6px; }
.emp-kinds legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.emp-kinds-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; margin: 0; }
.check-chip.is-on { border-color: #0f766e; background: color-mix(in srgb, #0f766e 12%, var(--surface)); }
.check-chip input { width: 16px; height: 16px; margin: 0; }
.emp-aud { font-size: 12px; font-weight: 700; color: #0f766e; }
/* My Profile: room between a value and its "Ask to add or remove" link */
.contact dd .dd-value { margin-right: 10px; }
.contact dd .office-change { display: inline-block; margin-top: 4px; }
.my-perms { margin-top: 10px; }
/* Appearance as a settings row */
.settings-item.appearance-row { cursor: default; flex-wrap: wrap; }
.appearance-seg { flex: none; width: 168px; padding: 3px; }
.appearance-seg button { padding: 5px 4px; font-size: 12.5px; }
@media (max-width: 360px) { .appearance-seg { width: 100%; } }
/* Connect & Serve bars: Assignments (top) and Employee Hub (bottom, copper) */
.more-sec > .more-bar:first-of-type { margin-top: 0; }
.more-sec > .more-bar + .more-grid { margin-top: 10px; }
.row-link.more-bar.assign-bar .quick-icon { background: var(--info-soft); color: var(--navy); }
.row-link.more-bar.hub-bar { background: linear-gradient(135deg, #b4622a 0%, #7c3d14 100%); border-color: transparent; color: #fff; }
.row-link.more-bar.hub-bar .quick-icon { background: rgba(255,255,255,.18); color: #fff; }
.row-link.more-bar.hub-bar strong { color: #fff; }
.row-link.more-bar.hub-bar .quick-text > span, .row-link.more-bar.hub-bar > svg { color: rgba(255,255,255,.88); }
:root[data-theme="dark"] .row-link.more-bar.assign-bar .quick-icon { background: #22324c; color: #a9c3ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .row-link.more-bar.assign-bar .quick-icon { background: #22324c; color: #a9c3ea; } }
/* Sabbath School quarterly buttons */
.ss-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ss-buttons.is-compact { margin-top: 0; }
.more-sec > .ss-buttons:first-of-type, .more-sec > .ss-empty { margin-top: 10px; }
a.row-link.ss-bar { text-decoration: none; color: inherit; }
.row-link.more-bar.ss-bar { margin-top: 0; }
.row-link.ss-bar .quick-icon { background: var(--gold-soft); color: var(--gold); }
.ss-open { color: var(--muted); font-size: 15px; padding-right: 4px; }
.ss-change { align-self: flex-start; font-size: 13.5px; }
.ss-pick { list-style: none; margin: 12px 0; padding: 0; }
.ss-pick li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.ss-pick li:first-child { border-top: 0; }
.ss-pick-row { flex: 1; display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
.ss-pick-row input { width: 20px; height: 20px; flex: none; margin: 0; }
.ss-pick-row > span { display: flex; flex-direction: column; min-width: 0; }
.ss-pick-row small { color: var(--muted); font-size: 13px; }
.ss-app { padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ss-app p { margin: 0; }
.my-perms { padding: 12px 14px; }
.my-perms-title { display: block; font-size: 14px; margin-bottom: 4px; }
/* My Church header photo: the photo under a blue shade (the name stays readable), or plain blue without one */
.church-hero.has-photo { background:
  linear-gradient(180deg, rgba(23, 42, 74, .12) 0%, rgba(23, 42, 74, .38) 38%, rgba(23, 42, 74, .86) 72%, var(--navy) 100%),
  var(--hero-photo) center 35% / cover no-repeat, var(--navy); }
.church-hero.has-photo .hero-inner { padding-top: 92px; }
.church-hero.has-photo .church-name, .church-hero.has-photo .church-city, .church-hero.has-photo .eyebrow { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.church-hero.has-photo::after { opacity: .5; }
/* Church logo at the top of Church Details */
/* Church logo (built-in or the church's own) at the top of Church Details: no box, black in light mode, white in dark */
.church-logo { display: flex; justify-content: center; padding: 6px 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); container-type: inline-size; }
.auto-logo { display: flex; align-items: center; gap: .5em; color: var(--ink); font-family: "Noto Sans", var(--font-body); font-size: clamp(15px, 6.4cqi, 30px); max-width: 100%; }
.auto-logo-mark { flex: none; width: 2.47em; height: 2.22em; background: currentColor; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.auto-logo-text { display: flex; flex-direction: column; line-height: 1.08; font-weight: 400; letter-spacing: -.005em; min-width: 0; }
.auto-logo-text > span { white-space: nowrap; }
.auto-logo-text sup { font-size: .32em; vertical-align: 1.5em; margin-left: .05em; line-height: 0; }
:root[data-theme="dark"] .auto-logo { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auto-logo { color: #fff; } }
.custom-logo img { display: block; max-width: min(100%, 320px); max-height: 120px; width: auto; height: auto; object-fit: contain; }
.custom-logo .logo-dark { display: none; }
:root[data-theme="dark"] .custom-logo.has-dark .logo-light { display: none; }
:root[data-theme="dark"] .custom-logo.has-dark .logo-dark { display: block; }
:root[data-theme="dark"] .custom-logo.light-only { background: #fff; padding: 10px 14px; border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .custom-logo.has-dark .logo-light { display: none; }
  :root:not([data-theme="light"]) .custom-logo.has-dark .logo-dark { display: block; }
  :root:not([data-theme="light"]) .custom-logo.light-only { background: #fff; padding: 10px 14px; border-radius: 12px; }
}
.church-images { display: grid; gap: 14px; margin-bottom: 14px; }
.logo-field .image-preview img { object-fit: contain; background: #fff; max-height: 140px; }
/* Group invitations: Not right now / Join; invitations for later */
.group-invite-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.later-invites { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.later-invites summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; list-style: none; }
.later-invites summary::-webkit-details-marker { display: none; }
.later-invites[open] summary { color: var(--ink); margin-bottom: 6px; }
.group-invite-actions .group-join { position: static; }
.group-card.is-invited .group-card-open { padding-right: 0; }
/* Whole boxes open: the title button stretches over the card; photos, tools and action buttons sit on top. */
.ann-row { position: relative; }
.ann-row .ann-row-open { position: static; }
.ann-row .ann-row-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.ann-row .ann-row-open:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
.ann-row .photo-btn, .ann-row .feed-tool, .ann-row .ann-row-action button, .ann-row .ann-row-action a, .ann-row .ann-row-action .rsvp, .ann-row a { position: relative; z-index: 1; }
.ann-row:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.ann-card { position: relative; }
.ann-card-open { all: unset; cursor: pointer; }
.ann-card-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ann-card-open:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
.ann-card .ann-action button, .ann-card .ann-action a, .ann-card .photo-btn { position: relative; z-index: 1; }
.media-item { position: relative; }
.agenda .agenda-when { align-self: center; padding-top: 0; }
.agenda .rsvp-tag { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--info-soft); color: var(--navy); }
.agenda .rsvp-tag.is-yes { background: var(--good-soft); color: var(--good); }
.agenda .rsvp-tag.is-remote { background: var(--good-soft); color: var(--good); }
.agenda .rsvp-tag.is-no { background: var(--bad-soft); color: var(--bad); }
/* Church Directory: contact buttons, family photo, a linked spouse */
.person-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.person-contact .person-email { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-btn.family-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; margin: 6px 0 8px; }
.photo-btn.family-photo img { object-fit: cover; }
.fam-link { font-weight: 700; padding: 0; }
.fam-photo-field .image-preview img { max-height: 180px; object-fit: cover; }
.media-scope.is-guides { color: #8a4b0f; }
.media-item .media-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.media-item .media-actions button { position: relative; z-index: 1; }
/* More: this week's bulletin and Sabbath School lessons share one row; a line separates them from requests */
.week-strip { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 8px; }
.week-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 10px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; }
.week-card strong { font-size: 13.5px; line-height: 1.2; overflow-wrap: anywhere; }
.week-card small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.week-icon { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 3px; }
.week-icon .badge-dot { position: absolute; top: -3px; right: -3px; }
.week-card.is-bulletin { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 8%, var(--surface)); }
.week-card.is-bulletin .week-icon { background: var(--navy); color: #fff; }
.week-card.is-lesson { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.week-card.is-lesson .week-icon { background: var(--gold-soft); color: var(--gold); }
.week-strip.n-1 .week-card { flex-direction: row; align-items: center; gap: 10px; }
.week-strip.n-1 .week-card strong { font-size: 15px; }
.week-strip.n-1 .week-icon { margin: 0; }
.week-strip.n-1 .week-card small { margin-left: auto; }
.week-strip:not(.n-1):not(.n-2) .week-card strong { font-size: 12.5px; }
.notice-divider { height: 1px; background: var(--line); margin: 4px 2px; }
:root[data-theme="dark"] .week-card.is-bulletin .week-icon { background: #2b4a7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .week-card.is-bulletin .week-icon { background: #2b4a7a; } }
/* Calendar: "Meeting · tap to answer" readable in dark mode */
:root[data-theme="dark"] .agenda .rsvp-tag:not(.is-yes):not(.is-no):not(.is-remote) { background: #22324c; color: #c7d6ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agenda .rsvp-tag:not(.is-yes):not(.is-no):not(.is-remote) { background: #22324c; color: #c7d6ee; } }
/* Church Details: logo previews and uploads */
.logo-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.logo-preview { border-radius: 12px; padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; container-type: inline-size; border: 1px solid var(--line); }
.logo-preview small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.logo-preview.is-light { background: #fff; color: #111; } .logo-preview.is-light small { color: #667; }
.logo-preview.is-dark { background: #111827; color: #fff; } .logo-preview.is-dark small { color: #aab; }
.logo-preview img { max-width: 100%; max-height: 70px; object-fit: contain; align-self: center; }
.logo-preview img.on-white { background: #fff; padding: 6px; border-radius: 8px; }
.logo-preview .auto-logo { font-size: clamp(8px, 7cqi, 16px); }
.force-light .auto-logo { color: #111 !important; } .force-dark .auto-logo { color: #fff !important; }
.logo-uploads { display: grid; gap: 12px; }
.logo-field .image-preview img { object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 16px 16px; max-height: 120px; }
.logo-field.is-dark .image-preview img { background: #111827; }
.logo-field .image-preview img { height: 96px; max-height: 96px; padding: 10px; box-sizing: border-box; }
.logo-field .image-preview-actions { position: static; justify-content: flex-end; padding: 8px; border-top: 1px solid var(--line); background: var(--surface); }
.week-card strong { font-family: var(--font-body); }
/* Added to your calendar: the + turns into a gold × (tap again to remove) */
.cal-plus svg { transition: transform .2s ease; }
.cal-plus.is-on svg { transform: rotate(45deg); }
.cal-plus.is-on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
:root[data-theme="dark"] .cal-plus.is-on { background: #3a2c12; border-color: var(--gold); color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-plus.is-on { background: #3a2c12; border-color: var(--gold); color: var(--gold); } }
/* Church logo: left-aligned, about the size of the text around it, no lines */
.church-logo { justify-content: flex-start; padding: 2px 0 10px; margin: 0; border: 0; }
.church-logo .auto-logo { font-size: 15px; }
.custom-logo img { max-width: min(100%, 240px); max-height: 40px; }
.custom-logo.light-only { display: inline-block; }
.church-details-sec .section-head { border-bottom: 0; padding-bottom: 0; }
/* Group page: a small details link instead of the big box; organizers add meetings and deadlines */
.group-info-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; margin-top: -4px; }
.group-info-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; padding: 0; }
.organizer-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.organizer-add-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; padding: 0; }
/* Churches you follow: smaller rows branching off your own church's bulletin */
.follow-branch { list-style: none; margin: -4px 0 0 22px; padding: 0 0 0 14px; border-left: 2px solid color-mix(in srgb, var(--gold) 45%, var(--line)); display: flex; flex-direction: column; gap: 6px; }
.follow-branch li { position: relative; }
.follow-branch li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 12px; border-top: 2px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.follow-branch li:last-child::after { content: ""; position: absolute; left: -16px; top: calc(50% + 1px); bottom: -2px; width: 4px; background: var(--paper); }
.branch-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.branch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.branch-kicker { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.branch-town { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); opacity: .85; }
.branch-line { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch-row > svg { color: var(--muted); flex: none; }
/* My calendar: ideas to sign up for or add */
.ideas { border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: 14px; padding: 10px 12px; background: color-mix(in srgb, var(--gold) 5%, var(--surface)); }
.ideas-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ideas-head h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.ideas-head .link-btn { font-size: 13px; }
.ideas-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.idea { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.idea:first-child { border-top: 0; }
.idea-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.idea-when { flex: none; width: 44px; font-size: 12px; font-weight: 800; color: var(--navy); text-transform: uppercase; }
:root[data-theme="dark"] .idea-when { color: #a9c3ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .idea-when { color: #a9c3ea; } }
.idea-text { display: flex; flex-direction: column; min-width: 0; }
.idea-text strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea-text small { color: var(--muted); font-size: 12.5px; }
/* Assignments bar: "# pending" (red) and "# open" (blue) instead of a notice at the top of More */
.bar-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.bar-pill { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bar-pill.is-pending { background: var(--bad); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }
.bar-pill.is-open { background: var(--info-soft); color: var(--navy); border: 1px solid color-mix(in srgb, var(--navy) 25%, transparent); }
:root[data-theme="dark"] .bar-pill.is-pending { background: #d9443c; }
:root[data-theme="dark"] .bar-pill.is-open { background: #22324c; color: #c7d6ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar-pill.is-pending { background: #d9443c; } :root:not([data-theme="light"]) .bar-pill.is-open { background: #22324c; color: #c7d6ee; } }

/* Calendar: no glow on All Church Events (Ideas for you does that job); personal events say they're private */
.cal-tabs .tab-explore::after { content: none !important; animation: none !important; }
.personal-kicker { color: var(--navy); display: flex; align-items: center; gap: 6px; }
:root[data-theme="dark"] .personal-kicker { color: #a9c3ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .personal-kicker { color: #a9c3ea; } }
.personal-form { border-color: color-mix(in srgb, var(--navy) 35%, var(--line)); }
.sheet-later-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sheet-later-row .sheet-later { margin: 0; }
.sheet-snooze { display: inline-flex; align-items: center; gap: 6px; }
/* Prayer wall: pin to keep praying, hide from your list */
.prayer-top { display: flex; align-items: center; gap: 8px; }
.prayer-tools { margin-left: auto; display: inline-flex; gap: 4px; }
.prayer-pin, .prayer-hide { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 4px 8px; font: inherit; font-size: 12.5px; cursor: pointer; }
.prayer-pin.is-on { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.prayer-hidden-row { display: flex; justify-content: center; margin-top: 8px; }
.prayer-hidden-list .prayer { opacity: .75; }
.name-bubble .icon { flex: none; }
/* More header: search and help */
.more-head { margin-left: auto; display: flex; gap: 6px; }
.more-head .more-search-btn { margin-left: 0; }
.more-help-btn span { font-weight: 800; font-size: 18px; line-height: 1; font-family: var(--font-body); }
/* Group "Will you be there?" bar: readable in dark mode */
:root[data-theme="dark"] .group-answer { background: #1d2b45; border-color: #6f93c9; color: var(--ink); }
:root[data-theme="dark"] .group-answer > svg { color: #a9c3ea; }
:root[data-theme="dark"] .group-answer-go { background: #a9c3ea; color: #0f1520; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .group-answer { background: #1d2b45; border-color: #6f93c9; color: var(--ink); }
  :root:not([data-theme="light"]) .group-answer > svg { color: #a9c3ea; }
  :root:not([data-theme="light"]) .group-answer-go { background: #a9c3ea; color: #0f1520; }
}

/* My Church: followed churches listed under your bulletin, full width (no branch line) */
.follow-branch { margin: 0; padding: 0; border-left: 0; }
.follow-branch li::before, .follow-branch li:last-child::after { content: none; }
.week-strip { grid-auto-rows: 1fr; }
@supports (grid-template-columns: subgrid) { .week-strip { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); } }
.week-card.is-other { border-color: var(--line); background: var(--surface); }
.week-card.is-other .week-icon { background: var(--info-soft); color: var(--navy); }
/* Service & Assignments: a purple full-width bar at the top of Leaders & Staff */
.row-link.more-bar.staff-bar { background: var(--staff-soft); border-color: var(--staff-line); }
.row-link.more-bar.staff-bar .quick-icon { background: var(--staff); color: var(--staff-on); }
.more-sec > .more-bar.staff-bar + .more-grid { margin-top: 10px; }
/* Lesson boxes open the publisher's site */
.week-card.is-lesson { position: relative; }
.week-ext { position: absolute; top: 8px; right: 10px; color: var(--muted); font-size: 13px; }
.next-steps { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
/* Calendar: a small hand marks assignments; another church's assignment shows the church as a colored tag */
.serve-mark { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--cat, var(--bad)); }
.other-church-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, #0f766e 14%, var(--surface)); color: #0f766e; margin: 2px 0; }
:root[data-theme="dark"] .other-church-pill { color: #5eead4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .other-church-pill { color: #5eead4; } }
.church-logo.is-center { justify-content: center; }
.logo-align { display: flex; align-items: center; gap: 10px; }
.logo-align .segmented { flex: 1; max-width: 220px; }
/* Groups: lock after the name (gold), pins */
.group-name .lock, .chat-row-main .lock { display: inline-flex; vertical-align: -1px; margin-left: 6px; color: var(--gold); }
.chat-row-icon { display: none; }
.pin-tools { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; gap: 4px; align-items: center; }
.pin-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.pin-btn.is-on { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.pin-move { width: 26px; height: 26px; min-height: 0; padding: 0; font-weight: 800; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.pin-move:disabled { opacity: .35; }
.group-card .group-card-top { padding-right: 34px; }
.pin-mark-sm { display: inline-flex; margin-left: 6px; color: var(--gold); vertical-align: -1px; }
.chat-pin-btn { position: absolute; top: 0; right: 88px; bottom: 0; width: 88px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: #b07d2b; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.chat-swipe { background: #b42318; }
.chat-arrange { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); z-index: 3; }
.chat-arrange .pin-tools { position: static; }
.chat-hint { margin-top: 4px; }
.arrange-link { font-size: 13px; }
/* Speaker details */
.speaker-banner { border-color: color-mix(in srgb, var(--story, #6b4fa0) 50%, var(--line)); background: color-mix(in srgb, var(--story, #6b4fa0) 8%, var(--surface)); }
.speaker-banner .badge-inline { background: var(--story, #6b4fa0); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.speaker-note { font-style: italic; color: var(--muted); margin: 0 0 8px; }
.speaker-hymn { margin: 6px 0; }
.speaker-hymn .form-row { grid-template-columns: 90px 1fr; }
.speaker-ask { margin: 6px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.speaker-ask-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 14px; }
.speaker-ask-form { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.speaker-hymn-pick { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; }
.speaker-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; margin: 0; color: var(--muted); }
.speaker-status.is-done { color: var(--good); }
.speaker-ask-hint { margin: 4px 0 10px; }
/* Did you know? */
.tip-card { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.tip-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.tip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tip-text p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.tip-actions { display: flex; gap: 8px; margin-top: 8px; }
.tips-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tips-list li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tips-list li.is-off { opacity: .55; }
.tips-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tips-main small { font-size: 12.5px; }
.tips-tools { display: flex; gap: 4px; align-items: center; flex: none; }
.tip-form { margin-top: 8px; }
/* Visitors */
.visitor-link { font-weight: 700; }
.visit-intro { margin: 0 0 6px; }
.row-link.more-bar.visitor-bar .quick-icon { background: var(--gold-soft); color: var(--gold); }
.visitor-member { margin-top: 10px; }
.visitor-pill { margin-left: 6px; }
.speaker-sheet .field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; }
.speaker-sheet input { width: 100%; min-width: 0; box-sizing: border-box; }
.speaker-hymn .form-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
.speaker-hymn .label { display: block; margin-bottom: 4px; }
.speaker-ask-form input { width: 100%; box-sizing: border-box; }
.next-steps-wrap { margin-top: 12px; }
.next-steps-wrap .setup-card { margin-bottom: 0; }
.more-help-btn span { font-size: 19px; }
.quick-bulletin + .follow-branch { margin-top: -12px; }
.reset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-edit-card { padding: 12px 14px; }
.profile-dir-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.person-about { display: block; margin-top: 2px; }
.about-me select, .about-me input { min-width: 0; width: 100%; }
.form-row.about-me { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 64px; gap: 8px; }

/* Scripture references that open the Bible app */
.scripture-link { color: var(--gold); font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.scripture-link::after { content: " ↗"; font-size: .85em; text-decoration: none; display: inline-block; margin-left: 1px; }

/* Connect & Serve: half-width tiles with subtext. Plain until pinned; a pinned tile goes to the top in its own color. */
.half-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.half-tile { position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; --tile: var(--navy); }
.half-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; height: 100%; min-height: 104px; padding: 12px; margin: 0;
  border: 0; border-radius: inherit; background: none; color: inherit; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.half-tile .quick-icon { position: relative; width: 38px; height: 38px; border-radius: 10px; background: var(--info-soft); color: var(--navy); }
.half-tile .quick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 4px; }
.half-tile strong { font-size: 14.5px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.half-tile .quick-text > span { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.half-ext { font-weight: 600; opacity: .7; }
.half-badge { position: absolute; top: -7px; right: -9px; }
.half-soon { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold); vertical-align: 1px; }
.half-pin { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; opacity: .55; }
.half-pin:hover, .half-pin:focus-visible { opacity: 1; }
/* In color: pinned tiles, and the Employee Hub */
.half-tile.is-color { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--tile, #2b4a7a) 0%, color-mix(in srgb, var(--tile, #2b4a7a) 55%, #000) 100%); }
.half-tile.is-color .quick-icon { background: rgba(255,255,255,.18); color: #fff; }
.half-tile.is-color .quick-text > span { color: rgba(255,255,255,.86); }
.half-tile.is-color .half-pin { color: #fff; opacity: .9; }
.half-tile.is-color .half-soon { background: rgba(255,255,255,.22); color: #fff; }
.tile-prayer { --tile: #b5832a; } .tile-directory { --tile: #2f7f86; } .tile-bible { --tile: #a33a3a; } .tile-lesson { --tile: #2f5f9e; }
.tile-training { --tile: #5a4fb0; } .tile-media { --tile: #3f6185; } .tile-live { --tile: #c0392b; } .tile-giving { --tile: #2e8b57; }
.tile-mission { --tile: #3c8a6b; } .tile-entity { --tile: #6b4f9e; } .tile-member { --tile: #2b4a7a; }
.half-tile[class*="tile-hub-"] { --tile: #b4622a; }
.cs-sub { margin: 14px 0 2px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
/* Sabbath School tile: a new week's lesson */
.half-tile .quick-text > .half-call { margin-top: 6px; display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--gold); }
.half-tile.is-color .quick-text > .half-call { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.half-tile.has-call:not(.is-color) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.half-dot { position: absolute; top: -3px; right: -3px; }
/* Add More Blocks: the bar on More, and the list page */
.row-link.more-bar.add-blocks-bar { border-style: dashed; }
.row-link.more-bar.add-blocks-bar .quick-icon { background: var(--info-soft); color: var(--navy); }
.block-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.block-row { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.block-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.block-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--tile, #2b4a7a) 0%, color-mix(in srgb, var(--tile, #2b4a7a) 55%, #000) 100%); }
.block-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.block-text strong { font-size: 15.5px; line-height: 1.25; }
.block-text > span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.block-state { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  background: var(--info-soft); color: var(--navy); vertical-align: 2px; }
.block-state.is-pinned { background: var(--gold-soft); color: var(--gold); }
.block-pin { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-left: 1px solid var(--line);
  background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.block-pin.is-on { color: var(--gold); background: var(--gold-soft); }
.tile-assignments { --tile: #2b4a7a; } .tile-jobs { --tile: #8a6d1f; }
.block-row[class*="tile-hub-"] { --tile: #b4622a; }
/* Calendar: an event already on My calendar (remove it from the event's pop-up) */
.cal-added { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--good-soft, #e3f1e8); color: var(--good, #2e7d4f); }
.hide-event-btn { color: var(--muted); align-self: center; }
.hidden-events-row > span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.hidden-events-row small { font-weight: 400; color: var(--muted); }
/* "Read more" on feed rows whose text runs past two lines */
.read-more { font-size: 13px; font-weight: 700; color: var(--gold); }
/* An announcement's opportunity: a small box hanging off the bottom of the card. The whole box opens the group. */
.ann-row.has-opp, .ann-card.has-opp { overflow: visible; margin-bottom: 22px; }
.ann-row.has-opp .ann-row-photo { border-radius: var(--radius) var(--radius) 0 0; }
.opportunity { --opp: #24704a; position: relative; display: flex; flex-direction: column; gap: 3px; width: calc(100% - 28px); margin: 0 14px -22px; padding: 9px 12px 10px;
  border: 1px solid color-mix(in srgb, var(--opp) 35%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--opp) 12%, var(--surface)); color: var(--ink);
  text-align: left; font: inherit; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.opportunity:hover { border-color: var(--opp); }
.opp-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--opp); }
.opp-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.opp-when { font-size: 14px; font-weight: 700; }
.opp-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--opp); white-space: nowrap; }
.opportunity.is-joined .opp-go { color: var(--muted); }
.opp-green { --opp: #24704a; } .opp-blue { --opp: #2b5aa0; } .opp-gold { --opp: #a8711a; } .opp-purple { --opp: #6a4c9c; } .opp-red { --opp: #b3261e; } .opp-teal { --opp: #1f7a7a; }
:root[data-theme="dark"] .opportunity { background: color-mix(in srgb, var(--opp) 22%, var(--surface)); }
:root[data-theme="dark"] .opp-eyebrow, :root[data-theme="dark"] .opp-go { color: color-mix(in srgb, var(--opp) 45%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .opportunity { background: color-mix(in srgb, var(--opp) 22%, var(--surface)); }
  :root:not([data-theme="light"]) .opp-eyebrow, :root:not([data-theme="light"]) .opp-go { color: color-mix(in srgb, var(--opp) 45%, #fff); } }
/* A box that stands on its own (story page, event pop-up, form preview) rather than hanging off a card */
.opp-standalone .opportunity, .opp-preview .opportunity, .agenda-opp .opportunity { width: 100%; margin: 0; }
.opp-standalone { margin: 10px 0 4px; }
.agenda-opp { grid-column: 1 / -1; padding-left: 58px; }
@media (max-width: 360px) { .agenda-opp { padding-left: 0; } }
/* The editor in forms */
.opp-editor { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.opp-toggle { display: flex; gap: 10px; align-items: flex-start; }
.opp-toggle span { display: flex; flex-direction: column; gap: 2px; }
.opp-toggle small { font-weight: 400; color: var(--muted); }
.opp-fields { display: flex; flex-direction: column; gap: 6px; }
.opp-colors { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.opp-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--opp); cursor: pointer; padding: 0; }
.opp-swatch.is-on { border-color: var(--surface); box-shadow: 0 0 0 2px var(--opp); }
.opp-preview { padding: 6px 0 2px; }
.ann-card.has-opp .opportunity { margin-top: 4px; }
.details-preview.is-readonly { margin-top: 0; border: 1px solid var(--line); background: var(--surface); }
.tile-details { --tile: #6a4c9c; }
/* Urgent announcements */
.urgent-wrap { display: flex; flex-direction: column; gap: 8px; }
.urgent-banner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 0; text-align: left; font: inherit; cursor: pointer;
  background: linear-gradient(135deg, #c62828 0%, #8e1b1b 100%); color: #fff; box-shadow: 0 6px 16px rgba(160, 30, 30, .25); }
.urgent-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.urgent-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.urgent-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; opacity: .9; }
.urgent-text strong { font-size: 16px; line-height: 1.25; }
.urgent-tap { font-size: 12.5px; opacity: .85; }
.urgent-pill { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: #c62828; color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.urgent-pill.sm { padding: 2px 7px; font-size: 10px; margin-bottom: 2px; }
.urgent-body { font-size: 16px; line-height: 1.5; white-space: pre-wrap; margin: 4px 0 0; }
.urgent-when { font-size: 13px; margin: 0; }
.urgent-contact { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.urgent-contact > .avatar { flex: none; }
.urgent-contact > span:not(.avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.urgent-contact .muted { font-size: 12px; }
.urgent-explain { display: flex; gap: 10px; align-items: flex-start; }
.badge.badge-urgent { background: #c62828; }
.more-tile.urgent-link .more-tile-icon { color: #c62828; }
/* More → Leaders & Staff: every leadership button is purple (Conference, Union and Division Controls included) */
.more-sec .row-link.more-bar.conference-link, .more-sec .row-link.more-bar.region-link { background: linear-gradient(135deg, #6a4bc4 0%, #3f2a85 100%); border-color: transparent; color: #fff; }
.more-sec .conference-link .more-bar-badge, .more-sec .region-link .more-bar-badge { color: #3f2a85 !important; }
/* Assignments as a half-width tile: its pending / open pills under the line of text */
.half-tile .half-pills { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; margin: 4px 0 0; position: static; }
.half-tile .quick-text > .half-pills { color: inherit; }
.tile-assignments.is-color .bar-pill { background: rgba(255,255,255,.22); color: #fff; border-color: transparent; }

/* ---------- Prayer Wall card on My Church: a stone wall built from the names ---------- */
.ph-wall { --stone: #e6dccb; --stone-2: #d8ccb6; --mortar: #b9ab92; --carve: #4a3d28; --stone-ink: #6f604a;
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(180deg, color-mix(in srgb, var(--stone) 35%, var(--surface)), var(--surface)); }
:root[data-theme="dark"] .ph-wall { --stone: #3a362f; --stone-2: #2f2b25; --mortar: #1d1b17; --carve: #efe5d0; --stone-ink: #b8ab94; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-wall { --stone: #3a362f; --stone-2: #2f2b25; --mortar: #1d1b17; --carve: #efe5d0; --stone-ink: #b8ab94; } }
.ph-wall-head { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.ph-wall-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--stone); color: var(--carve); box-shadow: inset 0 -3px 0 var(--mortar); }
.ph-wall-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-wall-title h2 { margin: 0; font: 600 22px/1.15 var(--font-display); }
.ph-wall-title > span { font-size: 13px; color: var(--muted); }
.ph-wall-title b { color: var(--gold); }
.ph-stones { list-style: none; margin: 0; padding: 5px; display: flex; flex-wrap: wrap; gap: 5px; border-radius: 12px; background: var(--mortar); }
.ph-stone-li { display: flex; flex: 1 1 auto; }
.ph-stone { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 7px 12px;
  border: 0; border-radius: 7px; cursor: pointer; font: inherit; color: var(--carve);
  background: linear-gradient(160deg, var(--stone) 0%, var(--stone-2) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.12); }
.ph-stone.is-blank { flex: 1 1 var(--w); min-width: var(--w); min-height: 52px; border-radius: 7px; background: linear-gradient(160deg, var(--stone-2) 0%, var(--stone) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.12); opacity: .85; }
.ph-stone-name { font: 700 17px/1.1 var(--font-display); letter-spacing: .01em; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.ph-stone-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--stone-ink); }
.ph-stone.is-new { box-shadow: inset 0 0 0 2px var(--gold-bright), 0 0 12px color-mix(in srgb, var(--gold-bright) 45%, transparent); }
.ph-stone.is-new .ph-stone-meta { color: var(--gold); }
.ph-stone.is-prayed .ph-stone-name { color: var(--gold); text-shadow: none; }
.ph-stone.is-prayed .ph-stone-meta { color: var(--gold); }
:root[data-theme="dark"] .ph-stone-name { text-shadow: 0 1px 0 rgba(0,0,0,.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-stone-name { text-shadow: 0 1px 0 rgba(0,0,0,.5); } }
.ph-stone:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 1px; }
.ph-stone.is-more { background: linear-gradient(160deg, var(--stone-2) 0%, var(--stone) 100%); }
.ph-stone.is-more .ph-stone-name { font-size: 15px; }
.ph-stone.is-more .ph-stone-meta { color: var(--gold); }
/* New announcement: the urgent option (hard to send on purpose) */
.form-stack { display: contents; }
.urgent-option { border: 1.5px dashed color-mix(in srgb, #c62828 45%, var(--line)); border-radius: 12px; padding: 10px 12px; margin: 6px 0; display: flex; flex-direction: column; gap: 8px; }
.urgent-option.is-on { border-style: solid; border-color: #c62828; background: color-mix(in srgb, #c62828 7%, var(--surface)); }
.urgent-option .check { display: flex; gap: 10px; align-items: flex-start; }
.urgent-option .check > span { display: flex; flex-direction: column; gap: 2px; }
.urgent-option .check strong { display: inline-flex; align-items: center; gap: 5px; color: #c62828; }
.urgent-option .check small { font-weight: 400; color: var(--muted); }
.urgent-option-body { display: flex; flex-direction: column; gap: 6px; }
.urgent-option-body p { margin: 0; font-size: 14px; }
:root[data-theme="dark"] .urgent-option .check strong { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .urgent-option .check strong { color: #ff8a80; } }
/* Demo Views page */
.demo-views-row { margin-top: 4px; }
.demo-view-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-view { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.demo-view > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.demo-view small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.demo-view-dot { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.demo-view.is-on { border-color: var(--staff); background: var(--staff-soft); }
.demo-view.is-on .demo-view-dot { border-color: var(--staff); box-shadow: inset 0 0 0 4px var(--surface); background: var(--staff); }
/* The bulletin icon next to bulletin mentions */
.inline-icon { display: inline-flex; vertical-align: -3px; margin-right: 5px; color: var(--gold); }
.branch-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); }
.title-icon { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--gold); }
.bulletin-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.demo-view-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: #fff; }
.demo-view.is-on .demo-view-box { border-color: var(--staff); background: var(--staff); color: var(--staff-on); }
.demo-view-now { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--staff-soft); border: 1px dashed var(--staff-line); }
.demo-view-now .muted { font-size: 12px; }
/* Members only (visitors looking around) */
.members-only { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 18px; border-radius: var(--radius);
  border: 1px dashed var(--line); background: var(--surface); }
.members-only-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.members-only-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.members-only strong { font: 600 19px/1.25 var(--font-display); }
.members-only p { margin: 0; max-width: 340px; }
.half-tile.is-locked .quick-icon { background: var(--gold-soft); color: var(--gold); }
.half-tile.is-locked .quick-text > span { color: var(--gold); font-weight: 700; }
.ph-stone-lock { cursor: default; gap: 3px; color: var(--carve); }
.ph-wall.is-locked .btn { align-self: stretch; }
.notif-chan-none { display: inline-block; min-width: 58px; }
/* Weekly email: settings and the preview (a close match to the real email) */
.dg-settings { display: flex; flex-direction: column; gap: 8px; }
.dg-email { border-radius: 14px; overflow: hidden; border: 1px solid #e5dfd3; background: #fff; color: #1d2433; font: 15px/1.5 Arial, sans-serif; }
.dg-head { background: #1f3a63; padding: 18px; }
.dg-eyebrow { font: 800 11.5px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #e9bd68; }
.dg-church { font: 600 23px/1.2 Georgia, serif; color: #fff; margin-top: 6px; }
.dg-date { font-size: 13.5px; color: #cdd6e6; margin-top: 4px; }
.dg-body { padding: 4px 18px 16px; }
.dg-body p { margin: 12px 0 0; }
.dg-sec { margin-top: 16px; }
.dg-kicker { font: 800 11.5px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #a86f12; margin-bottom: 8px; }
.dg-sermon { font: 600 19px/1.3 Georgia, serif; }
.dg-muted { font-size: 13.5px; color: #5b6475; }
.dg-services { margin-top: 8px; font-size: 14px; }
.dg-item { padding: 7px 0; border-bottom: 1px solid #eee6d8; font-size: 14px; }
.dg-item:last-child { border-bottom: 0; }
.dg-item strong { font-size: 15px; }
.dg-urgent { font: 800 10.5px/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #b3261e; margin-bottom: 3px; }
.dg-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.dg-names span { padding: 6px 11px; border-radius: 8px; background: #e6dccb; color: #4a3d28; font: 700 15px/1 Georgia, serif; }
.dg-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.dg-buttons span { background: #1f3a63; color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px 14px; border-radius: 10px; }
.dg-foot { margin: 0; padding: 10px 18px 14px; font-size: 11.5px; color: #7a8190; background: #f4f1ea; }
/* Following */
.follow-row { padding: 10px 14px; }
.follow-auto { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--info-soft); color: var(--navy); vertical-align: 2px; }
.dg-photo { display: block; width: 100%; border-radius: 10px; margin-top: 12px; max-height: 320px; object-fit: cover; }
.dg-intro p { white-space: pre-line; }
.dg-from { font: 800 10.5px/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #2f6db0; margin-bottom: 3px; }
.seg-sm { width: 170px; }
.seg-sm button { padding: 5px 6px; font-size: 13px; }
.dg-settings textarea { min-height: 140px; }
/* Following: Conference, Union and Division */
.level-follow { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.level-follow:last-child { border-bottom: 0; }
.level-follow-head { display: flex; flex-direction: column; }
.level-follow-head small { color: var(--muted); font-size: 13px; }
.level-follow .toggle-row { padding: 0; border: 0; }
.level-email { display: flex; align-items: center; gap: 12px; }
.level-email > span { font-weight: 600; font-size: 15px; min-width: 44px; }
.level-email .segmented { flex: 1; }
.seg-3 { grid-template-columns: 1fr 1fr 1fr; }
.segmented button:disabled { opacity: .5; cursor: default; }
.level-preview { align-self: flex-start; padding: 0; font-size: 13.5px; }
.level-off-note { padding: 10px 12px; border-radius: 10px; background: var(--info-soft); font-size: 14px; }
/* Send an Email */
.se-from { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.se-limit { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--staff-soft); border: 1px solid var(--staff-line); margin-bottom: 12px; }
.se-limit > span { display: flex; flex-direction: column; }
.se-limit small { color: var(--muted); font-size: 13.5px; }
.se-limit.is-used { background: var(--info-soft); border-color: var(--line); }
.se-include { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.se-include .chip { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.se-include-label { font-weight: 600; font-size: 15px; width: 100%; }
.se-items { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.se-items li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--info-soft); font-size: 14px; }
.se-items small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.se-subject { font: 600 21px/1.25 Georgia, serif; margin-top: 14px; }
.se-card { margin-top: 12px; padding: 12px; border: 1px solid #e5dfd3; border-radius: 10px; font-size: 14px; }
.se-card strong { display: block; font-size: 15.5px; }
.se-btn { display: inline-block; margin-top: 8px; background: #1f3a63; color: #fff; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 8px; }
.se-pick-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.se-pick { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.se-pick > span { flex: 1; display: flex; flex-direction: column; }
.se-pick small { color: var(--muted); font-size: 13px; }
.se-pick.is-on { border-color: var(--navy); background: var(--info-soft); }
.se-sent { display: flex; flex-direction: column; padding: 10px 14px; }
.se-sent small { color: var(--muted); font-size: 13px; }
.dg-item-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; margin: 2px 0 8px; }
/* Half tiles: status pills (1 pending, 1 open) sit in the top-right corner, beside the icon */
.half-main { position: relative; }
.half-corner-pills { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; }
.half-corner-pills .bar-pill { font-size: 11px; padding: 2px 8px; }
/* Assignments: the Full Schedule is its own block (a card with a navy header) */
.section.schedule-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 14px 14px; overflow: hidden; }
.schedule-block > .section-head { margin: 0 -14px 12px; padding: 13px 14px 11px; background: var(--navy); border-bottom: 0; align-items: center; }
.schedule-block > .section-head h2 { color: var(--navy-ink); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.schedule-block > .section-head h2::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat; }
.schedule-block .roster-team { background: var(--info-soft); border-radius: 12px; padding: 10px 12px; }
/* Order of Service: date, service and tabs are one header piece, the top of what's below */
.planning-head { display: flex; flex-direction: column; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border: 1px solid var(--staff-line); border-bottom: 0;
  background: var(--staff-soft); box-shadow: var(--shadow); margin-bottom: -6px; }
.planning-head .date-nav { background: var(--staff); padding: 10px 8px; gap: 4px; }
.planning-head .date-nav .date-step { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.planning-head .date-nav .date-step.is-add { background: rgba(255,255,255,.2); border-color: transparent; }
.planning-head .date-select.is-big { border: 0; background: transparent; color: #fff; padding: 4px 8px; }
.planning-head .date-select.is-big .date-select-label small, .planning-head .date-select.is-big .date-select-label em { color: rgba(255,255,255,.82); }
.planning-head .date-select.is-big .date-select-label span { font-size: 18px; }
.planning-head .date-change { background: rgba(255,255,255,.2); color: #fff; }
.planning-head .date-select:focus-within { outline-color: #fff; }
.planning-head .service-picker { padding: 12px 12px 10px; }
.planning-head .planning-tabs { margin: 0; border-radius: 0; padding: 6px 8px 0; background: var(--staff-soft); border-top: 1px solid var(--staff-line); gap: 6px; }
.planning-head .planning-tabs button { border-radius: 10px 10px 0 0; padding: 10px 6px; }
.planning-head .planning-tabs button.is-on { background: var(--paper); box-shadow: none; color: var(--ink); }
.planning-head + .planning-actions { padding-top: 14px; }
.svc-live-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--bad); font-weight: 700; }
.planning-head .planning-tabs button.is-on { color: var(--staff); font-weight: 800; }
.planning-head .planning-tabs button:not(.is-on) { color: var(--muted); }
.settings-item.is-staff > svg:first-child { color: var(--staff); }
.settings-item.is-staff strong { color: var(--staff); }
/* Church admins: a purple gear by Church Details on My Church */
.icon-btn.staff-gear { width: 34px; height: 34px; background: var(--staff); color: var(--staff-on); border: 0; align-self: center; }
.church-details-sec > .section-head { align-items: center; }
/* Groups & Chats: Groups | Individual Chats tabs */
.groups-tabs { margin-bottom: 14px; }
.groups-tabs .tab-count { position: static; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; font-size: 11px; vertical-align: 1px; }
/* Individual chats: calmer unread (like groups), swipe shows Pin only */
.chat-swipe { background: var(--surface); }
.chat-row.is-unread { background: var(--surface); box-shadow: none; }
/* Leaders & Staff: one list, like Settings */
.leaders-list { margin-bottom: 10px; }
.leaders-list .settings-item .bar-pill { flex: none; font-size: 11px; padding: 2px 8px; }
.badge.leaders-badge { position: static; flex: none; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.leaders-list .settings-item small, .leaders-list .settings-item strong { white-space: normal; overflow: visible; text-overflow: clip; }
.perm-included { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--staff-soft); color: var(--staff); font-size: 11px; font-weight: 800; vertical-align: 1px; }
.demo-view.is-included { opacity: .75; cursor: default; }
/* Leaders & Staff: the whole list box is light purple (text stays as it is) */
.settings-list.leaders-list { background: var(--staff-soft); border-color: var(--staff-line); }
.leaders-list .settings-item { background: transparent; }
.leaders-list .settings-item + .settings-item { border-top-color: var(--staff-line); }
.se-limit .se-auto { display: block; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.se-limit .se-auto svg { color: var(--good, #2e7d32); vertical-align: -2px; }
.se-limit .se-auto .link-btn { display: inline; padding: 0; font-size: 13px; }
/* Notifications: text on the left, switches always in a right-hand column */
.notif-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 8px; }
.notif-row > .notif-when { grid-column: 1 / -1; }
.notif-chans { justify-self: end; align-self: start; padding-top: 2px; }
.notif-text .notif-preview { align-self: flex-start; padding: 2px 0 0; }
.notif-levels-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; margin: 4px 0 14px; border-radius: 14px;
  border: 2px solid var(--gold-bright); background: var(--gold-soft); color: var(--ink); font: inherit; cursor: pointer; }
.notif-levels-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notif-levels-card small { color: var(--muted); font-size: 13px; }
.notif-levels-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold); color: #fff; }
/* Following: the automatic update and the emails they send are separate blocks */
.level-block { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--info-soft); }
.level-block-head { display: flex; flex-direction: column; }
.level-block-head > span, .level-msgs label > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.level-block-head small { color: var(--muted); font-size: 13px; }
.level-follow .level-msgs { padding: 10px 12px; border-radius: 12px; background: var(--info-soft); }
/* Edit your directory listing: plain white fields like other forms, no grey boxes */
.my-dir-edit.form { padding: 0; }
.my-dir-edit input:not([type="checkbox"]), .my-dir-edit select, .my-dir-edit textarea { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; }
.my-dir-edit input:disabled { color: var(--muted); }
.my-dir-edit input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); font-style: normal; }
.my-dir-edit > .label { margin-top: 10px; font-weight: 700; color: var(--ink); }
.my-dir-edit .fam-edit { padding: 12px 0 4px; border-top: 1px solid var(--line); background: none; }
.my-dir-edit .fam-edit label { margin-top: 4px; }
.my-dir-edit .check { color: var(--ink); font-size: 14px; }
.my-dir-edit .fam-photo-field { margin-top: 4px; }
.my-dir-edit .about-me { grid-template-columns: 1.15fr 1.45fr .7fr; }
.my-dir-edit select { padding-right: 6px; }
.my-dir-edit .image-drop { background: var(--surface); }
/* Rich text: headings, bullets, quotes, bold */
.rich-text > * { margin: 0 0 10px; }
.rich-text > *:last-child { margin-bottom: 0; }
.rich-text h3 { font: 600 18px/1.25 var(--font-display); color: var(--ink); margin-top: 14px; }
.rich-text h3:first-child { margin-top: 0; }
.rich-text ul { padding-left: 20px; }
.rich-text li { margin: 3px 0; }
.rich-text li::marker { color: var(--gold); }
.rich-text blockquote { margin-left: 0; padding: 6px 0 6px 14px; border-left: 3px solid var(--gold); color: var(--ink); font-style: italic; }
.rich-text blockquote p { margin: 0; }
.dg-rich h3 { font: 700 15px/1.3 Georgia, serif; margin-top: 8px; }
.dg-rich { font-size: 14px; }
.rich-editor { display: flex; flex-direction: column; gap: 0; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface); }
.rt-btn { min-width: 38px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.rt-btn:disabled { opacity: .45; cursor: default; }
.rt-btn .rt-quote { font: 700 17px/1 Georgia, serif; }
.rt-btn.rt-preview { margin-left: auto; font-weight: 700; color: var(--navy); }
.rt-btn.rt-preview.is-on { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.rich-editor textarea { border-radius: 0 0 10px 10px !important; }
.rt-preview-box { min-height: 110px; padding: 12px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--surface); }
.rt-hint { margin-top: 4px; }
/* News & announcements: the kind is a small box, then who it's from */
.news-source { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.kind-pill { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.kind-pill.is-ann { background: var(--gold-soft); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.kind-pill.is-news { background: var(--info-soft); color: var(--navy); border: 1px solid color-mix(in srgb, var(--navy) 25%, transparent); }
.kind-from { color: var(--muted); font-weight: 700; letter-spacing: .04em; }
:root[data-theme="dark"] .kind-pill.is-news { color: #9fbbe6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kind-pill.is-news { color: #9fbbe6; } }
.rich-text ul { list-style: disc; } .rich-text li { display: list-item; }
/* Super Admin: Edit the Demo */
.demo-add { align-self: flex-start; margin: 12px 0 8px; }
.demo-rows { margin-bottom: 14px; }
.demo-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.demo-row:last-child { border-bottom: 0; }
.demo-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; padding: 8px 0; color: var(--ink); font: inherit; cursor: pointer; }
.demo-row-main strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-row.is-removed strong { text-decoration: line-through; color: var(--muted); }
.demo-row-tools { display: flex; gap: 2px; flex: none; }
.demo-state { flex: none; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; }
.demo-state.is-new { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.demo-state.is-edited { background: var(--gold-soft); color: var(--gold); }
.demo-state.is-removed { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.demo-edit-form { margin: 12px 0; }
.demo-edit-field { display: flex; flex-direction: column; gap: 4px; }
.demo-edit-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; }
.demo-save-bar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 10px 0; background: linear-gradient(transparent, var(--paper) 30%); z-index: 2; }
.level-chans { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 2px; }
.level-chan { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.block-chevron { flex: none; align-self: center; color: var(--muted); display: inline-flex; }
.block-main:hover .block-chevron { color: var(--ink); }
/* Opportunity box: the box opens the post; only the action words are the button */
.opportunity { cursor: default; text-align: left; font: inherit; }
.opportunity.opens-post { cursor: pointer; }
.opportunity .opp-go { background: none; border: 0; padding: 4px 0; margin: -4px 0; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--opp); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.opportunity.is-joined .opp-go { text-decoration: none; }
/* On the full post: a separate call box (what to do, and a big button) */
.opp-call { --opp: #24704a; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 14px 0 4px; padding: 14px 16px 16px; border-radius: 14px;
  border: 2px solid var(--opp); background: color-mix(in srgb, var(--opp) 8%, var(--surface)); }
.opp-call .opp-eyebrow { color: var(--opp); }
.opp-call-title { font: 600 20px/1.2 var(--font-display); color: var(--ink); }
.opp-call-btn { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 12px; border: 0; background: var(--opp); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.opp-call.is-joined .opp-call-btn { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.opp-call.opp-green { --opp: #24704a; } .opp-call.opp-blue { --opp: #2b5aa0; } .opp-call.opp-gold { --opp: #a8711a; } .opp-call.opp-purple { --opp: #6a4c9c; } .opp-call.opp-red { --opp: #b3261e; } .opp-call.opp-teal { --opp: #1f7a7a; }
/* Popups */
.popup-sheet { max-height: 88vh; overflow: auto; }
.popup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.popup-head .sheet-title { margin: 0; }
.popup-sheet > .card, .popup-sheet form.card { border: 0; box-shadow: none; padding: 0; background: none; }
/* ---------- The Prayer Wall: a wooden board with twine and pinned cards ---------- */
.wood-wall { --wood: #5b3a22; --wood-2: #472c18; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px 16px; border-radius: 14px; overflow: hidden; color: #fff;
  background-color: var(--wood);
  background-image:
    linear-gradient(rgba(20,10,4,.55) 2px, transparent 2px),                                         /* the seams between slats */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.09' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .1  0 0 0 0 .03  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='600' height='240' filter='url(%23g)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(180deg, rgba(255,220,180,.05) 0 1px, transparent 1px 7px, rgba(0,0,0,.06) 7px 8px, transparent 8px 13px),
    linear-gradient(180deg, #6a4328, #4d2f1a);
  background-size: 100% 58px, 600px 240px, auto, auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 2px 14px rgba(0,0,0,.35), var(--shadow); }
.ww-head { display: block; width: 100%; background: none; border: 0; padding: 0 4px 6px; color: inherit; font: inherit; text-align: center; cursor: default; }
button.ww-head { cursor: pointer; }
.ww-title { margin: 0; font: 700 34px/1.05 "Dancing Script", "Brush Script MT", cursive; color: #fbf6ec; text-shadow: 0 2px 2px rgba(0,0,0,.45); letter-spacing: .01em; }
.ww-verse { margin: 4px auto 0; max-width: 34ch; font: italic 600 12.5px/1.35 var(--font-display); color: #f3e6cf; text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.ww-line { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #e8d3b0; }
.ww-row { position: relative; list-style: none; margin: 0; padding: 10px 2px 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ww-row::before { content: ""; position: absolute; left: -14px; right: -14px; top: 16px; height: 3px; border-radius: 2px;   /* the twine */
  background: repeating-linear-gradient(115deg, #d9c49b 0 4px, #b89d6e 4px 7px); box-shadow: 0 2px 2px rgba(0,0,0,.35); }
.ww-slot { position: relative; display: flex; justify-content: center; padding-top: 6px; }
.ww-pin { position: absolute; top: 0; left: 50%; z-index: 2; width: 9px; height: 30px; margin-left: -4.5px; border-radius: 2px;   /* a clothespin */
  background: linear-gradient(90deg, #c9a06a, #e9c98f 45%, #b88a52); box-shadow: 0 2px 3px rgba(0,0,0,.45); }
.ww-pin::after { content: ""; position: absolute; left: 1px; right: 1px; top: 12px; height: 2px; background: rgba(90,60,30,.55); }
.ww-card { position: relative; width: 100%; min-height: 78px; margin-top: 12px; padding: 18px 6px 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; border-radius: 2px; background: #fbfaf6; color: #2a241c; font: inherit; cursor: pointer;
  transform: rotate(var(--tilt, 0deg)); transform-origin: 50% 0; box-shadow: 0 6px 10px -4px rgba(0,0,0,.55), 0 1px 1px rgba(0,0,0,.2); transition: transform .15s; }
.ww-card:hover { transform: rotate(0deg); }
.ww-card strong { font: 600 clamp(14px, 4.4vw, 18px)/1.1 var(--font-display); text-align: center; overflow-wrap: anywhere; }
.ww-card small { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: #7a6e5c; }
.ww-card.is-new small { color: #b3261e; }
.ww-card.is-new::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #c62828; }
.ww-card.is-prayed strong, .ww-card.is-prayed small { color: #2e6b2e; }
.ww-card.is-more { background: #f1e6cf; }
.ww-card.is-more small { color: #9a6a12; }
.ww-card.is-blank { cursor: default; padding: 20px 14px 12px; }
.ww-card.is-lock { color: #7a6e5c; }
.ww-lines { width: 70%; height: 22px; background: repeating-linear-gradient(180deg, rgba(42,36,28,.16) 0 3px, transparent 3px 9px); }
.ww-card:focus-visible { outline: 3px solid #f6c453; outline-offset: 2px; }
.ww-empty { text-align: center; color: #f3e6cf; margin: 10px 0; }
.ww-actions { display: flex; gap: 8px; margin-top: 12px; }
.ww-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 12px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  border: 1.5px solid rgba(255,240,215,.7); background: rgba(255,245,228,.12); color: #fbf6ec; }
.ww-btn.is-main { background: #fbf6ec; color: #4a2e18; border-color: #fbf6ec; }
@media (prefers-reduced-motion: reduce) { .ww-card { transition: none; } }
/* The Prayer Wall page: two big buttons under the wall */
.prayer-big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.btn.btn-lg { padding: 14px 12px; font-size: 15.5px; border-radius: 14px; justify-content: center; }
@media (max-width: 360px) { .prayer-big-actions { grid-template-columns: 1fr; } }
.prayer-big-actions .btn { min-width: 0; width: 100%; margin: 0; white-space: normal; }
/* Prayer wall: a shorter header with a bigger script title; the counts sit above the buttons */
.wood-wall { padding-top: 12px; }
.ww-title { font-size: 42px; line-height: 1; }
.ww-verse { margin-top: 2px; font-size: 12px; }
.ww-head { padding-bottom: 2px; }
.wood-wall .ww-line { margin: 10px 0 0; text-align: center; }
.wood-wall .ww-actions { margin-top: 8px; }
.ww-tip { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: #e8d3b0; opacity: .85; }
.ww-card, li.prayer { touch-action: pan-y; }
.ww-title { white-space: nowrap; font-size: clamp(30px, 10.5vw, 44px); }
/* My Church: a shorter prayer wall (two strings, smaller cards, same text size) */
.wood-wall.is-compact { padding-bottom: 12px; }
.wood-wall.is-compact .ww-row { padding: 6px 2px 2px; gap: 8px; }
.wood-wall.is-compact .ww-row::before { top: 12px; }
.wood-wall.is-compact .ww-slot { padding-top: 4px; }
.wood-wall.is-compact .ww-pin { height: 24px; }
.wood-wall.is-compact .ww-card { min-height: 60px; margin-top: 10px; padding: 13px 4px 6px; gap: 1px; }
.home-anns .ann-list { margin: 0; }
/* News: a row of tabs like the bottom bar (icon over a small word), with a count of new posts on each */
.news-tabs { display: flex; gap: 2px; margin: 0 -6px 12px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.news-tabs::-webkit-scrollbar { display: none; }
.news-tab { flex: 1 0 auto; min-width: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px 7px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.news-tab .tab-icon { display: inline-flex; }
.news-tab-label { white-space: nowrap; line-height: 1.1; }
.news-tab.is-on { background: var(--navy); color: var(--navy-ink); }
.news-tab .badge { top: -7px; right: -11px; }
.news-tab.is-on .badge { box-shadow: 0 0 0 2px var(--navy); }
:root[data-theme="dark"] .news-tab.is-on { background: var(--gold); color: #1b1b1b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .news-tab.is-on { background: var(--gold); color: #1b1b1b; } }
.news-tabs { overflow: visible; margin: 4px 0 12px; padding: 6px 4px 4px; }
.news-tab { flex: 1 1 0; min-width: 0; padding: 8px 2px 7px; }
.news-tab-label { white-space: normal; text-align: center; font-size: 10.5px; }
.letter-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.8px solid currentColor; border-radius: 6px; font: 800 13px/1 var(--font-body); }
/* Prepare Bulletin: announcements shown in full, with Pin / Remove / Edit under each; Pinned to My Church */
.cb-anns { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.cb-ann > .ann-list { margin: 0; }
.cb-ann .ann-card.has-opp { margin-bottom: 26px; }
.cb-ann-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.cb-ann-tools .row-end { gap: 6px; flex-wrap: wrap; }
.cb-pins { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cb-pin > .ann-rows { margin: 0; }
.cb-pin .ann-row.has-opp { margin-bottom: 26px; }
.cb-unpin { margin-top: 6px; }
.pin-group { margin: 6px 0 10px; }
.pin-group-title { margin: 0 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.pin-pick { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pin-pick-row { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pin-pick-row strong { flex: 1; min-width: 0; font-size: 14px; }
.pin-pick-row svg { color: var(--muted); flex: none; }
.pin-pick-row.is-on { border-color: var(--gold); background: var(--gold-soft); }
.pin-pick-row.is-on svg { color: var(--gold); }
.home-pins { margin: 0; }
/* My Church: pastors with a small photo under Church Details */
.pastor-cards { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.pastor-card { display: flex; align-items: center; gap: 12px; }
.pastor-photo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pastor-photo.is-initials { display: grid; place-items: center; background: var(--info-soft); color: var(--navy); font: 700 18px/1 var(--font-display); }
.pastor-info { display: flex; flex-direction: column; min-width: 0; }
.pastor-info strong { font-size: 15.5px; }
.pastor-info small { color: var(--muted); font-size: 13px; }
.pastor-contact { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 13.5px; }
.pastor-contact a { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
:root[data-theme="dark"] .pastor-contact a { color: #9fbbe6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pastor-contact a { color: #9fbbe6; } }
/* Church Details form: each pastor with a photo beside the fields */
.pastors-edit { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 6px 0; display: flex; flex-direction: column; gap: 10px; }
.pastors-edit legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.pastor-edit { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pastor-edit:last-of-type { border-bottom: 0; }
.pastor-edit-fields { display: flex; flex-direction: column; gap: 4px; }
.pastor-photo-field .image-drop { min-height: 90px; }
/* News: a colored line on the left until you've opened it (like groups that need you) */
.ann-row.is-unread { box-shadow: inset 4px 0 0 var(--bad), var(--shadow, 0 1px 2px rgba(0,0,0,.06)); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
/* Prayer wall: a red "New" stamp on new names */
.ww-card.is-new::after { display: none; }
.ww-stamp { position: absolute; top: 6px; right: 4px; padding: 2px 6px 1px; border: 2px solid #c62828; border-radius: 4px; color: #c62828; background: rgba(255,255,255,.6);
  font: 800 11px/1.1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; transform: rotate(12deg); box-shadow: inset 0 0 0 1px rgba(198,40,40,.25); opacity: .92; }
.ww-card.is-prayed small { font-weight: 800; }
/* My Church header: This Sabbath (and a big Bulletin button), then churches you follow, smaller and dimmer */
.hero-sabbath { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.hs-row { display: flex; align-items: stretch; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: rgba(10, 22, 44, .42); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.hs-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-bright); }
.hs-title { font: 600 18px/1.25 var(--font-display); color: #fff; }
.hs-line { font-size: 14px; color: rgba(255,255,255,.92); overflow-wrap: anywhere; }
.hs-line b { font-weight: 700; color: rgba(255,255,255,.7); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.hs-bulletin { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px;
  background: var(--gold-bright); color: #2a1f08; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.hs-bulletin:hover { filter: brightness(1.05); }
.hs-row.is-follow { padding: 8px 10px 8px 14px; background: rgba(10, 22, 44, .28); border-color: rgba(255,255,255,.1); opacity: .85; }
.hs-row.is-follow .hs-kicker { color: rgba(255,255,255,.75); font-size: 10.5px; }
.hs-row.is-follow .hs-line { font-size: 12.5px; color: rgba(255,255,255,.8); }
.hs-ftitle { font-family: var(--font-display); font-weight: 600; }
.hs-bulletin.is-small { width: 70px; gap: 3px; font-size: 11.5px; background: rgba(255,255,255,.88); color: var(--navy); }
.hs-more { flex: none; align-self: center; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; cursor: pointer; }
/* Calendar: a meeting waiting for your answer gets a bell in the empty space on the right */
.answer-needed { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); position: relative; }
.answer-needed::after { content: ""; position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--surface); }
.rsvp-tag.is-needed { color: var(--bad); font-weight: 800; }
.answer-needed { border: 0; padding: 0; box-shadow: none; cursor: pointer; }
.answer-needed::after { display: none; }
/* Calendar: a meeting waiting for your answer has its own notification on the right */
.answer-needed { width: auto; height: auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 999px; border: 0;
  background: var(--bad); color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: none; }
.answer-needed svg { flex: none; }
/* Prayer wall: a colored edge on new cards (red) and ones you've prayed for (green) */
.ww-card.is-new { box-shadow: inset 4px 0 0 #c62828, 0 6px 10px -4px rgba(0,0,0,.55), 0 1px 1px rgba(0,0,0,.2); }
.ww-card.is-prayed { box-shadow: inset 4px 0 0 #2e7d32, 0 6px 10px -4px rgba(0,0,0,.55), 0 1px 1px rgba(0,0,0,.2); }
/* Unread line: gold for announcements (their accent), blue for news stories */
.ann-row.is-unread { box-shadow: inset 4px 0 0 var(--gold-bright), var(--shadow, 0 1px 2px rgba(0,0,0,.06)); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.ann-row.is-story.is-unread { box-shadow: inset 4px 0 0 var(--navy), var(--shadow, 0 1px 2px rgba(0,0,0,.06)); border-color: color-mix(in srgb, var(--navy) 30%, var(--line)); }
:root[data-theme="dark"] .ann-row.is-story.is-unread { box-shadow: inset 4px 0 0 #9fbbe6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ann-row.is-story.is-unread { box-shadow: inset 4px 0 0 #9fbbe6; } }
/* News: no colored line for unread posts; a "New" bubble on the corner instead */
.ann-row.is-unread, .ann-row.is-story.is-unread { box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,.06)); border-color: var(--line); }
:root[data-theme="dark"] .ann-row.is-story.is-unread { box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,.06)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ann-row.is-story.is-unread { box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,.06)); } }
.ann-row { position: relative; }
.ann-row.is-unread { overflow: visible; }
.new-bubble { position: absolute; top: -8px; left: -6px; z-index: 3; padding: 3px 9px; border-radius: 999px; background: var(--bad); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 0 0 2px var(--surface), 0 2px 4px rgba(0,0,0,.2); }
.new-bubble { left: 10px; top: -9px; }
.ann-rows > .ann-row.is-unread { overflow: visible; margin-top: 4px; }
/* Send an Email: drafts, rich text, making new items to include */
.se-draft { flex-direction: row; align-items: center; gap: 8px; }
.se-draft-open { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; }
.se-draft-open small { color: var(--muted); font-size: 13px; }
.se-draft.is-open { background: var(--gold-soft); }
.se-create { margin: 4px 0 2px; }
.se-rich { margin-top: 10px; font-size: 15px; }
.se-create-popup { max-height: 92vh; }
/* Prayer wall title: a clean, upright serif (easy to read) with a little spacing, instead of script */
.ww-title { font: 600 clamp(26px, 8.4vw, 34px)/1.1 var(--font-display); letter-spacing: .015em; white-space: nowrap; color: #fbf6ec; text-shadow: 0 2px 3px rgba(0,0,0,.45); }
.ww-title::after { content: ""; display: block; width: 48px; height: 2px; margin: 8px auto 2px; border-radius: 2px; background: rgba(240, 214, 160, .75); }
.ww-verse { font-style: italic; font-weight: 500; }
/* Prayer wall cards: the colored line runs along the bottom (red new, green prayed) */
.ww-card.is-new { box-shadow: inset 0 -4px 0 #c62828, 0 6px 10px -4px rgba(0,0,0,.55), 0 1px 1px rgba(0,0,0,.2); }
.ww-card.is-prayed { box-shadow: inset 0 -4px 0 #2e7d32, 0 6px 10px -4px rgba(0,0,0,.55), 0 1px 1px rgba(0,0,0,.2); }
/* Prayer wall title: an elegant italic display face, lettered in cream like a painted sign, with flourishes */
.ww-title { font: italic 700 clamp(32px, 10.5vw, 42px)/1 "Cormorant Garamond", "Lora", Georgia, serif; letter-spacing: .01em; color: #fbf3e2;
  text-shadow: 0 1px 0 rgba(255,255,255,.18), 0 2px 3px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; gap: 10px; }
.ww-title::before, .ww-title::after { content: ""; flex: none; display: block; width: 26px; height: 10px; margin: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 20'%3E%3Cpath d='M2 10h18M32 10h18M26 3l7 7-7 7-7-7z' stroke='%23e9cf98' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); border-radius: 0; }
/* News: the New bubble sits on the right corner */
.new-bubble { left: auto; right: 12px; }
/* Calendar: Answer matches the Answer button on group cards */
.answer-needed { padding: 5px 12px; border-radius: 999px; background: var(--info, #2b4a7a); color: var(--surface); font-weight: 700; font-size: 12.5px; gap: 0; }
/* More: a Notifications heading over the notices (hidden when there are none), and a grey Add More Blocks tile */
.more-notices { display: flex; flex-direction: column; gap: 10px; }
.more-notices-body { display: flex; flex-direction: column; gap: 10px; }
.more-notices:not(:has(.more-notices-body > *)) { display: none; }
.more-notices .more-sec-title { margin-bottom: 0; }
.row-link.more-bar.add-blocks-bar { background: color-mix(in srgb, var(--ink) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--line)); border-style: solid; }
.row-link.more-bar.add-blocks-bar .quick-icon { background: var(--surface); color: var(--ink); }
/* Files in groups */
.gf-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.gf-row { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; }
.gf-row + .gf-row { border-top: 1px solid var(--line); }
.gf-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; background: none; border: 0; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.gf-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.gf-icon.is-agenda { background: var(--gold-soft); color: var(--gold); }
.gf-icon.is-minutes { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); }
.gf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gf-text strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-text small { color: var(--muted); font-size: 12.5px; }
.gf-kind { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.gf-kind.is-agenda { background: var(--gold-soft); color: var(--gold); }
.gf-kind.is-minutes { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); }
.gf-form { padding: 0; }
.ww-title { font-size: clamp(28px, 8.6vw, 38px); }
/* One "New" look everywhere: a small red pill, white uppercase letters (the prayer wall keeps its stamp) */
.new-pill, .badge.chat-badge, .new-bubble { display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: auto; padding: 3px 9px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.new-pill { margin-left: 6px; vertical-align: 1px; }
.new-bubble { position: absolute; }
/* Tabs inside the Order of Service header use the same icon tabs */
.planning-head .news-tabs.planning-tabs { margin: 0; border: 0; border-top: 1px solid var(--staff-line); border-radius: 0; background: var(--staff-soft); padding: 6px; }
.planning-head .planning-tabs .news-tab { border-radius: 10px; padding: 8px 4px 7px; }
.planning-head .planning-tabs .news-tab.is-on { background: var(--navy); color: var(--navy-ink); }
.planning-head .planning-tabs .news-tab:not(.is-on) { color: var(--muted); background: none; }
.news-tab:disabled { opacity: .45; cursor: default; }
.news-tabs.cal-tabs, .news-tabs.groups-tabs, .news-tabs.hub-tabs, .news-tabs.details-parts { margin: 4px 0 14px; }

/* Video meetings: Join button from 15 minutes before until the meeting ends */
.btn.join-video { background: #1f7a4a; color: #fff; border-color: #1f7a4a; gap: 6px; font-weight: 700; text-decoration: none; }
.btn.join-video:hover { background: #18663d; }
.meeting-row .btn.join-video { margin-top: 8px; padding: 7px 14px; font-size: 14px; align-self: flex-start; width: max-content; }
.join-later { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.meeting-row .compact-main .join-later, .meeting-row .compact-main .join-video { display: flex; }
.live-meetings { display: grid; gap: 8px; margin-bottom: 14px; }
.live-meeting { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: var(--radius); background: var(--good-soft); border: 1.5px solid #1f7a4a; }
.live-meeting .live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1f9d58; box-shadow: 0 0 0 0 rgba(31, 157, 88, .6); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 9px rgba(31, 157, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 88, 0); } }
@media (prefers-reduced-motion: reduce) { .live-meeting .live-dot { animation: none; } }
.live-meeting-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; }
.live-meeting-main:disabled { cursor: default; }
.live-meeting-main strong { font-size: 15px; } .live-meeting-main small { color: var(--muted); font-size: 12.5px; }
.live-meeting .btn.join-video { flex: none; padding: 9px 14px; font-size: 14px; }
.event-video { margin: 10px 0; } .event-video .join-later { font-size: 14px; }
.video-toggle span { display: inline-flex; align-items: center; gap: 6px; }
.group-live { display: flex; align-items: center; gap: 8px; margin: 2px 14px 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--good-soft); border: 1.5px solid #1f7a4a; }
.group-live .live-dot, .live-meeting .live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1f9d58; animation: live-pulse 1.8s infinite; }
.group-live-text { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); }
.group-live .btn.join-video { flex: none; padding: 7px 14px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .group-live .live-dot { animation: none; } }

/* RSVP */
.rsvp-btn-wrap { display: inline-flex; }
.btn.rsvp-btn { gap: 5px; white-space: nowrap; }
.rsvp-box .rsvp-btn-wrap { display: flex; }
.rsvp-event { margin: 0 0 10px; line-height: 1.4; }
.rsvp-count { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--info-soft); margin: 0 0 14px; }
.rsvp-count strong { font-size: 18px; }
.rsvp-q { display: block; font-weight: 600; margin-bottom: 8px; }
.rsvp-stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 4px 0 14px; }
.rsvp-stepper output { min-width: 40px; text-align: center; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rsvp-stepper .icon-btn { width: 44px; height: 44px; }
.rsvp-stepper .icon-btn:disabled { opacity: .35; }
.rsvp-who-wrap { display: block; width: 100%; box-sizing: border-box; margin-top: 12px; padding: 10px 12px; border-radius: 12px; }
.rsvp-who-wrap summary { cursor: pointer; font-weight: 600; }
.rsvp-who-head { margin: 8px 0 6px; font-size: 14px; }
.rsvp-who ul { list-style: none; margin: 0; padding: 0; }
.rsvp-who li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.rsvp-who-n { color: var(--muted); white-space: nowrap; }
.ev-button-choice { margin-bottom: 4px; }
.people-tabs { margin-top: 4px; }
.people-tab { display: grid; gap: 12px; }
.people-count { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.people-tab .list-row > .avatar, .people-tab .list-row > [class*="avatar"] { flex: none; }

/* ===================== Registrations ===================== */
.money-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding-left: 10px; }
.money-input span { color: var(--muted); font-weight: 600; }
.money-input input { border: 0 !important; background: transparent; padding-left: 4px; min-width: 0; width: 100%; box-shadow: none !important; }
.money-input:focus-within { outline: 2px solid var(--navy); outline-offset: 1px; }
.qty-stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.qty-stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.qty-stepper button:not(:disabled):hover { border-color: var(--navy); }
.qty-stepper button:disabled { opacity: .35; cursor: default; }
.qty-stepper output { min-width: 26px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
/* payments card */
.pay-card { display: grid; gap: 10px; border: 1.5px solid var(--staff-line); background: var(--staff-soft); }
.pay-card.is-ready { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: var(--good-soft); }
.pay-card-head { display: flex; gap: 10px; align-items: flex-start; }
.pay-card-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.pay-card-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--staff); }
.pay-card.is-ready .pay-card-icon { color: var(--good); }
.pay-card .btn { justify-self: start; }
/* organizer list */
.reg-list, .reg-edit-list, .reg-orders, .reg-people, .reg-rate-sales, .reg-lines, .reg-pay-list, .reg-options { list-style: none; margin: 0; padding: 0; }
.reg-list { display: grid; gap: 10px; }
.reg-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 10px; }
.reg-row-img { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.reg-row-ph { display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.reg-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.reg-row-main strong { font-size: 15.5px; }
.reg-row-main small { color: var(--muted); font-size: 13px; }
.reg-row-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 3px; }
/* builder */
.reg-steps .news-tab-label { font-size: 11px; }
.reg-edit-list { display: grid; gap: 10px; margin-bottom: 10px; }
.reg-edit-item { display: grid; gap: 4px; }
.reg-edit-item label { margin-top: 6px; }
.reg-more { justify-self: start; margin-top: 4px; }
.reg-more-box { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.reg-item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.reg-item-actions .check { margin-right: auto; }
.reg-suggest { margin-bottom: 10px; }
.reg-suggest .chip { color: var(--navy); }
.reg-rate-pick { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 8px; margin-top: 8px; display: grid; gap: 2px; }
.reg-rate-pick legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.code-amt { display: flex; gap: 6px; } .code-amt select { width: 64px; flex: none; } .code-amt > :last-child { flex: 1; min-width: 0; }
.reg-builder-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.reg-builder-actions .row-end { display: flex; gap: 8px; margin-left: auto; }
/* dashboard */
.reg-dash-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.reg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; }
.reg-stat strong { font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.reg-stat strong small { font-size: 14px; color: var(--muted); font-weight: 600; }
.reg-stat > span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.reg-bar { height: 6px; border-radius: 99px; background: var(--info-soft); overflow: hidden; margin-top: 6px; }
.reg-bar span { display: block; height: 100%; background: var(--navy); border-radius: inherit; }
.reg-rate-sales li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.reg-rate-sales li.is-addon span:first-child::before { content: "+ "; color: var(--muted); }
.reg-rate-sales li.is-code { font-size: 13px; }
.reg-orders { display: grid; gap: 8px; }
.reg-order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.reg-order-main { min-width: 0; display: grid; gap: 2px; } .reg-order-main small { color: var(--muted); font-size: 12.5px; }
.reg-order-amt { display: grid; justify-items: end; gap: 3px; flex: none; } .reg-order-amt small { color: var(--warn); font-size: 12px; font-weight: 600; }
.reg-people-head { justify-content: space-between; align-items: center; }
.reg-people li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.reg-people li.is-in .reg-person strong { color: var(--good); }
.reg-people.compact li { padding: 7px 0; }
.reg-person { min-width: 0; display: grid; gap: 2px; } .reg-person small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.reg-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 14.5px; }
.reg-sub { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; }
.reg-money { margin: 6px 0; }
.reg-pay-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.reg-order-actions { margin-top: 14px; }
.reg-record { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--paper); }
.reg-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.reg-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.reg-lines li.is-discount { color: var(--good); }
.reg-lines li.is-fee { color: var(--muted); font-size: 13.5px; }
.reg-lines li.is-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; font-weight: 700; font-size: 16px; }

/* The registration page: opens over the app (and on its own for guests) */
html.reg-open, html.reg-open body { overflow: hidden; }
.reg-page { position: fixed; inset: 0; z-index: 70; background: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.reg-topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.reg-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; display: grid; gap: 16px; }
.reg-loading, .reg-empty { padding: 40px 0; text-align: center; }
.reg-hero { display: grid; gap: 6px; padding-top: 12px; }
.reg-hero-img { width: calc(100% + 32px); margin: -12px -16px 8px; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.reg-host { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--gold); }
.reg-hero h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.12; margin: 0; }
.reg-summary { margin: 0 0 4px; font-size: 16px; color: var(--muted); }
.reg-progress { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 0; padding: 0; counter-reset: s; }
.reg-progress li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.reg-progress li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--line); color: var(--ink); flex: none; }
.reg-progress li.is-on { color: var(--ink); border-color: var(--navy); } .reg-progress li.is-on span { background: var(--navy); color: #fff; }
.reg-progress li.is-done { border-color: var(--good); } .reg-progress li.is-done span { background: var(--good); color: #fff; }
.reg-desc { font-size: 15px; line-height: 1.55; }
.reg-left { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--bad); font-weight: 700; font-size: 14px; }
.reg-closes { margin: 0; font-size: 13.5px; }
.reg-choose h2, .reg-wrap section > h2 { font-size: 17px; margin: 0 0 10px; }
.reg-choose h2:not(:first-child) { margin-top: 18px; }
.reg-options { display: grid; gap: 10px; }
.reg-option { display: flex; align-items: center; gap: 12px; justify-content: space-between; border: 1.5px solid var(--line); transition: border-color .15s; }
.reg-option.is-picked { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.reg-option.is-off { opacity: .6; }
.reg-option-main { min-width: 0; display: grid; gap: 3px; }
.reg-option-main strong { font-size: 15.5px; }
.reg-option-main small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.reg-price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; } .reg-price small { font-weight: 500; color: var(--muted); }
.reg-avail { color: var(--warn) !important; font-weight: 600; }
.reg-code { margin-top: 14px; } .reg-code label { font-weight: 600; font-size: 14px; }
.reg-code-row { display: flex; gap: 8px; margin-top: 6px; } .reg-code-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.reg-bottom { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(23, 36, 58, .07); }
.reg-bottom-total { flex: 1; min-width: 0; display: grid; } .reg-bottom-total strong { font-size: 19px; font-variant-numeric: tabular-nums; } .reg-bottom-total small { color: var(--muted); font-size: 12.5px; }
.reg-bottom .btn-primary { padding-inline: 22px; }
.reg-attendee h2 small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.reg-name-row { display: flex; gap: 8px; } .reg-name-row input { flex: 1; min-width: 0; }
.reg-q { display: grid; gap: 4px; margin-top: 8px; border: 0; padding: 0; }
.reg-q legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.reg-q .req { color: var(--bad); }
.reg-adult { margin-top: 12px; font-weight: 600; }
.reg-pay-options { display: grid; gap: 8px; }
.reg-pay-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.reg-pay-opt.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.reg-pay-opt input { margin-top: 3px; accent-color: var(--navy); }
.reg-pay-opt span { display: grid; gap: 2px; } .reg-pay-opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.reg-cover { margin-top: 12px; font-size: 14px; }
.reg-waiver p { font-size: 14px; line-height: 1.5; margin: 0 0 10px; color: var(--muted); }
.reg-refund { margin: 0; }
.reg-human { min-height: 65px; display: flex; justify-content: center; }
.reg-mylinks { margin: 0; }
.reg-mylinks .row-wrap input { flex: 1; min-width: 200px; }
.reg-err { position: sticky; bottom: 84px; z-index: 3; background: var(--bad-soft); padding: 10px 12px; border-radius: 10px; margin: 0; }
.reg-foot { font-size: 12.5px; color: var(--muted); text-align: center; margin: 4px 0 0; }
.reg-closed, .reg-full { display: grid; gap: 8px; }
.reg-done-head { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 24px 0 6px; }
.reg-done-head h1 { font-family: var(--font-display); font-size: 27px; margin: 6px 0 0; }
.reg-done-head p { margin: 0; }
.reg-done-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.reg-done-head.is-ok .reg-done-icon { background: var(--good-soft); color: var(--good); }
.reg-confirm-msg { background: var(--gold-soft); border-color: transparent; } .reg-confirm-msg p { margin: 0; line-height: 1.5; }
.reg-keep { text-align: center; }
.demo-pay .callout { align-items: flex-start; }
.btn.reg-btn { gap: 6px; }
@media (min-width: 600px) { .reg-hero-img { width: 100%; margin: 0 0 8px; border-radius: 0 0 var(--radius) var(--radius); } }
.reg-code .good-text { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.reg-cover, .reg-waiver .check { font-weight: 500; }
.reg-wrap { padding-bottom: 0; }
.reg-bottom { margin-top: 4px; }
.reg-wrap .card:not(.form) { padding: 14px 16px; }
.pay-card { padding: 14px 16px; }
.reg-money small, .reg-money .muted { margin-left: 4px; }
.reg-edit-item { gap: 6px; }
.reg-edit-item .form-row label, .reg-edit-item > label:first-child { margin-top: 0; }
.reg-q label .req, .reg-q label .muted { margin-left: 4px; }
.money-input input:focus, .money-input input:focus-visible { outline: none; }
.money-input:focus-within { outline: 2px solid var(--navy); outline-offset: 1px; }
:root { --reg-pick: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --reg-pick: #8fb0e0; } }
:root[data-theme="dark"] { --reg-pick: #8fb0e0; }
.reg-option.is-picked, .reg-pay-opt.is-on { border-color: var(--reg-pick); box-shadow: 0 0 0 1px var(--reg-pick); }
.reg-progress li.is-on { border-color: var(--reg-pick); }

/* ===================== Calendar: month view ===================== */
.cal-layout { margin: 2px 0 12px auto; }
.cal-month { display: grid; gap: 8px; margin-bottom: 18px; }
.cm-head { display: flex; align-items: center; gap: 4px; }
.cm-head h2 { font-family: var(--font-display); font-size: 19px; margin: 0 4px; min-width: 0; flex: 0 1 auto; }
.cm-head .cm-next { order: 2; }
.cm-head h2 { order: 1; }
.cm-head .icon-btn:first-child { order: 0; }
.cm-today { order: 3; margin-left: auto; }
.cm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cm-wk { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 7px 0 5px; border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.cm-wk.is-sab { color: var(--gold); }
.cm-wk-l { display: none; }
.cm-day { position: relative; min-width: 0; border-top: 1px solid var(--line); }
.cm-grid > .cm-day:nth-child(-n+14) { border-top: 0; }
.cm-day:not(:nth-child(7n)) { border-right: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.cm-day.is-sab { background: color-mix(in srgb, var(--gold-soft) 45%, transparent); }
.cm-day-btn { width: 100%; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding: 5px 0 0;
  background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit; }
.cm-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-day.is-out .cm-num { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.cm-day.is-past:not(.is-out) .cm-num { color: var(--muted); }
.cm-day.is-today .cm-num { background: var(--navy); color: #fff; }
.cm-day.is-sel:not(.is-today) .cm-num { box-shadow: inset 0 0 0 2px var(--reg-pick, var(--navy)); }
.cm-dots { display: flex; gap: 2px; height: 6px; align-items: center; }
.cm-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cat, var(--navy)); }
.cm-dots b { font-size: 9px; line-height: 1; color: var(--muted); }
.cm-day.is-out .cm-dots { opacity: .45; }
.cm-chips { display: none; list-style: none; margin: 0; padding: 0; }
.cm-sel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.cm-sel h3 { margin: 0 0 6px; font-size: 14.5px; }
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 10px; background: none; border: 0; border-left: 3px solid var(--cat, var(--navy)); border-radius: 0; margin: 4px 0;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.cm-row:hover { background: var(--paper); }
.cm-row-t { flex: none; width: 62px; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cm-row-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cm-row-main strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-row-main small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-row > svg { color: var(--muted); flex: none; }
.cm-none { margin: 2px 0; font-size: 14px; }

/* Desktop: the month grid uses the whole screen, with event names in each day. */
@media (min-width: 900px) {
  html.cal-wide .cal-tabs, html.cal-wide .request-banner, html.cal-wide .add-row, html.cal-wide .callout { max-width: 560px; }
  .cal-month { align-items: start; column-gap: 16px; }
  .cm-head { grid-column: 1 / -1; }
  .cm-head h2 { font-size: 24px; }
  .cm-wk { font-size: 12px; text-align: left; padding: 8px 10px; }
  .cm-wk-s { display: none; } .cm-wk-l { display: inline; }
  .cm-day { min-height: 118px; display: flex; flex-direction: column; }
  .cm-day-btn { height: auto; align-items: flex-start; padding: 6px 8px 2px; }
  .cm-dots { display: none; }
  .cm-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 0 5px 6px; min-width: 0; }
  .cm-chips li { min-width: 0; }
  .cm-chip { width: 100%; min-width: 0; overflow: hidden; display: flex; gap: 4px; align-items: baseline; padding: 2px 6px; border: 0; border-radius: 5px; cursor: pointer; text-align: left; font: inherit;
    font-size: 12px; line-height: 1.35; color: var(--ink); background: color-mix(in srgb, var(--cat, var(--navy)) 14%, transparent); border-left: 3px solid var(--cat, var(--navy)); }
  .cm-chip:hover { background: color-mix(in srgb, var(--cat, var(--navy)) 24%, transparent); }
  .cm-chip-t { flex: none; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
  .cm-chip-n { text-align: left; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
  .cm-day.is-out .cm-chips { opacity: .5; }
  .cm-more { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--reg-pick, var(--navy)); cursor: pointer; padding: 1px 6px; text-align: left; }
}
/* The selected day's events always sit under the grid (the grid gets the full width). */
/* Between phone and the desktop layout (src/desktop.css, 1024px+), the month view widens the phone-sized column. */
@media (min-width: 900px) and (max-width: 1023.98px) { html.cal-wide .app { max-width: min(1240px, calc(100vw - 48px)); } }

/* Groups: silence notifications; settings page */
.icon-btn.is-muted { background: var(--info-soft); color: var(--muted); }
.settings-btn { position: relative; }
.settings-btn .badge { position: absolute; top: -4px; right: -4px; }
.muted-note { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--info-soft); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; margin-bottom: 10px; }
.muted-icon { display: inline-flex; color: var(--muted); }
.badge.chat-badge.is-quiet { background: var(--line); color: var(--muted); }
.group-md-link { margin-bottom: 14px; }
.group-md-link .chat-badge { flex: none; }
.mute-choices { display: grid; gap: 6px; }
.mute-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; font-size: 14.5px; color: var(--ink); cursor: pointer; text-align: left; }
.mute-opt span { flex: 1; }
.mute-opt.is-on { border-color: var(--reg-pick, var(--navy)); box-shadow: 0 0 0 1px var(--reg-pick, var(--navy)); font-weight: 600; }
.mute-opt > svg:first-child { color: var(--muted); }
.mute-now { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.md-block .section { margin-top: 10px; }
.md-add { margin-bottom: 6px; }
.md-none { margin: 4px 0; }
.org-settings { display: grid; gap: 10px; }
.reg-soon { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.event-sheet-actions .reg-soon { font-size: 14px; padding: 8px 14px; }
.group-settings-page .settings-block { grid-template-columns: minmax(0, 1fr); }
.md-block .section .section-head { border: 0; padding: 0; margin: 6px 0 4px; }
.md-block .section .section-head h2 { font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }

/* ===================== Photo galleries ===================== */
.gallery-field { display: grid; gap: 8px; margin-top: 6px; }
.gallery-edit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.gallery-edit li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--info-soft); }
.gallery-edit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-edit-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.gallery-edit-actions button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(10, 16, 28, .65); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 16px; line-height: 1; }
.gallery-add { justify-self: start; gap: 6px; cursor: pointer; }
.gallery { margin: 14px 0; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: var(--radius); overflow: hidden; }
.gallery-grid li button { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; position: relative; background: var(--info-soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.gallery-grid li { grid-column: span 2; }
.gallery-grid.n1 li { grid-column: span 6; } .gallery-grid.n1 img { aspect-ratio: 16 / 10; }
.gallery-grid.n2 li { grid-column: span 3; }
.gallery-grid.n4 li { grid-column: span 3; }
.gallery-grid.n5 li:nth-child(-n+2) { grid-column: span 3; }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 16, 28, .55); color: #fff; font-size: 22px; font-weight: 700; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 14, .94); display: grid; place-items: center; touch-action: pan-y; }
.lightbox img { max-width: 100vw; max-height: 86vh; object-fit: contain; user-select: none; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox-nav.is-prev { left: 10px; } .lightbox-nav.is-next { right: 10px; }
.lightbox-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 600; }

/* ===================== Event form: advanced page details ===================== */
.advanced-box { border: 1.5px dashed var(--line); border-radius: 12px; margin-top: 10px; }
.advanced-box.is-open { border-style: solid; }
.advanced-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.advanced-toggle span { flex: 1; display: grid; gap: 2px; } .advanced-toggle small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.advanced-toggle > svg { transition: transform .15s; } .advanced-box.is-open .advanced-toggle > svg { transform: rotate(90deg); }
.ed-details { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; }
.ed-h { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 16px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.ed-chips .chip { display: inline-flex; align-items: center; gap: 5px; color: var(--navy); }
.ed-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--paper); margin-top: 6px; }
.ed-actions { display: flex; justify-content: flex-end; gap: 6px; }
.ed-card-top { display: flex; align-items: center; gap: 10px; } .ed-card-top select { flex: 1; }
.ed-card-icon { color: #13757d; }
.ed-sp-top { display: flex; align-items: center; gap: 12px; }
.ed-sp-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; }
.ed-sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-sp-btns { display: flex; gap: 6px; flex-wrap: wrap; } .ed-sp-btns label { cursor: pointer; }
.ed-day-top { display: flex; align-items: center; gap: 8px; } .ed-day-top input { flex: 1; } .ed-day-top label { margin: 0; }
.ed-sched-row { display: flex; gap: 6px; align-items: flex-start; padding-top: 6px; border-top: 1px solid var(--line); }
.ed-sched-row > input[type="time"] { width: 104px; flex: none; }
.ed-sched-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ed-day .link-btn { align-self: flex-start; margin-top: 4px; }
.ep-open-btn { margin: 10px 0 4px; gap: 6px; }

/* ===================== The event page ===================== */
html.ep-open, html.ep-open body { overflow: hidden; }
.ep-page { position: fixed; inset: 0; z-index: 68; background: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ep-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; display: grid; gap: 18px; }
.ep-hero { display: grid; gap: 6px; padding-top: 12px; }
.ep-hero-img { width: calc(100% + 32px); margin: -12px -16px 8px; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.ep-hero h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.12; margin: 0 0 4px; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ep-actions .btn { gap: 6px; }
.ep-section h2 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; color: var(--navy); }
:root[data-theme="dark"] .ep-section h2 { color: var(--gold-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ep-section h2 { color: var(--gold-bright); } }
.ep-about p { line-height: 1.6; }
.ep-prices { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ep-prices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.ep-prices li:first-child { border-top: 0; }
.ep-prices li span { display: grid; gap: 2px; min-width: 0; } .ep-prices small { color: var(--muted); font-size: 13px; }
.ep-prices b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; } .ep-prices b small { font-weight: 500; }
.ep-prices li.is-addon strong::before { content: "+ "; color: var(--muted); }
.ep-day h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 6px; }
.ep-sched { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ep-sched li { display: flex; gap: 14px; padding: 11px 14px; border-top: 1px solid var(--line); }
.ep-sched li:first-child { border-top: 0; }
.ep-time { flex: none; width: 74px; font-weight: 700; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ep-what { display: grid; gap: 2px; } .ep-what small { color: var(--muted); font-size: 13.5px; }
.ep-speakers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ep-speakers li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ep-sp-photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--info-soft); }
.ep-sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.ep-sp-photo .avatar { width: 76px; height: 76px; font-size: 26px; }
.ep-sp-text { display: grid; gap: 2px; } .ep-sp-text strong { font-size: 17px; } .ep-sp-text small { color: var(--muted); font-size: 13.5px; }
.ep-sp-text p { margin: 6px 0 0; line-height: 1.5; font-size: 14.5px; }
.ep-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ep-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; }
.ep-card.is-wide { grid-column: 1 / -1; }
.ep-card-icon { color: #13757d; }
:root[data-theme="dark"] .ep-card-icon, :root[data-theme="dark"] .ed-card-icon { color: #4fc3c9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ep-card-icon, :root:not([data-theme="light"]) .ed-card-icon { color: #4fc3c9; } }
.ep-card strong { font-size: 17px; text-transform: uppercase; letter-spacing: .02em; font-weight: 800; }
.ep-card p { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.ep-coord p { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--muted); }
@media (min-width: 600px) { .ep-hero-img { width: 100%; margin: 0 0 8px; border-radius: 0 0 var(--radius) var(--radius); } }
@media (min-width: 1024px) { .ep-page { left: var(--desk-sidebar, 0px); } .ep-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ep-card.is-wide { grid-column: auto; } }
.ep-card-icon svg { width: 44px; height: 44px; }
.ep-card { padding-top: 24px; }
.ed-sched-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 6px; align-items: center; }
.ed-sched-row > input[type="time"] { width: 140px; }
.ed-sched-row > .icon-btn { grid-column: 3; grid-row: 1; }
.ed-sched-main { grid-column: 1 / -1; grid-row: 2; }
.ep-open-btn { font-size: 16px; padding-block: 13px; gap: 6px; margin: 12px 0 6px; }
.ep-day-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.ep-day-tabs button { flex: 1 0 auto; min-width: 84px; display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; color: var(--ink); cursor: pointer; text-align: center; }
.ep-day-tabs button small { color: var(--muted); font-size: 12px; }
.ep-day-tabs button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ep-day-tabs button.is-on small { color: rgba(255, 255, 255, .8); }
.ep-day-one { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.ep-bottom-cta { padding: 4px 0 8px; }
.ep-bottom-cta .btn, .ep-bottom-cta .reg-soon { width: 100%; justify-content: center; padding-block: 13px; font-size: 16px; }
.reg-soon.is-link { border: 0; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.home-anns-title { font-family: var(--font-display); font-size: 24px; line-height: 1.2; margin: 0 0 10px; color: var(--ink); }
.home-anns-all { margin-top: 12px; gap: 6px; font-size: 15px; padding-block: 12px; border-width: 1.5px; border-color: color-mix(in srgb, var(--navy) 35%, var(--line)); color: var(--navy); font-weight: 700; }
:root[data-theme="dark"] .home-anns-all { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home-anns-all { color: var(--ink); } }
/* "New" sits inside the box's top-right corner, with room around it (not over the edge) */
.new-bubble { top: 10px; right: 10px; left: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.ann-row.is-unread, .ann-rows > .ann-row.is-unread { overflow: hidden; margin-top: 0; }
.ann-row.is-unread:not(.has-photo) .ann-row-open { padding-right: 52px; }
.ann-row.is-unread.has-photo .new-bubble { z-index: 3; }
.ann-row.can-swipe { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.swipe-note { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
/* Opportunity boxes sit inside their card (they used to hang off the bottom edge, which broke with long text) */
.ann-row.has-opp, .ann-card.has-opp, .cb-ann .ann-card.has-opp, .cb-pin .ann-row.has-opp { margin-bottom: 0; }
.ann-row.has-opp .opportunity, .ann-card.has-opp .opportunity { width: auto; margin: 6px 14px 14px; box-shadow: none; }
.opportunity, .opp-call { min-width: 0; overflow-wrap: anywhere; }
.opp-eyebrow { flex-wrap: wrap; line-height: 1.3; }
.opp-line { row-gap: 4px; }
.opp-when { min-width: 0; flex: 1 1 60%; line-height: 1.35; }
.opp-go { white-space: normal; text-align: left; }
.opp-call-btn { max-width: 100%; text-align: left; white-space: normal; }
/* Registration buttons sit under the event's info in the calendar list (not squeezed on the right) */
.agenda-reg { grid-column: 1 / -1; padding-left: 72px; position: relative; z-index: 1; display: flex; }
.agenda-reg .reg-soon { font-size: 12.5px; padding: 6px 12px; }
@media (max-width: 360px) { .agenda-reg { padding-left: 0; } }
/* Group chats: the history flows with the page and the message box stays at the bottom of the screen */
.chat.is-group-chat { overflow: clip; }
.chat.is-group-chat .chat-log { max-height: none; overflow: visible; }
.chat.is-group-chat .chat-input { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 5; background: var(--surface);
  box-shadow: 0 -6px 14px rgba(23, 36, 58, .07); border-radius: 0 0 var(--radius) var(--radius); }
.chat.is-group-chat .chat-end { scroll-margin-bottom: calc(var(--tabbar-h) + 80px); }
@media (min-width: 1024px) {
  .chat.is-group-chat .chat-input { bottom: 0; }
  .chat.is-group-chat .chat-end { scroll-margin-bottom: 90px; }
}
/* Order of Service & Assignments: only leaders see it, so it uses the app's normal colors, not staff purple */
.not-staff { --staff: var(--navy); --staff-soft: var(--info-soft); --staff-line: color-mix(in srgb, var(--navy) 25%, var(--line)); --staff-on: #fff; }
:root[data-theme="dark"] .not-staff { --staff-soft: #1c2940; --staff-line: #2f4366; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .not-staff { --staff-soft: #1c2940; --staff-line: #2f4366; } }
:root[data-theme="dark"] .not-staff .svc-chip.is-on, :root[data-theme="dark"] .not-staff .planning-head .planning-tabs button.is-on { --staff: #8fb0e0; }
.dg-prayers { display: grid; gap: 8px; }
.dg-prayer { padding: 9px 12px; border-radius: 10px; background: #f3ecdf; border-left: 4px solid #a86f12; color: #1d2433; font-size: 14px; line-height: 1.45; }
.dg-prayer strong { display: block; font-family: Georgia, serif; font-size: 16px; }
.dg-prayer.is-praise { background: #e7f1e8; border-left-color: #24704a; }
.dg-prayer-kind { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a5a0c; margin-bottom: 3px; }
.dg-prayer.is-praise .dg-prayer-kind { color: #24704a; }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.usage-stat { display: grid; gap: 1px; padding: 10px; border-radius: 12px; background: var(--info-soft); min-width: 0; }
.usage-stat strong { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.usage-stat span { font-size: 12.5px; font-weight: 700; }
.usage-stat small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.usage-bars { display: grid; gap: 6px; margin-bottom: 6px; }
.usage-bars > div { display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.usage-bars b { text-align: right; font-variant-numeric: tabular-nums; }
/* Swipe to hide / mark as read: the card slides off a colored strip that says what will happen */
.swipe-wrap { position: relative; list-style: none; border-radius: var(--radius); }
.swipe-under { position: absolute; inset: 0; border-radius: var(--radius); display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 22px; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.swipe-under.is-read { background: #24704a; }
.swipe-under.is-hide { background: #56637a; }
.swipe-wrap > .ann-row { position: relative; z-index: 1; }
.swipe-under { opacity: 0; transition: opacity .12s; }
.swipe-wrap:has(> .ann-row[style*="translate"]) .swipe-under { opacity: 1; }
/* A group's top (name, buttons, details) stays put; older messages scroll up behind it */
.group-head-sticky { position: sticky; top: 0; z-index: 8; background: var(--paper); box-shadow: 0 6px 12px -8px rgba(23, 36, 58, .18); margin-bottom: 10px; }
.group-head-sticky .screen-head { padding-block: 14px 4px; }
.group-head-sticky .screen-head h1 { font-size: 24px; }
.group-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 2px var(--gutter, 16px) 10px; }
.group-strip .muted-note { margin: 0; padding: 4px 10px; font-size: 12.5px; }
.group-strip-meets { font-size: 13px; }
.group-md-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.group-md-chip .chat-badge { margin-left: 2px; }
.group-screen .chat.is-group-chat .chat-new-divider, .group-screen .msg { scroll-margin-top: 150px; }
.group-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 10px; }
.chip-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--info-soft); font-size: 12px; font-weight: 800; text-align: center; }
.group-files-popup .section { margin: 0; }
.group-files-popup .section-head h2 { display: none; }
/* Photo previews in forms show the whole photo at its own shape (not cropped into a wide strip on computers) */
.image-preview { display: flex; justify-content: center; align-items: center; background: var(--paper); max-width: 560px; }
.image-preview img { width: auto; max-width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.fam-photo-field .image-preview img { max-height: 220px; object-fit: contain; }
.image-preview-actions { right: 8px; bottom: 8px; }
.demo-pastor-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.demo-pastor-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--info-soft); }
.demo-pastor-photo img { width: 100%; height: 100%; object-fit: cover; }
.demo-pastor-photo .avatar { width: 64px; height: 64px; font-size: 22px; }
.demo-pastor-btns { display: flex; flex-wrap: wrap; gap: 6px; } .demo-pastor-btns label { cursor: pointer; }
/* The prayer wall fits as many cards per string as there's room for (cards keep a normal width) */
.ww-row { grid-template-columns: repeat(var(--per, 3), minmax(0, 1fr)); }
.ww-row .ww-card { max-width: 150px; }
.ww-row { display: flex; flex-wrap: nowrap; justify-content: center; width: 100%; box-sizing: border-box; }
.ww-row > li { flex: none; width: calc((100% - (var(--per, 3) - 1) * 10px) / var(--per, 3)); max-width: 150px; }
.demo-pastor-btns { position: relative; } .demo-pastor-btns input[type=file].sr-only { left: 0; top: 0; max-width: 1px; }
/* More photos open full screen when tapped */
.ep-sp-photo .photo-btn { width: 100%; height: 100%; border-radius: 50%; }
.photo-btn.pastor-photo { padding: 0; }
.photo-btn.ep-hero-img, .photo-btn.reg-hero-img { height: auto; }
/* Verse of the Week (My Church) */
.verse-week { position: relative; margin: 6px 0 18px; padding: 26px 26px 20px; border-radius: 18px; text-align: center; overflow: hidden;
  color: #3b2a1a; background: radial-gradient(120% 90% at 50% 0%, #fffaf0 0%, #f6ead3 62%, #eedcbc 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 0 0 1px rgba(150,110,60,.22), 0 6px 18px rgba(60,40,15,.10); }
.verse-week::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(150,110,60,.32); border-radius: 12px; pointer-events: none; }
.verse-week::after { content: "\201C"; position: absolute; left: 14px; top: -14px; font: italic 700 120px/1 "Cormorant Garamond", Georgia, serif; color: rgba(176,128,60,.18); pointer-events: none; }
.vw-label { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; font: 700 11px/1 var(--font-sans, inherit); letter-spacing: .18em; text-transform: uppercase; color: #9a6b2f; }
.vw-label::before, .vw-label::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #b98a4b); }
.vw-label::after { transform: scaleX(-1); }
.vw-quote { position: relative; margin: 0; }
.vw-quote p { margin: 0; font: italic 600 25px/1.32 "Cormorant Garamond", "Lora", Georgia, serif; letter-spacing: .003em; text-wrap: balance; }
.verse-week.is-long .vw-quote p { font-size: 21px; line-height: 1.35; }
.vw-ref { position: relative; margin: 12px 0 0; font: 600 13px/1.3 var(--font-display); letter-spacing: .06em; color: #7a5326; }
.vw-ref a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(122,83,38,.35); }
.vw-ref a:hover { border-bottom-color: currentColor; }
.vw-ver { font-weight: 500; opacity: .75; letter-spacing: .04em; }
.vw-flourish { position: relative; display: block; width: 26px; height: 26px; margin: 0 auto 6px; opacity: .8;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0803c' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M12 3v18M7 8h10'/%3E%3Cpath d='M4 16c3 0 5-1 8-4 3 3 5 4 8 4' opacity='.55'/%3E%3C/svg%3E"); }
.vw-edit { position: absolute; top: 14px; right: 14px; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); color: #7a5326; cursor: pointer; }
.vw-edit:hover { background: #fff; }
@media (min-width: 1024px) { .verse-week { padding: 34px 48px 26px; } .vw-quote p { font-size: 29px; } .verse-week.is-long .vw-quote p { font-size: 24px; } }
:root[data-theme="dark"] .verse-week { color: #f3e6cf; background: radial-gradient(120% 90% at 50% 0%, #3a2c1e 0%, #2b2017 65%, #231a12 100%); box-shadow: 0 0 0 1px rgba(214,170,100,.25); }
:root[data-theme="dark"] .vw-ref, :root[data-theme="dark"] .vw-edit { color: #e2b877; }
:root[data-theme="dark"] .vw-label { color: #d6a965; }
:root[data-theme="dark"] .vw-edit { background: rgba(0,0,0,.25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verse-week { color: #f3e6cf; background: radial-gradient(120% 90% at 50% 0%, #3a2c1e 0%, #2b2017 65%, #231a12 100%); box-shadow: 0 0 0 1px rgba(214,170,100,.25); }
  :root:not([data-theme="light"]) .vw-ref, :root:not([data-theme="light"]) .vw-edit { color: #e2b877; } :root:not([data-theme="light"]) .vw-label { color: #d6a965; } :root:not([data-theme="light"]) .vw-edit { background: rgba(0,0,0,.25); } }
.vw-mode { margin: 4px 0 12px; }
.vw-note { margin: 0 0 8px; }
.vw-empty { display: grid; gap: 8px; justify-items: start; margin-bottom: 10px; }
.vw-rows { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.vw-row { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.vw-row-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.vw-row.is-open .vw-row-head .icon { transform: rotate(90deg); }
.vw-when { flex: none; width: 66px; font-size: 12px; font-weight: 700; color: var(--muted); }
.vw-row:first-child .vw-when { color: #9a6b2f; }
.vw-row-ref { flex: 1; min-width: 0; display: grid; }
.vw-row-ref small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-row-form { padding: 0 10px 10px; }
.vw-row-form textarea { width: 100%; }
.popup-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 0 2px; background: var(--surface); }
/* "New" on the text part of a card (top right), not on its photo */
.ann-row-main { position: relative; }
.ann-row .ann-row-main > .new-bubble { top: 10px; right: 10px; left: auto; }
.ann-row.is-unread .ann-row-open { padding-right: 52px; }
/* Pinterest-style lists (set up by common.js when cards sit side by side) */
.ann-rows.is-masonry, .ann-list.is-masonry { grid-auto-rows: 1px; row-gap: 0 !important; align-items: start; }
.ann-rows.is-masonry > *, .ann-list.is-masonry > * { margin-top: 0 !important; align-self: start; }
/* Event form: more than one day */
.check-row.ev-multi, .check-row.ev-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin: 2px 0 6px; cursor: pointer; }
.check-row.ev-multi input, .check-row.ev-check input { width: 18px; height: 18px; flex: none; }
/* Month grid: a multi-day event is one long bar across its days */
@media (min-width: 900px) {
  .cm-day { overflow: visible; }
  .cm-lane, .cm-lane-gap { min-height: 21px; }
  .cm-lane { position: relative; z-index: 1; }
  .cm-bar { border-radius: 0; border-left: 0; margin: 0 -6px; width: calc(100% + 12px); background: color-mix(in srgb, var(--cat, var(--navy)) 26%, var(--surface)); font-weight: 600; }
  .cm-bar.is-start { border-radius: 5px 0 0 5px; border-left: 3px solid var(--cat, var(--navy)); margin-left: 0; width: calc(100% + 6px); }
  .cm-bar.is-end { border-radius: 0 5px 5px 0; margin-right: 0; width: calc(100% + 6px); }
  .cm-bar.is-start.is-end { width: 100%; margin: 0; border-radius: 5px; }
  .cm-bar .cm-chip-n { -webkit-line-clamp: 1; line-clamp: 1; white-space: nowrap; overflow: visible; display: block; }
  .cm-bar .cm-chip-n.is-hidden { visibility: hidden; }
  .cm-bar:hover { background: color-mix(in srgb, var(--cat, var(--navy)) 36%, var(--surface)); }
}
@media (min-width: 900px) {
  .cm-lane.is-label { z-index: 2; }
  .cm-bar { overflow: visible; }
  .cm-bar .cm-chip-n { flex: none; width: calc(var(--span, 1) * 100% - 40px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cm-bar:not(.is-start) .cm-chip-n { width: calc(var(--span, 1) * 100% - 12px); }
}
/* Phone month: a multi-day event is a thin line running under its days */
.cm-lines { display: flex; flex-direction: column; gap: 2px; width: calc(100% + 1px); margin-top: 1px; }
.cm-lines i { display: block; height: 4px; background: var(--cat, var(--navy)); opacity: .8; }
.cm-lines i.is-gap { background: none; }
.cm-lines i.is-start { margin-left: 6px; border-radius: 3px 0 0 3px; }
.cm-lines i.is-end { margin-right: 7px; border-radius: 0 3px 3px 0; }
.cm-day-btn:has(.cm-lines) { height: auto; min-height: 46px; padding-bottom: 4px; }
@media (min-width: 900px) { .cm-lines { display: none; } }
.all-events-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-weight: 600; }
.add-choices .add-choice { width: 100%; }
/* "Who it's for": one row of 4 when there's room (tablet and computer) */
.event-for .seg-4 { width: 100%; }
@media (min-width: 600px) { .event-for .seg-4 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.ev-page-toggle { margin: 0; }
.event-page-box { padding: 10px 12px; }
.dir-sub { font: 600 17px/1.2 var(--font-display); margin: 0 0 8px; }
.dir-listme.card { padding: 12px 14px; }
.usage-sub { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.usage-time { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .usage-time { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Notice bar: one slim line at the top for things that need you */
.notice-bar { position: relative; z-index: 15; background: #17243a; color: #f2f5fa; font-size: 13px; }
.nb-row { display: flex; align-items: stretch; min-height: 34px; }
.nb-row + .nb-row { border-top: 1px solid rgba(255,255,255,.08); }
.nb-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px 4px 6px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nb-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #f2b84b; box-shadow: 0 0 0 3px rgba(242,184,75,.18); }
.nb-row.tone-urgent .nb-dot { background: #ff6b5e; box-shadow: 0 0 0 3px rgba(255,107,94,.2); }
.nb-row.tone-staff .nb-dot { background: #b79bff; box-shadow: 0 0 0 3px rgba(183,155,255,.2); }
.nb-row.tone-conf .nb-dot { background: #6cc3ff; box-shadow: 0 0 0 3px rgba(108,195,255,.2); }
.nb-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.nb-go { flex: none; display: inline-flex; align-items: center; gap: 1px; color: #f2b84b; font-weight: 700; font-size: 12px; }
.nb-more { flex: none; align-self: center; margin: 0 2px 0 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: none; color: inherit; font: 700 11.5px/1.4 inherit; cursor: pointer; }
.nb-x { flex: none; width: 34px; display: grid; place-items: center; border: 0; background: none; color: rgba(255,255,255,.55); cursor: pointer; }
.nb-x:hover, .nb-more:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.nb-main:hover .nb-text { text-decoration: underline; text-underline-offset: 2px; }
.ev-page-toggle label > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
/* Add More Blocks: order the pinned blocks */
.block-order-wrap { display: flex; align-items: stretch; gap: 6px; }
.block-order-wrap > .block-row { flex: 1; min-width: 0; }
.block-order { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.block-order .icon-btn { width: 30px; height: 30px; }
.block-order .icon-btn:disabled { opacity: .3; }
.block-order-wrap:first-child:not(:has(.block-order)) { padding-left: 36px; }
/* About (More) */
.about-text .rich-text p { margin: 0 0 10px; color: var(--ink-2, var(--ink)); font-size: 14.5px; line-height: 1.5; }
.about-edit-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.about-edit { margin-bottom: 12px; }
/* Calendar: whose events */
.cal-src-tabs { margin-top: 8px; }
.lists-btn { margin-top: 12px; }
.block-one { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.block-order-wrap { list-style: none; }
/* Who's Serving: arrange my teams */
.arrange-list { list-style: none; margin: 0; padding: 4px 0; }
.arrange-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.arrange-row:first-child { border-top: 0; }
.arrange-row.is-off .arrange-name { opacity: .5; }
.arrange-btns { display: flex; flex-direction: column; gap: 2px; }
.arrange-btns .icon-btn:disabled { opacity: .3; }
.arrange-name { flex: 1; min-width: 0; display: grid; }
.hidden-teams-note { margin: 0; }
/* My Church: Channels and Ministries */
.church-more-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 18px; }
.church-more-row .church-more-btn { width: auto; margin: 0; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; padding: 12px 14px; font: inherit; cursor: pointer; }
.church-more-row .church-more-btn strong { font-size: 15px; }
.church-more-row .church-more-btn small { margin-left: auto; text-align: right; }
@media (max-width: 380px) { .church-more-row .church-more-btn small { display: none; } }
.church-vm { display: grid; gap: 10px; margin: 4px 0 14px; }
.church-vm-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.church-vm p { margin: 2px 0 0; font: italic 500 16px/1.4 var(--font-display); }
/* Profile pages */
.pg-logo { flex: none; width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--info-soft); }
.pg-logo.is-initials { display: grid; place-items: center; font: 700 15px/1 var(--font-display); color: var(--navy); }
.pg-logo.kind-school { background: #e8eef9; } .pg-logo.kind-ministry { background: var(--gold-soft); color: var(--gold); } .pg-logo.kind-organization { background: #e5f3ee; color: #1f6b52; }
.pg-hero { margin: 0 0 12px; }
.pg-hero .pg-cover { width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius); margin-bottom: -28px; }
.pg-id { position: relative; display: flex; align-items: flex-end; gap: 12px; padding: 0 4px; }
.pg-hero.has-cover .pg-id .pg-logo { box-shadow: 0 0 0 3px var(--paper); }
.pg-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pg-name { margin: 2px 0 0; font: 600 22px/1.2 var(--font-display); }
.pg-tagline { margin: 3px 0 0; color: var(--muted); }
.pg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.pg-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.pg-sec { margin: 0 0 18px; }
.pg-sec h3 { margin: 0 0 6px; font: 600 17px/1.2 var(--font-display); }
.pg-mission p { margin: 0; font: italic 500 16px/1.45 var(--font-display); }
.pg-links, .pg-list, .pg-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pg-row { width: 100%; }
.pg-row .pg-logo { margin-right: 2px; }
.pg-images { display: grid; gap: 10px; }
@media (min-width: 640px) { .pg-images { grid-template-columns: 1fr 2fr; } }
.pg-link-row { align-items: center; }
.pg-link-url { display: flex; gap: 4px; align-items: center; }
.pg-remove { margin-top: 8px; }
.page-chip { display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.page-chip > span { flex: 1; min-width: 0; display: grid; }
.page-chip small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.page-chip .pg-logo { border-radius: 8px; }
.page-link-picker { display: grid; gap: 4px; margin: 6px 0; }
.page-link-picker label { display: inline-flex; align-items: center; gap: 6px; }
.ch-row.is-live .quick-icon { background: var(--bad); color: #fff; }
.channels-editor { display: grid; gap: 8px; }
.ch-edit-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.ch-edit-row input[aria-label="Link"] { grid-column: 1 / 3; }
.ch-edit-row .icon-btn { grid-column: 3; grid-row: 1 / 3; }
@media (min-width: 640px) { .ch-edit-row { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr) auto; } .ch-edit-row input[aria-label="Link"] { grid-column: auto; } .ch-edit-row .icon-btn { grid-column: auto; grid-row: auto; } }
/* Prayer line */
.pl-live { align-self: center; display: inline-flex; align-items: center; gap: 7px; margin: 2px auto 4px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: #8a1d14; font-weight: 700; font-size: 13.5px; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.25); position: relative; z-index: 1; }
.pl-live-word { padding: 1px 7px; border-radius: 4px; background: #d93a2b; color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: #d93a2b; box-shadow: 0 0 0 0 rgba(217,58,43,.6); animation: pl-pulse 1.6s infinite; }
@keyframes pl-pulse { 0% { box-shadow: 0 0 0 0 rgba(217,58,43,.55); } 70% { box-shadow: 0 0 0 8px rgba(217,58,43,0); } 100% { box-shadow: 0 0 0 0 rgba(217,58,43,0); } }
@media (prefers-reduced-motion: reduce) { .pl-dot { animation: none; } }
.pl-card { display: grid; gap: 10px; padding: 14px; margin: 14px 0; }
.pl-card.is-open { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.pl-head { display: flex; align-items: center; gap: 12px; }
.pl-head h3 { margin: 0; font: 600 18px/1.2 var(--font-display); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); font: 700 12px/1.4 var(--font-sans, inherit); }
.pl-times { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.pl-times li { display: flex; align-items: center; gap: 6px; }
.pl-note { margin: 0; color: var(--muted); font-size: 14px; }
.pl-edit-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.pl-editor { display: grid; gap: 8px; }
.pl-slot { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.pl-days { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-slot-times { display: flex; align-items: center; gap: 6px; }
.pl-slot-times input { flex: 1; min-width: 0; }
.chip-sm { padding: 3px 9px; font-size: 12.5px; }
.pl-card { grid-template-columns: minmax(0, 1fr); }
.pl-card > * { min-width: 0; }
.pl-badge { font-family: "Noto Sans", system-ui, sans-serif; }
.pg-id { align-items: center; }
.pg-tagline { font-size: 15.5px; }
/* Dark mode: readable badges, staff buttons, planning tabs and service chips */
:root[data-theme="dark"] .badge, :root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .badge-inline, :root[data-theme="dark"] .stat-badge, :root[data-theme="dark"] .new-pill, :root[data-theme="dark"] .stream-play, :root[data-theme="dark"] .badge.chat-badge, :root[data-theme="dark"] .slot-av.is-open, :root[data-theme="dark"] .bar-pill.is-pending, :root[data-theme="dark"] .new-bubble, :root[data-theme="dark"] .ch-row.is-live .quick-icon { background: #c8352a; color: #fff; }
:root[data-theme="dark"] .badge.chat-badge.is-quiet { background: #3a4660; color: #e6ebf4; }
:root[data-theme="dark"] .not-staff { --staff: #9fbbe6; --staff-on: #0f1a2c; --staff-soft: #1c2940; --staff-line: #3a5379; }
:root[data-theme="dark"] .planning-head .planning-tabs button:not(.is-on) { color: #a9b6cc; }
:root[data-theme="dark"] .planning-head .planning-tabs button.is-on { background: #2c4166; color: #fff; box-shadow: inset 0 3px 0 #9fbbe6; }
:root[data-theme="dark"] .svc-chip:not(.is-on) { background: #172338; }
:root[data-theme="dark"] .svc-chip.is-on { background: #2c4166; border-color: #9fbbe6; }
:root[data-theme="dark"] .svc-chip.svc-add { color: #9fbbe6; border-color: #3a5379; background: transparent; }
:root[data-theme="dark"] .answer-needed { background: #e8aa52; color: #1d1405; }
:root[data-theme="dark"] .rt-btn { background: #24324a; color: #e6ebf4; border-color: #3a4a66; }
:root[data-theme="dark"] .btn-outline { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge, :root:not([data-theme="light"]) .btn-danger, :root:not([data-theme="light"]) .badge-inline, :root:not([data-theme="light"]) .stat-badge, :root:not([data-theme="light"]) .new-pill, :root:not([data-theme="light"]) .stream-play, :root:not([data-theme="light"]) .badge.chat-badge, :root:not([data-theme="light"]) .slot-av.is-open, :root:not([data-theme="light"]) .bar-pill.is-pending, :root:not([data-theme="light"]) .new-bubble, :root:not([data-theme="light"]) .ch-row.is-live .quick-icon { background: #c8352a; color: #fff; }
  :root:not([data-theme="light"]) .badge.chat-badge.is-quiet { background: #3a4660; color: #e6ebf4; }
  :root:not([data-theme="light"]) .not-staff { --staff: #9fbbe6; --staff-on: #0f1a2c; --staff-soft: #1c2940; --staff-line: #3a5379; }
  :root:not([data-theme="light"]) .planning-head .planning-tabs button:not(.is-on) { color: #a9b6cc; }
  :root:not([data-theme="light"]) .planning-head .planning-tabs button.is-on { background: #2c4166; color: #fff; box-shadow: inset 0 3px 0 #9fbbe6; }
  :root:not([data-theme="light"]) .svc-chip:not(.is-on) { background: #172338; }
  :root:not([data-theme="light"]) .svc-chip.is-on { background: #2c4166; border-color: #9fbbe6; }
  :root:not([data-theme="light"]) .svc-chip.svc-add { color: #9fbbe6; border-color: #3a5379; background: transparent; }
  :root:not([data-theme="light"]) .answer-needed { background: #e8aa52; color: #1d1405; }
  :root:not([data-theme="light"]) .rt-btn { background: #24324a; color: #e6ebf4; border-color: #3a4a66; }
  :root:not([data-theme="light"]) .btn-outline { color: var(--ink); }
}
:root[data-theme="dark"] .not-staff .planning-head .date-nav { background: #22355a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .not-staff .planning-head .date-nav { background: #22355a; } }
.no-head-sec > .section-head { justify-content: flex-end; min-height: 0; margin-bottom: 4px; }
.no-head-sec > .section-head h2:empty { display: none; }
.gi-row { width: 100%; margin-top: 8px; }
/* Files mentioned in a group chat */
.msg-file { display: inline-flex; align-items: center; gap: 5px; margin: 2px 2px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; vertical-align: middle; }
.msg-mine .msg-file { background: rgba(255,255,255,.92); color: #17243a; border-color: transparent; }
.msg-file.is-gone { opacity: .6; cursor: default; }
.chat-file-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-attach { flex: none; }
/* Order of Service / Who's Serving: the tab that isn't chosen still looks like a button */
.planning-head .planning-tabs button:not(.is-on) { background: color-mix(in srgb, var(--staff) 16%, var(--surface)); color: var(--staff); font-weight: 700; border: 1px solid var(--staff-line); border-bottom: 0; }
.planning-head .planning-tabs button:not(.is-on):hover { background: color-mix(in srgb, var(--staff) 26%, var(--surface)); }
.planning-head .planning-tabs button:not(.is-on) svg { opacity: 1; }
:root[data-theme="dark"] .planning-head .planning-tabs button:not(.is-on) { background: #22355a; color: #cfe0fb; border-color: #3a5379; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .planning-head .planning-tabs button:not(.is-on) { background: #22355a; color: #cfe0fb; border-color: #3a5379; } }
.cs-follow select { width: 100%; margin: 4px 0; }
.cal-layout { margin-bottom: 4px !important; }
.cal-src-tabs { margin-top: 0; }
/* The corner of a News card: "New" with a tiny × beside it (or just the ×) */
.ann-row .ann-row-main > .row-corner { position: absolute; top: 9px; right: 9px; z-index: 2; display: inline-flex; align-items: stretch; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.row-corner .new-bubble { position: static !important; top: auto; right: auto; left: auto; border-radius: 999px 0 0 999px; box-shadow: none; }
.row-corner .row-x { display: grid; place-items: center; width: 24px; min-height: 22px; padding: 0; border: 0; border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.row-corner .new-bubble + .row-x { border-radius: 0 999px 999px 0; background: color-mix(in srgb, var(--bad) 16%, var(--surface)); color: var(--bad); box-shadow: none; }
.row-corner .row-x:hover { color: var(--ink); }
.ann-row.can-swipe .ann-row-open { padding-right: 70px; }
.ann-row.can-swipe:not(.is-unread) .ann-row-open { padding-right: 40px; }
/* Home: "See all" reads as more of the same list, not a separate action */
.home-anns .home-anns-all { margin-top: 2px; border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, var(--line)) !important; background: transparent !important; box-shadow: none !important;
  color: var(--muted) !important; font-weight: 600; font-size: 14px; padding: 12px; border-radius: var(--radius); }
.home-anns .home-anns-all:hover { color: var(--ink) !important; border-color: color-mix(in srgb, var(--ink) 40%, var(--line)) !important; background: color-mix(in srgb, var(--ink) 3%, transparent) !important; }
/* Profile pages: a colored band (or header photo), colored tiles, Follow */
.page-screen { --pg-primary-c: var(--pg-primary, var(--navy)); --pg-accent-c: var(--pg-accent, var(--gold)); }
.pg-hero { position: relative; margin: 0 0 14px; }
.pg-band { height: 96px; border-radius: var(--radius); background: linear-gradient(135deg, var(--pg-primary-c), color-mix(in srgb, var(--pg-primary-c) 70%, var(--pg-accent-c))); }
.pg-hero .pg-cover { display: block; width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius); }
.pg-hero .pg-id { margin-top: -36px; padding: 0 12px; align-items: flex-end; }
.pg-hero .pg-id .pg-logo { box-shadow: 0 0 0 4px var(--paper), 0 4px 12px rgba(0,0,0,.15); border-radius: 18px; }
.pg-id-text { padding-bottom: 2px; min-width: 0; }
.pg-name { margin: 0; font: 600 22px/1.2 var(--font-display); }
.pg-follow-row { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.pg-follow { display: inline-flex; align-items: center; gap: 6px; background: var(--pg-primary-c); color: #fff; border: 0; }
.pg-follow.is-on { background: color-mix(in srgb, var(--pg-accent-c) 22%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--pg-accent-c); }
.pg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
@media (min-width: 700px) { .pg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: 14px; border: 0; text-decoration: none; text-align: left; font: inherit; cursor: pointer;
  background: color-mix(in srgb, var(--pg-primary-c) 9%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pg-primary-c) 18%, var(--line)); }
.pg-tile.is-info { cursor: default; }
a.pg-tile:hover, button.pg-tile:hover { background: color-mix(in srgb, var(--pg-primary-c) 15%, var(--surface)); }
.pg-tile-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--pg-primary-c); color: #fff; }
.pg-tile:nth-child(3n+2) .pg-tile-icon { background: var(--pg-accent-c); color: #1d1405; }
.pg-tile-text { min-width: 0; display: grid; }
.pg-tile-text small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pg-tile-text strong { font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.page-screen .pg-sec h3 { color: var(--pg-primary-c); }
:root[data-theme="dark"] .page-screen .pg-sec h3 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-screen .pg-sec h3 { color: var(--ink); } }
.pg-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pg-swatch { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pg-swatch span { width: 40px; height: 24px; border-radius: 8px; background: linear-gradient(90deg, var(--sw1) 60%, var(--sw2) 60%); }
.pg-swatch small { font-size: 12px; }
.pg-swatch.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pg-custom-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0; }
.pg-custom-colors label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pg-custom-colors input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.page-screen .pg-logo.is-initials { background: var(--pg-primary-c); color: #fff; }
.pg-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.pg-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 0; font: inherit; color: var(--ink); outline: none; }
.pg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-card { --pg-primary-c: var(--pg-primary, var(--navy)); --pg-accent-c: var(--pg-accent, var(--gold)); width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pg-card-top { display: block; height: 58px; background: linear-gradient(135deg, var(--pg-primary-c), color-mix(in srgb, var(--pg-primary-c) 65%, var(--pg-accent-c))); background-size: cover; background-position: center; }
.pg-card-body { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; }
.pg-card-body .pg-logo { margin-top: -23px; border-radius: 13px; box-shadow: 0 0 0 3px var(--surface); }
.pg-card .pg-logo.is-initials { background: var(--pg-primary-c); color: #fff; }
.pg-card-text { display: grid; gap: 2px; }
.pg-card-text strong { font-size: 15px; line-height: 1.25; }
.pg-card-text small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.vw-readin { margin-left: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: inherit; opacity: .85; }
.pg-hero .pg-id { flex-direction: column; align-items: flex-start; gap: 8px; }
.pg-id-text { padding: 0 2px; }
.cal-src-tabs { margin-bottom: 6px; }
:root[data-theme="dark"] .planning-head .planning-tabs button.is-on { background: #dbe6f7; color: #0f1a2c; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .planning-head .planning-tabs button.is-on { background: #dbe6f7; color: #0f1a2c; box-shadow: none; } }
.row-corner .new-bubble { border-radius: 999px !important; }
.reg-helpers-wrap summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--staff); }
.reg-helpers-wrap[open] summary { margin-bottom: 8px; }

/* ---------- Bible reader ---------- */
.bible-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; align-items: center; padding: 8px 0; background: var(--paper); }
.bible-where { flex: 1 1 auto; justify-content: space-between; min-width: 0; font-weight: 700; }
.bible-ver { flex: 0 1 auto; max-width: 42%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.bible-size { display: inline-flex; gap: 2px; }
.bible-size .icon-btn { font-weight: 700; font-size: 14px; width: 36px; }
.bible-picker { margin: 4px 0 12px; display: grid; gap: 12px; max-height: 60vh; overflow: auto; }
.bible-pick-title { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bible-pick-head { display: flex; align-items: center; gap: 12px; }
.bible-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.bible-book { padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; text-align: center; }
.bible-book.is-on { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }
.bible-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.bible-ch { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.bible-text { font-family: var(--font-display, Georgia, serif); font-size: var(--bible-size, 18px); line-height: 1.7; color: var(--ink); padding: 4px 2px 12px; }
.bible-chapter-title { font-size: 1.5em; margin: 6px 0 10px; }
.bible-heading { font-family: var(--font-body); font-size: .8em; font-weight: 800; letter-spacing: .02em; margin: 1.1em 0 .3em; color: var(--muted); }
.bible-sub { font-style: italic; color: var(--muted); font-size: .9em; margin: .3em 0; }
.bible-verse { cursor: pointer; border-radius: 4px; transition: background .15s; }
.bible-verse sup { font-family: var(--font-body); font-size: .6em; font-weight: 700; color: var(--muted); margin: 0 3px 0 2px; }
.bible-verse.is-ref { background: var(--gold-soft); }
.bible-verse.is-sel { text-decoration: underline dotted var(--navy); text-underline-offset: 4px; background: var(--info-soft); }
.bible-red { color: #a32626; }
:root[data-theme="dark"] .bible-red { color: #f19a9a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bible-red { color: #f19a9a; } }
.bible-sel-bar { position: sticky; bottom: calc(var(--tabbar-h, 64px) + 8px); display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 6; }
.bible-sel-bar span { flex: 1; font-weight: 700; }
.bible-nav { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0; }
.bible-credit { margin-top: 10px; }

/* ---------- Reading plans ---------- */
.plan-row { align-items: center; }
.plan-ring { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--navy) var(--pct, 0%), var(--info-soft) 0); }
.plan-ring > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 11.5px; font-weight: 800; color: var(--ink); }
.plan-status { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan-status > div { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.plan-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-day { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan-day.is-today { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.plan-day.is-done .plan-reads { opacity: .6; }
.plan-check { flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--navy-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.plan-check.is-on { background: var(--good); border-color: var(--good); color: #fff; }
.plan-day-text { display: grid; gap: 2px; min-width: 0; }
.plan-day-text small { color: var(--muted); font-weight: 600; }
.plan-reads { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.plan-reads .link-btn { font-weight: 700; }
.plan-form { display: grid; gap: 8px; }
.plan-books { max-height: 280px; overflow: auto; padding: 2px; }
.plan-custom { margin: 0; padding-left: 28px; display: grid; gap: 6px; }
.plan-custom li { display: flex; gap: 6px; align-items: center; }
.plan-custom input { flex: 1; }

/* ---------- Mission Search ---------- */
.ms-intro { margin: 0; }
.ms-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ms-card { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ms-card.is-waiting { border-style: dashed; }
.ms-top { position: relative; height: 92px; display: grid; place-items: center; color: rgba(255,255,255,.9); background: linear-gradient(135deg, #1f4e79, #3f7cac); background-size: cover; background-position: center; }
.ms-top.ms-year { background-color: #2f5d50; background-image: linear-gradient(135deg, #2f5d50, #5d9a7d); }
.ms-top.ms-long, .ms-top.ms-career { background-image: linear-gradient(135deg, #5a3d7a, #9a6fb5); }
.ms-top.ms-home { background-image: linear-gradient(135deg, #8a4b1f, #c98a3c); }
.ms-kind { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; font-weight: 700; }
.ms-body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.ms-title { font-size: 15px; line-height: 1.25; }
.ms-org { color: var(--muted); font-size: 12.5px; }
.ms-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: 12px; }
.ms-meta span { display: inline-flex; align-items: center; gap: 3px; }
.ms-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ms-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--info-soft); color: var(--ink); }
.ms-tag-supporting { background: var(--gold-soft); }
.ms-tag-wait { background: var(--bad-soft); }
.ms-h { font-size: 16px; margin: 0 0 4px; }
.ms-waiting { display: grid; gap: 8px; }
.ms-note { text-align: center; }
.ms-view .ms-photo { display: block; width: 100%; padding: 0; border: 0; background: none; margin-bottom: 10px; }
.ms-view .ms-photo img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; }
.ms-org-line { margin: 0 0 6px; color: var(--muted); }
.ms-facts { display: grid; gap: 6px; margin: 10px 0; }
.ms-fact { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.ms-fact dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.ms-fact dd { margin: 0; }
.ms-details { white-space: pre-line; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.ms-actions .btn { flex: 1 1 140px; justify-content: center; }
.ms-admin { margin-top: 12px; }
.ms-form { display: grid; gap: 8px; }
.ms-top { overflow: hidden; }
.ms-top-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-top .ms-kind { z-index: 1; }
.ms-photo-wrap { margin: 0 0 10px; }
.ms-photo-wrap figcaption { font-size: 11.5px; color: var(--muted); margin-top: 4px; text-align: right; }
.ms-view .ms-photo-wrap .ms-photo { margin-bottom: 0; }
.ms-photo-src { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; margin: 0; }
.ms-photo-src legend { font-weight: 700; padding: 0 4px; }
.ms-photo-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }

/* ---------- My Blocks (More): one calm blue for every block, like a banner with a picture fading in on the right.
   The left is solid; on the right the block's icon is drawn large and faint, with a soft light, so blocks look
   like little picture cards without adding a color per block. ---------- */
.half-grid .half-tile { --block: color-mix(in srgb, #22395c 45%, #5fa8cc); --block-2: color-mix(in srgb, #22395c 30%, #7fbcd8);
  overflow: hidden; border-color: transparent; color: #fff;
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(255, 246, 225, .3) 0%, rgba(255, 246, 225, 0) 42%),   /* soft light, top right */
    linear-gradient(100deg, var(--block) 0%, var(--block) 58%, var(--block-2) 100%);
  box-shadow: 0 1px 2px rgba(15, 30, 55, .12); }
.half-grid .half-art { position: absolute; right: -14px; bottom: -16px; z-index: 0; color: #fff; opacity: .28; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 55%); mask-image: linear-gradient(100deg, transparent 0%, #000 55%); }
.half-grid .half-art .icon { display: block; stroke-width: 1.3; }
.half-grid .half-main { position: relative; z-index: 1; }
.half-grid .half-tile .quick-icon { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.half-grid .half-tile strong { color: #fff; }
.half-grid .half-tile .quick-text > span { color: rgba(255, 255, 255, .92); }
.half-grid .half-tile .quick-text { text-shadow: 0 1px 2px rgba(10, 25, 45, .35); }
.half-grid .half-tile .quick-text > .half-call { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.half-grid .half-tile.has-call { box-shadow: 0 0 0 2px var(--gold) inset, 0 1px 2px rgba(15, 30, 55, .12); }
.half-grid .half-tile .half-soon { background: rgba(255, 255, 255, .22); color: #fff; }
.half-grid .half-tile.is-locked .quick-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.half-grid .half-tile.is-locked .quick-text > span { color: #fff; }
.half-grid .half-tile .bar-pill.is-open { background: rgba(255, 255, 255, .92); color: var(--navy); border-color: transparent; }
.half-grid .half-tile .half-main:hover { background: rgba(255, 255, 255, .06); }
.half-grid .half-tile .half-main:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* The Employee Hub keeps its own warm color so it stands apart. */
.half-grid .half-tile[class*="tile-hub-"] { --block: #a85a26; --block-2: #c98547; }
/* Dark mode: a deeper version of the same blue. */
:root[data-theme="dark"] .half-grid .half-tile { --block: color-mix(in srgb, #1a2b46 55%, #3d7fa3); --block-2: color-mix(in srgb, #1a2b46 35%, #5b9cc0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .half-grid .half-tile { --block: color-mix(in srgb, #1a2b46 55%, #3d7fa3); --block-2: color-mix(in srgb, #1a2b46 35%, #5b9cc0); } }

/* Mission Search: daily check line and ministries waiting for approval */
.ms-checked { margin-top: -4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ms-ministry { border-top: 1px solid var(--line, rgba(0,0,0,.1)); padding-top: 10px; margin-top: 10px; }
.ms-ministry .row-between strong { font-size: 1.02rem; }
.ms-ministry > .hint { margin: 2px 0 8px; }

/* Church home: the blocks under the verse, the same size and style as My Blocks on More, in the site's navy and gold. */
.home-blocks { margin-top: 4px; }
.home-blocks > div { display: contents; }
.half-grid.home-blocks .half-tile { --block: #22395c; --block-2: #2f5183;
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(217, 164, 65, .32) 0%, rgba(217, 164, 65, 0) 46%),   /* warm gold light, top right */
    linear-gradient(100deg, var(--block) 0%, var(--block) 55%, var(--block-2) 100%); }
.half-grid.home-blocks .half-tile .quick-icon { background: var(--gold-bright); color: #22395c; box-shadow: none; }
.half-grid.home-blocks .half-art { color: var(--gold-bright); opacity: .3; }
.half-grid.home-blocks .half-tile .half-main:focus-visible { outline-color: var(--gold-bright); }
.half-grid.home-blocks .is-live-wrap .half-tile { box-shadow: 0 0 0 2px #e0483e inset, 0 1px 2px rgba(15, 30, 55, .12); }
.half-grid.home-blocks .is-live-wrap .quick-icon { background: #e0483e; color: #fff; }
:root[data-theme="dark"] .half-grid.home-blocks .half-tile { --block: #1a2b46; --block-2: #27426a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .half-grid.home-blocks .half-tile { --block: #1a2b46; --block-2: #27426a; } }

/* SDA Entity Search and Job Search */
.dir-chips { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
.dir-chips .chip { flex: 0 0 auto; }
.dir-n { opacity: .7; font-weight: 600; font-size: 11.5px; }
.dir-tools { display: flex; gap: 8px; align-items: center; }
.dir-tools select { flex: 1 1 auto; min-width: 0; }
.dir-tools .btn { flex: 0 0 auto; }
.dir-count { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dir-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.dir-row:hover { border-color: color-mix(in srgb, var(--navy) 35%, var(--line)); }
.dir-row.is-hidden { border-style: dashed; opacity: .8; }
.dir-row > .icon:last-child { color: var(--muted); flex: 0 0 auto; }
.dir-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.dir-text strong { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.dir-text > span { color: var(--muted); font-size: 12.5px; }
.dir-text .dir-sub { color: var(--gold); font-weight: 700; font-size: 12px; }
.dir-thumb { position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #22395c, #2f5183); }
.dir-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.dir-church, .ms-top.dir-church { background-image: linear-gradient(135deg, #22395c, #2f5183); }
.dir-school, .ms-top.dir-school { background-image: linear-gradient(135deg, #2f5d50, #5d9a7d); }
.dir-college, .ms-top.dir-college { background-image: linear-gradient(135deg, #1f4e79, #3f7cac); }
.dir-health, .ms-top.dir-health { background-image: linear-gradient(135deg, #8a2f3c, #c25a62); }
.dir-office, .ms-top.dir-office { background-image: linear-gradient(135deg, #7a5a12, #c08d2a); }
.dir-media, .ms-top.dir-media { background-image: linear-gradient(135deg, #5a3d7a, #9a6fb5); }
.dir-camp, .ms-top.dir-camp { background-image: linear-gradient(135deg, #35602a, #6c9a48); }
.dir-community, .dir-other, .ms-top.dir-community { background-image: linear-gradient(135deg, #8a4b1f, #c98a3c); }
.dir-supporting, .ms-top.dir-supporting { background-image: linear-gradient(135deg, #2b4a5e, #4f8aa6); }
.dir-banner { height: 120px; border-radius: 12px; display: grid; place-items: center; color: rgba(255,255,255,.9); margin-bottom: 10px; }
.dir-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; background: var(--surface-2, #eef1f5); }
.dir-tools select, .ms-state { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7686' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border-radius: 12px; padding: 9px 34px 9px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.dir-n { margin-left: 5px; }
@media (min-width: 900px) {
  .dir-chips { flex-wrap: wrap; overflow: visible; }
  .dir-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* SDA Entity Search maps (Leaflet) */
:root { --map-water: #dde8f1; --map-land: #f6f3ec; --map-coast: #b7c1cc; --map-line: #d3d8de; }
:root[data-theme="dark"] { --map-water: #13202f; --map-land: #24303d; --map-coast: #3b4a5a; --map-line: #3a4756; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-water: #13202f; --map-land: #24303d; --map-coast: #3b4a5a; --map-line: #3a4756; } }
.pmap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--map-water); }
.pmap-canvas { width: 100%; height: 100%; background: var(--map-water); }
.pmap-small { height: 240px; }
.pmap-full { height: calc(100vh - 330px); min-height: 360px; }
.pmap .leaflet-container { font: inherit; background: var(--map-water); }
.pmap .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75); }
.pmap .leaflet-tooltip { font: 600 12.5px/1.3 "Noto Sans", sans-serif; border-radius: 8px; padding: 4px 8px; }
.pmap-err { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); }
.pmap-search { display: grid; gap: 8px; }
.pmap-search-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pmap-search-head .ms-h { display: flex; align-items: center; gap: 6px; margin: 0; }
.pmap-search-head .link-btn { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.pmap-area { font-size: 14px; }
.pmap-pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 6px 18px rgba(15, 30, 55, .12); }
.pmap-pick-dot { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.pmap-pick-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.pmap-pick-text strong { font-size: 14.5px; overflow-wrap: anywhere; }
.pmap-pick-text span { color: var(--muted); font-size: 12.5px; }
.pmap-x { font-size: 22px; line-height: 1; }
.emap-wrap { position: relative; display: grid; gap: 8px; }
.emap-wrap .pmap-pick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 500; }
.emap-tools { display: flex; gap: 8px; align-items: center; }
.emap-tools .pg-search { flex: 1 1 auto; min-width: 0; }
.emap-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 1.5px #fff; }
@media (min-width: 900px) { .pmap-small { height: 300px; } .pmap-full { height: calc(100vh - 320px); } }
.leaders-list .settings-item.is-soon > .icon:first-child, .leaders-list .settings-item.is-soon strong { opacity: .75; }
.leaders-list .settings-item.is-soon .half-soon { vertical-align: 2px; margin-left: 4px; }

/* Leaders & Staff first versions (leader-tools.js) and Sermon Notes */
.lt-preview-tag { background: var(--info-soft); color: var(--navy); }
.lt-demo { text-align: center; }
.lt-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lt-stats > div { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.lt-stats strong { font-size: 20px; color: var(--navy); }
.lt-stats span { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.lt-stats .is-bad strong { color: var(--bad, #b2434f); }
.lt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lt-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lt-row > .icon:last-child { color: var(--muted); flex: 0 0 auto; }
.lt-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #2f5183; color: #fff; font-weight: 800; font-size: 14px; }
.lt-avatar.lt-green { background: #3f8a6c; border-radius: 12px; } .lt-avatar.lt-red { background: #b2434f; border-radius: 12px; }
.lt-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.lt-text strong { font-size: 15px; overflow-wrap: anywhere; }
.lt-text > span { color: var(--muted); font-size: 12.5px; }
.lt-snippet { font-style: italic; }
.lt-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.lt-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--info-soft); color: var(--ink); }
.lt-gold { background: var(--gold-soft); color: var(--gold); } .lt-bad { background: var(--bad-soft, #f7dede); color: var(--bad, #b2434f); }
.lt-green { background: #dcefe5; color: #2c6b51; } .lt-blue { background: #dde8f6; color: #22395c; }
.lt-progress { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lt-progress > span { display: block; height: 100%; background: var(--gold-bright); border-radius: 99px; }
.lt-progress.lt-big { height: 10px; flex: 1 1 auto; }
.lt-lesson { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.lt-form { display: grid; gap: 10px; }
.lt-field { display: grid; gap: 4px; }
.lt-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-notes { margin-top: 12px; }
.lt-note-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.lt-note-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--paper, #f4f6f9); }
.lt-note-list small { color: var(--muted); }
.lt-note-add { display: flex; gap: 6px; margin-top: 6px; }
.lt-note-add input { flex: 1 1 auto; min-width: 0; }
.lt-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lt-slots li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.lt-slots li.is-taken { background: var(--paper, #f4f6f9); }
.lt-slot-day { flex: 0 0 auto; width: 48px; display: grid; text-align: center; line-height: 1.15; }
.lt-slot-day strong { font-size: 13px; color: var(--navy); } .lt-slot-day small { color: var(--muted); font-size: 12px; }
.lt-slot-text { flex: 1 1 auto; display: grid; } .lt-slot-text small { color: var(--muted); }
.lt-actions { margin-top: 10px; }
.lt-pending { display: grid; gap: 8px; }
.lt-booking { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.lt-room-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.lt-btns { display: grid; gap: 4px; flex: 0 0 auto; }
.lt-weeknav { display: flex; align-items: center; justify-content: space-between; }
.lt-flip { transform: scaleX(-1); }
.lt-week { display: grid; gap: 8px; }
.lt-day { display: grid; align-content: start; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lt-day.is-today { border-color: var(--gold); }
.lt-day-head { display: flex; gap: 8px; align-items: baseline; } .lt-day-head span { color: var(--muted); font-size: 13px; }
.lt-slotbar { display: grid; padding: 6px 10px; border-left: 4px solid; border-radius: 6px; background: var(--paper, #f4f6f9); font-size: 13.5px; }
.lt-slotbar.is-pending { border-left-style: dashed; opacity: .85; }
.lt-slotbar small { color: var(--muted); }
.lt-rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lt-rooms li { display: flex; align-items: center; gap: 6px; font-size: 13.5px; } .lt-rooms li span:last-child { color: var(--muted); margin-left: auto; }
.lt-clubs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-club { display: grid; gap: 2px; padding: 12px; border-radius: 14px; border: 2px solid transparent; background: var(--club); color: #fff; text-align: left; font: inherit; cursor: pointer; opacity: .7; }
.lt-club.is-on { opacity: 1; border-color: var(--gold-bright); }
.lt-club strong { font-size: 16px; } .lt-club span { font-size: 12px; opacity: .92; }
.lt-classes { display: grid; gap: 8px; }
.lt-class { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 6px; }
.lt-class-kid { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 8px; font-size: 13.5px; }
.lt-event { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lt-going { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.lt-count, .lt-chart { padding: 12px; display: grid; gap: 8px; }
.lt-counter { display: grid; grid-template-columns: 1fr 40px 70px 40px; align-items: center; gap: 6px; }
.lt-counter input { text-align: center; }
.lt-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 6px; }
.lt-bar { position: relative; flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.lt-bar-in { display: block; background: #2f5183; border-radius: 4px 4px 0 0; }
.lt-bar-online { display: block; background: var(--gold-bright); opacity: .55; border-radius: 4px 4px 0 0; }
.lt-bar small { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.lt-chart .hint { margin-top: 18px; }
.lt-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 10px; }
.lt-key-in { background: #2f5183; } .lt-key-online { background: var(--gold-bright); opacity: .55; }
@media (max-width: 420px) { .lt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .lt-week { grid-template-columns: repeat(7, minmax(0, 1fr)); } .lt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Edit Church Details → Home Page */
.hb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hb-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.hb-row.is-waiting { border-style: dashed; }
.hb-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #22395c; color: var(--gold-bright); }
.hb-text { flex: 1 1 auto; min-width: 0; display: grid; } .hb-text small { color: var(--muted); font-size: 12.5px; }
.hb-row.is-waiting .hb-text small { color: var(--gold); font-weight: 700; }
.hb-more { margin-top: 10px; }
.hb-add { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* Ministry posts and Following */
.follow-empty { display: grid; justify-items: center; gap: 8px; text-align: center; }
.mp-bar { display: grid; gap: 8px; margin: 12px 0; }
.mp-bar h3 { margin: 0; }
.mp-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-mode { display: grid; gap: 6px; }
.mp-mine { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.mp-mine li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.mp-mine li > span { flex: 1 1 auto; display: grid; min-width: 0; } .mp-mine small { color: var(--muted); }
.mp-item { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mp-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mp-title { margin: 0; font-size: 16px; }
.mp-body { margin: 0; color: var(--ink); }
.mp-decline { display: grid; gap: 6px; }
.mp-modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mp-modes li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mp-modes .segmented { min-width: 220px; }
.ann-waiting { border-style: dashed !important; }
.follow-bar { display: grid; gap: 8px; padding: 10px 12px; margin: 4px 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.follow-bar .hint { margin: 0; }
.follow-bar-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Ministry posts: the waiting / not approved banner on a post */
.review-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 0 0 14px; border-radius: 14px; border: 2px solid var(--gold-bright); background: var(--gold-soft); }
.review-banner-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-bright); color: #22395c; }
.review-banner strong { display: block; font-size: 17px; color: var(--ink); }
.review-banner p { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.review-banner > div { flex: 1 1 auto; min-width: 0; }
.review-banner-btns { margin-top: 10px; }
.review-banner-decline { display: grid; gap: 6px; margin-top: 10px; }
.review-banner.is-declined { border-color: #c25a62; background: var(--bad-soft, #f7dede); }
.review-banner.is-declined .review-banner-icon { background: #b2434f; color: #fff; }
/* Ministry posts: the strip on a card */
.review-strip { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px; padding: 8px 10px; border: 0; border-radius: 10px; font: inherit; text-align: left; cursor: pointer;
  background: var(--gold-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold-bright); }
.review-strip .icon { flex: 0 0 auto; color: var(--gold); }
.review-strip span { display: grid; } .review-strip strong { font-size: 14.5px; } .review-strip small { color: var(--muted); font-size: 12px; }
.review-strip.is-declined { background: var(--bad-soft, #f7dede); box-shadow: inset 0 0 0 2px #c25a62; } .review-strip.is-declined .icon { color: #b2434f; }
.ann-row.is-review-pending { box-shadow: 0 0 0 2px var(--gold-bright); }
.remind-when { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-weight: 700; white-space: nowrap; }
/* A page chip (e.g. "Ministry · Pathfinders" on a post): the logo stays small. */
.page-chip > .pg-logo { flex: none; width: 26px; height: 26px; font-size: 12px; }
/* Buttons under an announcement or story: a row on desktop, stacked on phones */
.item-actions { display: flex; flex-direction: column; gap: 10px; }
/* Remind me */
.remind-field { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.remind-field .check { display: flex; gap: 10px; align-items: flex-start; }
.remind-field .check strong { display: inline-flex; gap: 6px; align-items: center; }
.remind-field .check small { display: block; color: var(--muted); font-weight: 400; }
.remind-btn.remind-on { color: var(--gold); }
.ann-row.is-review-pending .ann-row-main, .ann-row.is-review-declined .ann-row-main { flex-wrap: wrap; }
.ann-row-main > .review-strip { flex: 0 0 100%; margin: 0; }
.ann-row-main:has(> .row-corner) > .review-strip { flex-basis: 100%; }
/* With a review strip on top, the New bubble / × moves below it, in line with the category line. */
.ann-row.is-review-pending .ann-row-main > .row-corner, .ann-row.is-review-declined .ann-row-main > .row-corner { top: var(--corner-top, 81px); }
.admin-list .settings-item .bar-pill { margin-left: auto; } .admin-list .settings-item .bar-pill ~ .bar-pill { margin-left: 0; }
.admin-list .settings-item .leaders-badge { margin-left: auto; } .admin-list .settings-item .bar-pill ~ .leaders-badge { margin-left: 0; }
.ann-row.is-review-pending .ann-row-main > .ann-row-open, .ann-row.is-review-declined .ann-row-main > .ann-row-open { flex: 1 0 100%; }
.follow-church .follow-church-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.follow-church .follow-church-open span { font-weight: 600; }
.follow-church .follow-church-open small { color: var(--muted); font-size: 13px; }
.follow-churches + .link-btn, .section > .hint + .link-btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
/* Segmented choices (Off / Weekly / Monthly, Follow / Visit…): a clear outlined track with a filled choice,
   so they read as buttons on any background, light or dark. */
.segmented { background: var(--surface); border: 1px solid color-mix(in srgb, var(--navy) 22%, var(--line)); box-shadow: inset 0 1px 2px rgba(15,23,42,.06); }
.segmented button { color: var(--ink); opacity: .78; }
.segmented button:hover:not(:disabled):not(.is-on) { background: var(--info-soft); opacity: 1; }
.segmented button.is-on { background: var(--navy); color: #fff; opacity: 1; box-shadow: 0 1px 3px rgba(15,23,42,.25); }
:root[data-theme="dark"] .segmented button.is-on { background: var(--gold-bright); color: #1a1406; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button.is-on { background: var(--gold-bright); color: #1a1406; } }
/* Following page */
.follow-sec { display: flex; flex-direction: column; gap: 12px; }
.follow-sec > .muted { margin: 0; }
.follow-sub { margin: 8px 0 -4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.follow-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.follow-ministry .follow-church-open { flex-direction: row; align-items: center; gap: 12px; }
.follow-ministry .pg-logo { flex: none; border-radius: 10px; }
.fm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* My Profile */
.prof-hero { display: flex; align-items: center; gap: 18px; padding: 18px; }
.prof-hero .profile-photo { flex: none; }
.prof-hero-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; align-items: flex-start; }
.prof-name { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.15; }
.prof-line { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.prof-line .icon { flex: none; }
.prof-photo-btn { margin-top: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.prof-key { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.prof-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.prof-tag.is-edit { background: var(--good-soft); color: var(--good); }
.prof-tag.is-lock { background: var(--info-soft); color: var(--muted); }
.prof-photo-note { margin-top: 2px; }
.prof-card { padding: 4px 16px; }
.prof-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prof-card > .prof-row:last-child, .prof-card > .prof-row:last-of-type:not(:has(+ .prof-panel)) { border-bottom: 0; }
.prof-row-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--muted); }
.prof-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prof-row-text small { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.prof-row-text strong { font-weight: 600; line-height: 1.35; }
.prof-row .btn { flex: none; }
.prof-panel { padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.prof-card > .prof-panel:last-child { border-bottom: 0; }
.prof-toggle { border-bottom: 0; padding-block: 12px; }
.profile-screen .section-head h2 { font-size: 13px; }
.profile-screen .profile-dir-btn { margin-top: 12px; }
.profile-screen .move-in-profile { margin-top: 12px; }
.profile-screen .section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.profile-screen .section-head .prof-tag { font-size: 11px; padding: 3px 8px; text-transform: none; letter-spacing: 0; }
.prof-row { flex-wrap: wrap; }
.prof-row-text { flex: 1 1 170px; }
@media (max-width: 480px) { .prof-row .btn { margin-left: 44px; } }
.prof-hero .avatar, .prof-hero .profile-photo > :first-child { font-size: 28px; }
.follow-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.follow-row-text small { font-weight: 400; color: var(--muted); font-size: 13px; }
.follow-remove { flex: none; color: var(--muted); }
.level-follow-head { position: relative; padding-right: 36px; }
.level-follow-head .follow-remove { position: absolute; top: -4px; right: -6px; }
.follow-search { display: flex; flex-direction: column; gap: 8px; }
.follow-results { padding: 4px 14px; }
.follow-results .btn { flex: none; }
/* Positions */
.pos-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pos-list > li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pos-title { font-weight: 700; min-width: 140px; }
.pos-people { display: flex; flex-wrap: wrap; gap: 6px; }
.pos-add { display: flex; flex-direction: column; gap: 8px; padding: 14px; margin-top: 8px; }
.pos-hits { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pos-sec .btn { align-self: flex-start; margin-top: 8px; }
.pg-posters .btn { margin-top: 8px; }
.member-regions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.region-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.region-add { flex-wrap: wrap; gap: 8px; }
.member-block { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-positions { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pg-posters > .btn, .pos-sec > .btn { align-self: flex-start; width: auto; }
.pg-posters { display: flex; flex-direction: column; }
.member-edit > *, .member-regions > *, .region-card > * { max-width: 100%; box-sizing: border-box; min-width: 0; }
.member-edit { min-width: 0; overflow-wrap: anywhere; }
/* More: sections (Church, Study, Discover, Leadership Tools, Admin Settings) */
.more-sec .half-grid + .half-grid { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.is-staff-grid .half-main { background: linear-gradient(135deg, #4b3a8c, #6a4fb3); }
.more-sec-admin .is-staff-grid .half-main { background: linear-gradient(135deg, #3d2f6e, #563f94); }
.more-customize { margin-top: 4px; }
.customize-row { gap: 10px; padding-inline: 12px; }
.customize-row.is-off label span { color: var(--muted); }
.customize-row label { flex: 1; min-width: 0; }
.customize-order { display: flex; flex-direction: column; flex: none; }
.customize-order .icon-btn { width: 28px; height: 22px; }
.customize-icon { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.customize-list { padding: 4px 0; }
.tool-setting { gap: 12px; padding-inline: 14px; }
.tool-setting label { flex: 1; min-width: 0; }
/* Ministry page: add posts, pins, groups, leaders & posters */
.mp-bar { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pg-post-row { display: flex; align-items: center; gap: 6px; }
.pg-post-row > .row-link { flex: 1; min-width: 0; }
.pg-pin { flex: none; color: var(--muted); }
.pg-pin.is-on { color: var(--gold); }
.pg-pinned h3 { display: flex; align-items: center; gap: 6px; }
.pg-group-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pg-group-row:last-child { border-bottom: 0; }
.pg-group-row .quick-text { flex: 1; min-width: 0; }
.pg-group-row .btn { flex: none; }
.pg-pick { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.pg-groups > .btn { margin-top: 8px; }
.poster-list { padding: 2px 12px; }
.poster-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.poster-row:last-child { border-bottom: 0; }
.poster-name { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.poster-name small { color: var(--muted); font-size: 12.5px; }
.poster-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.mp-mine .lt-pill { flex: none; }
.pg-posters { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pg-posters .poster-list { box-shadow: none; border: 0; padding: 0; background: transparent; }
/* My Church → Church Details: compact contact rows */
.church-sub { margin: 14px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.church-times .times-list { margin: 0; }
.church-contact { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .church-contact { grid-template-columns: 1fr 1fr; } }
.church-contact a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.church-contact-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.church-contact-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14.5px; }
/* Multi-select dropdown (positions) */
.multi-select { position: relative; }
.multi-select-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.multi-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-select-value.is-empty { color: var(--muted); }
.multi-select-count { flex: none; min-width: 22px; height: 22px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.multi-select-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.18); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.multi-select-menu ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.multi-select-opt { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-weight: 500; cursor: pointer; }
.multi-select-search { width: 100%; }
/* Ministry page: leader view toggle; Settings */
.pg-view-toggle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin: 10px 0; border-radius: 10px; background: var(--info-soft); font-size: 14px; color: var(--ink); }
.pg-view-toggle.is-member { background: var(--gold-soft); }
.pg-view-toggle > span { flex: 1; min-width: 0; }
.pg-set-row { margin-top: 10px; }
/* Church Setup */
.setup-bar { height: 8px; border-radius: 4px; background: var(--info-soft); overflow: hidden; margin: 4px 0 10px; }
.setup-bar > span { display: block; height: 100%; background: var(--good); border-radius: 4px; transition: width .3s; }
.setup-steps-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 4px 0 10px; font: inherit; color: var(--muted); cursor: pointer; }
.setup-all li.is-current .setup-step { background: var(--info-soft); }
.setup-intro { padding: 16px; margin-bottom: 14px; }
.setup-intro-head { display: flex; gap: 12px; align-items: flex-start; }
.setup-intro-head p { margin: 0; font-weight: 600; }
.setup-look-title { margin: 14px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.setup-look { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.setup-look li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.setup-look .icon { flex: none; margin-top: 3px; color: var(--good); }
.setup-work { margin: 6px 0 18px; }
.setup-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); position: sticky; bottom: calc(var(--tabbar-h, 64px)); background: var(--paper); z-index: 5; }
.setup-skip { display: block; margin: 4px auto 0; }
.chat-kind { margin-bottom: 4px; }
.church-contact li { min-width: 0; }
.church-contact a { max-width: 100%; box-sizing: border-box; }
.cal-choice { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cal-choice legend { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 0 4px; }
.cal-choice-opts { display: grid; gap: 6px; }
@media (min-width: 560px) { .cal-choice-opts { grid-template-columns: 1fr 1fr; } }
.cal-choice-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.cal-choice-opt.is-on { border-color: var(--navy); background: var(--info-soft); }
.cal-choice-opt small { display: block; color: var(--muted); font-size: 12.5px; }
.cal-choice-new { display: flex; flex-direction: column; gap: 6px; }
/* Event Manager */
.ev-manage-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb, var(--navy) 30%, var(--line)); background: var(--surface); color: var(--navy); border-radius: 999px; padding: 4px 8px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ev-manage-btn:hover { background: var(--info-soft); }
.agenda-item { position: relative; }
.agenda-item > .ev-manage-btn { position: absolute; top: 8px; right: 8px; z-index: 2; }
.ep-top-right { display: inline-flex; gap: 8px; align-items: center; }
.em-tabs { margin-bottom: 14px; }
.em-sec { display: flex; flex-direction: column; gap: 12px; }
.em-when { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.em-when p { margin: 0; }
.em-when .label { display: inline-block; min-width: 96px; color: var(--muted); font-size: 13px; font-weight: 700; }
.em-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.em-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.em-stat strong { font-size: 22px; font-family: var(--font-display); }
.em-stat span:last-child { color: var(--muted); font-size: 13px; }
.em-stat-icon { color: var(--navy); }
.em-sub { margin: 6px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.em-list { padding: 4px 14px; }
.em-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.em-row:last-child { border-bottom: 0; }
.em-row small { flex-basis: 100%; color: var(--muted); }
.em-actions .btn, .em-sec > .btn { align-self: flex-start; }
.em-tabs { overflow-x: auto; display: flex; }
.em-tabs .news-tab { flex: 1 0 auto; min-width: 86px; }
.cal-choice-opt input[type="radio"] { width: auto; flex: none; margin: 3px 0 0; }
.cal-choice-opt > span { flex: 1; min-width: 0; }
.agenda-item > .ev-manage-btn { background: #6a4fb3; border-color: #6a4fb3; color: #fff; box-shadow: 0 1px 4px rgba(74, 52, 140, .35); }
.agenda-item > .ev-manage-btn:hover { background: #5a40a3; }
.chat-pick { max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.chat-pick .settings-item > .avatar, .chat-pick .settings-item > :first-child { flex: none; }
/* Order of Service & Assignments: the header and what's under it are one block (navy, not staff purple). */
.planning-block { border: 1px solid var(--staff-line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.planning-block > .planning-head { border: 0; border-radius: 0; }
.planning-body { padding: 14px 12px 16px; background: var(--paper); border-top: 1px solid var(--staff-line); display: flex; flex-direction: column; gap: 14px; }
.planning-body > div > .stack-lg, .planning-body .stack-lg { gap: 14px; }
.planning .staff, .planning .btn.staff, .planning .staff-zone { --staff: var(--navy); }
.admin-list .settings-item .bar-pill { flex: 0 0 auto; width: auto; white-space: nowrap; }
/* Calendar: "Manage what I follow" sits on the List / Month row on the Following tab. */
.cal-layout-row { display: flex; align-items: center; gap: 10px; margin: -16px 0 -12px; }   /* close to the tabs above and the list below */
.cal-layout-row .cal-layout { margin: 0 0 0 auto !important; }
.cal-follow-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; white-space: nowrap; }
/* The page gear (News, Calendar, Groups) and its sheet. */
.head-actions .page-gear { color: var(--muted); }
.quick-settings .notif-list { margin: 0 0 6px; }
.quick-settings .cs-sub { margin: 14px 0 6px; }
.view-all-settings { width: 100%; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sheet .view-all-settings { margin-bottom: 4px; }
/* More → Admin Settings: a purple list. */
.more-sec-admin .admin-list { background: linear-gradient(135deg, #3d2f6e, #563f94); border-color: transparent; }
.more-sec-admin .admin-list .settings-item { color: #fff; border-color: rgba(255,255,255,.14) !important; }
.more-sec-admin .admin-list .settings-item > svg:first-child, .more-sec-admin .admin-list .settings-item > svg:last-child { color: #dcd2fb; }
.more-sec-admin .admin-list .settings-item small { color: #d6cdf3; }
.more-sec-admin .admin-list .bar-pill { background: rgba(255,255,255,.16); color: #fff; border-color: transparent; }
.more-sec-admin .admin-list .settings-item:hover { background: rgba(255,255,255,.06); }
.cs-following-btn { margin: 10px 0 4px; }
/* Demo welcome: Leadership or Member. */
.dw-opts { display: grid; gap: 10px; margin: 14px 0; }
.dw-look { display: grid; gap: 6px; margin: 0 0 14px; }
.dw-look .segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.dw-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dw-opt.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: color-mix(in srgb, var(--navy) 6%, var(--surface)); }
.dw-opt .quick-text span { font-size: 13px; color: var(--muted); }
.dw-radio { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); color: #fff; }
.dw-opt.is-on .dw-radio { background: var(--navy); border-color: var(--navy); }

/* ===================== Printed Bulletin (src/ui/print-bulletin.js) ===================== */
.print-link, .print-bulletin-link { margin-top: 4px; }
.pb-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pb-controls > *, .pb-preview-col { min-width: 0; }
.pb-controls { display: grid; gap: 12px; align-content: start; }
.pb-card { padding: 14px; }
.pb-ctl-title { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pb-sizes { display: grid; gap: 8px; }
.pb-size-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pb-size-opt small { display: block; color: var(--muted); font-size: 12.5px; }
.pb-size-opt.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.pb-size-icon { flex: none; width: 34px; height: 24px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; opacity: .7; }
.pb-size-icon.is-fold::after, .pb-size-icon.is-legal::after { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; border-left: 1.5px dashed currentColor; }
.pb-size-icon.is-legal { width: 40px; }
.pb-size-icon.is-page { width: 20px; height: 26px; }
.pb-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pb-theme-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.pb-theme-opt.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.pb-swatch { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pb-row > span { font-size: 14px; }
.pb-photo-row { justify-content: flex-start; margin: 0 0 8px; }
.pb-upload { align-self: flex-start; margin-bottom: 8px; }
.pb-secs { list-style: none; margin: 0 0 8px; padding: 0; }
.pb-secs li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.pb-secs li:first-child { border-top: 0; }
.pb-secs li.is-off .pb-sec-name { color: var(--muted); }
.pb-arrows { display: flex; flex-direction: column; }
.pb-arrows .icon-btn { width: 26px; height: 18px; min-height: 0; }
.pb-sec-name { flex: 1; min-width: 0; font-size: 14px; }
.pb-secs select { width: auto; max-width: 128px; padding: 4px 8px; font-size: 13px; }
.pb-custom-form { margin-top: 8px; }
.pb-actions { padding: 14px; display: grid; gap: 10px; }
.pb-actions .btn { justify-self: start; }
.pb-warn, .pb-ok { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 14px; }
.pb-warn { color: var(--bad, #b2434f); font-weight: 600; }
.pb-ok { color: var(--good, #2e7d4f); }
.pb-preview { margin-top: 12px; overflow: hidden; }
.pb-scale { overflow: hidden; }
@media (min-width: 900px) {
  .print-bulletin .screen-body.pb-layout { grid-template-columns: 340px minmax(0, 1fr); align-items: start; max-width: none; }
  .pb-preview-col { position: sticky; top: 16px; }
}

/* The pages themselves (real size; scaled on screen, printed as is). */
.pb-doc { --pb-head: "Lora", Georgia, "Times New Roman", serif; --pb-body: "Lora", Georgia, "Times New Roman", serif; color: var(--pb-ink); font-family: var(--pb-body); font-size: 10pt; line-height: 1.35;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pb-doc.pb-font-sans { --pb-head: "Noto Sans", Arial, sans-serif; --pb-body: "Noto Sans", Arial, sans-serif; font-size: 9.5pt; }
.pb-doc.pb-text-s { font-size: 8.75pt; } .pb-doc.pb-font-sans.pb-text-s { font-size: 8.25pt; }
.pb-doc.pb-text-l { font-size: 11.25pt; } .pb-doc.pb-font-sans.pb-text-l { font-size: 10.75pt; }
.pb-sheet { position: relative; display: flex; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); margin-bottom: 24px; overflow: hidden; }
.pb-label-side { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font: 600 9px/1 "Noto Sans", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #5f6878; }
.pb-sheet > .pb-panel + .pb-panel { border-left: 1px dashed #d6dbe3; }
.pb-panel { flex: 1 1 0; min-width: 0; height: 100%; padding: .45in .45in .4in; overflow: hidden; display: flex; flex-direction: column; gap: .16in; }
.pb-doc h1, .pb-doc h3, .pb-doc h4 { font-family: var(--pb-head); color: var(--pb-ink); margin: 0; }
.pb-sec h3 { font-size: 1.25em; padding-bottom: .05in; margin-bottom: .08in; border-bottom: 1.5px solid var(--pb-accent); letter-spacing: .01em; }
.pb-sec p { margin: 0 0 .06in; }
.pb-muted { color: color-mix(in srgb, var(--pb-ink) 62%, #fff); }
/* cover */
.pb-cover { align-items: center; text-align: center; justify-content: flex-start; background: #fff; }
.pb-cover-top { display: flex; justify-content: center; min-height: .5in; color: var(--pb-ink); }
.pb-doc .auto-logo { color: var(--pb-ink); }
.pb-doc .custom-logo img { max-height: .7in; max-width: 3in; }
.pb-doc .custom-logo .logo-dark { display: none !important; }
.pb-doc .custom-logo .logo-light { display: block !important; }
.pb-photo { width: 100%; flex: 0 0 auto; height: 3.1in; border-radius: 6px; background-size: cover; background-position: center; }
.pb-size-legal .pb-photo { height: 3.3in; }
.pb-rule { width: 1.2in; height: 2px; background: var(--pb-accent); margin: .3in 0 .1in; }
.pb-title { font-family: "Cormorant Garamond", var(--pb-head) !important; font-style: italic; font-weight: 700; font-size: 2.6em; line-height: 1.05; color: var(--pb-ink); }
.pb-font-sans .pb-title { font-family: var(--pb-head) !important; font-style: normal; font-size: 2.2em; letter-spacing: -.01em; }
.pb-date { margin: 0; font-size: 1.05em; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-accent); font-weight: 600; }
.pb-verse { margin: .1in .1in 0; padding: 0; font-style: italic; font-size: 1.05em; }
.pb-verse p { margin: 0 0 .04in; }
.pb-verse cite { font-style: normal; font-size: .85em; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-accent); }
.pb-cover-foot { margin: auto 0 0; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--pb-ink) 65%, #fff); }
/* sections */
.pb-greeting p { font-style: italic; font-size: 1.05em; }
.pb-sermon { display: grid; margin-bottom: .1in; padding: .08in .12in; background: var(--pb-soft); border-left: 3px solid var(--pb-accent); }
.pb-sermon strong { font-family: var(--pb-head); font-size: 1.12em; }
.pb-svc { margin-bottom: .1in; }
.pb-svc h4 { display: flex; justify-content: space-between; font-size: 1em; text-transform: uppercase; letter-spacing: .07em; color: var(--pb-accent); margin-bottom: .04in; }
.pb-svc ul, .pb-events ul, .pb-times { list-style: none; margin: 0; padding: 0; }
.pb-svc li { display: flex; align-items: baseline; gap: .06in; padding: .015in 0; }
.pb-item { display: flex; flex-direction: column; min-width: 0; }
.pb-label { font-weight: 600; }
.pb-what { font-size: .88em; color: color-mix(in srgb, var(--pb-ink) 70%, #fff); }
.pb-dots { flex: 1; border-bottom: 1px dotted var(--pb-line); transform: translateY(-.04in); min-width: .2in; }
.pb-who { text-align: right; flex: none; max-width: 48%; }
.pb-ann { margin-bottom: .08in; }
.pb-ann strong { display: block; font-family: var(--pb-head); }
.pb-ann p { font-size: .95em; }
.pb-events li { display: grid; grid-template-columns: 1.15in 1fr; gap: .08in; padding: .03in 0; border-bottom: 1px solid var(--pb-line); }
.pb-when { font-weight: 600; color: var(--pb-accent); font-size: .92em; }
.pb-lines { display: grid; gap: .27in; margin-top: .14in; }
.pb-lines span { border-bottom: 1px solid var(--pb-line); }
.pb-times li { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--pb-line); padding: .02in 0; }
.pb-contact p { margin-bottom: .03in; }
.pb-welcome { background: var(--pb-soft); padding: .1in .14in; border-radius: 6px; }
.pb-theme-plain .pb-welcome, .pb-theme-plain .pb-sermon, .pb-theme-plain .pb-cover { background: #fff; }
.pb-theme-plain .pb-welcome { border: 1px solid var(--pb-line); }
/* one page */
.pb-one { flex-direction: column; padding: .5in .55in; gap: .14in; }
.pb-one-head { display: flex; align-items: center; justify-content: space-between; gap: .2in; padding-bottom: .12in; border-bottom: 2px solid var(--pb-accent); }
.pb-one-title { text-align: right; }
.pb-verse-line { text-align: center; margin: 0; }
.pb-cols { column-count: 2; column-gap: .35in; column-fill: auto; flex: 1; min-height: 0; overflow: hidden; }
.pb-cols > div { break-inside: avoid; margin-bottom: .14in; }

@media print {
  html.printing-bulletin #print-root { font: inherit; color: inherit; }
  html.printing-bulletin #print-root .pb-sheet { box-shadow: none; margin: 0; break-after: page; page-break-after: always; }
  html.printing-bulletin #print-root .pb-sheet:last-child { break-after: auto; page-break-after: auto; }
  html.printing-bulletin #print-root .pb-label-side { display: none; }
  html.printing-bulletin #print-root .pb-sheet > .pb-panel + .pb-panel { border-left: 0; }
}
.pb-when small { display: block; font-weight: 400; font-size: .9em; }
.pb-events li { grid-template-columns: .95in 1fr; }
.pb-svc li .pb-item { flex: 1 1 auto; }
.pb-svc li:has(.pb-who) .pb-item { flex: 0 1 auto; }
.pb-row .segmented { flex-wrap: nowrap; }
.pb-row .segmented button { white-space: nowrap; }
/* "Manage what I follow": one line right under the Following tab (News and Calendar). */
.follow-link-line { display: flex; align-items: center; gap: 5px; margin: -10px 0 12px 2px; font-size: 14px; }
.cal-layout-row .follow-link-line { margin: 0; }
.cal-layout-row.has-follow { margin-top: -16px; }
/* Prepare Bulletin: each announcement or pinned item and its buttons are one card. */
.create-bulletin .cb-pin, .create-bulletin .cb-ann { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 1px 2px rgba(23, 36, 58, .05); }
.create-bulletin .cb-pin > ul, .create-bulletin .cb-ann > ul { margin: 0; padding: 0; }
.create-bulletin .cb-pin .ann-row, .create-bulletin .cb-ann .ann-row, .create-bulletin .cb-ann .ann-card { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
.create-bulletin .cb-ann-tools { margin: 0; padding: 8px 12px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.create-bulletin .cb-pin { display: flex; flex-direction: column; gap: 0 !important; }
.create-bulletin .cb-ann { gap: 0 !important; }
/* Printed Bulletin: cover layouts, half page, Sabbath School. */
.pb-size-icon.is-half { width: 18px; height: 26px; }
.pb-size-icon.is-half::after { content: ""; position: absolute; inset: 3px; border-top: 1.5px solid currentColor; opacity: .6; }
.pb-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.pb-layout-opt { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; text-align: center; }
.pb-layout-opt.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.pb-mini { position: relative; display: grid; align-content: start; justify-items: center; gap: 3px; width: 34px; height: 46px; padding: 4px; border: 1.5px solid var(--line); border-radius: 3px; background: var(--surface); }
.pb-mini i { display: block; width: 100%; height: 16px; background: color-mix(in srgb, var(--navy) 35%, var(--surface)); border-radius: 2px; }
.pb-mini b { display: block; width: 70%; height: 3px; background: var(--muted); border-radius: 2px; }
.pb-mini.is-full { background: color-mix(in srgb, var(--navy) 35%, var(--surface)); align-content: end; }
.pb-mini.is-full i { display: none; }
.pb-mini.is-full b { background: #fff; }
.pb-mini.is-simple i { display: none; }
.pb-mini.is-simple { align-content: center; }
.pb-checks { display: grid; gap: 2px; margin-top: 8px; }
.pb-sub { margin: 0; font-size: .9em; letter-spacing: .14em; text-transform: uppercase; color: var(--pb-accent); font-weight: 600; }
.pb-message { margin: .1in .15in 0; font-style: italic; font-size: 1.05em; white-space: pre-line; }
.pb-cover-times { list-style: none; margin: .1in 0 0; padding: 0; display: grid; gap: .03in; min-width: 2.6in; }
.pb-cover-times li { display: flex; justify-content: space-between; gap: .2in; border-bottom: 1px dotted var(--pb-line); }
.pb-cover-extra { width: 100%; text-align: left; margin-top: .05in; }
.pb-cover-simple { justify-content: center; }
.pb-cover-simple .pb-title { font-size: 3em; }
.pb-cover-simple .pb-rule { margin: .15in 0; }
.pb-cover-full { background-size: cover; background-position: center; color: #fff; justify-content: space-between; }
.pb-cover-full .pb-cover-top .auto-logo, .pb-cover-full .pb-title, .pb-cover-full .pb-verse, .pb-cover-full .pb-message, .pb-cover-full .pb-cover-foot { color: #fff !important; }
.pb-cover-full .pb-cover-top .auto-logo-mark { background: #fff !important; }
.pb-cover-full .pb-date, .pb-cover-full .pb-sub, .pb-cover-full .pb-verse cite { color: #f3dca8; }
.pb-cover-full .pb-cover-words { margin-top: auto; display: grid; justify-items: center; gap: .06in; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.pb-cover-full .pb-cover-times li { border-color: rgba(255,255,255,.5); }
.pb-cover-full .pb-cover-foot { margin-top: .15in; }
/* half page */
.pb-two-up > .pb-panel + .pb-panel { border-left: 1px dashed #b8c0cc !important; }
.pb-half-front { gap: .12in; }
.pb-half-head { display: grid; justify-items: center; text-align: center; gap: .06in; padding-bottom: .1in; border-bottom: 2px solid var(--pb-accent); }
.pb-half-logo .auto-logo { transform: scale(.8); transform-origin: center; }
.pb-half-title { text-align: center; }
.pb-half-title .pb-title { font-size: 1.9em; }
.pb-half-title .pb-date { font-size: .85em; }
/* Sabbath School */
.pb-h-time { display: flex; justify-content: space-between; align-items: baseline; }
.pb-h-time .pb-time { font-size: .8em; color: var(--pb-accent); }
.pb-classes h4 { font-size: .9em; text-transform: uppercase; letter-spacing: .07em; color: var(--pb-accent); margin: .06in 0 .03in; }
.pb-classes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.pb-classes li { display: flex; justify-content: space-between; gap: .06in; padding: .01in 0; font-size: .95em; }
@media print { html.printing-bulletin #print-root .pb-two-up > .pb-panel + .pb-panel { border-left: 1px dashed #c8ced8 !important; } }
.pb-size-half .pb-panel { padding: .32in .36in .28in; gap: .12in; }
.pb-doc.pb-size-half.pb-text-m { font-size: 9pt; } .pb-doc.pb-size-half.pb-text-s { font-size: 8.25pt; } .pb-doc.pb-size-half.pb-text-l { font-size: 10pt; }
.pb-contact-short { border-top: 1.5px solid var(--pb-accent); padding-top: .06in; font-size: .92em; }
.cb-gv-row { display: flex; gap: 8px; align-items: center; }
.cb-gv-row input:first-child { flex: 1; min-width: 0; }
.cb-gv-row .cb-gv-amt { width: 120px; flex: none; text-align: right; }

/* Printed Bulletin: choice buttons that wrap, sides, announcement picker. */
.pb-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; margin: 0 0 8px; }
.pb-choice { padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; line-height: 1.2; cursor: pointer; text-align: center; }
.pb-choice.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
:root[data-theme="dark"] .pb-choice.is-on { color: #1a1430; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pb-choice.is-on { color: #1a1430; } }
.pb-sides-label { display: block; margin: 12px 0 6px; font-size: 14px; font-weight: 600; }
.pb-pick { margin: 6px 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; }
.pb-pick h4 { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.pb-pick .check { font-size: 14px; }
.pb-greport strong { font-weight: 600; }
.age-list .age-room { width: 100%; min-width: 0; }
.pb-classes li { border-bottom: 1px dotted var(--pb-line); }
.pb-size-legal .pb-classes ul { grid-template-columns: 1fr 1fr; column-gap: .2in; }
/* Ministry Tools: a ministry's add-on tools, right under it. */
.mt-item { display: grid; gap: 0; }
.mt-item > .row-link:has(+ .mt-addon) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mt-addon { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 14px 9px 22px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.mt-addon > span { flex: 1; font-weight: 600; }
.mt-addon + .mt-addon { border-radius: 0 0 14px 14px; }
.pg-addon { display: grid; gap: 8px; }
.pg-addon .btn { justify-self: start; }

/* ===================== New members (src/ui/new-members.js) ===================== */
.nm-links { display: grid; gap: 8px; }
.nm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nm-row { display: grid; gap: 4px; width: 100%; padding: 12px 14px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.nm-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nm-row-top strong { font-size: 16px; }
.nm-row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.nm-row-meta span { display: inline-flex; align-items: center; gap: 4px; }
.nm-next { font-size: 13.5px; }
.nm-card { padding: 14px; }
.nm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nm-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.nm-progress .fy-bar { flex: 1; }
.nm-steps { list-style: none; margin: 0; padding: 0; }
.nm-steps li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.nm-steps li:first-child { border-top: 0; }
.nm-steps input { width: 20px; height: 20px; margin-top: 2px; }
.nm-steps label { display: grid; gap: 2px; cursor: pointer; }
.nm-steps small { color: var(--muted); font-size: 12.5px; }
.nm-steps li.is-done strong { color: var(--muted); text-decoration: line-through; }
.nm-when { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.nm-steps li.is-late .nm-when { color: var(--bad, #b2434f); font-weight: 600; }
.nm-how { padding: 12px 14px; }
.nm-how summary { cursor: pointer; }
.nm-how ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
/* Your First Year (My Church) */
.first-year { padding: 14px; margin-bottom: 16px; border: 1.5px solid color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.fy-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fy-head > div { flex: 1; min-width: 0; }
.fy-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; flex: none; }
.fy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fy-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fy-row.is-static { cursor: default; }
.fy-row > span:not(.btn) { flex: 1; min-width: 0; display: grid; gap: 3px; }
.fy-row > .btn { flex: none; }
.fy-row small { color: var(--muted); font-size: 12.5px; }
.fy-bar { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, var(--surface)); overflow: hidden; }
.fy-bar > span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
/* Training lessons */
.tr-lesson { margin-top: 6px; font-size: 14px; }
.tr-lesson summary { cursor: pointer; color: var(--gold-ink, var(--gold)); font-weight: 600; }
.tr-lesson p { margin: 6px 0; }
.tr-lesson .ref-link { font-size: inherit; padding: 0; }

/* Chat reactions (👍 ❤️ 😂 🤗) */
.msg { position: relative; }
.msg-bubble { position: relative; }
.msg.has-reacts { margin-bottom: 12px; }
.msg-reacts { position: absolute; bottom: -14px; right: 8px; display: inline-flex; gap: 2px; padding: 1px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.msg-mine .msg-reacts { right: auto; left: 8px; }
.msg-react { display: inline-flex; align-items: center; gap: 2px; padding: 0 3px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; line-height: 20px; color: var(--ink); cursor: pointer; }
.msg-react small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.msg-react.is-mine { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); }
.msg-react:disabled { cursor: default; }
.msg-react-add { align-self: center; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); opacity: .6; cursor: pointer; }
.msg-react-add:hover, .msg-react-add:focus-visible, .msg-react-add[aria-expanded="true"] { opacity: 1; background: var(--paper-2, rgba(0,0,0,.05)); }
.react-picker { position: absolute; z-index: 5; bottom: calc(100% + 4px); left: 40px; display: flex; gap: 2px; padding: 4px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.react-picker button, .react-row button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; cursor: pointer; transition: transform .1s; }
.react-picker button:hover, .react-row button:hover { transform: scale(1.18); background: var(--paper-2, rgba(0,0,0,.05)); }
.react-picker button.is-mine, .react-row button.is-mine { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); }
.react-row { display: flex; justify-content: center; gap: 8px; padding: 2px 0 6px; }
.react-row button { width: 48px; height: 48px; font-size: 26px; }
.react-picker.is-below { bottom: auto; top: calc(100% + 4px); }
/* The picker sits right under the message (in the flow, so the chat box never clips it). */
.react-picker { position: static; align-self: flex-start; margin: -2px 0 4px 40px; width: max-content; }
.msg.has-reacts + .react-picker { margin-top: 6px; }
/* Reactions sit on the top-right corner of the message. */
.msg.has-reacts { margin-bottom: 0; margin-top: 12px; }
.msg-reacts { top: -12px; bottom: auto; right: -8px; left: auto; }
.msg-mine .msg-reacts { right: -8px; left: auto; }
.msg.has-reacts + .react-picker { margin-top: -2px; }
.react-who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.react-who-list li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); }
.react-who-list li:first-child { border-top: 0; }
.react-who-list li > span:nth-child(3) { flex: 1; font-weight: 600; }
.react-who-glyph { font-size: 22px; width: 28px; text-align: center; }
/* New Member Circle: Growing in Jesus accountability */
.circle-progress { padding: 14px; margin-bottom: 14px; display: grid; gap: 10px; }
.cp-head { display: flex; align-items: center; gap: 8px; }
.cp-banner { margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); font-weight: 600; font-size: 14px; }
.cp-banner.is-all { background: color-mix(in srgb, #2e7d4f 14%, var(--surface)); color: color-mix(in srgb, #2e7d4f 80%, var(--ink)); }
.cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cp-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.cp-list li:first-child { border-top: 0; }
.cp-who { flex: 1; min-width: 0; display: grid; }
.cp-who small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-ok { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, #2e7d4f 14%, var(--surface)); color: color-mix(in srgb, #2e7d4f 85%, var(--ink)); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cp-not { padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.circle-progress .link-btn { justify-self: start; }
.nm-last { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }
.nm-last.is-ok { color: color-mix(in srgb, #2e7d4f 85%, var(--ink)); }
.nm-last.is-behind { color: var(--bad, #b2434f); }
/* Weekly course */
.tr-weeks { display: grid; gap: 10px; margin-top: 12px; }
.tr-week { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px 12px; }
.tr-week.is-now { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }
.tr-week-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font-size: 15px; cursor: pointer; }
.tr-week.is-now .tr-week-h { cursor: default; }
.tr-week-h small { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tr-week-h small.is-done { color: color-mix(in srgb, #2e7d4f 85%, var(--ink)); }
.tr-week-h small.is-behind { color: var(--bad, #b2434f); }
.tr-week-name { margin: 2px 0 6px; color: var(--muted); font-size: 14px; }
.tr-week .tr-steps { margin-top: 8px; }
.tr-lines p { margin: 4px 0; font-size: 14px; }
.tr-verse { font-weight: 600; }
.tr-next-week { display: flex; align-items: center; gap: 6px; }
/* Visitors with an account: access a church admin gives */
.visitor-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.visitor-areas { list-style: none; margin: 8px 0; padding: 0; }
.visitor-areas .toggle-row { cursor: pointer; }
.dv-access { display: grid; gap: 4px; padding: 8px 0 0; }
.visitor-areas .toggle-row { display: flex; align-items: center; gap: 12px; }
.visitor-areas .toggle-row > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.visitor-areas .toggle-row > span > span { font-weight: 600; }
.visitor-areas .toggle-row small { color: var(--muted); font-size: 12.5px; }

/* More → Notifications: each one a red-tinted card with a label saying what kind it is. */
:root { --notif-bg: #fdf0ef; --notif-line: #f0c9c5; --notif-ink: #a2352f; --notif-icon-bg: #f8dcd9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --notif-bg: #3a2324; --notif-line: #6a3a3a; --notif-ink: #f1a9a2; --notif-icon-bg: #55302f; } }
:root[data-theme="dark"] { --notif-bg: #3a2324; --notif-line: #6a3a3a; --notif-ink: #f1a9a2; --notif-icon-bg: #55302f; }
.notif-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--notif-line); border-left: 4px solid var(--notif-ink); border-radius: 12px;
  background: var(--notif-bg); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.notif-card:hover { border-color: color-mix(in srgb, var(--notif-ink) 55%, var(--notif-line)); border-left-color: var(--notif-ink); }
.notif-icon { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--notif-icon-bg); color: var(--notif-ink); }
.notif-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--notif-ink); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
:root[data-theme="dark"] .notif-count { color: #2a1414; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notif-count { color: #2a1414; } }
.notif-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.notif-cat { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--notif-ink); }
.notif-text strong { font-size: 15px; line-height: 1.3; }
.notif-text .muted { font-size: 13px; }
.notif-card > .icon:last-child { color: var(--notif-ink); flex: none; }
.more-notices-body { display: grid; gap: 8px; }

/* My Church: Give and Livestream as wide buttons under the blocks (side by side on a big screen), in the app's own
   navy-and-gold, styled like the blocks above them (a soft light and the icon drawn large and faint on the right).
   Give is gold, like the Bulletin button; Livestream is deep navy with a red camera and, when live, a blinking red LIVE. */
.home-wide-row { display: grid; gap: 10px; margin: 12px 0 4px; }
@media (min-width: 900px) { .home-wide-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.home-wide { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: 16px; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 30, 55, .12); }
.home-wide > :not(.hw-art) { position: relative; z-index: 1; }
.hw-art { position: absolute; right: -10px; bottom: -22px; z-index: 0; opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 55%); mask-image: linear-gradient(100deg, transparent 0%, #000 55%); }
.hw-art .icon { display: block; stroke-width: 1.3; }
.home-wide:hover { filter: brightness(1.05); }
.home-wide.is-give { color: #2a1f08;
  background: radial-gradient(110% 100% at 100% 0%, rgba(255, 252, 240, .45) 0%, rgba(255, 252, 240, 0) 45%), linear-gradient(100deg, var(--gold-bright) 0%, var(--gold-bright) 55%, color-mix(in srgb, var(--gold-bright) 70%, #fff) 100%); }
.home-wide.is-give .hw-icon { background: rgba(42, 31, 8, .12); color: #2a1f08; }
.home-wide.is-live { color: #fff;
  background: radial-gradient(110% 100% at 100% 0%, rgba(255, 246, 225, .22) 0%, rgba(255, 246, 225, 0) 42%), linear-gradient(100deg, #1c3252 0%, #1c3252 58%, #2b4a74 100%); }
.home-wide.is-live .hw-icon { background: #c8382c; color: #fff; box-shadow: 0 0 0 3px rgba(200, 56, 44, .25); }
.hw-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; }
.hw-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hw-text strong { font-size: 18px; letter-spacing: .01em; }
.hw-text small { font-size: 13px; opacity: .88; }
.hw-arrow { font-size: 20px; opacity: .8; }
.hw-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #c8382c; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.hw-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: hw-blink 1.1s ease-in-out infinite; }
.home-wide.is-live.is-on { animation: hw-glow 1.8s ease-in-out infinite; }
@keyframes hw-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.7); } }
@keyframes hw-glow { 0%, 100% { box-shadow: 0 1px 2px rgba(15, 30, 55, .12), 0 0 0 0 rgba(200, 56, 44, .5); } 50% { box-shadow: 0 1px 2px rgba(15, 30, 55, .12), 0 0 0 7px rgba(200, 56, 44, 0); } }
@media (prefers-reduced-motion: reduce) { .hw-dot, .home-wide.is-live.is-on { animation: none; } }
:root[data-theme="dark"] .home-wide.is-live { background: radial-gradient(110% 100% at 100% 0%, rgba(255, 246, 225, .14) 0%, rgba(255, 246, 225, 0) 42%), linear-gradient(100deg, #223a5e 0%, #223a5e 58%, #34588a 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home-wide.is-live { background: radial-gradient(110% 100% at 100% 0%, rgba(255, 246, 225, .14) 0%, rgba(255, 246, 225, 0) 42%), linear-gradient(100deg, #223a5e 0%, #223a5e 58%, #34588a 100%); } }
/* Pastors: messaging them in the app comes first, their phone and email after. */
.pastor-msg { align-self: flex-start; margin: 6px 0 4px; }
.pastor-info .pastor-contact { font-size: 12.5px; opacity: .85; }

/* ======================= Event Hubs (src/ui/event-hubs.js) ======================= */
/* The card at the top of More while an event is on: the cover behind a navy wash, a gold Schedule button. */
.eh-now-list { display: grid; gap: 10px; margin: 4px 0 14px; }
.eh-now { position: relative; overflow: hidden; border-radius: 18px; color: #fff; box-shadow: 0 2px 10px rgba(15, 30, 55, .18);
  background: linear-gradient(100deg, rgba(20, 35, 58, .96) 0%, rgba(28, 50, 82, .9) 55%, rgba(28, 50, 82, .55) 100%), var(--eh-cover, linear-gradient(135deg, #1c3252, #2b4a74)) center / cover; }
.eh-now-main { display: grid; gap: 4px; width: 100%; text-align: left; padding: 16px 16px 10px; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
.eh-now-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-bright); }
.eh-now-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; box-shadow: 0 0 0 3px rgba(255, 90, 78, .3); animation: hw-blink 1.4s ease-in-out infinite; flex: none; }
.eh-now-dot.is-dark { display: inline-block; vertical-align: middle; margin-right: 4px; }
.eh-now-title { font: 600 22px/1.15 var(--font-display); }
.eh-now-line { font-size: 14px; opacity: .95; }
.eh-now-line b { color: var(--gold-bright); font-weight: 800; margin-right: 2px; }
.eh-now-alert { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 7px 10px; border-radius: 10px; background: rgba(200, 56, 44, .92); font-size: 13px; font-weight: 600; }
.eh-now-alert .icon { flex: none; margin-top: 1px; }
.eh-now-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 14px; }
.eh-btn-gold { background: var(--gold-bright); color: #2a1f08; border-color: transparent; }
.eh-btn-gold:hover { filter: brightness(1.05); }
.eh-btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.eh-btn-live { background: #c8382c; color: #fff; border-color: transparent; gap: 7px; }
.eh-btn-live .hw-dot, .eh-cta .hw-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: hw-blink 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .eh-now-dot, .eh-btn-live .hw-dot { animation: none; } }
.eh-sheet-link { margin: 4px 0 10px; }

/* The list */
.eh-list-sec { display: grid; gap: 10px; margin-bottom: 18px; }
.eh-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; text-align: left; color: var(--ink); cursor: pointer; font: inherit; width: 100%; }
.eh-card-cover { flex: none; width: 76px; height: 76px; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .85);
  background: linear-gradient(135deg, #1c3252, #2b4a74) center / cover; }
.eh-card-cover[style] .icon { display: none; }
.eh-card-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.eh-card-text strong { font-size: 16px; line-height: 1.25; }
.eh-card-text small { font-size: 13px; color: var(--muted); }
.eh-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.eh-card-tags:empty { display: none; }
.eh-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--info-soft); color: var(--navy); }
.eh-tag.is-now { background: #c8382c; color: #fff; }
.eh-tag.is-mine { background: var(--good-soft); color: var(--good); }
.eh-tag.is-draft { background: var(--warn-soft); color: var(--warn); }

/* The hub */
.eh-tabs { margin-bottom: 12px; }
.eh-hero { border-radius: 18px; overflow: hidden; color: #fff; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(20, 35, 58, .25) 0%, rgba(20, 35, 58, .92) 70%), var(--eh-cover, linear-gradient(135deg, #1c3252, #2b4a74)) center / cover; }
.eh-hero-in { padding: 64px 18px 18px; display: grid; gap: 4px; }
.eh-hero h2 { font: 600 27px/1.12 var(--font-display); margin: 2px 0; }
.eh-hero p { margin: 0; font-size: 14.5px; opacity: .95; }
.eh-hero-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-bright); }
.eh-hero-meta { display: flex; align-items: center; gap: 6px; font-size: 13.5px !important; }
.eh-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.eh-block { margin: 0 0 18px; }
.eh-sub { display: flex; align-items: center; gap: 7px; font: 700 15px/1.3 var(--font-body); margin: 14px 0 8px; color: var(--ink); }
.eh-about { margin: 0; line-height: 1.55; }
.eh-update { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; display: grid; gap: 3px; }
.eh-update p { margin: 0; }
.eh-update small { color: var(--muted); font-size: 12px; }
.eh-update.is-urgent { border-color: color-mix(in srgb, #c8382c 45%, transparent); background: color-mix(in srgb, #c8382c 9%, var(--surface)); }
.eh-update.is-urgent p { font-weight: 600; }
.eh-update .link-btn { justify-self: start; font-size: 12.5px; }
.eh-org { margin-bottom: 16px; border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.eh-org-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.eh-org-badge { padding: 2px 9px; border-radius: 99px; background: var(--gold-soft); color: #6b4d0c; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.eh-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
@media (min-width: 700px) { .eh-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.eh-quick-tile { position: relative; overflow: hidden; display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px; min-height: 92px; border-radius: 14px; border: 0; cursor: pointer; color: #fff; font: inherit;
  background: radial-gradient(110% 100% at 100% 0%, rgba(255, 246, 225, .2) 0%, rgba(255, 246, 225, 0) 45%), linear-gradient(135deg, color-mix(in srgb, #22395c 45%, #5fa8cc), color-mix(in srgb, #22395c 30%, #7fbcd8)); }
.eh-quick-tile .quick-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); margin-bottom: 4px; }
.eh-quick-tile strong { font-size: 15px; }
.eh-quick-tile small { font-size: 12.5px; opacity: .9; }
.eh-quick-art { position: absolute; right: -10px; bottom: -14px; opacity: .2; pointer-events: none; }
.eh-quick-tile > :not(.eh-quick-art) { position: relative; }

/* Sessions */
.eh-ses-list { display: grid; gap: 8px; }
.eh-ses { --t: #22395c; display: flex; align-items: stretch; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--t); overflow: hidden; }
.eh-ses.is-now { box-shadow: 0 0 0 2px color-mix(in srgb, #c8382c 55%, transparent); }
.eh-ses.is-light { background: color-mix(in srgb, var(--surface) 70%, var(--paper)); }
.eh-ses.is-light strong { font-weight: 600; }
.eh-ses-main { flex: 1; min-width: 0; display: grid; gap: 3px; text-align: left; padding: 10px 6px 10px 12px; background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit; }
.eh-ses-main strong { font-size: 15px; line-height: 1.3; }
.eh-ses-main small { font-size: 13px; color: var(--muted); }
.eh-ses-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.eh-type { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--t, var(--navy)); }
.eh-ses-tags .eh-type { padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--t) 14%, transparent); }
.eh-ses-track { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.eh-ses-live { color: #c8382c; display: inline-flex; }
.eh-ses-sp { display: flex; align-items: center; gap: 4px; }
.eh-star { flex: none; width: 48px; display: grid; place-items: center; background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer; color: var(--muted); }
.eh-star.is-on { color: var(--gold); }
.eh-star:hover { color: var(--gold); }
.eh-day-mini { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 2px 0 4px; }
.eh-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.eh-day { flex: none; min-width: 74px; display: grid; justify-items: center; gap: 0; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.eh-day small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.eh-day strong { font-size: 16px; }
.eh-day span { font-size: 12px; color: var(--muted); }
.eh-day.is-on { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }
.eh-day.is-on small, .eh-day.is-on span { color: var(--gold-bright); }
.eh-filters { margin: 10px 0 8px; }
.eh-chip.is-on { background: var(--t); border-color: var(--t); color: #fff; }
.eh-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.eh-search-row input { flex: 1; min-width: 0; }
.eh-search-row input, .eh-search-row select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; font-size: 14px; }
.eh-slot { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.eh-slot-time { font-size: 13px; font-weight: 800; color: var(--navy); padding-top: 12px; text-align: right; }
:root[data-theme="dark"] .eh-slot-time { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eh-slot-time { color: var(--gold); } }
@media (min-width: 900px) { .eh-slot .eh-ses-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }

/* Session and speaker sheets */
.eh-ses-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.eh-ses-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.eh-ses-desc { line-height: 1.55; margin: 8px 0; }
.eh-sp-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.eh-sp-mini button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.eh-sp-mini img, .eh-sp-mini .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.eh-sp-mini span { flex: 1; min-width: 0; display: grid; }
.eh-sp-mini small { color: var(--muted); font-size: 12.5px; }
.eh-sp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.eh-sp-head > div { display: grid; gap: 2px; }
.eh-sp-big, .eh-sp-big img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; padding: 0; }
.eh-sp-sessions { display: grid; gap: 6px; }
.eh-mini-ses { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--t); background: var(--surface); cursor: pointer; color: var(--ink); font: inherit; }
.eh-mini-ses small { color: var(--muted); font-size: 12.5px; }

/* Speakers and maps */
.eh-speakers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .eh-speakers { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.eh-sp-card { display: grid; justify-items: center; gap: 3px; padding: 14px 10px; text-align: center; cursor: pointer; color: var(--ink); font: inherit; }
.eh-sp-card img, .eh-sp-ph { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; display: grid; place-items: center; }
.eh-sp-card strong { font-size: 15px; }
.eh-sp-card small { font-size: 12.5px; color: var(--muted); }
.eh-maps { display: grid; gap: 12px; }
@media (min-width: 700px) { .eh-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eh-map-card { display: grid; padding: 0; overflow: hidden; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.eh-map-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--paper); }
.eh-map-card > span { display: grid; gap: 2px; padding: 10px 12px 12px; }
.eh-map-card small { font-size: 13px; color: var(--muted); }
.eh-map-card .eh-map-tap { color: var(--navy); font-weight: 700; }
.eh-map-empty { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--muted); }
.eh-mapview { position: fixed; inset: 0; z-index: 400; background: #0e1726; color: #fff; display: flex; flex-direction: column; }
.eh-mapview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.eh-mapview-bar .icon-btn { color: #fff; }
.eh-mapview-zoom { display: flex; gap: 4px; }
.eh-mapview-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.eh-mapview-scroll img { display: block; max-width: none; min-width: 100%; height: auto; }
.eh-mapview-note { margin: 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); font-size: 14px; opacity: .9; }

/* Info */
.eh-wifi { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; }
.eh-wifi > div { flex: 1; display: grid; gap: 2px; }
.eh-wifi code { font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--info-soft); }
.eh-contact { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.eh-contact:last-child { border-bottom: 0; }
.eh-contact > span:first-child { display: grid; }
.eh-contact small { color: var(--muted); font-size: 12.5px; }
.eh-contact-btns { display: flex; gap: 6px; }
.eh-exhibitors { display: grid; gap: 8px; }
@media (min-width: 700px) { .eh-exhibitors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eh-exh { padding: 12px 14px; display: grid; gap: 4px; }
.eh-exh > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eh-exh p { margin: 0; font-size: 14px; }
.eh-info a.settings-item { text-decoration: none; color: var(--ink); }
.eh-info a.settings-item > span:last-child { margin-left: auto; color: var(--muted); }

/* The editor */
.eh-form { padding-bottom: 0; }
.eh-ed { display: flex; flex-direction: column; gap: 6px; }
.eh-ed select, .eh-ses-form select { min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; }
.eh-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eh-two > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eh-two input { width: 100%; }
.eh-radio { display: grid; gap: 8px; }
.eh-radio-opt { display: flex !important; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; margin: 0 !important; color: var(--ink) !important; }
.eh-radio-opt.is-on { border-color: var(--navy); background: var(--info-soft); }
.eh-radio-opt span { display: grid; gap: 2px; }
.eh-radio-opt small { font-weight: 400; color: var(--muted); }
.eh-ed-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.eh-ed-list li { display: flex; align-items: center; gap: 4px; border-radius: 10px; border: 1px solid var(--line); border-left: 5px solid var(--t); background: var(--surface); padding-right: 4px; }
.eh-ed-ses { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; padding: 8px 10px; background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit; }
.eh-ed-ses small { font-size: 12.5px; color: var(--muted); }
.eh-ed-item { position: relative; display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.eh-ed-item.is-col { flex-direction: column; gap: 6px; }
.eh-ed-item.is-col > div { display: flex; flex-direction: column; gap: 6px; }
.eh-ed-sp-photo { display: grid; justify-items: center; gap: 6px; flex: none; width: 112px; }
.eh-ed-sp-photo img, .eh-ed-sp-photo .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.eh-ed-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.eh-ed-fields > .btn { align-self: flex-start; }
@media (max-width: 520px) { .eh-ed-item:not(.is-col) { flex-direction: column; } .eh-ed-sp-photo { width: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } }
.eh-rows { display: flex; flex-direction: column; gap: 6px; }
.eh-rows > .btn { align-self: flex-start; }
.eh-save-bar { position: sticky; bottom: calc(var(--tabbar-h, 64px) + 6px); display: flex; align-items: center; gap: 10px; margin: 14px -14px 0; padding: 12px 14px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); z-index: 2; }
.eh-save-note { flex: 1; font-size: 13px; color: var(--muted); }
.eh-del { display: flex; gap: 6px; }
.eh-ses-form { padding: 0; }

/* Bulletin: answer an assignment right where it says "You're serving". */
.bul-answer { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }

/* Potluck (or Fellowship Lunch) this Sabbath: a warm gold banner on the bulletin, a line at the end of the order of
   service, a tag in the This Sabbath box on My Church, and "Next Sabbath is potluck" near the end of the bulletin. */
.potluck-banner { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; padding: 14px 16px; border-radius: 16px; color: #2a1f08;
  background: radial-gradient(110% 120% at 100% 0%, rgba(255, 252, 240, .5) 0%, rgba(255, 252, 240, 0) 50%), var(--gold-bright); box-shadow: 0 1px 2px rgba(15, 30, 55, .12); }
.potluck-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(42, 31, 8, .12); }
.potluck-text { display: grid; gap: 2px; min-width: 0; }
.potluck-text strong { font: 600 21px/1.2 var(--font-display); }
.potluck-text > span { font-size: 14px; line-height: 1.4; }
.order .order-potluck { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 12px; border-radius: 10px; background: var(--gold-soft); color: #5a4110; font-weight: 700; font-size: 14.5px; }
:root[data-theme="dark"] .order .order-potluck { color: var(--gold-bright); background: color-mix(in srgb, var(--gold) 18%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .order .order-potluck { color: var(--gold-bright); background: color-mix(in srgb, var(--gold) 18%, transparent); } }
.potluck-next { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); background: color-mix(in srgb, var(--gold-soft) 60%, var(--surface)); font-size: 14.5px; line-height: 1.45; }
.potluck-next .icon { flex: none; color: var(--gold); margin-top: 1px; }
.hs-potluck { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; padding: 4px 11px; border-radius: 99px; background: var(--gold-bright); color: #2a1f08; font-size: 13px; font-weight: 800; }
.potluck-card { padding: 4px 14px; }
.potluck-card.is-on { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: color-mix(in srgb, var(--gold-soft) 45%, var(--surface)); }
.potluck-card .toggle-row:last-child { border-bottom: 0; }
.potluck-card .toggle-row label > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.potluck-note { margin: 4px 0 8px; }
.meal-seg { margin: 4px 0; }
.pb-pot-card .check { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.ps-potluck { margin: 14px 0 6px; padding: 10px 12px; border: 2px solid #c79a3b; border-radius: 10px; }
.pb-potluck { display: flex; align-items: center; gap: .12in; padding: .1in .14in; border: 2px solid var(--pb-accent); border-radius: 8px; }
.pb-potluck h3 { margin: 0 0 .02in; }
.pb-potluck p { margin: 0; }
.pb-pot-icon { flex: none; display: grid; place-items: center; width: .42in; height: .42in; border-radius: 50%; background: var(--pb-soft); color: var(--pb-accent); }
.pb-potluck-next p { margin: 0; padding: .07in .12in; border: 1.5px dashed var(--pb-accent); border-radius: 6px; }
.potluck-note input { width: 100%; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 12px; font: inherit; font-size: 15px; }

/* Posts in groups (like a Teams channel with moderation): moderators start posts, everyone replies under them. */
.posts .section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.posts-rule { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.post-card { padding: 14px 14px 10px; margin-bottom: 12px; overflow: hidden; --pk: var(--navy); }
.post-card.is-announcement { padding-top: 0; border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.post-card.is-news { --pk: #1f7a6b; } .post-card.is-event { --pk: #2f6fb0; } .post-card.is-meeting { --pk: #7a4fa3; } .post-card.is-deadline { --pk: #b8660f; }
.post-banner { display: flex; align-items: center; gap: 8px; margin: 0 -14px 12px; padding: 9px 14px; background: var(--gold-bright); color: #2a1f08; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.post-who strong { font-size: 15px; }
.post-who small { color: var(--muted); font-size: 12.5px; }
.post-kind { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; color: var(--pk); background: color-mix(in srgb, var(--pk) 13%, transparent); white-space: nowrap; }
:root[data-theme="dark"] .post-kind { color: color-mix(in srgb, var(--pk) 45%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .post-kind { color: color-mix(in srgb, var(--pk) 45%, #fff); } }
.post-more { flex: none; width: 32px; height: 32px; font-size: 18px; line-height: 1; color: var(--muted); }
.post-title { font: 600 19px/1.25 var(--font-display); margin: 10px 0 2px; }
.post-card.is-announcement .post-title { font-size: 22px; }
.post-facts { display: grid; gap: 4px; margin: 8px 0 2px; font-size: 14px; }
.post-facts > span { display: flex; align-items: center; gap: 7px; }
.post-facts .icon { flex: none; color: var(--pk); }
.post-due { font-weight: 700; }
.post-due.is-soon { color: var(--warn); } .post-due.is-past { color: var(--bad); }
.post-body { margin: 8px 0 4px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.post-replies { margin: 10px -14px -10px; padding: 10px 14px 12px; background: color-mix(in srgb, var(--paper) 75%, var(--surface)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.post-more-replies { justify-self: start; font-size: 13.5px; }
.post-reply { display: flex; align-items: flex-start; gap: 8px; }
.post-reply .avatar { flex: none; margin-top: 2px; }
.post-reply-bubble { flex: 1; min-width: 0; padding: 7px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.post-reply-bubble > span { font-size: 13px; }
.post-reply-bubble small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.post-reply-bubble p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-reply .post-more { width: 28px; height: 28px; font-size: 16px; }
.post-reply-form { display: flex; align-items: center; gap: 8px; }
.post-reply-form input { flex: 1; min-width: 0; min-height: 40px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px; font: inherit; font-size: 14.5px; }
.post-reply-form .icon-btn { width: 40px; height: 40px; flex: none; }
.post-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.post-kind-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.post-kind-opt.is-on { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }
.post-form { padding: 0; }
.post-form .form-row-3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.post-form .form-row-3 input { width: 100%; min-width: 0; }
.mod-pick .chips { margin-top: 6px; flex-wrap: wrap; overflow: visible; }
@media (min-width: 900px) { .posts { max-width: 760px; } }

/* Posts for certain Church Positions only */
.pos-audience { margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.pos-audience.is-on { border-color: color-mix(in srgb, var(--navy) 40%, var(--line)); background: var(--info-soft); }
.pos-audience .check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 6px; }
.pos-audience .check > span { display: grid; gap: 2px; }
.pos-audience .check strong { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.pos-audience .check small { font-weight: 400; color: var(--muted); }
.pos-tag { text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--info-soft); color: var(--navy); font-size: 11.5px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
:root[data-theme="dark"] .pos-tag { color: var(--gold-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pos-tag { color: var(--gold-bright); } }

/* Every bottom sheet fits on the screen and scrolls inside (its top was cut off when it was taller than the screen). */
.sheet { max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.sheet > * { flex-shrink: 0; }

/* Scheduling Settings: role requests (the gear's red number) at the top of the sheet, in red. */
.sheet-alert .role-requests { margin: 0; padding: 12px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.sheet-alert .role-requests .staff-label { color: var(--bad); font-weight: 800; }
.sheet-alert .role-request { padding: 8px 0; border-top: 1px solid var(--line); }
.sheet-alert .role-request:first-child { border-top: 0; }
.row-link.has-alert .quick-icon { position: relative; }
.row-link.has-alert .quick-icon .badge { position: absolute; top: -6px; right: -8px; }
.gf-share-confirm p { margin: 0 0 12px; line-height: 1.5; }
.ev-group-link { margin-top: 6px; justify-content: center; }

/* The event form in steps: Kind, When & where, About it, Sign-ups & helpers, Who sees it. */
.ev-steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; counter-reset: s; }
.ev-steps li button { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 6px 2px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--muted); }
.ev-step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; border: 2px solid var(--line); background: var(--surface); }
.ev-step-l { font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; }
.ev-steps li.is-on .ev-step-n { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }
.ev-steps li.is-on .ev-step-l { color: var(--ink); }
.ev-steps li.is-done .ev-step-n { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.ev-sec { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.ev-sec:first-of-type { border-top: 0; }
.ev-sec-title { display: flex; align-items: center; gap: 7px; font: 700 15px/1.3 var(--font-body); margin: 0 0 2px; color: var(--ink); }
.ev-kinds { display: grid; gap: 8px; }
.ev-kind { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.ev-kind > span:last-child { display: grid; gap: 2px; }
.ev-kind small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ev-kind-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.ev-kind.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: color-mix(in srgb, var(--info-soft) 55%, var(--surface)); }
.ev-kind.is-on .ev-kind-icon { background: var(--navy); color: var(--navy-ink); }
:root[data-theme="dark"] .ev-kind.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ev-kind.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); } }
.ev-wizard-bar { position: sticky; bottom: calc(var(--tabbar-h, 64px) + 6px); display: flex; align-items: center; gap: 8px; margin: 12px -14px -14px; padding: 12px 14px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); z-index: 2; }
.ev-wizard-bar > .btn-primary, .ev-bar-split { margin-left: auto; }
.ev-bar-split { display: flex; gap: 8px; }
.ev-later { font-size: 14px; }
.ev-draft { align-items: flex-start; }
.ev-draft > div { display: grid; gap: 4px; }
.ev-draft small { color: var(--muted); }
.ev-review { display: grid; gap: 6px; margin: 0; }
.ev-review > div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 14px; }
.ev-review dt { color: var(--muted); font-weight: 700; }
.ev-review dd { margin: 0; }
.ev-rsvp-toggle { border-bottom: 0; }

/* Find a Church (find-church.js) */
.fc-body { display: grid; gap: 10px; }
.fc-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fc-search > .icon { color: var(--muted); flex: 0 0 auto; }
.fc-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 8px 0; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.fc-search input::-webkit-search-cancel-button { cursor: pointer; }
.fc-near { white-space: nowrap; }
@media (max-width: 420px) { .fc-near { padding-left: 8px; padding-right: 8px; } .fc-search { flex-wrap: wrap; } .fc-search input { flex-basis: calc(100% - 30px); } .fc-search .btn { flex: 1 1 0; justify-content: center; } }
.fc-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.fc-legend { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-key { display: inline-block; width: 11px; height: 11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin-left: 4px; }
.fc-key.is-cw { background: var(--navy, #1f3a5f); box-shadow: inset 0 0 0 3px var(--navy, #1f3a5f), inset 0 0 0 6px #d9a441; }
.fc-key.is-dir { background: #8a9bb0; }
.fc-only { font-size: 13px; margin: 0; }
.fc-note { margin: 0; }
.fc-mapwrap { position: relative; }
.fc-map { height: calc(100dvh - 300px); min-height: 380px; }
@media (min-width: 900px) { .fc-map { height: calc(100dvh - 250px); min-height: 480px; } }
.fc-loading { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 600; background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 13px; box-shadow: 0 4px 14px rgba(15,30,55,.15); }
.fc-pin { background: none; border: 0; }
.fc-pin svg { display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); transition: transform .12s; transform-origin: 50% 100%; }
.fc-pin.is-cw path { fill: #1f3a5f; stroke: #fff; stroke-width: 1.5; }
.fc-pin.is-cw circle { fill: #d9a441; }
.fc-pin.is-dir svg { width: 22px; height: 28px; margin: 8px 0 0 3px; }
.fc-pin.is-dir path { fill: #8a9bb0; stroke: #fff; stroke-width: 1.5; }
.fc-pin.is-dir circle { fill: #fff; }
.fc-pin:hover svg, .fc-pin.is-picked svg { transform: scale(1.25); }
.fc-pin.is-picked.is-cw path { fill: #c8662e; }
.fc-card { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 600; display: grid; gap: 6px; padding: 14px 14px 12px; max-width: 420px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(15,30,55,.22); }
.fc-x { position: absolute; top: 6px; right: 6px; }
.fc-name { font-size: 16.5px; padding-right: 32px; line-height: 1.25; }
.fc-line { display: flex; gap: 7px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.fc-line .icon { flex: 0 0 auto; margin-top: 2px; color: var(--muted); }
a.fc-line:hover { text-decoration: underline; }
.fc-muted { color: var(--muted); }
.fc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fc-home { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13.5px; color: var(--muted); padding: 6px 2px; }
.fcp-hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 190px; display: flex; align-items: flex-end;
  background: var(--fcp-photo, linear-gradient(135deg, #1f3a5f, #2c5a85)); background-size: cover; background-position: center; }
.fcp-hero-in { display: inline-flex; align-items: center; gap: 6px; margin: 12px; padding: 5px 12px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; background: rgba(10,20,35,.55); }
.fcp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.fcp-welcome { font-size: 15px; line-height: 1.5; padding: 12px 14px; border-left: 4px solid #d9a441; background: var(--surface-2, rgba(217,164,65,.08)); border-radius: 0 12px 12px 0; margin: 12px 0; }
.fcp-sec { margin-top: 18px; }
.fcp-sec h3 { display: flex; align-items: center; gap: 7px; font-size: 16px; margin: 0 0 8px; }
.fcp-times { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fcp-times li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fcp-times li span:first-child { flex: 1 1 auto; }
.fcp-live { font-size: 11.5px; font-weight: 700; color: #b3261e; background: rgba(179,38,30,.1); padding: 2px 8px; border-radius: 999px; }
.fcp-next { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; }
.fcp-next .icon { margin-top: 3px; flex: 0 0 auto; }
.fcp-expect { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.fcp-expect > div { padding: 10px 12px; border-top: 1px solid var(--line); }
.fcp-expect > div:first-child { border-top: 0; }
.fcp-expect dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fcp-expect dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; }
.fcp-pastors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fcp-pastors li { display: flex; align-items: center; gap: 10px; }
.fcp-pastors li span { display: grid; }
.fcp-pastors small { color: var(--muted); }
.expect-ed { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; }
.expect-ed .label { margin-top: 4px; }
.expect-chips { margin: 2px 0 4px; flex-wrap: wrap; overflow: visible; }

/* The event form: Basic Details, More Details; then add an RSVP, a registration or Event Planner (event-addons.js). */
.ev-steps.ev-steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-steps-2 .ev-step-l { font-size: 12.5px; }
.ev-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 2px; }
.ev-checks .check-row { margin: 0; }
.ev-wizard .check-row.ev-check .icon { vertical-align: -2px; color: var(--muted); }
.ev-box { display: grid; gap: 8px; padding: 12px 14px 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ev-box-title { display: flex; align-items: center; gap: 7px; margin: 0; font: 700 15px/1.3 var(--font-body); color: var(--ink); }
.ev-box .hint { margin: -2px 0 0; }
.ev-box .send-to { border: 0; padding: 0; margin: 0; }
.ev-box .send-to legend { display: flex; align-items: center; gap: 7px; font: 700 15px/1.3 var(--font-body); color: var(--ink); padding: 0; margin-bottom: 8px; }
.ev-box .serving-needs { display: grid; gap: 8px; }
.ev-page-box .ed-details { margin-top: 2px; }
.send-pos { padding: 2px 0 6px 30px; }
.ev-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 22px 16px 16px; }
.ev-done h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.ev-done-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); }
.ev-done .addon-list { width: 100%; text-align: left; }
.addon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.addon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.addon-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.addon-row.is-on .addon-icon { background: var(--good-soft); color: var(--good); }
.addon-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.addon-text small { color: var(--muted); font-size: 13px; }
.addon-rsvp { flex: 1 1 100%; display: grid; gap: 6px; padding-top: 4px; }
.addon-rsvp input { max-width: 180px; }
.addon-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.addon-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-strong, var(--line)); background: var(--surface); color: var(--ink); font: 600 13px/1.2 var(--font-body); cursor: pointer; }
.addon-chip.is-on { border-style: solid; border-color: var(--good); color: var(--good); background: var(--good-soft); }
.reg-for { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.reg-for > span { flex: 1 1 auto; display: grid; gap: 1px; min-width: 0; }
.reg-for small { color: var(--muted); font-size: 12.5px; }
.ev-rsvp { display: grid; gap: 6px; margin-top: 4px; }
.ev-rsvp .icon { vertical-align: -2px; color: var(--muted); }
.ev-rsvp-cap { display: grid; gap: 4px; padding-left: 30px; }
.ev-rsvp-cap input { max-width: 160px; }
.half-grid .half-tile.is-wide { grid-column: 1 / -1; }
.multi-select .multi-select-opt { justify-content: flex-start; text-align: left; width: 100%; margin: 0; color: var(--ink); font-size: 14.5px; }
.multi-select .multi-select-opt input[type=checkbox] { width: auto; flex: none; margin: 0; padding: 0; }
.em-all-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.em-all-head .more-sec-title { margin: 0; }
.em-all-search { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.event-sheet-tags .ev-manage-btn { background: var(--staff); border-color: var(--staff); color: #fff; }
.event-sheet-tags .ev-manage-btn:hover { filter: brightness(1.08); }

/* Sign-up Forms (signups.js) */
.sf-q { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sf-q-top { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sf-q-top select { width: auto; }
.sf-opts { display: grid; gap: 6px; padding-left: 4px; }
.sf-opt { display: flex; align-items: center; gap: 8px; }
.sf-opt input { flex: 1 1 auto; min-width: 0; }
.sf-mark { flex: none; width: 14px; height: 14px; border: 2px solid var(--line-strong, #b8c0cc); border-radius: 3px; }
.sf-mark.is-round { border-radius: 50%; }
.sf-q-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sf-q-tools .check-row { margin: 0; }
.sf-fill .sf-desc { margin: 0 0 4px; font-size: 15px; line-height: 1.5; }
.sf-meta { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.sf-done { display: flex; gap: 8px; align-items: center; }
.sf-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.sf-field { display: grid; gap: 4px; }
.sf-choices { display: grid; gap: 2px; }
.sf-choices .check-row { margin: 0; font-weight: 500; color: var(--ink); }
.sf-tally h3 { margin: 0 0 6px; font-size: 15px; }
.sf-tally ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sf-tally li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sf-row { display: grid; gap: 2px; padding: 10px 14px; border-top: 1px solid var(--line); }
.sf-row:first-child { border-top: 0; }
.sf-row small { color: var(--ink); font-size: 13px; }
.sf-row small span { color: var(--muted); }
.sf-choices .check-row, .sf-q-tools .check-row { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 15px; padding: 6px 0; }
.sf-choices .check-row input, .sf-q-tools .check-row input { width: auto; flex: none; margin: 0; padding: 0; }
.sf-tally { padding: 12px 14px; }
.sf-kind { margin-bottom: 4px; }
.sf-slot-row { display: flex; align-items: center; gap: 8px; }
.sf-slot-row > input { flex: 1 1 auto; min-width: 0; }
.sf-need { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.sf-need input { width: 64px; }
.sl-days { display: grid; gap: 14px; }
.sl-day h3 { margin: 0 0 6px; font-size: 15px; }
.sl-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.sl-row:first-child { border-top: 0; }
.sl-row.is-mine { background: var(--good-soft); }
.sl-time { flex: none; width: 96px; font-weight: 700; font-size: 13.5px; }
.sl-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.sl-main small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 380px) { .sl-time { width: 76px; font-size: 12.5px; } }
.post-hide { font-size: 13px; margin-left: auto; }
.post-head .post-hide + .post-more { margin-left: 0; }
.posts-hidden-btn { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; }
.posts-hidden { display: grid; gap: 12px; }
.post-card.is-hidden { opacity: .75; }
.em-man-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.em-man-list li { display: flex; align-items: center; gap: 10px; }
.em-man-list li strong { flex: 1 1 auto; }
.em-managers { padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 4px; }
.em-managers .em-sub { display: flex; align-items: center; gap: 6px; margin: 0; }
/* Event Manager: status marks, the plain add-on list, scheduled messages */
.em-status { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; vertical-align: middle; }
.em-status.is-pub { background: var(--good-soft); color: var(--good); }
.em-status.is-draft { background: var(--warn-soft, #fdf0d5); color: var(--warn, #9a6700); }
.em-status.is-wait { background: var(--info-soft); color: var(--navy); }
.em-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.em-legend .em-status { width: 20px; height: 20px; margin-left: 6px; }
.em-legend .em-status:first-child { margin-left: 0; }
.em-drafts { margin-bottom: 10px; }
.em-when-tabs { margin-bottom: 4px; }
.addon-plain { margin: 10px 0; }
.addon-plain .settings-item { padding-top: 10px; padding-bottom: 10px; }
.addon-plain .settings-item.is-on > .icon:first-child { color: var(--good); }
.addon-add { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--navy); }
.em-sched { padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 6px; }
.em-sched-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.em-sched-head .em-sub { display: flex; align-items: center; gap: 6px; margin: 0; }
.em-sched-form { display: grid; gap: 8px; }
.em-sched-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.em-sched-list li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.em-sched-list li.is-sent { opacity: .75; }
.em-sched-list p { margin: 2px 0; white-space: pre-wrap; }
.em-sched-when { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ev-msgs { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--info-soft); display: grid; gap: 6px; }
.ev-msgs .label { display: flex; align-items: center; gap: 5px; margin: 0; }
.ev-msgs p { margin: 0; white-space: pre-wrap; }
.ev-msgs small { display: block; color: var(--muted); font-size: 12px; }

/* Church Directory: each person as an index card, with a big family photo on top */
.person-sheet.is-card { padding-top: 0; overflow-x: hidden; }
.person-sheet.is-card .sheet-grip { position: relative; z-index: 2; }
.person-sheet.is-card .sheet-x { z-index: 3; background: rgba(255,255,255,.85); }
.pc-hero { margin: -6px -20px 0; height: min(72vw, 420px); overflow: hidden; border-radius: 22px 22px 0 0; background: var(--line); }
.pc-hero .pc-hero-img, .pc-hero img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.pc-card { position: relative; margin: 12px 0 8px; padding: 16px 16px 14px; border-radius: 6px; color: #2b2a26;
  background-color: #fffdf6;
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(80, 130, 200, .2) 27px 28px); background-position: 0 6px;
  box-shadow: 0 1px 2px rgba(30, 30, 20, .12), 0 8px 22px rgba(30, 30, 20, .12); border: 1px solid #ece4cf; }
.pc-card .pc-head { background: #fffdf6; margin: -16px -16px 14px; padding: 16px 16px 12px; border-bottom: 2px solid rgba(214, 69, 65, .55); border-radius: 6px 6px 0 0; }
.has-family-photo .pc-card { margin-top: -18px; }
.pc-head { position: relative; display: flex; align-items: flex-end; gap: 14px; min-height: 52px; }
.pc-avatar { flex: none; margin-top: -2px; }
.has-family-photo .pc-avatar { margin-top: -48px; }
.pc-avatar .person-photo, .pc-avatar .avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid #fffdf6; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pc-name { min-width: 0; padding-bottom: 2px; }
.pc-name .sheet-title { margin: 0; font-size: 23px; line-height: 1.15; color: #1f2a44; }
.pc-titles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pc-title { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: #f3e6c4; color: #6b4e12; }
.pc-card .person-about { display: block; margin-top: 3px; color: #6c665a; }
.pc-card .person-note { font-family: var(--font-display, Georgia, serif); font-style: italic; font-size: 17px; line-height: 28px; margin: 0 0 6px; color: #3b3a35; }
.pc-card .person-sec { border-top: 0; padding-top: 6px; }
.pc-card .label { color: #9a5b4c; letter-spacing: .06em; }
.pc-card .fam-list li { line-height: 28px; }
.pc-card .person-chat { margin: 0 0 10px; }
.pc-card .btn-outline { background: #fffdf6; }
:root[data-theme="dark"] .pc-card { filter: brightness(.92); }
.dir-fam { flex: none; color: var(--muted); display: inline-grid; place-items: center; }
.directory .avatar, .directory .dir-row img { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.settings-item > span.em-status { flex: 0 0 24px; display: inline-grid; flex-direction: row; }
.settings-item > span.addon-add, .settings-item > span.bar-pill { flex: none; display: inline-flex; flex-direction: row; align-items: center; }
.em-drafts .bar-pill.is-pending { background: var(--warn-soft, #fdf0d5); color: var(--warn, #9a6700); border-color: transparent; }
/* New event form: more details, how people sign up */
.ev-more { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 14px; }
.ev-more > summary { cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 12px 0; font: 700 15px/1.3 var(--font-body); list-style: none; }
.ev-more > summary small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.ev-more > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.ev-more[open] > summary::after { content: "–"; }
.ev-more[open] { padding-bottom: 12px; }
.ev-modes { display: grid; gap: 6px; }
.ev-mode { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; }
.ev-mode.is-on { border-color: var(--navy); background: var(--info-soft); }
.ev-mode input { width: auto; margin: 3px 0 0; flex: none; }
.ev-mode span { display: grid; gap: 1px; }
.ev-mode strong { color: var(--ink); font-size: 14.5px; }
.ev-mode small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ev-signup .ev-rsvp-cap { padding-left: 0; }
.ev-man-label { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.ev-man-label small { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.ev-man-chips { margin: 2px 0 4px; }
.new-event-pop .form { display: grid; gap: 8px; }
.eh-access { padding: 12px 14px; margin-top: 16px; display: grid; gap: 6px; }
.eh-access .more-sec-title { display: flex; align-items: center; gap: 6px; margin: 0; }
.em-apps-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
/* Pop-ups opened from an event page (RSVP, Save my spot) sit above the page. */
html.ep-open body > .sheet-backdrop { z-index: 80; }
.ep-actions .rsvp-btn.btn-primary { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }
.em-signup { padding: 12px 14px; margin: 10px 0; display: grid; gap: 8px; }
.em-signup .em-sub { display: flex; align-items: center; gap: 6px; margin: 0; }
.em-signup .ev-mode { width: 100%; text-align: left; font: inherit; background: var(--surface); color: var(--ink); }
.em-signup .ev-mode > .icon { margin-left: auto; align-self: center; color: var(--muted); }
.ev-mode-dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-strong, #9aa5b5); }
.ev-mode.is-on .ev-mode-dot { border-color: var(--navy); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--navy); }
.em-cap input { max-width: 120px; }
.em-form-pick select { width: 100%; }
.em-form-pick select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); }
/* Who's serving: compact lists, no profile circles */
.team-card .team-head { padding-top: 10px; padding-bottom: 8px; }
.team-card .team-head h3 { font-size: 15.5px; }
.role-group-head { padding-top: 3px; padding-bottom: 3px; font-size: 11px; }
.slot-line { gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.slot-line-main { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.slot-line-main strong { font-size: 14px; }
.slot-line-main small { font-size: 12px; }
.slot-mark { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; }
.slot-mark.is-accepted { background: var(--good-soft); color: var(--good); }
.slot-mark.is-pending { background: var(--warn-soft, #fdf0d5); color: var(--warn, #9a6700); }
.slot-mark.is-open { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); font-size: 9px; }
.slot-mark.is-declined { background: var(--line); color: var(--muted); }
.lt-save-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lt-save-row > .hint { flex: 1 1 auto; margin: 0; }
.lt-unsaved { color: var(--warn, #9a6700); font-weight: 700; }
.lt-log { padding: 10px 14px; }
.lt-log summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.lt-log ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.lt-log li { display: grid; gap: 1px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
/* Attendance: visitors stand out */
.lt-counter.is-visitors { background: color-mix(in srgb, #2e8b57 12%, var(--surface)); border-radius: 10px; }
.lt-counter.is-visitors > span:first-child { color: #23734a; font-weight: 800; }
.lt-counter.is-visitors input { color: #23734a; font-weight: 800; border-color: color-mix(in srgb, #2e8b57 40%, var(--line)); }
.dg-inline { margin: 4px 0; }
.dg-add-link .icon:last-child { color: var(--navy); }

/* Posting for a ministry: the church's full forms in a pop-up */
.popup-sheet.mp-compose { max-width: 640px; width: 100%; }
.popup-sheet.mp-compose > .form.card { box-shadow: none; border: 0; padding: 0; background: transparent; }
.mp-kicker { margin-bottom: 4px; }
.ev-assign .ev-managers { display: grid; gap: 6px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line, #e5e7eb); }
.person-chip.is-auto { opacity: .9; background: var(--info-soft); box-shadow: inset 0 0 0 1px var(--line); }
.person-chip small { margin-left: 6px; font-size: 11px; color: var(--muted, #6b7280); }
.opp-editor.is-bare { border: 0; padding: 0; margin: 8px 0 0; }
.em-mine { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft, #e6eefc); color: var(--brand, #2b5bb5); vertical-align: -3px; }
.em-status.is-lock { background: #eef0f3; color: #6b7280; }
.em-locked .settings-item { opacity: .9; }
.em-locked .settings-item > span:nth-child(2) { flex: 1; min-width: 0; }
.pray-btn .pray-n { margin-left: 8px; padding: 0 7px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 12px; font-weight: 700; }
.prayer-big-actions { grid-template-columns: 1fr !important; }

/* Compact pass: tighter spacing everywhere */
.screen-body { gap: 16px; }
.stack-lg { gap: 18px; }
.settings-item { padding: 10px 14px; }
.list-row { padding-block: 8px; }
.hint { line-height: 1.4; }
.screen-body > .hint, .section > .hint { margin-block: 0; }

/* Study: a stack of books */
.book-stack { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0 6px; }
.book-stack::after { content: ""; display: block; width: 94%; height: 8px; margin-top: 2px; border-radius: 3px; background: linear-gradient(#8a6a48, #6b4f33); box-shadow: 0 3px 6px rgba(0,0,0,.18); }
.book { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 0; border-radius: 5px 7px 7px 5px; color: #fdf6e3; font: inherit; text-align: left; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), inset 0 2px 0 rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.2); transition: transform .15s ease; }
.book:hover, .book:focus-visible { transform: translateX(6px); }
.book .book-title { flex: 1; min-width: 0; font-family: var(--serif, Georgia, serif); font-weight: 700; font-size: 15.5px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book .book-band { width: 3px; align-self: stretch; margin: 8px 0; background: rgba(240, 205, 120, .75); border-radius: 2px; box-shadow: 4px 0 0 rgba(240,205,120,.45); }
.book .book-band:last-child { box-shadow: -4px 0 0 rgba(240,205,120,.45); }
.book .book-soon { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.book .bar-pill { flex: none; }
.book.is-soon { filter: saturate(.75); }
.book-0 { width: 84%; background: linear-gradient(90deg, #5b1f24, #7a2a31 40%, #6a242a); margin-left: 3%; }
.book-1 { width: 78%; background: linear-gradient(90deg, #1f3d5b, #2b557e 40%, #234868); margin-right: 5%; }
.book-2 { width: 88%; background: linear-gradient(90deg, #2f4a2a, #3f6337 40%, #35552f); }
.book-3 { width: 80%; background: linear-gradient(90deg, #4a3320, #6b4a2c 40%, #5a3e25); margin-left: 6%; }
.book-4 { width: 76%; background: linear-gradient(90deg, #3a2a52, #523c72 40%, #463262); margin-right: 3%; }
.book-5 { width: 86%; background: linear-gradient(90deg, #5a4a1c, #7d6726 40%, #6a5720); margin-left: 1%; }
.em-locked .settings-item small { white-space: normal; }

/* ⋯ menus */
.dots-menu { position: relative; display: inline-flex; }
.dots-btn { width: 32px; height: 32px; color: var(--muted, #6b7280); }
.dots-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 190px; display: flex; flex-direction: column; padding: 6px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.dots-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 14.5px; color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; }
.dots-item:hover { background: var(--soft, #f2f4f7); }
.dots-item.is-danger { color: #b42318; }
.dots-item.is-danger.staff { color: var(--staff, #6d3fc4); }
.prayer-pinned { color: var(--brand, #2b5bb5); display: inline-flex; }

/* Opportunities page */
.opps-screen .screen-body { gap: 14px; }
.opps-hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #3f8f6b 0%, #2b6f86 55%, #2a4f8f 100%); box-shadow: 0 8px 22px rgba(42, 79, 143, .25); }
.opps-hero strong { display: block; font-family: var(--serif, Georgia, serif); font-size: 21px; line-height: 1.2; }
.opps-hero span { font-size: 13.5px; opacity: .9; }
.opps-hero-icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.18); }
.opps-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.opps-chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.opps-chip.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.opps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.oppx { --c: #2f8f5b; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.oppx::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.oppx.opp-blue { --c: #2b6cb0; } .oppx.opp-gold { --c: #c48a12; } .oppx.opp-purple { --c: #6d3fc4; } .oppx.opp-red { --c: #c0392b; } .oppx.opp-teal { --c: #128a8a; }
.oppx-main { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 10px 18px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.oppx-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.oppx-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oppx-kind { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.oppx-text strong { font-size: 16px; line-height: 1.3; }
.oppx-text small { color: var(--muted); font-size: 13px; }
.oppx-go { align-self: flex-end; margin: 0 12px 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--c); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.oppx.is-done .oppx-go { background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.opps-empty { display: grid; justify-items: center; gap: 8px; padding: 26px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.opps-mission { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; margin-top: 6px; border: 0; border-radius: 16px; font: inherit; text-align: left; cursor: pointer; color: #3b2a12;
  background: linear-gradient(135deg, #f6e7c8, #efd3a0); box-shadow: inset 0 0 0 1px rgba(150, 105, 30, .25); }
.opps-mission strong { display: block; font-family: var(--serif, Georgia, serif); font-size: 17px; }
.opps-mission small { font-size: 13.5px; opacity: .85; }
.opps-mission > span:nth-child(2) { flex: 1; }
.opps-mission-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.55); color: #8a5a10; }

/* News & announcements: a grey band above the title, so it's clear where the post starts */
.ann-row-open > .news-source { align-self: stretch; margin: -12px -14px 8px; padding: 9px 50px 8px 14px; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); border-bottom: 1px solid var(--line); }
.ann-row.has-photo .ann-row-open > .news-source { margin-top: -12px; }
.ann-row-main > .review-strip ~ .ann-row-open > .news-source { margin-top: 0; }
.row-corner .row-x { width: 28px; }
.oppx-go { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ann-row-open > .news-source { margin-right: -80px; padding-right: 130px; }
.oppx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 12px 18px; }
.oppx-foot .oppx-go { margin: 0; }
.oppx-view { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--c); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.opp-call-detail { display: block; font-size: 13px; opacity: .85; margin: -2px 0 6px; }

/* Unified profiles */
.profile-view { display: flex; flex-direction: column; gap: 14px; }
.pf-kind { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pf-gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pf-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.pf-photo-big { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; }
.pf-faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.pf-faq summary { font-weight: 700; cursor: pointer; }
.pf-faq p { margin: 6px 0 0; }
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; background: var(--surface); }
.pf-editor { gap: 10px; }
.pf-ed-sec { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pf-ed-sec > summary { display: flex; flex-direction: column; gap: 1px; padding: 12px 14px; cursor: pointer; list-style: none; }
.pf-ed-sec > summary::-webkit-details-marker { display: none; }
.pf-ed-sec > summary small { color: var(--muted); font-size: 13px; }
.pf-ed-sec[open] > summary { border-bottom: 1px solid var(--line); }
.pf-ed-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.pf-social { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; }
.pf-sched-row { display: grid; grid-template-columns: 1fr 96px 96px 32px; gap: 6px; align-items: center; }
.pf-faq-ed { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.pf-manage { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-manage-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.pf-manage-row .quick-text { flex: 1; min-width: 0; }
.pf-manage-btns { display: flex; gap: 6px; }
.cb-gv-row.is-heading { grid-template-columns: 1fr auto; }
.cb-gv-row.is-heading input { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); }
.pb-times li.pb-gv-head { display: block; border: 0; padding-top: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .82em; color: var(--pb-accent); }
.pb-times li.pb-gv-head:first-child { padding-top: 0; }
.cb-gv-row.is-heading input { flex: 1; }
.pb-shorten { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold, #c48a12) 16%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--gold, #c48a12) 55%, transparent); color: var(--ink); }
.pb-shorten > .icon { flex: none; color: var(--gold, #c48a12); margin-top: 2px; }
.pb-shorten .check { align-items: flex-start; margin: 0; }
.pb-shorten .check span { display: flex; flex-direction: column; }
.pb-shorten small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pb-flow { font-size: 14px; }

/* More → Discover (big button) */
.discover-big { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 18px; border: 0; border-radius: 18px; color: #fff; font: inherit; text-align: left; cursor: pointer;
  background: radial-gradient(130% 160% at 0% 0%, #2f8f6b 0%, #23708a 50%, #2a4f8f 100%); box-shadow: 0 8px 20px rgba(42, 79, 143, .25); }
.discover-big-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.18); }
.discover-big-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.discover-big-text strong { font-family: var(--serif, Georgia, serif); font-size: 22px; }
.discover-big-text small { font-size: 13.5px; opacity: .9; }
.more-sec-discover { margin-top: -4px; }
/* Discover page */
.disc-hero { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 20px; color: #fff; background: radial-gradient(130% 160% at 100% 0%, #2f8f6b 0%, #23708a 45%, #233f75 100%); box-shadow: 0 10px 26px rgba(35, 63, 117, .28); }
.disc-hero strong { display: block; font-family: var(--serif, Georgia, serif); font-size: 22px; line-height: 1.2; }
.disc-hero span { font-size: 13.5px; opacity: .9; }
.disc-hero-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.18); }
.disc-search { width: 100%; }
.disc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.disc-grid li.is-wide { grid-column: 1 / -1; }
.disc-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 138px; padding: 16px; border: 0; border-radius: 18px; color: #fff; font: inherit; text-align: left; cursor: pointer;
  background: linear-gradient(145deg, var(--d1), var(--d2)); box-shadow: 0 6px 16px rgba(0,0,0,.14); transition: transform .15s ease; }
.disc-card:hover { transform: translateY(-2px); }
.disc-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.2); margin-bottom: 6px; }
.disc-card strong { font-size: 17px; line-height: 1.2; position: relative; }
.disc-card small { font-size: 13px; opacity: .9; line-height: 1.35; position: relative; }
.disc-card-art { position: absolute; right: -18px; bottom: -22px; opacity: .13; pointer-events: none; }
/* Sermon Recordings */
.sr-latest { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; color: #fff; text-decoration: none; background: linear-gradient(145deg, #1f3a5f, #2b5a8a); box-shadow: 0 8px 20px rgba(31, 58, 95, .28); }
.sr-latest-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.sr-latest strong { font-family: var(--serif, Georgia, serif); font-size: 23px; line-height: 1.2; }
.sr-latest span { font-size: 14px; opacity: .92; }
.sr-latest em { font-size: 14px; opacity: .85; }
.sr-latest-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #1f3a5f !important; font-weight: 800; opacity: 1 !important; }
.sr-list { list-style: none; margin: 0; padding: 4px 0; }
.sr-row { display: flex; align-items: center; gap: 6px; padding-right: 8px; border-bottom: 1px solid var(--line); }
.sr-row:last-child { border-bottom: 0; }
.sr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 6px 11px 14px; color: var(--ink); text-decoration: none; }
.sr-play { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--navy, #1f3a5f) 12%, var(--surface)); color: var(--navy, #1f3a5f); }
.sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-text small { color: var(--muted); font-size: 13px; }
.sr-verb { flex: none; font-size: 13px; font-weight: 700; color: var(--navy, #1f3a5f); }
.disc-search, .sr-search { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); box-shadow: var(--shadow); }
.cb-gv-move { flex: none; }
.read-more.is-continue { font-weight: 700; }

/* App Statistics (Conference office) */
.stats-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stats-tile strong { font-family: var(--serif, Georgia, serif); font-size: 28px; line-height: 1.1; color: var(--navy, #1f3a5f); }
.stats-tile span { font-weight: 700; font-size: 14px; }
.stats-tile small { color: var(--muted); font-size: 12.5px; }
.stats-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stats-head select { width: auto; }
.stats-churches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stats-church { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.stats-church-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stats-church-head strong { font-size: 17px; }
.stats-use { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.stats-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.stats-nums > div { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.stats-nums dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stats-nums dd { margin: 0; font-size: 18px; font-weight: 800; }
.stats-nums dd small { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (min-width: 720px) { .stats-tiles { grid-template-columns: repeat(3, 1fr); } .stats-nums { grid-template-columns: repeat(9, 1fr); } }
/* An uploaded church logo shows at a readable size (logos often have empty space around them). */
.church-logo .custom-logo img, .custom-logo img { height: 200px; max-height: none; width: auto; max-width: min(100%, 420px); object-fit: contain; object-position: left center; }
.church-logo.is-center .custom-logo img { object-position: center; }
.pf-hero .custom-logo img, .pg-id .custom-logo img { height: 64px; }
.church-picker { display: grid; gap: 6px; }
.church-hits { list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.church-hits button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.church-hits button:hover { background: var(--soft, #f2f4f7); }
.church-hits small, .church-picked small { color: var(--muted); font-size: 13px; }
.church-none { padding: 8px 10px; }
.church-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.church-picked span { display: flex; flex-direction: column; }
.page-pick { display: grid; gap: 10px; }
.page-pick-search { position: sticky; top: 0; z-index: 2; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: 16px; }

.level-profile { margin-left: auto; font-size: 13.5px; }
.ev-webpages { margin-top: 12px; }
.ev-webpage-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ev-webpage-row input { flex: 1; min-width: 0; margin: 0; }
.ev-webpages-view { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: var(--staff-bg, #f3effa); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.opp-editor { min-width: 0; max-width: 100%; }
.opp-editor select, .opp-editor input { max-width: 100%; }
.em-signup .opp-editor:not(.is-bare) { border: 0; padding: 0; margin: 0; }

/* Home: Church Details is its own block; contact details are a plain list with bold icons. */
.church-details-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 20px; box-shadow: 0 2px 10px rgba(16, 32, 64, .06); margin-top: 22px; }
.church-details-sec .church-contact { display: block; margin: 16px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); }
.church-details-sec .church-contact li + li { border-top: 1px solid var(--line); }
.church-details-sec .church-contact a { background: none; border: 0; border-radius: 0; padding: 11px 0; gap: 14px; }
.church-details-sec .church-contact a:hover .church-contact-text { text-decoration: underline; }
.church-details-sec .church-contact-icon { width: 40px; height: 40px; background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(16, 32, 64, .18); }
.church-details-sec .church-contact-icon svg { width: 21px; height: 21px; }
.church-details-sec .church-contact-text { font-size: 15.5px; white-space: normal; overflow-wrap: anywhere; }
.pf-manage-row { flex-direction: column; align-items: stretch; gap: 10px; }
.pf-manage-top { display: flex; align-items: center; gap: 12px; }
.pf-manage-btns { flex-wrap: wrap; }
.pf-manage-btns .btn { display: inline-flex; align-items: center; gap: 5px; }
.pf-manage-search { width: 100%; margin-bottom: 10px; }
.settings-group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 4px 8px; font-weight: 700; }
/* The Event Manager button is only there for an event's managers: purple like other leadership controls. */
.ev-manage-btn { background: var(--staff-soft); border-color: var(--staff-line); color: var(--staff); }
.ev-manage-btn:hover { background: var(--staff-soft); filter: brightness(.97); }
.details-edit-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--staff-soft); border: 1px solid var(--staff-line); }
.ev-manage-btn.has-label span { font-weight: 700; font-size: 12.5px; }
.reg-find { margin-bottom: 8px; }
.reg-find-input { width: 100%; margin-bottom: 6px; }
/* "New" marks: tap to clear. */
button.new-bubble.is-btn, button.new-pill.is-btn { font-family: inherit; cursor: pointer; border: 0; }
button.new-bubble.is-btn:hover, button.new-pill.is-btn:hover { filter: brightness(1.1); }
/* More: Upcoming Assignments and My Registrations, full width. */
.more-upcoming { margin-top: 18px; }
.up-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.up-list li + li { border-top: 1px solid var(--line); }
.up-row, .up-more { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.up-row:hover, .up-more:hover { background: var(--info-soft); }
.up-date { flex: none; width: 44px; height: 46px; border-radius: 10px; background: var(--info-soft); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.up-date small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.up-date strong { font-size: 19px; }
.up-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.up-text strong { font-size: 15px; }
.up-text small { color: var(--muted); font-size: 13px; }
.up-more { justify-content: center; gap: 6px; font-weight: 700; color: var(--navy); font-size: 14px; }

/* Prayer Wall: the blue board (the app's colors). The wooden board above is kept: set AC.PRAYER_WOOD = true to use it again. */
.wood-wall.is-blue { background-color: #23406f;
  background-image: radial-gradient(120% 90% at 0% 100%, rgba(255,255,255,.14) 0%, transparent 55%), linear-gradient(180deg, #172c4f 0%, #23406f 45%, #3a6aa8 100%);
  background-size: auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow); }
.wood-wall.is-blue .ww-title { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.wood-wall.is-blue .ww-verse, .wood-wall.is-blue .ww-empty { color: #dbe6f6; text-shadow: none; }
.wood-wall.is-blue .ww-line { color: #b9cdea; }
.wood-wall.is-blue .ww-row::before { background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.6) 50%, rgba(255,255,255,.35)); box-shadow: none; }
.wood-wall.is-blue .ww-btn { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); color: #fff; }
.wood-wall.is-blue .ww-btn.is-main { background: #fff; color: #23406f; border-color: #fff; }
.wood-wall.is-blue .ww-card.is-more { background: #e7eef9; }
.wood-wall.is-blue .ww-card.is-more small { color: #2b4a7a; }
.hs-bulletin-wrap { position: relative; flex: none; display: inline-flex; }
.hs-bulletin-new { position: absolute; top: -8px; right: -8px; margin: 0 !important; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
/* Settings → Position Names */
.pn-list { list-style: none; margin: 10px 0; padding: 4px 0; }
.pn-row { display: flex; align-items: center; gap: 6px; padding: 5px 10px; }
.pn-row + .pn-row { border-top: 1px solid var(--line); }
.pn-row input { flex: 1; min-width: 0; margin: 0; }
.pn-row.is-removed input { text-decoration: line-through; opacity: .55; }
.pn-held { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--info-soft); color: var(--navy); font-weight: 700; display: inline-grid; place-items: center; font-size: 12px; }
.pn-btns { display: inline-flex; gap: 2px; flex: none; }
.pn-add { display: flex; gap: 8px; margin: 6px 0 14px; }
.pn-add input { flex: 1; min-width: 0; margin: 0; }
#pn-place { width: 100%; max-width: 100%; }
/* The demo: Member / Leadership toggle on More, and the tagline that opens Demo Views. */
.demo-toggle { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; margin-top: 12px; }
.demo-toggle-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.demo-toggle-seg { display: grid; grid-template-columns: 1fr 1fr; }
.demo-toggle-seg button { padding: 10px 8px; font-weight: 700; }
.about-brand .about-tagline-btn { color: var(--gold); font-weight: 600; font-size: 14px; }
.about-tagline-btn { display: block; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: default; }
/* Leadership Tools tiles on More: light purple (only people given leadership tools see them). */
.half-grid .half-tile.is-lead, .half-grid .half-tile.is-lead[class*="tile-hub-"] { --block: #9c84e2; --block-2: #b9a5f2; }
:root[data-theme="dark"] .half-grid .half-tile.is-lead { --block: #6f58b8; --block-2: #8a74d0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .half-grid .half-tile.is-lead { --block: #6f58b8; --block-2: #8a74d0; } }
.half-grid .half-tile.is-lead .quick-text { text-shadow: 0 1px 2px rgba(45, 25, 90, .35); }
/* Settings: rows that come with permissions stand out (purple; the Conference, Union and Division in the Conference teal). */
.settings-item.is-lead-row { background: var(--staff-soft); }
.settings-item.is-lead-row > svg:first-child { color: var(--staff); }
.settings-item.is-lead-row strong { color: var(--staff); }
.settings-item.is-region { background: color-mix(in srgb, #1d6f7a 12%, var(--surface)); }
.settings-item.is-region > svg:first-child, .settings-item.is-region strong { color: #1d6f7a; }
:root[data-theme="dark"] .settings-item.is-region > svg:first-child, :root[data-theme="dark"] .settings-item.is-region strong { color: #6cc4cf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .settings-item.is-region > svg:first-child, :root:not([data-theme="light"]) .settings-item.is-region strong { color: #6cc4cf; } }

/* ---------- Campsites (src/ui/campsites.js) ---------- */
.camp-zoom { display: grid; gap: 6px; }
.camp-zoom-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.camp-zoom-btns { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.camp-zoom-btns .icon-btn { width: 34px; height: 34px; }
.camp-zoom-box { width: 100%; min-height: min(52vh, 420px); overflow: auto; border-radius: 12px; border: 1px solid var(--line); background: #5a8c5a; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.camp-zoom-inner { min-width: 100%; }
.camp-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.camp-site polygon { stroke-width: 1.5px; cursor: default; transition: fill-opacity .12s; }
.camp-site polygon[role=button] { cursor: pointer; }
.camp-site polygon[role=button]:hover, .camp-site polygon:focus-visible { stroke-width: 3px; outline: none; }
.camp-site line { stroke: #6b0f0a; stroke-width: 2px; pointer-events: none; }
.camp-site text { fill: #10202c; font-weight: 700; pointer-events: none; }
.cs-free polygon { fill: #20b45a; fill-opacity: .42; stroke: #0f6b33; }
.cs-part polygon { fill: url(#camp-hatch); stroke: #9a6200; }
.cs-taken polygon { fill: #d13b2f; fill-opacity: .55; stroke: #7d1610; }
.cs-unpaid polygon { fill: #e8a317; fill-opacity: .6; stroke: #8a5a00; }
.cs-unpaid line { stroke: #6b4300; }
.cs-staff polygon { fill: #6a4bc4; fill-opacity: .6; stroke: #3c2582; }
.cs-staff line { stroke: #2a175f; }
.cs-held polygon { fill: #7c8796; fill-opacity: .65; stroke: #3b4350; }
.cs-held line { stroke: #2a3039; }
.cs-pick polygon { fill: #22395c; fill-opacity: .82; stroke: #f2c14e; stroke-width: 3px; }
.cs-mine polygon { fill: #1d6fd6; fill-opacity: .7; stroke: #f2c14e; stroke-width: 3px; }
.cs-off polygon { fill: transparent; stroke: transparent; }
.cs-dim polygon { fill: #ffffff; fill-opacity: .15; stroke: #ffffff; stroke-opacity: .4; }
.camp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.camp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.camp-swatch { width: 18px; height: 13px; border-radius: 3px; border: 1.5px solid; display: inline-block; position: relative; overflow: hidden; }
.camp-swatch.cs-free { background: rgba(32, 180, 90, .45); border-color: #0f6b33; }
.camp-swatch.cs-part { background: repeating-linear-gradient(45deg, rgba(224, 165, 38, .7) 0 3px, #fff 3px 6px); border-color: #9a6200; }
.camp-swatch.cs-taken, .camp-swatch.cs-unpaid, .camp-swatch.cs-staff, .camp-swatch.cs-held { background: linear-gradient(to top right, transparent 45%, #3d0b07 47% 53%, transparent 55%), linear-gradient(to top left, transparent 45%, #3d0b07 47% 53%, transparent 55%); }
.camp-swatch.cs-taken { background-color: rgba(209, 59, 47, .6); border-color: #7d1610; }
.camp-swatch.cs-unpaid { background-color: rgba(232, 163, 23, .65); border-color: #8a5a00; }
.camp-swatch.cs-staff { background-color: rgba(106, 75, 196, .65); border-color: #3c2582; }
.camp-swatch.cs-held { background-color: rgba(124, 135, 150, .7); border-color: #3b4350; }
.camp-swatch.cs-pick { background: #22395c; border-color: #f2c14e; }
.reg-camp h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; }
.camp-picker .camp-nights { padding: 12px 14px; }
.camp-nights-sum { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.camp-view-tabs { max-width: 240px; }
.camp-picks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.camp-picks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--navy); }
.camp-pick-tag { flex: none; min-width: 46px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; background: var(--navy); color: var(--navy-ink); font-weight: 800; font-size: 14px; }
.camp-pick-tag.is-big { min-width: 64px; height: 50px; font-size: 18px; }
.camp-pick-main { flex: 1; min-width: 0; display: grid; }
.camp-pick-main small { color: var(--muted); }
.camp-pick-price { font-weight: 700; }
.camp-site-facts { color: var(--muted); margin: 0 0 6px; }
.camp-runs { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.camp-runs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.camp-list section + section { margin-top: 10px; }
.camp-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.camp-list-row { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); font: inherit; }
.camp-list-row:disabled { opacity: .55; cursor: default; }
.camp-settings h3 { display: flex; align-items: center; gap: 8px; }
.camp-map-row { display: flex; gap: 8px; align-items: center; }
.camp-map-row select { flex: 1; min-width: 0; }
.camp-thumb { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
.camp-flag { color: var(--warn); font-weight: 600; }

/* the map editor (full screen) */
.camp-editor { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; }
.camp-editor-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.camp-editor-name { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); color: var(--ink); }
.camp-editor-err { margin: 8px 14px 0; }
.camp-editor-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 340px; gap: 14px; padding: 12px 14px; overflow: auto; }
.camp-editor-canvas { min-width: 0; }
.camp-editor-side { display: grid; gap: 12px; align-content: start; }
@media (max-width: 860px) { .camp-editor-body { grid-template-columns: 1fr; } }
.camp-modes { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.camp-modes .chip { display: inline-flex; align-items: center; gap: 5px; }
.camp-upload { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 20px; cursor: pointer; border: 2px dashed var(--line); }
.camp-replace { justify-self: start; cursor: pointer; }
.camp-svg.is-editing.mode-row, .camp-svg.is-editing.mode-site { cursor: crosshair; }
.cs-edit polygon { fill: #ffdd55; fill-opacity: .35; stroke: #b07a00; cursor: pointer; }
.cs-edit.is-off polygon { fill: #ffffff; fill-opacity: .25; stroke-dasharray: 4 3; }
.cs-edit.is-sel polygon { fill: #2f7bff; fill-opacity: .5; stroke: #0b3d99; stroke-width: 2.5px; }
.cs-edit text { fill: #0b1830; }
.camp-vertex { fill: #fff; stroke: #0b3d99; stroke-width: 2px; cursor: grab; }
.camp-draft { fill: rgba(47, 123, 255, .18); stroke: #2f7bff; stroke-width: 2px; stroke-dasharray: 6 4; pointer-events: none; }
.camp-draft.is-marquee { fill: rgba(255, 255, 255, .15); stroke: #fff; }
.camp-howto { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.camp-fields .form { gap: 6px; }
.camp-turn, .camp-renumber { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.camp-renumber input { width: 70px; }

/* organizers: the Sites tab */
.camp-admin-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.camp-admin-bar select { flex: 1 1 200px; min-width: 0; }
.camp-admin-bar .segmented { flex: none; width: 150px; }
.camp-asks ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.camp-asks li { display: grid; gap: 6px; font-size: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.camp-asks li:first-child { border-top: 0; padding-top: 0; }
.camp-asks h3 { display: flex; align-items: center; gap: 6px; }
.camp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.camp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.camp-table th, .camp-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.camp-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); position: sticky; top: 0; background: var(--surface); }
.camp-table tbody tr { cursor: pointer; }
.camp-table tbody tr:hover { background: var(--info-soft); }
.camp-table tr.is-free td { color: var(--muted); }
.camp-bookings { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.camp-bookings li { display: grid; gap: 4px; padding: 10px 12px; }
.camp-bookings small { color: var(--muted); }
.camp-bookings .callout { margin: 4px 0; padding: 8px 10px; font-size: 13px; }

/* campers: my site */
.camp-mine h2 { display: flex; align-items: center; gap: 8px; }
.camp-mine-site { display: grid; gap: 10px; }
.camp-mine-site + .camp-mine-site { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.camp-mine-head { display: flex; align-items: center; gap: 12px; }
.camp-mine-head > span:last-child { display: grid; }
.camp-mine-head small { color: var(--muted); }
.camp-request { border: 2px solid var(--gold-bright); background: var(--gold-soft); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.camp-request p { margin: 0; }
.camp-request-msg { font-style: italic; }
.camp-asks { padding: 14px 16px; }
/* Add an Opportunity: the first, clear step on events, announcements and stories. */
.opp-add { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--navy) 35%, var(--line)); background: var(--info-soft); }
.opp-add-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 15.5px; font-weight: 800; color: var(--navy); }
.opp-add-title small { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.opp-add-select { width: 100%; font-weight: 700; margin: 0; }
.opp-editor.is-on .opp-add { border-color: var(--navy); }
.opp-editor .opp-fields { margin-top: 10px; }
.opp-editor .opp-add-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 16px; font-weight: 800; color: var(--navy); text-transform: none; letter-spacing: 0; }
.opp-editor .opp-add-title small { width: 100%; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.ev-signup .opp-editor, .em-signup .opp-editor { border: 0; padding: 0; margin: 0; }

/* ---------- The Event Builder: a list of parts (left on a computer; "Jump to…" on a phone) and Back / Next ---------- */
.is-hidden { display: none !important; }
.evb-body { display: block; }
.evb-side { display: none; }
.evb-nav { display: flex; flex-direction: column; gap: 14px; }
.evb-group { display: flex; flex-direction: column; gap: 4px; }
.evb-group-title { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 0 4px 2px; }
.evb-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font: inherit; font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; }
.evb-item:hover { background: var(--info-soft); }
.evb-item.is-on { background: var(--staff-soft); border-color: var(--staff-line); color: var(--staff); }
.evb-jump { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--staff-line); background: var(--staff-soft); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.evb-jump strong { flex: 1; min-width: 0; color: var(--staff); }
.evb-jump-step { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.evb-jump-btn { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--staff); white-space: nowrap; }
.evb-title { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-size: 20px; }
.evb-arrows { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.evb-arrows .btn { display: inline-flex; align-items: center; gap: 4px; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evb-save-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.evb-check .settings-item small { display: block; }
.evb-empty { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.evb-jump-pop .evb-nav { gap: 12px; }
@media (min-width: 900px) {
  .evb .screen-body.evb-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1100px; }
  .evb-side { display: block; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding-right: 4px; }
  .evb-jump { display: none; }
}
/* Inside leadership-only screens (the Event Builder, registrations, the Event App editor, Leadership Tools pages,
   Position Names) everything is for leaders already, so nothing is purple: the leadership color becomes the app's navy. */
.evb, .reg-builder, .reg-dash, .reg-screen, .eh-edit, .more-hub, .pn-screen {
  --staff: var(--navy); --staff-soft: var(--info-soft); --staff-line: color-mix(in srgb, var(--navy) 30%, var(--line)); --staff-on: #fff; }
.more-hub .half-grid .half-tile.is-lead { --block: color-mix(in srgb, #22395c 45%, #5fa8cc); --block-2: color-mix(in srgb, #22395c 30%, #7fbcd8); }
/* Event Builder: the bar at the bottom (Back · Save & exit / Save draft / Publish now · Next). */
.evb-arrows { display: none; }
.evb-bar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -2px 12px rgba(15, 30, 55, .08); }
.evb-bar .btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.evb-bar-mid { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.evb-save-exit { font-weight: 800; border: 1.5px solid var(--navy) !important; color: var(--navy); }
.evb-lead { margin: -4px 0 12px; }
.evb-finish { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.evb-app-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 10px; }
.evb-app-status > span { flex: 1; display: flex; flex-direction: column; }
.evb-app-status small { color: var(--muted); }
.evb-app-status.is-on > svg { color: var(--good, #2e7d32); }
.ev-wizard.is-builder .ev-box { margin-top: 0; }
.ev-wizard.is-builder .evb-part:not(.is-hidden) { display: flex; flex-direction: column; gap: 12px; }
.ev-more-open > .hint { margin-top: 0; }
@media (max-width: 420px) { .evb-bar .btn { padding-left: 10px; padding-right: 10px; } }
/* Add-ons: each kind its own box. */
.addon-boxes { display: flex; flex-direction: column; gap: 10px; }
.addon-add { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--navy) 35%, var(--line)); background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.addon-add:hover:not(:disabled) { background: var(--info-soft); }
.addon-add:disabled { opacity: .55; cursor: default; }
.addon-add > svg:last-child { color: var(--navy); }
.addon-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--info-soft); color: var(--navy); }
.addon-icon.is-on { background: var(--navy); color: #fff; }
.addon-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.addon-text strong { font-size: 15px; color: var(--navy); }
.addon-text small { color: var(--muted); font-size: 12.5px; }
.addon-box { padding: 12px 14px; border: 1.5px solid var(--navy); }
.addon-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.addon-head strong { flex: 1; font-size: 15.5px; }
.opp-editor.is-fixed { border: 0; padding: 0; margin: 0; }
.opp-editor.is-fixed .opp-fields { margin-top: 0; }
.evb-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px); padding-bottom: 10px; }
@media (min-width: 1024px) { .evb-bar { bottom: 12px; } }
.em-row-btn { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 10px 12px; }
.em-row-btn strong { flex: none; }
.em-row-btn small { flex: 1; min-width: 0; color: var(--muted); }
.em-row-btn:hover { background: var(--info-soft); }
.evb-toggle { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 12px; border: 1.5px solid var(--line); }
.evb-toggle.is-on { border-color: var(--navy); }
.evb-toggle label { flex: 1; margin: 0; cursor: pointer; }
.evb-toggle label span { display: flex; flex-direction: column; gap: 2px; }
.evb-toggle strong { font-size: 15.5px; color: var(--navy); }
.evb-toggle small { color: var(--muted); font-size: 13px; font-weight: 500; }
.evb-publish-box { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.evb-publish-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.evb-publish-actions .btn { min-width: 140px; }
.evb-app-addon { margin-top: 10px; }
.addon-add.is-on { border-style: solid; border-color: var(--navy); }
input.is-invalid { border: 2px solid var(--bad, #c62828) !important; background: color-mix(in srgb, var(--bad, #c62828) 6%, var(--surface)) !important; }
label.is-bad { color: var(--bad, #c62828); }
.field-error { margin: -4px 0 6px; color: var(--bad, #c62828); font-weight: 700; font-size: 14px; }
.evb-plan-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.evb-plan-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; margin: 0; }
.evb-plan-item input { width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.evb-plan-item.is-on { border-color: var(--navy); background: var(--info-soft); }
.evb-plan-item.is-off { opacity: .55; cursor: default; }
.evb-todo { margin-left: auto; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft, #fbefd5); color: var(--gold, #9a6a12); }
.evb-item.is-sub { padding-left: 26px; font-size: 13px; }
/* Dark mode: navy text and borders disappear on the dark background, so the Event Builder uses light ink and a light blue instead. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .evb-item, :root:not([data-theme="light"]) .evb-toggle strong { color: var(--ink); }
  :root:not([data-theme="light"]) .evb .evb-item.is-on { color: #dfe9f8; background: #24375a; border-color: #a9c3ea; }
  :root:not([data-theme="light"]) .evb-save-exit { color: #a9c3ea; border-color: #a9c3ea !important; }
  :root:not([data-theme="light"]) .evb-toggle.is-on, :root:not([data-theme="light"]) .evb-plan-item.is-on { border-color: #a9c3ea; }
  :root:not([data-theme="light"]) .evb-plan-item input { accent-color: #a9c3ea; } }
:root[data-theme="dark"] .evb-item, :root[data-theme="dark"] .evb-toggle strong { color: var(--ink); }
:root[data-theme="dark"] .evb .evb-item.is-on { color: #dfe9f8; background: #24375a; border-color: #a9c3ea; }
:root[data-theme="dark"] .evb-save-exit { color: #a9c3ea; border-color: #a9c3ea !important; }
:root[data-theme="dark"] .evb-toggle.is-on, :root[data-theme="dark"] .evb-plan-item.is-on { border-color: #a9c3ea; }
:root[data-theme="dark"] .evb-plan-item input { accent-color: #a9c3ea; }
/* Event App → Who sees it on More: two plain choices, radio on the left. */
.eh-radio { display: flex; flex-direction: column; gap: 8px; }
.form .eh-radio-opt, .eh-radio-opt { display: flex !important; align-items: flex-start; gap: 10px; padding: 10px 12px; margin: 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; }
.eh-radio-opt.is-on { border-color: var(--navy); background: var(--info-soft); }
.form .eh-radio-opt input[type="radio"], .eh-radio-opt input[type="radio"] { flex: none; width: 18px !important; height: 18px; margin: 2px 0 0 !important; padding: 0; accent-color: var(--navy); }
.eh-radio-opt > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.eh-radio-opt strong { font-size: 14.5px; }
.eh-radio-opt small { color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* The event page is something to read, not a task to finish: on phones it stops above the tab bar so the main tabs stay. */
@media (max-width: 1023.98px) { html:has(.tabbar) .ep-page { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); } }

/* Custom titles (schools, ministries, Conference, Union, Division) */
.title-line .inline-field { display: flex; gap: 8px; align-items: center; } .title-line .inline-field input { flex: 1; min-width: 0; }
.pos-sec .pos-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-sec .pos-list .pos-people { flex: 1; min-width: 0; display: grid; gap: 1px; } .pos-sec .pos-list .pos-title { color: var(--muted); font-size: 14px; font-weight: 500; }
.pos-sec .pos-btns { display: flex; gap: 2px; } .pos-sec .pos-edit { flex: 1; display: grid; gap: 6px; }
.pn-for { margin: 0 0 6px; }
.pn-import { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; } .pn-import .file-link { position: relative; overflow: hidden; gap: 6px; display: inline-flex; flex-direction: row; align-items: center; }
.pn-paste { display: grid; gap: 8px; margin-bottom: 10px; } .pn-paste textarea { width: 100%; font: inherit; }
/* This Sabbath header: Speaker and Music share a line; the potluck tag sits next to the date. */
.hs-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.hs-kicker .hs-potluck { margin-top: 0; padding: 1px 7px; font-size: 10.5px; gap: 3px; letter-spacing: .04em; }
.hs-people { display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; font-size: 13.5px; }
.hs-person svg { margin-right: -1px; }
.hs-person { display: inline-flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.hs-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hs-row:not(.is-follow) .hs-kicker { flex-wrap: nowrap; white-space: nowrap; }
.hs-person svg { flex: none; opacity: .7; }
.more-upcoming .more-sec-title { margin-bottom: 10px; }

/* Automatic emails editor (src/ui/email-templates.js) */
.email-editor { display: grid; gap: 8px; }
.email-editor textarea { min-height: 110px; }
.email-ph .label { display: block; margin-bottom: 6px; }
.email-ph-chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 5px 10px; font: 600 12.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.email-ph-chip:hover { border-color: var(--navy); }
.email-preview { margin-top: 6px; padding: 12px; border-radius: 12px; background: #f4f1ea; color: #1d2433; }
.email-preview-subject { font-size: 13.5px; margin-bottom: 8px; word-break: break-word; }
.email-preview-subject span { font-weight: 700; color: #5b6475; margin-right: 4px; }
.email-preview-card { background: #fff; border: 1px solid #e5dfd3; border-radius: 12px; overflow: hidden; }
.email-preview-bar { background: #1f3a63; color: #fff; padding: 8px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.email-preview-card h3 { margin: 12px 14px 6px; font-size: 19px; line-height: 1.25; }
.email-preview-card p { margin: 0 14px 10px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.email-preview-card .email-preview-after { color: #7a8190; font-size: 12.5px; font-style: italic; }
.email-editor-actions { align-items: center; gap: 8px; }
.reg-emails { padding: 12px 14px; margin-top: 12px; }
.reg-email-list { list-style: none; margin: 6px 0 0; padding: 0; }
.reg-email-list .row-link { width: 100%; }
.stop-page { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.stop-card { margin: auto; }

/* Calendar: events not published yet (drafts, or set to publish later). Only their organizers see them. */
.unpub-pill { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; border: 1px dashed currentColor; }
.unpub-pill.is-draft { color: var(--warn); background: var(--warn-soft); }
.unpub-pill.is-scheduled { color: var(--muted); background: var(--paper); }
.unpub-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--warn); background: var(--warn-soft); font-size: 13.5px; }
.unpub-note.is-scheduled { border-color: var(--line); background: var(--paper); }
.unpub-note .unpub-pill { margin-left: 0; }
.cm-chip.is-unpub { opacity: .8; outline: 1.5px dashed var(--warn); outline-offset: -1.5px; }
.agenda-item.is-unpub { outline: 1.5px dashed var(--warn); outline-offset: -1.5px; }


/* ===== Dark mode: navy text ===== Navy (#22395c) is the accent text color in light mode, but in dark mode --navy is a
   dark background color, so navy text all but disappears. Every rule that colors text navy gets a light blue here
   (found by an automatic contrast check across the app, Nov 2026). Rules with their own dark colors are left alone. */
:root { --navy-text: var(--navy); }
:root[data-theme="dark"] { --navy-text: #a9c3ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --navy-text: #a9c3ea; } }
:root[data-theme="dark"] .quick-bulletin.other .quick-icon,
:root[data-theme="dark"] .chat-row-icon,
:root[data-theme="dark"] .tr-mark,
:root[data-theme="dark"] .agenda .rsvp-tag,
:root[data-theme="dark"] .week-card.is-other .week-icon,
:root[data-theme="dark"] .half-tile .quick-icon,
:root[data-theme="dark"] .row-link.more-bar.add-blocks-bar .quick-icon,
:root[data-theme="dark"] .block-state,
:root[data-theme="dark"] .follow-auto,
:root[data-theme="dark"] .rt-btn.rt-preview,
:root[data-theme="dark"] .pastor-photo.is-initials,
:root[data-theme="dark"] .gf-icon,
:root[data-theme="dark"] .reg-row-ph,
:root[data-theme="dark"] .reg-suggest .chip,
:root[data-theme="dark"] .reg-done-icon,
:root[data-theme="dark"] .ed-chips .chip,
:root[data-theme="dark"] .pg-logo.is-initials,
:root[data-theme="dark"] .lt-preview-tag,
:root[data-theme="dark"] .lt-stats strong,
:root[data-theme="dark"] .lt-slot-day strong,
:root[data-theme="dark"] .customize-icon,
:root[data-theme="dark"] .church-contact-icon,
:root[data-theme="dark"] .ev-manage-btn,
:root[data-theme="dark"] .em-stat-icon,
:root[data-theme="dark"] .eh-tag,
:root[data-theme="dark"] .eh-map-card .eh-map-tap,
:root[data-theme="dark"] .ev-kind-icon,
:root[data-theme="dark"] .addon-icon,
:root[data-theme="dark"] .em-status.is-wait,
:root[data-theme="dark"] .addon-add,
:root[data-theme="dark"] .dg-add-link .icon:last-child,
:root[data-theme="dark"] .up-date,
:root[data-theme="dark"] .up-more,
:root[data-theme="dark"] .pn-held,
:root[data-theme="dark"] .opp-add-title,
:root[data-theme="dark"] .opp-editor .opp-add-title,
:root[data-theme="dark"] .addon-add > svg:last-child,
:root[data-theme="dark"] .addon-text strong,
:root[data-theme="dark"] .sr-verb,
:root[data-theme="dark"] .stats-tile strong { color: var(--navy-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quick-bulletin.other .quick-icon,
  :root:not([data-theme="light"]) .chat-row-icon,
  :root:not([data-theme="light"]) .tr-mark,
  :root:not([data-theme="light"]) .agenda .rsvp-tag,
  :root:not([data-theme="light"]) .week-card.is-other .week-icon,
  :root:not([data-theme="light"]) .half-tile .quick-icon,
  :root:not([data-theme="light"]) .row-link.more-bar.add-blocks-bar .quick-icon,
  :root:not([data-theme="light"]) .block-state,
  :root:not([data-theme="light"]) .follow-auto,
  :root:not([data-theme="light"]) .rt-btn.rt-preview,
  :root:not([data-theme="light"]) .pastor-photo.is-initials,
    :root:not([data-theme="light"]) .gf-icon,
  :root:not([data-theme="light"]) .reg-row-ph,
  :root:not([data-theme="light"]) .reg-suggest .chip,
  :root:not([data-theme="light"]) .reg-done-icon,
  :root:not([data-theme="light"]) .ed-chips .chip,
  :root:not([data-theme="light"]) .pg-logo.is-initials,
    :root:not([data-theme="light"]) .lt-preview-tag,
  :root:not([data-theme="light"]) .lt-stats strong,
  :root:not([data-theme="light"]) .lt-slot-day strong,
  :root:not([data-theme="light"]) .customize-icon,
  :root:not([data-theme="light"]) .church-contact-icon,
  :root:not([data-theme="light"]) .ev-manage-btn,
  :root:not([data-theme="light"]) .em-stat-icon,
  :root:not([data-theme="light"]) .eh-tag,
  :root:not([data-theme="light"]) .eh-map-card .eh-map-tap,
  :root:not([data-theme="light"]) .ev-kind-icon,
  :root:not([data-theme="light"]) .addon-icon,
  :root:not([data-theme="light"]) .em-status.is-wait,
  :root:not([data-theme="light"]) .addon-add,
  :root:not([data-theme="light"]) .dg-add-link .icon:last-child,
  :root:not([data-theme="light"]) .up-date,
  :root:not([data-theme="light"]) .up-more,
  :root:not([data-theme="light"]) .pn-held,
  :root:not([data-theme="light"]) .opp-add-title,
  :root:not([data-theme="light"]) .opp-editor .opp-add-title,
  :root:not([data-theme="light"]) .addon-add > svg:last-child,
  :root:not([data-theme="light"]) .addon-text strong,
  :root:not([data-theme="light"]) .sr-verb,
  :root:not([data-theme="light"]) .stats-tile strong { color: var(--navy-text); }
}
/* Other fixed colors that were too dark on the dark background (same contrast check). */
:root[data-theme="dark"] .pray-btn.is-on { color: #0d2418; }
:root[data-theme="dark"] .media-scope.is-guides { color: var(--gold); }
:root[data-theme="dark"] .pb-choice.is-on { background: #a9c3ea; border-color: #a9c3ea; color: #10233f; }
:root[data-theme="dark"] .lt-counter.is-visitors > span:first-child, :root[data-theme="dark"] .lt-counter.is-visitors input { color: var(--good); }
:root[data-theme="dark"] .oppx-kind, :root[data-theme="dark"] .oppx-view { color: color-mix(in srgb, var(--c) 55%, white); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pray-btn.is-on { color: #0d2418; }
  :root:not([data-theme="light"]) .media-scope.is-guides { color: var(--gold); }
  :root:not([data-theme="light"]) .pb-choice.is-on { background: #a9c3ea; border-color: #a9c3ea; color: #10233f; }
  :root:not([data-theme="light"]) .lt-counter.is-visitors > span:first-child, :root:not([data-theme="light"]) .lt-counter.is-visitors input { color: var(--good); }
  :root:not([data-theme="light"]) .oppx-kind, :root:not([data-theme="light"]) .oppx-view { color: color-mix(in srgb, var(--c) 55%, white); }
}
/* Event Builder: a step that takes its details from the event says so instead of asking again. */
.reg-from-event { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--info-soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.reg-from-event svg { flex: none; margin-top: 2px; color: var(--navy-text, var(--navy)); }

/* Registration page: the campsite row opens a second window with the prices and the map (piece 2 of the events rework). */
.reg-camp-row .reg-option-main strong { display: inline-flex; align-items: center; gap: 6px; }
.reg-camp-sheet { max-width: 760px; }
.reg-camp-sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); display: flex; justify-content: flex-end; padding: 12px 0 4px; background: var(--surface); border-top: 1px solid var(--line); }
.reg-camp-sheet .sheet-title { display: flex; align-items: center; gap: 8px; }
.camp-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.camp-prices li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.camp-prices li span { color: var(--muted); text-align: right; }
@media (min-width: 720px) { .reg-camp-sheet-wrap, .sheet-backdrop:has(.reg-camp-sheet) { align-items: center; } .reg-camp-sheet { border-radius: 22px; } }

/* Event Builder: What to Add in two parts, and the Publish page's "What becomes visible when". */
.evb-plan-head { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.evb-plan-head:first-of-type { margin-top: 4px; }
.evb-visible { margin-top: 14px; }
.evb-vis-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.evb-vis-list li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.evb-vis-list li:first-child { border-top: 0; }
.evb-vis-list li.is-past { opacity: .6; }
.evb-vis-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--navy-text, var(--navy)); border: 1px solid var(--line); }
.evb-vis-text { display: grid; gap: 2px; min-width: 0; }
.evb-vis-text small { color: var(--muted); }

/* Last year's campers first: organizer settings and the public banner. */
.reg-returning { margin-top: 14px; }
.reg-ret-sub { font-size: 15px; margin: 14px 0 4px; display: flex; align-items: center; gap: 8px; }
.reg-ret-row { display: grid; gap: 6px; }
.reg-ret-row .inline-field select { flex: 1; min-width: 0; }
.reg-ret-file { position: relative; overflow: hidden; cursor: pointer; }
.reg-ret-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.reg-ret-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.reg-ret-list li { display: grid; grid-template-columns: 70px 1fr; gap: 2px 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.reg-ret-list li:first-child { border-top: 0; }
.reg-ret-list li small { grid-column: 2; color: var(--muted); }
.reg-returning-banner { display: grid; gap: 10px; border-left: 4px solid var(--gold, #c9a227); }
.reg-returning-banner h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0; }
.reg-returning-banner p { margin: 0; }
.reg-returning-banner .inline-field input { flex: 1; min-width: 0; }

/* Event Builder → Managers & Volunteers: Registration helpers as one tidy card (no box inside a box), readable in dark mode. */
.evb-reghelpers { padding: 14px 16px; display: grid; gap: 8px; margin-top: 14px; }
.evb-reghelpers .ev-box-title { margin: 0; }
.evb-reghelpers .reg-helpers { border: 0; background: transparent; padding: 0; gap: 10px; }
.evb-reghelpers .reg-helpers .staff-label { display: none; }
.evb-reghelpers .reg-helpers .hint { margin: 0; }
.evb-reghelpers .inline-field { align-items: stretch; max-width: 560px; }
.evb-reghelpers .inline-field .btn { flex: none; white-space: nowrap; }
.evb-reghelpers { --staff: var(--navy-text, var(--navy)); --staff-soft: var(--surface); --staff-line: var(--line); }

/* Event Builder: autosave status and preview buttons in the header. */
.evb-head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.evb-save-state { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.evb-save-state.is-saved { color: var(--good, #2f7d4f); }
.evb-save-state.is-fix { color: var(--danger, #b3261e); }
.evb-preview { white-space: nowrap; }
@media (max-width: 600px) { .evb-save-state { display: none; } .evb-head-tools .btn { padding: 6px 10px; } }

/* 1. Basics: managers and volunteer spots, compact. */
.ev-people-compact { display: grid; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ev-pc-row { display: grid; gap: 6px; }
.ev-pc-row .label small { font-weight: 400; color: var(--muted); }
.ev-people-compact .ev-man-chips { align-items: center; }
.ev-pc-add { flex: 1 1 200px; min-width: 180px; }
.ev-pc-add input { padding: 6px 10px; border-radius: 999px; font-size: 14px; }
.ev-contact-pick { display: grid; gap: 4px; margin-bottom: 14px; }
.evb-box-hint { display: flex; gap: 6px; align-items: flex-start; }

/* What becomes visible when: a padded card; each row icon · text · Change. */
.evb-visible { padding: 16px 18px; }
.evb-visible .ev-box-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.evb-vis-list li { padding: 11px 0; }
.evb-vis-text strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.evb-vis-text small { font-size: 13px; line-height: 1.35; }
.evb-vis-list .link-btn { white-space: nowrap; font-size: 14px; }

/* Publish & Save: "When things open and close", decided here, grouped. */
.evb-when { padding: 16px 18px; margin-top: 14px; display: grid; gap: 6px; }
.evb-when .ev-box-title { display: flex; align-items: center; gap: 8px; margin: 0; }
.evb-when > .hint { margin: 0 0 4px; }
.evb-when-group { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; display: grid; gap: 10px; }
.evb-when-group h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.evb-when-group > .hint { margin: 0; }
.evb-when-row { display: grid; grid-template-columns: minmax(150px, 210px) auto 1fr; align-items: center; gap: 6px 12px; }
.evb-when-label { font-weight: 600; font-size: 14px; }
.evb-when-seg { width: auto; }
.evb-when-seg button { white-space: nowrap; padding: 6px 12px; font-size: 13.5px; }
.evb-when-row input[type=datetime-local] { max-width: 240px; padding: 7px 10px; }
.evb-when-help { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.evb-when-row .check-row { grid-column: 1 / -1; }
.evb-when-row > .evb-when-label + input { grid-column: 2 / -1; }
.evb-when-row > .form-error { grid-column: 1 / -1; margin: 0; }
.evb-when-item { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.evb-when-item > strong { font-size: 14.5px; }
.evb-when-fixed { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.evb-when-note { margin: 0; }
.evb-publish-box { padding: 16px 18px; margin-top: 14px; display: grid; gap: 8px; }
.evb-pub-status { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
@media (max-width: 720px) {
  .evb-when-row { grid-template-columns: 1fr; }
  .evb-when-row > .evb-when-label + input { grid-column: auto; }
  .evb-when-row input[type=datetime-local] { max-width: none; }
}

/* Publish & Save in four parts: special registration, registration, Event App, event visibility (+ who sees it). */
.evb-when-wrap { display: grid; gap: 0; }
.evb-when .ev-box-title small { font-weight: 400; margin-left: 4px; }
.evb-special-add { display: flex; flex-wrap: wrap; gap: 8px; }
.evb-special { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.evb-special-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.evb-pct { display: inline-flex; align-items: center; gap: 8px; grid-column: 2 / -1; }
.evb-pct input { width: 76px; padding: 7px 10px; }
.evb-when-row > .evb-when-fixed { grid-column: 2 / -1; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.evb-sales-toggle { justify-self: start; }
.evb-sales { display: grid; gap: 10px; }
.evb-visibility + div .evb-part > .ev-box, .evb-visibility + div .send-to { margin-top: 0; }
.evb-inorder { padding: 12px 16px; margin-top: 14px; }
.evb-inorder summary { cursor: pointer; font-weight: 600; }
.evb-inorder .evb-visible { border: 0; padding: 0; margin: 8px 0 0; box-shadow: none; background: transparent; }
.evb-inorder .evb-visible > .ev-box-title { display: none; }
@media (max-width: 720px) { .evb-pct, .evb-when-row > .evb-when-fixed { grid-column: auto; } }

/* Tickets that come with a campsite. */
.reg-ticket-site { display: grid; gap: 6px; padding-top: 6px; }
.reg-ticket-kinds { display: grid; gap: 6px; }
.reg-ticket-kinds .chip input { margin: 0 4px 0 0; }
.reg-incl { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-text, var(--navy)); }
.reg-incl-need { color: var(--warn, #9a6b00); font-weight: 600; }
.reg-early-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-left: 4px solid var(--gold, #c9a227); margin: 0; }
.evb-when-row { grid-template-columns: minmax(120px, 190px) auto minmax(0, 1fr); }
.evb-when-row input[type=datetime-local] { min-width: 0; width: 100%; max-width: 240px; }
.evb-when-item .evb-when-seg button { padding: 6px 10px; }
@media (max-width: 1100px) { .evb-when-item .evb-when-row { grid-template-columns: 1fr; } .evb-when-item .evb-when-row input[type=datetime-local] { max-width: none; } }

/* Preview from the Event Builder, and the save state next to Next. */
.preview-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--gold, #c9a227); color: #1a1a1a; font-size: 14px; }
.preview-bar .btn-primary { background: #1a2b46; color: #fff; border-color: #1a2b46; }
.reg-preview-done { display: grid; gap: 10px; }
.reg-preview-done h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; }
.evb-bar-state { margin-left: auto; margin-right: 10px; }

/* Add More Details → Contacts; Give Assignments; the event page's contacts and "Your assignment". */
.ev-contacts { display: grid; gap: 10px; margin-bottom: 14px; }
.ev-contact { padding: 12px 14px; display: grid; gap: 8px; }
.ev-contact-top { display: flex; gap: 8px; align-items: center; }
.ev-contact-title { flex: 1; min-width: 0; font-weight: 600; }
.ev-contact-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-contact-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-contact-pick-row > :first-child { flex: 1 1 220px; }
.ev-contact-typed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .ev-contact-typed { grid-template-columns: 1fr; } }
.ev-teams { display: grid; gap: 12px; }
.ev-team { padding: 12px 14px; display: grid; gap: 10px; }
.ev-team-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
@media (max-width: 640px) { .ev-team-add { grid-template-columns: 1fr; } }
.em-teams { padding: 12px 16px; display: grid; gap: 6px; }
.em-teams p { margin: 0; }
.em-teams small, .ep-my-teams small { color: var(--muted); margin-left: 6px; }
.em-list-head { justify-content: space-between; align-items: center; }
.ep-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ep-contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.ep-contact-list li:first-child { border-top: 0; }
.ep-contact-list li > span:first-child { display: grid; }
.ep-contact-list small { color: var(--muted); }
.ep-contact-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* Add More Details → Speakers / Schedule: the Event Guide's editors inside the Event Builder. */
.ev-guide-ed { display: grid; gap: 10px; }
.ev-guide-ed > .hint { margin: 0; }

/* Automatic update from a Conference, Union or Division (src/ui/level-update.js) */
.lu-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.lu-item { display: grid; gap: 4px; width: 100%; text-align: left; padding: 14px; cursor: pointer; font: inherit; color: inherit; }
.lu-item strong { font-size: 1.05rem; }
.lu-photo { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.lu-kind { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-ink, #a86f12); }

.pilot-note { margin: 0 0 12px; }

/* Support thermometers (src/ui/support-admin.js; the public page draws its own) */
.thermo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.thermo { display: flex; gap: 12px; align-items: flex-end; padding: 12px; border: 1px solid var(--line, #e5dfd3); border-radius: 14px; background: var(--card, #fff); }
.thermo-tube { position: relative; width: 26px; height: 150px; border-radius: 13px; background: #eee7da; overflow: hidden; flex: none; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
.thermo-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#e9a23b, #c8553d); border-radius: 13px; transition: height .6s ease; }
.thermo-text { display: grid; gap: 2px; min-width: 0; }
.thermo-big { font-size: 1.4rem; font-weight: 800; }
@media (max-width: 420px) { .thermo-row { grid-template-columns: 1fr; } }
