:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-2: #F3F1EC;
  --surface-3: #E9E6DF;
  --ink: #191714;
  --ink-2: #3D3934;
  --muted: #76706A;
  --faint: #A39D94;
  --line: #E7E3DB;
  --line-2: #D6D0C5;
  --accent: #2D5A4C;
  --accent-hover: #234A3E;
  --accent-soft: #E3ECE8;
  --accent-ink: #FFFFFF;
  --link: #2D5A4C;
  --gold: #A9792A;
  --gold-soft: #F6ECD6;
  --like: #E2364E;
  --danger: #CF3A30;
  --online: #2F9E6A;
  --idle: #DFA23A;
  --dnd: #D24B4B;
  --offline: #9A948B;
  --rail: #EEEBE4;
  --side: #F6F4EF;
  --chat: #FFFFFF;
  --hover-row: rgba(25, 23, 20, .045);
  --mention-bg: rgba(169, 121, 42, .12);
  --ring: conic-gradient(from 210deg, #E9B44C, #D2692E, #9C2F52, #D2692E, #E9B44C);
  --overlay: rgba(14, 12, 10, .64);
  --shadow-sm: 0 1px 2px rgba(25, 23, 20, .06);
  --shadow: 0 6px 20px rgba(25, 23, 20, .08), 0 1px 3px rgba(25, 23, 20, .06);
  --shadow-lg: 0 24px 64px rgba(25, 23, 20, .2), 0 4px 12px rgba(25, 23, 20, .08);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --sb-w: 244px;
  --top-h: 52px;
  --tab-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0E0D0C;
  --surface: #151412;
  --surface-2: #1E1C19;
  --surface-3: #292723;
  --ink: #F3EFE8;
  --ink-2: #D9D3C9;
  --muted: #9D968B;
  --faint: #6F695F;
  --line: #24221F;
  --line-2: #36332E;
  --accent: #7DBBA3;
  --accent-hover: #93C9B4;
  --accent-soft: #1B2B25;
  --accent-ink: #0E0D0C;
  --link: #8FC6B1;
  --gold: #E2B35A;
  --gold-soft: #2D2416;
  --like: #FF4D63;
  --danger: #FF6157;
  --rail: #090807;
  --side: #121110;
  --chat: #171614;
  --hover-row: rgba(255, 255, 255, .035);
  --mention-bg: rgba(226, 179, 90, .12);
  --overlay: rgba(0, 0, 0, .72);
  --shadow: 0 6px 20px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
body.has-modal { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }

.i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.i.sm { width: 18px; height: 18px; }
.i.xs { width: 14px; height: 14px; }
.i.lg { width: 28px; height: 28px; }
.vb { width: 14px; height: 14px; color: var(--accent); flex: none; vertical-align: -2px; margin-left: 3px; }

/* layout */
.app { min-height: 100dvh; }
.main { margin-left: var(--sb-w); min-height: 100dvh; position: relative; transition: margin-left .22s ease; }
.main:focus { outline: none; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  width: var(--sb-w);
  display: flex; flex-direction: column;
  padding: 26px 12px 18px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  transition: width .22s ease;
}
.sb-brand { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; margin-bottom: 22px; }
.brand-cross { width: 20px; height: 27px; flex: none; color: var(--ink); overflow: visible; }
.brand-cross.lg { width: 34px; height: 46px; }
.wordmark { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1; white-space: nowrap; color: var(--ink); }
.wordmark em { font-style: normal; color: var(--gold); }
.sb-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sb-foot { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  width: 100%; height: 48px; padding: 0 12px;
  border-radius: 10px;
  font-size: 15px; color: var(--ink);
  transition: background .15s;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item .i { width: 26px; height: 26px; transition: transform .18s ease; }
.nav-item:hover .i, .nav-item:hover .nav-ic { transform: scale(1.05); }
.nav-item:active .i { transform: scale(.94); }
.nav-item.is-active { font-weight: 700; }
.nav-item.is-active .i { stroke-width: 2.5; }
.nav-item.is-active .nav-ic .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.nav-ic { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; transition: transform .18s ease; }
.nav-label { white-space: nowrap; overflow: hidden; }
.badge {
  position: absolute; top: -6px; right: -9px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; border: 2px solid var(--bg);
  background: var(--like); color: #fff;
  font: 700 10.5px/14px var(--font); text-align: center;
}
.dot { position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--like); box-shadow: 0 0 0 2px var(--bg); }

body.sb-compact { --sb-w: 72px; }
body.sb-compact .nav-label, body.sb-compact .sb-brand .wordmark { display: none; }
body.sb-compact .sb-brand { padding: 0 14px; }

.drawer {
  position: fixed; top: 0; bottom: 0; left: 72px; z-index: 45;
  width: 396px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-radius: 0 18px 18px 0;
  box-shadow: 8px 0 32px rgba(0, 0, 0, .06);
  transform: translateX(calc(-100% - 80px));
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: none; }
.drawer-head { padding: 24px 24px 16px; }
.drawer-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; }
.drawer-body { flex: 1; overflow-y: auto; }

.topbar, .tabbar { display: none; }

@media (max-width: 1279px) {
  :root { --sb-w: 72px; }
  .nav-label, .sb-brand .wordmark { display: none; }
  .sb-brand { padding: 0 14px; }
}

