/* =====================================================================
   Your Groups + Groups slate redesign — page stylesheet.
   Self-contained component CSS (yg-*, bv-*, fr-* atoms). Design tokens
   (--accent, --brand, --surface, --radius, --shadow, etc.) come from
   extensions/index_new/styles.css, linked before this file.
   Ported verbatim from design_handoff_your_groups/{your-groups,browse-verses,friends}.css
   — all rules are class-scoped and conflict-free.
   ===================================================================== */

/* ============================ yg-* (your-groups.css) ============================ */
/* ====================================================================
   Your Groups — built on the Friends vocabulary.
   Re-uses tokens from styles.css, shell from practice-loggedin.css,
   sidebar from home-loggedin.css, header chrome from browse-verses.css,
   and feed/post atoms from friends.css.

   New "yg-" prefix only for groups-specific atoms.
   ==================================================================== */

/* ---------- Page wrap ---------- */
.yg-page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 64px 80px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 1600px) { .yg-page { padding: 40px 48px 80px; } }
@media (max-width: 1180px) { .yg-page { padding: 28px 40px 72px; } }
@media (max-width: 767px)  { .yg-page { padding: 20px 16px 64px; } }
/* collapse the shared two-column .split hero so it doesn't scroll sideways on phones */
@media (max-width: 767px) {
  .mv-root .split, .mv-root .split.reverse { grid-template-columns: 1fr; }
  .mv-root .split.reverse > :first-child { order: 0; }
  /* List hero: was minmax(0,1fr) auto — the CTA column crushed the subtitle
     into a one-word-per-line sliver. Stack title over buttons. */
  .mv-root .bv-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .mv-root .bv-head h1 { font-size: 30px; }
  .mv-root .bv-head-cta { flex-wrap: wrap; }
  /* Group cards: 3-col grid overflowed the phone viewport. One per row. */
  .mv-root .yg-grid, .mv-root .yg-grid.compact { grid-template-columns: 1fr; gap: 14px; }
}
/* Tablet: 2 cards per row before the phone 1-col collapse. */
@media (min-width: 768px) and (max-width: 1024px) {
  .mv-root .yg-grid, .mv-root .yg-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Subpage tab strip (sits below header) ---------- */
.yg-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--border);
  margin: -8px 4px 4px;
}
.yg-tabs button {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.yg-tabs button:hover { color: var(--text-1); }
.yg-tabs button.active {
  color: var(--text-1);
  font-weight: 600;
}
.yg-tabs button.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -11px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.yg-tabs .count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.yg-tabs button.active .count { color: var(--accent); background: var(--accent-soft); }
.yg-tabs .spacer { flex: 1; }
.yg-tabs .right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Sort / filter row ---------- */
.yg-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.yg-toolbar .yg-search {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}
.yg-toolbar .yg-search svg { color: var(--text-3); }
.yg-toolbar .yg-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-1);
  min-width: 0;
}
.yg-toolbar .yg-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.yg-toolbar .yg-sort:hover { color: var(--text-1); border-color: var(--border-strong); }
.yg-toolbar .yg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.yg-toolbar .yg-chip.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Group card grid ---------- */
.yg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.yg-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.yg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
}
.yg-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }

.yg-card-cover {
  position: relative;
  height: 110px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  overflow: hidden;
}
.yg-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,0.10), transparent 50%);
}
.yg-card-mem {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(11, 20, 38, 0.78);
  color: white;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.yg-card-mem svg { opacity: 0.9; }

.yg-card-role {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.85);
  color: var(--text-1);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}
.yg-card-role.admin { background: var(--accent); color: white; }
.yg-card-role.priv { background: rgba(11,20,38,0.78); color: white; }

.yg-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yg-card-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-1);
  margin: 0;
}
.yg-card-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.yg-card-sub .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.yg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.yg-card-foot .verses {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}
.yg-card-foot .verses svg { color: var(--warning); }
.yg-card-foot .activity {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* "Create" tile */
.yg-card.create {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px;
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  min-height: 240px;
}
.yg-card.create:hover { border-color: var(--accent); background: var(--accent-soft); }
.yg-card.create .ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 10px;
}
.yg-card.create h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-1);
}
.yg-card.create p {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 14px;
  max-width: 200px;
  line-height: 1.45;
}
.yg-card.create button {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Group cluster (group of groups, by section) ---------- */
.yg-cluster {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.yg-cluster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px;
}
.yg-cluster-head h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-1);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.yg-cluster-head h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.yg-cluster-head .count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.yg-cluster-head .right {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

/* ====================================================================
   GROUP-DETAIL CONTEXT BAR (header bar at top of every group subpage)
   ==================================================================== */
.yg-context {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.yg-context-swatch {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--brand));
  position: relative;
}
.yg-context-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(255,255,255,0.18), transparent 55%);
  border-radius: inherit;
  pointer-events: none;
}
.yg-context-swatch.js-group-picture-trigger .yg-context-swatch-edit { color: var(--yg-on-fill); }
.yg-context-swatch.js-group-picture-trigger:hover .yg-context-swatch-edit { opacity: 1 !important; }
.yg-context-info { min-width: 0; }
.yg-context-info .crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.yg-context-info .crumb a {
  color: var(--text-3);
  cursor: pointer;
}
.yg-context-info .crumb svg { opacity: 0.55; }
.yg-context-info h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-1);
  margin: 0 0 4px;
  line-height: 1.1;
}
.yg-context-info .meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.yg-context-info .meta .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.yg-context-info .meta .role {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
}
.yg-context-info .meta .priv {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  padding: 2px 7px;
  border-radius: 4px;
}

