/* Daily Light — calm, luminous, mobile-first */
:root {
  --text-scale: 1;
  --bg: #FBF7F0;
  --bg-2: #F5EEE2;
  --card: #FFFDF9;
  --card-edge: rgba(150, 115, 60, .14);
  --ink: #2C241D;
  --ink-2: #5E5246;
  --ink-3: #8C7F70;
  --gold: #B3843E;
  --gold-2: #D7B373;
  --gold-soft: #F2E5CB;
  --line: rgba(120, 95, 60, .16);
  --shadow: 0 1px 2px rgba(80, 55, 20, .05), 0 8px 28px -12px rgba(110, 80, 30, .22);
  --glow-a: rgba(246, 214, 150, .55);
  --glow-b: rgba(255, 236, 214, .7);
  --verse-bg: #FBF4E6;
  --serif-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 22px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #15120E;
  --bg-2: #1C1813;
  --card: #201B15;
  --card-edge: rgba(230, 190, 120, .12);
  --ink: #EFE6D6;
  --ink-2: #C9BBA5;
  --ink-3: #8F8270;
  --gold: #DDB46C;
  --gold-2: #A9843F;
  --gold-soft: #3A2F1F;
  --line: rgba(230, 200, 150, .12);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -14px rgba(0,0,0,.6);
  --glow-a: rgba(190, 140, 60, .16);
  --glow-b: rgba(120, 80, 40, .10);
  --verse-bg: #262017;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: calc(16px * var(--text-scale)); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px);
  transition: background .4s ease, color .4s ease;
}
body.has-player { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 112px); }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.glow {
  position: fixed; inset: -20vh -20vw auto; height: 70vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 55% at 50% 30%, var(--glow-a), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, var(--glow-b), transparent 70%);
}

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px 10px;
  background: linear-gradient(var(--bg) 60%, transparent);
  max-width: 720px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--gold); }
.brand svg { width: 26px; height: 26px; }
.brand span { font-family: var(--serif-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); font-style: italic; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 70%, transparent); display: grid; place-items: center; cursor: pointer;
  color: var(--ink-2); backdrop-filter: blur(8px);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.95); }

main { max-width: 720px; margin: 0 auto; padding: 0 20px; outline: none; }
.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Day header */
.day-head { text-align: center; padding: 18px 0 8px; }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.day-title { font-family: var(--serif-display); font-weight: 500; font-size: clamp(2.5rem, 11vw, 3.4rem); line-height: 1.02; margin: 8px 0 4px; letter-spacing: -.01em; }
.day-sub { color: var(--ink-3); font-size: .9rem; }
.day-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 6px; }
.day-nav .icon-btn[disabled] { opacity: .3; pointer-events: none; }
.date-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font-size: .88rem; font-weight: 500; box-shadow: var(--shadow);
}
.date-pill svg { width: 16px; height: 16px; color: var(--gold); }
.date-pill input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.today-link { display: block; text-align: center; font-size: .82rem; color: var(--gold); margin-top: 6px; text-decoration: none; font-weight: 500; }

.day-progress { display: flex; justify-content: center; gap: 6px; margin: 16px 0 8px; }
.day-progress i { width: 26px; height: 3px; border-radius: 2px; background: var(--line); }
.day-progress i.has { background: var(--gold-2); opacity: .55; }
.day-progress i.read { background: var(--gold); opacity: 1; }

/* Timeline */
.timeline { list-style: none; margin: 22px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold-2), var(--line) 85%, transparent); opacity: .7; }
.t-item { display: grid; grid-template-columns: 56px 1fr; gap: 6px; margin-bottom: 18px; }
.t-time { text-align: center; padding-top: 18px; position: relative; }
.t-time b { display: inline-block; font-size: .74rem; font-weight: 600; color: var(--ink-2); background: var(--bg); padding: 4px 0 6px; letter-spacing: .04em; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.t-dot { display: block; width: 9px; height: 9px; border-radius: 50%; margin: 0 auto; background: var(--bg); border: 1.5px solid var(--gold); position: relative; z-index: 1; }
.t-item.read .t-dot { background: var(--gold); }
.t-item.pending .t-dot { border-color: var(--ink-3); border-style: dashed; }

.card {
  display: block; position: relative; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 16px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent, var(--gold-2)); opacity: .75; }
