/* 1venue design system: tokens, shade layers, function-group colours, components. */
:root {
  --accent: #2563eb; --accent-2: #7c3aed; --accent-ink: #fff;
  --font-scale: 1;
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --nav-h: 64px; --cmd-h: 56px; --top-h: 60px;
  /* function groups: tooltips, chips and action icons share these */
  --g-media: #2563eb; --g-people: #7c3aed; --g-engage: #db2777; --g-content: #0d9488;
  --g-ai: #9333ea; --g-faith: #b7791f; --g-admin: #dc2626; --g-nav: #475569; --g-social: #ea580c; --g-settings: #0891b2;
  color-scheme: light;
  --bg: #f6f7fb; --text: #0f172a; --muted: #5b6478; --faint: #8a93a6; --line: rgba(15,23,42,.08); --line-2: rgba(15,23,42,.14);
  --s1: #ffffff; --s2: #f3f5fa; --s3: #e9edf5; --s4: #dfe4ee;
  --glass: rgba(255,255,255,.78); --shadow-1: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --shadow-2: 0 8px 24px -8px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.06);
  --shadow-3: 0 24px 60px -18px rgba(15,23,42,.35);
  --art-opacity: .55;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090f; --text: #e8ecf4; --muted: #9aa4b8; --faint: #6b7489; --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.13);
  --s1: #0f131c; --s2: #151a25; --s3: #1c2230; --s4: #252c3c;
  --glass: rgba(15,19,28,.78); --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 30px -10px rgba(0,0,0,.7); --shadow-3: 0 30px 70px -20px rgba(0,0,0,.85);
  --art-opacity: .4;
}
html { font-size: calc(16px * var(--font-scale)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 1rem/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
/* faint background art, tinted by the active accent */
body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none; opacity: var(--art-opacity);
  background:
    radial-gradient(40rem 26rem at 8% -4%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(34rem 24rem at 100% 10%, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 70%),
    radial-gradient(30rem 30rem at 60% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-opacity='.10' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M20 40 L33 30 L33 74'/%3E%3Cpath d='M110 100 l14 9 v20 h-14 v-7'/%3E%3Ccircle cx='128' cy='34' r='3'/%3E%3Cpath d='M60 130 q10-10 20 0 t20 0'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.ic { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.12rem; font-weight: 680; }
h3 { font-size: 1rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.grad-text { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; align-items: center; gap: .6rem; } .col { display: flex; flex-direction: column; gap: .6rem; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .between { justify-content: space-between; } .center { justify-content: center; }
.stack > * + * { margin-top: .75rem; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }

/* ---------- shade layering: nested groups step one surface deeper ---------- */
.layer { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.layer .layer { background: var(--s2); border-radius: var(--r-md); }
.layer .layer .layer { background: var(--s3); border-radius: var(--r-sm); }
.layer .layer .layer .layer { background: var(--s4); }
.group-tint { --tint: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 7%, var(--s1)), var(--s1)); border: 1px solid color-mix(in srgb, var(--tint) 16%, var(--line)); }
.pad { padding: 1rem; } .pad-lg { padding: 1.4rem; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--s2); --bt: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.05rem;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--b); color: var(--bt); font-weight: 600; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.btn:active { transform: scale(.97); }
.btn.primary { --b: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2))); --bt: var(--accent-ink); border: 0; box-shadow: 0 8px 22px -10px var(--accent); }
.btn.primary:hover { box-shadow: 0 12px 28px -10px var(--accent); filter: saturate(1.1); }
.btn.ghost { --b: transparent; border-color: transparent; }
.btn.ghost:hover { --b: var(--s2); box-shadow: none; }
.btn.danger { --b: #dc2626; --bt: #fff; border: 0; }
.btn.sm { min-height: 34px; padding: 0 .8rem; font-size: .85rem; }
.btn.lg { min-height: 52px; padding: 0 1.5rem; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  --g: var(--g-nav);
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer; transition: background .18s, transform .18s var(--ease), color .18s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--g) 12%, transparent); color: var(--g); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.on { background: color-mix(in srgb, var(--g) 16%, transparent); color: var(--g); }
.icon-btn .badge { position: absolute; top: 4px; right: 4px; }
[data-group="media"] { --g: var(--g-media); } [data-group="people"] { --g: var(--g-people); } [data-group="engage"] { --g: var(--g-engage); }
[data-group="content"] { --g: var(--g-content); } [data-group="ai"] { --g: var(--g-ai); } [data-group="faith"] { --g: var(--g-faith); }
[data-group="admin"] { --g: var(--g-admin); } [data-group="nav"] { --g: var(--g-nav); } [data-group="social"] { --g: var(--g-social); }
[data-group="settings"] { --g: var(--g-settings); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 700; display: inline-grid; place-items: center; }

/* ---------- tooltip (single floating node, coloured by function group) ---------- */
#tip {
  position: fixed; z-index: 1000; pointer-events: none; padding: .38rem .62rem; border-radius: 10px; font-size: .78rem; font-weight: 600;
  color: #fff; background: var(--tipc, #334155); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--tipc, #000) 60%, transparent);
  opacity: 0; transform: translateY(4px) scale(.96); transition: opacity .14s, transform .18s var(--spring); max-width: 260px;
}
#tip.show { opacity: 1; transform: none; }
#tip kbd { margin-left: .4rem; padding: 0 .3rem; border-radius: 5px; background: rgba(255,255,255,.22); font: inherit; font-size: .7rem; }
#tip[data-group="media"] { --tipc: var(--g-media); } #tip[data-group="people"] { --tipc: var(--g-people); } #tip[data-group="engage"] { --tipc: var(--g-engage); }
#tip[data-group="content"] { --tipc: var(--g-content); } #tip[data-group="ai"] { --tipc: linear-gradient(120deg, #7c3aed, #db2777); background: linear-gradient(120deg, #7c3aed, #c026d3); }
#tip[data-group="faith"] { --tipc: var(--g-faith); } #tip[data-group="admin"] { --tipc: var(--g-admin); } #tip[data-group="social"] { --tipc: var(--g-social); }
#tip[data-group="settings"] { --tipc: var(--g-settings); }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: .7rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--s1);
  transition: border-color .2s, box-shadow .2s; outline: none; font-size: 1rem;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--s4); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .25s var(--spring); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.chip {
  --g: var(--accent);
  display: inline-flex; align-items: center; gap: .35rem; height: 34px; padding: 0 .8rem; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--s1); font-size: .86rem; font-weight: 600; cursor: pointer; transition: all .18s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--g); color: var(--g); }
.chip.on { background: color-mix(in srgb, var(--g) 14%, var(--s1)); border-color: color-mix(in srgb, var(--g) 50%, transparent); color: var(--g); }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--s2); border-radius: var(--r-pill); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: .45rem .9rem; border-radius: var(--r-pill); cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; }
.seg button.on { background: var(--s1); color: var(--text); box-shadow: var(--shadow-1); }

/* ---------- avatar ---------- */
.av { --h: 220; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .9rem;
  background: linear-gradient(135deg, hsl(var(--h) 75% 55%), hsl(calc(var(--h) + 40) 75% 45%)); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 28px; height: 28px; font-size: .7rem; } .av.lg { width: 72px; height: 72px; font-size: 1.5rem; } .av.xl { width: 104px; height: 104px; font-size: 2.2rem; }
.av.ring { box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px var(--accent); }