.yg-context-acts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.yg-context-acts .ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.yg-context-acts .ghost:hover { border-color: var(--accent); color: var(--accent); }
.yg-context-acts .primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text-1);
  color: var(--bg);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.yg-context-acts .iconbtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.yg-context-acts .iconbtn:hover { color: var(--accent); border-color: var(--accent); }

/* ====================================================================
   GROUP DETAIL LAYOUT (activity feed left, rail right)
   ==================================================================== */
.yg-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.yg-detail-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.yg-detail-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

/* ---------- "Share invite link" small block (group rail) ---------- */
.yg-invite {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.yg-invite .lab {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.yg-invite .code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.yg-invite .code-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--text-1);
}
.yg-invite .code button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.yg-invite .link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.yg-invite .link svg { color: var(--text-muted); flex-shrink: 0; }
.yg-invite .link span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yg-invite .link button {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.yg-invite .yg-invite-hint {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
}

/* ---------- Rail card (challenges, polls, etc) ---------- */
.yg-rail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yg-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.yg-rail-head h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.01em;
}
.yg-rail-head h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.yg-rail-head .cta {
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

/* ---------- Empty card (used by "No Challenges Yet") ---------- */
.yg-empty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.yg-empty-card .ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.yg-empty-card h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-1);
}
.yg-empty-card p {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-3);
  margin: 0 auto;
  max-width: 240px;
  line-height: 1.45;
}
.yg-empty-card button {
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.yg-empty-card button:hover { color: var(--accent); border-color: var(--accent); }

/* ====================================================================
   MEMBERS PAGE
   ==================================================================== */
.yg-members {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.yg-members-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.yg-members-head h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 0;
}
.yg-members-head .count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.yg-share-banner {
  background: linear-gradient(135deg, var(--accent-soft), transparent 80%), var(--surface);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--border));
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.yg-share-banner .lab {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.yg-share-banner .val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--text-1);
}
.yg-share-banner .copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.yg-member-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.yg-member-row .av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: white;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yg-member-row .nm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.yg-member-row .nm {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-1);
}
.yg-member-row .role-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}
.yg-member-row .role-pill.owner { background: var(--warning-soft); color: var(--warning); }
.yg-member-row .church {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.yg-member-row .stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.yg-member-row .stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}
.yg-member-row .stat svg { color: var(--warning); }
.yg-member-row .stat.score { color: var(--accent); }
.yg-member-row .right {
  text-align: right;
}
.yg-member-row .joined {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.yg-member-row .more {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}

.yg-invite-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.yg-invite-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ====================================================================
   VIEW VERSES PAGE
   ==================================================================== */
.yg-verses-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.yg-verses-head .left {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  flex: 1;
  box-shadow: var(--shadow-card);
}
.yg-verses-head .left .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yg-verses-head .lab {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.yg-verses-head .sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-3);
}
.yg-verses-head .toggle {
  width: 44px; height: 24px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.yg-verses-head .toggle::after {
  content: "";
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.yg-verses-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.yg-verses-toolbar .voice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.yg-verses-toolbar .voice .arrow {
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  margin-left: 4px;
}
.yg-verses-toolbar .heat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.yg-verses-toolbar .heat svg { color: var(--warning); }

.yg-verse-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.yg-verse-row .ring {
  width: 56px; height: 56px;
  position: relative;
  flex-shrink: 0;
}
.yg-verse-row .ring svg { width: 100%; height: 100%; }
.yg-verse-row .ring .pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}
.yg-verse-row.done .ring .pct { color: var(--accent); }
.yg-verse-row .info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.yg-verse-row .ref-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.yg-verse-row .ref {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.yg-verse-row .tr {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.yg-verse-row .text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yg-verse-row .acts {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.yg-verse-row .acts button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
}
.yg-verse-row .acts button:hover { color: var(--accent); }
.yg-verse-row .acts .practice { color: var(--success); }
.yg-verse-row .acts .practice svg { color: var(--success); }

/* ====================================================================
   MODAL (Start Challenge, Add Verses)
   ==================================================================== */
.yg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 38, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 30;
  padding-top: 200px;
}
.theme-dark .yg-overlay { background: rgba(0,0,0,0.55); }

.yg-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 100%;
  box-shadow: var(--shadow-elev);
  display: flex;
  flex-direction: column;
}
.yg-modal.wide { width: 560px; }
.yg-modal-head {
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px 0;
}
.yg-modal-head .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yg-modal-head h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 0 0 4px;
  line-height: 1.15;
}
.yg-modal-head .sub {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}
.yg-modal-head .close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.yg-modal-stepper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 22px 24px;
  position: relative;
}
.yg-modal-stepper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px; right: 24px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.yg-modal-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.yg-modal-step .dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.yg-modal-step.active .dot {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.yg-modal-step.done .dot {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.yg-modal-step .lab {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}
.yg-modal-step.active .lab { color: var(--text-1); }

.yg-modal-body {
  padding: 4px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.yg-modal-body .label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.yg-modal-body .label .req { color: var(--danger); }
.yg-modal-body .label .opt {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}
.yg-modal-body input.text,
.yg-modal-body textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-1);
  width: 100%;
  outline: 0;
  resize: vertical;
}
.yg-modal-body input.text:focus,
.yg-modal-body textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.yg-modal-body input.text::placeholder,
.yg-modal-body textarea::placeholder {
  color: var(--text-muted);
}
.yg-modal-body textarea {
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 80px;
}

.yg-modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border);
}
.yg-modal-foot .primary {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.yg-modal-foot .ghost {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.yg-modal-foot .ghost:hover { color: var(--text-1); border-color: var(--border-strong); }

/* Add Verses modal tabs + cards */
.yg-modal-tabs {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin: 0 24px;
}
.yg-modal-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.yg-modal-tabs button.active {
  background: var(--surface);
  color: var(--text-1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.yg-vsugg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 24px 0;
}
.yg-vsugg-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.yg-vsugg-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.yg-vsugg-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.yg-vsugg-card .ref {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}
.yg-vsugg-card .tr {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.yg-vsugg-card .text {
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yg-modal-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 10px;
}
.yg-modal-loader .spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
}
.yg-modal-loader .msg {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-3);
}

/* Challenge step 2 (memorize) */
.yg-ch-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yg-ch-pick-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
}
.yg-ch-pick-row.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.yg-ch-pick-row .box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.yg-ch-pick-row.on .box { background: var(--accent); border-color: var(--accent); }
.yg-ch-pick-row .nm {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.yg-ch-pick-row .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

/* Challenge step 3 (duration) */
.yg-dur-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.yg-dur-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
}
.yg-dur-card.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.yg-dur-card .n {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.012em;
  line-height: 1;
}
.yg-dur-card .l {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 2px;
}
.yg-dur-card.on .l { color: var(--accent); }

/* ====================================================================
   LOGGED-OUT marketing (Your Groups)
   Re-uses the .hero / .section / .split / .container vocab
   from styles.css. Only need a few group-specific widget styles.
   ==================================================================== */
.yglo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
}
.yglo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.yglo-mini {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yglo-mini .cov {
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--brand));
  position: relative;
}
.yglo-mini .cov .mem {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: white;
  background: rgba(11,20,38,0.7);
  padding: 2px 6px;
  border-radius: 8px;
}
.yglo-mini .nm {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.yglo-mini .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.yglo-3up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: var(--sp-10);
}
.yglo-feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
}
.yglo-feat .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.yglo-feat h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-1);
  letter-spacing: -0.012em;
}
.yglo-feat p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
  margin: 0;
}

