/* Shepherd Messaging (Nov 14, 2026). Clean and modern, deep blue #2347D1, Inter. Phone first: full-screen views with a
   bottom tab bar; on computers two panes like WhatsApp on the web. Light and dark follow the device. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/Inter-Medium.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/Inter-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-display: swap; src: url('/assets/fonts/InterDisplay-Bold.woff') format('woff'); }

:root {
  /* ShepherdGrid's own colors (Nov 14, David: "Shepherd Connect needs to look like our brand ... feel like an app that came
     from shepherdgrid.com"): deep teal-black, bright teal, gold, and the soft purple for prayer. */
  --accent: #19d3f0; --accent-2: #00f5e8; --accent-soft: rgba(25, 211, 240, 0.13); --on-accent: #021317;
  --grad: linear-gradient(90deg, #00f5e8, #00c0f5);
  --bg: #031216; --surface: #061b20; --surface-2: #0b2a31; --line: #12343b; --text: #e6f5f4; --text-2: #9cc2c0; --text-3: #5f8f8e;
  --mine: linear-gradient(135deg, #0b7f8c, #0a6a93); --mine-text: #effdfc; --theirs: #0d2a31; --theirs-text: #e6f5f4; --chat-bg: #020e11;
  --ok: #3ad69c; --warn: #f5a524; --bad: #f2566e; --gold: #f4b54a; --prayer: #c38bff; --prayer-soft: rgba(195, 139, 255, 0.14);
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45); --r: 16px; --vvh: 100dvh;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --display: 'Inter Display', 'Inter', -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.4; overscroll-behavior: none; }
body { overflow: hidden; position: fixed; inset: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

#app { position: fixed; left: 0; right: 0; top: 0; height: var(--vvh); overflow: hidden; }
.boot { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(60% 50% at 50% 40%, rgba(0, 245, 232, 0.12), transparent 70%), var(--bg); color: var(--text); font-family: var(--display); font-size: 20px; }
.boot b span { color: var(--gold); }

/* ---------------------------------------------------------------- layout */
.shell { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
.pane { position: relative; height: 100%; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
.chat-pane { position: absolute; inset: 0; z-index: 5; transform: translateX(100%); transition: transform 0.26s cubic-bezier(.2, .8, .2, 1); background: radial-gradient(60% 40% at 80% 0%, rgba(0, 245, 232, 0.05), transparent 70%), var(--chat-bg); box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12); }
.in-chat .chat-pane { transform: none; }
@media (min-width: 900px) {
  .shell { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); }
  .list-pane { border-right: 1px solid var(--line); }
  .chat-pane { position: relative; transform: none; box-shadow: none; transition: none; }
  .tabbar { display: none !important; }
  .side-tabs { display: flex !important; }
  .back-btn { display: none !important; }
}
.top { flex: none; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: calc(env(safe-area-inset-top) + 6px) 12px 6px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 24px; flex: 1; min-width: 0; }
.top .sub { color: var(--text-2); font-size: 13px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); flex: none; }
.icon-btn:hover, .icon-btn:active { background: var(--surface-2); color: var(--text); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tabbar { flex: none; display: flex; border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button, .side-tabs button { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); font-size: 12px; font-weight: 600; position: relative; }
.tabbar button.on, .side-tabs button.on { color: var(--accent); }
.side-tabs { display: none; border-bottom: 1px solid var(--line); }
.side-tabs button { flex-direction: row; gap: 8px; min-height: 48px; font-size: 14px; }
.side-tabs button.on::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; border-radius: 3px; background: var(--accent); }
.tab-dot { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--gold); color: #1d1300; font-size: 11px; line-height: 18px; text-align: center; }
.side-tabs .tab-dot { position: static; }

