/* =========================================================
   Blessed Studies – study page + member dashboard
   Every rule is scoped under .bs-app so the theme can't override it.
   ========================================================= */

.bstudy-wrap { background: #faf7f3; }

.bs-app {
	--bs-accent: #e8692c;
	--bs-accent-2: #c2410c;
	--bs-ink: #1f2328;
	--bs-muted: #5f6670;
	--bs-soft: #fdf1e8;
	--bs-cream: #faf7f3;
	--bs-line: #ece4dc;
	--bs-card: #ffffff;
	--bs-side: #2a1f1a;
	--bs-side-2: #3a2b23;
	--bs-side-ink: #f6eee7;
	--bs-side-muted: #c4b3a5;
	--bs-green: #16a34a;
	--bs-star: #f5a623;
	--bs-fs: 18px;
	--bs-radius: 18px;
	--bs-shadow: 0 1px 2px rgba(42, 31, 26, .04), 0 8px 24px rgba(42, 31, 26, .06);

	display: grid;
	grid-template-columns: 288px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	max-width: 1320px;
	margin: 0 auto;
	padding: 32px 24px 80px;
	color: var(--bs-ink);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
}
.bs-app *, .bs-app *::before, .bs-app *::after { box-sizing: border-box; }
.bs-app [hidden] { display: none !important; }

/* Neutralise theme styles on our elements */
.bs-app button {
	font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0;
	text-transform: none; letter-spacing: normal; box-shadow: none; line-height: inherit;
	min-height: 0; width: auto; height: auto; border-radius: 0; cursor: pointer;
}
.bs-app a { color: inherit; text-decoration: none; box-shadow: none; }
.bs-app h1, .bs-app h2, .bs-app h3, .bs-app h4 { color: var(--bs-ink); margin: 0; padding: 0; letter-spacing: -.01em; text-transform: none; }
.bs-app h1::before, .bs-app h1::after, .bs-app h2::before, .bs-app h2::after, .bs-app h4::after { display: none; content: none; }
.bs-app ul, .bs-app ol { margin: 0; padding: 0; list-style: none; }
.bs-app p { margin: 0; }
.bs-app .bs-icon { width: 20px; height: 20px; flex: none; display: block; }
.bs-app :focus-visible { outline: 3px solid rgba(232, 105, 44, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.bs-app .bs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: 2px solid var(--bs-accent);
	background: var(--bs-accent); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2;
	transition: background .15s, transform .15s, box-shadow .15s;
}
.bs-app .bs-btn:hover { background: var(--bs-accent-2); border-color: var(--bs-accent-2); color: #fff; transform: translateY(-1px); }
.bs-app .bs-btn--ghost { background: transparent; color: var(--bs-accent); }
.bs-app .bs-btn--ghost:hover { background: var(--bs-soft); color: var(--bs-accent-2); }
.bs-app .bs-btn--light { background: #fff; border-color: #fff; color: var(--bs-accent-2); }
.bs-app .bs-btn--light:hover { background: #fff; color: var(--bs-accent-2); }
.bs-app .bs-btn--big { padding: 16px 30px; font-size: 18px; }
.bs-app .bs-btn .bs-icon { width: 18px; height: 18px; }

.bs-app .bs-card {
	background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--bs-radius);
	padding: 22px 24px; margin: 0 0 16px; box-shadow: var(--bs-shadow);
}
.bs-app .bs-card h3 { font-size: 19px; margin-bottom: 8px; }

/* =========================================================
   Sidebar (dashboard column)
   ========================================================= */
.bs-app .bs-side {
	position: sticky; top: 24px; align-self: start;
	display: flex; flex-direction: column; gap: 22px;
	background: var(--bs-side); color: var(--bs-side-ink);
	border-radius: 24px; padding: 22px;
	max-height: calc(100vh - 48px); overflow-y: auto;
	box-shadow: 0 18px 40px rgba(42, 31, 26, .18);
}
.admin-bar .bs-app .bs-side { top: 56px; max-height: calc(100vh - 80px); }

.bs-app .bs-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bs-app .bs-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bs-app .bs-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--bs-accent); flex: none; }
.bs-app .bs-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bs-app .bs-user-text span { font-size: 13px; color: var(--bs-side-muted); }
.bs-app .bs-user-text strong { font-size: 17px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-app .bs-side-close { display: none; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--bs-side-2); color: #fff; }

.bs-app .bs-side-stats {
	display: flex; align-items: center; gap: 14px;
	background: var(--bs-side-2); border-radius: 18px; padding: 14px;
}
.bs-app .bs-ring { position: relative; width: 64px; height: 64px; flex: none; }
.bs-app .bs-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.bs-app .bs-ring circle { fill: none; stroke-width: 6; }
.bs-app .bs-ring-bg { stroke: rgba(255, 255, 255, .12); }
.bs-app .bs-ring-fg { stroke: var(--bs-accent); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.bs-app .bs-ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; }
.bs-app .bs-side-stat-text { display: flex; flex-direction: column; line-height: 1.35; }
.bs-app .bs-side-stat-text strong { color: #fff; font-size: 17px; }
.bs-app .bs-side-stat-text > span { color: var(--bs-side-muted); font-size: 13px; }
.bs-app .bs-streak { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: #ffb27d !important; font-weight: 600; font-size: 13px; }
.bs-app .bs-streak .bs-icon { width: 16px; height: 16px; }

.bs-app .bs-side-nav { display: flex; flex-direction: column; gap: 4px; }
.bs-app .bs-side-nav a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
	color: var(--bs-side-ink); font-weight: 600; font-size: 15px; line-height: 1.3; transition: background .15s;
}
.bs-app .bs-side-nav a:hover { background: var(--bs-side-2); color: #fff; }
.bs-app .bs-side-nav a.is-active { background: var(--bs-accent); color: #fff; }
.bs-app .bs-side-nav a span { display: flex; flex-direction: column; min-width: 0; }
.bs-app .bs-side-nav small { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-side-muted); }

.bs-app .bs-side-section h4 {
	font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
	color: var(--bs-side-muted); margin: 0 0 10px 4px; font-weight: 600;
}
.bs-app .bs-lessons { display: flex; flex-direction: column; gap: 2px; }
.bs-app .bs-lessons a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; font-size: 14px; line-height: 1.35; color: var(--bs-side-ink); }
.bs-app .bs-lessons a:hover { background: var(--bs-side-2); color: #fff; }
.bs-app .bs-lessons small { display: block; font-size: 11px; color: var(--bs-side-muted); }
.bs-app .bs-lessons .is-current a { background: var(--bs-side-2); color: #fff; box-shadow: inset 3px 0 0 var(--bs-accent); }
.bs-app .bs-dot {
	flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
	border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center; color: transparent;
}
.bs-app .bs-dot .bs-icon { width: 13px; height: 13px; stroke-width: 3; }
.bs-app .bs-lessons .is-started .bs-dot { border-color: var(--bs-accent); background: rgba(232, 105, 44, .18); }
.bs-app .bs-lessons .is-done .bs-dot { border-color: var(--bs-green); background: var(--bs-green); color: #fff; }

.bs-app .bs-series-mini { display: flex; flex-direction: column; gap: 10px; }
.bs-app .bs-series-mini a { display: flex; justify-content: space-between; gap: 8px; padding: 0 4px; font-size: 14px; color: var(--bs-side-ink); }
.bs-app .bs-series-mini a:hover { color: #fff; }
.bs-app .bs-series-mini small { color: var(--bs-side-muted); }
.bs-app .bs-mini-bar { display: block; height: 5px; margin: 6px 4px 0; background: rgba(255, 255, 255, .1); border-radius: 999px; overflow: hidden; }
.bs-app .bs-mini-bar span { display: block; height: 100%; background: var(--bs-accent); border-radius: 999px; }

.bs-app .bs-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; }
.bs-app .bs-side-foot a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--bs-side-muted); font-size: 14px; }
.bs-app .bs-side-foot a:hover { background: var(--bs-side-2); color: #fff; }

.bs-app .bs-topbar, .bs-app .bs-overlay { display: none; }

/* =========================================================
   Main column
   ========================================================= */
.bs-app .bs-main { min-width: 0; }
.bs-app .bs-study { max-width: 800px; }

.bs-app .bs-readbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100001; pointer-events: none; }
.bs-app .bs-readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bs-accent), #f59e0b); }

/* Hero */
.bs-app .bs-hero {
	background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: 24px;
	padding: 32px; margin-bottom: 18px; box-shadow: var(--bs-shadow);
	background-image: radial-gradient(circle at 100% 0, rgba(232, 105, 44, .1), transparent 45%);
}
.bs-app .bs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bs-app .bs-chip {
	display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px;
	font-size: 13px; font-weight: 600; line-height: 1.3; background: var(--bs-accent); color: #fff;
}
.bs-app .bs-chip--soft { background: var(--bs-soft); color: var(--bs-accent-2); }
.bs-app .bs-chip--plain { background: #f4f1ee; color: var(--bs-muted); }
.bs-app .bs-chip .bs-icon { width: 15px; height: 15px; }
.bs-app .bs-rating-sum .bs-icon { color: var(--bs-star); fill: var(--bs-star); }
.bs-app .bs-title { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; font-weight: 700; margin-bottom: 12px; }
.bs-app .bs-bigidea { font-size: 19px; color: var(--bs-muted); margin-bottom: 20px; max-width: 620px; }
.bs-app .bs-passage {
	display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px;
	border-radius: 14px; background: var(--bs-soft); color: var(--bs-accent-2);
}
.bs-app .bs-passage span { display: flex; flex-direction: column; line-height: 1.3; }
.bs-app .bs-passage small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.bs-app .bs-passage strong { font-size: 17px; color: var(--bs-ink); }
.bs-app .bs-passage strong a { color: var(--bs-accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* Toolbar */
.bs-app .bs-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bs-app .bs-tool {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
	background: var(--bs-card); border: 1px solid var(--bs-line); font-size: 14px; font-weight: 600; color: var(--bs-muted);
	transition: background .15s, color .15s, border-color .15s;
}
.bs-app .bs-tool:hover, .bs-app .bs-tool.is-on { border-color: var(--bs-accent); color: var(--bs-accent-2); background: var(--bs-soft); }
.bs-app .bs-tool .bs-icon { width: 17px; height: 17px; }
.bs-app .bs-textsize { display: inline-flex; gap: 4px; }
.bs-app .bs-textsize .bs-tool { min-width: 44px; justify-content: center; }

/* Steps */
.bs-app .bs-steps {
	position: sticky; top: 16px; z-index: 50;
	display: flex; gap: 6px; padding: 6px; margin-bottom: 24px;
	background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
	border: 1px solid var(--bs-line); border-radius: 999px; box-shadow: var(--bs-shadow);
}
.admin-bar .bs-app .bs-steps { top: 48px; }
.bs-app .bs-step {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--bs-muted);
	transition: background .2s, color .2s;
}
.bs-app .bs-step:hover { color: var(--bs-accent-2); }
.bs-app .bs-step.is-active { background: var(--bs-accent); color: #fff; }

/* Panels */
.bs-app .bs-panel { display: none; }
.bs-app .bs-panel.is-active { display: block; animation: bsIn .35s ease; }
@keyframes bsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bs-app .bs-content {
	background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: 24px;
	padding: 36px 40px; box-shadow: var(--bs-shadow);
	font-size: var(--bs-fs); line-height: 1.8; color: #2b2f33;
}
.bs-app .bs-content > *:first-child { margin-top: 0; }
.bs-app .bs-content p { margin: 0 0 1.1em; }
.bs-app .bs-content h2, .bs-app .bs-content h3 { font-size: 1.3em; line-height: 1.3; margin: 1.6em 0 .5em; padding-top: 1.2em; border-top: 1px solid var(--bs-line); }
.bs-app .bs-content > h2:first-child, .bs-app .bs-content > h3:first-child { border-top: 0; padding-top: 0; }
.bs-app .bs-content a { color: var(--bs-accent-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bs-app .bs-content ul, .bs-app .bs-content ol { margin: 0 0 1.1em 1.4em; list-style: revert; }
.bs-app .bs-content blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--bs-accent); background: var(--bs-soft); border-radius: 0 14px 14px 0; }
.bs-app .bs-content img { max-width: 100%; height: auto; border-radius: 14px; }
.bs-app .bs-media { margin-bottom: 18px; }
.bs-app .bs-media iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; }

.bs-app .bs-panel-head { margin-bottom: 16px; }
.bs-app .bs-panel-head h2 { font-size: 28px; margin-bottom: 4px; }
.bs-app .bs-panel-head p { color: var(--bs-muted); }

.bs-app .bs-q { position: relative; transition: border-color .2s; }
.bs-app .bs-q.is-answered { border-color: #f3cdb6; }
.bs-app .bs-q label { display: flex; gap: 12px; font-weight: 600; font-size: calc(var(--bs-fs) - 1px); line-height: 1.5; margin-bottom: 12px; color: var(--bs-ink); }
.bs-app .bs-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bs-accent); color: #fff; font-size: 14px; font-weight: 700; }
.bs-app .bs-answer {
	display: block; width: 100%; min-height: 100px; margin: 0; padding: 14px 16px;
	border: 1px solid var(--bs-line); border-radius: 14px; background: var(--bs-cream);
	font: inherit; font-size: 16px; line-height: 1.6; color: var(--bs-ink); resize: vertical; box-shadow: none;
}
.bs-app .bs-answer:focus { outline: none; border-color: var(--bs-accent); background: #fff; box-shadow: 0 0 0 4px rgba(232, 105, 44, .14); }
.bs-app .bs-q-state { position: absolute; top: 18px; right: 20px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--bs-green); opacity: 0; transition: opacity .2s; }
.bs-app .bs-q-state .bs-icon { width: 14px; height: 14px; stroke-width: 2.6; }
.bs-app .bs-q.is-saved .bs-q-state { opacity: 1; }
.bs-app .bs-apply { background: var(--bs-soft); border-color: transparent; box-shadow: none; }

.bs-app .bs-memory {
	position: relative; overflow: hidden; text-align: center; color: #fff;
	padding: 40px 28px; margin-bottom: 16px; border-radius: 24px;
	background: linear-gradient(140deg, #e8692c 0%, #c2410c 60%, #9a3412 100%);
	box-shadow: 0 16px 36px rgba(194, 65, 12, .25);
}
.bs-app .bs-memory::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.bs-app .bs-memory small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.bs-app .bs-memory strong { display: block; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 10px 0; }
.bs-app .bs-memory strong a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.bs-app .bs-memory p { opacity: .9; font-size: 15px; margin-bottom: 18px; }
.bs-app .bs-share { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: 14px; }
.bs-app .bs-share:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.bs-app .bs-share .bs-icon { width: 17px; height: 17px; }
.bs-app .bs-prayer p { font-style: italic; font-size: calc(var(--bs-fs) - 1px); line-height: 1.75; }
.bs-app .bs-leader { background: #eef4fb; border-color: #d6e4f5; }
.bs-app .bs-leader small { font-weight: 500; font-size: 13px; color: var(--bs-muted); }

/* Rating */
.bs-app .bs-rate { text-align: center; }
.bs-app .bs-stars { display: inline-flex; gap: 6px; margin: 6px 0 8px; }
.bs-app .bs-star { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: #d9cfc6; transition: transform .12s, color .12s; }
.bs-app .bs-star .bs-icon { width: 36px; height: 36px; fill: currentColor; stroke-width: 1.2; }
.bs-app .bs-star:hover { transform: scale(1.12); }
.bs-app .bs-star.is-on, .bs-app .bs-star.is-hover { color: var(--bs-star); }
.bs-app .bs-star.is-pop { animation: bsPop .35s ease; }
@keyframes bsPop { 50% { transform: scale(1.3); } }
.bs-app .bs-rate-note { color: var(--bs-muted); font-size: 14px; }

/* Finish */
.bs-app .bs-finish { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 28px 0 8px; }
.bs-app .bs-complete.is-done { background: var(--bs-green); border-color: var(--bs-green); }
.bs-app .bs-next-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--bs-accent-2); }
.bs-app .bs-next-cta:hover { text-decoration: underline; }
.bs-app .bs-next-cta .bs-icon { width: 18px; height: 18px; }

.bs-app .bs-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--bs-line); }

/* Pager */
.bs-app .bs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.bs-app .bs-pager-link {
	display: flex; align-items: center; gap: 12px; padding: 16px 18px;
	background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--bs-radius);
	box-shadow: var(--bs-shadow); transition: border-color .15s, transform .15s;
}
.bs-app .bs-pager-link:hover { border-color: var(--bs-accent); transform: translateY(-2px); }
.bs-app .bs-pager-link span { display: flex; flex-direction: column; line-height: 1.35; font-weight: 600; min-width: 0; }
.bs-app .bs-pager-link small { font-size: 12px; font-weight: 500; color: var(--bs-muted); }
.bs-app .bs-pager-link--next { justify-content: flex-end; text-align: right; }
.bs-app .bs-pager-link .bs-icon { color: var(--bs-accent); }

/* Toast */
.bs-app .bs-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 100002;
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	background: #1f2328; color: #fff; padding: 11px 20px; border-radius: 999px;
	font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	transition: opacity .25s, transform .25s;
}
.bs-app .bs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bs-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100003; }

/* =========================================================
   Dashboard
   ========================================================= */



.bs-app .bs-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bs-app .bs-chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-app .bs-filter { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--bs-line); background: var(--bs-card); font-size: 14px; font-weight: 600; color: var(--bs-muted); }
.bs-app .bs-filter:hover { color: var(--bs-accent-2); border-color: var(--bs-accent); }
.bs-app .bs-filter.is-active { background: var(--bs-ink); border-color: var(--bs-ink); color: #fff; }
.bs-app .bs-search { position: relative; display: flex; align-items: center; margin: 0; }
.bs-app .bs-search .bs-icon { position: absolute; left: 14px; color: var(--bs-muted); width: 18px; height: 18px; }
.bs-app .bs-search input {
	width: 240px; max-width: 100%; height: 42px; margin: 0; padding: 0 16px 0 40px;
	border: 1px solid var(--bs-line); border-radius: 999px; background: var(--bs-card);
	font: inherit; font-size: 15px; color: var(--bs-ink); box-shadow: none;
}
.bs-app .bs-search input:focus { outline: none; border-color: var(--bs-accent); box-shadow: 0 0 0 4px rgba(232, 105, 44, .14); }
.bs-app .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.bs-app .bs-series { margin-top: 28px; scroll-margin-top: 90px; }
.bs-app .bs-series-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.bs-app .bs-series-head h2 { font-size: 22px; }
.bs-app .bs-series-head span { color: var(--bs-muted); font-size: 14px; white-space: nowrap; }
.bs-app .bs-bar { height: 6px; background: #efe7df; border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.bs-app .bs-bar span { display: block; height: 100%; background: var(--bs-accent); border-radius: 999px; }
.bs-app .bs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

.bs-app .bs-lcard {
	display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; min-height: 180px;
	background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--bs-radius);
	box-shadow: var(--bs-shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.bs-app .bs-lcard:hover { transform: translateY(-3px); border-color: #f3cdb6; box-shadow: 0 14px 30px rgba(42, 31, 26, .1); }
.bs-app .bs-lcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.bs-app .bs-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f2efec; color: var(--bs-muted); }
.bs-app .bs-badge .bs-icon { width: 13px; height: 13px; stroke-width: 2.6; }
.bs-app .is-started .bs-badge { background: var(--bs-soft); color: var(--bs-accent-2); }
.bs-app .is-done .bs-badge { background: #dcfce7; color: #15803d; }
.bs-app .bs-lcard-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--bs-muted); }
.bs-app .bs-lcard-rating .bs-icon { width: 15px; height: 15px; color: var(--bs-star); fill: var(--bs-star); }
.bs-app .bs-lcard-lesson { font-size: 13px; color: var(--bs-muted); }
.bs-app .bs-lcard strong { font-size: 18px; line-height: 1.3; }
.bs-app .bs-lcard-idea { font-size: 15px; color: var(--bs-muted); line-height: 1.5; }
.bs-app .bs-lcard-cta { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--bs-accent); }
.bs-app .bs-lcard-cta .bs-icon { width: 16px; height: 16px; transition: transform .15s; }
.bs-app .bs-lcard:hover .bs-lcard-cta .bs-icon { transform: translateX(3px); }
.bs-app .bs-empty { margin-top: 24px; padding: 24px; text-align: center; color: var(--bs-muted); background: var(--bs-card); border: 1px dashed var(--bs-line); border-radius: var(--bs-radius); }

/* =========================================================
   Logged-out view
   ========================================================= */
.bs-app--locked { display: block; max-width: 760px; }
.bs-app .bs-lockcard { text-align: center; padding: 36px 28px; }
.bs-app .bs-lockicon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bs-soft); color: var(--bs-accent); margin-bottom: 12px; }
.bs-app .bs-lockicon .bs-icon { width: 28px; height: 28px; }
.bs-app .bs-lockcard h2 { font-size: 26px; margin-bottom: 6px; }
.bs-app .bs-lockcard > p { color: var(--bs-muted); max-width: 460px; margin: 0 auto 18px; }
.bs-app .bs-perks { display: inline-flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 24px; }
.bs-app .bs-perks li { display: flex; align-items: center; gap: 10px; }
.bs-app .bs-perks .bs-icon { color: var(--bs-accent); }
.bs-app .bs-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* =========================================================
   Tablet and phone
   ========================================================= */