/* ---------- Tweaks for dark-theme covers on cards ---------- */
.theme-dark .yg-card-cover { filter: brightness(1.05); }
.theme-dark .yg-card-cover::after {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,0.30), transparent 60%);
}

/* ============================ bv-* (browse-verses.css) ============================ */
/* ====================================================================
   Browse Verses — uses tokens from styles.css + shell from
   practice-loggedin.css + sidebar from home-loggedin.css.
   Matches the language of Monthly Calendar.
   ==================================================================== */

/* ---------- Page wrap ---------- */
.bv-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 64px 80px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- Page header ---------- */
.bv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 4px;
}
.yg-eye {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 10px;
}
.yg-eye .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}
.yg-eye .sep {
  width: 3px; height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}
.bv-head h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.0;
  color: var(--text-1);
  margin: 0;
}
.bv-head h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
}
.bv-head .sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
  max-width: 540px;
}
.bv-head-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.bv-head-cta .ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.bv-head-cta .ghost:hover { color: var(--text-1); border-color: var(--border-strong); }
.bv-head-cta .primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-1);
  color: var(--bg);
  border: 0;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Search + tools bar ---------- */
.bv-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  align-items: center;
}
.bv-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bv-search .ic {
  color: var(--text-3);
  display: inline-flex;
}
.bv-search input {
  background: transparent;
  border: 0;
  outline: 0;
  flex: 1;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-1);
  min-width: 0;
}
.bv-search input::placeholder { color: var(--text-muted); }
.bv-search-keys {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.bv-search-keys kbd {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}
.bv-search-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.bv-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.bv-tool:hover { color: var(--text-1); border-color: var(--border-strong); }
.bv-tool .chev { color: var(--text-3); }
.bv-tool .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
}