/* ---------------------------------------------------------------- bits */
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; background: #0b6f7a; font-size: 17px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; }
.avatar.group { border-radius: 14px; }
.btn { min-height: 46px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; background: var(--surface-2); color: var(--text); }
.btn.primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 6px 22px rgba(0, 220, 240, 0.25); }
.btn.primary:active { filter: brightness(0.92); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.chips { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 14px; }
.chip.on { background: var(--grad); color: var(--on-accent); }
.search { margin: 10px 12px 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--text-3); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; outline: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; font-size: 14px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.err { color: var(--bad); font-size: 14px; margin: 0 0 12px; }
.note { color: var(--text-2); font-size: 14px; }
.faint { color: var(--text-3); }
.badge-v { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #1d1300; vertical-align: -3px; margin-left: 4px; }
.badge-v svg { width: 12px; height: 12px; stroke-width: 3; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: rgba(217, 119, 6, 0.12); color: var(--warn); }
.empty { padding: 48px 28px; text-align: center; color: var(--text-2); display: grid; justify-items: center; gap: 10px; }
.empty .big { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty .big svg { width: 34px; height: 34px; }
.empty h3 { color: var(--text); font-size: 19px; }
.section-h { padding: 18px 16px 6px; font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.card { margin: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 84px); transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: #e6f5f4; color: #031216; font-size: 15px; box-shadow: var(--shadow); animation: up 0.2s ease; }
.banner { position: fixed; left: 10px; right: 10px; top: calc(env(safe-area-inset-top) + 8px); z-index: 60; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line); animation: down 0.22s ease; text-align: left; }
.banner b { display: block; font-size: 15px; }
.banner span { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .banner { left: auto; right: 16px; width: 360px; } }
@keyframes up { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes down { from { opacity: 0; transform: translateY(-10px); } }

/* ---------------------------------------------------------------- chat list */
.citem { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; min-height: 72px; text-align: left; }
.citem:hover { background: var(--surface-2); }
.citem.on { background: var(--accent-soft); }
.citem .mid { flex: 1; min-width: 0; display: grid; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: -10px; }
.citem .l1, .citem .l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.citem .name { font-weight: 600; font-size: 16.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem .time { font-size: 12.5px; color: var(--text-3); flex: none; }
.citem .prev { flex: 1; min-width: 0; color: var(--text-2); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem.unread .time { color: var(--accent); font-weight: 700; }
.citem.unread .prev { color: var(--text); }
.count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--grad); color: var(--on-accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.tagdot { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; flex: none; }
.tagdot.church { background: rgba(244, 181, 74, 0.13); color: var(--gold); }
.tagdot.missions { background: rgba(24, 160, 88, 0.12); color: var(--ok); }
.fab { position: absolute; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 72px); width: 58px; height: 58px; border-radius: 18px; background: var(--grad); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 220, 240, 0.32); z-index: 3; }
@media (min-width: 900px) { .fab { bottom: 20px; } }
.install { margin: 10px 12px 0; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: 14px; }
.install b { display: block; }

/* ---------------------------------------------------------------- chat view */
.chat-top { gap: 4px; padding-left: 4px; }
.chat-top .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 4px; border-radius: 12px; }
.chat-top .who b { display: block; font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-top .who > div > span { display: block; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-top .who > div { min-width: 0; }
.pinned { flex: none; display: flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); text-align: left; width: 100%; }
.pinned svg { color: var(--accent); }
.pinned span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgs { padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.day { align-self: center; margin: 12px 0 6px; padding: 4px 12px; border-radius: 10px; background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.sys { align-self: center; text-align: center; margin: 6px 20px; font-size: 13px; color: var(--text-2); background: var(--surface); padding: 4px 12px; border-radius: 10px; }
.bwrap { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.bwrap.mine { justify-content: flex-end; }
.bwrap.gap { margin-top: 8px; }
.bubble { position: relative; max-width: min(78%, 560px); padding: 7px 11px 6px; border-radius: 18px; background: var(--theirs); color: var(--theirs-text); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.mine .bubble { background: var(--mine); color: var(--mine-text); }
.mine .bubble a { color: #fff; text-decoration: underline; }
.bubble .who { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.bubble .meta { float: right; margin: 6px 0 -4px 10px; font-size: 11.5px; opacity: 0.7; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.bubble .meta svg { width: 16px; height: 16px; stroke-width: 2.2; }
.bubble .meta .read { color: #7ff6ff; opacity: 1; }
.bubble.deleted { font-style: italic; opacity: 0.75; }
.bubble img.photo { display: block; max-width: 100%; width: 320px; height: auto; border-radius: 12px; margin: -2px -6px 6px; max-height: 420px; object-fit: cover; background: var(--surface-2); cursor: zoom-in; }
.bubble .filechip { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin: 0 -4px 6px; border-radius: 12px; background: rgba(127, 127, 127, 0.14); color: inherit; text-decoration: none; }
.bubble .filechip small { display: block; opacity: 0.75; }
.quote { display: block; margin: 0 -4px 6px; padding: 6px 10px; border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(127, 127, 127, 0.13); font-size: 13.5px; text-align: left; color: inherit; width: calc(100% + 8px); }
.mine .quote { border-left-color: #fff; }
.quote b { display: block; font-size: 12.5px; }
.quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: 0.85; }
.prayer { background: var(--surface) !important; color: var(--text) !important; border: 1.5px solid var(--prayer); width: min(78%, 420px); }
.prayer .ph { display: flex; gap: 6px; align-items: center; color: var(--prayer); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.prayer .pray-btn { margin-top: 10px; width: 100%; min-height: 42px; border-radius: 12px; background: var(--prayer-soft); color: var(--prayer); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.prayer .pray-btn.done { background: var(--prayer); color: #fff; }
.prayer .meta { color: var(--text-3); }
.composer { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px calc(env(safe-area-inset-bottom) + 8px); background: var(--surface); border-top: 1px solid var(--line); }
.composer .box { flex: 1; min-width: 0; display: flex; align-items: flex-end; border-radius: 22px; background: var(--surface-2); padding: 0 6px 0 14px; }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 16px; line-height: 1.35; padding: 11px 0; max-height: 140px; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.composer .send:disabled { opacity: 0.45; }
.composer .tool { width: 44px; height: 46px; display: grid; place-items: center; color: var(--text-2); flex: none; border-radius: 50%; }
.composer .tool.on { color: var(--prayer); }
.composer.praying .box { box-shadow: inset 0 0 0 2px var(--prayer); }
.composer.praying .send { background: var(--prayer); }
.reply-bar { flex: none; display: flex; gap: 10px; align-items: center; padding: 8px 10px 0 14px; background: var(--surface); font-size: 14px; }
.reply-bar .quote { margin: 0; width: auto; flex: 1; min-width: 0; }
.locked-bar { flex: none; padding: 14px 16px calc(env(safe-area-inset-bottom) + 14px); text-align: center; color: var(--text-2); background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; }
.chat-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--text-2); text-align: center; padding: 30px; }
.chat-empty img { width: 84px; height: 84px; }
.chat-empty h2 { color: var(--text); font-size: 26px; }
.prayer-hint { flex: none; padding: 8px 14px 0; font-size: 13px; color: var(--prayer); background: var(--surface); font-weight: 600; }

/* ---------------------------------------------------------------- sheets (bottom on phones, centered on computers) */
.sheet-back { position: fixed; inset: 0; z-index: 30; background: rgba(0, 6, 8, 0.6); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.18s ease; }
.sheet { width: 100%; max-width: 560px; max-height: calc(var(--vvh) - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow); animation: rise 0.24s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet .sh { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 18px; flex: none; }
.sheet .sh h2 { flex: 1; font-size: 20px; }
.sheet .sb { padding: 4px 18px 20px; overflow-y: auto; }
.sheet.full { height: calc(var(--vvh) - 24px); }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 22px; padding-bottom: 0; } .sheet .grab { display: none; } .sheet.full { height: min(760px, calc(var(--vvh) - 60px)); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0.6; } }
.menu-list { display: grid; }
.menu-list button, .menu-list a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 6px; border-radius: 12px; font-size: 16px; text-align: left; text-decoration: none; color: var(--text); }
.menu-list button:hover, .menu-list a:hover { background: var(--surface-2); }
.menu-list .danger { color: var(--bad); }
.menu-list svg { color: var(--text-2); }
.menu-list .danger svg { color: var(--bad); }
.person { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 4px; min-height: 60px; text-align: left; border-radius: 12px; }
.person:hover { background: var(--surface-2); }
.person .mid { flex: 1; min-width: 0; }
.person b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { display: block; color: var(--text-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; }
.person.picked .tick { background: var(--accent); border-color: var(--accent); }
.profile-head { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px 0 14px; }
.profile-head h2 { font-size: 24px; }
.actions3 { display: flex; gap: 10px; justify-content: center; margin: 4px 0 14px; flex-wrap: wrap; }
.actions3 a, .actions3 button { min-width: 88px; min-height: 64px; border-radius: 14px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; gap: 2px; padding: 8px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.code-box { font-family: ui-monospace, Menlo, monospace; font-size: 30px; letter-spacing: 0.18em; text-align: center; padding: 16px; border-radius: 14px; background: var(--surface-2); font-weight: 700; user-select: all; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.92); display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: calc(env(safe-area-inset-top) + 10px); right: 10px; color: #fff; }

/* ---------------------------------------------------------------- church + directory */
.space-card { margin: 12px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.space-hero { padding: 18px 16px 14px; background: radial-gradient(80% 140% at 100% 0%, rgba(195, 139, 255, 0.25), transparent 60%), linear-gradient(135deg, #0b4450, #0a2a3c 60%, #120f2c); color: #fff; border-bottom: 1px solid var(--line); }
.space-hero h2 { font-size: 22px; display: flex; align-items: center; gap: 6px; }
.space-hero .badge-v { background: var(--gold); color: #1d1300; }
.space-hero p { margin: 4px 0 0; opacity: 0.85; font-size: 14px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; }
.quick a, .quick button { min-height: 72px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; align-content: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--text); text-decoration: none; }
.quick svg { color: var(--accent); width: 24px; height: 24px; }
.quick .off { opacity: 0.45; }
.glist { padding: 0 6px 8px; }
.gitem { display: flex; align-items: center; gap: 12px; padding: 8px 8px; min-height: 60px; border-radius: 12px; width: 100%; text-align: left; }
.gitem:hover { background: var(--surface-2); }
.gitem .gi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.gitem .gi.ann { background: rgba(244, 181, 74, 0.13); color: var(--gold); }
.gitem .gi.youth { background: rgba(24, 160, 88, 0.12); color: var(--ok); }
.gitem .mid { flex: 1; min-width: 0; }
.gitem b { display: block; font-weight: 600; }
.gitem small { color: var(--text-2); font-size: 13px; }
.gitem .go { font-size: 13px; font-weight: 700; color: var(--accent); padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); }
.leader-tools { display: flex; gap: 8px; padding: 0 12px 14px; flex-wrap: wrap; }
.leader-tools .btn { min-height: 40px; font-size: 14px; padding: 0 12px; }
.ditem { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.ditem .mid { flex: 1; min-width: 0; }
.ditem b { font-weight: 600; }
.ditem small { display: block; color: var(--text-2); font-size: 13.5px; }
.ditem .vby { color: var(--accent); font-size: 12.5px; font-weight: 600; margin-top: 2px; display: block; }
.role-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); }
.admin-item { padding: 12px; border-radius: 14px; background: var(--surface-2); margin-bottom: 10px; font-size: 14px; }
.admin-item .row { margin-top: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.stat-row div { padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.stat-row b { display: block; font-size: 20px; font-family: var(--display); }
.stat-row span { font-size: 12px; color: var(--text-2); }

/* ---------------------------------------------------------------- sign in */
.welcome { height: 100%; overflow-y: auto; background: radial-gradient(70% 45% at 85% 0%, rgba(195, 139, 255, 0.2), transparent 60%), radial-gradient(80% 50% at 0% 10%, rgba(0, 245, 232, 0.16), transparent 60%), var(--bg); }
.welcome .inner { max-width: 440px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 40px) 20px 30px; }
.welcome .logo { display: grid; justify-items: center; gap: 10px; color: var(--text); text-align: center; margin-bottom: 26px; }
.welcome .logo img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(244, 181, 74, 0.18); }
.welcome .logo h1 { font-size: 32px; letter-spacing: -0.035em; }
.welcome .logo h1 b, .brand b { color: var(--gold); }
.welcome .logo .by { font-size: 13px; color: var(--text-3); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.welcome .logo p { margin: 0; opacity: 0.85; }
.welcome .card { margin: 0 0 14px; padding: 20px; box-shadow: var(--shadow); }
.welcome .card h2 { font-size: 19px; margin-bottom: 6px; }
.or { text-align: center; color: var(--text-3); font-size: 13px; margin: 14px 0; }
.privacy { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 10px; }

/* brand touches (Nov 14) */
.top h1 { font-weight: 700; }
.side-tabs button.on::after { background: var(--grad); }
.tabbar button.on svg, .side-tabs button.on svg { color: var(--accent-2); filter: drop-shadow(0 0 8px rgba(0, 245, 232, 0.45)); }
.citem.on { background: rgba(0, 245, 232, 0.08); box-shadow: inset 3px 0 0 var(--accent-2); }
.chat-empty h2 b { color: var(--gold); }
.install { border: 1px solid rgba(0, 245, 232, 0.25); }
.pill { background: rgba(244, 181, 74, 0.13); color: var(--gold); }
.field input, .field select, .field textarea { background: var(--bg); }
.code-box { color: var(--gold); }
.gitem .go { background: var(--grad); color: var(--on-accent); }
.prayer { background: radial-gradient(90% 120% at 0% 0%, rgba(195, 139, 255, 0.12), transparent 70%), var(--theirs) !important; }
.mine .prayer, .mine .bubble.prayer { color: var(--text) !important; }

/* ---------------------------------------------------------------- My Shepherd apps (the Shepherd Account, Nov 14) */
.apps { display: grid; gap: 2px; }
.app-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.app-row:first-child { border-top: 0; }
.app-row img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.app-row .mid { flex: 1; min-width: 0; display: grid; gap: 1px; }
.app-row .mid b { font-size: 15.5px; }
.app-row .mid small { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row .tagx { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); }
.app-row .tagx.on { background: rgba(58, 214, 156, 0.13); color: var(--ok); }
.app-row .tagx.go { background: var(--accent-soft); color: var(--accent); }
.app-row.soon { opacity: 0.72; }
.apps-card h2 { font-size: 18px; margin: 0; }