@media (max-width: 767px) {
  :root { --sb-w: 0px; }
  .sidebar, .drawer { display: none; }
  .main { padding-top: calc(var(--top-h) + var(--safe-t)); padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 6px 0 16px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .tb-brand { display: flex; align-items: center; gap: 8px; }
  .tb-brand .brand-cross { width: 18px; height: 24px; }
  .tb-actions { display: flex; align-items: center; }
  .tb-actions .icon-btn { position: relative; width: 42px; height: 42px; }
  .tb-actions .badge { top: 3px; right: 2px; }
  .tb-actions .dot { top: 10px; right: 9px; }
  .tabbar {
    display: flex; align-items: flex-start;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--line);
  }
  .tab { flex: 1; height: var(--tab-h); display: grid; place-items: center; color: var(--ink); }
  .tab .i { width: 26px; height: 26px; }
  .tab.is-active .i { stroke-width: 2.5; }
  .tab.is-active .nav-ic .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
  .tab .badge { border-color: var(--bg); }
  body.no-top .topbar { display: none; }
  body.no-top .main { padding-top: 0; }
  body.immersive .topbar, body.immersive .tabbar { display: none; }
  body.immersive .main { padding: 0; }
  body.dark-chrome .tabbar { background: #000; border-top-color: #1b1b1b; color: #fff; }
  body.dark-chrome .tab { color: #fff; }
  body.dark-chrome .tab .badge { border-color: #000; }
}

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px;
  border-radius: 9px;
  background: var(--surface-2); color: var(--ink);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, opacity .15s, transform .1s;
  user-select: none;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-2); }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-outline:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { height: 44px; padding: 0 20px; border-radius: 11px; font-size: 15px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn .i { width: 18px; height: 18px; }
.text-btn { font-weight: 600; color: var(--accent); font-size: 14px; }
.text-btn:hover { color: var(--accent-hover); }
.text-btn.ink { color: var(--ink); }
.text-btn.muted { color: var(--muted); font-weight: 500; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); flex: none; position: relative; transition: background .15s, opacity .15s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .i { width: 20px; height: 20px; }

.input {
  width: 100%; height: 42px; padding: 0 13px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .bare::placeholder { color: var(--faint); }
.input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent); }
textarea.input { height: auto; min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.45; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.bare { border: 0; background: transparent; outline: none; width: 100%; padding: 0; color: var(--ink); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .i { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box .input { padding-left: 38px; height: 40px; background: var(--surface-2); border-color: transparent; }
.search-box .input:focus { background: var(--surface); border-color: var(--line-2); box-shadow: none; }
.search-box .clear { position: absolute; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--faint); color: var(--bg); display: grid; place-items: center; }
.search-box .clear .i { position: static; width: 12px; height: 12px; color: var(--bg); stroke-width: 3; }

.switch { position: relative; width: 44px; height: 26px; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.3, .7, .3, 1); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: 10px; }
.seg button { height: 30px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* avatars */
.av {
  --s: 32px;
  position: relative;
  width: var(--s); height: var(--s);
  border-radius: 50%; overflow: hidden; flex: none;
  display: inline-grid; place-items: center;
  background: var(--surface-3);
  color: #fff; font-weight: 600; font-size: calc(var(--s) * .38); letter-spacing: .01em;
  user-select: none;
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.ring { display: inline-grid; place-items: center; border-radius: 50%; padding: calc(var(--s) * .055 + 1px); background: var(--ring); flex: none; }
.ring.seen { background: var(--line-2); padding: calc(var(--s) * .035 + .5px); }
.ring > .av { box-shadow: 0 0 0 calc(var(--s) * .045 + 1px) var(--bg); }
.ring.seen > .av { box-shadow: 0 0 0 calc(var(--s) * .055 + 1.5px) var(--bg); }
.status { position: absolute; right: -1px; bottom: -1px; width: 32%; height: 32%; min-width: 10px; min-height: 10px; border-radius: 50%; border: 2.5px solid var(--side); background: var(--offline); }
.status.online { background: var(--online); }
.status.idle { background: var(--idle); }
.status.dnd { background: var(--dnd); }
.av-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }

.uname { font-weight: 600; color: var(--ink); }
.uname:hover { opacity: .7; }
a.tag, a.mention { color: var(--link); }
a.tag:hover, a.mention:hover { text-decoration: underline; }

/* home */
.home { display: flex; justify-content: center; gap: 64px; padding: 22px 24px 72px; }
.feed-col { width: 100%; max-width: 470px; min-width: 0; }
.rail { width: 320px; flex: none; padding-top: 30px; }
@media (max-width: 1159px) { .rail { display: none; } }
@media (max-width: 767px) {
  .home { padding: 0 0 24px; }
}

.stories { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; flex: none; scroll-snap-align: start; }
.story .ring, .story .story-av { --s: 62px; }
.story-plain { padding: calc(62px * .055 + 1px); }
.story-name { font-size: 12px; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.story-add { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: 2.5px solid var(--bg); display: grid; place-items: center; }
.story-add .i { width: 12px; height: 12px; stroke-width: 3; }
@media (max-width: 767px) {
  .stories { padding: 12px 12px 12px; gap: 14px; border-bottom: 1px solid var(--line); }
  .story .ring, .story .story-av { --s: 64px; }
}

.votd {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.votd-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.votd-label .i { width: 14px; height: 14px; }
.votd-text { font-family: var(--serif); font-size: 21px; line-height: 1.22; letter-spacing: -.005em; color: var(--ink); }
.votd-ref { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.votd-ref button { color: var(--accent); font-weight: 600; }
.feed-votd { display: none; }
@media (max-width: 1159px) {
  .feed-votd { display: block; margin: 0 0 22px; }
}
@media (max-width: 767px) {
  .feed-votd { margin: 14px 12px 18px; }
}

.rail-me { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.rail-me .meta { flex: 1; min-width: 0; line-height: 1.3; }
.rail-me .meta .name { color: var(--muted); font-size: 13.5px; }
.rail-sec { margin: 26px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.rail-sec h3 { font-size: 14px; font-weight: 600; color: var(--muted); }
.rail-sec a, .rail-sec button { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.sugg { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.sugg .meta { flex: 1; min-width: 0; line-height: 1.3; }
.sugg .why { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-foot { margin-top: 30px; font-size: 12px; color: var(--faint); line-height: 1.7; }
.rail-foot a:hover { text-decoration: underline; }
.rail-foot p + p { margin-top: 12px; }

/* posts */
.post { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; min-height: 48px; }
.post-head .ring, .post-head .av { --s: 34px; }
.post-meta { flex: 1; min-width: 0; line-height: 1.25; }
.post-meta .l1 { display: flex; align-items: center; gap: 4px; white-space: nowrap; min-width: 0; }
.post-meta .l1 .uname { overflow: hidden; text-overflow: ellipsis; }
.post-meta .sep { color: var(--muted); }
.post-meta time { color: var(--muted); }
.post-meta .l2 { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.post.shared-feed-post { margin-bottom: 16px; padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.shared-feed-post .post-head { padding: 0 0 8px; }
.shared-feed-post .post-media { border-radius: 8px; }
.shared-feed-post .post-media + .guest-post-text { margin-top: 10px; }
.shared-feed-post .post-meta .l2 a { color: inherit; }
.shared-feed-post .post-meta .l2 a:hover, .shared-feed-post .post-meta a.uname:hover { text-decoration: underline; }
/* like button under another member's post (and the author's "N likes" link) */
.shared-feed-post .pub-acts { margin: 6px 0 -6px -9px; padding: 0; }
.shared-feed-post .pub-acts:empty { display: none; }
.shared-feed-post .pub-acts .pub-likes { display: inline-block; margin: 8px 0 0 9px; font-weight: 600; font-size: 14px; }
.guest-post-avatar { background: var(--accent-soft); color: var(--accent); }
.guest-post-text { color: var(--ink); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.guest-post-more { margin-top: 8px; }
.follow-link { color: var(--accent); font-weight: 600; margin-left: 2px; }
.follow-link:hover { color: var(--accent-hover); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.chip-prayer { background: var(--gold-soft); color: var(--gold); }
.chip .i { width: 12px; height: 12px; stroke-width: 2.2; }

.post-media { position: relative; border-radius: 8px; overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.post-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); pointer-events: none; z-index: 3; }
.post-media img, .post-media video { user-select: none; -webkit-user-drag: none; }
@media (max-width: 767px) {
  .post { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 0; }
  .post-head { padding: 0 6px 0 12px; }
  .post-media { border-radius: 0; box-shadow: none; }
  .post-media::after { display: none; }
  .post-body { padding: 0 14px; }
  .post-actions { padding-left: 6px !important; padding-right: 6px !important; margin-left: 0 !important; }
}

.carousel { position: relative; }
.track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: var(--ar, 1); scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; background: var(--surface-3); }
.slide > img, .slide > video { width: 100%; height: 100%; object-fit: cover; }
.car-nav { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .88); color: #191714; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .2s; }
.car-nav .i { width: 18px; height: 18px; stroke-width: 2.4; }
.car-nav.prev { left: 10px; }
.car-nav.next { right: 10px; }
.carousel:hover .car-nav { opacity: 1; }
@media (hover: none) { .car-nav { display: none; } }
.car-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; z-index: 2; pointer-events: none; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); box-shadow: 0 0 3px rgba(0, 0, 0, .3); transition: background .2s, transform .2s; }
.car-dots i.on { background: #fff; transform: scale(1.1); }
.car-count { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 3px 9px; border-radius: 99px; background: rgba(20, 18, 16, .66); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .3s; }
.carousel.scrolled .car-count { opacity: 1; }

.burst { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; z-index: 4; color: #fff; pointer-events: none; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .3)); animation: burst .95s cubic-bezier(.2, .8, .3, 1) forwards; }
.burst .i { width: 100%; height: 100%; }
@keyframes burst {
  0% { transform: scale(0) rotate(-8deg); opacity: 0; }
  15% { transform: scale(1.18) rotate(0); opacity: 1; }
  30% { transform: scale(.94); }
  45% { transform: scale(1.02); }
  75% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.7) translateY(-40px); opacity: 0; }
}

.post-actions { display: flex; align-items: center; gap: 0; padding: 6px 0 2px; margin-left: -9px; margin-right: -9px; }
.act { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--ink); transition: opacity .15s, transform .12s; }
.act:hover { opacity: .55; }
.act:active { transform: scale(.88); }
.act.liked { color: var(--like); }
.act.liked .i { fill: var(--like); stroke: var(--like); }
.act.saved .i { fill: currentColor; }
.act.pop .i { animation: pop .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.act-count { font-weight: 600; font-size: 14px; margin: 0 6px 0 -6px; min-width: 0; }
.pray-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 9px; margin-left: 6px;
  border-radius: 99px; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.pray-pill .i { width: 18px; height: 18px; }
.pray-pill b { font-weight: 600; color: var(--muted); }
.pray-pill:hover { background: var(--surface-2); }
.pray-pill.on { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); }
.pray-pill.on b { color: var(--gold); }
.pray-pill.on .i { fill: color-mix(in srgb, var(--gold) 30%, transparent); }

.likes { font-weight: 600; margin: 2px 0 5px; }
.likes button { font-weight: 600; }
.caption { line-height: 1.45; color: var(--ink); }
.caption .uname { margin-right: 5px; }
.caption .more { color: var(--muted); font-weight: 500; }
.view-comments { display: block; color: var(--muted); margin-top: 6px; }
.cprev { display: flex; gap: 6px; align-items: baseline; margin-top: 3px; }
.cprev p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cprev .act-mini { color: var(--muted); }
.cprev .act-mini.liked { color: var(--like); }
.cprev .act-mini .i { width: 13px; height: 13px; }
.cprev .act-mini.liked .i { fill: var(--like); stroke: var(--like); }
.post-time { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.add-comment { display: flex; align-items: center; gap: 8px; margin-top: 6px; border-bottom: 0; }
.add-comment input { flex: 1; min-width: 0; height: 32px; border: 0; background: none; outline: none; color: var(--ink); font-size: 14px; }
.add-comment input::placeholder { color: var(--muted); }
.add-comment button[type=submit] { color: var(--accent); font-weight: 600; }
.add-comment button[type=submit]:disabled { opacity: 0; pointer-events: none; }

.caught-up { text-align: center; padding: 32px 16px 40px; }
.caught-up .badge-ring { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--ring); padding: 2.5px; }
.caught-up .badge-ring > div { width: 100%; height: 100%; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--gold); }
.caught-up .badge-ring .i { width: 34px; height: 34px; stroke-width: 1.6; }
.caught-up h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.caught-up p { color: var(--muted); margin-top: 4px; }
.sec-title { font-size: 15px; font-weight: 600; margin: 4px 0 14px; }
@media (max-width: 767px) { .sec-title { padding: 0 14px; } }

.sugg-strip { margin: 6px 0 22px; padding: 16px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sugg-strip-head { display: flex; justify-content: space-between; align-items: center; padding: 0 14px 12px; font-weight: 600; }
.sugg-cards { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.sugg-cards::-webkit-scrollbar { display: none; }
.sugg-card { position: relative; flex: 0 0 158px; padding: 18px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; scroll-snap-align: start; }
.sugg-card .av { --s: 76px; margin-bottom: 6px; }
.sugg-card .uname { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-card .why { font-size: 12px; color: var(--muted); height: 32px; overflow: hidden; line-height: 1.35; }
.sugg-card .btn { margin-top: 8px; width: 100%; }
.sugg-card .x { position: absolute; top: 6px; right: 6px; color: var(--muted); }
.sugg-card .x .i { width: 16px; height: 16px; }

/* media primitives */
.verse { width: 100%; height: 100%; container-type: inline-size; background: var(--v-bg); color: var(--v-ink); display: flex; position: relative; overflow: hidden; }
.verse-in { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 11cqw 11cqw 10cqw; position: relative; }
.verse-text { font-family: var(--serif); font-size: 7.4cqw; line-height: 1.16; letter-spacing: -.01em; text-wrap: balance; }
.verse.v-lg .verse-text { font-size: 9.6cqw; line-height: 1.08; }
.verse.v-sm .verse-text { font-size: 5.9cqw; line-height: 1.22; }
.verse.v-xs .verse-text { font-size: 4.9cqw; line-height: 1.26; }
.verse-ref { margin-top: 6cqw; font-family: var(--font); font-size: 2.9cqw; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .78; display: flex; align-items: center; gap: 2.4cqw; }
.verse-ref::before { content: ""; width: 7cqw; height: 1px; background: currentColor; opacity: .6; }
.verse::after { content: ""; position: absolute; inset: 4.2cqw; border: 1px solid currentColor; opacity: .14; border-radius: 1.5cqw; pointer-events: none; }
.t-parchment { --v-bg: #F0E7D6; --v-ink: #2A2118; }
.t-cedar { --v-bg: #22413A; --v-ink: #F2EADB; }
.t-dusk { --v-bg: linear-gradient(165deg, #2B2945 0%, #6E4A5E 58%, #C98A5E 100%); --v-ink: #FFF3E3; }
.t-wine { --v-bg: #5A1E2A; --v-ink: #F6E6DA; }
.t-ink { --v-bg: #13110F; --v-ink: #EFE6D6; }
.t-sky { --v-bg: #D9E4EA; --v-ink: #1C2D39; }
.t-olive { --v-bg: #6B6A3E; --v-ink: #FAF4E4; }
.t-ink .verse-ref, .t-cedar .verse-ref, .t-wine .verse-ref { color: #E2B35A; opacity: .95; }

.f-normal { filter: none; }
.f-dawn { filter: brightness(1.07) saturate(1.18) sepia(.12) contrast(1.02); }
.f-selah { filter: contrast(1.06) saturate(.82) brightness(1.04); }
.f-jordan { filter: hue-rotate(-10deg) saturate(1.28) contrast(1.06); }
.f-eden { filter: saturate(1.4) brightness(1.04) contrast(1.03); }
.f-vesper { filter: sepia(.38) contrast(1.06) brightness(.95) saturate(1.12); }
.f-zion { filter: grayscale(1) contrast(1.14) brightness(1.02); }
.f-galilee { filter: hue-rotate(12deg) saturate(.92) brightness(1.06) contrast(.94); }
.f-shiloh { filter: sepia(.22) saturate(1.45) hue-rotate(-14deg) contrast(1.04); }

/* grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--surface-3); }
.tile.portrait { aspect-ratio: 4 / 5; }
.tile > img, .tile > video, .tile > .verse { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-badge { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); z-index: 2; }
.tile-badge .i { width: 20px; height: 20px; }
.tile-hover { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 22px; background: rgba(0, 0, 0, .32); color: #fff; font-weight: 700; font-size: 15px; opacity: 0; transition: opacity .15s; }
.tile-hover span { display: inline-flex; align-items: center; gap: 6px; }
.tile-hover .i { width: 20px; height: 20px; fill: #fff; stroke: #fff; }
.tile:hover .tile-hover { opacity: 1; }
.tile.tile-text { display: flex; flex-direction: column; gap: 6px; padding: clamp(8px, 2vw, 20px); background: var(--surface-2); color: var(--ink); }
.tile-text:hover { background: var(--surface-3); }
.tile-text-label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tile-text-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
@media (hover: none) { .tile-hover { display: none; } }
.tile-views { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; color: #fff; font-size: 12.5px; font-weight: 600; z-index: 2; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.tile-views .i { width: 15px; height: 15px; }
@media (max-width: 767px) { .grid3 { gap: 2px; } }

.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; grid-auto-flow: dense; }
.xgrid > .tile:nth-child(10n + 3), .xgrid > .tile:nth-child(10n + 6) { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 767px) { .xgrid { gap: 2px; } }

/* explore & search */
.explore { max-width: 975px; margin: 0 auto; padding: 24px 20px 64px; }
.explore-top { display: none; }
@media (max-width: 767px) {
  .explore { padding: 0 0 24px; }
  .explore-top { display: flex; align-items: center; gap: 8px; position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 5; padding: 8px 12px; background: var(--bg); }
  .explore-top .search-box { flex: 1; }
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; flex: none; transition: background .15s; }
.chips button:hover { background: var(--surface-2); }
.chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 767px) { .chips { padding: 4px 12px 12px; } }

.results { padding: 0 0 16px; }
.results-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px 8px; }
.results-head h4 { font-size: 15px; font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 24px; width: 100%; text-align: left; transition: background .12s; }
.row:hover { background: var(--hover-row); }
.row .meta { flex: 1; min-width: 0; line-height: 1.3; }
.row .meta .uname, .row .meta .t { display: flex; align-items: center; gap: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .ic-circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.row .ic-circle .i { width: 20px; height: 20px; }
.row .x { color: var(--muted); }
@media (max-width: 767px) { .row { padding: 8px 16px; } .results-head { padding: 12px 16px 8px; } }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .big { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); display: grid; place-items: center; }
.empty .big .i { width: 40px; height: 40px; stroke-width: 1.4; }
.empty h3 { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.empty p { max-width: 340px; margin: 0 auto; }
.empty .btn { margin-top: 18px; }

/* tag page */
.tag-head { display: flex; align-items: center; gap: 28px; padding: 12px 0 36px; }
.tag-head .tag-icon { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; background: var(--surface); }
.tag-head .tag-icon .i { width: 48px; height: 48px; stroke-width: 1.3; }
.tag-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.tag-head p { color: var(--muted); margin: 4px 0 14px; }
@media (max-width: 767px) { .tag-head { padding: 20px 16px; gap: 18px; } .tag-head .tag-icon { width: 80px; height: 80px; } .tag-head .tag-icon .i { width: 32px; height: 32px; } }

/* profile */
.profile { max-width: 935px; margin: 0 auto; padding: 32px 20px 64px; }
.pf-mtop { display: none; }
.pf-head { display: grid; grid-template-columns: 290px 1fr; align-items: start; margin-bottom: 40px; }
.pf-avatar { display: flex; justify-content: center; padding-top: 4px; }
.pf-avatar .av, .pf-avatar .ring { --s: 150px; }
.pf-avatar button { border-radius: 50%; }
.pf-info { min-width: 0; }
.pf-row1 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pf-row1 h1 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin-right: 12px; display: flex; align-items: center; gap: 4px; }
.pf-row1 h1 .vb { width: 18px; height: 18px; }
.pf-stats { display: flex; gap: 40px; margin-bottom: 18px; font-size: 16px; }
.pf-stats b { font-weight: 600; }
.pf-stats button:hover { opacity: .7; }
.pf-name { font-weight: 600; font-size: 14.5px; }
.pf-cat { color: var(--muted); font-size: 13.5px; }
.pf-bio { white-space: pre-line; margin-top: 2px; line-height: 1.45; }
.pf-link { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 600; margin-top: 4px; }
.pf-link .i { width: 14px; height: 14px; stroke-width: 2.2; }
.pf-church { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; height: 28px; padding: 0 11px 0 8px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pf-church .i { width: 15px; height: 15px; color: var(--gold); }
.pf-followed { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.pf-followed b { color: var(--ink-2); font-weight: 600; }
.pf-btns { display: flex; gap: 8px; }
.pf-mstats { display: none; }

.highlights { display: flex; gap: 32px; overflow-x: auto; padding: 0 0 6px 46px; margin-bottom: 44px; scrollbar-width: none; }
.highlights::-webkit-scrollbar { display: none; }
.hl { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 87px; }
.hl-ring { width: 87px; height: 87px; border-radius: 50%; padding: 3px; border: 1px solid var(--line-2); background: var(--bg); }
.hl-ring > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.hl-ring img, .hl-ring .verse { width: 100%; height: 100%; object-fit: cover; }
.hl-ring .i { width: 36px; height: 36px; stroke-width: 1.2; color: var(--muted); }
.hl span { font-size: 12px; font-weight: 600; max-width: 87px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-tabs { display: flex; justify-content: center; gap: 60px; border-top: 1px solid var(--line); }
.pf-tabs button { display: flex; align-items: center; gap: 6px; height: 52px; margin-top: -1px; border-top: 1px solid transparent; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf-tabs button .i { width: 14px; height: 14px; stroke-width: 2.2; }
.pf-tabs button.on { color: var(--ink); border-top-color: var(--ink); }
.pf-private { text-align: center; padding: 48px 16px; border-top: 1px solid var(--line); }
.pf-private .i { width: 48px; height: 48px; stroke-width: 1.2; margin-bottom: 12px; }
.pf-private h3 { font-size: 15px; font-weight: 600; }
.pf-private p { color: var(--muted); margin-top: 4px; }

@media (max-width: 767px) {
  .profile { padding: 0 0 24px; }
  .pf-mtop { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 10; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 6px 0 6px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .pf-mtop h2 { flex: 1; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pf-mtop h2 .i { width: 16px; height: 16px; }
  .pf-mtop .pad { width: 10px; }
  .pf-head { grid-template-columns: auto 1fr; gap: 0 20px; padding: 16px 16px 0; margin-bottom: 14px; align-items: center; }
  .pf-avatar { padding: 0; }
  .pf-avatar .av, .pf-avatar .ring { --s: 84px !important; }
  .pf-row1 { display: none; }
  .pf-stats { display: none; }
  .pf-mstats { display: flex; justify-content: space-around; text-align: center; line-height: 1.2; }
  .pf-mstats b { display: block; font-size: 17px; font-weight: 700; }
  .pf-mstats span { font-size: 13px; color: var(--ink-2); }
  .pf-mbio { grid-column: 1 / -1; padding-top: 12px; }
  .pf-mbtns { grid-column: 1 / -1; display: flex; gap: 6px; padding-top: 14px; }
  .pf-mbtns .btn { flex: 1; height: 32px; font-size: 13.5px; }
  .pf-mbtns .icon-only { flex: 0 0 34px; padding: 0; }
  .highlights { padding: 4px 16px 6px; gap: 16px; margin-bottom: 12px; }
  .hl, .hl-ring { width: 66px; }
  .hl-ring { height: 66px; }
  .pf-tabs { justify-content: space-around; gap: 0; }
  .pf-tabs button { flex: 1; justify-content: center; height: 46px; }
  .pf-tabs button span { display: none; }
  .pf-tabs button .i { width: 24px; height: 24px; stroke-width: 1.8; }
}
@media (min-width: 768px) { .pf-mbio, .pf-mbtns { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) {
  .pf-head { grid-template-columns: 200px 1fr; }
  .pf-avatar .av, .pf-avatar .ring { --s: 120px !important; }
}

/* modal layer */
.layer { position: relative; z-index: 200; }
.modal-wrap {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--overlay);
  animation: fadeIn .16s ease;
}
.modal-wrap.closing { animation: fadeOut .16s ease forwards; }
.modal-wrap.closing .modal { animation: sinkOut .16s ease forwards; }
.modal {
  position: relative;
  background: var(--surface); color: var(--ink);
  border-radius: 14px;
  max-width: 100%; max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: riseIn .2s cubic-bezier(.2, .8, .3, 1);
}
.modal-x { position: fixed; top: 14px; right: 16px; z-index: 2; color: #fff; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.modal-x .i { width: 28px; height: 28px; }
.modal-x:hover { background: rgba(255, 255, 255, .1); }
.modal-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal-head h2 { font-size: 16px; font-weight: 600; text-align: center; flex: 1; }
.modal-head .l, .modal-head .r { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; }
.modal-head .l { left: 6px; }
.modal-head .r { right: 10px; }
.modal-body { padding: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes sinkOut { to { opacity: 0; transform: scale(.985); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }

.menu-modal { width: 400px; padding: 0; overflow: hidden; }
.menu-title { padding: 22px 24px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.menu-title h3 { font-size: 18px; font-weight: 600; }
.menu-title p { color: var(--muted); margin-top: 6px; font-size: 13.5px; }
.menu-list button { display: block; width: 100%; min-height: 48px; padding: 12px 16px; text-align: center; font-size: 14px; border-top: 1px solid var(--line); transition: background .12s; }
.menu-list button:first-child { border-top: 0; }
.menu-list button:hover { background: var(--hover-row); }
.menu-list button.danger { color: var(--danger); font-weight: 700; }
.menu-list button.strong { font-weight: 700; }
.menu-list button.accent { color: var(--accent); font-weight: 700; }
.menu-title + .menu-list button:first-child { border-top: 0; }

@media (max-width: 767px) {
  .modal-wrap.sheet-m { align-items: flex-end; padding: 0; }
  .modal-wrap.sheet-m .modal { width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; max-height: 88dvh; padding-bottom: var(--safe-b); animation: sheetUp .26s cubic-bezier(.2, .8, .3, 1); }
  .modal-wrap.sheet-m.closing .modal { animation: sheetDown .2s ease forwards; }
  .modal-wrap.sheet-m .modal::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; }
  .modal-wrap.sheet-m .modal-x { display: none; }
  .modal-wrap.full-m { padding: 0; }
  .modal-wrap.full-m .modal { width: 100%; height: 100%; max-height: none; border-radius: 0; animation: slideInR .24s cubic-bezier(.2, .8, .3, 1); }
  .modal-wrap.full-m.closing .modal { animation: fadeOut .16s ease forwards; }
  .modal-wrap.full-m .modal-x { display: none; }
  .modal-wrap.full-m .modal-head { height: calc(46px + var(--safe-t)); padding-top: var(--safe-t); }
  .modal-wrap.full-m .modal-head .l, .modal-wrap.full-m .modal-head .r { top: var(--safe-t); }
  .menu-modal { width: 100%; }
}
@keyframes slideInR { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }

.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); pointer-events: auto; animation: riseIn .22s cubic-bezier(.2, .8, .3, 1); }
.toast button { color: color-mix(in srgb, var(--bg) 60%, var(--accent)); font-weight: 700; }
.toast.out { animation: fadeOut .2s ease forwards; }
@media (max-width: 767px) { .toasts { bottom: calc(var(--tab-h) + var(--safe-b) + 14px); } }

/* post detail */
.pd { display: flex; width: min(1180px, calc(100vw - 128px)); height: min(860px, calc(100dvh - 48px)); max-height: none; overflow: hidden; border-radius: 6px; }
.pd-media { flex: 1 1 auto; min-width: 0; background: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.pd-media .post-media { width: 100%; height: 100%; border-radius: 0; box-shadow: none; background: #000; display: flex; align-items: center; }
.pd-media .post-media::after { display: none; }
.pd-media .carousel { width: 100%; }
.pd-media .slide { max-height: min(860px, calc(100dvh - 48px)); }
.pd-media .slide > img, .pd-media .slide > video { object-fit: contain; background: #000; }
.pd-side { width: 420px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); min-height: 0; background: var(--surface); }
.pd-head { display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--line); }
.pd-head .meta { flex: 1; min-width: 0; line-height: 1.25; }
.pd-head .meta .s { font-size: 12.5px; color: var(--ink-2); }
.pd-comments { flex: 1; overflow-y: auto; padding: 14px 16px; min-height: 0; }
.pd-foot { border-top: 1px solid var(--line); padding: 4px 16px 0; }
.pd-foot .post-actions { margin-left: -9px; }
.pd-foot .add-comment { border-top: 1px solid var(--line); margin: 10px -16px 0; padding: 6px 16px; min-height: 54px; }
.pd-foot .add-comment .icon-btn { margin-left: -8px; }
.cm { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.cm .av { --s: 32px; }
.cm-body { flex: 1; min-width: 0; line-height: 1.4; }
.cm-body .txt { white-space: pre-line; }
.cm-meta { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cm-meta time { font-weight: 400; }
.cm-meta button:hover { color: var(--ink); }
.cm-like { color: var(--muted); padding-top: 6px; }
.cm-like .i { width: 13px; height: 13px; }
.cm-like.liked { color: var(--like); }
.cm-like.liked .i { fill: var(--like); stroke: var(--like); }
.cm.caption-cm .cm-meta { margin-top: 8px; }
.cm-off { text-align: center; padding: 30px 0; color: var(--muted); }
.cm-replying { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; margin: 0 -16px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) {
  .pd { width: min(640px, calc(100vw - 48px)); flex-direction: column; height: calc(100dvh - 48px); }
  .pd-media { flex: 0 0 auto; max-height: 55%; }
  .pd-media .slide { max-height: 50dvh; }
  .pd-side { width: 100%; flex: 1; border-left: 0; }
}
@media (max-width: 767px) {
  .pd { width: 100%; height: 100%; border-radius: 0; display: block; overflow-y: auto; }
  .pd-media { display: none; }
  .pd-side { display: none; }
  .pd-mobile { display: block !important; }
}
.pd-mobile { display: none; }
.pd-mobile .post { border-bottom: 0; margin: 0; padding-top: 10px; }
.guest-post-detail { width: min(560px, 100%); }
.guest-post-detail .shared-feed-post { margin: 0; padding: 16px 20px 20px; border: 0; border-radius: 0; }

.sheet-comments { width: 520px; height: min(720px, calc(100dvh - 48px)); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sheet-comments .pd-comments { padding: 16px; }
.sheet-comments .add-comment { border-top: 1px solid var(--line); margin: 0; padding: 8px 16px; min-height: 58px; }
@media (max-width: 767px) { .sheet-comments { width: 100%; height: 78dvh; } }
.quick-emoji { display: flex; justify-content: space-around; padding: 8px 12px 2px; border-top: 1px solid var(--line); font-size: 24px; }
.quick-emoji button { padding: 2px 6px; border-radius: 8px; transition: transform .12s; }
.quick-emoji button:hover { transform: scale(1.18); }

/* share sheet */
.share-modal { width: 548px; padding: 0; display: flex; flex-direction: column; max-height: min(640px, calc(100dvh - 48px)); overflow: hidden; }
.share-search { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.share-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; padding: 18px 16px; }
.share-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; position: relative; min-width: 0; }
.share-pick .av { --s: 66px; }
.share-pick .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.share-pick .ck { position: absolute; top: 46px; left: calc(50% + 16px); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: none; place-items: center; border: 2px solid var(--surface); }
.share-pick .ck .i { width: 12px; height: 12px; stroke-width: 3.2; }
.share-pick.on .ck { display: grid; }
.share-foot { border-top: 1px solid var(--line); padding: 12px 16px; }
.share-ext { display: flex; gap: 18px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.share-ext button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; flex: none; width: 64px; }
.share-ext button span.c { width: 50px; height: 50px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.share-ext .i { width: 22px; height: 22px; }
.share-send { display: flex; flex-direction: column; gap: 10px; }
.share-send input { height: 40px; }
@media (max-width: 767px) { .share-modal { width: 100%; } .share-grid { grid-template-columns: repeat(3, 1fr); } }

/* lists modal */
.list-modal { width: 400px; padding: 0; display: flex; flex-direction: column; max-height: min(520px, calc(100dvh - 48px)); overflow: hidden; }
.list-modal .lm-search { padding: 10px 16px; }
.list-modal .lm-body { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.list-modal .row { padding: 8px 16px; }
@media (max-width: 767px) { .list-modal { width: 100%; max-height: 88dvh; } }

/* report */
.report { width: 440px; padding: 0; }
.report-intro { padding: 16px 20px 8px; }
.report-intro h3 { font-size: 16px; font-weight: 700; }
.report-intro p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.report-list { padding: 4px 0 8px; }
.report-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 20px; text-align: left; transition: background .12s; }
.report-list button:hover { background: var(--hover-row); }
.report-list .num { width: 26px; font-family: var(--serif); font-size: 19px; color: var(--gold); flex: none; text-align: center; }
.report-list .t { flex: 1; min-width: 0; line-height: 1.3; }
.report-list .t b { display: block; font-weight: 600; font-size: 14px; }
.report-list .t small { color: var(--muted); font-size: 12.5px; }
.report-list .i { color: var(--faint); width: 18px; height: 18px; }
.report-done { text-align: center; padding: 34px 28px 28px; }
.report-done .i { width: 52px; height: 52px; color: var(--accent); stroke-width: 1.4; margin-bottom: 10px; }
.report-done h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.report-done p { color: var(--muted); }
@media (max-width: 767px) { .report { width: 100%; } }

/* forms in modal */
.form-modal { width: 480px; padding: 0; }
.form-modal .modal-body { padding: 20px; }
.form-modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.guest-compose .acts { margin-top: 20px; }
.guest-post-status { color: var(--danger); margin-top: 8px; }
@media (max-width: 767px) { .form-modal { width: 100%; } }
.av-edit { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 18px; background: var(--surface-2); border-radius: 14px; }
.av-edit .av { --s: 56px; }
.av-edit .meta { flex: 1; min-width: 0; line-height: 1.3; }
.av-edit .meta .s { color: var(--muted); font-size: 13px; }

/* settings */
.page { max-width: 640px; margin: 0 auto; padding: 32px 20px 72px; }
.page-head { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.page-mhead { display: none; }
@media (max-width: 767px) {
  .page { padding: 0 0 32px; }
  .page-head { display: none; }
  .page-mhead { display: flex; align-items: center; gap: 4px; position: sticky; top: 0; z-index: 10; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 6px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .page-mhead h2 { flex: 1; font-size: 17px; font-weight: 700; text-align: center; margin-right: 40px; }
}
.set-group { margin-bottom: 26px; }
.set-group h3 { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px 8px; }
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 16px; text-align: left; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; }
button.set-row:hover, a.set-row:hover { background: var(--hover-row); }
.set-row > .i { width: 22px; height: 22px; color: var(--ink-2); }
.set-row .meta { flex: 1; min-width: 0; line-height: 1.3; }
.set-row .meta small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.set-row .val { color: var(--muted); font-size: 13.5px; }
.set-row .chev { color: var(--faint); width: 18px; height: 18px; }
.set-row.danger { color: var(--danger); }
.set-row.danger > .i { color: var(--danger); }
@media (max-width: 767px) {
  .set-group { margin: 18px 0 0; }
  .set-group h3 { padding: 0 16px 8px; }
  .set-card { border-radius: 0; border-left: 0; border-right: 0; }
}

/* covenant */
.covenant { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.cov-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); text-align: center; }
.cov-title { font-family: var(--serif); font-size: clamp(44px, 7vw, 72px); line-height: .98; letter-spacing: -.02em; text-align: center; margin: 14px 0 18px; }
.cov-title em { font-style: normal; }
.cov-lede { max-width: 540px; margin: 0 auto; text-align: center; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.cov-all { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 28px auto 46px; padding: 14px 18px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.cov-all .i { color: var(--gold); width: 22px; height: 22px; flex: none; }
.cov-list { border-top: 1px solid var(--line); }
.cov-item { display: grid; grid-template-columns: 72px 1fr; gap: 8px 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cov-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); padding-top: 2px; }
.cov-kjv { font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -.005em; }
.cov-ref { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.cov-means { margin-top: 12px; color: var(--ink-2); line-height: 1.55; }
.cov-means b { color: var(--ink); font-weight: 600; }
.cov-sum { margin: 48px auto 0; max-width: 600px; text-align: center; }
.cov-sum blockquote { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 0; }
.cov-sum cite { display: block; margin-top: 14px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cov-enforce { margin-top: 48px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cov-enforce h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.cov-enforce ol { list-style: decimal; padding-left: 20px; color: var(--ink-2); line-height: 1.6; }
.cov-enforce li + li { margin-top: 4px; }
@media (max-width: 767px) {
  .covenant { padding: 28px 18px 48px; }
  .cov-item { grid-template-columns: 46px 1fr; gap: 6px 12px; padding: 22px 0; }
  .cov-num { font-size: 30px; }
  .cov-kjv { font-size: 22px; }
}

/* notifications */
.notifs { max-width: 600px; margin: 0 auto; padding: 24px 0 64px; }
.notifs-sec { padding: 14px 24px 6px; font-size: 15px; font-weight: 700; }
.drawer .notifs-sec { padding-top: 6px; }
.nf { display: flex; align-items: center; gap: 12px; padding: 8px 24px; transition: background .12s; cursor: pointer; }
.nf:hover { background: var(--hover-row); }
.nf .av, .nf .ring { --s: 44px; }
.nf .txt { flex: 1; min-width: 0; line-height: 1.35; font-size: 14px; }
.nf .txt time { color: var(--muted); margin-left: 4px; }
.nf .thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex: none; background: var(--surface-3); position: relative; }
.nf .thumb img, .nf .thumb .verse { width: 100%; height: 100%; object-fit: cover; }
.nf.unread { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.nf-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.nf-icon.pray { background: var(--gold-soft); color: var(--gold); }
.nf-icon.fellow { background: var(--accent-soft); color: var(--accent); }
.nf-icon .i { width: 22px; height: 22px; }
.sabbath-banner { margin: 8px 24px 12px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.sabbath-banner .i { color: var(--gold); width: 20px; height: 20px; flex: none; margin-top: 1px; }
@media (max-width: 767px) {
  .notifs { padding: 0 0 24px; }
  .nf { padding: 8px 16px; }
  .notifs-sec { padding: 14px 16px 6px; }
  .sabbath-banner { margin: 8px 16px 12px; }
}

/* clips */
.clips { height: 100dvh; display: flex; justify-content: center; }
.clip-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; width: 100%; display: flex; flex-direction: column; align-items: center; overscroll-behavior: contain; }
.clip-feed::-webkit-scrollbar { display: none; }
.clip { flex: none; height: 100dvh; width: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 22px 0; scroll-snap-align: start; scroll-snap-stop: always; }
.clip-frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - var(--sb-w) - 120px); border-radius: 10px; overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.clip-media { position: absolute; inset: 0; }
.clip-media img, .clip-media video { width: 100%; height: 100%; object-fit: cover; }
.clip-media .kb { animation: kenburns 16s ease-in-out infinite alternate; animation-play-state: paused; transform-origin: 60% 40%; }
.clip.playing .clip-media .kb { animation-play-state: running; }
.clip.paused .clip-media .kb { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.18) translate(-3%, 2%); } }
.clip-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .28) 0%, transparent 18%, transparent 55%, rgba(0, 0, 0, .62) 100%); pointer-events: none; z-index: 1; }
.clip-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px 18px; }
.clip-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.clip-user .av { --s: 32px; }
.clip-user a { font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.clip-user .btn-follow { height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; }
.clip-cap { font-size: 14px; line-height: 1.4; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.clip-cap.open { -webkit-line-clamp: unset; }
.clip-cap a { color: #fff; font-weight: 600; }
.clip-audio { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; max-width: 70%; overflow: hidden; white-space: nowrap; }
.clip-audio .i { width: 14px; height: 14px; flex: none; }
.clip-audio span { display: inline-block; animation: marquee 9s linear infinite; padding-right: 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.clip-mute { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .4); display: grid; place-items: center; color: #fff; }
.clip-mute .i { width: 18px; height: 18px; }
.clip-paused-ic { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px; z-index: 2; border-radius: 50%; background: rgba(0, 0, 0, .4); display: none; place-items: center; color: #fff; pointer-events: none; }
.clip-paused-ic .i { width: 34px; height: 34px; }
.clip.paused .clip-paused-ic { display: grid; }
.clip-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; align-self: flex-end; padding-bottom: 10px; color: var(--ink); }
.clip-rail button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.clip-rail .i { width: 27px; height: 27px; }
.clip-rail .liked .i { fill: var(--like); stroke: var(--like); }
.clip-rail .saved .i { fill: currentColor; }
.clip-rail .disc { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; border: 2px solid var(--ink); }
.clip-rail .disc img { width: 100%; height: 100%; object-fit: cover; }
.clips-empty { color: var(--muted); align-self: center; text-align: center; }
@media (max-width: 767px) {
  body.v-clips { background: #000; }
  .clips { height: calc(100dvh - var(--tab-h) - var(--safe-b)); }
  .clip { height: calc(100dvh - var(--tab-h) - var(--safe-b)); padding: 0; gap: 0; position: relative; }
  .clip-frame { height: 100%; width: 100%; aspect-ratio: auto; max-width: none; border-radius: 0; }
  .clip-rail { position: absolute; right: 8px; bottom: 18px; z-index: 3; color: #fff; padding: 0; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
  .clip-rail .disc { border-color: #fff; }
  .clip-info { padding-right: 70px; padding-bottom: 20px; }
  .clips-mtop { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(52px + var(--safe-t)); padding: var(--safe-t) 10px 0 16px; display: flex; align-items: center; justify-content: space-between; color: #fff; pointer-events: none; }
  .clips-mtop h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
  .clips-mtop button { pointer-events: auto; color: #fff; }
}
@media (min-width: 768px) { .clips-mtop { display: none; } }

/* story viewer */
/* The story viewer must sit BELOW the dialog layer (#layer, z-index 200). It used to be 300, so every menu or editor
   opened from it (the "..." menu, Edit highlight, Add to highlight, Report) was rendered behind the viewer and its
   taps landed on the viewer instead. Dialogs, then toasts (400), now always overlap it correctly. */
.sv { position: fixed; inset: 0; z-index: 150; background: #121110; display: flex; align-items: center; justify-content: center; animation: fadeIn .18s ease; color: #fff; }
.sv.closing { animation: fadeOut .18s ease forwards; pointer-events: none; }
.sv-brand { position: absolute; top: 20px; left: 26px; color: #fff; }
.sv-brand .brand-cross { color: #fff; }
.sv-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; z-index: 3; }
.sv-close .i { width: 30px; height: 30px; }
.sv-stage { position: relative; height: min(calc(100dvh - 40px), 860px); aspect-ratio: 9 / 16; max-width: 100vw; }
.sv-card { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.sv-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sv-media img, .sv-media video { width: 100%; height: 100%; object-fit: cover; }
.sv-media .verse { height: 100%; }
.sv-media .verse-in { justify-content: center; }
.sv-overlay-text { position: absolute; left: 8%; right: 8%; top: 58%; text-align: center; font-family: var(--serif); font-size: 30px; line-height: 1.12; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.sv-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 20%, transparent 78%, rgba(0, 0, 0, .5)); pointer-events: none; }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; gap: 3px; }
.sv-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars b { display: block; height: 100%; width: 0; background: #fff; }
.sv-head { position: absolute; top: 22px; left: 12px; right: 6px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.sv-head .av { --s: 32px; }
.sv-head a { font-weight: 600; font-size: 14px; }
.sv-head time { color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.sv-head .grow { flex: 1; }
.sv-head button { color: #fff; width: 34px; height: 34px; display: grid; place-items: center; }
.sv-head button .i { width: 22px; height: 22px; }
.sv-tap { position: absolute; top: 70px; bottom: 80px; z-index: 2; }
.sv-tap.l { left: 0; width: 35%; }
.sv-tap.r { right: 0; width: 65%; }
.sv-reply { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.sv-reply input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; padding: 0 18px; outline: none; font-size: 14px; }
.sv-reply input::placeholder { color: rgba(255, 255, 255, .85); }
.sv-reply input:focus { border-color: #fff; }
.sv-reply button { color: #fff; width: 40px; height: 40px; display: grid; place-items: center; }
.sv-reply button .i { width: 26px; height: 26px; }
.sv-reply .liked .i { fill: var(--like); stroke: var(--like); }
.sv-nav { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; display: grid; place-items: center; z-index: 3; }
.sv-nav .i { width: 20px; height: 20px; stroke-width: 2.6; }
.sv-nav.prev { left: -54px; }
.sv-nav.next { right: -54px; }
.sv-seen { position: absolute; left: 14px; bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.sv-seen .i { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .sv { background: #000; }
  .sv-brand, .sv-close, .sv-nav { display: none; }
  .sv-stage { height: 100%; width: 100%; aspect-ratio: auto; }
  .sv-card { border-radius: 0; top: var(--safe-t); bottom: var(--safe-b); }
}

/* messages */
.dm { display: flex; height: 100dvh; }
.dm-list { width: 398px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.dm-list-head { padding: 34px 24px 12px; display: flex; align-items: center; justify-content: space-between; }
.dm-list-head h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 4px; letter-spacing: -.01em; }
.dm-active { display: flex; gap: 16px; overflow-x: auto; padding: 8px 24px 16px; scrollbar-width: none; }
.dm-active::-webkit-scrollbar { display: none; }
.dm-active a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 66px; flex: none; font-size: 12px; color: var(--muted); }
.dm-active .av { --s: 62px; }
.dm-active .on-dot { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--online); border: 3px solid var(--bg); }
.dm-active span.nm { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-tabs { display: flex; padding: 0 24px; gap: 22px; border-bottom: 1px solid var(--line); }
.dm-tabs button { height: 42px; font-weight: 600; color: var(--muted); border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.dm-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.dm-threads { flex: 1; overflow-y: auto; padding: 6px 0 16px; }
.th { display: flex; align-items: center; gap: 12px; padding: 9px 24px; transition: background .12s; }
.th:hover { background: var(--hover-row); }
.th.on { background: var(--surface-2); }
.th .av { --s: 54px; }
.th .meta { flex: 1; min-width: 0; line-height: 1.35; }
.th .nm { display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th .last { display: flex; gap: 4px; color: var(--muted); font-size: 13px; min-width: 0; }
.th .last span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th .last time { flex: none; }
.th.unread .nm, .th.unread .last { font-weight: 700; color: var(--ink); }
.th .udot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dm-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.dm-chat-head { display: flex; align-items: center; gap: 12px; height: 75px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.dm-chat-head .meta { flex: 1; min-width: 0; line-height: 1.25; }
.dm-chat-head .meta .s { font-size: 12px; color: var(--muted); }
.dm-chat-head .av { --s: 44px; }
.dm-chat-head .back { display: none; }
.dm-scroll { flex: 1; overflow-y: auto; padding: 16px 20px 8px; min-height: 0; display: flex; flex-direction: column; }
.dm-intro { text-align: center; padding: 24px 0 36px; }
.dm-intro .av { --s: 96px; margin: 0 auto 12px; }
.dm-intro h3 { font-size: 20px; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 4px; }
.dm-intro p { color: var(--muted); margin: 2px 0 14px; font-size: 13.5px; }
.dm-day { text-align: center; font-size: 12px; color: var(--muted); font-weight: 500; margin: 18px 0 10px; }
.msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; max-width: 100%; }
.msg .av { --s: 28px; visibility: hidden; }
.msg.last-of-group .av { visibility: visible; }
.msg.me { justify-content: flex-end; }
.bubble { position: relative; max-width: min(72%, 520px); padding: 9px 13px; border-radius: 20px; background: var(--surface-2); color: var(--ink); line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg.me .bubble { background: var(--accent); color: var(--accent-ink); }
.msg.me .bubble a { color: inherit; text-decoration: underline; }
.msg.first-of-group.them .bubble { border-top-left-radius: 20px; }
.msg.them:not(.last-of-group) .bubble { border-bottom-left-radius: 6px; }
.msg.them:not(.first-of-group) .bubble { border-top-left-radius: 6px; }
.msg.me:not(.last-of-group) .bubble { border-bottom-right-radius: 6px; }
.msg.me:not(.first-of-group) .bubble { border-top-right-radius: 6px; }
.msg.first-of-group { margin-top: 10px; }
.bubble.big-emoji { background: none !important; font-size: 40px; padding: 0 2px; line-height: 1.1; }
.bubble .heart-react { position: absolute; bottom: -12px; right: 10px; background: var(--surface); border-radius: 99px; padding: 1px 5px; font-size: 12px; box-shadow: 0 0 0 2px var(--bg); }
.msg.me .bubble .heart-react { right: auto; left: 10px; }
.msg.has-react { margin-bottom: 14px; }
.msg-time { font-size: 11px; color: var(--muted); align-self: center; opacity: 0; transition: opacity .15s; }
.msg:hover .msg-time { opacity: 1; }
.dm-seen { text-align: right; font-size: 12px; color: var(--muted); padding: 4px 4px 0; }
.shared-post { width: 240px; border-radius: 18px; overflow: hidden; background: var(--surface-2); color: var(--ink); cursor: pointer; display: block; text-align: left; }
.shared-post .sp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; font-size: 13px; }
.shared-post .sp-head .av { --s: 24px; visibility: visible; }
.shared-post .sp-media { aspect-ratio: 1; position: relative; overflow: hidden; }
.shared-post .sp-media img, .shared-post .sp-media .verse { width: 100%; height: 100%; object-fit: cover; }
.shared-post .sp-cap { padding: 8px 12px 12px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 20px; background: var(--surface-2); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.dm-compose { padding: 12px 16px 18px; flex: none; }
.dm-compose form { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 4px 6px 4px 8px; border: 1px solid var(--line-2); border-radius: 23px; background: var(--surface); }
.dm-compose textarea { flex: 1; min-width: 0; border: 0; outline: none; background: none; resize: none; max-height: 120px; padding: 8px 4px; line-height: 1.35; font-size: 14.5px; color: var(--ink); }
.dm-compose .send-txt { color: var(--accent); font-weight: 700; padding: 0 10px; }
.dm-compose .icon-btn { width: 36px; height: 36px; }
.dm-compose .icon-btn .i { width: 22px; height: 22px; }
.dm-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.dm-empty .big { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; margin-bottom: 16px; }
.dm-empty .big .i { width: 46px; height: 46px; stroke-width: 1.3; }
.dm-empty h3 { font-size: 20px; font-weight: 500; }
.dm-empty p { color: var(--muted); margin: 6px 0 16px; }
@media (max-width: 1023px) {
  .dm-list { width: 320px; }
}
@media (max-width: 767px) {
  .dm { height: auto; min-height: calc(100dvh - var(--top-h) - var(--tab-h)); display: block; }
  .dm-list { width: 100%; border-right: 0; }
  .dm-list-head { padding: 0 6px; height: calc(var(--top-h) + var(--safe-t)); padding-top: var(--safe-t); position: sticky; top: 0; background: var(--bg); z-index: 5; }
  .dm-list-head h2 { font-size: 18px; }
  .dm-active { padding: 10px 16px 14px; }
  .dm-tabs { padding: 0 16px; }
  .th { padding: 9px 16px; }
  .dm.has-thread .dm-list { display: none; }
  .dm:not(.has-thread) .dm-chat { display: none; }
  .dm.has-thread { height: 100dvh; display: flex; }
  .dm-chat-head { height: calc(58px + var(--safe-t)); padding: var(--safe-t) 8px 0 4px; gap: 8px; }
  .dm-chat-head .back { display: grid; }
  .dm-chat-head .av { --s: 34px; }
  .dm-scroll { padding: 12px 12px 8px; }
  .dm-compose { padding: 8px 10px calc(10px + var(--safe-b)); }
  .bubble { max-width: 78%; }
}

/* fellowship */
.fs { display: flex; height: 100dvh; background: var(--chat); }
.fs-rail { width: 72px; flex: none; background: var(--rail); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.fs-rail::-webkit-scrollbar { display: none; }
.fs-rail-sep { width: 32px; height: 2px; border-radius: 1px; background: var(--line-2); margin: 2px 0; flex: none; }
.fs-ic { position: relative; width: 48px; height: 48px; flex: none; }
.fs-ic > a, .fs-ic > button { width: 48px; height: 48px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; transition: border-radius .18s, background .18s, color .18s; box-shadow: var(--shadow-sm); }
.fs-ic > a img { width: 100%; height: 100%; object-fit: cover; }
.fs-ic > a:hover { border-radius: 14px; }
.fs-ic.on > a { border-radius: 14px; box-shadow: 0 0 0 2px var(--rail), 0 0 0 4px var(--ink); }
.fs-ic .pip { position: absolute; left: -12px; top: 50%; width: 4px; height: 8px; margin-top: -4px; border-radius: 0 4px 4px 0; background: var(--ink); transition: height .18s, margin .18s; }
.fs-ic.unread .pip { height: 8px; }
.fs-ic.on .pip { height: 36px; margin-top: -18px; }
.fs-ic:not(.unread):not(.on) .pip { height: 0; }
.fs-ic .badge { top: auto; bottom: -3px; right: -4px; border-color: var(--rail); }
.fs-ic.add > button { color: var(--accent); background: var(--surface); }
.fs-ic.add > button:hover { background: var(--accent); color: var(--accent-ink); }
.fs-side { width: 248px; flex: none; background: var(--side); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.fs-head { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); flex: none; font-weight: 700; font-size: 15px; transition: background .12s; width: 100%; text-align: left; }
.fs-head:hover { background: var(--hover-row); }
.fs-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-head .i { width: 18px; height: 18px; }
.fs-banner { height: 120px; flex: none; position: relative; overflow: hidden; }
.fs-banner img { width: 100%; height: 100%; object-fit: cover; }
.fs-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 60%); }
.fs-banner + .fs-head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; color: #fff; border-bottom: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.fs-side-top { position: relative; flex: none; }
.fs-channels { flex: 1; overflow-y: auto; padding: 10px 8px 16px; }
.fs-cat { display: flex; align-items: center; gap: 2px; width: 100%; padding: 16px 4px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fs-cat:hover { color: var(--ink); }
.fs-cat .i { width: 12px; height: 12px; stroke-width: 2.6; transition: transform .15s; }
.fs-cat.collapsed .i { transform: rotate(-90deg); }
.fs-cat:first-child { padding-top: 4px; }
.ch { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; margin: 1px 0; border-radius: 7px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: background .1s, color .1s; text-align: left; }
.ch:hover { background: var(--hover-row); color: var(--ink-2); }
.ch.on { background: var(--surface-3); color: var(--ink); }
.ch.unread { color: var(--ink); font-weight: 600; }
.ch.unread::before { content: ""; position: absolute; left: -8px; top: 50%; width: 4px; height: 8px; margin-top: -4px; border-radius: 0 4px 4px 0; background: var(--ink); }
.ch .i { width: 19px; height: 19px; color: var(--faint); flex: none; }
.ch.on .i, .ch.unread .i { color: var(--ink-2); }
.ch span.n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .badge { position: static; border: 0; }
.vc-members { padding: 2px 0 6px 34px; }
.vc-m { display: flex; align-items: center; gap: 8px; height: 30px; font-size: 13.5px; color: var(--muted); }
.vc-m .av { --s: 22px; transition: box-shadow .15s; }
.vc-m.speaking .av { box-shadow: 0 0 0 2px var(--side), 0 0 0 4px var(--online); }
.vc-m .i { width: 14px; height: 14px; color: var(--danger); margin-left: auto; margin-right: 6px; }
.fs-voice { flex: none; padding: 10px 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.fs-voice .meta { flex: 1; min-width: 0; line-height: 1.2; }
.fs-voice .meta b { color: var(--online); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.fs-voice .meta b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--online) 25%, transparent); }
.fs-voice .meta small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fs-me { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; background: color-mix(in srgb, var(--rail) 55%, var(--side)); }
.fs-me .av-wrap .av { --s: 34px; }
.fs-me .meta { flex: 1; min-width: 0; line-height: 1.2; }
.fs-me .meta b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-me .meta small { color: var(--muted); font-size: 12px; }
.fs-me .icon-btn { width: 32px; height: 32px; border-radius: 8px; }
.fs-me .icon-btn .i { width: 19px; height: 19px; }
.fs-me .icon-btn.off { color: var(--danger); }
.fs-status .status { border-color: color-mix(in srgb, var(--rail) 55%, var(--side)); }

.fs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--chat); }
.fs-chat-head { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.fs-chat-head .ttl { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.fs-chat-head .ttl .i { width: 22px; height: 22px; color: var(--faint); }
.fs-chat-head .topic { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line-2); }
.fs-chat-head .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.fs-chat-head .icon-btn:hover, .fs-chat-head .icon-btn.on { color: var(--ink); }
.fs-chat-head .icon-btn .i { width: 21px; height: 21px; }
.fs-chat-head .back { display: none; }
.fs-body { flex: 1; display: flex; min-height: 0; }
.fs-scroll { flex: 1; min-width: 0; overflow-y: auto; padding: 0 0 12px; display: flex; flex-direction: column; }
.fs-scroll > .spacer { flex: 1; }
.fs-welcome { padding: 36px 20px 12px; }
.fs-welcome .big { width: 68px; height: 68px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 12px; }
.fs-welcome .big .i { width: 38px; height: 38px; }
.fs-welcome h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.fs-welcome p { color: var(--muted); margin-top: 4px; }
.fs-divider { display: flex; align-items: center; gap: 10px; margin: 18px 20px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fs-divider::before, .fs-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fm { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 2px 20px 2px 18px; transition: background .08s; }
.fm:hover { background: var(--hover-row); }
.fm.head { margin-top: 14px; padding-top: 4px; }
.fm .av { --s: 40px; margin-top: 2px; cursor: pointer; }
.fm .gutter { font-size: 10.5px; color: var(--faint); text-align: right; padding-top: 4px; opacity: 0; white-space: nowrap; }
.fm:hover .gutter { opacity: 1; }
.fm-top { display: flex; align-items: baseline; gap: 8px; line-height: 1.3; flex-wrap: wrap; }
.fm-top .who { font-weight: 600; font-size: 14.5px; cursor: pointer; }
.fm-top .who:hover { text-decoration: underline; }
.fm-top .role-ic { width: 14px; height: 14px; vertical-align: -2px; }
.fm-top time { font-size: 11.5px; color: var(--muted); }
.fm-text { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.fm-text .mention { background: var(--mention-bg); color: var(--gold); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.fm.mentions-me { background: var(--mention-bg); box-shadow: inset 2px 0 0 var(--gold); }
.fm-reply { display: flex; align-items: center; gap: 6px; grid-column: 2; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; position: relative; min-width: 0; }
.fm-reply::before { content: ""; position: absolute; left: -34px; top: 9px; width: 28px; height: 10px; border-left: 2px solid var(--line-2); border-top: 2px solid var(--line-2); border-top-left-radius: 6px; }
.fm-reply .av { --s: 16px; margin: 0; }
.fm-reply b { font-weight: 600; color: var(--ink-2); }
.fm-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.react { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; font-size: 13px; font-weight: 600; color: var(--muted); transition: border-color .12s, background .12s; }
.react:hover { border-color: var(--line-2); }
.react.mine { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }
.react .e { font-size: 15px; line-height: 1; }
.react.add { opacity: 0; padding: 0 6px; }
.fm:hover .react.add { opacity: 1; }
.react.add .i { width: 16px; height: 16px; }
.fm-tools { position: absolute; top: -14px; right: 18px; z-index: 2; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 2px; }
.fm:hover .fm-tools, .fm.tools-open .fm-tools { display: flex; }
.fm-tools button { width: 32px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); font-size: 16px; }
.fm-tools button:hover { background: var(--surface-2); color: var(--ink); }
.fm-tools .i { width: 18px; height: 18px; }
.fm-tools .danger:hover { color: var(--danger); }
@media (hover: none) { .fm-tools { display: none !important; } .react.add { opacity: 1; } }
.embed { margin-top: 6px; max-width: 520px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--gold); padding: 14px 16px; }
.embed h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.embed p { color: var(--ink-2); font-size: 13.5px; }
.embed .emeta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; margin: 10px 0 12px; }
.embed .emeta span { display: inline-flex; align-items: center; gap: 6px; }
.embed .emeta .i { width: 16px; height: 16px; }
.embed.cov ol { list-style: none; counter-reset: c; margin-top: 10px; }
.embed.cov li { counter-increment: c; display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.embed.cov li::before { content: counter(c, upper-roman); font-family: var(--serif); color: var(--gold); font-size: 16px; line-height: 1.1; }
.embed.cov .foot { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.fs-typing { height: 22px; padding: 0 20px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex: none; }
.fs-typing .typing { padding: 0; background: none; gap: 3px; }
.fs-typing .typing i { width: 5px; height: 5px; }
.fs-compose { padding: 0 16px 18px; flex: none; }
.fs-replying { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-radius: 10px 10px 0 0; background: var(--surface-3); font-size: 13px; color: var(--muted); }
.fs-replying b { color: var(--ink); }
.fs-replying + form { border-top-left-radius: 0; border-top-right-radius: 0; }
.fs-compose form { display: flex; align-items: flex-end; gap: 4px; padding: 4px 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.fs-compose textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: none; padding: 10px 6px; max-height: 160px; line-height: 1.4; font-size: 14.5px; color: var(--ink); }
.fs-compose .icon-btn { width: 38px; height: 38px; color: var(--muted); }
.fs-compose .icon-btn:hover { color: var(--ink); }
.fs-compose .locked { padding: 12px 14px; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.fs-compose .locked .i { width: 16px; height: 16px; }
.fs-members { width: 240px; flex: none; background: var(--side); overflow-y: auto; padding: 8px 8px 16px; border-left: 1px solid var(--line); }
.fs-members h4 { padding: 16px 8px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 8px; border-radius: 7px; text-align: left; }
.mem:hover { background: var(--hover-row); }
.mem .av { --s: 32px; }
.mem .meta { flex: 1; min-width: 0; line-height: 1.2; }
.mem .meta b { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem .meta small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mem.off { opacity: .45; }
.mem .role-ic { width: 14px; height: 14px; flex: none; }
.fs-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); }
.fs-empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.voice-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 20px; background: var(--rail); }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; width: 100%; max-width: 760px; }
.voice-tile { aspect-ratio: 16 / 10; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; transition: box-shadow .15s; }
.voice-tile .av { --s: 64px; }
.voice-tile.speaking { box-shadow: 0 0 0 3px var(--online); }
.voice-tile span { font-size: 13px; font-weight: 600; }
.voice-tile .i { position: absolute; right: 10px; bottom: 10px; width: 18px; height: 18px; color: var(--danger); }
.voice-ctl { display: flex; gap: 10px; }
.voice-ctl .icon-btn { width: 52px; height: 52px; background: var(--surface); }
.voice-ctl .icon-btn.off { color: var(--danger); }
.voice-ctl .icon-btn.leave { background: var(--danger); color: #fff; }
.discover { padding: 28px 28px 48px; overflow-y: auto; flex: 1; }
.discover-hero { border-radius: 16px; padding: 34px 30px; background: linear-gradient(135deg, #22413A, #2D5A4C 55%, #6B6A3E); color: #F2EADB; margin-bottom: 26px; }
.discover-hero h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; }
.discover-hero p { opacity: .85; margin-top: 8px; max-width: 460px; }
.discover-hero .search-box { margin-top: 18px; max-width: 420px; }
.discover-hero .search-box .input { background: rgba(255, 255, 255, .95); color: #191714; }
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dcard { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.dcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dcard-banner { height: 112px; position: relative; background: var(--surface-3); }
.dcard-banner img { width: 100%; height: 100%; object-fit: cover; }
.dcard-icon { position: absolute; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; border: 3px solid var(--surface); overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 700; }
.dcard-icon img { width: 100%; height: 100%; object-fit: cover; }
.dcard-body { padding: 30px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.dcard-body h4 { font-size: 15px; font-weight: 700; }
.dcard-body p { color: var(--muted); font-size: 13px; margin: 4px 0 12px; flex: 1; }
.dcard-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.dcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dcard-meta .on-d { width: 8px; height: 8px; border-radius: 50%; background: var(--online); }
.dcard-meta .off-d { width: 8px; height: 8px; border-radius: 50%; background: var(--offline); }
.dcard .btn { margin-top: 12px; }
.icon-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-pick button { width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent; }
.icon-pick button.on { border-color: var(--ink); }
.tpl { display: flex; flex-direction: column; gap: 8px; }
.tpl button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; text-align: left; transition: background .12s, border-color .12s; }
.tpl button:hover { background: var(--surface-2); }
.tpl button.on { border-color: var(--accent); background: var(--accent-soft); }
.tpl .i { width: 22px; height: 22px; color: var(--accent); }
.tpl b { display: block; font-weight: 600; }
.tpl small { color: var(--muted); font-size: 12.5px; }
.invite-box { display: flex; gap: 8px; }
.invite-box .input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

@media (max-width: 1279px) { .fs-members.auto { display: none; } }
@media (max-width: 1023px) {
  .fs-members { position: absolute; right: 0; top: 56px; bottom: 0; z-index: 4; box-shadow: var(--shadow-lg); }
  .fs-body { position: relative; }
}
@media (max-width: 767px) {
  .fs { height: calc(100dvh - var(--top-h) - var(--tab-h) - var(--safe-t) - var(--safe-b)); }
  .fs-rail { width: 68px; }
  .fs-side { flex: 1; width: auto; min-width: 0; border-right: 0; }
  .fs-main { display: none; }
  .fs.in-chat { position: fixed; inset: 0; z-index: 60; height: 100dvh; }
  .fs.in-chat .fs-rail, .fs.in-chat .fs-side { display: none; }
  .fs.in-chat .fs-main { display: flex; }
  .fs-chat-head { height: calc(54px + var(--safe-t)); padding: var(--safe-t) 6px 0 4px; }
  .fs-chat-head .back { display: grid; }
  .fs-chat-head .topic { display: none; }
  .fs-chat-head .ttl { flex: 1; min-width: 0; overflow: hidden; }
  .fs-members { top: calc(54px + var(--safe-t)); width: 82%; max-width: 300px; }
  .fs-compose { padding: 0 8px calc(8px + var(--safe-b)); }
  .fm { padding: 2px 12px 2px 10px; gap: 0 10px; }
  .fm .av { --s: 36px; }
  .fm { grid-template-columns: 36px 1fr; }
  .discover { padding: 16px; }
  .discover-hero { padding: 24px 20px; }
  .discover-hero h2 { font-size: 30px; }
}

/* create */
.create { width: min(860px, calc(100vw - 48px)); padding: 0; display: flex; flex-direction: column; max-height: calc(100dvh - 48px); overflow: hidden; }
.create.narrow { width: min(560px, calc(100vw - 48px)); }
.create-body { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.create-pick { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 24px; min-height: 480px; text-align: center; }
.create-pick.drag { background: var(--accent-soft); }
.create-pick .art { display: flex; gap: 0; margin-bottom: 6px; color: var(--ink); }
.create-pick .art .i { width: 72px; height: 72px; stroke-width: .9; }
.create-pick .art .i + .i { margin-left: -18px; transform: rotate(8deg) translateY(6px); }
.create-pick .art .i:first-child { transform: rotate(-8deg); }
.create-pick h3 { font-size: 20px; font-weight: 500; }
.create-pick p { color: var(--muted); font-size: 13.5px; margin-top: -6px; }
.create-pick .or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .1em; width: 240px; }
.create-pick .or::before, .create-pick .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.create-kind { display: flex; justify-content: center; padding: 10px; border-bottom: 1px solid var(--line); }
.create-stage { flex: 1 1 auto; min-width: 0; background: var(--surface-2); display: flex; align-items: center; justify-content: center; position: relative; padding: 0; overflow: hidden; }
.create-frame { position: relative; width: 100%; max-height: 100%; overflow: hidden; background: #000; }
.create-frame img, .create-frame video { width: 100%; height: 100%; object-fit: cover; }
.create-frame .verse { position: absolute; inset: 0; }
.create-thumbs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.create-thumbs button { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.create-thumbs button.on { border-color: #fff; }
.create-thumbs img, .create-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.create-ar { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; }
.create-ar button { height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(20, 18, 16, .66); color: #fff; font-size: 12.5px; font-weight: 600; }
.create-ar button.on { background: #fff; color: #111; }
.create-panel { width: 340px; flex: none; border-left: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; background: var(--surface); }
.create-panel .tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.create-panel .tabs button { flex: 1; height: 44px; font-weight: 600; color: var(--muted); border-bottom: 1.5px solid transparent; }
.create-panel .tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 16px; }
.filters button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.filters button .fthumb { width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.filters button .fthumb img { width: 100%; height: 100%; object-fit: cover; }
.filters button.on { color: var(--ink); font-weight: 600; }
.filters button.on .fthumb { border-color: var(--accent); }
.adjust { padding: 16px; }
.adjust label { display: block; margin-bottom: 18px; }
.adjust label span { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.adjust input[type=range] { width: 100%; accent-color: var(--accent); }
.details { padding: 14px 16px 20px; }
.details .who { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.details .who .av { --s: 28px; }
.details textarea { width: 100%; min-height: 150px; border: 0; outline: none; resize: none; background: none; color: var(--ink); font-size: 15px; line-height: 1.45; padding: 0; }
.details .count { text-align: right; font-size: 12px; color: var(--faint); padding: 4px 0 10px; border-bottom: 1px solid var(--line); }
.details .opt { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details .opt input.bare { font-size: 14px; }
.details .opt .i { width: 20px; height: 20px; color: var(--muted); }
.details .opt .meta { flex: 1; line-height: 1.3; }
.details .opt .meta small { display: block; color: var(--muted); font-size: 12px; }
.details .opt.toggle { cursor: pointer; }
.verse-editor { padding: 16px; }
.verse-editor textarea { min-height: 120px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; background: var(--v-bg); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.create-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px; min-height: 420px; }
.create-done .ok { width: 92px; height: 92px; border-radius: 50%; background: var(--ring); padding: 3px; }
.create-done .ok > div { width: 100%; height: 100%; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--gold); }
.create-done .ok .i { width: 44px; height: 44px; stroke-width: 1.6; }
.create-done h3 { font-size: 20px; font-weight: 600; }
.create-done p { color: var(--muted); }
.create-busy { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); z-index: 5; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .create, .create.narrow { width: 100%; height: 100%; max-height: none; }
  .create-body { flex-direction: column; overflow-y: auto; }
  .create-stage { flex: none; }
  .create-panel { width: 100%; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .create-pick { min-height: 0; flex: 1; }
}

/* onboarding */
.onboarding { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.ob-art { position: relative; overflow: hidden; background: #F2EBDD; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; }
[data-theme="dark"] .ob-art { background: var(--surface-2); }
.ob-art > * { position: relative; }
.ob-brand { display: flex; align-items: center; gap: 10px; }
.ob-brand .wordmark { font-size: 22px; }
.ob-brand .brand-cross { width: 22px; height: 30px; }
.ob-art h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: -.02em; max-width: 620px; text-wrap: balance; }
.ob-art h1 em { font-style: normal; color: var(--gold); }
.ob-art .sub { margin-top: 18px; font-size: 16px; line-height: 1.55; max-width: 470px; color: var(--ink-2); }
.ob-feats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.ob-feats div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.ob-feats .i { width: 18px; height: 18px; color: var(--gold); }
.ob-verse { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--ink-2); max-width: 460px; }
.ob-verse cite { display: block; font-family: var(--font); font-style: normal; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; color: var(--gold); }
.ob-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.ob-card { width: 100%; max-width: 380px; }
.ob-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.ob-card .lead { color: var(--muted); margin: 6px 0 26px; font-size: 14.5px; }
.ob-guest { border: 1px solid var(--line-2); }
.ob-guest + .ob-guest { margin-top: 8px; }
.ob-guest + form { margin-top: 24px; }
.ob-card form + .ob-guest { margin-top: 12px; }
.ob-steps { display: flex; gap: 6px; margin-bottom: 28px; }
.ob-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); }
.ob-steps i.on { background: var(--ink); }
.ob-handle { position: relative; }
.ob-handle .at { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ob-handle .input { padding-left: 30px; }
.ob-err { color: var(--danger); font-size: 12.5px; margin-top: 6px; min-height: 16px; }
.ob-cov { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 6px 16px; margin-bottom: 16px; }
.ob-cov li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.ob-cov li:last-child { border-bottom: 0; }
.ob-cov .n { font-family: var(--serif); font-size: 20px; color: var(--gold); line-height: 1; }
.ob-cov b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.2; margin-bottom: 2px; }
.ob-cov span { color: var(--muted); }
.ob-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; margin-bottom: 18px; cursor: pointer; }
.ob-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.ob-legal { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
@media (max-width: 899px) {
  .onboarding { grid-template-columns: 1fr; }
  .ob-art { min-height: 0; padding: 28px 22px 30px; padding-top: calc(28px + var(--safe-t)); }
  .ob-art h1 { font-size: 40px; margin-top: 34px; }
  .ob-art .sub { font-size: 14.5px; }
  .ob-verse { display: none; }
  .ob-feats { gap: 14px 20px; margin-top: 20px; }
  .ob-form { padding: 30px 20px calc(36px + var(--safe-b)); align-items: flex-start; }
}

/* additions */
.tile.tall { aspect-ratio: 9 / 16; }
.story { text-align: center; }
.av-btn { display: inline-grid; place-items: center; border-radius: 50%; line-height: 0; }
@media (min-width: 1160px) { .sugg-strip { display: none; } }
@media (max-width: 767px) {
  .pf-desk-bio { display: none; }
  body.no-top .explore-top { top: 0; padding-top: calc(8px + var(--safe-t)); }
}
.msg-more { opacity: 0; transition: opacity .12s; color: var(--muted); align-self: center; }
.msg:hover .msg-more { opacity: 1; }
@media (hover: none) { .msg-more { display: none; } }
.sv-post-bg { position: absolute; inset: 0; background: linear-gradient(165deg, #2B2945 0%, #6E4A5E 58%, #C98A5E 100%); }
.sv-post { position: relative; z-index: 1; width: 74%; border-radius: 16px; overflow: hidden; background: #fff; color: #191714; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); text-align: left; display: block; }
.sv-post .sp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; }
.sv-post .sp-media { display: block; position: relative; overflow: hidden; }
.sv-post .sp-media img, .sv-post .sp-media .verse { width: 100%; height: 100%; object-fit: cover; }
.sv-post .sp-cap { display: block; padding: 10px 12px 12px; font-size: 13px; line-height: 1.35; }
.create-stage { height: min(560px, calc(100dvh - 140px)); }
.create-frame { height: 100%; width: auto; max-width: 100%; aspect-ratio: var(--ar, 1); }
.create-frame > img, .create-frame > video { position: absolute; inset: 0; }
@media (max-width: 767px) {
  .create-stage { height: auto; }
  .create-frame { width: 100%; height: auto; max-height: 62dvh; }
}
.pd-media .post-media .carousel, .pd-media .track { height: 100%; }
.pd-media .track { align-items: center; }
.pd-media .slide { aspect-ratio: auto; height: 100%; display: flex; align-items: center; justify-content: center; container-type: size; background: #000; }
.pd-media .slide > .verse { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); flex: none; }

/* misc */
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.kbd { font: 600 11px/1 var(--font); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.emoji-pop { position: fixed; z-index: 260; display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: riseIn .14s ease; }
.emoji-pop button { width: 36px; height: 36px; border-radius: 8px; font-size: 20px; display: grid; place-items: center; }
.emoji-pop button:hover { background: var(--surface-2); }
.pop-menu { position: fixed; z-index: 260; min-width: 240px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: riseIn .14s ease; }
.pop-menu button, .pop-menu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px; border-radius: 9px; font-size: 14px; text-align: left; }
.pop-menu button:hover, .pop-menu a:hover { background: var(--surface-2); }
.pop-menu .i { width: 20px; height: 20px; }
.pop-menu hr { border: 0; height: 1px; background: var(--line); margin: 6px -6px; }
.pop-menu .danger { color: var(--danger); }
.pop-menu .val { margin-left: auto; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* get started & honest empty states */
.start-card { padding: 16px 16px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.start-head { display: flex; align-items: baseline; justify-content: space-between; }
.start-head h3 { font-size: 15px; font-weight: 600; }
.start-head span { font-size: 12.5px; color: var(--muted); }
.start-bar { height: 4px; border-radius: 2px; background: var(--surface-3); margin: 10px 0 6px; overflow: hidden; }
.start-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s ease; }
.start-step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; text-align: left; font-size: 14px; border-top: 1px solid var(--line); }
.start-step:first-of-type { border-top: 0; }
.start-step .ck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.start-step .ck .i { width: 16px; height: 16px; }
.start-step span:nth-child(2) { flex: 1; }
.start-step .chev { width: 16px; height: 16px; color: var(--faint); }
.start-step:not(.done):hover span:nth-child(2) { color: var(--accent); }
.start-step.done { color: var(--muted); cursor: default; }
.start-step.done span:nth-child(2) { text-decoration: line-through; text-decoration-color: var(--line-2); }
.start-step.done .ck { background: var(--accent); color: var(--accent-ink); }
.start-step.done .ck .i { stroke-width: 2.6; }
.rail-start { margin-top: 18px; }
.rail-start:empty, .feed-start:empty { display: none; }
.feed-start { display: none; }
@media (max-width: 1159px) { .feed-start { display: block; margin: 0 0 22px; } }
@media (max-width: 767px) { .feed-start { margin: 0 12px 18px; } }
.home-empty { padding: 40px 24px 56px; }
.guest-home { display: grid; align-content: start; gap: 14px; padding: 0 12px; }
.guest-home h1 { font-size: 22px; margin-bottom: 6px; }
.guest-welcome { padding-bottom: 16px; }
.guest-welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 767px) { .guest-home { padding-top: 14px; } }
.fs-system { padding: 4px 20px 8px; }
.fs-system .embed { max-width: 560px; }
@media (max-width: 767px) {
  .fs.fs-none .fs-main { display: flex; }
  .fs-system { padding: 4px 12px 8px; }
}

/* smooth view changes */
.view-enter { animation: viewIn .22s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fs.view-enter, .dm.view-enter, .clips.view-enter { animation-name: fadeIn; }

/* welcome back */
.ob-me { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ob-me > div > b { display: block; font-size: 16px; font-weight: 600; }
.ob-me > div > span { color: var(--muted); font-size: 13.5px; }

/* highlight picker */
.hlp { width: 560px; padding: 0; display: flex; flex-direction: column; max-height: min(760px, calc(100dvh - 48px)); overflow: hidden; }
.hlp-hint { padding: 12px 16px 10px; color: var(--muted); font-size: 13.5px; }
.hlp-hint b { color: var(--ink); font-weight: 600; }
.hlp-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 3px 3px; align-content: start; }
.hlp-item { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--surface-3); border-radius: 4px; }
.hlp-item > img, .hlp-item > video, .hlp-item > .verse { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hlp-item::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0); transition: background .15s; pointer-events: none; }
.hlp-item.on::after { background: rgba(255, 255, 255, .28); }
.hlp-item .sel { position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .18); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.hlp-item.on .sel { background: var(--accent); border-color: #fff; }
.hlp-item .when { position: absolute; left: 6px; bottom: 6px; z-index: 2; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.hlp-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--surface); border: 1.5px dashed var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.hlp-upload:hover { background: var(--surface-2); }
.hlp-upload .i { width: 26px; height: 26px; }
.hlp-name { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 20px 24px; overflow-y: auto; }
.hlp-cover { width: 120px; height: 120px; }
.hlp-cover > div { position: relative; }
.hlp-cover img, .hlp-cover video, .hlp-cover .verse { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hlp-title { max-width: 280px; text-align: center; font-size: 16px; font-weight: 600; }
.hlp-covers { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.hlp-covers button { position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-2); background: var(--surface-3); }
.hlp-covers button.on { border-color: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.hlp-covers img, .hlp-covers video, .hlp-covers .verse { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-ring > div { position: relative; }
.hl-ring > div > img, .hl-ring > div > video, .hl-ring > div > .verse { position: absolute; inset: 0; }
@media (max-width: 767px) { .hlp { width: 100%; height: 100%; max-height: none; } }

/* Post audience badge + persistent "not saved yet" notice (member-feed-v4) */
.chip-audience { background: var(--accent-soft); color: var(--accent); }
.chip-audience.is-private { background: var(--line); color: var(--muted); }
.chip-audience.is-pending { background: var(--gold-soft); color: var(--gold); }
#sync-banner { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 410; display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(560px, calc(100vw - 24px)); padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500; line-height: 1.35; box-shadow: var(--shadow-lg); }
#sync-banner button { flex: none; color: color-mix(in srgb, var(--bg) 60%, var(--accent)); font-weight: 700; }

/* Fellowship invite links, the join page and shared-chat touches (member-feed-v5) */
.btn.danger { color: var(--danger); }
.fm.pending { opacity: .55; }
.fs-invite-btn { display: flex; align-items: center; gap: 6px; width: calc(100% - 16px); margin: 2px 8px 10px; justify-content: center; }
.fs-invite-btn .i { width: 14px; height: 14px; }

.invite-modal .modal-body { display: flex; flex-direction: column; gap: 14px; }
.invite-hero { display: flex; align-items: center; gap: 12px; }
.invite-hero b { display: block; font-size: 16px; }
.invite-hero small { color: var(--muted); font-size: 13px; }
.invite-ic { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; flex: none; display: block; }
.invite-modal .field { margin: 0; }
.invite-box { align-items: stretch; }
.invite-box .input { flex: 1; min-width: 0; }
.invite-note { font-size: 12.5px; line-height: 1.5; margin: -4px 0 0; }
.invite-new { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.invite-new h4, .invite-list h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.invite-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.invite-sel label { display: block; }
.invite-sel label > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.invite-sel select { width: 100%; height: 38px; }
.invite-list { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.invite-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.invite-row.on { border-color: var(--accent); background: var(--accent-soft); }
.invite-row .meta { flex: 1; min-width: 0; }
.invite-row code { display: block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.invite-row small { color: var(--muted); font-size: 12px; }
.invite-revoke { align-self: flex-start; color: var(--danger); }

.join-page { max-width: 520px; }
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 26px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.join-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.join-card .btn-block { margin-top: 6px; }
.join-av { width: 88px; height: 88px; border-radius: 24px; overflow: hidden; display: grid; place-items: center; flex: none; }
.join-av img { width: 100%; height: 100%; object-fit: cover; }
.join-av span { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 28px; }
.join-av.sm { width: 40px; height: 40px; border-radius: 12px; }
.join-av.sm span { font-size: 14px; }
.join-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.join-ic .i { width: 28px; height: 28px; }
.join-about { color: var(--ink-2); line-height: 1.5; max-width: 40ch; }
.join-cov { font-size: 12.5px; line-height: 1.5; margin-top: 8px; }
.join-cov a { color: var(--link, var(--accent)); font-weight: 600; }

.invite-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); text-align: left; }
.invite-banner b { display: block; font-size: 14px; }
.invite-banner span:not(.join-av) { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.invite-banner.bad { background: var(--gold-soft); }

/* ===== Layout and phone fixes (member-feed-v6) ===== */

/* Never let a phone zoom or jump when you tap a text box. iPhones zoom into any field whose text is smaller than 16px,
   so on phones every text field is at least 16px. (Pinch-to-zoom still works for people who need it.) */
@media (max-width: 767px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),
  textarea, select { font-size: 16px !important; }
}
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* A dialog sliding in from the side must never make the page wider than the screen. */
.modal-wrap { overflow: hidden; }
.modal-wrap.full-m .modal, .modal-wrap.sheet-m .modal { max-width: 100%; box-sizing: border-box; }

/* Text people write (captions, bios, comments, chat, names) may contain very long words or links: wrap them
   instead of stretching the page. */
.caption, .guest-post-text, .pf-bio, .pf-name, .pf-mbio, .cm .txt, .fm-text, .fm-reply span, .th .last span,
.msg .bubble, .bubble, .nf .txt, .join-about, .about-text, .set-row .meta, .menu-title p { overflow-wrap: anywhere; min-width: 0; }
.pf-link { display: flex; max-width: 100%; min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.pf-link .i { flex: none; }
.post-meta .uname, .th .nm, .pf-user h1, .mem .meta b, .cm .txt a.uname { overflow-wrap: anywhere; }

/* Highlight labels stay inside their own column (they used to spill over their neighbours on phones). */
.hl span { max-width: 100%; }

/* Reaction row in the comments sheet fits narrow phones. */
.quick-emoji { flex-wrap: wrap; row-gap: 2px; }

/* Clips: a long username shortens with "..." instead of running under the Follow button. */
.clip-user > div, .clip-user > a { min-width: 0; }
.clip-user a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-user .btn-follow { flex: none; }

/* Top bar on very small phones: the name shrinks, the buttons never fall off the screen. */
@media (max-width: 767px) {
  .tb-brand { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .tb-brand .wordmark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .tb-actions { flex: none; }
}
@media (max-width: 359px) {
  .tb-actions .icon-btn { width: 36px; height: 40px; }
  .tb-brand .wordmark { font-size: 18px; }
}

/* Text that can be long must be allowed to grow its box (fixed heights cut it off or let it spill out). */
.pf-church { height: auto; min-height: 28px; padding: 5px 11px 5px 8px; max-width: 100%; border-radius: 16px; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
.pf-church .i { flex: none; }
.bubble.big-emoji { line-height: 1.3; }
.cov-title { padding-bottom: .08em; }
.fm .gutter { white-space: nowrap; margin-left: -10px; }
/* The chat avatar size is set inline by the app, so the phone rule needs !important to take effect. */
@media (max-width: 767px) { .fm .av { --s: 36px !important; } }
/* Conversation header: a long name or username shortens with "..." instead of being cut off at the top. */
.dm-chat-head .meta .uname, .dm-chat-head .meta .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The top-bar name shortens with "..." on tiny phones; padding keeps the bottoms of the letters from being clipped. */
@media (max-width: 767px) { .tb-brand .wordmark { line-height: 1.25; padding: 4px 0; margin: -4px 0; } }
.cov-title { line-height: 1.08; padding-bottom: 0; }
/* The guest home is a one-column grid: without this the column grew to the widest card's minimum width, so on a
   phone the whole page became wider than the screen for visitors who were not logged in. */
.guest-home { grid-template-columns: minmax(0, 1fr); }
.guest-home > * { min-width: 0; }
