/* ===== FIRST LIGHT design system ===== */
:root {
  --ink: #1c2541;
  --ink-2: #47506b;
  --ink-3: #5d6783;
  --accent: #b24a1d;
  --accent-2: #d9742f;
  --gold: #e8a93f;
  --rose: #f2a6b8;
  --lav: #a99be8;
  --sky: #8db6ee;
  --bg-a: #ffe6d6;
  --bg-b: #f4f0ff;
  --bg-c: #e6f0ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.55);
  --border: rgba(28, 37, 65, 0.11);
  --shadow: 0 12px 34px rgba(54, 64, 120, 0.12);
  --shadow-sm: 0 4px 14px rgba(54, 64, 120, 0.09);
  --btn-bg: #1c2541;
  --btn-fg: #ffffff;
  --focus: #2a5bd7;
  --radius: 22px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Gelasio", serif;
  --sans: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --read: var(--serif);
  --tabbar-h: 70px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --glow-1: rgba(255, 205, 150, 0.65);
  --glow-2: rgba(255, 190, 205, 0.45);
  color-scheme: light;
}

html[data-theme="evening"] {
  --ink: #f4f0ff;
  --ink-2: #d2d6f0;
  --ink-3: #aab1d4;
  --accent: #ffb48a;
  --accent-2: #ffb48a;
  --bg-a: #2b2450;
  --bg-b: #1c2140;
  --bg-c: #131a30;
  --surface: rgba(38, 45, 82, 0.86);
  --surface-solid: #262d52;
  --surface-soft: rgba(38, 45, 82, 0.55);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --btn-bg: #ffd7b8;
  --btn-fg: #20254a;
  --focus: #9fc2ff;
  --glow-1: rgba(255, 170, 120, 0.22);
  --glow-2: rgba(150, 130, 255, 0.2);
  color-scheme: dark;
}
html[data-contrast="high"] { --ink: #080c1a; --ink-2: #141c38; --ink-3: #26304f; --border: rgba(8, 12, 26, 0.5); --accent: #8c320c; }
html[data-theme="evening"][data-contrast="high"] { --ink: #ffffff; --ink-2: #ffffff; --ink-3: #e8eafa; --border: rgba(255, 255, 255, 0.65); --accent: #ffc9a8; }

html[data-size="sm"] { font-size: 16px; }
html[data-size="md"] { font-size: 18px; }
html[data-size="lg"] { font-size: 20.5px; }
html[data-size="xl"] { font-size: 23.5px; }
html[data-font="sans"] { --read: var(--sans); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-b);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 55% at 88% -8%, var(--glow-1), transparent 62%),
    radial-gradient(90% 45% at 0% 0%, var(--glow-2), transparent 58%),
    linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 42%, var(--bg-c) 100%);
}
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Shell ===== */
.shell { max-width: 660px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.topbar .brand-text { font: 700 0.68rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); line-height: 1.35; }
.topbar .brand-text b { display: block; color: var(--accent); letter-spacing: 0.22em; }
main:focus { outline: none; }
main { flex: 1; padding: 8px 20px calc(var(--tabbar-h) + var(--safe-b) + 28px); outline: none; }
.shell.no-tabs main { padding-bottom: 40px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}
.tabbar ul { display: flex; list-style: none; margin: 0; padding: 0; width: 100%; max-width: 660px; }
.tabbar li { flex: 1; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--tabbar-h); text-decoration: none; color: var(--ink-3);
  font: 600 0.66rem var(--sans); letter-spacing: 0.04em;
}
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.1; }