@media (max-width: 960px) {
	.bs-app { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 14px 110px; }
	.bs-app--locked { padding: 20px 14px 60px; }

	/* Top bar with menu button */
	.bs-app .bs-topbar {
		display: flex; align-items: center; justify-content: space-between; gap: 10px;
		position: sticky; top: 0; z-index: 60; margin: 0 -14px; padding: 10px 14px;
		background: rgba(250, 247, 243, .94); backdrop-filter: blur(8px);
		border-bottom: 1px solid var(--bs-line);
	}
	.admin-bar .bs-app .bs-topbar { top: 46px; }
	.bs-app .bs-menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--bs-side); color: #fff; font-weight: 600; font-size: 15px; }
	.bs-app .bs-topbar-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--bs-muted); }
	.bs-app .bs-topbar-streak { display: inline-flex; align-items: center; gap: 3px; color: var(--bs-accent-2); }
	.bs-app .bs-topbar-streak .bs-icon { width: 17px; height: 17px; }

	/* Sidebar becomes a slide-out drawer */
	.bs-app .bs-side {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 100000;
		width: min(86vw, 330px); max-height: none; border-radius: 0 24px 24px 0;
		transform: translateX(-105%); transition: transform .28s ease; visibility: hidden;
	}
	.admin-bar .bs-app .bs-side { top: 0; max-height: none; }
	.bs-app.is-drawer-open .bs-side { transform: none; visibility: visible; }
	.bs-app .bs-side-close { display: inline-flex; }
	.bs-app .bs-overlay {
		display: block; position: fixed; inset: 0; z-index: 99999;
		background: rgba(30, 20, 14, .5); opacity: 0; pointer-events: none; transition: opacity .25s;
	}
	.bs-app.is-drawer-open .bs-overlay { opacity: 1; pointer-events: auto; }

	/* Steps become a bottom tab bar */
	.bs-app .bs-steps {
		position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; z-index: 9990;
		margin: 0; border-radius: 22px; box-shadow: 0 10px 34px rgba(42, 31, 26, .22);
		padding: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
	}
	.admin-bar .bs-app .bs-steps { top: auto; }
	.bs-app .bs-step { flex-direction: column; gap: 2px; padding: 8px 6px; border-radius: 16px; font-size: 12px; }
	.bs-app .bs-step .bs-icon { width: 22px; height: 22px; }

	.bs-app .bs-toast { bottom: 100px; }
}