/* ---------- Topic filter chips ---------- */
.bv-topics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bv-topics-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.bv-topics-head .lab {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-3);
}
.bv-topics-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}
.bv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s;
}
.bv-chip:hover { color: var(--text-1); border-color: var(--border-strong); }
.bv-chip .num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.bv-chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  font-weight: 600;
}
.bv-chip.active .num { color: var(--accent); opacity: 0.7; }
.bv-chip .star {
  color: var(--warning);
}
.bv-chip.active .star { color: var(--accent); }

/* ---------- Stats strip (re-uses mc-stats vibe) ---------- */
.bv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.bv-stat {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.bv-stat + .bv-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 1px;
  background: var(--border);
}
.bv-stat .l {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-3);
}
.bv-stat .v {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1;
  color: var(--text-1);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.bv-stat .v .u {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.bv-stat .v .pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  margin-left: 4px;
}
.bv-stat .meta {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

/* ---------- Featured verse banner ---------- */
.bv-featured {
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--border));
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.bv-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%);
  pointer-events: none;
}
.bv-featured-left { position: relative; }
.bv-featured-eye {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.bv-featured-eye .pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.bv-featured-eye .sep {
  width: 3px; height: 3px;
  background: currentColor;
  opacity: 0.4;
  border-radius: 50%;
}
.bv-featured-quote {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--text-1);
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.bv-featured-ref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 22px;
}
.bv-featured-ref .v {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--text-3);
}
.bv-featured-actions {
  display: inline-flex;
  gap: 10px;
}
.bv-featured-actions .primary {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bv-featured-actions .ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
/* Right side mini-board */
.bv-featured-board {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bv-fb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-3);
}
.bv-fb-head .ic {
  color: var(--accent);
  display: inline-flex;
}
.bv-fb-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bv-fb-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
}
.bv-fb-row .av {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: white;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bv-fb-row .name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bv-fb-row .pct {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--success);
}
.bv-fb-row .pct.partial { color: var(--accent); }
.bv-fb-row .pct.miss { color: var(--text-muted); }
.bv-fb-foot {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bv-fb-foot .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-1);
}

/* ---------- Results section header ---------- */
.bv-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px;
}
.bv-results-title {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.bv-results-title h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 0;
}
.bv-results-title h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.bv-results-title .count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.bv-results-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bv-active-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-right: 4px;
}
.bv-active-filters .pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px 3px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bv-active-filters .pill .x {
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  opacity: 0.6;
}
.bv-view-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.bv-view-toggle button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bv-view-toggle button.active {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border);
}

/* ---------- Verse result grid ---------- */
.bv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  cursor: pointer;
  transition: border-color .12s, transform .12s, box-shadow .12s;
  box-shadow: var(--shadow-card);
}
.bv-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.bv-card.owned {
  border-color: color-mix(in oklab, var(--success) 30%, var(--border));
}
.bv-card.owned::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--success-soft), transparent 25%);
  pointer-events: none;
  opacity: 0.45;
}
.bv-card.featured-mini {
  background: linear-gradient(180deg, var(--accent-soft), transparent 35%), var(--surface);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--border));
}

.bv-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.bv-card-ref {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.bv-card-ref .name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  line-height: 1;
}
.bv-card-ref .tr {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 7px;
  border-radius: 5px;
}
.bv-card-topics {
  display: inline-flex;
  gap: 6px;
}
.bv-topic-pill {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bv-topic-pill .sw {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.bv-topic-pill.salvation { color: var(--accent); background: var(--accent-soft); }
.bv-topic-pill.love { color: var(--pink); background: color-mix(in oklab, var(--pink) 14%, transparent); }
.bv-topic-pill.service { color: var(--brand); background: var(--brand-soft); }
.bv-topic-pill.hope { color: var(--success); background: var(--success-soft); }
.bv-topic-pill.faith { color: var(--warning); background: var(--warning-soft); }
.bv-topic-pill.prayer { color: var(--teal); background: color-mix(in oklab, var(--teal) 14%, transparent); }
.bv-topic-pill.wisdom { color: var(--accent-strong); background: var(--accent-soft); }
.bv-topic-pill.peace { color: var(--brand); background: var(--brand-soft); }

.bv-card-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-1);
  letter-spacing: -0.005em;
  text-wrap: pretty;
  position: relative;
  z-index: 1;
}
.bv-card-text .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  vertical-align: 4px;
  margin-right: 2px;
  font-style: normal;
}
.bv-card-text .em {
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  padding: 0 2px;
}