/* ---------- app shell ---------- */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) max(1rem, var(--safe-r)) 0 max(1rem, var(--safe-l));
  display: flex; align-items: center; gap: 1rem; background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--text); }
.brand .logo { color: var(--accent); }
.topnav { display: flex; gap: .25rem; margin-left: .5rem; align-items: center; }
.topnav a, .topnav-books {
  padding: .5rem .85rem; border-radius: var(--r-pill); font-weight: 600; color: var(--muted);
  display: flex; gap: .45rem; align-items: center; transition: all .2s;
  border: 0; background: transparent; cursor: pointer; font: inherit;
}
.topnav a:hover, .topnav-books:hover { color: var(--text); background: var(--s2); }
.topnav a.on, .topnav-books.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Books → Bible / Qur’an horizontal picker (clamped to viewport) */
.books-picker {
  position: fixed; z-index: 1200; display: flex; flex-direction: row; gap: .4rem;
  padding: .4rem; border-radius: 16px; background: var(--s1); border: 1px solid var(--line);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.28);
  opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.9,.2,1);
  max-width: calc(100vw - 16px); flex-wrap: nowrap;
}
.books-picker.show { opacity: 1; transform: none; }
.books-picker.out { opacity: 0; transform: translateY(4px) scale(.97); }
.books-opt {
  display: flex; align-items: center; gap: .45rem; padding: .55rem .95rem;
  border: 0; border-radius: 12px; background: transparent; color: var(--text);
  font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.books-opt:hover { background: color-mix(in srgb, var(--g-faith, var(--accent)) 12%, var(--s2)); }
.books-opt:active { transform: scale(.96); }
.books-opt-ic { display: inline-grid; color: var(--g-faith, var(--accent)); }

.main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.25rem max(1rem, var(--safe-r)) calc(var(--cmd-h) + 2.5rem + var(--safe-b)) max(1rem, var(--safe-l)); }
.page-enter { animation: pageIn .42s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.stagger > * { animation: pageIn .5s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .04s } .stagger > *:nth-child(3) { animation-delay: .08s } .stagger > *:nth-child(4) { animation-delay: .12s }
.stagger > *:nth-child(5) { animation-delay: .16s } .stagger > *:nth-child(6) { animation-delay: .2s } .stagger > *:nth-child(n+7) { animation-delay: .24s }

/* bottom nav (mobile) */
.bottomnav { display: none; }
@media (max-width: 820px) {
  :root { --top-h: 54px; }
  .topnav, .top-desktop { display: none !important; }
  .bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--nav-h) + var(--safe-b)); padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
    background: var(--glass); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-top: 1px solid var(--line);
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--faint); position: relative; }
  .bottomnav a .ic { transition: transform .25s var(--spring); }
  .bottomnav a.on { color: var(--accent); }
  .bottomnav a.on .ic { transform: translateY(-2px) scale(1.08); }
  .bottomnav a.on::before { content: ""; position: absolute; top: 6px; width: 40px; height: 30px; border-radius: 15px; background: color-mix(in srgb, var(--accent) 12%, transparent); z-index: -1; }
  .bottomnav .fab { margin-top: -18px; }
  .bottomnav .fab span.fabc { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px -8px var(--accent); }
  .main { padding-bottom: calc(var(--nav-h) + var(--cmd-h) + 1.5rem + var(--safe-b)); }
}

