/* Prayer Room MBBE Dammam
   Idea: Sunday morning. Bright white pages, sunshine yellow, a lively blue for actions,
   and coral, mint and sun for the request types. */

@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  --sun: #ffcf3f;
  --sun-soft: #fff6d4;
  --indigo: #2f5cff;     /* primary action blue */
  --indigo-2: #1e45e6;   /* hover */
  --blue-soft: #e8eeff;
  --mist: #f5f8ff;
  --paper: #ffffff;
  --line: #e3e8f5;
  --ink: #1b2240;
  --ink-2: #4f5878;
  --ink-3: #8790ad;
  --candle: #ff8a3d;     /* flame orange */
  --candle-soft: #fff0e3;
  --t-thanks: #d99300;  --t-thanks-bg: #fff4cf;
  --t-general: #2f5cff; --t-general-bg: #e8eeff;
  --t-healing: #f0476a; --t-healing-bg: #ffe8ed;
  --t-outreach: #0d9488; --t-outreach-bg: #dcf6f2;
  --t-unspoken: #7b5cf0; --t-unspoken-bg: #efeaff;
  --ok: #0f9d6e; --ok-bg: #defaef;
  --err: #d6334f; --err-bg: #ffe8ec;
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sheet: 28px;
  --r-card: 20px;
  --r-ctl: 14px;
  --tabbar-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--mist); }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 16.5px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
a { color: var(--indigo-2); }
:focus-visible { outline: 3px solid var(--candle); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--ink-3); }
.opt { color: var(--ink-3); font-weight: 400; font-size: .88em; margin-left: .25em; }