.bv-card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.bv-card-stats {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.bv-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.bv-card-stat .ic {
  color: var(--text-muted);
  display: inline-flex;
}
.bv-card-stat .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.bv-card-stat.trend {
  color: var(--success);
}
.bv-card-stat.trend .ic { color: var(--success); }
.bv-card-stat.trend .num { color: var(--success); }

.bv-card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--text-1);
  color: var(--bg);
  border: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bv-card-action.owned {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid color-mix(in oklab, var(--success) 35%, transparent);
  padding: 7px 13px;
}
.bv-card-action.owned .ic { color: var(--success); }
.bv-card-action.queued {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  padding: 7px 13px;
}

/* Card length bar (tiny) */
.bv-card-length {
  position: absolute;
  bottom: 0; left: 22px; right: 22px;
  height: 2px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.bv-card-length > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  opacity: 0.35;
}

/* Saved star badge */
.bv-card-star {
  position: absolute;
  top: 16px; right: 16px;
  color: var(--warning);
  display: inline-flex;
}

/* ---------- Pagination footer ---------- */
.bv-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.bv-pager-left {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-2);
}
.bv-pager-left .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-1);
}
.bv-pager-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bv-pager-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bv-pager-btn:hover { color: var(--text-1); border-color: var(--border-strong); }
.bv-pager-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.bv-pager-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bv-pager-num.active {
  background: var(--text-1);
  color: var(--bg);
  border-color: var(--text-1);
}
.bv-pager-num.ellipsis { border: 0; background: transparent; color: var(--text-muted); }

/* ---------- Footnote ---------- */
.bv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-soft), transparent 70%);
  color: var(--text-2);
  font-size: 13px;
}
.bv-foot strong { color: var(--text-1); font-weight: 600; }
.bv-foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: var(--brand-fg);
  border: 0;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================ fr-* (friends.css) ============================ */
/* ====================================================================
   Friends — uses tokens from styles.css + shell from
   practice-loggedin.css + sidebar from home-loggedin.css.
   Borrows bv-* vocabulary from browse-verses.css for header/stats/foot.
   ==================================================================== */

/* ---------- Page wrap (re-uses .bv-page sizing) ---------- */
.fr-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 64px 80px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- Two-column layout ---------- */
.fr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

/* ---------- Feed column ---------- */
.fr-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.fr-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.fr-feed-head h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 0;
}
.fr-feed-head h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.fr-feed-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.fr-feed-tabs button {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.fr-feed-tabs button.active {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border);
}

/* ---------- Minimal subtitle ---------- */
.bv-head .sub.fr-sub {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 440px;
}

/* ---------- Quiet feed filter row ---------- */
.fr-feed-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 4px 4px 0;
}
.fr-feed-filter button {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  position: relative;
}
.fr-feed-filter button:hover { color: var(--text-1); }
.fr-feed-filter button.active {
  color: var(--text-1);
  font-weight: 600;
}
.fr-feed-filter button.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -11px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.fr-feed-filter .fr-feed-filter-meta {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Composer ---------- */
.fr-composer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.fr-composer input {
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-1);
  min-width: 0;
}
.fr-composer input::placeholder { color: var(--text-muted); }
.fr-composer-tools {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.fr-composer-tools button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.fr-composer-tools button:hover { color: var(--text-1); border-color: var(--border-strong); }
.fr-composer-tools .post {
  background: var(--text-1);
  color: var(--bg);
  border-color: var(--text-1);
}

/* ---------- Avatar (shared) ---------- */
.fr-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
}

/* ---------- Post ---------- */
.fr-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fr-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.fr-post-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
}
.fr-post-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fr-post-meta .line {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-1);
  font-weight: 400;
}
.fr-post-meta .line strong {
  font-weight: 600;
  color: var(--text-1);
}
.fr-post-meta .line em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.fr-post-meta .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.fr-post-more {
  background: transparent;
  border: 0;
  color: var(--text-3);
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}
.fr-post-more:hover { background: var(--surface-2); color: var(--text-1); }

/* ---------- Verse mini cards inside posts ---------- */
.fr-post-verses {
  display: grid;
  gap: 10px;
}
.fr-post-verses.cols-1 { grid-template-columns: 1fr; }
.fr-post-verses.cols-2 { grid-template-columns: 1fr 1fr; }
.fr-post-verses.cols-3 { grid-template-columns: repeat(3, 1fr); }