/* ---------- command bar (footer search) ---------- */
.cmdbar {
  position: fixed; z-index: 44; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); width: min(940px, calc(100% - 24px));
  height: var(--cmd-h); display: flex; align-items: center; gap: 0; padding: 6px; border-radius: 20px;
  background: var(--glass); backdrop-filter: saturate(1.8) blur(22px); -webkit-backdrop-filter: saturate(1.8) blur(22px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-3); transition: box-shadow .25s, border-color .25s;
}
.cmdbar:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--shadow-3), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.cmdbar .cmd-in { flex: 0 0 30%; min-width: 0; display: flex; align-items: center; gap: .45rem; padding: 0 .55rem; height: 100%; border-right: 1px solid var(--line); }
.cmdbar .cmd-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; height: 100%; }
.cmdbar .cmd-in input::placeholder { color: var(--faint); transition: opacity .3s; }
.cmdbar .cmd-in .ic { color: var(--accent); }
.cmdbar .cmd-actions { flex: 1 1 70%; min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 .35rem; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.cmdbar .cmd-actions::-webkit-scrollbar { display: none; }
.cmd-act {
  --g: var(--g-nav);
  flex: none; display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .7rem 0 .55rem; border-radius: 12px; border: 1px solid transparent;
  background: color-mix(in srgb, var(--g) 9%, transparent); color: var(--g); font-weight: 650; font-size: .82rem; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--spring), background .2s; animation: actIn .3s var(--spring) both; scroll-snap-align: start;
}
.cmd-act:hover, .cmd-act.sel { background: color-mix(in srgb, var(--g) 18%, transparent); border-color: color-mix(in srgb, var(--g) 35%, transparent); transform: translateY(-1px); }
.cmd-act.on { background: var(--g); color: #fff; }
.cmd-act .lbl { color: var(--text); }
.cmd-act.on .lbl { color: #fff; }
@keyframes actIn { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.cmd-act:nth-child(2) { animation-delay: .02s } .cmd-act:nth-child(3) { animation-delay: .04s } .cmd-act:nth-child(4) { animation-delay: .06s } .cmd-act:nth-child(5) { animation-delay: .08s } .cmd-act:nth-child(n+6) { animation-delay: .1s }
.cmd-empty { color: var(--faint); font-size: .85rem; padding: 0 .5rem; white-space: nowrap; }
.cmd-kbd { font-size: .7rem; color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
@media (max-width: 820px) {
  .cmdbar { bottom: calc(var(--nav-h) + 8px + var(--safe-b)); height: 50px; border-radius: 16px; width: calc(100% - 16px); }
  .cmdbar .cmd-in { flex-basis: 34%; }
  .cmd-act { height: 36px; padding: 0 .55rem; }
  .cmd-act .lbl { display: none; }
  .cmd-kbd { display: none; }
  .cmdbar.typing .cmd-act .lbl { display: inline; }
}

/* ---------- cards ---------- */
.card { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.grid-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ev-card .cover { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2))); overflow: hidden; }
.ev-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.ev-card .cover .art { position: absolute; inset: 0; opacity: .25; color: #fff; display: grid; place-items: center; }
.ev-card .cover .art svg { width: 46%; height: auto; }
.ev-card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .45rem; }
.ev-card .title { font-weight: 750; font-size: 1.02rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card .meta { display: flex; gap: .7rem; color: var(--muted); font-size: .8rem; align-items: center; flex-wrap: wrap; }
.ev-card .meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pill { position: absolute; top: .7rem; left: .7rem; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: var(--r-pill); font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); }
.pill.live { background: #ef4444; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.pill.r { left: auto; right: .7rem; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.7);} }
.cat { --g: var(--accent); display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--g); }

.section-h { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.8rem 0 .9rem; }
.section-h h2 { display: flex; gap: .5rem; align-items: center; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }

/* hero — full-bleed under nav; top pad keeps eyebrow clear of sticky nav */
.hero {
  position: relative; border-radius: 0; margin: 0 calc(50% - 50vw); width: 100vw; max-width: 100vw;
  padding: clamp(3.3rem, 7.2vw, 4.2rem) clamp(1.2rem, 5vw, 3.4rem) clamp(1.6rem, 4vw, 3rem);
  overflow: hidden; color: #fff;
  background: radial-gradient(60rem 30rem at 0% 0%, color-mix(in srgb, var(--accent) 95%, #000), transparent),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #0b1020), color-mix(in srgb, var(--accent-2) 75%, #0b1020));
}
.hero::after { content: none; display: none; }
.hero .hero-art {
  position: absolute; right: max(1rem, 4vw); top: 50%; transform: translateY(-42%);
  width: min(280px, 38vw); height: min(280px, 38vw); opacity: .22; pointer-events: none;
}
.hero .hero-art svg { width: 100%; height: 100%; }
.hero .eyebrow { margin-bottom: .65rem; }
.hero h1 { margin-top: .1rem; }
.hero p { opacity: .88; max-width: 38rem; margin-top: 1rem; font-size: 1.08rem; }
.hero .btn:not(.primary) { --b: rgba(255,255,255,.14); --bt: #fff; border-color: rgba(255,255,255,.22); }
.hero .btn.primary { --b: #fff; --bt: #0b1020; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.join-box { display: flex; gap: .5rem; margin-top: 1.4rem; max-width: 520px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px; border-radius: var(--r-pill); backdrop-filter: blur(10px); }
.join-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 1rem; outline: 0; font-size: 1.05rem; letter-spacing: .08em; text-transform: lowercase; }
.join-box input::placeholder { color: rgba(255,255,255,.65); letter-spacing: 0; text-transform: none; }

.stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 1rem; border-radius: var(--r-md); background: var(--s1); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat .n { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.stat .l { color: var(--muted); font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.stat::after { content: ""; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: color-mix(in srgb, var(--g, var(--accent)) 12%, transparent); }
.spark { display: flex; align-items: end; gap: 4px; height: 70px; }
.spark i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); min-height: 4px; transform-origin: bottom; animation: grow .7s var(--spring) both; }
@keyframes grow { from { transform: scaleY(0); } }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: .7rem .9rem; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.tabs button.on { color: var(--accent); border-color: var(--accent); }
.list-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: var(--r-sm); transition: background .15s; }
.list-item:hover { background: var(--s2); }
button.list-item { width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
button.list-item:hover { background: var(--s2); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .ic { margin: 0 auto .6rem; color: var(--faint); }
.skel { background: linear-gradient(90deg, var(--s2), var(--s3), var(--s2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* social post / comments */
.post { padding: 1rem; display: flex; gap: .8rem; }
.post .head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.post .name { font-weight: 700; }
.post .text { white-space: pre-wrap; word-break: break-word; margin-top: .25rem; }
.post .acts { display: flex; gap: .2rem; margin-top: .4rem; margin-left: -.5rem; }
.act { display: inline-flex; align-items: center; gap: .35rem; height: 34px; padding: 0 .6rem; border-radius: var(--r-pill); border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .85rem; font-weight: 600; transition: color .15s, background .15s; }
.act:hover { background: var(--s2); color: var(--text); }
.act.liked { color: #e11d48; }
.act.liked .ic { fill: currentColor; animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.35); } }
.replies { margin-left: 2.6rem; border-left: 2px solid var(--line); padding-left: .6rem; }
.composer { display: flex; gap: .6rem; align-items: flex-end; padding: .7rem; }
.composer .textarea { min-height: 46px; height: 46px; border-radius: 16px; }

/* ---------- Redesigned social feed ---------- */
.feed-page-head h1 { display: flex; align-items: center; gap: .55rem; }
.feed-page-head h1 .ic { color: var(--accent); }
.feed-layout { max-width: 680px; margin: 0 auto; }
.feed-main { gap: .85rem; }
.feed-stream { display: flex; flex-direction: column; gap: .85rem; }
.feed-sentinel { height: 32px; }

.feed-compose {
  padding: .95rem 1.05rem .85rem;
  border-radius: 18px;
  box-shadow: var(--shadow-1);
}
.feed-compose-top { display: flex; gap: .75rem; align-items: flex-start; }
.feed-compose-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  resize: none; min-height: 44px; max-height: 160px; padding: .35rem 0;
  font: inherit; color: var(--text); line-height: 1.45;
}
.feed-compose-input::placeholder { color: var(--faint); }
.feed-compose-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-top: .65rem; padding-top: .55rem;
  border-top: 1px solid var(--line);
}
.feed-compose-tools { display: flex; align-items: center; gap: .15rem; }
.feed-compose-sep { width: 1px; height: 16px; background: var(--line); margin: 0 .2rem; }
.feed-post-btn {
  border-radius: 999px !important; padding: .45rem 1rem !important;
  font-weight: 700; gap: .35rem;
}
.feed-compose-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.feed-compose-thumbs { gap: .4rem; margin-top: .5rem; }

.feed-post {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1rem 1.1rem .85rem; border-radius: 18px;
  box-shadow: var(--shadow-1);
}
.feed-post-head { display: flex; align-items: center; gap: .65rem; }
.feed-post-av { flex: none; }
.feed-post-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .4rem; min-width: 0;
}
.feed-post-meta .name { font-weight: 700; color: var(--text); }
.feed-post-kind { display: inline-flex; align-items: center; gap: .25rem; }
.feed-post-kind .ic { opacity: .7; }
.feed-more { margin-left: auto; flex: none; color: var(--muted); }
.feed-post-text {
  white-space: pre-wrap; word-break: break-word; line-height: 1.5;
  color: var(--text); font-size: .95rem;
}
.feed-post-img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: 14px; display: block;
}
.feed-link-chip {
  display: inline-flex; align-items: center; gap: .4rem; max-width: 100%;
  margin-top: .35rem; padding: .35rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--s2));
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  color: var(--muted); font-size: .8rem; text-decoration: none;
}
.feed-link-chip:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.feed-link-ic { display: inline-flex; color: var(--accent); flex: none; }
.feed-link-url {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28rem;
}
.feed-event { margin-top: .15rem; }
.feed-event-cover {
  position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
}
.feed-event-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-event-art {
  position: absolute; inset: 0; opacity: .28; color: #fff;
  display: grid; place-items: center;
}
.feed-event-art svg { width: 42%; height: auto; }
.feed-event-pill {
  position: absolute; left: .7rem; top: .7rem;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .6rem; border-radius: 999px;
  background: rgba(15, 23, 42, .72); color: #fff;
  font-size: .72rem; font-weight: 650; backdrop-filter: blur(6px);
}
.feed-event-pill.live { background: #e11d48; }
.feed-event-body { padding: .75rem .15rem .15rem; display: flex; flex-direction: column; gap: .4rem; }
.feed-event-cat {
  display: inline-flex; align-items: center; gap: .3rem; width: fit-content;
  padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 750;
  letter-spacing: .04em; color: var(--g, var(--accent));
  background: color-mix(in srgb, var(--g, var(--accent)) 12%, transparent);
}
.feed-event-title {
  font-weight: 750; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em;
  color: var(--text);
}
.feed-post-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; flex-wrap: wrap; margin-top: .15rem;
}
.feed-post .acts { display: flex; align-items: center; gap: .1rem; margin: 0; }
.feed-view-event {
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--accent) 12%, transparent) !important;
  color: var(--accent) !important; border: 0 !important;
  font-weight: 700; gap: .3rem;
}
.feed-view-event:hover { background: color-mix(in srgb, var(--accent) 18%, transparent) !important; }
.feed-thread { margin-top: .2rem; }