@media (max-width: 600px) {
	.bs-app .bs-hero { padding: 22px 20px; border-radius: 20px; }
	.bs-app .bs-bigidea { font-size: 17px; }
	.bs-app .bs-content { padding: 22px 20px; border-radius: 20px; }
	.bs-app .bs-card { padding: 18px; }
	.bs-app .bs-q-state { position: static; margin-top: 8px; }
	.bs-app .bs-memory { padding: 30px 20px; }
	.bs-app .bs-star { width: 42px; height: 42px; }
	.bs-app .bs-star .bs-icon { width: 32px; height: 32px; }
	.bs-app .bs-pager { grid-template-columns: 1fr; }
	.bs-app .bs-pager-link--next { justify-content: space-between; text-align: left; }
	.bs-app .bs-nav .bs-btn { padding: 11px 16px; font-size: 15px; }
			.bs-app .bs-filters { flex-direction: column; align-items: stretch; }
	.bs-app .bs-chipset { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
	.bs-app .bs-chipset::-webkit-scrollbar { display: none; }
	.bs-app .bs-filter { white-space: nowrap; }
	.bs-app .bs-search input { width: 100%; }
		.bs-app .bs-grid { grid-template-columns: 1fr; }
	.bs-app .bs-lcard { min-height: 0; }
}

html.bs-noscroll, html.bs-noscroll body { overflow: hidden; }

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

/* =========================================================
   Print: the study and the member's own answers only
   ========================================================= */
@media print {
	.bstudy-wrap { background: #fff; }
	.bs-app { display: block; padding: 0; max-width: none; font-size: 12pt; }
	.bs-app .bs-side, .bs-app .bs-topbar, .bs-app .bs-overlay, .bs-app .bs-toolbar, .bs-app .bs-steps,
	.bs-app .bs-nav, .bs-app .bs-pager, .bs-app .bs-rate, .bs-app .bs-finish, .bs-app .bs-toast,
	.bs-app .bs-share, .bs-app .bs-readbar, .bs-app .bs-q-state, .bs-app .bs-media { display: none !important; }
	.bs-app .bs-panel { display: block !important; animation: none; }
	.bs-app .bs-hero, .bs-app .bs-content, .bs-app .bs-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
	.bs-app .bs-memory { background: #fff !important; color: #000; border: 2px solid #000; box-shadow: none; }
	.bs-app .bs-memory strong a { color: #000; }
	.bs-app .bs-answer { border: 1px solid #999; background: #fff; min-height: 0; resize: none; }
}

/* #########################################################
   Version 2: member app (dashboard, paths, daily, verses,
   journal, profile, onboarding, notes, discussion)
   ######################################################### */

.bs-app { --bs-green-2: #15803d; --bs-green-soft: #dcfce7; }
.bs-app .bs-muted { color: var(--bs-muted); }
.bs-app .bs-link { color: var(--bs-muted); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.bs-app .bs-link:hover { color: var(--bs-accent-2); }
.bs-app .bs-btn--block { display: flex; width: 100%; }
.bs-app .bs-btn--green { background: var(--bs-green); border-color: var(--bs-green); }
.bs-app .bs-btn--green:hover { background: var(--bs-green-2); border-color: var(--bs-green-2); }
.bs-app .bs-btn.is-done { background: var(--bs-green); border-color: var(--bs-green); color: #fff; }
.bs-app .bs-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--bs-muted); transition: background .15s, color .15s; }
.bs-app .bs-icon-btn:hover { background: var(--bs-soft); color: var(--bs-accent-2); }
.bs-app .bs-icon-btn .bs-icon { width: 18px; height: 18px; }
.bs-app .bs-badge--green { background: var(--bs-green-soft) !important; color: var(--bs-green-2) !important; }
.bs-app .bs-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.bs-app .bs-form-actions small { color: var(--bs-muted); }

.bs-app input[type="text"], .bs-app input[type="search"], .bs-app textarea {
	font: inherit; color: var(--bs-ink); box-shadow: none; margin: 0; max-width: 100%;
}
.bs-app .bs-field, .bs-app .bs-verse-form label { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.bs-app .bs-field span, .bs-app .bs-verse-form label span { font-size: 14px; font-weight: 600; color: var(--bs-ink); }
.bs-app .bs-verse-form label em { font-style: normal; font-weight: 400; color: var(--bs-muted); }
.bs-app .bs-field input, .bs-app .bs-verse-form input, .bs-app .bs-journal-form input, .bs-app .bs-journal-form textarea,
.bs-app .bs-inline-form textarea, .bs-app .bs-discuss-form textarea, .bs-app .bs-entry textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--bs-line); border-radius: 14px;
	background: var(--bs-cream); font-size: 16px; line-height: 1.5; height: auto;
}
.bs-app .bs-field input:focus, .bs-app .bs-verse-form input:focus, .bs-app .bs-journal-form input:focus, .bs-app .bs-journal-form textarea:focus,
.bs-app .bs-inline-form textarea:focus, .bs-app .bs-discuss-form textarea:focus, .bs-app .bs-entry textarea:focus {
	outline: none; border-color: var(--bs-accent); background: #fff; box-shadow: 0 0 0 4px rgba(232, 105, 44, .14);
}

/* ---------- Shell additions ---------- */
.bs-app .bs-user { color: inherit; border-radius: 14px; }
.bs-app a.bs-user:hover strong { color: #ffb27d; }
.bs-app .bs-side-plan { display: block; padding: 12px 14px; border-radius: 14px; background: var(--bs-side-2); color: var(--bs-side-ink); }
.bs-app .bs-side-plan strong { display: block; color: #fff; font-size: 15px; }
.bs-app .bs-side-plan small { display: block; margin-top: 6px; color: var(--bs-side-muted); font-size: 12px; }
.bs-app .bs-side-plan .bs-mini-bar { margin: 8px 0 0; }
.bs-app .bs-side-plan:hover { background: #46352b; color: #fff; }
.bs-app .bs-mini-bar span { background: #4ade80; }
.bs-app .bs-mini-bar--light { background: #efe7df; margin: 8px 0 0; }
.bs-app .bs-mini-bar--light span { background: var(--bs-green); }
.bs-app .bs-topbar-title { display: none; }

/* Focus layout (welcome) */
.bs-app--focus { display: block; max-width: 760px; padding-top: 40px; }

/* ---------- Page headers ---------- */
.bs-app .bs-page-head { margin-bottom: 22px; }
.bs-app .bs-page-head small, .bs-app .bs-dhead small, .bs-app .bs-path-hero small, .bs-app .bs-profile-head small {
	display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bs-accent-2);
}
.bs-app .bs-page-head h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; margin: 4px 0 6px; }
.bs-app .bs-page-head p { color: var(--bs-muted); font-size: 17px; max-width: 640px; }
.bs-app .bs-section { margin-top: 30px; }
.bs-app .bs-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.bs-app .bs-section-head h2 { font-size: 22px; }
.bs-app .bs-section-head > a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 15px; color: var(--bs-accent-2); }
.bs-app .bs-section-head > a .bs-icon { width: 16px; height: 16px; }
.bs-app .bs-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; color: var(--bs-muted); font-weight: 600; font-size: 15px; }
.bs-app .bs-back:hover { color: var(--bs-accent-2); }
.bs-app .bs-back .bs-icon { width: 18px; height: 18px; }

/* ---------- Dashboard home ---------- */
.bs-app .bs-dhead {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
	padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--bs-line);
}
.bs-app .bs-dhead h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; margin: 6px 0 6px; }
.bs-app .bs-dhead p { color: var(--bs-muted); font-size: 17px; }
.bs-app .bs-dhead-profile { flex: none; border-radius: 50%; transition: transform .15s; }
.bs-app .bs-dhead-profile:hover { transform: scale(1.05); }
.bs-app .bs-dhead-profile .bs-avatar { width: 56px; height: 56px; }

.bs-app .bs-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.bs-app .bs-tile {
	position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 168px; padding: 20px;
	background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: 20px; box-shadow: var(--bs-shadow);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.bs-app .bs-tile:hover { transform: translateY(-3px); border-color: #f3cdb6; box-shadow: 0 14px 30px rgba(42, 31, 26, .1); }
.bs-app .bs-tile-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--bs-soft); color: var(--bs-accent); margin-bottom: 12px; }
.bs-app .bs-tile-ico .bs-icon { width: 22px; height: 22px; }
.bs-app .bs-tile strong { font-size: 20px; line-height: 1.2; }
.bs-app .bs-tile > span:not(.bs-tile-ico) { color: var(--bs-muted); font-size: 14px; }
.bs-app .bs-tile em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--bs-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-app .bs-tile em .bs-tick { display: inline-grid; vertical-align: -4px; margin-left: 4px; }
.bs-app .bs-tile--accent { background: linear-gradient(140deg, #e8692c 0%, #c2410c 70%, #9a3412 100%); border-color: transparent; color: #fff; }
.bs-app .bs-tile--accent .bs-tile-ico { background: rgba(255, 255, 255, .18); color: #fff; }
.bs-app .bs-tile--accent > span:not(.bs-tile-ico), .bs-app .bs-tile--accent em { color: rgba(255, 255, 255, .92); }
.bs-app .bs-tile--accent strong { color: #fff; }
.bs-app .bs-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bs-green); color: #fff; flex: none; }
.bs-app .bs-tick .bs-icon { width: 13px; height: 13px; stroke-width: 3; }

.bs-app .bs-plan {
	padding: 24px 26px; border-radius: 22px; background: var(--bs-card); border: 1px solid var(--bs-line); box-shadow: var(--bs-shadow);
}
.bs-app .bs-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.bs-app .bs-plan-head small { font-size: 13px; font-weight: 600; color: var(--bs-muted); text-transform: uppercase; letter-spacing: .08em; }
.bs-app .bs-plan-head a { font-size: 14px; font-weight: 600; color: var(--bs-accent-2); }
.bs-app .bs-plan-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.bs-app .bs-plan-title h2 { font-size: 24px; }
.bs-app .bs-plan > p { color: var(--bs-muted); margin-bottom: 16px; }
.bs-app .bs-plan-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bs-green-soft); color: var(--bs-green-2); flex: none; }
.bs-app .bs-plan-ico .bs-icon { width: 22px; height: 22px; }
.bs-app .bs-plan-ico--lg { width: 64px; height: 64px; border-radius: 20px; }
.bs-app .bs-plan-ico--lg .bs-icon { width: 32px; height: 32px; }
.bs-app .bs-plan-bar { height: 12px; border-radius: 999px; background: #efe7df; overflow: hidden; }
.bs-app .bs-plan-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width .6s ease; }
.bs-app .bs-plan .bs-plan-meta, .bs-app .bs-path-status .bs-plan-meta { margin: 8px 0 16px; font-size: 14px; color: var(--bs-muted); }

.bs-app .bs-lcard-reason { font-size: 13px; font-weight: 600; color: var(--bs-green-2); }

.bs-app .bs-growth { margin-top: 30px; }
.bs-app .bs-growth-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.bs-app .bs-week p { margin-bottom: 12px; color: var(--bs-muted); }
.bs-app .bs-week p strong { color: var(--bs-ink); }
.bs-app .bs-week ol { display: flex; gap: 8px; }
.bs-app .bs-week li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bs-app .bs-week li span { width: 100%; max-width: 44px; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: #f2ede8; color: #fff; }
.bs-app .bs-week li span .bs-icon { width: 18px; height: 18px; stroke-width: 2.6; }
.bs-app .bs-week li.is-on span { background: var(--bs-green); }
.bs-app .bs-week li.is-today span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bs-accent); }
.bs-app .bs-week li small { font-size: 12px; color: var(--bs-muted); font-weight: 600; }
.bs-app .bs-growth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bs-app .bs-growth-stats li { display: flex; flex-direction: column; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--bs-cream); }
.bs-app .bs-gs-ico { color: var(--bs-accent); margin-bottom: 6px; }
.bs-app .bs-growth-stats strong { font-size: 22px; line-height: 1.1; }
.bs-app .bs-growth-stats small { color: var(--bs-muted); font-size: 13px; }

/* ---------- Study page additions ---------- */
.bs-app .bs-chip--path { background: var(--bs-green-soft); color: var(--bs-green-2); }
.bs-app .bs-hero-passage { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bs-app .bs-save-verse.is-saved { border-color: var(--bs-green); color: var(--bs-green-2); background: var(--bs-green-soft); }
.bs-app .bs-save-verse.is-saved .bs-icon { fill: currentColor; }
.bs-app .bs-tool { position: relative; }
.bs-app .bs-tool-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--bs-accent); }
.bs-app .bs-mini { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--bs-muted); border: 1px solid var(--bs-line); background: #fff; }
.bs-app .bs-mini .bs-icon { width: 15px; height: 15px; }
.bs-app .bs-mini:hover { color: var(--bs-accent-2); border-color: var(--bs-accent); }

.bs-app .bs-context {
	margin-bottom: 16px; border-radius: 20px; background: #fff8ef; border: 1px solid #f4dfc4; overflow: hidden;
}
.bs-app .bs-context summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; color: #9a3412; }
.bs-app .bs-context summary::-webkit-details-marker { display: none; }
.bs-app .bs-context summary > span { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.bs-app .bs-context summary strong { font-size: 17px; color: var(--bs-ink); }
.bs-app .bs-context summary small { font-size: 13px; color: var(--bs-muted); }
.bs-app .bs-context summary > .bs-icon:last-child { transition: transform .2s; }
.bs-app .bs-context[open] summary > .bs-icon:last-child { transform: rotate(180deg); }
.bs-app .bs-context-body { padding: 0 20px 18px 52px; font-size: calc(var(--bs-fs) - 1px); line-height: 1.75; }
.bs-app .bs-context-body p { margin: 0 0 .8em; }

.bs-app .bs-crossrefs { margin-top: 16px; }
.bs-app .bs-crossrefs h3 { display: flex; align-items: center; gap: 8px; }
.bs-app .bs-crossrefs h3 .bs-icon { color: var(--bs-accent); }
.bs-app .bs-crossrefs ul { display: flex; flex-direction: column; gap: 6px; }
.bs-app .bs-crossrefs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bs-cream); font-weight: 600; }

.bs-app .bs-card h3 .bs-icon { display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--bs-accent); }
.bs-app .bs-memory-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.bs-app .bs-share.bs-save-verse.is-saved { background: rgba(255, 255, 255, .95); color: var(--bs-green-2); border-color: transparent; }
.bs-app .bs-daily .bs-share { background: rgba(255, 255, 255, .18); }