.fr-verse-mini {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.fr-verse-mini .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.fr-verse-mini .ref {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.fr-verse-mini .tr {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}
.fr-verse-mini .text {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-2);
  letter-spacing: -0.003em;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fr-verse-mini.compact .text { -webkit-line-clamp: 4; }
.fr-verse-mini .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.fr-verse-mini .foot .add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.fr-verse-mini .foot .add:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Milestone bar ---------- */
.fr-milestone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, var(--success-soft), transparent 70%), var(--surface-2);
  border: 1px solid color-mix(in oklab, var(--success) 22%, var(--border));
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.fr-milestone-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fr-milestone-left .lab {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--success);
}
.fr-milestone-left .num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.012em;
  line-height: 1;
}
.fr-milestone-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fr-milestone-bar .track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  overflow: hidden;
}
.fr-milestone-bar .track > span {
  display: block;
  height: 100%;
  background: var(--success);
  border-radius: inherit;
}
.fr-milestone-bar .streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-3);
}
.fr-milestone-bar .streak strong {
  font-family: var(--font-mono);
  color: var(--warning);
  font-weight: 700;
}
.fr-cheer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.fr-cheer:hover { color: var(--pink); border-color: var(--pink); }

/* ---------- Challenge invite block ---------- */
.fr-challenge-invite {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface-2);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--border));
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.fr-challenge-invite .lab {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.fr-challenge-invite .title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.fr-challenge-invite .meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.fr-challenge-invite .parts {
  display: inline-flex;
}
.fr-challenge-invite .parts .av {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: white;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fr-challenge-invite .parts .av:first-child { margin-left: 0; }
.fr-challenge-invite .acts {
  display: inline-flex;
  gap: 8px;
}
.fr-challenge-invite .primary {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fr-challenge-invite .ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Post footer ---------- */
.fr-post-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.fr-react {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.fr-react:hover { background: var(--surface-2); color: var(--text-1); }
.fr-react .n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.fr-react.active {
  color: var(--pink);
  background: color-mix(in oklab, var(--pink) 10%, transparent);
}
.fr-react.quiet { color: var(--text-3); margin-left: auto; }
.fr-post-foot .sep { flex: 1; }

/* ---------- Feed end ---------- */
.fr-feed-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-3);
}
.fr-feed-end button {
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

/* ====================================================================
   RIGHT RAIL
   ==================================================================== */
.fr-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}
.fr-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fr-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fr-side-head h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin: 0;
}
.fr-side-head h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.fr-side-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
.fr-side-count.alert {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: color-mix(in oklab, var(--warning) 30%, transparent);
}
.fr-side-cta {
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

/* ---------- Challenges side ---------- */
.fr-ch-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-2);
}
.fr-ch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fr-ch-tag {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}
.fr-ch-tag.live { background: var(--success-soft); color: var(--success); }
.fr-ch-tag.upcoming { background: var(--accent-soft); color: var(--accent); }
.fr-ch-when {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
}
.fr-ch-card h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.012em;
}
.fr-ch-bar {
  height: 4px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.fr-ch-bar .t {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.fr-ch-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.fr-ch-meta strong {
  color: var(--text-1);
  font-weight: 700;
}
.fr-ch-leader {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fr-ch-leader .row {
  display: grid;
  grid-template-columns: 16px 18px 1fr auto;
  gap: 8px;
  align-items: center;
}
.fr-ch-leader .pos {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
}
.fr-ch-leader .pos.first { color: var(--warning); }
.fr-ch-leader .av {
  width: 18px; height: 18px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fr-ch-leader .nm {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-ch-leader .sc {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ---------- Past challenges ---------- */
.fr-past {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fr-past .lab {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.fr-past-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 8px;
  align-items: center;
}
.fr-past-row .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.fr-past-row .dot.warn { background: var(--warning); }
.fr-past-row .nm {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-past-row .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

/* ---------- Friends list side ---------- */
.fr-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fr-list-row {
  display: grid;
  grid-template-columns: 36px 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
}
.fr-list-row:hover { background: var(--surface-2); }
.fr-list-row .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: white;
  position: relative;
}
.fr-list-row .av .online {
  position: absolute;
  bottom: 0; right: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--surface);
}
.fr-list-row .info { min-width: 0; }
.fr-list-row .nm {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-list-row .sub {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-list-row .meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.fr-list-row .streak {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--warning);
}
.fr-list-row .bar {
  width: 60px;
  height: 3px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.fr-list-row:hover .bar { background: var(--surface); }
.fr-list-row .bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  opacity: 0.6;
}
.fr-list-more {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.fr-list-more:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Requests side ---------- */
.fr-req-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.fr-req-row + .fr-req-row { border-top: 1px solid var(--border); }
.fr-req-row .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: white;
}
.fr-req-row .info { min-width: 0; }
.fr-req-row .nm {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-req-row .sub {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-req-row .acts {
  display: inline-flex;
  gap: 6px;
}
.fr-req-row .acts .primary {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fr-req-row .acts .ghost {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
}
.fr-req-row .acts .ghost:hover { color: var(--danger); border-color: var(--danger); }

/* ---------- Suggestions grid (in rail) ---------- */
.fr-sg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fr-sg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}
.fr-sg-card .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: white;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.fr-sg-card .nm {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fr-sg-card .sub {
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fr-sg-card .mu {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fr-sg-card .add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.fr-sg-card .add:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ====================================================================
   EMPTY STATE
   ==================================================================== */
.fr-head-empty {
  margin-bottom: 18px;
}

/* ---------- Shared empty block ---------- */
.fr-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fr-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 55%);
  pointer-events: none;
}
.fr-empty > * { position: relative; }
.fr-empty-eye {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.fr-empty h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: var(--text-1);
  margin: 0 auto;
  max-width: 540px;
}
.fr-empty h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.fr-empty .fr-empty-sub {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-3);
}

/* ---------- Hero variant: orbit dots ---------- */
.fr-empty-hero { padding-top: 48px; }
.fr-empty-orb {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  border: 1px dashed color-mix(in oklab, var(--accent) 30%, var(--border));
  border-radius: 50%;
}
.fr-empty-orb::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed color-mix(in oklab, var(--accent) 18%, var(--border));
  border-radius: 50%;
}
.fr-empty-orb .core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 4px 14px -6px color-mix(in oklab, var(--accent) 50%, transparent);
}
.fr-empty-orb .dot {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fr-empty-orb .dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 35%, var(--surface-2)), var(--surface-2));
}
.fr-empty-orb .d1 { top: -6px;   left: 50%;  transform: translateX(-50%); }
.fr-empty-orb .d2 { top: 22%;    right: -4px; }
.fr-empty-orb .d3 { bottom: 14%; right: 6%; }
.fr-empty-orb .d4 { bottom: 14%; left: 6%; }
.fr-empty-orb .d5 { top: 22%;    left: -4px; }

.fr-empty-actions {
  margin-top: 22px;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.fr-empty-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
}
.fr-empty-actions .primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.fr-empty-actions .primary:hover { filter: brightness(0.95); }
.fr-empty-actions .ghost {
  background: var(--surface);
  color: var(--text-1);
  border-color: var(--border-strong);
}
.fr-empty-actions .ghost:hover { background: var(--surface-2); }

.fr-empty-link {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fr-empty-link .lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fr-empty-link .row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 16px;
}
.fr-empty-link code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2, var(--text-1));
}
.fr-empty-link button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.fr-empty-link button:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Steps variant ---------- */
.fr-empty-steps {
  text-align: left;
  padding: 36px 36px 32px;
}
.fr-empty-steps::before { display: none; }
.fr-empty-steps h2 {
  text-align: left;
  font-size: 30px;
  margin: 0 0 22px;
  max-width: none;
}
.fr-empty-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.fr-empty-steps li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.fr-empty-steps li:last-child { padding-bottom: 4px; }
.fr-empty-steps .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.fr-empty-steps .body h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-1);
  margin: 0 0 4px;
}
.fr-empty-steps .body p {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.5;
}
.fr-empty-steps li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  white-space: nowrap;
}
.fr-empty-steps li > button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Empty-state suggestions strip ---------- */
.fr-empty-suggest {
  margin-top: 28px;
}
.fr-empty-suggest .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 14px;
}
.fr-empty-suggest .head h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0;
}
.fr-empty-suggest .head .more {
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.fr-empty-suggest .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.fr-empty-suggest .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: border-color 0.15s, transform 0.15s;
}
.fr-empty-suggest .card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.fr-empty-suggest .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2, var(--text-1));
  margin-bottom: 6px;
}
.fr-empty-suggest .nm {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-empty-suggest .sub {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-empty-suggest .mu {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 6px 0 10px;
}
.fr-empty-suggest .add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
.fr-empty-suggest .add:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================ yg sort dropdown menu ============================ */
.yg-sort-menu {
  display: none;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elev);
  padding: 6px;
  z-index: 50;
}
.yg-sort-menu.open { display: block; }
.yg-sort-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}
.yg-sort-menu a:hover { background: var(--surface-2); color: var(--text-1); }
.yg-sort-menu a.active { color: var(--accent); background: var(--accent-soft); }

