/* Starry night: always dark. Glass surfaces let the starfield (stars.js) show through. */
:root {
  --bg: #000;
  --surface: rgba(16, 18, 28, .62);
  --surface-2: rgba(255, 255, 255, .08);
  --surface-solid: #0b0d14;
  --text: #eef0f6;
  --muted: #9aa3b8;
  --line: rgba(255, 255, 255, .1);
  --accent: #e3a548;        /* starlight gold */
  --accent-ink: #1a1206;
  --accent-soft: rgba(227, 165, 72, .16);
  --calm: #8fb8e8;
  --good: #5cc28f;
  --danger: #e0796b;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .8);
  --glass: blur(16px) saturate(130%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse 120% 70% at 50% 120%, rgba(40, 52, 110, .35), transparent 60%),
              radial-gradient(ellipse 80% 50% at 85% -10%, rgba(90, 60, 140, .18), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 calc(76px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 24px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-top: 28px; }
p { margin: 0 0 .8em; }
a { color: var(--calm); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
main, .tabbar, .toast { position: relative; z-index: 1; }

.card {
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.sync-dot { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sync-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.sync-dot.off::before { background: var(--muted); }

/* Streak */
.streak { text-align: center; padding: 26px 18px; background: linear-gradient(160deg, var(--surface) 30%, var(--accent-soft)); }
.streak .num { font-family: var(--serif); font-size: 72px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.streak .label { color: var(--muted); margin-top: 6px; }

/* Verse */
.verse { font-family: var(--serif); font-size: 19px; line-height: 1.55; margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--accent); }
.verse cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: .02em; }
.verse.big { font-size: 23px; }

/* Buttons */
button, .btn {
  font: inherit; cursor: pointer; border: 0; border-radius: 14px; padding: 13px 18px;
  background: var(--surface-2); color: var(--text); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
}
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--calm); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 500; }
.btn-good { background: var(--good); color: #fff; }
.btn-block { width: 100%; }
.tempted {
  width: 100%; min-height: 84px; font-size: 22px; border-radius: 22px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--accent);
  margin: 6px 0 10px;
}
.tempted:active { transform: scale(.98); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

/* Bars */
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 14px; }
.bar .track { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 6px; }
.bar .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 500; font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Forms */
label { display: block; font-weight: 600; margin: 16px 0 8px; }
input[type="text"], input[type="tel"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 90px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Flow (tempted / fell) */
.flow { min-height: calc(100dvh - 140px); display: flex; flex-direction: column; }
.flow .grow { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.flow .steps { display: flex; gap: 6px; margin-bottom: 20px; }
.flow .steps i { flex: 1; height: 3px; border-radius: 4px; background: var(--line); transition: background .4s var(--ease), box-shadow .4s; }
.flow .steps i.on { background: var(--accent); box-shadow: 0 0 10px rgba(227, 165, 72, .6); }
.hero-line { font-family: var(--serif); font-size: 34px; line-height: 1.15; font-weight: 600; margin-bottom: 18px; }
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { padding: 10px 0; border-top: 1px solid var(--line); }
.reasons li:first-child { border-top: 0; }

/* Breath */
.breath { display: grid; place-items: center; margin: 12px 0 20px; }
.breath .circle {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 70%);
  border: 2px solid var(--accent); display: grid; place-items: center; text-align: center; padding: 20px;
  font-family: var(--serif); font-size: 18px; transform: scale(.7); transition: transform 4s ease-in-out;
}
.breath .circle.in { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .breath .circle { transition: none; transform: none; } }

/* Escape list */
.escape { display: grid; gap: 10px; }
.escape a, .escape button {
  justify-content: flex-start; text-align: left; background: var(--surface); border: 1px solid var(--line); font-weight: 500;
}

/* Lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .when { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); margin-right: 4px; }
.tag.good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.tag.fell { background: color-mix(in srgb, var(--calm) 18%, transparent); color: var(--calm); }
.icon-btn { min-height: 36px; padding: 6px 10px; font-size: 13px; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.domain { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; word-break: break-all; }

.keybox { font-family: ui-monospace, Menlo, monospace; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; word-break: break-all; font-size: 14px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details ol { padding-left: 20px; margin: 10px 0 0; }
details li { margin-bottom: 6px; }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; padding: 6px 0; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); }
body.focus .tabbar { display: none; }
body.focus { padding-bottom: env(safe-area-inset-bottom); }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.celebrate { text-align: center; }
.celebrate .big { font-family: var(--serif); font-size: 64px; font-weight: 600; color: var(--good); line-height: 1; }

/* Photos */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 18px;
  min-height: 170px; padding: 20px; color: #fff; background: #1d2640 center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 24, .05) 0%, rgba(8, 12, 24, .72) 100%); }
.photo > * { position: relative; }
.photo.tall { min-height: 260px; }
.photo.short { min-height: 140px; }
.photo.center { text-align: center; justify-content: center; }
.photo .hero-line { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.photo.streak-photo { min-height: 240px; text-align: center; justify-content: center; }
.photo.streak-photo::before { background: linear-gradient(180deg, rgba(8, 12, 24, .25), rgba(8, 12, 24, .6)); }
.photo .num { font-family: var(--serif); font-size: 76px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.photo .label { opacity: .9; margin-top: 6px; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .85; }
.bignum { font-family: var(--serif); font-size: 52px; line-height: 1.05; font-weight: 600; margin: 4px 0; }

/* Home cards */
.plan-cta { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); border-color: var(--accent); }
.plan-cta b::after { content: " →"; color: var(--accent); }
.reclaim-card .kicker { color: var(--muted); }
.reclaim-card .mid { font-size: 18px; margin: 4px 0 6px; }
.reclaim-card .mid b { font-family: var(--serif); font-size: 40px; color: var(--accent); }

/* Onboarding */
.flowtop { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.flowtop .btn-ghost { padding-left: 0; }
.options { display: grid; gap: 10px; margin-top: 8px; }
.option { justify-content: flex-start; background: var(--surface); border: 1px solid var(--line); font-weight: 500; min-height: 56px; }
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.hours { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 24px 0 16px; text-align: center; }
.hours b { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2.5ch; }
.hours span { color: var(--muted); font-size: 14px; }
.round { width: 56px; height: 56px; border-radius: 50%; font-size: 26px; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.reclaim { list-style: none; margin: 0; padding: 0; }
.reclaim li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); }
.reclaim li:first-child { border-top: 0; padding-top: 0; }
.reclaim b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.reclaim span { font-family: var(--serif); font-size: 20px; }

.stakes { display: flex; gap: 10px; margin-bottom: 6px; }
.stakes > div { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stakes b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--accent); }
.stakes span { font-size: 13px; color: var(--muted); }
.punch { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 12px 0 18px; }

/* Partner, letter */
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 10px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.letter-media { width: 100%; max-height: 60vh; border-radius: 14px; background: #000; display: block; margin-bottom: 10px; }
audio.letter-media { background: transparent; }
.letter-card .kicker { color: var(--accent); margin-bottom: 8px; }
.rec-dot { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rec-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
button:disabled { opacity: .45; cursor: not-allowed; }

/* Auth */
.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; margin: 6px 0 14px; }
.seg button { flex: 1; min-height: 40px; background: transparent; font-weight: 600; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
input[type="email"], input[type="password"] {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}

/* ---------- Starry polish ---------- */
.stat, .stakes > div, .option, .chip, .escape a, .escape button, .round {
  background: var(--surface); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
}
input[type="text"], input[type="tel"], input[type="date"], input[type="email"], input[type="password"], textarea {
  background: rgba(255, 255, 255, .04); border-color: var(--line); transition: border-color .2s, background .2s;
}
input:focus, textarea:focus { border-color: rgba(227, 165, 72, .6); background: rgba(255, 255, 255, .07); outline: none; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); }

.tabbar { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border-top-color: rgba(255, 255, 255, .08); }
.tabbar a { transition: color .25s var(--ease), transform .25s var(--ease); }
.tabbar a.on { color: var(--accent); text-shadow: 0 0 18px rgba(227, 165, 72, .5); }
.tabbar a:active { transform: scale(.92); }
.toast { background: rgba(238, 240, 246, .95); color: #05060a; transition: opacity .35s var(--ease), transform .35s var(--ease); }

/* Buttons: soft press, glow on primary */
button, .btn { transition: transform .18s var(--ease), background .25s, box-shadow .25s, opacity .2s; -webkit-tap-highlight-color: transparent; }
button:active, .btn:active { transform: scale(.97); }
.btn-primary, .tempted { background: linear-gradient(180deg, #f0b85e, #d9963a); color: var(--accent-ink); }
.btn-primary { box-shadow: 0 6px 24px -8px rgba(227, 165, 72, .7); }
.tempted { box-shadow: 0 0 0 1px rgba(255, 220, 160, .35) inset, 0 12px 44px -10px rgba(227, 165, 72, .85); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(255, 220, 160, .35) inset, 0 12px 60px -6px rgba(227, 165, 72, 1); } }
.chip[aria-pressed="true"], .seg button[aria-selected="true"] { box-shadow: 0 0 18px -4px rgba(227, 165, 72, .6); }
.seg { background: rgba(255, 255, 255, .06); }
.seg button[aria-selected="true"] { background: rgba(255, 255, 255, .12); }

/* Screen transitions */
.enter > * { animation: rise .5s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .04s; }
.enter > *:nth-child(3) { animation-delay: .08s; }
.enter > *:nth-child(4) { animation-delay: .12s; }
.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Photos blend into the night */
.photo { box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .06); }
.photo::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .75) 100%); }
.photo .num, .bignum { text-shadow: 0 0 30px rgba(255, 220, 160, .45); }
.streak-photo .num { color: #fff; }
.hero-line { letter-spacing: -.01em; }
.verse { border-left-color: rgba(227, 165, 72, .7); }
.verse.warn { border-left-color: rgba(224, 121, 107, .75); }

/* Word tab */
.warrior { position: relative; overflow: hidden; }
.warrior .who { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.warrior .who b { font-family: var(--serif); font-size: 26px; }
.warrior .who span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: right; }
.warrior .fell { font-size: 17px; margin: 8px 0 14px; }
.warrior .lesson { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--accent); margin: 14px 0 0; }
.warrior.ran { border-color: rgba(92, 194, 143, .35); }
.warrior.ran .lesson { color: var(--good); }
.warrior details summary { color: var(--muted); font-size: 14px; margin-top: 12px; }
.mini-warrior { display: block; text-decoration: none; color: var(--text); }
.mini-warrior .kicker { color: var(--danger); margin-bottom: 4px; }
.mini-warrior p { margin: 0; font-family: var(--serif); font-size: 18px; }
.mini-warrior span { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .enter > *, .tempted { animation: none; } }
.seg button { min-width: 0; padding: 8px 6px; font-size: 14px; white-space: nowrap; }

/* ---------- Black + cream palette (no navy, no gold) ---------- */
:root {
  --cream: #f4ede0;
  --ink: #1a1714;
  --ink-muted: #6b6358;
  --accent: var(--cream);
  --accent-ink: var(--ink);
  --accent-soft: rgba(244, 237, 224, .12);
  --danger: #c0705f;
  --good: #8fc4a5;
  --calm: #d8cfc0;
}
body { background: #000; }

/* Cream text boxes: everything inside reads as dark ink on cream. */
.card, .stat, .stakes > div, .option, .chip, .escape a, .escape button, .round, .seg,
input[type="text"], input[type="tel"], input[type="date"], input[type="email"], input[type="password"], textarea {
  --text: var(--ink);
  --muted: var(--ink-muted);
  --line: rgba(26, 23, 20, .12);
  --surface-2: rgba(26, 23, 20, .06);
  --accent: var(--ink);
  --accent-ink: var(--cream);
  --accent-soft: rgba(26, 23, 20, .07);
  --danger: #9c4a3a;
  --good: #3f7a5a;
  --calm: #5b4f40;
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(26, 23, 20, .1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.card { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 18px 50px -20px rgba(0, 0, 0, .9); }
.card a { color: var(--ink); }
.card .btn:not(.btn-primary), .card button:not(.btn-primary):not(.chip):not(.option) { background: rgba(26, 23, 20, .07); color: var(--ink); }
.card .btn-primary { background: var(--ink); color: var(--cream); box-shadow: none; }
.card .icon-btn { background: transparent; border-color: rgba(26, 23, 20, .18); color: var(--ink-muted); }
.card details { border-top-color: rgba(26, 23, 20, .12); }
input::placeholder, textarea::placeholder { color: #9a9083; }
input:focus, textarea:focus { border-color: var(--ink); background: #fbf7ef; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: none; opacity: .6; }
.keybox { background: rgba(26, 23, 20, .07); color: var(--ink); }
.check input { accent-color: var(--ink); }

/* Primary actions on black: cream with a soft white glow */
.btn-primary, .tempted { background: var(--cream); color: var(--ink); }
.btn-primary { box-shadow: 0 6px 24px -10px rgba(255, 255, 255, .45); }
.tempted { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 12px 44px -12px rgba(255, 255, 255, .55); animation: breathe-cream 5s ease-in-out infinite; }
@keyframes breathe-cream { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 12px 60px -8px rgba(255, 255, 255, .75); } }
.btn:not(.btn-primary):not(.tempted), button:not(.btn-primary):not(.chip):not(.option):not(.round) { background: transparent; color: var(--cream); box-shadow: 0 0 0 1px rgba(244, 237, 224, .25) inset; }
.btn-ghost, .btn-ghost:not(.btn-primary) { box-shadow: none !important; color: #b9b1a4; }
.tabbar a.on { color: var(--cream); text-shadow: 0 0 16px rgba(255, 255, 255, .45); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: none; }
.option[aria-pressed="true"] { background: #e7dcc8; border-color: var(--ink); }
.seg button { color: var(--ink-muted); box-shadow: none !important; background: transparent; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.flow .steps i.on { background: var(--cream); box-shadow: 0 0 10px rgba(255, 255, 255, .45); }
.verse { border-left-color: rgba(244, 237, 224, .55); }
.card .verse { border-left-color: rgba(26, 23, 20, .35); }
.verse.warn, .card .verse.warn { border-left-color: #9c4a3a; }
.photo .num, .bignum { text-shadow: 0 0 30px rgba(255, 255, 255, .35); }
.reclaim-card .mid b, .stakes b, .warrior .lesson { color: var(--ink); }
.warrior.ran .lesson { color: #3f7a5a; }
.mini-warrior .kicker, .letter-card .kicker { color: #9c4a3a; }
.breath .circle { border-color: var(--cream); background: radial-gradient(circle at 50% 40%, rgba(244, 237, 224, .14), transparent 70%); }
.toast { background: var(--cream); color: var(--ink); }
.sync-dot::before { background: #8fc4a5; }
.bar .fill { background: var(--ink); }
.bar .track { background: rgba(26, 23, 20, .08); }
.tag { background: rgba(26, 23, 20, .08); color: var(--ink); }
.tag.good { background: rgba(63, 122, 90, .15); color: #3f7a5a; }
.tag.fell { background: rgba(91, 79, 64, .15); color: #5b4f40; }
.plan-cta { border-color: rgba(26, 23, 20, .2); }
.plan-cta b::after { color: var(--ink); }
h2 { color: #b9b1a4; }
.card h2 { color: var(--ink-muted); }
.muted { color: var(--muted); }
:root { --muted: #b9b1a4; }
.card .btn-ghost { color: var(--ink-muted) !important; }
.tabbar { background: rgba(0, 0, 0, .88); }
.tabbar a { color: #8d867b; }
/* Buttons inside cream boxes: ink, never cream-on-cream */
.card button:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost),
.card .btn:not(.btn-primary):not(.btn-ghost) { background: rgba(26, 23, 20, .07) !important; color: var(--ink) !important; box-shadow: none !important; }
.card .btn-primary { background: var(--ink) !important; color: var(--cream) !important; }
.seg button { color: var(--ink-muted) !important; background: transparent !important; box-shadow: none !important; }
.seg button[aria-selected="true"] { background: var(--ink) !important; color: var(--cream) !important; }
.chip { color: var(--ink) !important; background: var(--cream) !important; box-shadow: none !important; }
.chip[aria-pressed="true"] { background: var(--ink) !important; color: var(--cream) !important; }
.option, .round, .escape a, .escape button { color: var(--ink) !important; background: var(--cream) !important; box-shadow: none !important; }
.option[aria-pressed="true"] { background: #e7dcc8 !important; }

/* What's at stake */
.stake .kicker { color: #9c4a3a; margin-bottom: 6px; }
.stake .punchline { font-family: var(--serif); font-size: 21px; line-height: 1.35; font-weight: 600; margin: 0 0 14px; }
.stake .verse { font-size: 16px; margin-bottom: 10px; }
.stake .verse:last-child { margin-bottom: 0; }
.research .kicker { color: var(--ink-muted); margin-bottom: 8px; }
.research ul { list-style: none; margin: 0; padding: 0; }
.research li { padding: 10px 0; border-top: 1px solid rgba(26, 23, 20, .12); font-size: 15px; line-height: 1.45; }
.research li:first-child { border-top: 0; padding-top: 0; }
.research li span { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.research a { color: var(--ink-muted) !important; }

/* One-at-a-time "what's at stake" slides */
.slide-wrap { min-height: 52vh; display: flex; align-items: center; }
.slide { width: 100%; padding: 26px 22px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.slide .kicker { color: #9c4a3a; margin-bottom: 10px; }
.slide.fact .kicker { color: var(--ink-muted); }
.slide .punchline { font-family: var(--serif); font-size: 26px; line-height: 1.3; font-weight: 600; margin: 0 0 18px; }
.slide.fact .punchline { font-size: 22px; }
.slide .source { font-size: 12px; color: var(--ink-muted); margin: -6px 0 0; }
.slide .reasons li { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.slide .verse { font-size: 17px; margin: 0; }
.from-right { animation: slide-in-r .45s var(--ease) both; }
.from-left { animation: slide-in-l .45s var(--ease) both; }
@keyframes slide-in-r { from { opacity: 0; transform: translateX(28px) scale(.98); } }
@keyframes slide-in-l { from { opacity: 0; transform: translateX(-28px) scale(.98); } }
.dots { display: flex; justify-content: center; gap: 7px; margin: 18px 0 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 237, 224, .25); transition: all .3s var(--ease); }
.dots i.on { width: 18px; border-radius: 4px; background: var(--cream); }
@media (prefers-reduced-motion: reduce) { .from-right, .from-left { animation: none; } }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.slide-wrap { touch-action: pan-y; }

/* Private blocklist */
.lockcard { text-align: center; padding: 28px 22px; }
.lockcard h3 { font-family: var(--serif); font-size: 24px; margin: 10px 0 4px; }
.lock-icon svg { width: 42px; height: 42px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.pin-input { text-align: center; font-size: 26px !important; letter-spacing: .5em; padding-left: .5em !important; }
.titlebar { display: flex; align-items: center; justify-content: space-between; }
.titlebar .icon-btn { color: var(--cream); border-color: rgba(244, 237, 224, .3); }
.pulse { animation: pulse-ring 1.6s ease-out 2; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(244, 237, 224, .5) inset; } 100% { box-shadow: 0 0 0 14px rgba(244, 237, 224, 0) inset; } }
.slide .quote { font-style: italic; }
.feel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.feel-tags span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(156, 74, 58, .1); color: #9c4a3a; }

/* Brain milestones */
.milestones .kicker { color: var(--ink-muted); margin-bottom: 6px; }
.ms-head { display: flex; align-items: baseline; justify-content: space-between; }
.ms-head b { font-family: var(--serif); font-size: 30px; }
.ms-head span { color: var(--ink-muted); font-size: 14px; }
.ms-bar { height: 6px; border-radius: 6px; background: rgba(26, 23, 20, .1); overflow: hidden; margin: 8px 0 14px; }
.ms-bar i { display: block; height: 100%; background: var(--ink); border-radius: 6px; transition: width .8s var(--ease); }
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms details { border-top: 1px solid rgba(26, 23, 20, .1); padding: 10px 0; }
.ms:first-child details { border-top: 0; }
.ms summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary b { min-width: 62px; }
.ms-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(26, 23, 20, .35); flex: none; }
.ms.done .ms-dot { background: #3f7a5a; border-color: #3f7a5a; }
.ms.next .ms-dot { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26, 23, 20, .12); }
.ms.later summary { color: var(--ink-muted); }
.ms p { margin: 8px 0 4px 22px; font-size: 15px; line-height: 1.5; }
.ms-src { display: block; margin-left: 22px; font-size: 12px; color: var(--ink-muted) !important; }
.ms summary b { min-width: 72px; white-space: nowrap; }
.benefit { margin: 10px 0 4px 22px; padding-top: 8px; border-top: 1px dashed rgba(26, 23, 20, .12); }
.benefit:first-of-type { border-top: 0; padding-top: 0; }
.b-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.b-area { font-weight: 700; font-size: 14px; }
.b-ev { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.b-ev.measured { background: rgba(63, 122, 90, .14); color: #3f7a5a; }
.b-ev.reported { background: rgba(26, 23, 20, .07); color: var(--ink-muted); }
.benefit p { margin: 6px 0 4px; font-size: 15px; line-height: 1.5; }
.benefit .ms-src { margin-left: 0; }
.b-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.b-chips span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--cream); }
.ms-note { font-size: 12px; color: var(--ink-muted); margin: 10px 0 0; }

/* Forgiven */
.fstep { display: flex; gap: 14px; }
.fnum { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.fbody { min-width: 0; }
.fbody h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0 6px; }
.fbody .verse { font-size: 16px; margin-bottom: 10px; }
.cross .punchline { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.35; margin: 0 0 16px; }
.cross .verse { margin-bottom: 12px; }
.restored .who b { font-family: var(--serif); font-size: 24px; }
.restored .phase { margin-top: 12px; }
.restored .phase p { margin: 6px 0 8px; }
.restored .verse { font-size: 16px; }
.restored .lesson { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 12px 0 0; color: #3f7a5a; }

/* ================= Simpler, smoother, cleaner (redesign) ================= */
:root { --gap: 16px; }
main { padding: 12px 20px 28px; }
body { padding-top: env(safe-area-inset-top); }

/* Header: big title left, gear right */
.top { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 18px; min-height: 44px; }
.page-title { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.top + .page-title { margin: -6px 0 18px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.gear { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #b9b1a4; transition: background .2s, color .2s; }
.gear:hover, .gear:active { background: rgba(244, 237, 224, .08); color: var(--cream); }
.gear svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.offline { font-size: 12px; color: #b9b1a4; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(244, 237, 224, .2); }
.back { color: #b9b1a4; text-decoration: none; font-size: 16px; padding: 8px 0; }
h2 { font-size: 12px; margin: 30px 4px 10px; letter-spacing: .1em; }
.card { padding: 18px 20px; border-radius: 22px; margin-bottom: 12px; box-shadow: none; }

/* Today: progress ring hero */
.hero-ring { display: flex; flex-direction: column; align-items: center; margin: 4px 0 26px; }
.ring-wrap { position: relative; width: min(68vw, 270px); aspect-ratio: 1; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: rgba(244, 237, 224, .1); }
.ring-fg { stroke: var(--cream); stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35)); transition: stroke-dashoffset 1.2s var(--ease); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-center b { font-family: var(--serif); font-size: clamp(64px, 20vw, 88px); line-height: 1; font-weight: 600; text-shadow: 0 0 40px rgba(255, 255, 255, .25); font-variant-numeric: tabular-nums; }
.ring-center span { color: #b9b1a4; margin-top: 6px; font-size: 15px; letter-spacing: .02em; }
.ring-center em { font-style: normal; color: #8d867b; font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.next-goal { margin-top: 16px; color: #d8cfc0; text-decoration: none; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(244, 237, 224, .06); }
.next-goal b { color: var(--cream); }
.next-goal span { color: #8d867b; margin-left: 2px; }
.tempted { min-height: 72px; font-size: 21px; border-radius: 22px; margin: 0 0 12px; }
.pledge { width: 100%; min-height: 50px; border-radius: 16px; font-size: 16px; margin-bottom: 22px; background: transparent !important; color: var(--cream) !important; box-shadow: 0 0 0 1px rgba(244, 237, 224, .22) inset !important; }
.pledge.done { color: #8fc4a5 !important; box-shadow: 0 0 0 1px rgba(143, 196, 165, .35) inset !important; opacity: 1; cursor: default; }
.today-word .kicker { color: var(--ink-muted); margin-bottom: 10px; }
.today-word .verse { margin: 0; }
.quiet-links { display: flex; justify-content: center; gap: 10px; margin: 18px 0 4px; font-size: 15px; }
.quiet-links a { color: #b9b1a4; text-decoration: none; padding: 8px 4px; }
.quiet-links span { color: #5f5a52; padding-top: 8px; }

/* Progress */
.stats-2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats-2 .stat { padding: 16px 14px; text-align: left; border-radius: 18px; }
.stats-2 .stat b { font-family: var(--serif); font-size: 32px; font-weight: 600; }
details.inner { margin-top: 14px; border-top: 1px solid rgba(26, 23, 20, .1); padding-top: 12px; }
details.inner summary { color: var(--ink-muted); font-size: 14px; }
details.inner h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin: 16px 0 8px; }

/* Protect */
.lead-in { margin: -4px 0 16px; }
.lead-in .icon-btn { margin-left: 6px; vertical-align: middle; color: var(--cream); border-color: rgba(244, 237, 224, .3); }
.btn-block.subtle { margin: -2px 0 8px; min-height: 44px; font-weight: 500; }
.card.rows { padding: 4px 0; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 20px; border: 0; border-top: 1px solid rgba(26, 23, 20, .09); background: transparent !important; color: var(--ink) !important; text-decoration: none; font: inherit; font-weight: 600; box-shadow: none !important; border-radius: 0; min-height: 0; text-align: left; }
.card.rows > :first-child { border-top: 0; }
.row-link small { color: var(--ink-muted); font-weight: 400; font-size: 13px; }
a.row-link::after, button.row-link::after { content: "›"; color: var(--ink-muted); font-size: 20px; margin-left: 6px; }
details.row-link { display: block; padding: 0; }
details.row-link summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; cursor: pointer; list-style: none; }
details.row-link summary::-webkit-details-marker { display: none; }
details.row-link summary::after { content: "›"; color: var(--ink-muted); font-size: 20px; transition: transform .25s var(--ease); }
details.row-link[open] summary::after { transform: rotate(90deg); }
details.row-link summary small { margin-left: auto; }
.row-body { padding: 0 20px 16px; font-weight: 400; }
.row-body .btn-block { margin-top: 8px; }

/* Settings: grouped rows that open in place */
details.group { background: var(--cream); color: var(--ink); border-radius: 18px; margin-bottom: 10px; overflow: hidden;
  --text: var(--ink); --muted: var(--ink-muted); --line: rgba(26,23,20,.12); --accent: var(--ink); --accent-ink: var(--cream); }
details.group > summary { display: flex; align-items: center; gap: 12px; padding: 17px 20px; cursor: pointer; list-style: none; font-weight: 600; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary small { margin-left: auto; color: var(--ink-muted); font-weight: 400; font-size: 13px; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.group > summary::after { content: "›"; color: var(--ink-muted); font-size: 20px; transition: transform .25s var(--ease); }
details.group[open] > summary::after { transform: rotate(90deg); }
.group-body { padding: 0 20px 18px; animation: rise .35s var(--ease) both; }
.group-body label:first-child { margin-top: 0; }
.group-body button:not(.btn-primary):not(.chip):not(.icon-btn), .group-body .btn:not(.btn-primary) { background: rgba(26, 23, 20, .07) !important; color: var(--ink) !important; box-shadow: none !important; }
.group-body .btn-primary { background: var(--ink) !important; color: var(--cream) !important; box-shadow: none !important; }
.group-body .btn-ghost { background: transparent !important; color: var(--ink-muted) !important; }
.group-body .seg { background: rgba(26, 23, 20, .06); }
.group-body label { color: var(--ink); }

/* Tab bar: four tabs, calm active state */
.tabbar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.tabbar a { gap: 3px; font-size: 10.5px; letter-spacing: .02em; }
.tabbar svg { width: 23px; height: 23px; stroke-width: 1.6; }
.tabbar a.on { text-shadow: none; }
.tabbar a.on svg { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }

/* Gentler screen entrance */
.enter > * { animation: rise .38s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
details.group, details.row-link { border-top: 0; padding: 0; }
details.group { margin-bottom: 8px; }
details.group > summary { min-height: 56px; padding: 14px 20px; }
.card.rows > details.row-link { border-top: 1px solid rgba(26, 23, 20, .09); }
.row-link:focus { outline: none; }
.row-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

/* Partner approval sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .3s var(--ease); }
.sheet-backdrop.open { background: rgba(0, 0, 0, .55); }
.sheet { width: min(560px, 100%); background: var(--cream); color: var(--ink); border-radius: 26px 26px 0 0; padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .38s var(--ease);
  --text: var(--ink); --muted: var(--ink-muted); --accent: var(--ink); --accent-ink: var(--cream); }
.sheet-backdrop.open .sheet { transform: none; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: rgba(26, 23, 20, .2); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.sheet .btn-primary { background: var(--ink) !important; color: var(--cream) !important; box-shadow: none !important; margin-top: 8px; }
.sheet button:not(.btn-primary) { background: rgba(26, 23, 20, .07) !important; color: var(--ink) !important; box-shadow: none !important; }
.sheet .btn-ghost { background: transparent !important; color: var(--ink-muted) !important; }
.sheet details.inperson { margin: 10px 0 4px; border-top: 0; padding: 0; }
.sheet details.inperson summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.waiting { font-size: 13px; color: #9c4a3a; font-weight: 600; }
.row-link em.this { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--cream); margin-left: 6px; vertical-align: middle; }
details.danger { margin-top: 12px; border-top: 1px solid rgba(26, 23, 20, .1); padding-top: 8px; }
details.danger summary { color: #9c4a3a; cursor: pointer; padding: 6px 0; }
details.danger #delacct { color: #9c4a3a !important; }
.why-list { list-style: none; padding: 0; margin: 4px 0 14px; }
.why-list li { padding: 8px 0 8px 26px; position: relative; color: #d8cfc0; }
.why-list li::before { content: "✦"; position: absolute; left: 4px; color: var(--cream); }

/* Breathe gate */
.gate { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0); display: flex; align-items: center; justify-content: center; transition: background .35s var(--ease); padding: 24px; }
.gate.open { background: rgba(0, 0, 0, .92); }
.gate-inner { width: min(420px, 100%); text-align: center; opacity: 0; transform: translateY(10px); transition: all .4s var(--ease); }
.gate.open .gate-inner { opacity: 1; transform: none; }
.gate-what { font-size: 17px; }
.gate-left { font-family: var(--serif); font-size: 40px; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.gate .punch { font-size: 22px; }
.gate.open { background: rgba(0, 0, 0, .985); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.gate .breath { margin: 24px 0; }

/* Bible in a year */
.plan-head { display: flex; justify-content: space-between; align-items: baseline; }
.plan-card .kicker, .plan-day .kicker { color: var(--ink-muted); margin-bottom: 4px; }
.plan-more { font-size: 13px; color: var(--ink-muted) !important; text-decoration: none; }
.read-group { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(26, 23, 20, .08); }
.read-group:first-of-type { border-top: 0; }
.read-group > span { width: 64px; flex: none; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); padding-top: 9px; }
.read-group ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.reading { display: flex; align-items: center; gap: 10px; }
.reading .check { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; background: transparent !important; box-shadow: 0 0 0 1.5px rgba(26, 23, 20, .35) inset !important; color: var(--cream) !important; font-size: 14px; flex: none; }
.reading.read .check { background: #3f7a5a !important; box-shadow: none !important; }
.reading .ref { background: transparent !important; box-shadow: none !important; color: var(--ink) !important; padding: 8px 0; min-height: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; justify-content: flex-start; text-align: left; }
.reading.read .ref { color: var(--ink-muted) !important; text-decoration: line-through; text-decoration-color: rgba(26, 23, 20, .3); }
.behind { display: block; font-size: 13px; color: #9c4a3a; text-decoration: none; margin-top: 6px; font-weight: 600; }
.plan-bar { background: rgba(244, 237, 224, .12); margin: 0 0 8px; }
.plan-bar i { background: var(--cream); }
.plan-day.today { box-shadow: 0 0 0 2px rgba(244, 237, 224, .55); }
.reader { position: fixed; inset: 0; z-index: 70; background: #000; overflow-y: auto; opacity: 0; transform: translateY(16px); transition: all .35s var(--ease); }
.reader.open { opacity: 1; transform: none; }
.reader-inner { max-width: 640px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); }
.reader-top { display: flex; justify-content: space-between; align-items: center; color: #b9b1a4; font-size: 14px; }
.reader-top .btn-ghost { padding-left: 0; }
.reader-text { font-family: var(--serif); font-size: 20px; line-height: 1.7; color: #eee6d8; margin: 8px 0 24px; }
.reader-text h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8d867b; margin: 22px 0 6px; }
.reader-text p { margin: 0 0 10px; }
.reader-text sup { font-family: var(--sans); font-size: 11px; color: #8d867b; margin-right: 6px; }
/* beat the generic in-card button style */
.card .read-group .reading button.ref:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: transparent !important; box-shadow: none !important; color: var(--ink) !important; padding: 8px 0; }
.card .read-group .reading.read button.ref:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { color: var(--ink-muted) !important; }
.card .read-group .reading button.check:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: transparent !important; box-shadow: 0 0 0 1.5px rgba(26, 23, 20, .35) inset !important; color: var(--cream) !important; }
.card .read-group .reading.read button.check:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: #3f7a5a !important; box-shadow: none !important; }
.protect-here .kicker { color: var(--ink-muted); }
.protect-here .ok { font-size: 13px; font-weight: 600; color: #3f7a5a; }
.protect-here .btn-primary { margin-top: 10px; min-height: 54px; font-size: 17px; }
.protect-here p { margin: 10px 0 0; }

/* Plan picker, reader translation switch */
.plan-options { display: grid; gap: 10px; margin-bottom: 12px; }
.plan-option { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; align-items: baseline; width: 100%; margin: 0; min-height: 0; font-weight: 400; border: 2px solid transparent; }
.plan-option b { font-family: var(--serif); font-size: 20px; }
.plan-option span { font-size: 13px; color: var(--ink-muted); }
.plan-option small { grid-column: 1 / -1; font-size: 14px; color: var(--ink-muted); }
.card.plan-option[aria-pressed="true"] { border-color: var(--ink); background: #fbf7ef !important; }
.card.plan-option:not(.x):not(.y):not(.z):not(.w) { background: var(--cream) !important; color: var(--ink) !important; box-shadow: none !important; }
.read-group:not(:has(> span)) ul { padding-left: 0; }
.seg.tiny { margin: 0; padding: 3px; background: rgba(244, 237, 224, .1); }
.seg.tiny button { min-height: 30px; padding: 4px 12px; font-size: 12px; color: #b9b1a4 !important; }
.seg.tiny button[aria-selected="true"] { background: var(--cream) !important; color: var(--ink) !important; }

/* Memorize */
.memory-card .kicker { color: var(--ink-muted); }
.mem-ref { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 4px 0 12px; }
.mem-done { font-weight: 600; color: #3f7a5a; margin: 6px 0 4px; }
.memory-card .btn-primary { background: var(--ink) !important; color: var(--cream) !important; }
.mem-li { font-family: var(--serif); font-size: 19px; }
.boxes { display: flex; gap: 4px; margin: 6px 0 2px; }
.boxes i { width: 14px; height: 5px; border-radius: 3px; background: rgba(26, 23, 20, .14); }
.boxes i.on { background: #3f7a5a; }
.mem-text { font-family: var(--serif); font-size: 24px; line-height: 1.6; color: #eee6d8; margin: 18px 0 24px; }
.mem-text.letters i { font-style: normal; color: #5f5a52; letter-spacing: 1px; }
.blank { color: #5f5a52; letter-spacing: 1px; }
.blank.now { color: var(--cream); border-bottom: 2px solid var(--cream); }
.bank { justify-content: center; }
.bank .chip.wrong { animation: shake .35s; background: #9c4a3a !important; color: var(--cream) !important; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.mem-practice .row button { min-height: 50px; }

/* Areas, setup choices, safety notes */
.area-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.area-chips.left { justify-content: flex-start; margin: 0 0 14px; }
.area-chip { min-height: 34px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: transparent !important; color: #d8cfc0 !important; box-shadow: 0 0 0 1px rgba(244, 237, 224, .22) inset !important; }
.area-chip[aria-pressed="true"] { background: var(--cream) !important; color: var(--ink) !important; box-shadow: none !important; }
.option.want { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; }
.option.want b { font-size: 17px; }
.option.want small { color: var(--ink-muted); font-weight: 400; }
.option[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink) inset !important; }
.card.safety { border-left: 4px solid #9c4a3a; }
.card.safety .kicker { color: #9c4a3a; margin-bottom: 6px; }
.card.safety p { margin: 0 0 8px; font-size: 15px; }
.measure .kicker { color: var(--ink-muted); }
.measure label { font-weight: 500; font-size: 15px; margin: 10px 0 6px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper b { font-family: var(--serif); font-size: 30px; min-width: 3ch; text-align: center; }
.stepper span { color: var(--ink-muted); font-size: 14px; flex: 1; }
.stepper .round { width: 44px; height: 44px; font-size: 22px; }
.chips.sub { margin: 0 0 14px; }
select { font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(26, 23, 20, .15); background: #fbf7ef; color: var(--ink); -webkit-appearance: none; appearance: none; }

/* NIV in the reader: YouVersion's markup (USFM classes), footnotes, Biblica's notice */
.niv .p, .niv .m, .niv .pi, .niv .mi, .niv .nb, .niv .pm, .niv .pmo, .niv .pmc, .niv .pc, .niv .pr { margin: 0 0 10px; }
.niv .pi, .niv .mi, .niv .pm, .niv .pmo, .niv .pmc { padding-left: 1.2em; }
.niv .pc, .niv .qc { text-align: center; }
.niv .pr, .niv .qr { text-align: right; }
.niv .q, .niv .q1, .niv .qm, .niv .qm1 { padding-left: 1.2em; text-indent: -1.2em; margin-left: 0; }
.niv .q2, .niv .qm2 { padding-left: 2.4em; text-indent: -1.2em; }
.niv .q3, .niv .q4, .niv .qm3 { padding-left: 3.6em; text-indent: -1.2em; }
.niv .b { height: 10px; }
.niv .li, .niv .li1 { padding-left: 1.2em; } .niv .li2 { padding-left: 2.4em; }
.niv .d, .niv .sp, .niv .qa { font-style: italic; color: #b9b1a4; margin: 0 0 8px; }
.niv .yv-h, .niv .s, .niv .s1, .niv .s2, .niv .ms, .niv .ms1, .niv .mr, .niv .r, .niv .sr { font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.35; color: #b9b1a4; margin: 20px 0 8px; text-indent: 0; padding-left: 0; }
.niv .r, .niv .mr, .niv .sr { font-weight: 400; font-style: italic; margin-top: -4px; }
.niv .nd, .niv .sc { font-variant: small-caps; }
.niv .it, .niv .tl, .niv .bk { font-style: italic; } .niv .bd { font-weight: 700; }
.niv .yv-vlbl { font-family: var(--sans); font-size: 11px; color: #8d867b; margin-right: 6px; vertical-align: super; line-height: 0; }
.niv .yv-n { display: none; }
.fn-mark.on:not(.x):not(.y):not(.z):not(.w) { color: #fff; }
.fn-box { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: 0 auto; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: #1b1916; border-top: 1px solid #3a352e; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: #d9d1c3; }
.fn-box > div { flex: 1; } .fn-box .fq, .fn-box .fqa { font-style: italic; } .fn-box .fr { color: #8d867b; }
.fn-box .btn-ghost { padding: 0 4px; min-height: 0; color: #8d867b; }
.fn-mark:not(.x):not(.y):not(.z):not(.w) { all: unset; cursor: pointer; font-family: var(--sans); font-size: 13px; color: #c9a37a; padding: 0 5px; vertical-align: super; line-height: 0; }
.niv-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-family: var(--sans); }
#rattr { white-space: pre-line; } #rattr a { color: inherit; text-decoration: underline; }

/* Struggles (pride, anxiety…): no counter. A line of hope, the button, and today's practice. */
.hero-struggle { text-align: center; padding: 6px 0 2px; }
.hero-struggle .area-chips { margin: 0 0 6px; }
.hero-struggle p { font-family: var(--serif); font-size: 25px; line-height: 1.28; color: #f4ede0; margin: 18px 6px 22px; }
.card.practice .kicker { color: var(--ink-muted); margin-bottom: 4px; }
.card.practice h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; }
.card.practice p { margin: 0 0 10px; }
.card.practice .verse { margin: 0; }