/* ===== Type ===== */
.eyebrow { font: 700 0.68rem var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.h-display { font-family: var(--serif); font-weight: 600; font-size: 1.95rem; letter-spacing: -0.01em; }
.h-section { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.lead { font-family: var(--serif); font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 0.82rem; }
.read { font-family: var(--read); font-size: 1.08rem; line-height: 1.72; }

/* ===== Surfaces ===== */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.card + .card, .stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 650 1rem var(--sans); text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 8px 22px rgba(28, 37, 65, 0.22); }
.btn-dawn { background: linear-gradient(120deg, #ffb27a, #f58f83 55%, #d68cc9); color: #2a1730; box-shadow: 0 10px 26px rgba(238, 130, 110, 0.35); }
.btn-secondary { background: var(--surface-solid); border-color: var(--border); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-danger { background: #b3261e; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--ink-2);
}
.icon-btn[aria-pressed="true"] { color: #d6335f; border-color: color-mix(in srgb, #d6335f 40%, transparent); }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--border); font: 600 0.74rem var(--sans); color: var(--ink-2); }
.chip-accent { color: var(--accent); }

/* ===== Segmented control ===== */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--border); }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; font: 650 0.92rem var(--sans); color: var(--ink-2); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button[disabled] { opacity: 0.55; }
.sticky-seg { position: sticky; top: 0; z-index: 5; padding: 10px 0; }

/* ===== Hero (Today) ===== */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; padding: 24px 22px 22px;
  background: linear-gradient(160deg, #ffd9c4 0%, #ffe9c9 35%, #efe4ff 78%, #dbe8ff 100%);
  color: #1c2541; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.8);
}
html[data-theme="evening"] .hero { background: linear-gradient(160deg, #5a3f68 0%, #3d3566 50%, #263a6b 100%); color: #fff6ee; }
.hero .eyebrow { color: #a2400f; }
html[data-theme="evening"] .hero .eyebrow { color: #ffc9a8; }
.hero h2 { font-family: var(--serif); font-size: 1.8rem; margin: 6px 0 8px; letter-spacing: -0.01em; }
.hero p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; opacity: 0.92; max-width: 34em; }
.hero .sun { position: absolute; right: -34px; top: -34px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 120, 0.95), rgba(255, 196, 120, 0) 68%); pointer-events: none; }
.hero .btn { margin-top: 18px; }

.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 700 1.25rem var(--serif); line-height: 1; }
.ring .ring-label small { display: block; font: 600 0.56rem var(--sans); letter-spacing: 0.08em; color: var(--ink-3); margin-top: 3px; text-transform: uppercase; }
.bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb27a, #f58f83, #b79cf0); }

.week { display: flex; gap: 8px; }
.week div { flex: 1; text-align: center; font: 600 0.68rem var(--sans); color: var(--ink-3); }
.week i { display: block; width: 100%; aspect-ratio: 1; max-width: 34px; margin: 5px auto 0; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface-soft); }
.week .on i { background: linear-gradient(135deg, #ffbf80, #f58f83); border-color: transparent; }
.week .today i { outline: 2px solid var(--accent); outline-offset: 2px; }

.carry { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--ink); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 16%, var(--surface-solid)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); font-size: 0.9rem; }
.notice.warn { background: color-mix(in srgb, #e5484d 10%, var(--surface-solid)); border-color: color-mix(in srgb, #e5484d 40%, transparent); }

/* ===== Day view ===== */
.day-head { padding: 6px 0 12px; }
.day-head .crumbs { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.day-head h1 { font-family: var(--serif); font-size: 2.05rem; letter-spacing: -0.01em; margin: 8px 0 10px; }
.block { padding: 22px 20px; }
.block-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.block-label .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.window { background: linear-gradient(160deg, color-mix(in srgb, #ffd9c4 55%, var(--surface-solid)), color-mix(in srgb, #e8e2ff 55%, var(--surface-solid))); }
html[data-theme="evening"] .window { background: linear-gradient(160deg, #3b3162, #28335f); }
.window .read { font-style: italic; }
.scripture { border-left: 4px solid var(--gold); border-radius: 6px var(--radius) var(--radius) 6px; }
.scripture .verses { font-family: var(--read); font-size: 1.12rem; line-height: 1.75; }
.scripture sup { font: 700 0.62rem var(--sans); color: var(--accent); margin-right: 3px; vertical-align: super; }
.scripture .ref { font: 700 0.9rem var(--sans); letter-spacing: 0.04em; margin-top: 12px; }
.scripture .context { font-size: 0.86rem; color: var(--ink-2); margin-top: 8px; }
.prayer p + p { margin-top: 1em; }
.letter { background: repeating-linear-gradient(transparent, transparent 33px, color-mix(in srgb, var(--ink) 7%, transparent) 33px, color-mix(in srgb, var(--ink) 7%, transparent) 34px), var(--surface); }
.letter .read { line-height: 34px; }
.letter p + p { margin-top: 34px; }
.declaration { background: linear-gradient(150deg, color-mix(in srgb, #ffe3b8 60%, var(--surface-solid)), color-mix(in srgb, #ffd2dd 55%, var(--surface-solid))); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
html[data-theme="evening"] .declaration { background: linear-gradient(150deg, #4a3560, #3a3a6e); }
.declaration .read { font-weight: 600; font-style: italic; }
.declaration .read p + p { margin-top: 0.6em; }
.declaration .ref { font: 700 0.82rem var(--sans); color: var(--ink-2); margin-top: 12px; }
.kind { font: 650 0.68rem var(--sans); padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--surface-solid) 70%, transparent); border: 1px solid var(--border); color: var(--ink-2); letter-spacing: 0.04em; }
.walk-step { padding: 14px 0; border-top: 1px solid var(--border); }
.walk-step:first-of-type { border-top: 0; }
.walk-step .phrase { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.walk-step .note { color: var(--ink-2); margin-top: 6px; font-size: 0.95rem; }
.walk-step button { margin-top: 8px; }
.amen-wrap { text-align: center; padding: 8px 0 4px; }
.amen { min-height: 58px; font-size: 1.1rem; padding: 0 34px; }
.amen-done { animation: bloom 0.9s ease-out; }
@keyframes bloom { 0% { box-shadow: 0 0 0 0 rgba(255, 178, 122, 0.8); } 100% { box-shadow: 0 0 0 36px rgba(255, 178, 122, 0); } }
html[data-motion="reduce"] * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { html[data-motion="system"] * { animation: none !important; transition: none !important; } }

.timer { display: grid; place-items: center; gap: 12px; padding: 8px 0; }
.timer .dial { position: relative; width: 150px; height: 150px; }
.timer .dial svg { transform: rotate(-90deg); }
.timer .dial span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.7rem var(--serif); }

.field { width: 100%; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface-solid); padding: 14px 16px; font-family: var(--read); font-size: 1.05rem; line-height: 1.65; }
textarea.field { min-height: 280px; resize: vertical; }
.field:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent); }
label.lbl { display: block; font: 650 0.86rem var(--sans); margin-bottom: 6px; color: var(--ink-2); }
.saved { font: 600 0.8rem var(--sans); color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.saved.err { color: #b3261e; }

.card-preview { display: block; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff; aspect-ratio: 2 / 3; height: auto; }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions-grid .btn { min-height: 54px; padding: 0 12px; font-size: 0.95rem; }
select.field { padding: 10px 14px; font-family: var(--sans); font-size: 0.95rem; }

/* ===== Journey (paths) ===== */
.chapter { padding: 0; overflow: hidden; }
.chapter > button.ch-head { width: 100%; text-align: left; background: transparent; border: 0; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.ch-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 0.95rem var(--serif); background: linear-gradient(135deg, #ffd1a8, #f4b6c6); color: #3a1d2c; flex: none; }
.ch-head .title { font: 600 1.08rem var(--serif); }
.ch-head .sub { font-size: 0.8rem; color: var(--ink-2); }
.ch-body { padding: 0 8px 18px; }
.ch-desc { padding: 0 14px 6px; font-size: 0.92rem; color: var(--ink-2); font-family: var(--serif); font-style: italic; }
.paths-svg { display: block; width: 100%; height: auto; }
.node { cursor: pointer; }
.node circle.base { fill: var(--surface-solid); stroke: var(--border); stroke-width: 2; }
.node.avail circle.base { stroke: var(--gold); }
.node.done circle.base { fill: url(#nodeGrad); stroke: none; }
.node.future { cursor: default; opacity: 0.55; }
.node text { font: 700 11px var(--sans); fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.node.done text { fill: #3a1d2c; }
.node:focus-visible circle.base { stroke: var(--focus); stroke-width: 4; }
.node .pulse { fill: none; stroke: var(--accent-2); stroke-width: 2; opacity: 0.6; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.78rem; color: var(--ink-2); padding: 0 14px 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal-grid th { font: 700 0.68rem var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 4px; }
.cal-cell { width: 100%; aspect-ratio: 1; border-radius: 14px; border: 1px solid transparent; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 0.9rem var(--sans); color: var(--ink-2); padding: 0; }
.cal-cell.has { background: linear-gradient(135deg, #ffd6b0, #f6bccb); color: #3a1d2c; border-color: transparent; }
.cal-cell.today { border-color: var(--accent); }
.cal-cell small { font-size: 0.6rem; font-weight: 700; }

/* ===== Lists ===== */
.entry { display: block; width: 100%; text-align: left; text-decoration: none; }
.entry .title { font: 600 1.05rem var(--serif); }
.entry .snippet { color: var(--ink-2); font-size: 0.92rem; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; padding: 34px 18px; color: var(--ink-2); }
.empty .mark { margin: 0 auto 10px; }
.kept-item .text { font-family: var(--read); line-height: 1.65; }
.kept-item .text p + p { margin-top: 0.6em; }

/* ===== Settings ===== */
.setting { padding: 14px 0; border-top: 1px solid var(--border); }
.setting:first-child { border-top: 0; padding-top: 0; }
.setting .lbl { margin-bottom: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { text-align: center; padding: 14px 6px; border-radius: 16px; background: var(--surface-soft); border: 1px solid var(--border); }
.stat b { display: block; font: 700 1.6rem var(--serif); }
.stat span { font: 600 0.68rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* ===== Onboarding ===== */
.onb { display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - 90px); gap: 22px; padding-top: 10px; }
.onb .brand-mark { width: 56px; height: 56px; }
.onb h1 { font-family: var(--serif); font-size: 2.3rem; line-height: 1.12; letter-spacing: -0.015em; }
.onb .pill-list { display: grid; gap: 12px; }
.onb .pill { display: flex; gap: 14px; align-items: flex-start; }
.onb .pill .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ffd1a8, #f4b6c6); color: #3a1d2c; display: grid; place-items: center; font: 700 0.9rem var(--serif); }
.steps { display: flex; gap: 6px; }
.steps i { height: 4px; flex: 1; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.steps i.on { background: var(--accent-2); }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-row button { flex: 1 1 0; min-width: 74px; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-solid); font: 650 0.9rem var(--sans); padding: 0 10px; }
.opt-row button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ===== Dialog / sheet ===== */
dialog.sheet { border: 0; padding: 0; border-radius: 26px; width: min(92vw, 520px); max-height: 88vh; background: var(--surface-solid); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 25, 60, 0.4); }
dialog.sheet::backdrop { background: rgba(20, 24, 50, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-body { padding: 24px 22px 20px; display: grid; gap: 14px; }
.sheet-title { font: 600 1.35rem var(--serif); }
.sheet-text { color: var(--ink-2); font-size: 0.96rem; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
dialog.focus-mode { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; background: linear-gradient(170deg, var(--bg-a), var(--bg-b) 55%, var(--bg-c)); }
.focus-wrap { min-height: 100dvh; display: flex; flex-direction: column; padding: 20px 22px calc(26px + var(--safe-b)); max-width: 660px; margin: 0 auto; }
.focus-text { flex: 1; display: grid; place-items: center; text-align: center; font-family: var(--read); font-size: 1.65rem; line-height: 1.55; padding: 20px 4px; }
.focus-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; }

/* ===== Toast ===== */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); background: var(--btn-bg); color: var(--btn-fg); padding: 12px 20px; border-radius: 999px; font: 600 0.9rem var(--sans); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 200; max-width: 90vw; text-align: center; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media print {
  .tabbar, .topbar, #toast { display: none !important; }
  body::before { display: none; }
}
@media (min-width: 900px) {
  main { padding-left: 28px; padding-right: 28px; }
}

/* "For me": her own prayer, visually distinct from the prayer for him */
.for-me { background: linear-gradient(150deg, color-mix(in srgb, #e6e0ff 65%, var(--surface-solid)), color-mix(in srgb, #dcebff 60%, var(--surface-solid))); border-color: color-mix(in srgb, var(--lav) 45%, transparent); }
html[data-theme="evening"] .for-me { background: linear-gradient(150deg, #3b3768, #2f3a66); }
.for-me .read p + p { margin-top: 0.6em; }