/* ============================ yg-tabs anchors (nav links styled like the design's buttons) ============================ */
.yg-tabs a {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
}
.yg-tabs a:hover { color: var(--text-1); }
.yg-tabs a.active { color: var(--text-1); font-weight: 600; }
.yg-tabs a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -11px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.yg-tabs a.active .count { color: var(--accent); background: var(--accent-soft); }

/* ============================ verse-row action wrap (owner has more actions) ============================ */
.yg-verse-row .acts { flex-wrap: wrap; row-gap: 6px; }
.yg-verses-toolbar .voice .arrow { cursor: pointer; }

/* ============================ Settings tab (yg-set-*) ============================ */
.yg-set-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.yg-set-row.danger { border-color: color-mix(in oklab, var(--danger) 30%, var(--border)); }
.yg-set-row .info h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 4px;
}
.yg-set-row .info p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}
.yg-set-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  flex-shrink: 0;
}
.yg-set-btn:hover { border-color: var(--accent); color: var(--accent); }
.yg-set-btn.danger { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, var(--border)); }
.yg-set-btn.danger:hover { background: var(--danger); color: var(--yg-on-fill); border-color: var(--danger); }
.yg-set-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.yg-set-block-head { margin-bottom: 18px; }
.yg-set-block-head h4 { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--text-1); margin: 0 0 4px; }
.yg-set-block-head p { font-family: var(--font-sans); font-size: 13px; color: var(--text-3); margin: 0; }
.yg-set-admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.yg-set-admin-row .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: var(--yg-on-fill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yg-set-admin-row .nm-wrap { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.yg-set-admin-row .nm { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--text-1); }

/* =====================================================================
   LOGGED-IN SHELL — matches browse_groups / browse_collections.
   This file only owns the fixed-68px top-bar clearance; the LEFT offset
   (60px rail + 224px secondary nav = 284px) and its responsive collapse
   come from the ml304px / w-calc-100vw-304px / .tll-/.pp-/.tlp- atomic
   classes on the wrapper, which home_loggedin/secondary_nav.css maps to
   !important at each breakpoint. (The real cause of the broken layout was
   a premature comment close at the top of this file swallowing .yg-page,
   not the offset — see the header comment fix.)
   ===================================================================== */
.mv-root.bg-root { background: var(--bg); color: var(--text-1); min-height: 60vh; }
.mv-root.bg-root *, .mv-root.bg-root *::before, .mv-root.bg-root *::after { box-sizing: border-box; }
.mv-root.bg-root-in { padding-top: calc(68px + var(--pastor-h, 0px)); }

/* =====================================================================
   Local page tokens (theme axis).
   --yg-on-fill: white text/icons that sit ON a colored fill (accent /
   brand / danger button / avatar gradient) — must stay white in BOTH
   themes, so no dark override (do NOT use --brand-fg here, it flips).
   --yg-av-* + --yg-tone-*: DECORATIVE avatar / empty-group cover-wash
   gradient stops. Static in both themes (like practice_history --ph-v*).
   ===================================================================== */
.mv-root {
  --yg-on-fill: #FFFFFF;
  --yg-tone-a1: #4A6178;
  --yg-tone-a2: #7C8AA6;
  --yg-tone-b1: #5B6B86;
  --yg-av-amber: #FDBA74;
  --yg-av-pink: #F472B6;
  --yg-av-indigo: #7C7CF5;
  --yg-av-cyan: #22D3EE;
  --yg-av-green: #34D399;
  --yg-av-violet: #A78BFA;
  --yg-av-teal: #0EA5C5;
  --yg-av-orange: #F59E0B;
  --yg-av-gold: #FBBF24;
}

/* ===================================================================
   Group detail page (.bg-root-in) — phone responsiveness.
   Appended at the END (and prefixed with .mv-root for higher specificity) so
   these WIN over the base .yg-context / .yg-detail / .yg-tabs rules defined
   earlier in this file — media queries add no specificity, so an earlier
   media block would otherwise lose to the later base rules. Scoped to
   detail-only selectors → the Your Groups listing + forum are untouched.
   =================================================================== */
@media (max-width: 767px) {
  /* Hero: group icon + title on row 1, action buttons full-width on row 2
     (was a 3-col grid that crushed the title into the Invite/Add-verse buttons). */
  .mv-root .yg-context { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .mv-root .yg-context-swatch { width: 44px; height: 44px; }
  .mv-root .yg-context-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  /* THE main-container fix: the activity body was a 2-col minmax(0,1fr) 320px,
     crushing the feed into a ~46px sliver next to the rail. Stack it. */
  .mv-root .yg-detail { grid-template-columns: minmax(0, 1fr); }
  /* Tabs: wrapping pills — no scroller, no phantom scrollbar. */
  .mv-root .yg-tabs { flex-wrap: wrap; border-bottom: 0; padding: 0; margin: 0 0 12px; }
  .mv-root .yg-tabs a { border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 12px; font-size: 12px; }
  .mv-root .yg-tabs a.active { background: var(--surface-2); border-color: var(--border-strong); color: var(--text-1); }
  .mv-root .yg-tabs a.active::after { display: none; }
}