@media (max-width: 640px) {
  .feed-layout { max-width: 100%; }
  .feed-link-url { max-width: 14rem; }
  .feed-event-title { font-size: 1rem; }
}

/* sheets & modals */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(4,8,18,.45); backdrop-filter: blur(3px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 81; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); max-height: min(88dvh, 860px);
  display: flex; flex-direction: column; background: var(--s1); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-3); padding-bottom: var(--safe-b);
  animation: sheetUp .38s var(--spring) both; touch-action: pan-y;
}
.sheet.closing { animation: sheetDown .22s ease-in both; }
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes sheetDown { to { transform: translate(-50%, 100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 2px; flex: none; cursor: grab; }
.sheet .sh-head { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem .6rem 1.2rem; }
.sheet .sh-head h3 { flex: 1; display: flex; gap: .5rem; align-items: center; }
.sheet .sh-body { overflow-y: auto; padding: 0 1.2rem 1.2rem; overscroll-behavior: contain; }
@media (min-width: 821px) {
  .sheet { top: 50%; bottom: auto; transform: translate(-50%, -50%); border-radius: 24px; animation: modalIn .3s var(--spring) both; }
  .sheet.closing { animation: modalOut .18s ease-in both; }
  .sheet .grab { display: none; }
  @keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
  @keyframes modalOut { to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
}
.menu { position: fixed; z-index: 90; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); animation: modalPop .18s var(--spring) both; }
@keyframes modalPop { from { opacity: 0; transform: scale(.94); } }
.menu button { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 550; }
.menu button:hover { background: color-mix(in srgb, var(--g, var(--accent)) 10%, transparent); color: var(--g, var(--text)); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* toasts */
#toasts { position: fixed; z-index: 1100; top: calc(var(--safe-t) + 12px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border-radius: 16px; background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); animation: toastIn .35s var(--spring) both; font-weight: 550; font-size: .92rem; }
.toast .ic { color: var(--g, var(--accent)); }
.toast.out { animation: toastOut .25s ease-in both; }
.toast-act { margin: -.2rem -.3rem -.2rem .2rem; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* install banner */
.install { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(var(--cmd-h) + 28px + var(--safe-b)); width: min(560px, calc(100% - 24px));
  display: flex; gap: .8rem; align-items: center; padding: .8rem .9rem; border-radius: 20px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #000), color-mix(in srgb, var(--accent-2) 85%, #000)); box-shadow: var(--shadow-3); animation: toastIn .5s var(--spring) both; }
.install .logo-tile { width: 46px; height: 46px; border-radius: 13px; background: #fff; color: var(--accent); display: grid; place-items: center; flex: none; }
.install .btn { --b: #fff; --bt: #0b1020; border: 0; }
.install .x { color: #fff; }
.install.inline { position: relative; left: auto; bottom: auto; transform: none; width: 100%; margin-top: 1rem; animation: none; }
@media (max-width: 820px) { .install:not(.inline) { bottom: calc(var(--nav-h) + 66px + var(--safe-b)); } }

/* QR */
.qr-wrap { display: grid; place-items: center; padding: 1rem; border-radius: var(--r-lg); background: var(--s2); }
.qr-wrap img { width: min(320px, 100%); height: auto; border-radius: 18px; box-shadow: var(--shadow-2); }

/* bible */
.verse { padding: .15rem 0; line-height: 1.75; font-size: 1.08rem; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
.verse sup { color: var(--g-faith); font-weight: 700; font-family: Inter, system-ui, sans-serif; font-size: .7em; margin-right: .3rem; }
.verse.sel { background: color-mix(in srgb, var(--g-faith) 13%, transparent); border-radius: 6px; }
[dir="rtl"] .verse sup { margin-right: 0; margin-left: .3rem; }

/* settings */
.set-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--g) 13%, transparent); color: var(--g); flex: none; }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--s1); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .2s var(--spring); }
.swatch:hover { transform: scale(1.12); }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }

.prose { line-height: 1.65; }
.prose h1, .prose h2, .prose h3 { margin: .8rem 0 .2rem; font-size: 1em; font-weight: 650; letter-spacing: 0; }
.prose ul { padding-left: 1.2rem; margin: .4rem 0; }
.prose p { margin: .4rem 0; }
.ai-box { --g: var(--g-ai); border-radius: var(--r-md); padding: 1rem; background: linear-gradient(135deg, color-mix(in srgb, #7c3aed 9%, var(--s1)), color-mix(in srgb, #db2777 7%, var(--s1))); border: 1px solid color-mix(in srgb, #7c3aed 22%, transparent); }
.ai-box .tag { display: inline-flex; gap: .3rem; align-items: center; font-size: .72rem; font-weight: 800; color: #9333ea; text-transform: uppercase; letter-spacing: .06em; }

/* Icon buttons with soft background (used on AI explain actions) */
.icon-btn.has-bg {
  background: color-mix(in srgb, var(--g, var(--accent)) 11%, var(--s2));
  border: 1px solid color-mix(in srgb, var(--g, var(--accent)) 18%, var(--line));
  border-radius: 14px;
}
.icon-btn.has-bg:hover {
  background: color-mix(in srgb, var(--g, var(--accent)) 18%, var(--s2));
  color: var(--g, var(--accent));
}
.ai-explain-acts .icon-btn.has-bg { width: 44px; height: 44px; }
.icon-btn.has-bg.sm { width: 36px; height: 36px; border-radius: 12px; }
.ai-verse-card { margin: 0 0 .25rem; max-width: 100%; }
.ai-verse-card .pc-text {
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  line-height: 1.55;
  max-height: 9.5em;
  overflow: hidden;
}

/* Bible topic / phrase search results */
.bible-hits { display: flex; flex-direction: column; gap: .75rem; }
.bible-hit-ref {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 700; font-size: 1.02rem;
  color: var(--g-faith, var(--accent)); cursor: pointer; text-align: left;
}
.bible-hit-ref:hover { text-decoration: underline; }
.bible-hit .verse-wrap {
  margin-top: .35rem;
  max-height: 9em;
  overflow: hidden;
}
.verse-wrap.compact {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: .35rem;
}
.verse-wrap.compact .verse { font-size: inherit; line-height: inherit; }
.passage-card .verse-wrap { margin-top: .45rem; }
.passage-card .verse-wrap .verse { font-size: 1.02rem; line-height: 1.6; }

.split { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--top-h) + 1rem); }

/* Dashboard vertical rhythm — extra spacing to avoid jagged stacked sections */
.dash-activity { margin-top: 1.35rem; }
.dash-split { margin-top: 1.75rem; gap: 1.85rem; }
.dash-main-col { gap: 1.85rem !important; }
.dash-side-col { gap: 1.5rem !important; }
.dash-block { display: flex; flex-direction: column; gap: .85rem; }
.dash-block .section-h { margin-top: 0; margin-bottom: .55rem; }
.dash-block + .dash-block { margin-top: .55rem; }
.stats { gap: 1rem; }
.dash-hero { margin-bottom: .25rem; }
.dash-list-head { margin-bottom: .15rem; }

/* Create page preview label */
.preview-label {
  display: flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 650; color: var(--muted);
  margin-bottom: .35rem;
}
.preview-eye {
  width: 28px; height: 28px; border-radius: 9px;
  display: inline-grid; place-items: center; flex: none;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.preview-eye .ic { width: 14px; height: 14px; }
.kbd { font: 600 .75rem ui-monospace, monospace; padding: .1rem .4rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--s2); }
.code-big { font: 800 1.4rem ui-monospace, SFMono-Regular, monospace; letter-spacing: .12em; }

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; } }

/* ---------- shared helpers added for pages ---------- */
.gap-xs { gap: .3rem; } .gap-s { gap: .5rem; } .col { display: flex; flex-direction: column; gap: .7rem; }
.btn.xs { height: 28px; padding: 0 .55rem; font-size: .75rem; border-radius: 9px; }
.input.sm { height: 38px; font-size: .88rem; } .input.lg { height: 52px; font-size: 1.05rem; }
.i { display: inline-flex; }
.divider { height: 1px; background: var(--line); margin: .6rem 0; }
.page-head { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.2rem; }
.page-head h1 { display: flex; align-items: center; gap: .5rem; font-size: clamp(1.25rem, 2.4vw, 1.45rem); }
.page-head h1 .ic { width: 22px; height: 22px; }
.page-head h1 .ic { color: var(--accent); }

/* Venues list header: icon+title left, New venue right */
.venues-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; width: 100%; margin-bottom: .25rem;
}
.venues-head h1 {
  display: flex; align-items: center; gap: .5rem; margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.45rem); font-weight: 600;
}
.venues-head h1 .venue-head-ic {
  display: inline-flex; color: var(--accent); flex: none;
}
.venues-head h1 .venue-head-ic .ic { width: 22px; height: 22px; }
.venues-head .btn { flex: none; margin-left: auto; }

/* Per-venue colored mark + section bands (homepage-style stripes) */
.venue-mark {
  --g: var(--accent);
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: var(--g); background: color-mix(in srgb, var(--g) 14%, transparent); flex: none;
}
.venue-mark .ic { width: 20px; height: 20px; }
.venue-sec-h {
  display: flex; align-items: center; gap: .55rem; margin: 0 0 .65rem;
  cursor: default;
}
.venue-sec-h h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.venue-band {
  margin-top: 1rem; padding: 1rem clamp(.85rem, 3vw, 1.25rem);
  border-radius: var(--r-lg);
}
.venue-band.band-a { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.venue-band.band-b { background: color-mix(in srgb, var(--accent-2, var(--accent)) 5%, var(--bg)); }
.venue-band.band-c { background: color-mix(in srgb, #059669 5%, var(--bg)); }

.auth-wrap { min-height: 70dvh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: min(440px, 100%); box-shadow: var(--shadow-3); }
.auth-logo { color: var(--accent); display: flex; justify-content: center; margin-bottom: .5rem; }
.google-btn { gap: .6rem; --b: var(--s1); --bt: var(--text); border: 1px solid var(--line-2); font-weight: 600; }
.google-btn svg { flex: none; }
.auth-or { display: flex; align-items: center; gap: .7rem; margin: .9rem 0; color: var(--faint); font-size: .8rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-msg:empty { display: none; }
.auth-msg { margin-bottom: .2rem; }
.auth-note { display: flex; gap: .55rem; align-items: flex-start; padding: .7rem .8rem; border-radius: var(--r-md, 12px); font-size: .9rem; line-height: 1.45;
  background: color-mix(in srgb, var(--accent) 9%, var(--s1)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.auth-note svg { flex: none; margin-top: .1rem; color: var(--accent); }
.auth-note.error { background: color-mix(in srgb, #dc2626 9%, var(--s1)); border-color: color-mix(in srgb, #dc2626 30%, transparent); }
.auth-note.error svg { color: #dc2626; }
.auth-note.ok { background: color-mix(in srgb, #059669 9%, var(--s1)); border-color: color-mix(in srgb, #059669 30%, transparent); }
.auth-note.ok svg { color: #059669; }
.pw-wrap { position: relative; }
.pw-wrap .input { width: 100%; padding-right: 2.8rem; }
.pw-eye { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); }
.verify-banner { display: flex; align-items: center; gap: .6rem; margin: .6rem auto 0; width: min(1200px, calc(100% - 1.5rem)); padding: .55rem .8rem; border-radius: var(--r-lg);
  background: color-mix(in srgb, #d97706 10%, var(--s1)); border: 1px solid color-mix(in srgb, #d97706 30%, transparent); font-size: .9rem; }
.verify-banner > span:first-child { color: #d97706; display: flex; }
.session-row { padding: .45rem 0; border-top: 1px solid var(--line); }
.session-row:first-child { border-top: 0; }
.dash-hero, .profile-hero { position: relative; overflow: hidden; padding: clamp(1.1rem, 3vw, 1.8rem); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--s1)), color-mix(in srgb, var(--accent-2) 8%, var(--s1))); }
.profile-hero .band, .speaker-card .band { position: absolute; inset: 0 0 auto; height: 64px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .9; }
.profile-hero > :not(.band) { position: relative; }
.ev-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(1.2rem, 4vw, 2.6rem); color: #fff; background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2))); box-shadow: var(--shadow-3); display: flex; flex-direction: column; gap: .8rem; }
.ev-hero .muted { color: rgba(255,255,255,.82); }
.ev-meta { gap: .9rem; font-size: .9rem; } .ev-meta span { display: inline-flex; gap: .3rem; align-items: center; }
.cards-row > * { width: min(300px, 80vw); }
.speaker-cards > * { width: 180px; }
.speaker-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 2rem .8rem 1rem; text-align: center; }
.speaker-card .av { position: relative; box-shadow: 0 0 0 4px var(--s1); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 1rem; }
.set-grid.diag { grid-template-columns: repeat(2, 1fr); gap: .4rem .8rem; }
.set-card { display: flex; flex-direction: column; gap: .8rem; }
.set-h { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; } .set-h .ic { color: var(--accent); }
.bible-tools { position: sticky; top: calc(var(--top-h) + 8px); z-index: 5; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.bible-page { min-height: 50vh; }
.bible-title { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.7rem; }
.bible-title-block { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.surah-meaning {
  font-size: .78rem; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
}
.verse-wrap { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.15rem; line-height: 1.75; margin-top: 1rem; }
.verse-wrap .v { cursor: pointer; border-radius: 6px; transition: background .15s; }
.verse-wrap .v:hover { background: color-mix(in srgb, var(--g-faith) 8%, transparent); }
.verse-wrap .v.picked { background: color-mix(in srgb, var(--g-faith) 20%, transparent); }
.verse-wrap sup { color: var(--g-faith); font-weight: 700; font-family: Inter, system-ui, sans-serif; font-size: .65em; margin-right: 2px; }
.sel-bar { position: sticky; bottom: calc(var(--cmd-h) + 30px); z-index: 6; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .55rem; border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); margin: .6rem 0; }
.sel-bar.hidden { display: none; }
/* Whiteboard: paper on a quiet desk, one compact tool row */
.wb { position: relative; flex: 1; min-height: 0; background: var(--s2, #eef1f5); touch-action: none; outline: none; overflow: hidden; cursor: crosshair; }
[data-theme="dark"] .wb { background: #080b11; }
.wb[data-tool="move"] { cursor: default; } .wb[data-tool="text"] { cursor: text; }
.wb.drop { box-shadow: inset 0 0 0 2px var(--accent); }
.wb-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wb-pagetag { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 650; background: var(--glass); border: 1px solid var(--line); color: var(--muted); pointer-events: none; font-variant-numeric: tabular-nums; }
.wb-text-in { position: absolute; z-index: 3; min-width: 80px; padding: 0 2px; margin: 0; border: 1px dashed var(--accent); border-radius: 4px; background: transparent; outline: 0; resize: none; overflow: hidden; line-height: 1.25; font-family: Inter, system-ui, sans-serif; white-space: pre; }
.wb-tools { display: flex; align-items: center; gap: 2px; padding: 4px 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--s1); flex: none; }
.wb-tools::-webkit-scrollbar { display: none; }
.wb-tools .icon-btn { width: 34px; height: 34px; flex: none; }
.wb-tools .icon-btn.sm { width: 28px; height: 28px; }
.wb-tools .icon-btn:disabled { opacity: .35; pointer-events: none; }
.wb-tools .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; flex: none; }
.wb-color { width: 20px; height: 20px; margin: 0 2px; padding: 0; border-radius: 50%; border: 2px solid var(--s1); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; flex: none; transition: transform .15s var(--spring, ease); }
.wb-color:hover { transform: scale(1.12); }
.wb-color.ink { background: linear-gradient(135deg, #111827 50%, #e8edf5 50%); }
.wb-color.on { box-shadow: 0 0 0 2px var(--accent); }
.wb-color.custom { -webkit-appearance: none; appearance: none; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #0ea5e9, #8b5cf6, #ef4444); overflow: hidden; }
.wb-color.custom::-webkit-color-swatch-wrapper { padding: 0; } .wb-color.custom::-webkit-color-swatch { border: 0; opacity: 0; }
.wb-sizebox { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; flex: none; }
.wb-size-dot { display: inline-block; border-radius: 50%; background: var(--text); flex: none; }
.wb-size { width: 76px; accent-color: var(--accent); }
.wb-size:disabled { opacity: .35; }
.wb-pages { display: inline-flex; align-items: center; gap: 0; flex: none; }
.wb-pg { min-width: 2.4rem; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--muted); }
.wbp { display: flex; gap: .75rem; height: calc(100dvh - var(--top-h) - var(--cmd-h) - 3.2rem); min-height: 380px; }
.wb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.wb-head { display: flex; align-items: center; gap: .5rem; padding: 6px 8px; border-bottom: 1px solid var(--line); flex: none; }
.wb-title { border: 0; background: none; font: inherit; font-weight: 700; font-size: 1rem; padding: 4px 6px; border-radius: 8px; cursor: text; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.wb-title:hover { background: var(--s2); }
.wb-side { width: 236px; flex: none; display: flex; flex-direction: column; gap: .4rem; padding: .6rem; border-radius: var(--r-lg, 18px); background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.wb-side.hidden { display: none; }
.wb-side-head { display: flex; align-items: center; gap: .5rem; padding: 0 .2rem .2rem; }
.wb-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.wb-item { display: flex; align-items: center; gap: .55rem; padding: .45rem .5rem; border-radius: 12px; cursor: pointer; }
.wb-item:hover { background: var(--s2); } .wb-item.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.wb-item-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--s2); color: var(--muted); flex: none; }
.wb-item.on .wb-item-ic { color: var(--accent); }
.wb-item-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .wb-item-txt b { font-size: .88rem; font-weight: 650; }
.wb-side-note { padding: .3rem .2rem 0; line-height: 1.4; }
@media (max-width: 820px) {
  .wbp { height: calc(100dvh - var(--top-h) - var(--nav-h) - var(--cmd-h) - 2rem); }
  .wb-side { position: fixed; z-index: 60; left: 8px; right: 8px; top: calc(var(--top-h) + 8px); max-height: 60vh; width: auto; box-shadow: var(--shadow-3); }
  .wb-title { max-width: 46vw; }
}
.compose-card { display: flex; flex-direction: column; gap: .5rem; padding: .7rem; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line-2); }
.compose-card textarea { width: 100%; resize: vertical; border: 0; outline: 0; background: transparent; min-height: 60px; }
.tline { display: flex; gap: .6rem; line-height: 1.5; padding: .2rem 0; } .tline .ts { flex: none; width: 3.4rem; color: var(--faint); font-size: .75rem; font-variant-numeric: tabular-nums; padding-top: 3px; }
.transcript { display: flex; flex-direction: column; gap: .2rem; }
.flash { animation: flash 1s ease; } @keyframes flash { from { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
.picked { outline: 2px solid var(--accent); }
.msgs { display: flex; flex-direction: column; gap: .5rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } @media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.qr-mini { width: 96px; height: 96px; border-radius: 12px; }
.on-dark { color: #fff; }
.plain { list-style: none; padding: 0; margin: 0; }
.list { display: flex; flex-direction: column; gap: 2px; }
.static { cursor: default; }
.glass { background: var(--glass); backdrop-filter: blur(14px); }

/* hero sits on a saturated gradient: keep accents legible */
.hero .eyebrow { color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.14); text-transform: none; letter-spacing: 0.02em; }
.hero .grad-text { background: linear-gradient(100deg, #ffffff, #c7f9ff 45%, #ffe39a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- WhatsApp-style pill composer */
.wa { display: flex; flex-direction: column; gap: .35rem; }
.wa-row { display: flex; align-items: flex-end; gap: .4rem; }
.wa-pill { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 0; padding: 2px 4px; border-radius: 24px; background: var(--s1); border: 1px solid var(--line-2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.wa-pill:focus-within { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.wa-pill textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: .95rem; line-height: 1.35; padding: .58rem .3rem; min-height: 40px; max-height: 140px; }
.wa-pill textarea::placeholder { color: var(--faint); }
.wa-ib { flex: none; width: 36px; height: 36px; margin: 2px 0; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.wa-ib:hover:not(:disabled) { background: var(--s2); color: var(--text); }
.wa-ib.sm { width: 28px; height: 28px; margin: 0; }
.wa-ib:disabled { opacity: .45; cursor: default; }
.wa-act { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--s1)); color: var(--accent); transition: transform .18s var(--spring), background .2s, color .2s; }
.wa-act:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 16%, var(--s1)); }
.wa-act:active:not(:disabled) { transform: scale(.92); }
.wa-act[data-mode="send"]:not(.ready) { color: var(--faint); background: var(--s2); border-color: var(--line); }
.wa-act.ready svg { animation: wa-pop .22s var(--spring); }
.wa-act.rec { color: #dc2626; background: color-mix(in srgb, #dc2626 10%, var(--s1)); border-color: color-mix(in srgb, #dc2626 25%, var(--line)); }
.wa-act:disabled { opacity: .5; cursor: default; }
@keyframes wa-pop { from { transform: scale(.6) rotate(-12deg); opacity: .3; } }
.wa-rec { flex: 1; display: flex; align-items: center; gap: .55rem; padding: 0 .4rem; min-height: 40px; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.wa-rec[hidden] { display: none; }
.wa-rec .dot { width: 9px; height: 9px; border-radius: 50%; background: #dc2626; animation: wa-blink 1s infinite; }
@keyframes wa-blink { 50% { opacity: .25; } }
.wa .att-prev { display: flex; align-items: center; gap: .45rem; padding: .3rem .4rem .3rem .5rem; border-radius: 12px; background: var(--s2); font-size: .8rem; }
.wa .att-prev[hidden] { display: none; }
.wa .att-prev img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }
.wa .att-prev .i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--s1); color: var(--muted); }
.wa.off { opacity: .7; }
.comment-compose { display: flex; flex-direction: column; gap: .25rem; padding: .2rem 0 .4rem; }

/* ---------------------------------------------------------------- emoji popover */
.emoji-pop { position: fixed; z-index: 400; width: min(320px, calc(100vw - 16px)); max-height: min(340px, 60vh); display: flex; flex-direction: column; gap: .4rem; padding: .5rem; border-radius: 16px; background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); animation: pop-in .16s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.emoji-search { width: 100%; height: 34px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--s2); color: var(--text); font: inherit; font-size: .88rem; outline: 0; }
.emoji-search:focus { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.emoji-label { font-size: .7rem; font-weight: 600; letter-spacing: .02em; color: var(--faint); padding: 0 .2rem; text-transform: uppercase; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; overflow-y: auto; overscroll-behavior: contain; }
.emoji-cell { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; font-size: clamp(1.1rem, 5vw, 1.3rem); line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .12s, transform .12s; }
.emoji-cell:hover, .emoji-cell:focus-visible { background: var(--s2); transform: scale(1.12); outline: 0; }
.emoji-empty { grid-column: 1 / -1; padding: .8rem; text-align: center; color: var(--faint); font-size: .85rem; }
.wa-sugg { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: 0 .1rem; }
.wa-sugg[hidden] { display: none; }
.wa-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; height: 32px; padding: 0 .75rem 0 .55rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--s1); color: var(--text); font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; transition: background .15s, transform .15s; }
.wa-chip:hover { background: var(--s2); }
.wa-chip:active { transform: scale(.96); }
.wa-chip.em { padding: 0; width: 34px; justify-content: center; }
.wa-chip .g { font-size: 1.1rem; line-height: 1; }
.cmd-act .glyph { font-size: 1.1rem; line-height: 1; width: 18px; height: 18px; display: inline-grid; place-items: center; }
/* sounds tool */
.sound-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .45rem; }
.sound-card { position: relative; display: flex; align-items: stretch; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); overflow: hidden; }
.sound-play { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; padding: .6rem .65rem; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; transition: background .15s; }
.sound-play:hover:not(:disabled) { background: var(--s3); }
.sound-play:active:not(:disabled) .em { transform: scale(1.25); }
.sound-play .em { font-size: 1.25rem; transition: transform .2s var(--spring); }
.sound-play b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sound-play:disabled { opacity: .5; cursor: default; }
.sound-card .icon-btn { align-self: center; margin-right: .3rem; }
/* alignment: setting rows stack label + hint consistently */
.set-row .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-row .grow > b { font-weight: 600; line-height: 1.25; }
.set-row .grow > small { display: block; line-height: 1.3; }
.set-row > .switch, .set-row > .btn { flex: none; }
.set-row .grow { flex: 1 1 10rem; }
.set-row:has(> select) { flex-wrap: wrap; row-gap: .55rem; }
.set-row > select { flex: 1 1 100%; min-width: 0; max-width: none; margin-left: calc(38px + 1rem); text-overflow: ellipsis; }
/* ---- passage card (feed posts, chat, composer) ---- */
.passage-card { margin: .6rem 0 0; padding: .75rem .9rem .8rem; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--g-faith) 9%, var(--s1)), var(--s1) 70%); border: 1px solid color-mix(in srgb, var(--g-faith) 20%, var(--line)); position: relative; }
.passage-card .pc-head { display: flex; align-items: center; gap: .4rem; font-size: .8rem; }
.passage-card .pc-ic { color: var(--g-faith); display: inline-grid; }
.passage-card .pc-ref { font-weight: 650; color: var(--text); text-decoration: none; }
.passage-card .pc-ref:hover { text-decoration: underline; }
.passage-card .pc-tr { color: var(--muted); font-size: .72rem; padding: 1px 6px; border-radius: 6px; background: var(--s2); }
.passage-card .pc-x { margin-left: auto; }
.passage-card .pc-text { margin: .4rem 0 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.02rem; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.passage-card .pc-text.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.passage-card.compact { padding: .6rem .75rem; }
.passage-card.compact .pc-text { font-size: .95rem; }
.passage-card.compact .pc-text.clamp { -webkit-line-clamp: 4; }
.passage-card .pc-more { border: 0; background: none; padding: .25rem 0 0; color: var(--g-faith); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.bubble .passage-card { margin-top: .3rem; min-width: 220px; max-width: 320px; }
.sel-bar .sel-ref { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; padding-left: .3rem; }
.sel-bar .sel-ref small { color: var(--muted); font-size: .72rem; }
/* Bible page: one slim sticky toolbar instead of a stacked card */
.bible-tools { flex-direction: row; align-items: center; gap: .4rem; padding: .4rem; border-radius: 16px; }
.bible-tools .bt-ic { display: inline-grid; place-items: center; width: 28px; color: var(--muted); flex: none; }
.bible-tools .input { height: 38px; min-width: 0; }
.bible-tools > input.input { flex: 1 1 220px; border-color: transparent; background: transparent; padding-left: 0; }
.bible-tools > input.input:focus { box-shadow: none; }
.bible-tools > select.input { flex: 0 1 auto; width: auto; max-width: 11rem; }
.bible-tools > select[aria-label="Chapter"] { max-width: 5.6rem; }
.bible-tools > select[aria-label="Bible translation"] { max-width: 6.5rem; }
@media (max-width: 720px) {
  .bible-tools { flex-wrap: wrap; }
  .bible-tools > input.input { flex-basis: calc(100% - 40px); }
  .bible-tools > select.input { flex: 1 1 0; max-width: none; }
}
.bible-page .verse { cursor: pointer; border-radius: 6px; transition: background .15s; }
.bible-page .verse:hover { background: color-mix(in srgb, var(--g-faith) 7%, transparent); }
@media (max-width: 640px) { .wb-tools { flex-wrap: wrap; row-gap: 2px; justify-content: flex-start; } .wb-tools .wb-size { width: 76px; } }
.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; flex: none; }
.spin.sm { width: 12px; height: 12px; border-width: 1.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Social-native type scale (fix 12): titles sit close to body size — no news-blog headlines. */
.ev-hero h1 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.2; margin: .35rem 0 .15rem; }
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.section-h h2 { font-size: 1.02rem; font-weight: 650; }
.section-h h2 .ic { width: 18px; height: 18px; }
.empty h2 { font-size: 1.1rem; } .empty h1 { font-size: 1.6rem; }

/* ---------- 2026-11 typography: Grok-like — near-uniform sizes, modest weight, no big headers ---------- */
body { letter-spacing: 0; }
h1, h2, h3, h4 { letter-spacing: -.005em; line-height: 1.3; }
h1, .page-head h1, .ev-hero h1 { font-size: 1.2rem; font-weight: 600; }
.hero h1 { font-size: 1.45rem; font-weight: 600; }
h2 { font-size: 1.05rem; font-weight: 600; }
h3, h4 { font-size: .98rem; font-weight: 600; }
.brand { font-weight: 600; }
strong, b { font-weight: 600; }
.btn { font-weight: 500; }
.eyebrow { font-weight: 500; letter-spacing: .02em; }
.venue-door .waiting { min-height: 50vh; }

/* homepage join: # centred vertically with breathing room before the input */
.join-box { align-items: center; }
.join-box > svg { flex: 0 0 auto; align-self: center; display: block; margin: 0 0 0 .85rem; color: rgba(255,255,255,.85); }
.join-box input { align-self: stretch; padding: 0 1rem 0 .5rem; line-height: 1; }

/* v6: auth spacing — nothing overlaps */
.auth-card { display: flex; flex-direction: column; gap: .9rem; }
.auth-card > * { margin-top: 0; margin-bottom: 0; position: relative; }
.auth-card .divider { height: auto; background: none; display: flex; align-items: center; gap: .75rem; margin: .4rem 0; color: var(--muted, #8892a6); font-size: .8rem; text-transform: none; line-height: 1.4; }
.auth-card .divider::before, .auth-card .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-card .divider span { position: static; background: none; padding: 0; transform: none; }
.auth-card form { gap: .8rem !important; }
.auth-card form .btn.block { margin-top: .35rem; position: static; }
.auth-card form .btn.ghost { align-self: center; margin-top: .25rem; position: static; height: auto; min-height: 36px; }
.auth-card p, .auth-card .small { line-height: 1.5; }

/* v6: Stripe-like translation select */
select.tr-select { appearance: none; -webkit-appearance: none; height: 30px; min-height: 30px; padding: 0 1.8rem 0 .65rem; font-size: .82rem; font-weight: 500; border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); border-radius: 8px; background-color: var(--s1, #fff); box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 0 0 0 transparent; cursor: pointer; width: auto; max-width: 9rem;
  background-image: 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='%236b7385' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .55rem center; transition: border-color .15s, box-shadow .15s; }
select.tr-select:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
select.tr-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* Attendance list page */
.att-page { max-width: 860px; margin: 0 auto; }
.att-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--s1)), color-mix(in srgb, var(--accent-2, var(--accent)) 12%, var(--s1))); border-radius: var(--r-xl); padding: clamp(1.6rem, 4vw, 2.8rem); margin-bottom: 1.2rem; text-align: center; }
.att-brand { display: flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 750; letter-spacing: .04em; margin-bottom: .6rem; color: var(--accent); }
.att-hero h1 { margin: .2rem 0 .4rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.host-card { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .6rem 1rem; background: color-mix(in srgb, var(--s1) 80%, transparent); border-radius: 999px; }
.att-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.att-table th, .att-table td { padding: .65rem .5rem; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.att-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
@media print {
  .no-print, .topbar, .bottomnav, .btn { display: none !important; }
  .att-page { max-width: none; }
  .att-hero { background: #f8fafc !important; color: #111; -webkit-print-color-adjust: exact; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  body { background: #fff; }
}


/* full-width alternating section bands */
.home-band {
  margin: 0 calc(50% - 50vw); width: 100vw; max-width: 100vw;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 1.8rem;
}
.home-band > .band-inner { max-width: var(--page, 1120px); margin: 0 auto; }
.home-band.band-a { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.home-band.band-b { background: color-mix(in srgb, var(--accent-2, var(--accent)) 5%, var(--bg)); }
.home-band.band-c { background: color-mix(in srgb, #059669 5%, var(--bg)); }
.home-band.band-d { background: color-mix(in srgb, #db2777 5%, var(--bg)); }
.home-band .section-h { margin-top: .4rem; }

/* free-flowing category / vibe chips (no fixed width scroll) */
.chips.free-grid {
  display: flex; flex-wrap: wrap; gap: .55rem .65rem;
  overflow: visible;
}
.chips.free-grid .chip {
  flex: 0 1 auto; width: auto; min-width: 0;
  white-space: nowrap;
}

/* stronger feature card entrance */
.stagger.feat-stagger > * {
  animation: featIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.stagger.feat-stagger > *:nth-child(1) { animation-delay: .05s }
.stagger.feat-stagger > *:nth-child(2) { animation-delay: .12s }
.stagger.feat-stagger > *:nth-child(3) { animation-delay: .19s }
.stagger.feat-stagger > *:nth-child(4) { animation-delay: .26s }
.stagger.feat-stagger > *:nth-child(5) { animation-delay: .33s }
.stagger.feat-stagger > *:nth-child(6) { animation-delay: .4s }
@keyframes featIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.feat-stagger .card {
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  will-change: transform;
}
.feat-stagger .card:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--accent) 40%, transparent);
  z-index: 1;
}
.feat-stagger .card .ico-tile {
  transition: transform .35s var(--spring);
}
.feat-stagger .card:hover .ico-tile {
  transform: rotate(-8deg) scale(1.08);
}

/* themed section icons */
.section-h .ic, .section-h .ico-tile { color: var(--accent); }
.home-band .ico-tile { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

/* create page field rows: icon + label on one line */
.field-row { display: flex; flex-direction: column; gap: .45rem; width: 100%; }
.field-row .field-lab {
  display: flex; align-items: center; gap: .45rem; font-weight: 650; font-size: .88rem;
  width: 100%;
}
.field-row .field-lab .ico-lab {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.field-row .field-lab .ico-lab .ic { width: 15px; height: 15px; }
.field-row .field-lab .lab-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.field-row > .input,
.field-row > .textarea,
.field-row > .cat-select,
.field-row > .seg { width: 100%; }

/* rich category select */
.cat-select {
  appearance: none; width: 100%; padding: .7rem 2.4rem .7rem .9rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--s1) 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='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .85rem center/12px no-repeat;
  font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.cat-select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }

/* speaker / material suggest */
.suggest-box { position: relative; }
.suggest-list {
  position: absolute; z-index: 200; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 16px 40px -20px rgba(0,0,0,.35); max-height: 280px; overflow: auto;
}
.suggest-box { position: relative; z-index: 5; }
.suggest-box:focus-within { z-index: 200; }
.card.pad.layer { overflow: visible; }
.split .card { overflow: visible; }
.suggest-list .sug-thumb {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--s2); flex-shrink: 0;
}
.mat-thumb {
  width: 48px; height: 34px; max-width: 100px; max-height: 100px; border-radius: 6px; object-fit: cover; background: var(--s2); flex-shrink: 0;
}
.dash-list-head {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem;
}
.dash-list-head .ic {
  width: 18px; height: 18px; color: var(--accent);
}
.dash-list-head strong { font-weight: 700; }

.suggest-list button {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .75rem;
  border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.suggest-list button:hover { background: var(--s2); }
.chip-mat {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem .35rem .65rem;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--s2));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); font-size: .82rem; font-weight: 600;
  position: relative;
}
.chip-mat .rm {
  width: 18px; height: 18px; border-radius: 50%; border: 0; background: transparent; color: var(--muted);
  cursor: pointer; opacity: 0; font-weight: 700; line-height: 1;
}
.chip-mat:hover .rm { opacity: 1; color: #e11d48; }

/* animated venue line-art */
@keyframes venuePulse {
  0%, 100% { opacity: .35; stroke-dashoffset: 0; }
  50% { opacity: .75; stroke-dashoffset: 24; }
}
.hero-art path, .hero-art circle, .hero-art rect {
  stroke-dasharray: 48 12;
  animation: venuePulse 4.5s ease-in-out infinite;
}
.hero-art .d2 { animation-delay: .6s; }
.hero-art .d3 { animation-delay: 1.2s; }

/* pull first content up under full-bleed hero */
.hero + .home-band,
.hero + .install,
.hero + * {
  margin-top: 0;
}
.home-band.band-a { padding-top: 1rem; }
.page-main, main, #view, .view {
  /* hero already provides top chrome spacing */
}
body:has(.hero) .view > .hero { margin-top: 0; }

.card.has-suggest, .card.pad.layer.has-suggest { overflow: visible !important; }
.suggest-box { isolation: isolate; }

/* full-bleed hero cancels main top padding */
.main:has(> .hero),
.main:has(> section.hero) {
  padding-top: 0;
}
.hero {
  margin-top: 0 !important;
}