.card:active { transform: scale(.985); }
.card-kicker { display: flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink, var(--gold)); }
.card-kicker svg { width: 16px; height: 16px; }
.card-title { font-family: var(--serif-display); font-size: 1.6rem; line-height: 1.12; font-weight: 600; margin: 8px 0 4px; letter-spacing: -.005em; padding-right: 44px; }
.card-ref { font-size: .84rem; color: var(--ink-3); font-weight: 500; }
.card-verse { font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--gold-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--ink-2); font-weight: 500; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip.active { background: var(--gold); color: var(--card); }
.read-badge { font-size: .72rem; color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.card .play-btn { position: absolute; top: 16px; right: 14px; }
.card.pending { background: transparent; box-shadow: none; border-style: dashed; padding: 14px 18px; }
.card.pending::before { display: none; }
.card.pending .card-title { font-size: 1.2rem; color: var(--ink-3); font-weight: 500; }

.play-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #E9C985, var(--gold) 70%); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(160, 110, 40, .7);
}
.play-btn svg { width: 18px; height: 18px; }
.play-btn.big { width: 52px; height: 52px; }
.play-btn.big svg { width: 22px; height: 22px; }
.play-btn:active { transform: scale(.94); }

/* Sitting accents */
.s-morning-psalm { --accent: linear-gradient(90deg, #F0C27B, #F4A9A0); --accent-ink: #C0763E; }
.s-second-track { --accent: linear-gradient(90deg, #C9A35B, #8D6E3F); --accent-ink: #9B7535; }
.s-jesus-teachings { --accent: linear-gradient(90deg, #9DB59A, #6F9479); --accent-ink: #5E8467; }
.s-bible-study { --accent: linear-gradient(90deg, #D7B373, #B3843E); --accent-ink: #B3843E; }
.s-new-testament { --accent: linear-gradient(90deg, #A9BFD6, #7F9CB8); --accent-ink: #5F7FA0; }
.s-jesus-highlight { --accent: linear-gradient(90deg, #E8B4A0, #C98A7B); --accent-ink: #B06F60; }
.s-evening-gratitude { --accent: linear-gradient(90deg, #9C97C4, #6E6A9E); --accent-ink: #6E6A9E; }
[data-theme="dark"] .s-morning-psalm { --accent-ink: #EBB27B; }
[data-theme="dark"] .s-second-track { --accent-ink: #D9B676; }
[data-theme="dark"] .s-jesus-teachings { --accent-ink: #A6C6A8; }
[data-theme="dark"] .s-new-testament { --accent-ink: #A9C2DC; }
[data-theme="dark"] .s-jesus-highlight { --accent-ink: #E9AE9D; }
[data-theme="dark"] .s-evening-gratitude { --accent-ink: #B9B4E4; }

/* Entry page */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: .88rem; text-decoration: none; font-weight: 500; margin: 6px 0 14px; background: none; border: 0; padding: 0; cursor: pointer; }
.back svg { width: 16px; height: 16px; }
.entry-head { text-align: center; padding: 6px 0 4px; }
.entry-head .card-kicker { justify-content: center; }
.entry-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2rem, 8.5vw, 2.8rem); line-height: 1.08; margin: 12px 0 10px; letter-spacing: -.01em; }
.entry-meta { color: var(--ink-3); font-size: .86rem; }
.entry-head .chips { justify-content: center; margin-top: 14px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold-2); margin: 22px 0; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 14px; height: 14px; }

.listen-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 20px 0 6px;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 18px; box-shadow: var(--shadow);
}
.listen-card .txt { flex: 1; min-width: 0; }
.listen-card .txt b { display: block; font-size: .95rem; font-weight: 600; }
.listen-card .txt span { font-size: .8rem; color: var(--ink-3); }
.listen-card .icon-btn { flex: none; }

/* Rendered markdown */
.prose { font-family: var(--serif); font-size: 1.14rem; line-height: 1.75; color: var(--ink); }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3 { font-family: var(--serif-display); font-weight: 600; font-size: 1.65rem; line-height: 1.2; margin: 1.6em 0 .4em; color: var(--ink); }
.prose h3 { font-size: 1.35rem; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote {
  margin: 1.2em 0; padding: 18px 20px; background: var(--verse-bg); border-radius: 16px;
  border-left: 3px solid var(--gold-2); font-style: normal;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .scripture { font-size: 1.12rem; }
.prose .verse { display: block; margin: 0 0 .5em; }
.prose .verse:last-child { margin-bottom: 0; }
.prose .vn { font-family: var(--sans); font-size: .62em; font-weight: 600; color: var(--gold); vertical-align: .55em; margin-right: .35em; letter-spacing: .02em; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); margin: 2em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.prose li { margin-bottom: .35em; }
.prose em { color: var(--ink-2); }

.entry-actions { display: flex; gap: 10px; margin: 28px 0 10px; }
.entry-actions > * { flex: 1; }
.primary-btn, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px;
  border-radius: 16px; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none;
}
.primary-btn { background: var(--ink); color: var(--bg); border: 0; }
.primary-btn.done { background: var(--gold-soft); color: var(--gold); }
.ghost-btn { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.primary-btn svg, .ghost-btn svg { width: 18px; height: 18px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; min-width: 0; }
.pager a.next { text-align: right; grid-column: 2; }
.pager small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.pager span { display: block; font-family: var(--serif-display); font-size: 1.1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Section headings */
.page-head { padding: 14px 0 6px; }
.page-head h1 { font-family: var(--serif-display); font-weight: 500; font-size: 2.6rem; line-height: 1.05; margin: 6px 0 6px; }
.page-head p { color: var(--ink-3); margin: 0; font-size: .92rem; }

/* Tracks */
.track { margin: 18px 0; }
.track .card-title { padding-right: 0; font-size: 1.5rem; }
.progress { margin: 14px 0 6px; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--gold-soft); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent, var(--gold)); min-width: 6px; }
.progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-3); margin-top: 8px; font-variant-numeric: tabular-nums; }
.progress-label b { color: var(--ink); font-weight: 600; }
.track-facts { margin: 12px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--ink-2); }
.track-facts li { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.track-facts li span:first-child { color: var(--ink-3); min-width: 64px; }
.mini-stat { font-size: .82rem; color: var(--ink-3); margin-top: 6px; }

/* Lists */
.list { list-style: none; padding: 0; margin: 10px 0 0; }
.list li a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.list .d { text-align: center; line-height: 1.05; }
.list .d b { display: block; font-family: var(--serif-display); font-size: 1.6rem; font-weight: 600; }
.list .d small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.list .t { min-width: 0; }
.list .t small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink, var(--gold)); font-weight: 600; }
.list .t span { display: block; font-family: var(--serif-display); font-size: 1.22rem; font-weight: 600; line-height: 1.2; }
.list .t em { display: block; font-style: normal; font-size: .8rem; color: var(--ink-3); }
.list .tick { width: 22px; height: 22px; color: var(--gold); }
.group-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 26px 0 0; }

.search {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; margin: 14px 0 12px;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 16px; box-shadow: var(--shadow);
}
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); outline: none; min-width: 0; }
.filter-row { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 10px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }

/* Tab bar */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); z-index: 30;
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--card-edge); box-shadow: 0 10px 30px -10px rgba(80, 55, 20, .35);
}
.tabbar a { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: var(--ink-3); font-size: .85rem; font-weight: 600; transition: background .25s, color .25s; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.active { background: var(--ink); color: var(--bg); }

/* Player */
.player {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 22px + var(--safe-b)); z-index: 29;
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--card-edge); border-radius: 22px; box-shadow: 0 14px 40px -14px rgba(80, 55, 20, .45);
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.player-info { flex: 1; min-width: 0; }
.player-kicker { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.player-title { font-family: var(--serif-display); font-size: 1.12rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar { height: 3px; border-radius: 3px; background: var(--gold-soft); margin-top: 7px; overflow: hidden; }
.player-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s ease; }
.player-controls { display: flex; align-items: center; gap: 8px; }

/* Sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(30, 20, 10, .35); z-index: 40; animation: fadeIn .25s ease both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto;
  background: var(--card); border-radius: 28px 28px 0 0; padding: 10px 22px calc(22px + var(--safe-b));
  box-shadow: 0 -10px 40px rgba(0,0,0,.15); animation: sheetUp .3s cubic-bezier(.2,.8,.2,1) both; max-height: 88dvh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-family: var(--serif-display); font-weight: 600; font-size: 1.7rem; margin: 0 0 16px; }
.setting { margin-bottom: 18px; }
.setting > label { display: flex; justify-content: space-between; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.setting output { color: var(--ink); letter-spacing: 0; }
.segmented { display: flex; background: var(--bg-2); border-radius: 14px; padding: 4px; gap: 4px; }
.segmented button { flex: 1; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-weight: 500; color: var(--ink-2); font-family: var(--serif-display); font-size: 1.05rem; }
#themeSeg button { font-family: var(--sans); font-size: .88rem; }
.segmented button.m { font-size: 1.25rem; } .segmented button.l { font-size: 1.45rem; } .segmented button.xl { font-size: 1.7rem; }
.segmented button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.setting select { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); padding: 0 12px; font: inherit; font-size: .95rem; }
input[type=range] { width: 100%; accent-color: var(--gold); }
.fineprint { font-size: .78rem; color: var(--ink-3); margin: 12px 0 16px; line-height: 1.5; }
.sheet .primary-btn, .sheet .ghost-btn { width: 100%; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .86rem; font-weight: 500; animation: fadeIn .25s ease both; }

.foot-note { text-align: center; font-family: var(--serif-display); font-style: italic; color: var(--ink-3); font-size: 1.05rem; margin: 26px 0 0; }

@media (min-width: 700px) {
  .day-title { font-size: 3.8rem; }
  .prose { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Device-voice fallback (tucked away; natural recordings are the default) */
.device-voice { margin: 4px 0 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.device-voice summary { cursor: pointer; font-size: .85rem; color: var(--ink-3); padding: 6px 0; }
.device-voice[open] summary { margin-bottom: 4px; }

/* ---------- Personal plans (v4) ---------- */
.s-wisdom { --accent: linear-gradient(90deg, #C9B07A, #9E8A5A); --accent-ink: #8A7444; }
.s-my-books { --accent: linear-gradient(90deg, #D9A0B8, #B27A9A); --accent-ink: #A0617F; }
[data-theme="dark"] .s-wisdom { --accent-ink: #D8C392; }
[data-theme="dark"] .s-my-books { --accent-ink: #E3AFC6; }
body.onboarding .tabbar { display: none; }
body.onboarding { padding-bottom: 32px; }
.onboard { padding: 8px 4px 24px; display: flex; flex-direction: column; gap: 14px; }
.onboard .primary-btn, .locked .primary-btn { width: 100%; margin-top: 10px; }
.ob-back { background: none; border: 0; padding: 0; cursor: pointer; align-self: flex-start; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.ob-dots i.on { background: var(--gold-2); }
.ob-hero { width: 72px; height: 72px; margin: 28px auto 4px; border-radius: 50%; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle, var(--glow-b), var(--gold-soft) 70%); box-shadow: 0 0 60px var(--glow-a); }
.ob-hero svg { width: 34px; height: 34px; }
.onboard > .eyebrow, .onboard > .ob-hero + .eyebrow { text-align: left; }
.ob-title { font-family: var(--serif-display); font-weight: 500; font-size: 2.2rem; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.ob-lead { font-family: var(--serif); color: var(--ink-2); margin: 0; font-size: 1.02rem; line-height: 1.6; }
.ob-input { width: 100%; height: 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 0 18px; font: inherit; font-family: var(--serif); font-size: 1.2rem; box-shadow: var(--shadow); outline: none; }
.ob-input:focus { border-color: var(--gold-2); }
.ob-input.code { text-transform: uppercase; letter-spacing: .12em; text-align: center; font-family: var(--sans); font-size: 1.05rem; }
.ob-options { display: flex; flex-direction: column; gap: 10px; }
.ob-option { height: 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; padding: 0 18px;
  font-family: var(--serif); font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); transition: all .2s; }
.ob-option.active { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); box-shadow: 0 0 0 2px var(--gold-2) inset; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.pick { font-size: .86rem; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); transition: all .15s; }
.chip.pick.active { background: var(--gold); border-color: var(--gold); color: var(--card); }
.ob-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.plan-seg button { font-family: var(--sans); font-size: .95rem; }
.plan-list { list-style: none; padding: 0; margin: 6px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.plan-row { width: 100%; display: grid; grid-template-columns: 40px 1fr 26px; gap: 12px; align-items: start; text-align: left; cursor: pointer;
  padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); opacity: .62; transition: all .2s; position: relative; overflow: hidden; }
.plan-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent, var(--gold-2)); }
.plan-row.on { opacity: 1; box-shadow: var(--shadow); border-color: var(--card-edge); }
.plan-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent-ink, var(--gold)); }
.plan-ic svg { width: 22px; height: 22px; }
.plan-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-t small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink, var(--ink-3)); font-weight: 600; }
.plan-t b { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.plan-t em { font-style: normal; color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
.plan-t i { font-style: normal; color: var(--ink-3); font-size: .78rem; margin-top: 4px; }
.plan-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.plan-row.on .plan-check { border-color: var(--gold-2); background: var(--gold-soft); }
.plan-check .tick { width: 22px; height: 22px; }
.plan-check .tick circle { display: none; }
.plan-sum { text-align: center; font-family: var(--serif); color: var(--ink-2); margin: 14px 0 6px; }
#savePlan { width: 100%; margin-bottom: 18px; }
#savePlan[disabled] { opacity: .4; }
.diamond-card { background: linear-gradient(140deg, var(--card), var(--gold-soft)); }
.diamond-card::before { background: linear-gradient(90deg, #E9D9A8, #B9A3D9, #9FD3E0); opacity: 1; }
.up-badge { margin-left: auto; font-size: .64rem; letter-spacing: .1em; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--card); }
.card.next-up { box-shadow: var(--shadow), 0 0 0 1.5px var(--gold-2); }
.day-sub svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--gold); }
.home-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 6px; }
.home-links .ghost-btn svg { width: 16px; height: 16px; }
.listen-card.quiet { background: transparent; box-shadow: none; border: 1px dashed var(--line); margin-top: 10px; }
.ellen-notes { margin: 26px 0 8px; padding: 18px; border-radius: var(--radius); background: var(--verse-bg); border: 1px solid var(--card-edge); }
.ellen-notes .eyebrow svg { width: 12px; height: 12px; vertical-align: -1px; }
.ellen-notes details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.ellen-notes summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ellen-notes summary b { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; }
.ellen-notes summary small { color: var(--ink-3); font-size: .78rem; }
.ellen-notes .prose { font-size: .98em; margin-top: 10px; }
.pray-card { margin: 18px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border-left: 3px solid var(--accent-ink, var(--gold)); }
.pray-card .eyebrow svg { width: 12px; height: 12px; vertical-align: -1px; }
.pray-card p { font-family: var(--serif); font-style: italic; color: var(--ink-2); line-height: 1.7; margin: 8px 0; }
.pray-card ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.pray-card li { margin: 4px 0; }
.locked { text-align: center; display: flex; flex-direction: column; gap: 14px; padding: 6px 4px 20px; }
.lock-ic { width: 76px; height: 76px; margin: 18px auto 0; border-radius: 50%; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle, var(--glow-b), var(--gold-soft) 72%); box-shadow: 0 0 70px var(--glow-a); }
.lock-ic svg { width: 34px; height: 34px; }
.locked-list { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.locked-list li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.locked-list b { font-size: .68rem; color: var(--ink-3); font-weight: 600; }
.locked-list svg { width: 14px; height: 14px; color: var(--gold-2); }
#unlockMsg.err { color: #B4523F; }
.diamond-head .eyebrow svg { width: 14px; height: 14px; vertical-align: -2px; }
#follow { width: 100%; margin: 14px 0 10px; }
.ghost-btn.wide { width: 100%; margin-bottom: 10px; justify-content: center; }
.ghost-btn.wide svg { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font-size: inherit; }
.link-btn.danger { display: block; margin: 16px auto 4px; color: var(--ink-3); font-size: .85rem; }
.sheet-row { display: flex; gap: 10px; margin-bottom: 14px; }
.sheet-row .ghost-btn { flex: 1; }

/* Bible reader */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.book-tile { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--card-edge); border-radius: 14px; text-decoration: none; box-shadow: var(--shadow); }
.book-tile span { display: block; font-family: var(--serif-display); font-size: 1.08rem; font-weight: 600; line-height: 1.2; }
.book-tile em { display: block; font-style: normal; font-size: .74rem; color: var(--ink-3); margin-top: 2px; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin: 16px 0; }
.chapter-grid a { display: flex; align-items: center; justify-content: center; height: 52px; background: var(--card); border: 1px solid var(--card-edge); border-radius: 14px; text-decoration: none; font-family: var(--serif-display); font-size: 1.15rem; font-weight: 600; }
.chapter-grid a:active, .book-tile:active { background: var(--gold-soft); }
@media (max-width: 420px) { .tabbar a { padding: 0 12px; gap: 5px; font-size: .8rem; } }
.universe { margin: 22px 0; text-align: center; }
.universe-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 60%, #E9A8B8)); color: var(--card); font-weight: 600; font-size: .98rem;
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--gold) 70%, transparent); transition: transform .2s; }
.universe-btn:active { transform: scale(.97); }
.universe-btn svg { width: 20px; height: 20px; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: rotate(45deg) scale(1.15); opacity: .8; } }
.uni-card { margin: 0; padding: 24px 20px 18px; background: var(--card); border: 1px solid var(--card-edge); border-radius: 22px; box-shadow: var(--shadow); animation: uniReveal .9s cubic-bezier(.2,.7,.2,1) both; }
.uni-card blockquote { margin: 12px 0 10px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.uni-card figcaption { font-family: var(--serif-display); font-weight: 600; color: var(--gold); letter-spacing: .04em; }
.uni-card .eyebrow svg { width: 12px; height: 12px; }
.uni-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
@keyframes uniReveal { from { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.prose .verse.hl { background: var(--gold-soft); border-radius: 8px; padding: 4px 8px; margin-left: -8px; margin-right: -8px; }

/* ---- Sitting times & daily reminders ---- */
.plan-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 0; padding: 10px 14px 12px 66px;
  border: 1px solid var(--card-edge, var(--line)); border-top: 0; border-radius: 0 0 18px 18px; background: var(--card); position: relative; top: -10px; }
.plan-list li:has(.plan-time) .plan-row { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.plan-time label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
input[type="time"] { font: inherit; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; height: 42px; padding: 0 10px; min-width: 112px; }
input[type="time"]:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.time-row { cursor: default; grid-template-columns: 40px 1fr auto; align-items: center; }
.reminders-card { margin: 8px 0 18px; padding: 16px; }
.rem-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rem-t { display: flex; flex-direction: column; }
.rem-t b { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; }
.rem-t span { font-size: .78rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.rem-hint { margin: 10px 0 0; }
.rem-hint .inline-ic svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--gold); }
.switch { width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); position: relative; cursor: pointer; flex: none; transition: background .2s; padding: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch.on { background: var(--gold); border-color: var(--gold); }
.switch.on i { transform: translateX(22px); }
.switch[disabled] { opacity: .45; cursor: not-allowed; }

/* Diamond Light Academy join / upsell */
.dla-join {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 0 8px; padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #FFFDF9 0%, #F7EED8 55%, #F2E5CB 100%);
  border: 1px solid rgba(179, 132, 62, .28);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dla-join:active { transform: scale(.99); }
.dla-join-gem { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; }
.dla-join-gem .dla-gem { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(179,132,62,.35)); }
.dla-join-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dla-join-t b { font-family: var(--serif-display); font-size: 1.05rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.dla-join-t em { font-style: normal; font-size: .92rem; color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.dla-join-chev { color: var(--gold); font-size: 1.1rem; opacity: .7; }
.dla-invite {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 8px 0 4px; font-size: .92rem; color: var(--ink-2);
}
.dla-invite .dla-gem { width: 18px; height: 18px; }
.dla-invite a { color: var(--gold); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(179,132,62,.35); }
@keyframes dla-twinkle {
  0%, 100% { opacity: .15; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1.15); }
  70% { opacity: .35; }
}
.dla-spark { opacity: .2; }
.dla-spark.s1 { animation: dla-twinkle 3.6s ease-in-out infinite; }
.dla-spark.s2 { animation: dla-twinkle 4.2s ease-in-out .8s infinite; }
.dla-spark.s3 { animation: dla-twinkle 3.2s ease-in-out 1.4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .dla-spark { animation: none !important; opacity: .55; }
}

/* Email signup / privacy */
.ob-consent { margin: 10px 0 0; font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.ob-consent a { color: var(--gold); }
.email-prompt { margin: 16px 0; }
.email-prompt .ob-input { margin-top: 10px; }
.ep-actions { display: flex; gap: 10px; margin-top: 12px; }
.ep-actions .primary-btn, .ep-actions .ghost-btn { flex: 1; }
.ob-lead.fine { font-size: .95rem; color: var(--ink-3); margin-top: -4px; }
.privacy h2 { font-family: var(--serif-display); font-size: 1.25rem; margin: 1.2em 0 .4em; }
.privacy ul { padding-left: 1.2em; color: var(--ink-2); }