/* ---------- Top bar & tab bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand .logo { color: var(--indigo); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-text small { font-size: .74rem; color: var(--indigo); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: none; gap: 4px; align-items: center; }
.topnav a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; }
.topnav a:hover { color: var(--ink); background: var(--mist); }
.topnav a.on { background: var(--indigo); color: #fff; }

.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
  color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.tabbar .ic { width: 24px; height: 24px; }
.tabbar a.on { color: var(--indigo); }
.tabbar a.on .ic { stroke: var(--indigo); fill: var(--blue-soft); }

/* ---------- Layout ---------- */
.wrap { max-width: 600px; margin: 0 auto; padding: 22px 18px calc(var(--tabbar-h) + 40px); }
.wrap-wall { max-width: 1040px; }
.wrap-admin { max-width: 1040px; padding-bottom: 60px; }
.title { font-size: clamp(1.65rem, 6vw, 2.1rem); }
.lead { color: var(--ink-2); font-size: 1.04rem; max-width: 46ch; }
.actions { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: var(--r-ctl); background: var(--indigo); color: #fff; font: 700 1rem var(--body);
  text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--indigo-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-lg { min-height: 56px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 12px; }
.btn-quiet { background: transparent; color: var(--indigo); }
.btn-quiet:hover { background: var(--blue-soft); }
.btn-outline { background: #fff; color: var(--indigo); box-shadow: inset 0 0 0 1.5px var(--indigo); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-danger { background: #fff; color: var(--err); box-shadow: inset 0 0 0 1.5px #f1bcc6; }
.btn-danger:hover { background: var(--err-bg); }
.btn-candle { background: var(--sun); color: var(--ink); }
.btn-candle:hover { background: #ffc21a; }

.alert { border-radius: var(--r-ctl); padding: 12px 16px; margin: 0 0 16px; font-weight: 500; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }
.field-err { color: var(--err); font-weight: 500; margin: -4px 0 12px; }

/* ---------- Gate ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; background: var(--sun); }
.gate-sky { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px 28px 40px; color: var(--ink);
  position: relative; overflow: hidden; background: var(--sun); }
/* playful sun-day shapes */
.gate-sky::before, .gate-sky::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.gate-sky::before { width: 260px; height: 260px; right: -70px; top: -60px; background: #ffe58a; box-shadow: -170px 120px 0 -95px #ff8f8f, -40px 230px 0 -105px #7ad7b8; }
.gate-sky::after { width: 120px; height: 120px; left: -40px; top: 90px; background: #a9c0ff; }
.gate-sky > * { position: relative; }
.gate-glow { position: relative; width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 26px; }
.gate-glow::before { content: ""; position: absolute; inset: -30px; border-radius: 50%;
  background: #fff; border-radius: 30px; inset: 0; box-shadow: 0 12px 30px rgba(217,147,0,.28); }
.gate-glow .logo { position: relative; color: var(--indigo); }
.gate-glow .logo-flame { transform-origin: 20px 31px; animation: flicker 3.2s ease-in-out infinite; }
.gate-sky h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: .95; margin: 0; }
.gate-church { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--indigo); margin: 8px 0 26px; font-weight: 700; letter-spacing: -0.01em; }
.gate-verse { margin: 0; max-width: 34ch; color: #4a3d12; font-size: 1rem; line-height: 1.6; }
.gate-verse cite { display: block; margin-top: 6px; font-style: normal; font-size: .82rem; color: #7a6420; }
.sheet { background: var(--paper); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 28px 24px max(28px, env(safe-area-inset-bottom)); }
.gate-sheet { width: 100%; }
.gate-sheet form { max-width: 420px; margin: 0 auto; }
.gate-label { display: block; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.code-input { display: block; width: 100%; height: 60px; padding: 0 16px; margin-bottom: 14px; border: 2px solid var(--line); border-radius: 16px;
  font: 700 1.4rem var(--body); letter-spacing: .2em; text-align: center; text-transform: uppercase; color: var(--ink); background: var(--mist); }
.code-input::placeholder { letter-spacing: .02em; font-weight: 500; text-transform: none; color: var(--ink-3); }
.code-input:focus { outline: none; border-color: var(--indigo); background: #fff; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.04, .97) rotate(-1.5deg); }
  55% { transform: scale(.97, 1.05) rotate(1deg); } 80% { transform: scale(1.02) rotate(-.5deg); } }

@media (min-width: 760px) {
  .gate { flex-direction: row; }
  .gate-sky { justify-content: center; padding: 64px; }
  .gate-sheet { display: flex; align-items: center; width: 46%; max-width: 560px; border-radius: 0; padding: 48px; }
  .gate-sheet form, .gate-sheet .alert { width: 100%; }
}

/* ---------- Forms ---------- */
.field { display: block; margin: 0 0 18px; font-weight: 600; font-size: .97rem; border: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.help { display: block; font-weight: 400; color: var(--ink-3); font-size: .86rem; margin-top: 6px; }
input:not([type=radio]):not([type=checkbox]):not(.code-input), select, textarea {
  display: block; width: 100%; margin-top: 7px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-ctl);
  background: #fff; color: var(--ink); font: 400 1rem var(--body); appearance: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo) !important; box-shadow: 0 0 0 4px var(--blue-soft); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238586a3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; padding-right: 42px; }
.group { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 16px 4px; margin-bottom: 18px; }
.group .field:last-child { margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; font-weight: 500; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .95rem; }
.chip input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--candle); outline-offset: 2px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--mist); border-radius: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27,34,64,.14); }
.seg input:focus-visible + span { outline: 3px solid var(--candle); }

.switch { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; position: relative; width: 48px; height: 28px; border-radius: 999px; background: #d5dbee; transition: background .2s; margin-top: 1px; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--indigo); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--candle); outline-offset: 2px; }
.switch-text small { display: block; font-weight: 400; color: var(--ink-3); font-size: .86rem; }

.vis { display: grid; gap: 10px; }
.vis-opt { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; font-weight: 500; }
.vis-opt input { position: absolute; opacity: 0; }
.vis-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--mist); color: var(--ink-2); }
.vis-opt strong { display: block; font-weight: 700; }
.vis-opt small { color: var(--ink-3); font-size: .88rem; }
.vis-opt:has(input:checked) { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }
.vis-opt:has(input:checked) .vis-ic { background: var(--indigo); color: #fff; }
.vis-opt:has(input:focus-visible) { outline: 3px solid var(--candle); outline-offset: 2px; }

/* ---------- Request steps ---------- */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 18px; }
.progress span { height: 5px; border-radius: 999px; background: #dde3f3; transition: background .3s; }
#reqForm[data-step="1"] .progress span:nth-child(-n+1),
#reqForm[data-step="2"] .progress span:nth-child(-n+2),
#reqForm[data-step="3"] .progress span { background: var(--indigo); }
.step-of { color: var(--ink-3); font-size: .88rem; font-weight: 600; margin: 0 0 4px; }
.link-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px -6px; padding: 6px; border: 0; background: none;
  color: var(--indigo-2); font: 600 .95rem var(--body); cursor: pointer; }

.type-cards { display: grid; gap: 12px; margin-top: 20px; }
.type-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r-card); cursor: pointer; transition: border-color .15s, transform .15s; }
.type-card:hover { border-color: #c9d3f2; box-shadow: 0 6px 18px rgba(47,92,255,.08); }
.type-card:active { transform: scale(.99); }
.type-card input { position: absolute; opacity: 0; }
.type-card:has(input:checked) { border-color: var(--indigo); }
.type-card:has(input:focus-visible) { outline: 3px solid var(--candle); outline-offset: 2px; }
.type-card .tdot { width: 56px; height: 56px; border-radius: 16px; }
.type-card .tdot .ic { width: 28px; height: 28px; }
.tc-text strong { display: block; font-family: var(--display); font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.tc-text small { color: var(--ink-2); font-size: .93rem; }

.tdot { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.tdot.t-thanksgiving { background: var(--t-thanks-bg); color: var(--t-thanks); }
.tdot.t-general { background: var(--t-general-bg); color: var(--t-general); }
.tdot.t-healing { background: var(--t-healing-bg); color: var(--t-healing); }
.tdot.t-outreach { background: var(--t-outreach-bg); color: var(--t-outreach); }
.tdot.t-unspoken { background: var(--t-unspoken-bg); color: var(--t-unspoken); }
article.t-outreach .pcard-ill { color: var(--t-outreach); }
article.t-unspoken .pcard-ill, article.t-unspoken .pcard-for { color: var(--t-unspoken); }

.tc-check { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: all .15s; }
.tc-check .ic { width: 16px; height: 16px; stroke-width: 3; }
.type-card:has(input:checked) .tc-check { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.type-card:has(input:checked) { box-shadow: inset 0 0 0 1px var(--indigo); }
.part { border-radius: var(--r-card); padding: 16px 16px 4px; margin-bottom: 16px; border: 1px solid var(--line); background: #fff; }
.part[hidden] { display: none; }
.part-thanksgiving { background: var(--t-thanks-bg); border-color: #f6e2a6; }
.part-general { background: var(--t-general-bg); border-color: #cfdaff; }
.part-healing { background: var(--t-healing-bg); border-color: #f6cfd9; }
.part-outreach { background: var(--t-outreach-bg); border-color: #b5ebe3; }
.part-unspoken { background: var(--t-unspoken-bg); border-color: #d9cffd; }
.part-note { margin: -4px 0 14px; color: var(--ink-2); }
.part-head { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.part-head .tdot { background: #fff; width: 36px; height: 36px; border-radius: 11px; }
.part-head .tdot .ic { width: 20px; height: 20px; }

.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 18px; }
.review dl { margin: 0; }
.review dt { color: var(--ink-3); font-size: .85rem; font-weight: 600; padding-top: 14px; }
.review dd { margin: 2px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.review dd:last-child { border-bottom: 0; }

/* ---------- Thank you ---------- */
.done { padding: 18px 0 6px; }
.done-light { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; margin-bottom: 18px;
  background: var(--sun); color: var(--candle); box-shadow: 0 10px 26px rgba(217,147,0,.3); transform: rotate(-6deg); }
.done-light .ic { width: 36px; height: 36px; fill: var(--candle); stroke: var(--candle); }
.scripture { margin: 22px 0; padding: 20px 22px; border-radius: var(--r-card); background: var(--blue-soft); color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.scripture cite { display: block; margin-top: 8px; font-style: normal; font-size: .84rem; color: var(--indigo); font-weight: 600; }
.keep { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.keep h2 { font-size: 1.2rem; }
.keep p { color: var(--ink-2); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { margin: 0 !important; font-size: .85rem !important; background: var(--mist) !important; }

/* ---------- Prayer Wall ---------- */
.wall-hero { padding: 4px 0 8px; }
.lit-total { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 8px 14px; border-radius: 999px;
  background: var(--sun-soft); color: #6b4d00; font-weight: 700; font-size: .92rem; }
.lit-total .ic { fill: var(--candle); stroke: var(--candle); }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 16px -18px 14px; padding: 2px 18px 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters a { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-2);
  text-decoration: none; font-weight: 600; font-size: .92rem; }
.filters a.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.filters a small { opacity: .7; margin-left: 2px; }

.wall { display: grid; gap: 14px; }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 18px 14px; }
.pcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pcard-head > div { flex: 1; min-width: 0; }
.pcard-type { margin: 0; font-weight: 700; font-size: .95rem; }
.pcard-who { margin: 0; color: var(--ink-3); font-size: .86rem; }
.pcard-for { font-size: 1.3rem; margin: 0 0 2px; }
.pcard-ill { margin: 0 0 8px; color: var(--t-healing); font-weight: 600; font-size: .92rem; }
.pcard-topic { margin: -2px 0 6px; color: var(--t-general); font-weight: 700; font-size: .95rem; }
.pcard-body { margin: 0 0 12px; white-space: normal; word-break: break-word; font-size: 1.02rem; }
.pcard-foot { display: flex; justify-content: flex-end; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2);
  font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tag .ic { width: 14px; height: 14px; }
.tag-answered { background: var(--ok-bg); color: var(--ok); }
.tag-conf { background: var(--blue-soft); color: var(--indigo-2); }
.tag-urgent { background: var(--err-bg); color: var(--err); }
.praise { background: var(--ok-bg); color: #164d35; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.praise strong { display: block; color: var(--ok); font-size: .86rem; margin-bottom: 2px; }
.is-answered { border-color: #bfe4d0; }
.prayed-total { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 600; font-size: .9rem; margin: 0; }
.prayed-total .ic { color: var(--candle); }

/* The candle: tap "I prayed" and it lights */
.candle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 16px 6px 8px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 .95rem var(--body); cursor: pointer; transition: background .25s, border-color .25s; }
.candle:hover:not(.lit) { border-color: var(--candle); }
.candle-art { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; transition: background .25s; }
.wick { position: absolute; bottom: 8px; width: 8px; height: 10px; border-radius: 2px 2px 1px 1px; background: #cfd0e3; }
.candle-flame { position: absolute; top: 2px; width: 16px; height: 16px; color: #b8b9d1; fill: none; transform-origin: 50% 90%; transition: fill .2s, color .2s; }
.pb-count { min-width: 1ch; color: var(--ink-3); font-weight: 600; }
.pb-count:empty { display: none; }
.candle.lit { background: var(--sun); border-color: var(--sun); color: var(--ink); cursor: default; }
.candle.lit .candle-art { background: #fff; }
.candle.lit .wick { background: #f2e6cc; }
.candle.lit .candle-flame { color: var(--candle); fill: var(--candle); }
.candle.lit .pb-count { color: #6b4d00; }
.candle.igniting .candle-flame { animation: ignite .7s ease-out; }
.candle.igniting .candle-art { animation: glow 1.1s ease-out; }
@keyframes ignite { 0% { transform: scale(0); } 55% { transform: scale(1.35) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(255,138,61,.55); } 100% { box-shadow: 0 0 0 16px rgba(255,138,61,0); } }

.empty { text-align: center; padding: 40px 20px; background: #fff; border: 1.5px dashed var(--line); border-radius: var(--r-card); color: var(--ink-2); }
.empty-ic { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; background: var(--candle-soft); color: var(--candle); }
.empty-ic .ic { width: 28px; height: 28px; }

/* ---------- Manage ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; margin-top: 14px; }
.panel h2 { font-size: 1.2rem; }
.panel textarea { margin-bottom: 12px; }
.panel-answer { border-color: #bfe4d0; background: linear-gradient(#fff, #f6fcf9); }
.panel-quiet { background: transparent; border-style: dashed; }

/* ---------- Admin ---------- */
.topbar-admin { box-shadow: inset 0 -3px 0 var(--sun); }
.dash-head { display: grid; gap: 14px; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { display: block; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: .8rem; font-weight: 600; }
.stat.hot { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.stat.hot b { color: var(--ink); }
.stat.hot span { color: #6b4d00; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: var(--mist); color: var(--ink-2); text-decoration: none; border: 1.5px solid var(--line); }
.mod-pill.on { background: var(--ok-bg); color: var(--ok); border-color: #bfe4d0; }
.mod-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.admin-list { display: grid; gap: 12px; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; }
.acard.urgent { border-color: #f1bcc6; box-shadow: inset 4px 0 0 var(--err); }
.acard .pcard-head { flex-wrap: wrap; }
.acard-meta { color: var(--ink-3); font-size: .88rem; margin: 0 0 4px; }
.acard-meta strong { color: var(--ink-2); }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.settings-grid { display: grid; gap: 14px; }
.share-box { background: var(--indigo); color: #fff; border-radius: var(--r-card); padding: 20px; }
.share-box h2 { font-size: 1.2rem; }
.share-box p { color: #dfe6ff; }
.share-box .copy-row input { background: rgba(255,255,255,.1) !important; color: #fff !important; border-color: rgba(255,255,255,.25) !important; }
.code-show { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 10px; background: var(--sun); color: var(--ink);
  font-weight: 800; letter-spacing: .14em; font-size: 1.1rem; }

/* ---------- Bigger screens ---------- */
@media (min-width: 760px) {
  body { font-size: 17px; }
  .topbar { padding: 12px 28px; }
  .topnav { display: flex; }
  .tabbar { display: none; }
  .wrap { padding: 36px 24px 72px; }
  .wall { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .admin-list { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .dash-head { grid-template-columns: 1fr auto; align-items: end; }
  .filters { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (min-width: 1040px) { .wrap-wall .wall { grid-template-columns: repeat(3, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- My request (private link), one card per part ---------- */
.mine { margin-top: 14px; }
.mine-edit { margin-top: 4px; }
.mine-edit textarea { margin: 0 0 10px; }
.mine-answer { margin-top: 12px; border-radius: 14px; background: var(--ok-bg); padding: 0 14px; }
.mine-answer summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; font-weight: 700; color: var(--ok); list-style: none; }
.mine-answer summary::-webkit-details-marker { display: none; }
.mine-answer[open] { padding-bottom: 14px; }
.mine-remove { margin-top: 8px; text-align: right; }
.mine-remove .btn-quiet { color: var(--err); }

/* ---------- Members, stats, badges ---------- */
.tabbar { grid-template-columns: repeat(4, 1fr); }
.topbar-admin .topnav { display: flex; gap: 0; }
.topbar-admin .topnav a { padding: 7px 9px; font-size: .86rem; }
@media (max-width: 600px) { .topbar-admin .brand-text { display: none; } .topbar-admin { padding-left: 14px; padding-right: 8px; } }

.seg-tabs { grid-template-columns: 1fr 1fr; margin: 6px 0 18px; }
.seg-tabs a { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.seg-tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27,34,64,.14); }
.pin-input { letter-spacing: .5em; font-size: 1.3rem !important; text-align: center; max-width: 220px; }

.join-nudge { display: flex; gap: 10px; align-items: center; margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px;
  background: var(--blue-soft); color: var(--ink); text-decoration: none; font-size: .95rem; }
.join-nudge .ic { color: var(--indigo); flex: none; }
.join-card { display: flex; gap: 14px; align-items: center; margin: 18px 0; padding: 18px; border-radius: var(--r-card);
  background: var(--indigo); color: #fff; text-decoration: none; }
.join-card strong { display: block; font-family: var(--display); font-size: 1.2rem; }
.join-card small { color: #dfe6ff; font-size: .93rem; }
.join-ic { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--sun); color: var(--ink); }

.stats-hero { margin-bottom: 8px; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 10px; }
.big-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px; }
.big-stat b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.big-stat span { color: var(--ink-3); font-size: .82rem; font-weight: 600; }
.big-stat-main { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px;
  background: var(--sun); border-color: var(--sun); padding: 18px; }
.big-stat-main .ic { grid-row: span 2; width: 44px; height: 44px; color: var(--candle); fill: var(--candle); }
.big-stat-main b { font-size: 2.6rem; }
.big-stat-main span { color: #6b4d00; font-size: .95rem; }

.mine-stats { margin: 22px 0; }
.mine-stats h2, .warriors h2 { font-size: 1.3rem; margin-top: 22px; }
.streak-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.streak-card b { display: block; font-family: var(--display); font-size: 1.6rem; }
.streak-card span { color: var(--ink-2); }
.streak-card small { display: block; color: var(--ink-3); margin-top: 2px; }
.streak-flame { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 18px; background: var(--mist); color: #c3c8da; }
.streak-flame .ic { width: 30px; height: 30px; }
.streak-card.on { border-color: #ffd9b8; background: var(--candle-soft); }
.streak-card.on .streak-flame { background: var(--candle); color: #fff; }
.streak-card.on .streak-flame .ic { fill: #fff; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.mini-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; }
.mini-stats b { display: block; font-family: var(--display); font-size: 1.3rem; }
.mini-stats span { color: var(--ink-3); font-size: .74rem; font-weight: 600; }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badge-tile { padding: 14px; border-radius: 16px; background: #fff; border: 1.5px dashed var(--line); color: var(--ink-3); }
.badge-tile strong { display: block; color: var(--ink-2); margin-top: 6px; }
.badge-tile small { font-size: .84rem; }
.badge-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--mist); }
.badge-tile.earned { border: 1.5px solid #f6e2a6; background: var(--sun-soft); color: #6b4d00; }
.badge-tile.earned strong { color: var(--ink); }
.badge-tile.earned .badge-ic { background: var(--sun); color: var(--ink); }
.badge-tile.earned .badge-ic .ic { fill: var(--ink); }
.warrior-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.warrior-list li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; }

.member-list { display: grid; gap: 8px; margin-top: 10px; }
.member-row { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; }
.member-row summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; }
.member-row summary::-webkit-details-marker { display: none; }
.member-name { font-weight: 700; }
.member-meta { color: var(--ink-3); font-size: .85rem; white-space: nowrap; }
.member-actions { padding-bottom: 14px; display: grid; gap: 10px; }
.member-actions .copy-row input { max-width: 180px; }
@media (min-width: 760px) { .badges { grid-template-columns: repeat(4, 1fr); } .big-stats { grid-template-columns: repeat(4, 1fr); } .big-stat-main { grid-column: span 1; display: block; } .big-stat-main .ic { width: 28px; height: 28px; } }

/* ---------- Prayer Wall: one card, numbered lists by category ---------- */
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 0; }
.board-sec + .board-sec { border-top: 1px solid var(--line); }
.board-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px 6px; font-size: 1.12rem; }
.board-head .tdot { width: 34px; height: 34px; border-radius: 10px; }
.board-head .tdot .ic { width: 18px; height: 18px; }
.board-count { margin-left: auto; min-width: 28px; padding: 2px 9px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font: 700 .82rem var(--body); text-align: center; }
.tdot-ok { background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }

.plist { list-style: none; counter-reset: pnum; margin: 0; padding: 0 10px 8px; }
.pitem { counter-increment: pnum; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start;
  padding: 12px 8px; border-radius: 14px; }
.pitem + .pitem { border-top: 1px dashed var(--line); border-radius: 0; }
.pitem::before { content: counter(pnum); grid-column: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--mist); color: var(--ink-2); font: 800 .85rem var(--body); }
.t-thanksgiving .pitem::before { background: var(--t-thanks-bg); color: #8a5d00; }
.t-general .pitem::before { background: var(--t-general-bg); color: var(--t-general); }
.t-healing .pitem::before { background: var(--t-healing-bg); color: var(--t-healing); }
.t-outreach .pitem::before { background: var(--t-outreach-bg); color: var(--t-outreach); }
.t-unspoken .pitem::before { background: var(--t-unspoken-bg); color: var(--t-unspoken); }
.board-answered .pitem::before { background: var(--ok-bg); color: var(--ok); }
.pitem.is-urgent { background: #fff5f6; }
.pitem.is-urgent::before { background: var(--err); color: #fff; }
.pitem-main { grid-column: 2; min-width: 0; }
.pitem-urgent { margin: 0 0 4px; padding: 2px 8px; font-size: .72rem; }
.pitem-kind { display: block; color: var(--ink-3); font-size: .78rem; font-weight: 700; }
.pitem-title { display: block; font-size: 1rem; line-height: 1.35; }
.t-healing .pitem-title { color: var(--t-healing); }
.t-general .pitem-title { color: var(--t-general); }
.t-outreach .pitem-title { color: var(--t-outreach); }
.t-unspoken .pitem-title { color: var(--t-unspoken); }
.pitem-body { margin: 2px 0 0; font-size: .98rem; line-height: 1.5; word-break: break-word; }
.pitem-praise { display: flex; gap: 6px; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--ok-bg); color: #164d35; font-size: .93rem; }
.pitem-praise .ic { color: var(--ok); flex: none; margin-top: 2px; }
.pitem-meta { margin: 4px 0 0; color: var(--ink-3); font-size: .82rem; }
.pitem > .candle, .pitem > .prayed-total { grid-column: 3; align-self: center; }

.candle-sm { min-height: 38px; gap: 6px; padding: 4px 11px 4px 5px; font-size: .85rem; }
.candle-sm .candle-art { width: 26px; height: 26px; }
.candle-sm .wick { bottom: 6px; width: 7px; height: 9px; }
.candle-sm .candle-flame { width: 13px; height: 13px; top: 2px; }
.switch-urgent { padding: 12px 14px; border-radius: var(--r-ctl); background: #fff5f6; border: 1.5px solid #f6cfd9; }
.switch-urgent input:checked + .switch-ui { background: var(--err); }
@media (max-width: 420px) { .candle-sm .pb-label { display: none; } .candle-sm { padding-right: 9px; } }
@media (min-width: 760px) { .board-head { padding: 20px 24px 8px; } .plist { padding: 0 16px 10px; } }
.wrap-wall { max-width: 780px; }

/* Topic sub-groups inside a category, numbered by name */
.board-sub { display: flex; align-items: center; gap: 8px; margin: 10px 18px 0; padding: 8px 12px; border-radius: 12px;
  background: var(--mist); font: 700 .92rem var(--body); letter-spacing: 0; }
.board-sub span { margin-left: auto; color: var(--ink-3); font-size: .8rem; }
.t-general .board-sub { background: var(--t-general-bg); color: var(--t-general); }
.t-healing .board-sub { background: var(--t-healing-bg); color: var(--t-healing); }
.t-outreach .board-sub { background: var(--t-outreach-bg); color: var(--t-outreach); }
.board-sub + .plist { padding-top: 2px; }
.pitem-title { color: var(--ink) !important; }
@media (min-width: 760px) { .board-sub { margin: 12px 24px 0; } }

/* My requests (Me page) and shared request editor */
.mine-title { margin: 30px 0 6px; font: 800 1.35rem var(--display); }
.mine-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mine-foot form { margin: 0; }
.mine-foot .mine-remove { margin-top: 0; text-align: inherit; }
.mine-edit .field { margin-bottom: 8px; }
.act-row a.btn { text-decoration: none; }
.mine-foot > form { width: auto; flex: 0 0 auto; }

/* Download links: wall section headers and the Me page */
.board-dl { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink-2); background: var(--mist); }
.board-dl .ic { width: 18px; height: 18px; }
.board-dl:hover, .board-dl:focus-visible { color: var(--ink); background: var(--line); }
.dl-grid { display: grid; gap: 8px; margin: 10px 0 6px; }
.dl-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 700; }
.dl-tile > span:nth-child(2) { flex: 1; }
.dl-tile > .ic { color: var(--ink-3); width: 20px; height: 20px; }
.dl-tile .tdot { width: 34px; height: 34px; border-radius: 10px; }
.dl-tile:hover > .ic, .dl-tile:focus-visible > .ic { color: var(--ink); }
@media (min-width: 600px) { .dl-grid { grid-template-columns: 1fr 1fr; } }

/* Visitors / Baptism: several names */
.people-list { display: grid; gap: 8px; }
.person-row { display: flex; gap: 8px; align-items: center; }
.person-row input { flex: 1; min-width: 0; }
.person-remove { flex: 0 0 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mist); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.person-remove .ic { width: 18px; height: 18px; }
.person-remove:hover, .person-remove:focus-visible { background: var(--line); color: var(--ink); }
.add-person { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.add-person .ic { width: 18px; height: 18px; }

/* Feedback */
.field-label { display: block; font-weight: 700; margin-bottom: 6px; }
.shot-pick { position: relative; display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 16px; background: #fff; cursor: pointer; overflow: hidden; }
.shot-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shot-pick:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px var(--blue-soft); }
.shot-empty { display: inline-flex; align-items: center; gap: 8px; color: var(--indigo); font-weight: 700; pointer-events: none; }
.shot-empty .ic { width: 20px; height: 20px; }
.shot-pick.has .shot-empty { display: none; }
.shot-preview { display: block; max-width: 100%; max-height: 360px; pointer-events: none; }
.dl-sub { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-3); }
.ic-flip { transform: scaleX(-1); }
.fb-shot img { display: block; max-width: 100%; max-height: 420px; border-radius: 12px; border: 1px solid var(--line); margin: 4px 0 10px; }
.fb-feedback { background: var(--blue-soft); color: var(--indigo); }
.fb-suggestion { background: var(--ok-bg); color: var(--ok); }
.fb-problem { background: #ffe3e8; color: #c8243f; }
.topbar-admin .topnav { min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.topbar-admin .topnav::-webkit-scrollbar { display: none; }
.topbar-admin .topnav a { flex: 0 0 auto; }
.topbar-admin .brand { flex: 0 0 auto; }
.people-panel { margin-top: 16px; }
.people-group { margin: 0 0 14px; padding-left: 22px; }
.people-group li { padding: 4px 0; }
.people-group .tag { margin-left: 6px; }
.person-remove[hidden], .add-person[hidden], #shotClear[hidden] { display: none; }

/* Several people from one submission: shared message once, names numbered */
.pgroup { padding: 12px 8px 4px; border-radius: 14px; }
.plist > .pgroup + .pitem, .plist > .pitem + .pgroup, .plist > .pgroup + .pgroup { border-top: 1px dashed var(--line); border-radius: 0; }
.pgroup-head { padding-left: 40px; }
.pgroup-head .pitem-body { margin: 0; }
.pgroup-names { margin-top: 6px; }
.pname { padding: 8px 0; }
.pname + .pname { border-top: 0; }
.pgroup.is-urgent { background: #fff5f6; }
.pgroup.is-urgent .pname::before { background: var(--err); color: #fff; }

/* Install as an app */
.app-box { margin-top: 26px; }
.app-box .mine-title { margin-top: 0; }
.app-steps { margin: 8px 0 0; padding: 14px 16px 14px 34px; background: #fff; border: 1px solid var(--line); border-radius: 16px; line-height: 1.55; }
.app-done { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; }
.app-done .ic { width: 20px; height: 20px; }
.is-app .app-box { display: none; }
.app-nudge { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 8px 10px 12px; border-radius: 16px; background: var(--sun-soft); border: 1px solid #f6e3a0; }
.app-nudge[hidden] { display: none; }
.app-nudge-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sun); color: var(--indigo); }
.app-nudge-text { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.35; }
.app-nudge-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.app-nudge-x .ic { width: 18px; height: 18px; }
.app-nudge-x:hover, .app-nudge-x:focus-visible { background: rgba(0,0,0,.06); }
/* Running as an installed app: respect the phone's notch and home bar */
.is-app .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
.app-done[hidden], .app-steps[hidden] { display: none; }

/* Me → My requests: one line each, open to act */
.mrow-count { margin: 0 0 8px; color: var(--ink-3); font-size: .9rem; }
.mrows { display: grid; gap: 8px; }
.mrow { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mrow > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; cursor: pointer; list-style: none; }
.mrow > summary::-webkit-details-marker { display: none; }
.mrow > summary:focus-visible { outline: 3px solid var(--candle); outline-offset: -3px; border-radius: 16px; }
.mrow .tdot { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.mrow .tdot .ic { width: 18px; height: 18px; }
.mrow-title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow-status { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: .76rem; font-weight: 700; }
.mrow-status.is-answered { background: var(--ok-bg); color: var(--ok); }
.mrow-status.is-pending { background: var(--sun-soft); color: #7a5600; }
.mrow-chev { flex: none; width: 18px; height: 18px; color: var(--ink-3); transform: rotate(-90deg); transition: transform .15s; }
.mrow[open] .mrow-chev { transform: rotate(90deg); }
.mrow[open] > summary { border-bottom: 1px solid var(--line); }
.mrow-body { padding: 12px 14px 14px; }
.mrow-meta { margin: 0 0 6px; color: var(--ink-3); font-size: .84rem; }
.mrow-text { margin: 0 0 10px; line-height: 1.5; word-break: break-word; }
.mrow-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mrow-actions form { margin: 0; }
.mrow-actions .btn .ic, .mrow-btns .btn .ic { width: 16px; height: 16px; }
.mrow-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.btn-ok { background: var(--ok-bg); color: var(--ok); }
.btn-ok:hover { background: #c9f2dd; }
.btn-ok-solid { background: var(--ok); color: #fff; }
.btn-del { background: #fff0f2; color: var(--err); }
.btn-del:hover { background: #ffe0e5; }
.mrow-panel { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mrow-panel[hidden] { display: none; }
.mrow-btns { display: flex; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .mrow-chev { transition: none; } }

/* Church Prayer Points */
:root { --t-church: #c2410c; --t-church-bg: #fff0e3; }
.tdot.t-church { background: var(--t-church-bg); color: var(--t-church); }
.t-church .pitem::before { background: var(--t-church-bg); color: var(--t-church); }
.t-church .pitem-title { color: var(--ink) !important; font-weight: 700; }
.board-sub-note { display: block; font: 500 .8rem var(--body); color: var(--ink-3); margin-top: 1px; }
.board-head > span:nth-child(2) { display: flex; flex-direction: column; }
.cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 10px 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cp-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--t-church-bg); color: var(--t-church); font-weight: 800; font-size: .88rem; }
.cp-text { margin: 0; font-weight: 600; line-height: 1.4; word-break: break-word; }
.cp-meta { margin: 2px 0 0; color: var(--ink-3); font-size: .82rem; display: flex; align-items: center; gap: 4px; }
.cp-meta .ic { width: 14px; height: 14px; color: var(--candle); }
.cp-acts { display: flex; align-items: center; gap: 4px; }
.cp-acts form { margin: 0; display: flex; gap: 4px; }
.cp-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--mist); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.cp-btn .ic { width: 18px; height: 18px; }
.cp-btn:disabled { opacity: .35; cursor: default; }
.cp-btn:hover:not(:disabled) { background: var(--line); color: var(--ink); }
.cp-del { color: var(--err); background: #fff0f2; }
.cp-up { transform: rotate(90deg); }
.cp-down { transform: rotate(-90deg); }
@media (max-width: 420px) { .cp-item { grid-template-columns: 30px 1fr; } .cp-acts { grid-column: 1 / -1; justify-content: flex-end; } }
.cp-sub { font-weight: 400; color: var(--ink-2); }
.t-church .pitem-body { color: var(--ink-2); }

/* Team roles */
.tag-role { background: var(--blue-soft); color: var(--indigo); }
.role-form { margin: 8px 0 12px; }
.role-form select { width: 100%; }
.role-help summary { cursor: pointer; }
.role-help ul { margin: 10px 0 6px; padding-left: 20px; line-height: 1.5; }
.team-card { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--blue-soft); color: var(--ink); text-decoration: none; }
.team-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.team-card small { color: var(--ink-2); font-size: .86rem; }
.team-card > .ic { width: 18px; height: 18px; color: var(--ink-3); }
.team-card .tdot { width: 36px; height: 36px; border-radius: 10px; }

/* Unsaved loved ones */
:root { --t-salvation: #0369a1; --t-salvation-bg: #e0f2fe; }
.tdot.t-salvation { background: var(--t-salvation-bg); color: var(--t-salvation); }
article.t-salvation .pcard-ill { color: var(--t-salvation); }
.part-salvation { background: var(--t-salvation-bg); border-color: #bae0fb; }
.t-salvation .pitem::before { background: var(--t-salvation-bg); color: var(--t-salvation); }
.t-salvation .pitem-title { color: var(--t-salvation); }
.t-salvation .board-sub { background: var(--t-salvation-bg); color: var(--t-salvation); }

/* Admin on phones: bottom tab bar, compact header, tiles and chips */
.tabbar-admin .ic { width: 22px; height: 22px; }
.tabbar-admin a span { font-size: .72rem; white-space: nowrap; }
.topbar-admin .tn-wall { display: inline-flex; align-items: center; gap: 6px; }
.topbar-admin .tn-wall .ic { width: 18px; height: 18px; }
@media (max-width: 759px) {
  .topbar-admin .tn-page { display: none; }
  .topbar-admin .topnav { margin-left: auto; overflow: visible; gap: 4px; }
  .topbar-admin .topnav a { padding: 8px 10px; }
  .topbar-admin .brand-text { display: flex; }
  .topbar-admin .brand-text b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  .topbar-admin .brand-text small { display: none; }
  .wrap-admin, .topbar-admin ~ .wrap { padding-bottom: calc(var(--tabbar-h) + 32px); }
  .wrap-admin .title { font-size: 1.6rem; margin-bottom: 10px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; border-radius: 14px; }
  .stat b { font-size: 1.45rem; }
  .stat span { display: block; font-size: .74rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .toolbar .btn-small { min-height: 38px; padding: 7px 12px; font-size: .86rem; }
  .mod-pill { padding: 7px 11px; font-size: .8rem; }
  .wrap-admin .filters { margin-top: 10px; margin-bottom: 8px; gap: 6px; }
  .wrap-admin .filters a { padding: 7px 12px; font-size: .86rem; border-width: 1px; }
  .acard { padding: 14px; }
  .act-row { gap: 6px; }
  .act-row .btn-small { min-height: 38px; padding: 7px 11px; font-size: .86rem; }
  .wrap-admin .empty { padding: 28px 16px; }
}

/* ---------- Prayer cycle ---------- */
.alert-warn { background: var(--sun-soft); color: #7a5600; }
.mrow-status.is-archived { background: var(--line, #e7e5e4); color: var(--ink-3); }
.mrow-until { margin: 0 0 6px; font-size: .84rem; color: var(--ink-2, var(--ink-3)); }
.mrow-until.is-soon { color: #7a5600; background: var(--sun-soft); padding: 8px 10px; border-radius: 10px; }
.cycle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }

/* FAQ on Me */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--card, #fff); border: 1px solid var(--line, #e7e5e4); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 16px 14px; color: var(--ink-2, inherit); }
.faq p { margin: 0 0 8px; }
.faq ul { margin: 0 0 8px; padding-left: 20px; }
.faq .faq-days { list-style: none; padding: 0; }
.faq .faq-days li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line, #e7e5e4); }
.faq .faq-days li:last-child { border-bottom: 0; }
.forgot-link { text-align: center; margin: 12px 0 0; }
.forgot-link a { font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.field legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.name-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.name-pick label { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line, #e7e5e4); border-radius: 12px; cursor: pointer; font-weight: 600; }
.name-pick label:has(input:checked) { border-color: var(--indigo); background: var(--blue-soft); }
.name-pick input { accent-color: var(--indigo); width: 18px; height: 18px; margin: 0; }

/* ---------- Me: collapsible tool sections ---------- */
.me-sects { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.me-sect { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.me-sect > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.me-sect > summary::-webkit-details-marker { display: none; }
.me-sect > summary > span:nth-child(2) { flex: 1; min-width: 0; }
.me-sect > summary strong { display: block; }
.me-sect { min-width: 0; }
.me-sect > summary .dl-sub { overflow-wrap: anywhere; }
.me-sect > summary .tdot { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.me-sect > summary > .ic-down { width: 18px; height: 18px; color: var(--ink-3); transform: rotate(-90deg); transition: transform .2s; flex: none; }
.me-sect[open] > summary > .ic-down { transform: rotate(90deg); }
.me-sect[open] > summary { border-bottom: 1px solid var(--line); }
.me-sect-body { padding: 14px; }
.me-sect-body .panel { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.me-sect-body .dl-grid { margin: 0; }
.me-link { margin: 0; }
@media (prefers-reduced-motion: reduce) { .me-sect > summary > .ic-down { transition: none; } }

/* ---------- Fit every screen: nothing may push the page wider than the phone ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.wrap { width: 100%; box-sizing: border-box; min-width: 0; }
.wrap > *, .mrows, .mrow, .dl-grid, .faq, .faq details, .panel, .me-sect-body { min-width: 0; max-width: 100%; box-sizing: border-box; }
.wrap img, .wrap canvas, .wrap video { max-width: 100%; height: auto; }
.wrap input, .wrap select, .wrap textarea { max-width: 100%; box-sizing: border-box; }
.alert, .mrow-until, .help, .dl-sub, .faq p, .faq li { overflow-wrap: anywhere; }
/* Installed app: respect notches and the home bar */
@media (display-mode: standalone) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
}
/* Small phones */
@media (max-width: 360px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .me-sect > summary, .dl-tile { gap: 10px; padding: 10px 12px; }
}

/* ---------- Open sections look open (and say how to close) ---------- */
.me-sect, .faq details { transition: border-color .15s, box-shadow .15s; }
.me-sect[open], .faq details[open] { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--blue-soft); }
.me-sect[open] > summary { background: var(--blue-soft); border-radius: 15px 15px 0 0; border-bottom-color: #d4dcff; }
.me-sect[open] > summary strong { color: var(--indigo); }
.me-sect[open] > summary > .ic-down { color: var(--indigo); }
.faq details[open] > summary { background: var(--blue-soft); color: var(--indigo); border-radius: 13px 13px 0 0; margin-bottom: 12px; }
.faq details[open] > summary::after { color: var(--indigo); }
/* "Tap to close" under the title while open */
.close-hint { display: none; font-size: .78rem; font-weight: 600; color: var(--indigo); margin-top: 2px; }
.me-sect[open] > summary .close-hint { display: block; }
.me-sect[open] > summary .dl-sub { display: none; }
@media (prefers-reduced-motion: reduce) { .me-sect, .faq details { transition: none; } }

/* Install panel */
.app-done { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-bg); color: var(--ink); padding: 12px 14px; border-radius: 12px; margin: 0; }
.app-done > .ic { color: var(--ok); flex: none; margin-top: 3px; }
.app-already { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); margin: 14px 0 0; }
.app-already > .ic { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 4px; }
.app-inapp { background: var(--sun-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.app-inapp p { margin: 0 0 10px; }
[data-install] .help { margin: 8px 0 0; }
.app-done[hidden], .app-inapp[hidden], [data-install-area][hidden] { display: none; }
.me-sect[open] > summary .tdot { background: #fff; }

/* My requests: same open look as My tools */
.mrow-head { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mrow-head .mrow-title { flex: none; }
.mrow { transition: border-color .15s, box-shadow .15s; }
.mrow[open] { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--blue-soft); }
.mrow[open] > summary { background: var(--blue-soft); border-bottom-color: #d4dcff; }
.mrow[open] .mrow-title { color: var(--indigo); }
.mrow[open] .mrow-chev { color: var(--indigo); }
.mrow[open] > summary .tdot { background: #fff; }
.mrow[open] > summary .close-hint { display: block; }
.mrow[open] > summary .mrow-status { background: #fff; }
@media (prefers-reduced-motion: reduce) { .mrow { transition: none; } }

/* Admin → Members: email and app status */
.member-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag .ic { width: 13px; height: 13px; }
.tag-mail { background: var(--ok-bg); color: var(--ok); }
.tag-app { background: var(--t-salvation-bg); color: var(--t-salvation); }
.tag-none { background: var(--mist); color: var(--ink-3); }
.member-stats { display: grid; gap: 8px; margin: 0 0 8px; }
.mstat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 600; }
.member-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.member-facts li { display: flex; gap: 10px; flex-wrap: wrap; }
.member-facts li > span { min-width: 104px; color: var(--ink-3); }
.member-facts a { overflow-wrap: anywhere; }
.member-row summary { flex-wrap: wrap; }
.member-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; flex: 1 1 60%; }
.member-name .tag { margin: 0; }
.member-tags { display: contents; }
@media (max-width: 520px) { .member-meta { flex-basis: 100%; white-space: normal; } }

/* ---------- Prayer Wall: pinned jump bar and back to top ---------- */
.jumpbar { position: sticky; top: var(--head-h, 64px); z-index: 15; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 12px -18px 14px; padding: 10px 18px; background: var(--mist); border-bottom: 1px solid transparent; }
.jumpbar::-webkit-scrollbar { display: none; }
.jump { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 10px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .15s, border-color .15s, color .15s; }
.jump .ic { width: 16px; height: 16px; }
.jump b { font-size: .75rem; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px; background: var(--mist); color: var(--ink-3); }
.jump.t-church .ic { color: var(--t-church); } .jump.t-thanksgiving .ic { color: var(--t-thanks); } .jump.t-general .ic { color: var(--t-general); }
.jump.t-healing .ic { color: var(--t-healing); } .jump.t-salvation .ic { color: var(--t-salvation); } .jump.t-outreach .ic { color: var(--t-outreach); }
.jump.t-unspoken .ic { color: var(--t-unspoken); } .jump.t-answered .ic { color: var(--ok); }
.jump.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.jump.on .ic { color: #fff; }
.jump.on b { background: rgba(255,255,255,.25); color: #fff; }
.jump:focus-visible { outline: 3px solid var(--candle); outline-offset: 2px; }
.jump-all { background: transparent; }
.board-sec { scroll-margin-top: calc(var(--head-h, 64px) + var(--jump-h, 56px) + 8px); }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 25;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--indigo); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(27,34,64,.25); cursor: pointer; }
.to-top[hidden] { display: none; }
.to-top .ic { width: 22px; height: 22px; }
.ic-up { transform: rotate(90deg); }
@media (min-width: 760px) { .to-top { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .jump { transition: none; } }
.wrap > .jumpbar { max-width: none; width: auto; }

/* ---------- Prayer Wall: each category is its own card in its own color ---------- */
.board { background: transparent; border: 0; border-radius: 0; padding: 0; display: grid; gap: 14px; }
.board-sec + .board-sec { border-top: 0; }
.board-sec { --sc: var(--ink-3); --sc-bg: var(--mist); background: #fff; border: 1.5px solid var(--sc); border-radius: var(--r-card); overflow: hidden;
  padding-bottom: 6px; transition: box-shadow .3s; }
@supports (color: color-mix(in srgb, red, blue)) { .board-sec { border-color: color-mix(in srgb, var(--sc) 55%, #fff); } }
.board-sec.t-church { --sc: var(--t-church); --sc-bg: var(--t-church-bg); }
.board-sec.t-thanksgiving { --sc: var(--t-thanks); --sc-bg: var(--t-thanks-bg); }
.board-sec.t-general { --sc: var(--t-general); --sc-bg: var(--t-general-bg); }
.board-sec.t-healing { --sc: var(--t-healing); --sc-bg: var(--t-healing-bg); }
.board-sec.t-salvation { --sc: var(--t-salvation); --sc-bg: var(--t-salvation-bg); }
.board-sec.t-outreach { --sc: var(--t-outreach); --sc-bg: var(--t-outreach-bg); }
.board-sec.t-unspoken { --sc: var(--t-unspoken); --sc-bg: var(--t-unspoken-bg); }
.board-sec.board-answered { --sc: var(--ok); --sc-bg: var(--ok-bg); }
.board-sec > .board-head { background: var(--sc-bg); padding: 14px 16px; margin-bottom: 6px; }
@supports (color: color-mix(in srgb, red, blue)) { .board-sec > .board-head { background: color-mix(in srgb, var(--sc-bg) 70%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--sc) 25%, #fff); } }
.board-sec > .board-head .tdot, .board-sec > .board-head .board-count, .board-sec > .board-head .board-dl { background: #fff; }
.board-sec > .board-head .board-count { color: var(--sc); }
/* Glow briefly on the section you jumped to */
.board-sec.is-target { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { .board-sec { transition: none; } }

/* Floating "save this list" shortcut, stacked above back-to-top */
.float-dl { --sc: var(--indigo); position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--tabbar-h) + 76px + env(safe-area-inset-bottom)); z-index: 25;
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; background: #fff; color: var(--sc);
  border: 2px solid var(--sc); font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 6px 18px rgba(27,34,64,.18); max-width: 60vw; }
.float-dl[hidden] { display: none; }
.float-dl .ic { width: 18px; height: 18px; flex: none; }
.float-dl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float-dl.t-church { --sc: var(--t-church); } .float-dl.t-thanksgiving { --sc: var(--t-thanks); } .float-dl.t-general { --sc: var(--t-general); }
.float-dl.t-healing { --sc: var(--t-healing); } .float-dl.t-salvation { --sc: var(--t-salvation); } .float-dl.t-outreach { --sc: var(--t-outreach); }
.float-dl.t-unspoken { --sc: var(--t-unspoken); } .float-dl.board-answered { --sc: var(--ok); }
.float-dl:focus-visible { outline: 3px solid var(--candle); outline-offset: 2px; }
@media (min-width: 760px) { .float-dl { bottom: 84px; } }
/* Floating save: a 48px circle in the current category's color (name kept for screen readers only) */
.float-dl { width: 48px; height: 48px; padding: 0; gap: 0; justify-content: center; border: 0; border-radius: 50%; background: var(--sc); color: #fff; max-width: none;
  transition: background-color .25s; }
.float-dl .ic { width: 22px; height: 22px; }
.float-dl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.float-dl.t-thanksgiving { color: #3b2a00; }
@media (prefers-reduced-motion: reduce) { .float-dl { transition: none; } }

/* ---------- Calm pass (Dec 2, 2026): color only where it means something ---------- */
/* Candles: a soft glow instead of solid yellow */
.candle.lit { background: var(--candle-soft); border-color: #ffd9b8; }
.candle.lit .pb-count { color: #b45309; }
/* Category color: a thin border and the icons; header only lightly tinted */
.board-sec { border-width: 1px; }
@supports (color: color-mix(in srgb, red, blue)) {
  .board-sec { border-color: color-mix(in srgb, var(--sc) 35%, #fff); }
  .board-sec > .board-head { background: color-mix(in srgb, var(--sc-bg) 45%, #fff); border-bottom-color: color-mix(in srgb, var(--sc) 15%, #fff); }
}
.board-sec > .board-head .board-count { color: var(--ink-2); }
/* "You are here" chip: calm navy instead of bright blue */
.jump.on { background: var(--ink); border-color: var(--ink); }
/* Floating buttons: quiet white circles; only the save icon carries the category color */
.to-top, .float-dl { background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(27,34,64,.14);
  transition: opacity .2s, transform .2s; }
.to-top { color: var(--ink-2); }
.float-dl, .float-dl.t-thanksgiving { color: var(--sc); }
/* Step aside while scrolling, come back when you stop */
.is-scrolling .to-top, .is-scrolling .float-dl { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .to-top, .float-dl { transition: none; } }

/* Privacy */
.privacy-note { display: flex; gap: 10px; align-items: flex-start; background: var(--mist); border-radius: 12px; padding: 12px 14px; margin: 12px 0 4px; font-size: .9rem; color: var(--ink-2); }
.privacy-note > .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ink-3); }
.privacy-note a { font-weight: 600; }
.prose-page .panel h2 { margin-top: 0; }
.prose-page ul { padding-left: 20px; margin: 0 0 8px; }
.prose-page li { margin-bottom: 6px; }
.me-privacy { text-align: center; margin: 18px 0 0; font-size: .88rem; }
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
/* Candles follow their category's shade (the flame stays orange) */
.board-sec .candle.lit { background: var(--sc-bg); border-color: var(--sc-bg); }
.board-sec .candle.lit .pb-count { color: var(--sc); }
.board-sec .candle:hover:not(.lit) { border-color: var(--sc); }
@supports (color: color-mix(in srgb, red, blue)) {
  .board-sec .candle.lit { background: color-mix(in srgb, var(--sc-bg) 80%, #fff); border-color: color-mix(in srgb, var(--sc) 30%, #fff); }
  .board-sec .candle.lit .pb-count { color: color-mix(in srgb, var(--sc) 80%, #000); }
}
/* Urgent: red number and the Urgent tag are enough; no pink background (it read like Healing) */
.pitem.is-urgent, .pgroup.is-urgent { background: transparent; }

/* ---------- Prayer meeting ---------- */
.meet-banner { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; }
.meet-banner > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.meet-banner small { color: rgba(255,255,255,.75); font-size: .86rem; }
.meet-banner > .ic { width: 18px; height: 18px; color: rgba(255,255,255,.7); }
.meet-dot { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--ink); }
.meet-banner .meet-dot { background: rgba(255,255,255,.15); color: #fff; }
.meet-sec { --sc: var(--ink-3); --sc-bg: var(--mist); }
.mcat { --sc: var(--ink-3); --sc-bg: var(--mist); }
.mcat.t-church { --sc: var(--t-church); --sc-bg: var(--t-church-bg); } .mcat.t-thanksgiving { --sc: var(--t-thanks); --sc-bg: var(--t-thanks-bg); }
.mcat.t-general { --sc: var(--t-general); --sc-bg: var(--t-general-bg); } .mcat.t-healing { --sc: var(--t-healing); --sc-bg: var(--t-healing-bg); }
.mcat.t-salvation { --sc: var(--t-salvation); --sc-bg: var(--t-salvation-bg); } .mcat.t-outreach { --sc: var(--t-outreach); --sc-bg: var(--t-outreach-bg); }
.mcat.t-unspoken { --sc: var(--t-unspoken); --sc-bg: var(--t-unspoken-bg); }
.mcat .board-sub { background: var(--sc-bg); color: var(--sc); }
.mcat .candle.lit { background: var(--sc-bg); border-color: var(--sc-bg); }
.mcat .candle.lit .pb-count { color: var(--sc); }
.mrow-met { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .84rem; color: var(--ink-2); }
.mrow-met .ic { width: 15px; height: 15px; color: var(--ink-3); }
/* Admin meeting page */
.meet-status { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: .8rem; font-weight: 700; }
.meet-status.is-live { background: var(--ok-bg); color: var(--ok); }
.meet-head h2 { margin: 0 0 4px; }
.meet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.meet-actions form { margin: 0; }
.meet-group h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mline { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.mline:last-child { border-bottom: 0; }
.mline-dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.mline-dot .ic { width: 16px; height: 16px; }
.mline-dot.t-church { background: var(--t-church-bg); color: var(--t-church); } .mline-dot.t-thanksgiving { background: var(--t-thanks-bg); color: var(--t-thanks); }
.mline-dot.t-general { background: var(--t-general-bg); color: var(--t-general); } .mline-dot.t-healing { background: var(--t-healing-bg); color: var(--t-healing); }
.mline-dot.t-salvation { background: var(--t-salvation-bg); color: var(--t-salvation); } .mline-dot.t-outreach { background: var(--t-outreach-bg); color: var(--t-outreach); }
.mline-dot.t-unspoken { background: var(--t-unspoken-bg); color: var(--t-unspoken); }
.mline-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mline-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mline-text small { color: var(--ink-3); font-size: .78rem; }
.mline select { flex: none; width: auto; max-width: 42%; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .88rem; }
.meet-save { position: sticky; bottom: calc(var(--tabbar-h) + 8px); z-index: 10; }
@media (min-width: 760px) { .meet-save { bottom: 12px; } }
.tabbar-admin a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Customize ---------- */
.wrap-narrow { max-width: 720px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.back-link .ic { width: 16px; height: 16px; }
.cz-card { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cz-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cz-card small, .cz-sec summary small { color: var(--ink-3); font-size: .84rem; font-weight: 500; }
.cz-card > .ic { width: 18px; height: 18px; color: var(--ink-3); transform: rotate(180deg); }
.cz-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--indigo); }
.cz-ic .ic { width: 20px; height: 20px; }
.cz-sec { padding: 0; overflow: hidden; }
.cz-sec > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.cz-sec > summary::-webkit-details-marker { display: none; }
.cz-sec > summary > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.cz-sec[open] { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--blue-soft); }
.cz-sec[open] > summary { background: var(--blue-soft); }
.cz-sec[open] > summary strong { color: var(--indigo); }
.cz-sec > form { padding: 14px 16px 16px; display: grid; gap: 12px; }
.cz-sec .btn-block + .btn-block { margin-top: -4px; }
.cz-logo { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.cz-logo-now { width: 84px; height: 84px; border-radius: 20px; background: var(--mist); border: 1px solid var(--line); display: grid; place-items: center; color: var(--indigo); }
.cz-label { margin: 0 0 2px; font-weight: 700; }
.cz-file { max-width: 100%; font: inherit; font-size: .9rem; margin: 6px 0; }
.logo-img { object-fit: contain; border-radius: 8px; }
.cz-colors { display: grid; gap: 8px; }
.cz-color { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.cz-color input[type=color], .cz-type input[type=color] { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex: none; cursor: pointer; }
.cz-color span { display: flex; flex-direction: column; min-width: 0; }
.cz-color small { color: var(--ink-3); font-size: .82rem; }
.cz-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--mist); border: 1px dashed var(--line); }
.cz-preview .btn { pointer-events: none; }
.cz-pill { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .86rem; }
.cz-accent { padding: 6px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: .86rem; }
.cz-text { font: 700 1rem var(--display); color: var(--ink); }
.cz-types, .cz-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cz-type { border: 1px solid color-mix(in srgb, var(--sc) 35%, var(--line)); border-radius: 16px; overflow: hidden; background: #fff; }
.cz-type-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--sc-bg); }
.cz-type-head strong { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-type-dot { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--sc); }
.cz-type-dot .ic { width: 18px; height: 18px; }
.cz-type-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 12px; }
.cz-type-grid .field { margin: 0; }
.cz-wide { grid-column: 1 / -1; }
.cz-on { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.cz-on input { width: 18px; height: 18px; accent-color: var(--indigo); }
.cz-move { display: inline-flex; gap: 4px; }
.cz-move .cp-btn { width: 34px; height: 34px; background: rgba(255,255,255,.75); }
.cz-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 6px 6px 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cz-item-label { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; font: inherit; background: var(--mist); }
.cz-item-label:focus { border-color: var(--indigo); outline: none; background: #fff; }
.cz-item:has(input[type=checkbox]:not(:checked)) .cz-item-label { color: var(--ink-3); text-decoration: line-through; }
@media (max-width: 420px) { .cz-type-grid { grid-template-columns: 1fr; } .cz-item { gap: 4px; padding: 5px; } .cz-item .cz-move .cp-btn { width: 30px; height: 34px; } .cz-item .cz-on { font-size: .8rem; gap: 4px; } }

.cz-type-grid input[type=color] { width: 100%; height: 46px; padding: 4px; border-radius: 12px; }
@media (max-width: 420px) { .cz-on-t { display: none; } .cz-item-label { padding: 8px; } }
.cz-sec input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.cz-sec input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.cz-sec input[type=color]::-moz-color-swatch { border: 0; border-radius: 8px; }
.cz-sec input[type=color] { -webkit-appearance: none; appearance: none; box-sizing: border-box; min-height: 0; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.cz-color input[type=color] { flex: none; width: 52px !important; height: 44px !important; }
.cz-type-grid input[type=color] { width: 100% !important; height: 46px !important; }
.cz-sec input[type=color] { padding: 3px !important; }