/* Discussion */
.bs-app .bs-discuss { margin-top: 24px; scroll-margin-top: 100px; }
.bs-app .bs-discuss-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bs-app .bs-discuss-head h3 { margin: 0; }
.bs-app .bs-discuss-head span { font-size: 14px; color: var(--bs-muted); }
.bs-app .bs-discuss-hint { color: var(--bs-muted); font-size: 14px; margin: 6px 0 16px; }
.bs-app .bs-comments { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.bs-app .bs-comment { display: flex; gap: 12px; }
.bs-app .bs-comment-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.bs-app .bs-comment > div { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--bs-cream); }
.bs-app .bs-comment.is-pending > div { background: #fffbeb; border: 1px dashed #fcd34d; }
.bs-app .bs-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; margin-bottom: 4px; }
.bs-app .bs-comment-meta span { color: var(--bs-muted); font-size: 13px; }
.bs-app .bs-comment-meta em { font-size: 12px; color: #b45309; font-style: normal; font-weight: 600; }
.bs-app .bs-comment-text p { margin: 0 0 .5em; }
.bs-app .bs-comment-text p:last-child { margin: 0; }
.bs-app .bs-discuss-empty { color: var(--bs-muted); font-style: italic; margin-bottom: 16px; }
.bs-app .bs-discuss-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.bs-app .bs-discuss-actions small { color: var(--bs-muted); }

.bs-app .bs-whatnext { margin-top: 18px; }
.bs-app .bs-whatnext h3 { font-size: 20px; margin-bottom: 12px; text-align: center; }
.bs-app .bs-grid--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Notes panel */
.bs-app .bs-notes {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 100000; width: min(420px, 92vw);
	display: flex; flex-direction: column; gap: 12px; padding: 22px;
	background: #fff; box-shadow: -18px 0 40px rgba(42, 31, 26, .15);
	transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility .28s;
}
.admin-bar .bs-app .bs-notes { top: 32px; }
.bs-app.is-notes-open .bs-notes { transform: none; visibility: visible; }
.bs-app .bs-notes-head { display: flex; justify-content: space-between; align-items: center; }
.bs-app .bs-notes-head > span { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--bs-accent); }
.bs-app .bs-notes-head strong { color: var(--bs-ink); }
.bs-app .bs-notes .bs-side-close { display: inline-flex; background: var(--bs-cream); color: var(--bs-ink); }
.bs-app .bs-notes-hint { font-size: 14px; color: var(--bs-muted); }
.bs-app .bs-notes-text {
	flex: 1; width: 100%; min-height: 200px; padding: 16px; border: 1px solid var(--bs-line); border-radius: 16px;
	background: #fffdf8 repeating-linear-gradient(transparent, transparent 31px, #f1e9df 31px, #f1e9df 32px);
	font: inherit; font-size: 16px; line-height: 32px; resize: none;
}
.bs-app .bs-notes-text:focus { outline: none; border-color: var(--bs-accent); box-shadow: 0 0 0 4px rgba(232, 105, 44, .14); }
.bs-app .bs-notes-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.bs-app .bs-notes-foot span { color: var(--bs-green-2); font-weight: 600; }
.bs-app .bs-notes-foot a { display: inline-flex; align-items: center; gap: 2px; color: var(--bs-accent-2); font-weight: 600; }
.bs-app .bs-notes-foot .bs-icon { width: 16px; height: 16px; }
.bs-app .bs-notes-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(30, 20, 14, .35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.bs-app.is-notes-open .bs-notes-overlay { opacity: 1; pointer-events: auto; }

/* ---------- Daily Study ---------- */
.bs-app .bs-daily {
	position: relative; overflow: hidden; padding: 34px 32px; border-radius: 24px; color: #fff; margin-bottom: 16px;
	background: radial-gradient(circle at 90% 10%, rgba(245, 166, 35, .35), transparent 45%), linear-gradient(140deg, #3a2b23, #2a1f1a);
	box-shadow: 0 16px 36px rgba(42, 31, 26, .22);
}
.bs-app .bs-daily small { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #ffb27d; }
.bs-app .bs-daily-ref { display: block; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 8px 0 10px; color: #fff; }
.bs-app .bs-daily-ref a { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.bs-app .bs-daily p { color: #e3d6cb; margin-bottom: 20px; max-width: 520px; }
.bs-app .bs-daily-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bs-app .bs-daily-q { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.bs-app .bs-daily-list { display: flex; flex-direction: column; gap: 8px; }
.bs-app .bs-daily-list li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--bs-card); border: 1px solid var(--bs-line); }
.bs-app .bs-daily-day { display: flex; flex-direction: column; align-items: center; width: 52px; flex: none; line-height: 1.2; }
.bs-app .bs-daily-day small { font-size: 12px; color: var(--bs-muted); }
.bs-app .bs-daily-item { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.bs-app .bs-daily-item small { color: var(--bs-muted); font-size: 14px; }
.bs-app .bs-daily-state { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--bs-line); color: #fff; flex: none; }
.bs-app .bs-daily-list .is-read .bs-daily-state { background: var(--bs-green); border-color: var(--bs-green); }
.bs-app .bs-daily-state .bs-icon { width: 15px; height: 15px; stroke-width: 3; }

/* ---------- Learning paths ---------- */
.bs-app .bs-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.bs-app .bs-pathcard {
	display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px;
	background: var(--bs-card); border: 1px solid var(--bs-line); box-shadow: var(--bs-shadow); transition: transform .15s, border-color .15s;
}
.bs-app .bs-pathcard:hover { transform: translateY(-3px); border-color: #bbf7d0; }
.bs-app .bs-pathcard.is-mine { border: 2px solid var(--bs-green); }
.bs-app .bs-pathcard-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.bs-app .bs-pathcard strong { font-size: 19px; }
.bs-app .bs-pathcard-desc { color: var(--bs-muted); font-size: 15px; line-height: 1.5; }
.bs-app .bs-pathcard-foot { margin-top: auto; padding-top: 10px; }
.bs-app .bs-pathcard-foot small { color: var(--bs-muted); font-size: 13px; font-weight: 600; }

.bs-app .bs-path-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.bs-app .bs-path-hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 4px 0; }
.bs-app .bs-path-hero p { color: var(--bs-muted); font-size: 17px; }
.bs-app .bs-path-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bs-app .bs-path-status .bs-plan-bar { width: 100%; }
.bs-app .bs-pathlist { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.bs-app .bs-pathlist a {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
	background: var(--bs-card); border: 1px solid var(--bs-line); box-shadow: var(--bs-shadow); transition: border-color .15s, transform .15s;
}
.bs-app .bs-pathlist a:hover { border-color: #f3cdb6; transform: translateX(3px); }
.bs-app .bs-pathlist-num { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bs-soft); color: var(--bs-accent-2); font-weight: 700; }
.bs-app .bs-pathlist .is-done .bs-pathlist-num { background: var(--bs-green); color: #fff; }
.bs-app .bs-pathlist .is-started .bs-pathlist-num { background: var(--bs-accent); color: #fff; }
.bs-app .bs-pathlist-num .bs-icon { width: 18px; height: 18px; stroke-width: 3; }
.bs-app .bs-pathlist-text { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.bs-app .bs-pathlist-text strong { font-size: 17px; }
.bs-app .bs-pathlist-text small { color: var(--bs-muted); font-size: 14px; }
.bs-app .bs-pathlist a > .bs-icon { color: var(--bs-muted); }
.bs-app .bs-series-head h3 { font-size: 19px; }

/* ---------- My Verses ---------- */
.bs-app .bs-verse-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: end; }
.bs-app .bs-verse-form label { margin: 0; }
.bs-app .bs-verse-form .bs-btn { height: 48px; }
.bs-app .bs-verse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.bs-app .bs-verse {
	display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #fff8f2 100%); border: 1px solid var(--bs-line); box-shadow: var(--bs-shadow);
	animation: bsIn .3s ease;
}
.bs-app .bs-verse-ico { color: var(--bs-accent); }
.bs-app .bs-verse-ico .bs-icon { fill: currentColor; }
.bs-app .bs-verse-ref { font-size: 22px; line-height: 1.25; }
.bs-app .bs-verse-ref a { color: var(--bs-ink); text-decoration: underline; text-decoration-color: #f3cdb6; text-underline-offset: 4px; }
.bs-app .bs-verse-note { color: var(--bs-muted); font-size: 15px; }
.bs-app .bs-verse footer { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bs-app .bs-verse footer small { color: var(--bs-muted); font-size: 12px; }
.bs-app .bs-verse footer > span { display: flex; gap: 2px; }

/* ---------- Journal ---------- */
.bs-app .bs-journal-form { display: flex; flex-direction: column; gap: 10px; }
.bs-app .bs-journal-form input { font-weight: 600; }
.bs-app .bs-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-app .bs-prompts .bs-filter { font-size: 13px; padding: 6px 12px; }
.bs-app .bs-journal-tools { margin-top: 28px; }
.bs-app .bs-entries { display: flex; flex-direction: column; gap: 12px; }
.bs-app .bs-entry { padding: 18px 20px; border-radius: 18px; background: var(--bs-card); border: 1px solid var(--bs-line); box-shadow: var(--bs-shadow); animation: bsIn .3s ease; }
.bs-app .bs-entry header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.bs-app .bs-entry header strong { font-size: 17px; }
.bs-app .bs-entry header small { color: var(--bs-muted); font-size: 13px; white-space: nowrap; }
.bs-app .bs-entry-text { color: #2b2f33; line-height: 1.7; white-space: normal; }
.bs-app .bs-entry footer { display: flex; justify-content: flex-end; gap: 2px; margin-top: 8px; }
.bs-app .bs-entry.is-editing .bs-entry-text, .bs-app .bs-entry.is-editing footer { display: none; }
.bs-app .bs-entry-edit { display: flex; flex-direction: column; gap: 8px; }
.bs-app .bs-entry-edit input { width: 100%; padding: 10px 14px; border: 1px solid var(--bs-line); border-radius: 12px; font-weight: 600; background: var(--bs-cream); }
.bs-app .bs-entry-edit .bs-form-actions { justify-content: flex-end; }
.bs-app .bs-notecard .bs-lcard-top small { color: var(--bs-muted); font-size: 12px; }

/* Empty states */
.bs-app .bs-empty .bs-icon { width: 36px; height: 36px; margin: 0 auto 8px; color: #d9cfc6; }

/* ---------- Profile ---------- */
.bs-app .bs-profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.bs-app .bs-profile-head .bs-avatar { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--bs-accent); }
.bs-app .bs-profile-head h1 { font-size: clamp(28px, 4vw, 38px); margin: 4px 0; }
.bs-app .bs-profile-head p { color: var(--bs-muted); }
.bs-app .bs-profile-form h2, .bs-app .bs-account h2 { font-size: 19px; margin: 6px 0 10px; }
.bs-app .bs-profile-form h2:not(:first-of-type) { margin-top: 24px; }
.bs-app .bs-profile-form .bs-muted { margin: -4px 0 10px; font-size: 14px; }
.bs-app .bs-account-links { display: flex; flex-wrap: wrap; gap: 10px; }
.bs-app .bs-account { margin-top: 24px; }

/* Interest chips (checkboxes) */
.bs-app .bs-chippick { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-app .bs-pick { position: relative; margin: 0; cursor: pointer; }
.bs-app .bs-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-app .bs-pick span {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
	border: 1.5px solid var(--bs-line); background: #fff; font-weight: 600; font-size: 15px; color: var(--bs-muted); transition: all .15s;
}
.bs-app .bs-pick span .bs-icon { width: 0; height: 16px; stroke-width: 3; transition: width .15s; }
.bs-app .bs-pick:hover span { border-color: var(--bs-accent); color: var(--bs-accent-2); }
.bs-app .bs-pick input:checked + span { background: var(--bs-accent); border-color: var(--bs-accent); color: #fff; }
.bs-app .bs-pick input:checked + span .bs-icon { width: 16px; }
.bs-app .bs-pick input:focus-visible + span { outline: 3px solid rgba(232, 105, 44, .45); outline-offset: 2px; }

/* Path choices (radios) */
.bs-app .bs-pathpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bs-app .bs-pathopt { position: relative; margin: 0; cursor: pointer; }
.bs-app .bs-pathopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-app .bs-pathopt-card {
	display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 16px; border-radius: 18px;
	border: 1.5px solid var(--bs-line); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s;
}
.bs-app .bs-pathopt:hover .bs-pathopt-card { border-color: #bbf7d0; }
.bs-app .bs-pathopt input:checked + .bs-pathopt-card { border-color: var(--bs-green); background: #f6fef9; box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.bs-app .bs-pathopt input:focus-visible + .bs-pathopt-card { outline: 3px solid rgba(22, 163, 74, .35); outline-offset: 2px; }
.bs-app .bs-pathopt-text { flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.bs-app .bs-pathopt-text strong { font-size: 16px; }
.bs-app .bs-pathopt-text small { color: var(--bs-muted); font-size: 14px; }
.bs-app .bs-pathopt-text em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--bs-muted); margin-top: 4px; }
.bs-app .bs-pathopt-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bs-line); display: grid; place-items: center; color: transparent; flex: none; }
.bs-app .bs-pathopt-check .bs-icon { width: 14px; height: 14px; stroke-width: 3; }
.bs-app .bs-pathopt input:checked + .bs-pathopt-card .bs-pathopt-check { background: var(--bs-green); border-color: var(--bs-green); color: #fff; }

/* Badges */
.bs-app .bs-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.bs-app .bs-badgecard {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px;
	border-radius: 18px; background: var(--bs-card); border: 1px dashed var(--bs-line); color: var(--bs-muted);
}
.bs-app .bs-badgecard-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #f2ede8; color: #bfb2a6; margin-bottom: 6px; }
.bs-app .bs-badgecard-ico .bs-icon { width: 26px; height: 26px; }
.bs-app .bs-badgecard strong { color: var(--bs-ink); font-size: 15px; }
.bs-app .bs-badgecard small { font-size: 13px; }
.bs-app .bs-badgecard em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--bs-green-2); display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; }
.bs-app .bs-badgecard em .bs-icon { width: 13px; height: 13px; stroke-width: 3; }
.bs-app .bs-badgecard.is-earned { border-style: solid; box-shadow: var(--bs-shadow); }
.bs-app .bs-badgecard.is-earned .bs-badgecard-ico { background: linear-gradient(140deg, #fbbf24, #e8692c); color: #fff; box-shadow: 0 6px 16px rgba(232, 105, 44, .3); }

/* ---------- Onboarding ---------- */
.bs-app .bs-onboard { background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: 28px; padding: 32px; box-shadow: 0 20px 50px rgba(42, 31, 26, .1); }
.bs-app .bs-ob-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.bs-app .bs-ob-brand { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bs-accent-2); }
.bs-app .bs-ob-dots { display: flex; gap: 6px; }
.bs-app .bs-ob-dots li { width: 30px; height: 6px; border-radius: 999px; background: #efe7df; font-size: 0; transition: background .2s, width .2s; }
.bs-app .bs-ob-dots li.is-active { background: var(--bs-accent); width: 44px; }
.bs-app .bs-ob-dots li.is-past { background: var(--bs-green); }
.bs-app .bs-ob-step { display: none; }
.bs-app .bs-ob-step.is-active { display: block; animation: bsIn .35s ease; }
.bs-app .bs-ob-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--bs-soft); color: var(--bs-accent); margin-bottom: 18px; }
.bs-app .bs-ob-ico .bs-icon { width: 30px; height: 30px; }
.bs-app .bs-ob-ico--green { background: var(--bs-green-soft); color: var(--bs-green-2); }
.bs-app .bs-ob-step h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin-bottom: 8px; }
.bs-app .bs-ob-step > p { color: var(--bs-muted); font-size: 17px; margin-bottom: 22px; max-width: 560px; }
.bs-app .bs-ob-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--bs-line); }
.bs-app .bs-ob-actions--stack { flex-direction: column; align-items: stretch; }
.bs-app .bs-ob-actions--stack .bs-link { align-self: center; }
.bs-app .bs-ob-next { display: flex; flex-direction: column; gap: 10px; }
.bs-app .bs-ob-next li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bs-cream); font-weight: 500; }
.bs-app .bs-ob-next .bs-icon { color: var(--bs-accent); }

/* ---------- Logged-out journey ---------- */
.bs-app .bs-journey { display: grid; gap: 8px; text-align: left; max-width: 480px; margin: 0 auto 24px; counter-reset: bsj; }
.bs-app .bs-journey li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bs-cream); counter-increment: bsj; }
.bs-app .bs-journey li > span:last-child { display: flex; flex-direction: column; line-height: 1.35; font-size: 14px; color: var(--bs-muted); }
.bs-app .bs-journey strong { color: var(--bs-ink); font-size: 15px; }
.bs-app .bs-journey strong::before { content: counter(bsj) ". "; }
.bs-app .bs-journey-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--bs-accent); }

/* ---------- v2 tablet and phone ---------- */
@media (max-width: 1100px) {
	.bs-app .bs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bs-app .bs-growth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
	.bs-app .bs-topbar-title { display: block; font-weight: 700; font-size: 16px; color: var(--bs-ink); }
	.bs-app .bs-topbar-meta { min-width: 44px; justify-content: flex-end; }
	.bs-app .bs-view, .bs-app .bs-study { padding-top: 8px; }
	.bs-app--focus { padding: 16px 14px 40px; }
	.admin-bar .bs-app .bs-notes { top: 0; }
	.bs-app .bs-notes {
		top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 82vh; border-radius: 24px 24px 0 0;
		transform: translateY(105%); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
	}
	.bs-app .bs-verse-form { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.bs-app .bs-dhead { padding-bottom: 16px; margin-bottom: 16px; }
	.bs-app .bs-dhead p { font-size: 15px; }
	.bs-app .bs-dhead-profile .bs-avatar { width: 46px; height: 46px; }
	.bs-app .bs-tiles { gap: 10px; }
	.bs-app .bs-tile { min-height: 150px; padding: 16px; border-radius: 18px; }
	.bs-app .bs-tile strong { font-size: 17px; }
	.bs-app .bs-tile-ico { width: 38px; height: 38px; margin-bottom: 10px; }
	.bs-app .bs-tile em { font-size: 13px; }
	.bs-app .bs-plan { padding: 20px; }
	.bs-app .bs-plan-title h2 { font-size: 21px; }
	.bs-app .bs-growth-stats li { padding: 12px 10px; }
	.bs-app .bs-growth-stats strong { font-size: 19px; }
	.bs-app .bs-daily { padding: 26px 22px; }
	.bs-app .bs-onboard { padding: 22px 18px; border-radius: 22px; }
	.bs-app .bs-ob-actions { flex-direction: column-reverse; align-items: stretch; }
	.bs-app .bs-ob-actions .bs-btn { width: 100%; }
	.bs-app .bs-ob-actions .bs-link { align-self: center; }
	.bs-app .bs-profile-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.bs-app .bs-profile-head .bs-avatar { width: 72px; height: 72px; }
	.bs-app .bs-pathpick { grid-template-columns: 1fr; }
	.bs-app .bs-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bs-app .bs-path-hero { flex-direction: column; align-items: flex-start; }
	.bs-app .bs-pathlist .bs-badge { display: none; }
	.bs-app .bs-context-body { padding-left: 20px; }
	.bs-app .bs-section-head { flex-wrap: wrap; }
	.bs-app .bs-journal-tools .bs-search { width: 100%; }
}

@media print {
	.bs-app .bs-notes, .bs-app .bs-notes-overlay, .bs-app .bs-discuss-form, .bs-app .bs-whatnext, .bs-app .bs-save-verse, .bs-app .bs-memory-actions { display: none !important; }
	.bs-app .bs-context { border-color: #ccc; }
}

/* #########################################################
   Version 3: consent, announcements, notifications,
   reporting comments, privacy controls
   ######################################################### */

.bs-app .bs-small { font-size: 13px; }
.bs-app .bs-btn--danger { color: #b42318; border-color: #f1c4bf; }
.bs-app .bs-btn--danger:hover { background: #fef3f2; color: #912018; border-color: #e7a59d; }

/* Privacy notice banner */
.bs-app .bs-consent {
	display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 20px;
	border-radius: 20px; background: #eef6ff; border: 1.5px solid #bfdbfe; box-shadow: var(--bs-shadow);
	transition: box-shadow .3s, transform .3s;
}
.bs-app .bs-consent.is-flash { box-shadow: 0 0 0 5px rgba(37, 99, 235, .25); transform: scale(1.01); }
.bs-app .bs-consent-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #dbeafe; color: #1d4ed8; }
.bs-app .bs-consent > div { flex: 1; min-width: 0; }
.bs-app .bs-consent strong { display: block; font-size: 16px; margin-bottom: 2px; }
.bs-app .bs-consent p { font-size: 14px; color: #3b4450; line-height: 1.5; }
.bs-app .bs-consent a { color: #1d4ed8; font-weight: 600; text-decoration: underline; }
.bs-app .bs-consent .bs-btn { flex: none; background: #1d4ed8; border-color: #1d4ed8; }
.bs-app .bs-consent .bs-btn:hover { background: #1e40af; border-color: #1e40af; }

.bs-app .bs-consent-check { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px; border-radius: 16px; background: #eef6ff; border: 1.5px solid #bfdbfe; font-size: 14px; line-height: 1.5; cursor: pointer; }
.bs-app .bs-consent-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--bs-accent); }
.bs-app .bs-consent-check a { color: #1d4ed8; font-weight: 600; }
.bs-app .bs-consent-check.is-flash { border-color: #ef4444; background: #fef2f2; }

/* Announcements */
.bs-app .bs-announcements { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bs-app .bs-announce {
	display: flex; align-items: flex-start; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 18px;
	background: #fffbeb; border: 1px solid #fde68a; animation: bsIn .3s ease;
}
.bs-app .bs-announce-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fef3c7; color: #b45309; }
.bs-app .bs-announce-body { flex: 1; min-width: 0; }
.bs-app .bs-announce-body small { display: block; font-size: 12px; font-weight: 600; color: #b45309; text-transform: uppercase; letter-spacing: .06em; }
.bs-app .bs-announce-body > strong { display: block; font-size: 17px; margin: 2px 0 4px; }
.bs-app .bs-announce details summary { cursor: pointer; list-style: none; color: #3b4450; font-size: 15px; }
.bs-app .bs-announce details summary::-webkit-details-marker { display: none; }
.bs-app .bs-announce details summary em { font-style: normal; font-weight: 600; color: var(--bs-accent-2); white-space: nowrap; }
.bs-app .bs-announce details[open] summary { display: none; }
.bs-app .bs-announce-full { font-size: 15px; color: #3b4450; }
.bs-app .bs-announce-full p { margin: 0 0 .6em; }
.bs-app .bs-announce-full p:last-child { margin: 0; }
.bs-app .bs-announce-full a { color: var(--bs-accent-2); text-decoration: underline; }

/* Notification toggles */
.bs-app .bs-toggles { display: flex; flex-direction: column; gap: 8px; }
.bs-app .bs-toggle { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bs-cream); cursor: pointer; margin: 0; }
.bs-app .bs-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-app .bs-toggle-ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #d9cfc6; transition: background .2s; }
.bs-app .bs-toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.bs-app .bs-toggle input:checked + .bs-toggle-ui { background: var(--bs-green); }
.bs-app .bs-toggle input:checked + .bs-toggle-ui::after { transform: translateX(18px); }
.bs-app .bs-toggle input:focus-visible + .bs-toggle-ui { outline: 3px solid rgba(232, 105, 44, .45); outline-offset: 2px; }
.bs-app .bs-toggle-text { display: flex; flex-direction: column; line-height: 1.35; }
.bs-app .bs-toggle-text strong { font-size: 15px; }
.bs-app .bs-toggle-text small { font-size: 13px; color: var(--bs-muted); }
.bs-app .bs-ob-sub { font-size: 18px; margin: 4px 0 10px; }
.bs-app .bs-ob-step .bs-toggles { margin-bottom: 18px; }

/* Privacy card */
.bs-app .bs-privacy { margin-top: 24px; }
.bs-app .bs-privacy h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 8px; }
.bs-app .bs-privacy h2 .bs-icon { color: #1d4ed8; }
.bs-app .bs-privacy > p { margin-bottom: 12px; }
.bs-app .bs-privacy > p a { color: var(--bs-accent-2); font-weight: 600; }
.bs-app .bs-privacy .bs-small { margin: 12px 0 0; }

/* Report a comment */
.bs-app .bs-comment-report { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--bs-muted); opacity: .75; }
.bs-app .bs-comment-report:hover { opacity: 1; color: #b42318; }
.bs-app .bs-comment-report .bs-icon { width: 14px; height: 14px; }
.bs-app .bs-comment-report.is-done { color: #b45309; opacity: 1; }
.bs-app .bs-report-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--bs-line); }
.bs-app .bs-report-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; font-weight: 600; }
.bs-app .bs-report-form select, .bs-app .bs-report-form input {
	width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--bs-line); border-radius: 10px; background: var(--bs-cream); font: inherit; font-size: 15px; margin: 0;
}
.bs-app .bs-report-form .bs-btn { padding: 8px 14px; font-size: 14px; }

@media (max-width: 600px) {
	.bs-app .bs-consent { flex-direction: column; align-items: flex-start; }
	.bs-app .bs-consent .bs-btn { width: 100%; }
	.bs-app .bs-announce { padding: 14px; }
}

@media print {
	.bs-app .bs-consent, .bs-app .bs-announcements, .bs-app .bs-comment-report { display: none !important; }
}

/* #########################################################
   Version 3.2: public catalogue of lesson cards
   ######################################################### */

.bs-app--catalog { display: block; max-width: 1240px; }
.bs-app .bs-cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.bs-app .bs-cat-head small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bs-accent-2); }
.bs-app .bs-cat-head h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; margin: 6px 0 8px; }
.bs-app .bs-cat-head p { color: var(--bs-muted); font-size: 17px; max-width: 620px; }
.bs-app .bs-catalog .bs-filters { margin-bottom: 18px; }
.bs-app .bs-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

.bs-app .bs-ccard {
	display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
	background: var(--bs-card); border: 1px solid var(--bs-line); box-shadow: var(--bs-shadow);
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.bs-app .bs-ccard:hover { transform: translateY(-4px); border-color: #f3cdb6; box-shadow: 0 18px 36px rgba(42, 31, 26, .12); }
.bs-app .bs-ccard-img {
	position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
	background: #efe7df center / cover no-repeat;
}
.bs-app .bs-ccard-img.is-empty { background: linear-gradient(140deg, #fde4d3, #f6c9a8 55%, #e8a274); color: #fff; }
.bs-app .bs-ccard-img.is-empty > .bs-icon { width: 48px; height: 48px; opacity: .9; }
.bs-app .bs-ccard-tag {
	position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 11px; border-radius: 999px; background: rgba(31, 35, 40, .82); color: #fff;
	font-size: 12px; font-weight: 600; backdrop-filter: blur(4px);
}
.bs-app .bs-ccard-tag .bs-icon { width: 14px; height: 14px; }
.bs-app .bs-ccard-tag--started { background: var(--bs-accent); }
.bs-app .bs-ccard-tag--done { background: var(--bs-green); }
.bs-app .bs-ccard-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.bs-app .bs-ccard-paths { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-green-2); }
.bs-app .bs-ccard strong { font-size: 19px; line-height: 1.3; }
.bs-app .bs-ccard-idea { color: var(--bs-muted); font-size: 15px; line-height: 1.5; }
.bs-app .bs-ccard-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--bs-muted); font-weight: 600; }
.bs-app .bs-ccard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.bs-app .bs-ccard-meta .bs-icon { width: 15px; height: 15px; }
.bs-app .bs-ccard-meta span:nth-child(2) .bs-icon { color: var(--bs-star); fill: var(--bs-star); }
.bs-app .bs-ccard-cta { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--bs-accent); }
.bs-app .bs-ccard-cta .bs-icon { width: 16px; height: 16px; transition: transform .15s; }
.bs-app .bs-ccard:hover .bs-ccard-cta .bs-icon { transform: translateX(3px); }

.bs-app .bs-cat-cta {
	display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
	margin-top: 30px; padding: 24px 28px; border-radius: 22px; color: #fff;
	background: linear-gradient(140deg, #e8692c 0%, #c2410c 65%, #9a3412 100%);
}
.bs-app .bs-cat-cta div { display: flex; flex-direction: column; gap: 2px; }
.bs-app .bs-cat-cta strong { font-size: 21px; }
.bs-app .bs-cat-cta span { opacity: .92; }

/* Featured image on the study hero */
.bs-app .bs-hero.has-img { padding-top: 0; overflow: hidden; }
.bs-app .bs-hero-img { display: block; margin: 0 -32px 24px; aspect-ratio: 21 / 9; background: #efe7df center / cover no-repeat; }
.bs-app--locked .bs-back { margin-top: 8px; }

@media (max-width: 600px) {
	.bs-app--catalog { padding-top: 20px; }
	.bs-app .bs-cgrid { grid-template-columns: 1fr; }
	.bs-app .bs-hero-img { margin: 0 -20px 18px; aspect-ratio: 16 / 9; }
	.bs-app .bs-cat-cta { padding: 20px; }
	.bs-app .bs-cat-cta .bs-btn { width: 100%; }
}
